matcha create plugin. An in-app plugin by default: plugins/<slug>/index.ts, registered in createApp({ plugins }). --package (or --package=DIR) writes a package of its own instead: JSR by default, or --registry both for JSR + an ESM-only npm build. It asks at a terminal and takes defaults without one, naming the flag for anything with no default.
Scaffolds @green-tea/core 26.9.0-beta.2, where a plugin became { name, mount }.
Deno and Bun starters boot before they bind (await serveDeno / await serveBun). They used to open the port first, so a failing provider left a port answering 500.
scripts/starter-smoke.sh for node, deno, bun, edge.
A generated package passes deno test, node --test and bun test (3/3, the test checks the token is in app.graph() and fails if it is not) and deno publish --dry-run. The both package builds dist/ and passes the plugin listing's ESM rule.
An in-app plugin in a fresh node project passes tsc and boots. The interactive flows were run through a real pty.
A fresh reviewer went over the whole branch; every finding, including the minors, is fixed with a test.
Branched from main (develop was behind it); merging here fast-forwards develop onto main first.
## What
- **`matcha create plugin`.** An in-app plugin by default: `plugins/<slug>/index.ts`, registered in `createApp({ plugins })`. `--package` (or `--package=DIR`) writes a package of its own instead: JSR by default, or `--registry both` for JSR + an ESM-only npm build. It asks at a terminal and takes defaults without one, naming the flag for anything with no default.
- **Scaffolds `@green-tea/core` 26.9.0-beta.2**, where a plugin became `{ name, mount }`.
- **Deno and Bun starters boot before they bind** (`await serveDeno` / `await serveBun`). They used to open the port first, so a failing provider left a port answering 500.
- Version `26.9.0-beta.1`; README and CHANGELOG.
## Verified
- `cargo fmt --check`, `clippy -D warnings`, `cargo test --locked` 140/140, `cargo audit` clean.
- `scripts/starter-smoke.sh` for node, deno, bun, edge.
- A generated package passes `deno test`, `node --test` and `bun test` (3/3, the test checks the token is in `app.graph()` and fails if it is not) and `deno publish --dry-run`. The `both` package builds `dist/` and passes the plugin listing's ESM rule.
- An in-app plugin in a fresh node project passes `tsc` and boots. The interactive flows were run through a real pty.
- A fresh reviewer went over the whole branch; every finding, including the minors, is fixed with a test.
Branched from `main` (develop was behind it); merging here fast-forwards develop onto main first.
Closes the changelog section the merged work has been accumulating in and moves
the crate onto the version its scaffolds already pin core against.
Everything in it is a fix for something users hit today — a scaffold frozen on
26.7.0-beta.0 with no way forward, a bun template that never type-checked, a
published crate declaring MIT with no licence text, an installer that refused
Linux arm64 — and none of it reaches anyone until this ships.
Verified as the artifact rather than as the working tree: `cargo publish
--dry-run --locked` packages 56 files and compiles the *packaged* crate, which
is what proves `include_dir!` still finds `template/`. All 22 template files are
included, `template/runtimes/edge/.npmrc` among them — a dotfile cargo could
have dropped, and without it a `cargo install`ed matcha would scaffold edge
against npm instead of JSR and produce a project that cannot boot on workerd.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Two problems in one place, one of them latent since before this release.
`promote.yml` and `release.yml` both fired on the same `v*` tag push, so Gitea
started building and handed the tag to GitHub at the same moment — and the tag
arriving there is what starts GitHub's build and its crates.io publish. The local
build was therefore a parallel opinion rather than a check: by the time it could
have said no, the crate was already going out, and crates.io has no unpublish,
only yank. Tag promotion moves into `release.yml` behind `needs: build`, so the
sequence is what it was always described as — Gitea builds all four targets and
runs every artifact it can, and only then does GitHub hear about the tag.
`promote.yml` also ran `git push github --tags` on every push to `main`, which
has been failing every time. The tags diverged before this: `v26.7.0` points at
`371c5f7` here and `2a3dae9` there, and `v26.8.0-beta.0` is annotated here and
lightweight there — so the push is a non-fast-forward on refs that already exist.
`main` itself was pushed by the line above and always succeeded, so the job went
red while its actual work had already been done, which is the worst shape a CI
failure can take: permanent, and therefore ignored on the day it means something.
Dropped rather than forced, because reconciling the divergence rewrites what a
published tag points at — a decision, not a fix. New tags are unaffected; they go
through `release.yml` now.
Branched from `main` rather than `develop` so it is active for the v26.9.0-beta.0
tag, and so merging it back carries the release's version bump to `develop` with
it.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
promote.yml handed v26.8.0-beta.0 to GitHub with `${{ github.ref_name }}`, so
that form is proven on this act_runner. `$GITHUB_REF_NAME` is not — act_runner
0.2.13 may or may not export it, and the failure mode is silent in the worst
way: `git push github "refs/tags/"` with an empty name, a tag that never leaves
this forge, and a release that simply never happens on GitHub.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
In-app is the default. Each plugin gets its own folder under plugins/
(or --folder), so it can be exported as a package later, and the
factory is registered in createApp({ plugins }). A plugins value that
is not an array literal is left alone with a hint, as modules already
is.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The directory must be empty, so a package never mixes into another
project. JSR is the default and the README says why; JSR + npm adds an
ESM-only tsc build, since npm consumers need compiled output, and
suggests the green-tea- name without enforcing it.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
beta.2 made serveDeno and serveBun boot the app before they bind. The
starters called Deno.serve and Bun.serve with app.fetch directly, so a
provider that failed left an open port answering 500 to everything.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
With a package.json beside deno.json, Deno expects node_modules to be
installed, so deno test failed until a deno install, and then failed
to type-check node:assert without @types/node. nodeModulesDir "auto"
installs on demand, and the package now passes deno test, node --test
and bun test as generated.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
`delete`, `class` or `default` made `export function delete(...)`, which
is not TypeScript. `create app` and `app` made a factory named after
something the entry already binds, so the import broke src/app.ts, and
the command still reported the wiring as a success. Both are now
refused before anything is written.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
The collision check scanned the whole file as text, so every scaffolded
app refused `core`, `tea` or `module` because they appear inside import
strings. It now reads identifiers from the parse tree.
Typing `npm` at the registry question silently produced a JSR-only
package. An answer that is not offered is now asked again.
The generated test only awaited boot(); it now checks the plugin's token
is in app.graph(), and fails if it is not. engines.node moves to
>=22.18, the first Node that runs `node --test` on .ts unflagged.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
- `--package` takes a directory only as `--package=DIR`, so
`create plugin --package algo` names the plugin instead of writing
into ./algo.
- A NAME passed on the command line is checked before any question.
- The package directory is named in its errors, a file there is
reported as a file, and a failed write lists what was already written.
- An in-app plugin folder is removed again if the entry cannot be
written, so the rerun does not stop on "already exists".
- `--folder .` and `./plugins/` give clean import paths.
- Flags for the other mode are named as ignored; plugin flags on
another create kind are an error.
- Array elements are read from the parse tree, so `algo({ a, b })` is
one element when checking for a duplicate.
- Scopes follow JSR's rule: 2 to 20 characters, no leading hyphen.
- Packages ship a LICENSE (MIT, which the README says to change), the
license field in both manifests, and @types/node for the test file.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
CI runs as root, which ignores a 0444 mode, so the entry write never
fails there and there is nothing to roll back. The test now says it
skipped instead of failing on a write that worked.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx
merged commit 202c4b2711 into develop2026-09-24 19:30:17 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
matcha create plugin. An in-app plugin by default:plugins/<slug>/index.ts, registered increateApp({ plugins }).--package(or--package=DIR) writes a package of its own instead: JSR by default, or--registry bothfor JSR + an ESM-only npm build. It asks at a terminal and takes defaults without one, naming the flag for anything with no default.@green-tea/core26.9.0-beta.2, where a plugin became{ name, mount }.await serveDeno/await serveBun). They used to open the port first, so a failing provider left a port answering 500.26.9.0-beta.1; README and CHANGELOG.Verified
cargo fmt --check,clippy -D warnings,cargo test --locked140/140,cargo auditclean.scripts/starter-smoke.shfor node, deno, bun, edge.deno test,node --testandbun test(3/3, the test checks the token is inapp.graph()and fails if it is not) anddeno publish --dry-run. Thebothpackage buildsdist/and passes the plugin listing's ESM rule.tscand boots. The interactive flows were run through a real pty.Branched from
main(develop was behind it); merging here fast-forwards develop onto main first.promote.yml handed v26.8.0-beta.0 to GitHub with `${{ github.ref_name }}`, so that form is proven on this act_runner. `$GITHUB_REF_NAME` is not — act_runner 0.2.13 may or may not export it, and the failure mode is silent in the worst way: `git push github "refs/tags/"` with an empty name, a tag that never leaves this forge, and a release that simply never happens on GitHub. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>In-app is the default. Each plugin gets its own folder under plugins/ (or --folder), so it can be exported as a package later, and the factory is registered in createApp({ plugins }). A plugins value that is not an array literal is left alone with a hint, as modules already is. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>- `--package` takes a directory only as `--package=DIR`, so `create plugin --package algo` names the plugin instead of writing into ./algo. - A NAME passed on the command line is checked before any question. - The package directory is named in its errors, a file there is reported as a file, and a failed write lists what was already written. - An in-app plugin folder is removed again if the entry cannot be written, so the rerun does not stop on "already exists". - `--folder .` and `./plugins/` give clean import paths. - Flags for the other mode are named as ignored; plugin flags on another create kind are an error. - Array elements are read from the parse tree, so `algo({ a, b })` is one element when checking for a duplicate. - Scopes follow JSR's rule: 2 to 20 characters, no leading hyphen. - Packages ship a LICENSE (MIT, which the README says to change), the license field in both manifests, and @types/node for the test file. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>