Skip to content

feat(template): import the extension template with history - #207

Merged
vreshch merged 38 commits into
masterfrom
feature/template-import
Nov 22, 2026
Merged

vreshch merged 38 commits into
masterfrom
feature/template-import

Conversation

@vreshch

@vreshch vreshch commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Problem

The extension template lives in its own repo agentage/extension-template. Stage 3 (row K1) moves it into the kit repo as template/, with its history, before the kit repo is renamed.

Change

  • template/: the 31 commits of agentage/extension-template master, imported by git format-patch --root and git am --directory=template (authors and dates kept; the tree hash of template/ equals the old repo's master tree). Merge with "rebase", or the history is lost.
  • template/ is not a workspace. It keeps its own package-lock.json and takes the kit from npm. The root ESLint ignores template/** (ESLint 10 would load template/eslint.config.mjs and fail), Prettier ignores template, the app host image context ignores it. Vitest, tsc -b, the workspaces and check-bumps already read packages/ only.
  • ci.yml: a Template check (jobs Template changes, Template verify and check, Template up and the e2e gate on local, aggregate Template). It does what the template's own ci.yml does, inside template/. It runs when template/** or ci.yml changes, on the template's lockfile kit. When packages/{extension,widget,logs,app} change, it runs on the packed candidate kit and widget. Otherwise the jobs skip and Template is green.
  • template/.github/workflows/release.yml: a merge to master is the release (npx -y @agentage/cli@0.71.0 extension release --changed), as in agentage/examples, for one extension at the root. It never runs here. The guard stays in the cli: release refuses the id template before it tags. The file does not contain the word that create rewrites, so a created repo gets it unchanged.
  • template/package.json: "private": true by default (a merge never publishes to npm unasked; the README says how to opt in). repository and bugs keep the agentage/extension-template form, which create rewrites to agentage/extension-<id>; the Template job fails on a kit repo or a directory there.
  • PR title scope template; README "The extension template"; CLAUDE.md; Dependabot reads /template for npm (outside row K1, so the template keeps its updates).
  • Not changed: 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.
  • Root npm run verify green. The lists of files that ESLint (724), Prettier (810) and Vitest (303) read are equal on origin/master and on this branch; none is under template/.
  • In template/: npm ci && npm run verify green, agentage extension check PASS, on the lockfile kit and on the packed candidate kit 0.22.0.
  • Candidate mode: run 44997920603 (a throwaway commit in packages/extension, since dropped) showed kit: true, packed kit 0.22.0, all jobs green. This head runs the lockfile mode: the gate executed 60 tests (floor 25).
  • The template release shape (root, kit ^0.21, cli 0.71.0 --changed) matches agentage/examples, which released probe@2026.1122.1 with it.
  • A scratch copy with the id rewritten to demo: agentage extension release --changed --dry-run (cli 0.71.0) plans demo@2026.1122.1.

Reviewer checks

  • The required contexts do not change: Verify, Widget screenshots, Probe local gate on this kit, Image smokes. Template is not required yet; the owner can add it to ci-required (a skipped run reports green).
  • The cli still clones agentage/extension-template until row K2.

https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212

vreshch and others added 30 commits November 8, 2026 00:05
* 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
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)
* 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
dependabot Bot and others added 5 commits November 21, 2026 01:57
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
vreshch force-pushed the feature/template-import branch from 1055ffb to 64a189f Compare November 22, 2026 07:26
@vreshch
vreshch marked this pull request as ready for review November 22, 2026 07:40
@vreshch
vreshch merged commit 455ed29 into master Nov 22, 2026
9 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant