Repository navigation
feat(template): import the extension template with history - #207
Merged
Merged
Conversation
* feat: the extension starting point, seven parts from probe * docs: cli 0.43 build rule; edit the parts table after create * feat(release): carry release.yml and the guard; refuse to release itself * docs: no id literal in tables (create keeps the widths) * chore: repo-doctor (prepublishOnly, waivers, README verify) * fix: ui-only build, contract files per part, review notes Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
engines.agentage keeps ^0.4 || ^0.5: the published cli runs a nested kit 0.4.3. npm@11 in release, waiver reason for extensions made from the template, fork guard on the private e2e steps, undated comment. Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
Tests cover only the author's lines, one create(ctx) shape per part, config options that equal the default or have no reader removed. Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* refactor: adopt kit 0.5.1 and cli 0.45.0, drop release scripts Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * fix: keep prepublishOnly per repo-baseline Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * docs: release refusal, check --write scope, rewrap Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* refactor(api): adopt kit 0.6 ctx.route and the generated contract Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * chore(deps): pin cli 0.46.0, regenerate openapi.json Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* chore(deps): kit 0.12.2, cli 0.50.4 for the 32-hex agcid Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * fix(template): regenerate openapi.json for kit 0.12 Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * fix(template): regenerate openapi.json for kit 0.12 Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* docs: README for humans, CLAUDE.md matches the code Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * docs: show real answer envelopes, name api in health and logs Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* docs: move README depth to docs/ Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * docs: shorten the README Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * docs: apply review fixes Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
Bumps the all-dependencies group with 4 updates: [@electric-sql/pglite](https://github.com/electric-sql/pglite/tree/HEAD/packages/pglite), [@playwright/test](https://github.com/microsoft/playwright), [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser). Updates `@electric-sql/pglite` from 0.5.15 to 0.5.16 - [Release notes](https://github.com/electric-sql/pglite/releases) - [Changelog](https://github.com/neondatabase/electric-pglite/blob/main/packages/pglite/CHANGELOG.md) - [Commits](https://github.com/electric-sql/pglite/commits/@electric-sql/pglite@0.5.16/packages/pglite) Updates `@playwright/test` from 1.64.1 to 1.65.0 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.64.1...v1.65.0) Updates `@typescript-eslint/eslint-plugin` from 8.72.1 to 8.72.2 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.72.2/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.72.1 to 8.72.2 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.72.2/packages/parser)
* docs: apply README review notes Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr * docs: apply review fixes Claude-Session: https://claude.ai/code/session_01XQkodjcXRj9XV1ZhGuYQQr
* feat: move to kit 0.13.0 and /api/template Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz * feat: move to kit 0.14.0, echo without a caller, up --docker in CI Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz * chore(deps): lock kit 0.14.0 Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz * chore(deps): lock cli 0.52.0, the cli that knows up --docker Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz
* feat: kit 0.15, up on the daemon Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz * ci: cli 0.53.0, gate docker Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz * ci: keep the required job name Claude-Session: https://claude.ai/code/session_01XQkodk97SUpq3ukrbuYAxz
) * feat(app): the app part and the fetch lint rule (S1.2 X3, kit 0.18) Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * fix(app): catch the api error, block window.fetch, cli 0.57.0 Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * fix(app): lint fetch by syntax so every form is refused Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): show the lint messages on failure Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): single-quoted lint inputs Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): fix lint test quoting Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): one ESLint instance for the lint cases Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): dump the empty lint result Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): readable lint dump Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): throw the empty lint result Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): warm the first typed lint Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * test(app): set TSESTREE_SINGLE_RUN, drop the warm-up, assert every lint call Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
* docs: one README order, both release records, the deployment row Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * docs: count the app part Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
* chore(deps): kit ^0.18.4, the anonymous HEAD fix Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * chore(deps): kit ^0.18.5, cli ^0.61.0 Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
* chore: waive cicd-release-artifact in repo-doctor Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * chore: correct the release waiver reason Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
…#28) * chore(deps): kit ^0.20.0 and cli ^0.65.2, the served parts (serves) Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * chore(deps): cli ^0.66.0 (kit 0.20.0), engines.agentage ^0.20 Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
* chore(deps): kit ^0.21.0, engines ^0.21 Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 * chore(deps): cli ^0.69.0 (kit 0.21.0) Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212
Bumps the all-dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [@playwright/test](https://github.com/microsoft/playwright) | `1.65.0` | `1.65.1` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.72.2` | `8.73.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.72.2` | `8.73.0` | | [eslint](https://github.com/eslint/eslint) | `10.14.0` | `10.15.0` | | [prettier](https://github.com/prettier/prettier) | `3.9.10` | `3.10.1` | Updates `@playwright/test` from 1.65.0 to 1.65.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.65.0...v1.65.1) Updates `@typescript-eslint/eslint-plugin` from 8.72.2 to 8.73.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.73.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.72.2 to 8.73.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.73.0/packages/parser) Updates `eslint` from 10.14.0 to 10.15.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v10.14.0...v10.15.0) Updates `prettier` from 3.9.10 to 3.10.1 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.9.10...3.10.1)
vreshch
force-pushed
the
feature/template-import
branch
from
November 22, 2026 07:26
1055ffb to
64a189f
Compare
vreshch
marked this pull request as ready for review
November 22, 2026 07:40
vreshch
added a commit
to agentage/cli
that referenced
this pull request
Nov 22, 2026
…458) ## Problem The extension template now lives in the kit repo (`agentage/platform`, folder `template/`, agentage/kit#207). `extension create` still clones `agentage/extension-template` at its root. ## Change - Default `--from` is `agentage/platform:template`. With a `:folder`, `create` makes 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. - `--from` forms: `owner/repo`, `owner/repo#branch` (a template at the repo root, as before; `agentage/extension-template` still works), and either with `:folder`. A folder with `..`, a leading `/` or `-`, a missing folder or a link on its path is refused. - No notice for `agentage/platform:template` and `agentage/extension-template`. - Clone code moved to `create-source.ts` (`create.ts` was at 200 lines). Docs: a new `extension create` section in `docs/reference.md`, `docs/extensions.md`, help text. ## How verified - `npm run verify` green; `create-source.ts` 100% 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`/`bugs` become `agentage/extension-market`, no `directory`, `private: true` kept; branch plus folder; missing folder and link refused. `create.test.ts` keeps the old root form. - Manual: `extension create demo-ext` from the real `agentage/platform` (daemon off): `npm ci && npm run verify` green in the new tree; `--from agentage/extension-template` still works. ## Reviewer must check - The agentage/e2e create test (`@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_FROM` in agentage/e2e does not accept `:folder` yet. 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 lives in its own repo
agentage/extension-template. Stage 3 (row K1) moves it into the kit repo astemplate/, with its history, before the kit repo is renamed.Change
template/: the 31 commits ofagentage/extension-templatemaster, imported bygit format-patch --rootandgit am --directory=template(authors and dates kept; the tree hash oftemplate/equals the old repo's master tree). Merge with "rebase", or the history is lost.template/is not a workspace. It keeps its ownpackage-lock.jsonand takes the kit from npm. The root ESLint ignorestemplate/**(ESLint 10 would loadtemplate/eslint.config.mjsand fail), Prettier ignorestemplate, the app host image context ignores it. Vitest,tsc -b, the workspaces andcheck-bumpsalready readpackages/only.ci.yml: aTemplatecheck (jobsTemplate changes,Template verify and check,Template up and the e2e gate on local, aggregateTemplate). It does what the template's ownci.ymldoes, insidetemplate/. It runs whentemplate/**orci.ymlchanges, on the template's lockfile kit. Whenpackages/{extension,widget,logs,app}change, it runs on the packed candidate kit and widget. Otherwise the jobs skip andTemplateis green.template/.github/workflows/release.yml: a merge to master is the release (npx -y @agentage/cli@0.71.0 extension release --changed), as inagentage/examples, for one extension at the root. It never runs here. The guard stays in the cli:releaserefuses the idtemplatebefore it tags. The file does not contain the word thatcreaterewrites, so a created repo gets it unchanged.template/package.json:"private": trueby default (a merge never publishes to npm unasked; the README says how to opt in).repositoryandbugskeep theagentage/extension-templateform, whichcreaterewrites toagentage/extension-<id>; theTemplatejob fails on a kit repo or adirectorythere.template; README "The extension template"; CLAUDE.md; Dependabot reads/templatefor npm (outside row K1, so the template keeps its updates).release.yml, tags, the five published packages, the app host program image.How verified
git log --follow template/package.json: 19 commits of the old repo.npm run verifygreen. The lists of files that ESLint (724), Prettier (810) and Vitest (303) read are equal onorigin/masterand on this branch; none is undertemplate/.template/:npm ci && npm run verifygreen,agentage extension checkPASS, on the lockfile kit and on the packed candidate kit 0.22.0.packages/extension, since dropped) showedkit: true, packed kit 0.22.0, all jobs green. This head runs the lockfile mode: the gate executed 60 tests (floor 25).^0.21, cli 0.71.0--changed) matchesagentage/examples, which releasedprobe@2026.1122.1with it.demo:agentage extension release --changed --dry-run(cli 0.71.0) plansdemo@2026.1122.1.Reviewer checks
Verify,Widget screenshots,Probe local gate on this kit,Image smokes.Templateis not required yet; the owner can add it toci-required(a skipped run reports green).agentage/extension-templateuntil row K2.https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212