release: 26.9.0-beta.1 — create plugin, core 26.9.0-beta.2 #15

Merged
chrnx merged 12 commits from develop into main 2026-09-24 19:41:37 +00:00
Owner

Promotes develop to main, fast-forward only, so main becomes an exact copy of develop. The v26.9.0-beta.1 tag is cut afterwards, on main.

Promotes develop to main, fast-forward only, so main becomes an exact copy of develop. The v26.9.0-beta.1 tag is cut afterwards, on main.
chrnx added 12 commits 2026-09-24 19:31:49 +00:00
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
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>
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>
fix(plugin): the review's smaller findings
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / installer (macos-14) (pull_request) Successful in 4s
CI / check (pull_request) Failing after 29s
CI / starter (bun) (pull_request) Successful in 32s
CI / starter (deno) (pull_request) Successful in 33s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 34s
ecdc46cac3
- `--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>
test(plugin): skip the rollback test where the user can write a read-only file
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (node) (pull_request) Successful in 32s
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 38s
CI / core-freshness (pull_request) Has been skipped
9e719b159d
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>
Merge pull request 'matcha create plugin, and scaffold core 26.9.0-beta.2' (#14) from feature/plugin-scaffold into develop
CI / installer (macos-14) (push) Successful in 3s
CI / starter (bun) (push) Successful in 31s
CI / starter (deno) (push) Successful in 34s
CI / check (push) Successful in 29s
Release / build (ubuntu-latest, aarch64-unknown-linux-musl) (push) Successful in 1m5s
Release / promote-tag (push) Successful in 6s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 28s
CI / starter (edge) (push) Successful in 37s
CI / installer (ubuntu-latest) (push) Successful in 11s
CI / starter (node) (push) Successful in 35s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 15s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (deno) (pull_request) Successful in 33s
CI / core-freshness (push) Has been skipped
Promote → GitHub / push-github (push) Successful in 6s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 1m5s
CI / starter (edge) (pull_request) Successful in 36s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 13s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
Release / publish-crate (push) Has been skipped
Release / prepare (push) Successful in 3s
CI / starter (node) (pull_request) Successful in 34s
Release / verify-linux-arm64 (push) Has been cancelled
202c4b2711
chrnx merged commit 202c4b2711 into main 2026-09-24 19:41:37 +00:00
Sign in to join this conversation.