Repository navigation
feat(create): take the template from the kit repo's template/ folder - #458
Merged
Merged
Conversation
The default --from is agentage/platform:template: a shallow clone of the kit repo beside the new folder, then only template/ (dot files included) becomes ./extension-<id>, with no history. --from owner/repo[#branch] still takes a template at a repo's root (agentage/extension-template stays reachable) and gains the :folder form. Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
Contributor
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
vreshch
marked this pull request as ready for review
November 22, 2026 07:56
The clone goes to a fresh mkdtemp folder, so a folder of the user's with the old fixed name is never removed. A template with any symbolic link is refused (walked without following links). SIGINT and SIGTERM during the clone remove only this run's folders, then end as the signal would. repository.directory of a monorepo template is dropped. Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The extension template now lives in the kit repo (
agentage/platform, foldertemplate/, agentage/kit#207).extension createstill clonesagentage/extension-templateat its root.Change
--fromisagentage/platform:template. With a:folder,createmakes a shallow clone beside the new folder (.extension-<id>.clone, a rename across disks fails), moves only that folder to./extension-<id>(dot files and dot folders included) and removes the clone on every path. No kit files, no history.--fromforms:owner/repo,owner/repo#branch(a template at the repo root, as before;agentage/extension-templatestill works), and either with:folder. A folder with.., a leading/or-, a missing folder or a link on its path is refused.agentage/platform:templateandagentage/extension-template.create-source.ts(create.tswas at 200 lines). Docs: a newextension createsection indocs/reference.md,docs/extensions.md, help text.How verified
npm run verifygreen;create-source.ts100% covered.create-kit.test.ts: a local bare repo shaped like the kit (template/ plus kit files outside): only template/ copied with dot files, no.git, no clone left;repository/bugsbecomeagentage/extension-market, nodirectory,private: truekept; branch plus folder; missing folder and link refused.create.test.tskeeps the old root form.extension create demo-extfrom the realagentage/platform(daemon off):npm ci && npm run verifygreen in the new tree;--from agentage/extension-templatestill works.Reviewer must check
@p0 @network) is not in this repo's cli tier (@smoke); it runs with the new default after this cli is released.AGENTAGE_E2E_TEMPLATE_FROMin agentage/e2e does not accept:folderyet.https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212