From 64ec413c2547e1f55ebb024bd2c61ce76ee01a81 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 17 Nov 2026 17:53:44 -0600 Subject: [PATCH 1/5] ci: build macOS on macos-15 on GitHub GitHub retired the macos-14 image, so both darwin release builds for v26.11.0-rc.1 were cancelled before running a step and the GitHub release shipped without macOS binaries (uploaded afterwards from the Gitea build of the same tag). On Gitea, macos-14 is the self-hosted runner's label, so the label only changes on GitHub. Signed-off-by: Diego Resendez --- .github/workflows/ci.yml | 3 ++- .github/workflows/release.yml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d55c25..f41526d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,8 @@ jobs: # checks both halves that matter: a good archive installs, and a bad checksum # aborts without leaving a binary behind. installer: - runs-on: ${{ matrix.os }} + # macos-14 is retired on GitHub but is the self-hosted runner's label on Gitea; see release.yml. + runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }} strategy: fail-fast: false matrix: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9d246d..f3cb456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,7 +48,9 @@ jobs: os: ubuntu-latest - target: aarch64-unknown-linux-musl os: ubuntu-latest - runs-on: ${{ matrix.os }} + # GitHub retired the macos-14 image (jobs are cancelled with "configuration not supported"); + # on Gitea, macos-14 is the label of the self-hosted macOS runner, so only GitHub moves. + runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }} steps: - uses: actions/checkout@v5 -- 2.54.1 From ecbd441eb4b0637d79fbc211325d7b138784a76f Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 19 Nov 2026 12:19:35 -0600 Subject: [PATCH 2/5] docs: Homebrew install via expressive-tea/tap Signed-off-by: Diego Resendez --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c5112ce..30ee477 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ cargo install matcha-cli Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha` binary. Needs a Rust toolchain; takes a few seconds. +**Homebrew** (macOS, Linux): + +```bash +brew install expressive-tea/tap/matcha +``` + **Prebuilt binary** (no Rust), from the latest GitHub release: ```bash -- 2.54.1 From 0865d9a479ddf0df877e0ba85c9c1b63434a604a Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 19 Nov 2026 13:09:48 -0600 Subject: [PATCH 3/5] test(smoke): kill matcha run's whole process group On edge, wrangler's workerd is a grandchild of matcha run. pkill -P only reached direct children, so workerd kept writing demo/.wrangler and the cleanup's rm -rf failed with "Directory not empty" after every check had passed. Start the server in its own process group and kill the group. Signed-off-by: Diego Resendez --- scripts/starter-smoke.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scripts/starter-smoke.sh b/scripts/starter-smoke.sh index c3f12ac..f0d7ce6 100755 --- a/scripts/starter-smoke.sh +++ b/scripts/starter-smoke.sh @@ -8,7 +8,7 @@ # project the current `@green-tea/core` will run — which is exactly how the # templates sat two core releases behind for two months without a red build. # -# Usage: scripts/starter-smoke.sh +# Usage: scripts/starter-smoke.sh set -euo pipefail RUNTIME="${1:?usage: starter-smoke.sh }" @@ -30,8 +30,17 @@ PORT="${PORT:-$((20000 + RANDOM % 20000))}" WORK="$(mktemp -d)" SERVER="" +# `matcha run` is started in its own process group (set -m below) so the whole tree dies +# together. `pkill -P` reached only direct children: on edge, wrangler's workerd is a +# grandchild, kept writing demo/.wrangler, and `rm -rf` failed with "Directory not empty". +stop_server() { + [ -n "$SERVER" ] || return 0 + kill -- -"$SERVER" 2>/dev/null || true + wait "$SERVER" 2>/dev/null || true + SERVER="" +} cleanup() { - [ -n "$SERVER" ] && { pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; } + stop_server rm -rf "$WORK" } trap cleanup EXIT @@ -55,8 +64,10 @@ echo "▸ ${CHECK[*]}" "${CHECK[@]}" echo "▸ matcha run (boot on :$PORT)" +set -m "$MATCHA" run >"$WORK/server.log" 2>&1 & SERVER=$! +set +m for _ in $(seq 1 60); do curl -fsS -o /dev/null "http://localhost:$PORT/" 2>/dev/null && break sleep 1 @@ -78,7 +89,7 @@ case "$zen" in esac echo "✓ serves / and streams /zen" -pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; SERVER="" +stop_server # Introspection runs against the same project, so it also proves the entry file # the templates scaffold still exports the `app` that graph/explain import. -- 2.54.1 From 56b5d7581fa87d20de2c2fcda90294ac97e3d92d Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 19 Nov 2026 13:15:32 -0600 Subject: [PATCH 4/5] docs(template): current generators and plugin docs in AGENTS.md The scaffolded AGENTS.md listed matcha add sse|ws|upload|stream|buffer and create controller|step|provider|module. Add cookie, transformer and create plugin, and point agents at the official plugins' READMEs, which are their only agent-readable docs. Signed-off-by: Diego Resendez --- template/shared/AGENTS.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/template/shared/AGENTS.md b/template/shared/AGENTS.md index 1b8cd9f..a04e113 100644 --- a/template/shared/AGENTS.md +++ b/template/shared/AGENTS.md @@ -38,8 +38,9 @@ matcha graph --format json # the whole graph - `src/app.ts` builds and exports `app` (`createApp({ modules: [...] })`). Introspection and tests import it. - `src/main.ts` serves `app`. It is the only file that differs per runtime. - `src/app.module.ts` lists the providers, steps and controllers with `@Module`. -- `matcha create controller|step|provider|module ` generates a piece and wires it into the module. -- `matcha add sse|ws|upload|stream|buffer` adds a capability to a controller. +- `matcha create controller|step|provider|module|transformer ` generates a piece and wires it into the module. +- `matcha create plugin` scaffolds a plugin, in-app or (`--package`) as its own package. +- `matcha add sse|stream|buffer|ws|upload|cookie` adds a capability to a controller. ## Check your work @@ -55,4 +56,7 @@ itself: - npm / Bun: `node_modules/@green-tea/core/llms.txt` - Deno (JSR): `https://jsr.io/@green-tea/core/{{core_version}}/llms.txt` +Official plugins (`@green-tea/jwt`, `@green-tea/metrics`, `@green-tea/rate-limit`, ...) ship no llms.txt; +read the installed one's `node_modules/@green-tea//README.md`. + The complete docs as one file: https://green-tea.expressive-tea.io/docs/llms-full.txt -- 2.54.1 From 2acd4561ffc98a3414e630438b671c1d06ce46e9 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Mon, 23 Nov 2026 12:23:58 -0600 Subject: [PATCH 5/5] chore(release): 26.11.0-rc.2 Scaffold @green-tea/core 26.11.0-rc.2, which fixes nine security advisories reported against rc.1. Bump CORE_VERSION, the plugin scaffold test, Cargo.toml and the lockfile, and close the CHANGELOG section with the template and README changes merged since rc.1. Signed-off-by: Diego Resendez --- CHANGELOG.md | 14 +++++++++++++- Cargo.lock | 2 +- Cargo.toml | 2 +- src/template.rs | 2 +- tests/plugin.rs | 2 +- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e79db5..a937f20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,17 @@ is pinned to is `CORE_VERSION` in `src/template.rs`, and each entry below says w ## [Unreleased] +## [26.11.0-rc.2] - 2026-11-23 + +### Changed + +- **New projects scaffold `@green-tea/core` 26.11.0-rc.2** (`CORE_VERSION`). That core release fixes + nine security advisories reported against 26.11.0-rc.1. Projects already scaffolded should run + `npm install @green-tea/core@26.11.0-rc.2` or the equivalent for their runtime. +- The scaffolded `AGENTS.md` lists every generator: `matcha add cookie`, `matcha create transformer` + and `matcha create plugin` were missing. It also points agents at the official plugins' READMEs. +- The README documents installing with Homebrew: `brew install expressive-tea/tap/matcha`. + ## [26.11.0-rc.1] - 2026-11-17 ### Added @@ -264,7 +275,8 @@ First tagged release. A single native binary, no JS runtime needed to install it - **A `curl | sh` installer** with sha256 verification, and cross-platform binaries attached to each release. -[Unreleased]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.1...HEAD +[Unreleased]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.2...HEAD +[26.11.0-rc.2]: https://github.com/Expressive-Tea/matcha/compare/v26.11.0-rc.1...v26.11.0-rc.2 [26.11.0-rc.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.1...v26.11.0-rc.1 [26.9.0-beta.1]: https://github.com/Expressive-Tea/matcha/compare/v26.9.0-beta.0...v26.9.0-beta.1 [26.9.0-beta.0]: https://github.com/Expressive-Tea/matcha/compare/v26.8.0-beta.0...v26.9.0-beta.0 diff --git a/Cargo.lock b/Cargo.lock index 2f26e48..5622d7a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -260,7 +260,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "matcha-cli" -version = "26.11.0-rc.1" +version = "26.11.0-rc.2" dependencies = [ "assert_cmd", "clap", diff --git a/Cargo.toml b/Cargo.toml index 56ebcfb..6567119 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "matcha-cli" -version = "26.11.0-rc.1" +version = "26.11.0-rc.2" edition = "2021" description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it." license = "MIT" diff --git a/src/template.rs b/src/template.rs index ee5945f..7f8ea2e 100644 --- a/src/template.rs +++ b/src/template.rs @@ -14,7 +14,7 @@ use crate::runtime::Runtime; /// reaches a stable major this becomes a range (`^27`) and the exactness stops /// mattering; until then the `core-freshness` CI job fails when this falls /// behind the `latest` dist-tag, which is what keeps it current. -pub const CORE_VERSION: &str = "26.11.0-rc.1"; +pub const CORE_VERSION: &str = "26.11.0-rc.2"; pub static SHARED: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/shared"); pub static RUNTIME_DENO: Dir = include_dir!("$CARGO_MANIFEST_DIR/template/runtimes/deno"); diff --git a/tests/plugin.rs b/tests/plugin.rs index 3a38dda..817a9a6 100644 --- a/tests/plugin.rs +++ b/tests/plugin.rs @@ -191,7 +191,7 @@ fn package_jsr_writes_the_tree_into_dir() { ); let deno = std::fs::read_to_string(pkg.join("deno.json")).unwrap(); assert!(deno.contains("\"name\": \"@acme/plugin-algo\""), "{deno}"); - assert!(deno.contains("npm:@green-tea/core@26.11.0-rc.1"), "{deno}"); + assert!(deno.contains("npm:@green-tea/core@26.11.0-rc.2"), "{deno}"); // Without it `deno test` needs a `deno install` first, and then fails to // type-check `node:assert` for want of @types/node. assert!(deno.contains("\"nodeModulesDir\": \"auto\""), "{deno}"); -- 2.54.1