Commit Graph
374 Commits
Author SHA1 Message Date
chrnx 8babcb9554 Merge pull request 'fix(release): unblock npm provenance publication' (#15) from hotfix/npm-release-provenance into main
Promote → GitHub / push-github (push) Successful in 6s
CI / build (push) Successful in 35s
Reviewed-on: #15
2026-08-03 03:48:19 +00:00
chrnx 6dd23ed874 chore(release): reconcile main before npm fix
CI / build (pull_request) Successful in 33s
Merge the current public main history while preserving develop's mutable Verdaccio staging policy for the npm provenance hotfix.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 22:45:51 -05:00
chrnx 5fccd3cc8c Merge pull request 'fix(release): validate npm provenance and mutable staging' (#14) from hotfix/npm-release-provenance into develop
CI / build (push) Successful in 33s
Reviewed-on: #14
2026-08-03 03:44:11 +00:00
chrnx 9398a5a2df fix(ci): keep Verdaccio staging mutable
CI / build (pull_request) Successful in 34s
Replace an existing prerelease before publishing the refreshed candidate. Verdaccio remains mutable for validation while npmjs release versions stay immutable.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 22:42:39 -05:00
chrnx 29aafde84c fix(ci): make Verdaccio staging idempotent
CI / build (pull_request) Successful in 32s
Stage only release branches and preserve immutable versions. Repeated identical candidates now exit successfully, while content changes under an existing version require a prerelease bump.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 22:38:56 -05:00
chrnx dbb996dd4c fix(package): declare npm publication metadata
Link the package to its public source, issue tracker, and documentation so npm Trusted Publishing can validate provenance and consumers receive canonical project links.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 22:38:47 -05:00
chrnx 05e59383f1 Merge pull request 'release: promote 26.8.0-beta.0 to main' (#13) from release/26.8.0 into main
Promote → GitHub / push-github (push) Successful in 6s
CI / build (push) Successful in 35s
Reviewed-on: #13
2026-08-03 02:57:35 +00:00
chrnx 97a146a758 Merge branch 'main' into release/26.8.0
Stage → Verdaccio / publish-stg (push) Failing after 21s
CI / build (pull_request) Successful in 33s
2026-08-03 02:57:15 +00:00
chrnx aa3402bd84 ci(release): stage prereleases from release branches
Stage → Verdaccio / publish-stg (push) Successful in 21s
CI / build (pull_request) Successful in 36s
Keep develop free to accept concurrent changes while Verdaccio validates an immutable release candidate. Audit dependencies and reject stable versions before publishing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:43:16 -05:00
chrnx f45ee7d309 Merge pull request 'feat: close router and security gaps for 26.8 beta' (#12) from feat/router-security-beta into develop
CI / build (push) Successful in 39s
Reviewed-on: #12
2026-08-03 02:28:13 +00:00
chrnx 00aef4541b Merge branch 'feat/router-security-beta' into develop
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:22:10 -05:00
chrnx bd3b2556bc docs: remove design whitespace
CI / build (pull_request) Successful in 56s
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:21:13 -05:00
chrnx 87c1226e97 chore(deps): sync deno lockfile
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:19:03 -05:00
chrnx 1db4e01e40 fix(deno): snapshot metadata before websocket upgrade
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:18:40 -05:00
chrnx 74f09d2e0b docs: document router completeness for beta
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:13:59 -05:00
chrnx fcd3df7022 docs(website): align guides with router behavior
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:11:08 -05:00
chrnx 934fbd4c19 ci: gate releases on clean dependency audits
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:03:54 -05:00
chrnx d9276a4769 docs: expand website documentation audit plan
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 21:01:49 -05:00
chrnx 3a56e656bd chore(deps): remediate security advisories
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:56:17 -05:00
chrnx a2acec69bf feat(openapi): document constrained route params
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:47:18 -05:00
chrnx 9a61ba8646 feat(http): complete HEAD and OPTIONS semantics
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:45:44 -05:00
chrnx 63be0ef8f7 feat(router): expose HEAD and OPTIONS decorators
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:40:02 -05:00
chrnx 8e38fffd77 fix(router): reject invalid and ambiguous paths
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:39:09 -05:00
chrnx 790db661e5 feat(router): compile safe constrained patterns
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:36:46 -05:00
chrnx 63a61aeb0b docs: plan router security beta implementation
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:34:03 -05:00
chrnx e343ae501f docs: design router security beta
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-08-02 20:28:11 -05:00
chrnx 813a29001b Merge pull request 'release: merge docs refresh to main' (#11) from develop into main
Stage → Verdaccio / publish-stg (push) Successful in 22s
CI / build (push) Successful in 23s
Promote → GitHub / push-github (push) Successful in 7s
2026-07-18 21:09:01 +00:00
chrnx e0212d14e5 Merge pull request 'docs: refresh README + docs, host at /docs on expressive-tea.io' (#10) from docs/readme-refresh into develop
CI / build (push) Successful in 29s
CI / build (pull_request) Successful in 23s
2026-07-18 21:08:35 +00:00
chrnx 8d923e053c Merge pull request 'release: OIDC publishing + beta dist-tag → main' (#9) from develop into main
CI / build (push) Successful in 24s
Promote → GitHub / push-github (push) Successful in 7s
Stage → Verdaccio / publish-stg (push) Successful in 22s
2026-07-18 20:18:07 +00:00
chrnx ab6b1b1ef2 Merge pull request 'ci: npmjs Trusted Publishing (OIDC, no token)' (#8) from ci/trusted-publishing into develop
CI / build (push) Successful in 29s
CI / build (pull_request) Successful in 24s
2026-07-18 20:17:41 +00:00
chrnx 1a313c21ad ci: publish prereleases under their channel dist-tag, not latest
CI / build (pull_request) Successful in 24s
A beta/alpha/rc version must not become 'latest' on npmjs (else npm install serves a prerelease). Derive the dist-tag from the version: 26.7.0-beta.0 -> beta, stable -> latest.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:59:48 -05:00
chrnx 3ff90b418d ci: publish to npmjs via OIDC Trusted Publishing (no token)
CI / build (pull_request) Successful in 23s
Replaces the NPM_AUTH secret on the prod path with npm Trusted Publishing: id-token: write + npm>=11.5.1, npm exchanges the OIDC token for a short-lived publish token and attaches provenance. Requires a trusted publisher configured on npmjs (Expressive-Tea/green-tea, release.yml).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:53:28 -05:00
chrnx 523e302012 Merge pull request 'release: promote stage fix to main' (#7) from develop into main
CI / build (push) Successful in 24s
Promote → GitHub / push-github (push) Successful in 7s
Stage → Verdaccio / publish-stg (push) Successful in 27s
2026-07-18 19:09:16 +00:00
chrnx 8e822cad17 Merge pull request 'fix(ci): unpublish before publish to Verdaccio' (#6) from fix/stage-unpublish into develop
CI / build (push) Successful in 24s
CI / build (pull_request) Successful in 24s
2026-07-18 19:08:56 +00:00
chrnx 3fe0016dbd fix(ci): unpublish before publish to Verdaccio (registry rejects overwrite)
CI / build (pull_request) Successful in 24s
The staging registry (npm.svc.zoit.services) does not allow overwriting an existing version, so re-publishing the same prerelease on each main merge failed. Unpublish the version first (tolerant --force, no-op when absent) then publish fresh.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-18 14:08:39 -05:00
chrnx e068426582 Merge pull request 'release: promote develop → main (staging)' (#5) from develop into main
CI / build (push) Successful in 24s
Promote → GitHub / push-github (push) Successful in 6s
Stage → Verdaccio / publish-stg (push) Failing after 26s
2026-07-18 19:01:48 +00:00
chrnx 8bd2a3f61c Merge pull request 'ci: stage/promote/release workflows (two-forge pipeline)' (#4) from feat/ci-publish-workflows into develop
CI / build (push) Successful in 24s
CI / build (pull_request) Successful in 32s
2026-07-18 02:18:28 +00:00
chrnx 96d863d402 ci: use the NPM_AUTH secret for both Verdaccio and npmjs publishes
CI / build (pull_request) Successful in 24s
One secret name across forges: Gitea's NPM_AUTH (org-level) = the Verdaccio token for staging; GitHub's NPM_AUTH = the npmjs token for production. Each forge supplies its own value.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 21:17:17 -05:00
chrnx 33df70730b ci: add stage/promote/release workflows for the two-forge pipeline
CI / build (pull_request) Successful in 23s
stage.yml (Gitea-only): publish package to Verdaccio under 'stg' tag on main merge. promote.yml (Gitea-only): mirror only main + version tags to GitHub. release.yml (GitHub-only): publish stable to npmjs on a v* tag. Forge is detected via github.server_url; secrets: VERDACCIO_TOKEN (Gitea), GH_PROMOTE_TOKEN (Gitea, set), NPM_TOKEN (GitHub, pending).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 20:43:43 -05:00
chrnx 5fc37a2df7 Merge pull request 'ci: relocate workflow to .github/workflows (two-forge compat)' (#3) from chore/ci-two-forge into develop
CI / build (push) Successful in 23s
2026-07-18 01:42:52 +00:00
chrnx 2a84331022 ci: relocate CI workflow to .github/workflows for two-forge compatibility
CI / build (pull_request) Successful in 24s
GitHub Actions only reads .github/workflows; Gitea reads both. Relocating (content unchanged) makes the one gate portable across both forges — the foundation for the Gitea(stg)+GitHub(prod) pipeline.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 20:36:36 -05:00
chrnx 91fe8f8aff Merge pull request 'Deep graphs: O(n²) → O(n), plus a boot warning when they're suspiciously deep' (#2) from fix/pipeline-context-on2 into develop
CI / build (push) Successful in 25s
2026-07-18 00:35:28 +00:00
chrnx 3a4cd5a7ce test(bench): reach bench servers cross-host + add scale and Bun/Deno servers
CI / build (pull_request) Successful in 59s
Fastify and the Nest adapters bound 127.0.0.1, unreachable from a separate load generator; bind 0.0.0.0 so two-machine benchmarks work.

Adds scale-{green-tea,express} (step-vs-middleware depth sweeps that surfaced the O(n^2)) and green-tea-{bun,deno} (the same app served via serveBun/serveDeno, to benchmark across runtimes).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 19:05:52 -05:00
chrnx 642ef109b2 feat(app): warn at boot when a route's dependency chain is unusually deep
A route whose need-closure resolves to more than 20 steps is almost always a modeling smell -- a step doing too much, or work that belongs in a provider. Per-request cost is linear, so this is a design nudge, not a perf guard (and a warning, not an error).

Tunable and silenceable via createApp({ warnGraphDepth }): a number sets the threshold, false quiets it. Default 20.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 16:25:31 -05:00
chrnx 4081106813 perf(pipeline): merge step output in place to drop the O(n^2) context copy
runSteps rebuilt the whole request context every step with { ...context, ...output }, so an N-step route paid 1+2+...+N = O(N^2) property copies plus N throwaway objects. At 100 chained steps that measured ~250us/req vs ~100us after the fix (2.5x throughput); per-step cost drops from superlinear to a flat ~0.5us/step.

Mutate one accumulator in place with Object.assign -- O(N). The returned context is now the same object every step observes. Adds a regression guard that fails if a per-step copy is reintroduced; full suite green (322 tests).

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 15:50:59 -05:00
chrnx b72883c2ed docs(runtimes): scope the parity claim to what the suite actually tests
CI / build (pull_request) Successful in 33s
The parity suite compares Node's listener against app.fetch inside Node
('Node is truth') — it does not exercise all four runtimes. Saying 'every
runtime ... enforced by a parity test suite' overstates it; the honest
version is that the others share the same app.fetch/app.upgrade core and
each has its own smoke tests. Also fixed the line crediting Node's
WebSocket support to serveDeno/serveBun — Node does it through listen().

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:27:36 -05:00
chrnx 489aa685bb docs: host the docs at green-tea.expressive-tea.io/docs
The site hangs off the expressive-tea.io cPanel as green-tea.expressive-tea.io.
A four-level docs.green-tea.expressive-tea.io subdomain reads badly and would
need its own AutoSSL cert (the *.expressive-tea.io wildcard stops one level
up). A /docs subfolder needs no extra host, DNS, or cert — it's a path — and
is what most projects do.

So the docs site now builds with base: '/docs' (its dist/ contents drop into
the subdomain's docs/ folder in cPanel), the 77 hard-coded content links are
prefixed, and the two hero actions Starlight doesn't rewrite are fixed by
hand. Verified: /docs/ serves, / 404s, no unprefixed internal href remains.
README points at the new docs URL.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:13:10 -05:00
chrnx c12be9a2f5 docs(site): document matcha, stop contradicting the transport rule, drop Node-only
The streaming guide argued with itself: the table said a plain return
streams by Accept while the section below it, added with the
explicit-transport change, said that same return is a 500. The prose got
swept, the table didn't.

Getting started said green-tea targets Node — true when written, wrong
since the Deno/Bun/edge adapters landed — and led with a manual install
even though matcha scaffolds a live app in two commands. matcha had no
page at all, so the CLI was invisible to anyone reading the docs.

site: pointed at green-tea.dev, which is the marketing site's domain; the
docs deploy to docs.green-tea.dev.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 09:29:04 -05:00
chrnx 0541464093 docs(readme): tell the truth about runtimes, transport, and where the docs live
The README claimed green-tea was Node-only with Deno/Bun/edge "on the
roadmap, not built" — all four have shipped. It also taught that a plain
return of an AsyncIterable streams by Accept, which the explicit-transport
change turned into a 500 TransportMismatchError: the one thing a README
must never do is document behavior that now throws.

docs/ had been frozen since the Starlight site replaced it; nothing but
the README referenced those two files, so they were a second copy to keep
in sync and had already drifted. Point at the site instead.

Also adds what shipped unmentioned (@Html/views/static, the four runtimes,
matcha) and fixes the CHANGELOG's YY.MM.PATCH, which contradicted the
README's correct explanation of why the month is not zero-padded.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 09:14:13 -05:00
chrnx 502b2c6b72 Merge branch 'feature/mesh-link-health' into develop
CI / build (push) Successful in 1m2s
Link health for mesh: say what is actually wrong, and notice it without waiting
for a user to find out.

Writing the tests for the status codes turned up three bugs. A teapot with a live
control channel could never shut down — control connections were the one kind of
long-lived socket nobody registered for force-close, so server.close() waited on
a teacup that had no reason to hang up. A downed teapot answered 500 after a full
30s timeout, having queued the frame on a closed socket to wait out a verdict
already known; it now answers 503 at once, and a live-but-slow teapot answers 504.
And the heartbeat's first close code, 1011, silently did nothing: a client may
only send 1000 or 3000-4999, so it threw `invalid code` into a catch that swallows
throws, leaving the link open while looking closed.

Ping/pong are mesh frames, not WebSocket protocol pings, because Deno's and Bun's
platform WebSocket does not expose ws.ping(). They land in v1 while the wire has
no deployed peers to break.

Reconnect, and reconciling app-scope values that outlive their teapot from cache,
stay out — post-beta, on their own spec.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-15 23:54:21 -05:00