2acd4561ffc98a3414e630438b671c1d06ce46e9
110
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2acd4561ff |
chore(release): 26.11.0-rc.2
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 36s
CI / starter (deno) (pull_request) Failing after 36s
CI / installer (ubuntu-latest) (pull_request) Successful in 40s
CI / starter (node) (pull_request) Successful in 3m1s
CI / starter (bun) (pull_request) Successful in 41s
CI / starter (edge) (pull_request) Successful in 1m8s
CI / core-freshness (pull_request) Has been skipped
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 <diego.resendez@zero-oneit.com> |
||
|
|
af2a853855 |
Merge pull request 'docs(template): current generators and plugin docs in AGENTS.md' (#27) from docs/agents-plugins-llms into develop
CI / starter (bun) (push) Successful in 45s
CI / starter (deno) (push) Successful in 37s
CI / starter (node) (push) Successful in 33s
CI / installer (macos-14) (push) Successful in 3s
CI / check (push) Successful in 31s
CI / starter (edge) (push) Successful in 55s
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 34s
|
||
|
|
958d69dfd9 |
Merge branch 'develop' into docs/agents-plugins-llms
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 42s
CI / installer (ubuntu-latest) (pull_request) Successful in 1m2s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 36s
CI / starter (bun) (pull_request) Successful in 43s
CI / starter (deno) (pull_request) Successful in 44s
CI / starter (edge) (pull_request) Successful in 49s
|
||
|
|
e58d230596 |
Merge pull request 'docs: Homebrew install via expressive-tea/tap' (#25) from docs/homebrew-install into develop
CI / starter (deno) (push) Successful in 43s
CI / installer (macos-14) (push) Successful in 3s
CI / starter (edge) (push) Successful in 51s
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 39s
CI / check (push) Successful in 36s
CI / starter (bun) (push) Failing after 36s
CI / starter (node) (push) Successful in 42s
|
||
|
|
8573cdfb4b |
Merge develop into docs/homebrew-install
CI / check (pull_request) Successful in 28s
CI / starter (edge) (pull_request) Successful in 55s
CI / installer (ubuntu-latest) (pull_request) Successful in 40s
CI / starter (bun) (pull_request) Successful in 45s
CI / starter (deno) (pull_request) Successful in 33s
CI / starter (node) (pull_request) Successful in 38s
CI / core-freshness (pull_request) Has been skipped
CI / installer (macos-14) (pull_request) Successful in 3s
|
||
|
|
bcd5f79990 |
Merge pull request 'test(smoke): kill matcha run's whole process group' (#26) from fix/smoke-kill-server-group into develop
CI / check (push) Successful in 35s
CI / installer (macos-14) (push) Successful in 3s
CI / starter (bun) (push) Successful in 33s
CI / starter (edge) (push) Successful in 46s
CI / installer (ubuntu-latest) (push) Successful in 11s
CI / core-freshness (push) Has been skipped
CI / starter (node) (push) Successful in 42s
CI / starter (deno) (push) Successful in 44s
|
||
|
|
56b5d7581f |
docs(template): current generators and plugin docs in AGENTS.md
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (node) (pull_request) Successful in 35s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / starter (edge) (pull_request) Failing after 57s
CI / check (pull_request) Successful in 36s
CI / starter (bun) (pull_request) Successful in 44s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
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 <diego.resendez@zero-oneit.com> |
||
|
|
0865d9a479 |
test(smoke): kill matcha run's whole process group
CI / core-freshness (pull_request) Has been skipped
CI / installer (macos-14) (pull_request) Successful in 5s
CI / starter (bun) (pull_request) Successful in 6m40s
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / check (pull_request) Successful in 37s
CI / starter (deno) (pull_request) Successful in 43s
CI / starter (edge) (pull_request) Successful in 56s
CI / starter (node) (pull_request) Successful in 42s
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 <diego.resendez@zero-oneit.com> |
||
|
|
ecbd441eb4 |
docs: Homebrew install via expressive-tea/tap
CI / starter (bun) (pull_request) Successful in 45s
CI / starter (edge) (pull_request) Failing after 56s
CI / starter (deno) (pull_request) Successful in 36s
CI / starter (node) (pull_request) Successful in 34s
CI / core-freshness (pull_request) Has been skipped
CI / installer (macos-14) (pull_request) Successful in 5s
CI / check (pull_request) Successful in 28s
CI / installer (ubuntu-latest) (pull_request) Successful in 9s
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
53d54cf250 |
Merge pull request 'ci: build macOS on macos-15 on GitHub' (#24) from fix/github-macos-runner into develop
CI / installer (macos-14) (push) Successful in 3s
CI / starter (deno) (push) Failing after 34s
CI / starter (edge) (push) Successful in 51s
CI / core-freshness (push) Has been skipped
CI / starter (node) (push) Successful in 36s
CI / installer (ubuntu-latest) (push) Successful in 16s
CI / check (push) Successful in 29s
CI / starter (bun) (push) Successful in 45s
|
||
|
|
64ec413c25 |
ci: build macOS on macos-15 on GitHub
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 38s
CI / starter (node) (pull_request) Successful in 42s
CI / starter (bun) (pull_request) Successful in 41s
CI / starter (deno) (pull_request) Failing after 36s
CI / starter (edge) (pull_request) Successful in 45s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
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 <diego.resendez@zero-oneit.com> |
||
|
|
647aef5a1b |
Merge pull request 'chore(release): 26.11.0-rc.1' (#22) from release/26.11.0-rc.1 into develop
CI / starter (deno) (pull_request) Failing after 28s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (push) Successful in 42s
CI / installer (ubuntu-latest) (pull_request) Successful in 12s
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 33s
CI / check (push) Successful in 35s
CI / installer (macos-14) (push) Successful in 4s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 13s
Release / build (ubuntu-latest, aarch64-unknown-linux-musl) (push) Successful in 1m29s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 1m29s
CI / installer (macos-14) (pull_request) Successful in 5s
CI / starter (edge) (push) Successful in 40s
CI / core-freshness (push) Has been skipped
Release / promote-tag (push) Successful in 5s
Release / verify-linux-arm64 (push) Has been cancelled
CI / check (pull_request) Successful in 26s
Release / prepare (push) Successful in 2s
CI / starter (bun) (pull_request) Successful in 45s
CI / starter (edge) (pull_request) Successful in 38s
Release / publish-crate (push) Has been skipped
CI / starter (node) (pull_request) Successful in 43s
CI / starter (bun) (push) Successful in 35s
CI / starter (deno) (push) Failing after 37s
CI / installer (ubuntu-latest) (push) Successful in 10s
Promote → GitHub / push-github (push) Successful in 5s
|
||
|
|
42b5cc2616 |
chore(release): 26.11.0-rc.1
CI / core-freshness (pull_request) Has been skipped
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 36s
CI / starter (deno) (pull_request) Failing after 37s
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 42s
CI / starter (bun) (pull_request) Successful in 42s
CI / starter (edge) (pull_request) Successful in 44s
matcha now releases with core: this version scaffolds @green-tea/core 26.11.0-rc.1. Bump Cargo.toml and the lockfile, close the CHANGELOG section, and record the edge and core-freshness changes from #21. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
04d7a25402 |
Merge pull request 'feat(add,create): matcha add cookie and matcha create transformer' (#21) from feat/cookie-transformer into develop
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 10s
CI / starter (bun) (push) Successful in 39s
CI / starter (deno) (push) Failing after 36s
CI / starter (edge) (push) Successful in 49s
CI / starter (node) (push) Successful in 43s
CI / installer (macos-14) (push) Successful in 3s
CI / check (push) Successful in 36s
|
||
|
|
8e45c1170f |
feat(templates): scaffold against core 26.11.0-rc.1; edge installs core from npm
CI / starter (bun) (pull_request) Successful in 45s
CI / starter (deno) (pull_request) Failing after 32s
CI / starter (edge) (pull_request) Successful in 52s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 35s
CI / installer (ubuntu-latest) (pull_request) Successful in 12s
CI / installer (macos-14) (pull_request) Successful in 4s
CI / check (pull_request) Successful in 36s
core#93 is fixed in RC.1: the npm ESM build's createRequire banner no longer throws on workerd, so the edge starter drops its .npmrc and the npm:@jsr alias and installs @green-tea/core from npm like every other runtime. doctor still reads the alias, so edge projects scaffolded before this keep working. The weekly core-freshness job compares against core's latest dist-tag: release candidates and the stable release publish there, and beta stays on 26.9.0-beta.2. Starter smoke passes locally on node, deno, bun and edge. Deno needs --minimum-dependency-age=0 until RC.1 is a day old. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
8bd558991d |
feat(add,create): matcha add cookie and matcha create transformer
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Failing after 31s
CI / starter (deno) (pull_request) Failing after 32s
CI / core-freshness (pull_request) Has been skipped
CI / starter (edge) (pull_request) Failing after 37s
CI / installer (ubuntu-latest) (pull_request) Successful in 9s
CI / starter (node) (pull_request) Failing after 32s
add cookie reads a cookie with @cookie and sets one through a @Transformer and setCookie, since core sends Set-Cookie only as a header. create transformer writes a typed TransformerFn and prints how to attach it; there is nothing to wire into a module. starter-smoke now covers both. add cookie uses @cookie and setCookie, which are new in core RC.1, so this lands together with the CORE_VERSION bump. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
d9f2b07802 |
Merge pull request 'fix(create,starters): safe names and no overwrite in create; node starter awaits listen and declares engines' (#20) from fix/create-names into develop
CI / check (push) Successful in 28s
CI / starter (deno) (push) Successful in 41s
CI / starter (edge) (push) Successful in 39s
CI / core-freshness (push) Has been skipped
CI / starter (bun) (push) Successful in 31s
CI / installer (ubuntu-latest) (push) Successful in 10s
CI / starter (node) (push) Successful in 34s
CI / installer (macos-14) (push) Successful in 3s
|
||
|
|
a8f1658e4d |
fix(create,starters): safe names and no overwrite in create; node starter awaits listen and declares engines
CI / starter (deno) (pull_request) Successful in 33s
CI / starter (edge) (pull_request) Successful in 38s
CI / starter (node) (pull_request) Successful in 32s
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 / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 12s
matcha create derives the class name and its token from what was typed: current-user becomes CurrentUserStep providing currentUser, where it used to write a file that did not parse. It refuses names that cannot be a class, and step or provider names whose token core already provides. It also refuses to replace an existing file instead of silently discarding edits. The node starter awaits app.listen so boot and bind failures stop the process with their own error, and the node and edge starters declare engines node >=22 to match core. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
865d87487b |
Merge pull request 'feat(agents): scaffold AGENTS.md and CLAUDE.md, and add matcha agents' (#19) from feat/agents-md into develop
CI / starter (edge) (push) Successful in 39s
CI / starter (node) (push) Successful in 33s
CI / installer (macos-14) (push) Successful in 3s
CI / starter (bun) (push) Successful in 32s
CI / starter (deno) (push) Successful in 31s
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 11s
CI / check (push) Successful in 28s
|
||
|
|
9641bd51a7 |
feat(agents): scaffold AGENTS.md and CLAUDE.md, and add matcha agents
CI / installer (macos-14) (pull_request) Successful in 2s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (node) (pull_request) Successful in 33s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
CI / check (pull_request) Successful in 26s
CI / starter (bun) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 5m38s
LLM coding agents have no training data on green-tea, so they write Express. Every starter now ships an AGENTS.md, with a CLAUDE.md that imports it. It states the rules that differ: a graph, not a chain; needs declared in the signature; the graph validated at boot; reuse existing tokens. It also points the agent at matcha routes|tokens|explain --json and at the llms.txt inside the installed core. matcha agents writes the same files into an older project, with the core version that project actually depends on. It leaves existing files alone unless --force is given. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
ea510c5112 |
Merge pull request 'feat(introspect): routes, tokens and --json, over one query layer an MCP server can reuse' (#18) from feat/introspect-json into develop
CI / installer (macos-14) (push) Successful in 3s
CI / check (push) Successful in 27s
CI / starter (bun) (push) Successful in 31s
CI / starter (edge) (push) Successful in 38s
CI / installer (ubuntu-latest) (push) Successful in 12s
CI / starter (node) (push) Successful in 33s
CI / starter (deno) (push) Successful in 32s
CI / core-freshness (push) Has been skipped
|
||
|
|
9acb0b34c9 |
fix(tokens): name the request as the source of its built-in tokens
CI / check (pull_request) Successful in 27s
CI / starter (deno) (pull_request) Successful in 31s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 13s
CI / starter (node) (pull_request) Successful in 33s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / starter (bun) (pull_request) Successful in 30s
CI / starter (edge) (pull_request) Successful in 36s
matcha tokens listed req as '— (nothing provides it)'. An agent reading that would write a provider for req. A needed token with no producing node must come from the request (req, params, body, …): app.ready() has already validated the graph, so a truly missing token would have failed it. Mark those source: "request" in the JSON and 'the request (built in)' in the text. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
a4827f2e13 |
feat(introspect): routes, tokens and --json, over one query layer an MCP server can reuse
CI / installer (macos-14) (pull_request) Successful in 4s
CI / check (pull_request) Successful in 27s
CI / starter (deno) (pull_request) Successful in 32s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 14s
CI / starter (node) (pull_request) Successful in 32s
CI / starter (bun) (pull_request) Successful in 30s
CI / starter (edge) (pull_request) Successful in 36s
Agents that inspect a green-tea app should read its graph instead of guessing it. - Add `matcha routes`: every route with its transport and chain. - Add `matcha tokens`: every token, who provides it and who needs it, handlers included. - explain, routes and tokens take --json. It prints one JSON document on stdout; a refused query prints a structured error on stderr and exits 1. All introspection now goes through src/introspect.rs. Each Query variant runs one script that prints a single JSON envelope, and the CLI renders the data as text unless --json is given. Text output is unchanged. A future `matcha mcp` serves the same queries as tools without a second implementation, which is why the formatting moved from the generated script into Rust. Adds serde_json (dtolnay, 1.0.154). Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
47d1d6e037 |
Merge pull request 'ci: move workflow actions off the deprecated Node 20 runtime' (#17) from chore/ci-node24-actions into develop
CI / installer (macos-14) (push) Successful in 3s
CI / check (push) Successful in 25s
CI / starter (bun) (push) Successful in 30s
CI / installer (ubuntu-latest) (push) Successful in 16s
CI / starter (node) (push) Successful in 32s
CI / starter (deno) (push) Successful in 33s
CI / starter (edge) (push) Successful in 35s
CI / core-freshness (push) Has been skipped
|
||
|
|
99c8578120 |
ci: move workflow actions off the deprecated Node 20 runtime
CI / check (pull_request) Successful in 27s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / starter (node) (pull_request) Successful in 31s
CI / installer (macos-14) (pull_request) Successful in 10s
CI / starter (bun) (pull_request) Successful in 31s
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
actions/checkout and actions/setup-node v4 -> v5, softprops/action-gh-release v2 -> v3; all three run on Node 24. setup-deno@v2, setup-bun@v2 and crates-io-auth-action@v1 already resolve to Node 24 releases. Jobs keep node-version 22. Refs Green-Tea/core#103 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
202c4b2711 |
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
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 / core-freshness (push) Has been skipped
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 13s
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
Release / publish-crate (push) Has been skipped
CI / starter (node) (pull_request) Successful in 34s
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 (deno) (pull_request) Successful in 33s
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
CI / core-freshness (pull_request) Has been skipped
Release / prepare (push) Successful in 3s
Release / verify-linux-arm64 (push) Has been cancelled
|
||
|
|
9e719b159d |
test(plugin): skip the rollback test where the user can write a read-only file
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 31s
CI / core-freshness (pull_request) Has been skipped
CI / installer (macos-14) (pull_request) Successful in 3s
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 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> |
||
|
|
ecdc46cac3 |
fix(plugin): the review's smaller findings
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
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 / starter (node) (pull_request) Successful in 34s
CI / installer (macos-14) (pull_request) Successful in 4s
CI / core-freshness (pull_request) Has been skipped
- `--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>
|
||
|
|
4358091d07 |
fix(plugin): close the review's gaps in names, prompts and the generated test
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> |
||
|
|
e4a350fcbf |
fix(plugin): refuse names whose factory would not compile
`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> |
||
|
|
70b51e5de4 |
docs: document create plugin, and version 26.9.0-beta.1
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
52241cc9a6 |
fix(plugin): let a generated package run deno test straight away
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> |
||
|
|
efe7ad6027 |
feat(new): scaffold core 26.9.0-beta.2, and boot before binding on Deno and Bun
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> |
||
|
|
42c1148903 |
feat(plugin): --package scaffolds a JSR-first plugin package
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> |
||
|
|
3c3b7aaf8e |
feat(plugin): matcha create plugin scaffolds an in-app plugin and wires it
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>
|
||
|
|
f2a3c16023 |
feat(plugin): ask questions at a terminal and take defaults everywhere else
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
c5b4a56ccd |
feat(plugin): derive a plugin's slug and identifiers from what was typed
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
56340f6b21 |
Merge pull request 'ci: make Gitea the gate before GitHub and crates.io, and stop pushing every tag' (#13) from hotfix/release-flow-ordering into main
CI / check (push) Successful in 28s
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 10s
CI / starter (deno) (push) Failing after 5m22s
Release / publish-crate (push) Has been skipped
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 27s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 1m5s
Release / promote-tag (push) Successful in 4s
CI / installer (macos-14) (push) Successful in 3s
CI / starter (bun) (push) Successful in 30s
CI / starter (edge) (push) Successful in 36s
CI / starter (node) (push) Successful in 33s
Promote → GitHub / push-github (push) Successful in 5s
Release / prepare (push) Successful in 2s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 11s
Release / build (ubuntu-latest, aarch64-unknown-linux-musl) (push) Successful in 1m9s
Release / verify-linux-arm64 (push) Has been cancelled
Reviewed-on: #13v26.9.0-beta.0 |
||
|
|
6304ad7e24 |
ci: use the expression form for the tag ref, not the env var
CI / check (pull_request) Successful in 27s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 32s
CI / installer (macos-14) (pull_request) Successful in 3s
CI / starter (bun) (pull_request) Successful in 32s
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>
|
||
|
|
483cc23dea |
ci: make this forge the gate it was meant to be, and stop pushing every tag
CI / installer (macos-14) (pull_request) Successful in 3s
CI / starter (bun) (pull_request) Successful in 30s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 36s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 10s
CI / check (pull_request) Successful in 27s
CI / starter (node) (pull_request) Successful in 32s
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> |
||
|
|
db27c35953 |
Merge pull request 'release: 26.9.0-beta.0' (#12) from release/26.9.0-beta.0 into main
CI / installer (macos-14) (push) Successful in 4s
CI / check (push) Successful in 28s
CI / starter (bun) (push) Successful in 30s
CI / starter (deno) (push) Successful in 33s
Promote → GitHub / push-github (push) Failing after 5s
CI / starter (edge) (push) Successful in 37s
CI / core-freshness (push) Has been skipped
CI / installer (ubuntu-latest) (push) Successful in 10s
CI / starter (node) (push) Successful in 35s
|
||
|
|
82d6b809da |
chore(release): 26.9.0-beta.0
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 28s
CI / starter (deno) (pull_request) Successful in 32s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 12s
CI / starter (bun) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 37s
CI / starter (node) (pull_request) Successful in 32s
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> |
||
|
|
0d96a085f9 |
Merge pull request 'The CLI catches up with the framework: graph/explain/openapi/doctor, an edge target, and a scaffold that is not two releases behind' (#11) from feature/template-freshness-and-graph into develop
CI / installer (macos-14) (push) Successful in 3s
CI / check (push) Successful in 28s
CI / starter (bun) (push) Successful in 30s
CI / starter (deno) (push) Successful in 33s
CI / starter (edge) (push) Successful in 36s
CI / core-freshness (push) Has been skipped
CI / starter (node) (push) Successful in 34s
CI / installer (ubuntu-latest) (push) Successful in 11s
Reviewed-on: #11 |
||
|
|
04a45a7765 |
ci: install shellcheck where the runner image lacks it
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 31s
CI / installer (macos-14) (pull_request) Successful in 2s
CI / check (pull_request) Successful in 26s
CI / starter (bun) (pull_request) Successful in 32s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 38s
The `installer` job failed on `ubuntu-latest` and passed on `macos-14`. The two
legs run the same `test_install.sh`; the only difference is the shellcheck step,
which is guarded to Linux — and `catthehacker/ubuntu:act-22.04`, which is what
Gitea's `ubuntu-latest` maps to, does not have shellcheck. GitHub's hosted image
does, so a bare `shellcheck` call is a step that passes on one forge and fails on
the other, which is precisely what this file's header comment ("Lives in
.github/workflows so both Gitea and GitHub run it") exists to prevent. Mine, and
one commit after writing the same warning into CONTRIBUTING.md.
Installed only when absent, so GitHub pays nothing for it. Verified by running
the step inside the image that failed: shellcheck 0.8.0 installs and runs.
Nothing else regressed — `check`, all four `starter` legs and `installer
(macos-14)` were green on the same run.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
|
||
|
|
87cf3eac82 |
feat(release): a Linux arm64 binary, built through one cross toolchain
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 33s
CI / starter (deno) (pull_request) Successful in 32s
CI / starter (edge) (pull_request) Successful in 39s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Failing after 6s
CI / starter (node) (pull_request) Successful in 32s
CI / installer (macos-14) (pull_request) Successful in 5s
The installer refused Linux arm64 and sent you to `cargo install --git`, so Graviton, a Raspberry Pi, an ARM CI runner and Docker on Apple Silicon all needed a Rust toolchain to install a CLI whose whole point is not needing one. `rustup target add` could never have fixed it. `tree-sitter` and `tree-sitter-typescript` both compile C through the `cc` crate, so the target needs a real cross C compiler, and Ubuntu ships none for aarch64 musl. zig is one, for both arches — which is why the x86_64 leg moved onto it too rather than keeping `musl-tools` beside it. One toolchain for Linux beats a working one plus a second one that only the new target uses. Verified before touching the pipeline: all four targets cross-compile from macOS arm64 through zig, C included, producing binaries of the right architecture and format. Each release job now also runs the artifact it built, wherever the runner can execute it. agartha is a macOS host executor, so it runs both macOS binaries — the Intel one through Rosetta, confirmed by running the built binary on that host. Rosetta is probed rather than assumed, because a hosted runner may not have it and a smoke that hard-failed there would block a release over the runner's configuration rather than over the binary; the probe is an `if` rather than an AND-list so a missing Rosetta cannot end the step through `set -e`. Whether the aarch64 Linux binary gets started that way is not a property of the pipeline, though — it depends on what `ubuntu-latest` resolves to on the forge that fired. `verify-linux-arm64` removes the dependency by pinning an arm64 Linux runner and installing the published binary there through `install.sh`, so the answer is the same on every release, and the installer's arm64 branch and its checksum verification are covered against the real assets on the way. It carries the same `server_url` guard `publish-crate` already uses, since GitHub offers such runners and Gitea does not, and a job pinned to a label one forge lacks would queue there forever. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
88090f34a2 |
fix(install): resolve latest without the rate-limited API, and test the installer
`install.sh` asked the release API for the latest tag. That API allows 60 requests an hour per IP without a token, which one office behind a NAT or a CI runner exhausts — and a throttled response has no `tag_name`, so the installer reported "could not resolve latest release tag" and gave no hint that rate limiting was the cause. It now follows the `/releases/latest` redirect, which carries no such limit and which Gitea implements identically, and keeps the API as the fallback for the wget path that cannot read the effective URL. Verified against the real release: resolves v26.8.0-beta.0, verifies the checksum, and the installed binary runs. Releases with a hyphen in the tag are now flagged as prereleases. Nothing set the flag, so every beta answered `/releases/latest` — the very thing the installer resolves by default. That is harmless while every release is a beta and wrong the moment a stable one exists, because the next beta published after it would silently displace it for everyone installing without MATCHA_VERSION. `test_install.sh` has existed since the installer landed and no workflow ever ran it — the same shape as the starter gap: a check that exists, passes, and guards nothing. CI runs it now on Linux and macOS with shellcheck alongside, and it covers a third case, since the branch this commit changes fails by producing a message: an unresolvable `latest` must name MATCHA_VERSION and must leave no binary behind. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
5c8f72b409 |
feat(openapi): the OpenAPI document, and the paperwork the crate shipped without
`Cargo.toml` has declared `license = "MIT"` since the first release and the published crate carried no license text, so anyone vendoring the source had the claim without the grant. `LICENSE` is that text. `DCO` is the certificate the README has been requiring a sign-off against without shipping, and `CONTRIBUTING.md` says how — including that GitHub is a mirror of `main` and tags, so a pull request there is carried upstream by a maintainer rather than merged, which would put the two forges out of sync. `CHANGELOG.md` reconstructs 26.7.0 and 26.8.0-beta.0 from their tags. The CLI ships on its own version line, so the header says what that does and does not mean about the core version a scaffold is pinned to, and each entry says when that pin moved. `matcha openapi` prints core's structural OpenAPI 3.1 for the route table — `--title`, `--api-version`, `--out`. It reuses the entry resolution and the generated-script runner that `graph` and `explain` already had, so it is the same `app.ready()` that resolves the graph without booting providers. Structural is the honest word: paths, methods and parameters come from the decorators, and nothing invents a response schema. The loose end from the capability table is closed. `cli.rs` still carried its own copies of the `create` kinds and the `add` capabilities, so adding either meant editing two files that could disagree — a value the parser accepts and the dispatcher rejects. Both now read the list from the module that owns it, and the three `create` piece kinds became rows in a table rather than near-identical match arms, which also retires a `too_many_arguments` allow. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com> |
||
|
|
a3250da225 |
feat(edge): a Cloudflare Workers target, and a doctor for the quiet failures
`matcha new --runtime edge` scaffolds a Worker: `nodejs_compat`, `edgeHandler` as the default export, and wrangler's `[assets]` serving `./public` so `/` is the same page as on the other three runtimes and `/zen` the same stream from the worker. `matcha run` is `wrangler dev`, which is real workerd, so edge stops being a deploy-only target. Runtime detection puts `wrangler.toml` ahead of `package.json`, since an edge project has both, and the graph resolves under node — `src/app.ts` imports core, never `edgeHandler`. Getting there turned up a core defect, filed as Green-Tea/core#93: the npm ESM build cannot load on workerd at all. tsup's `createRequire(import.meta.url)` banner runs at module scope and `import.meta.url` is undefined there, so `@green-tea/core/edge` throws before any of its own code runs — while `src/node-require.ts` is written precisely to make that lazy and survivable. core's own edge test cannot see it: it bundles `src/`, so `dist/` is the one artifact users install and the one nothing exercises. The scaffold installs from JSR, which publishes source with no banner and boots clean; the `.npmrc` says why and links the issue, and both it and the alias can go once it is fixed. `matcha doctor` reports the misconfigurations that fail confusingly rather than loudly: `experimentalDecorators` missing, which turns every `@Route` into a syntax error blaming the decorator; a core pin that cannot resolve or that does not match what is installed; an entry that does not export `app`; and `@Ws` or multipart routes whose lazy-loaded peer dependency is absent, which compile and then fail at the first request. Every check is a file read — no runtime spawned, nothing fetched — so it works before the project installs. It reads the installed version from the package's own manifest rather than core's exported `VERSION`, which is stale in the published artifact (Green-Tea/core#92) and would give the wrong answer to the one check that exists to catch a wrong version. The starter smoke and the CI matrix gained edge as a fourth runtime. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012x1UPw987zNSxjH2DxHy2C |
||
|
|
0a2713d377 |
feat(add): ws and upload handlers, --controller, and a resumable sse stub
`matcha add` covered three capabilities against a framework that has shipped
several more, and one of the three did not work.
`ws` and `upload` are new. Both name the optional peer dependency they need on
success — core lazy-requires `ws` and `busboy`, so a missing one is an error at
the first request rather than at boot, and the moment to mention it is when the
handler is written rather than when it 501s.
The `sse` stub predates 26.9: it yielded bare values, so an `EventSource`
reconnect restarted the iterable from its beginning and lost the gap in silence.
It now tags each event with `sse(data, { id })` and reads `last-event-id` to
resume — verified end to end, a reconnect at id 41 resumes at 42.
`buffer` returned `Buffer.from('hello')` and never could have worked: the
capability is named for the *transport*, `TransformerFn` returns `body: string`,
and the default `JsonTransformer` is `JSON.stringify` — so the route answered
`{"type":"Buffer","data":[104,...]}`. It now demonstrates `@Transformer`, which
is what actually governs a whole-response route, and answers `text/csv`.
`add` refused to act when a project had more than one controller. It still
refuses to guess, but it lists the candidates and `--controller <path>` is the
way through.
The starter smoke now adds every capability and type-checks them together, and
caught what unit tests could not: `MultipartBody` in a decorated signature is
TS1272 under `isolatedModules` + `emitDecoratorMetadata`, so the handler
compiled on node and bun and failed on Deno. Types in decorated signatures now
go through `wire::add_type_import`, and `find_named_imports` became type-aware
in both directions — merging a value symbol into an `import type` line would
erase the decorator at runtime.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012x1UPw987zNSxjH2DxHy2C
|
||
|
|
827e6863ad |
feat(graph): draw the graph, and stop scaffolding a two-month-old core
The CLI's last feature work was 12 July; core has shipped 26.8 and 26.9 since. Two consequences, fixed together because they share an entry-file convention. Every runtime overlay pinned `^26.7.0-beta.0`. Core is prerelease-only, and npm's semver excludes a prerelease from any range whose comparators carry a different major.minor.patch — so that caret is not a loose pin, it is a pin to the oldest matching prerelease that nothing can move off. Every project `matcha new` has produced since July installed 26.7.0-beta.0 and could not upgrade: no logger, no request budget, no resumable `@Sse` id, and none of the crashes 26.9 fixed. The pin is now exact, lives in one `CORE_VERSION` const, and Deno resolves through JSR — which is core's native path for Deno and the one 26.9 repaired. Nothing caught that because CI never ran JavaScript. `cargo test` proves the CLI writes the files it means to write; it cannot prove those files describe a project the current core will run. `scripts/starter-smoke.sh` scaffolds, installs, type-checks, boots, curls `/` and the `/zen` stream, and introspects a real starter per runtime; a weekly job fails when the pin falls behind the `beta` dist-tag. The smoke immediately found a second defect: the bun overlay carried no Bun types, so `tsc --noEmit` — and therefore `matcha create --check` — failed on every bun project the CLI has ever scaffolded. `matcha graph` and `matcha explain <pattern>` close the widest gap in the surface: the framework's claim is that an API is a graph rather than a middleware chain, `toMermaid`/`toDOT`/`graph`/`explain` have been exported all along, and the CLI could not draw any of it. Both reach the app through `app.ready()`, which resolves the graph and is documented as deliberately not running provider factories — asking for a diagram must not open your database connections. Formatting lives in the generated script rather than in Rust, which keeps serde out for output `console.log` already has the values for. That needed an app the CLI can import without binding a port, so the starter now composes the graph in `src/app.ts` and leaves `src/main.ts` holding only the serve call. `create module` follows, preferring `src/app.ts` and falling back to `src/main.ts` so projects scaffolded before the split keep working. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012x1UPw987zNSxjH2DxHy2C |