Promote develop to main — JSR-only plugins, and the GitHub mirror #7

Merged
chrnx merged 31 commits from develop into main 2026-09-23 17:03:17 +00:00
31 Commits
Author SHA1 Message Date
chrnx 4a98046da2 Merge pull request 'Prepare the repository to be public: scrub infrastructure, add community files' (#8) from chore/scrub-before-publish into develop
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / build (pull_request) Successful in 14s
CI / runtimes (deno) (pull_request) Successful in 12s
CI / dco (push) Has been skipped
CI / build (push) Successful in 12s
CI / runtimes (edge) (push) Successful in 9s
CI / runtimes (deno) (push) Successful in 11s
CI / runtimes (bun) (push) Successful in 11s
Promote → GitHub / push-github (push) Successful in 6s
2026-09-23 17:01:05 +00:00
chrnx 57c4707bc5 ci: run on both forges, and watch contrib
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
Adding `contrib` to the mirror without adding it here was a hole, not a gap.
A pull request against a branch a workflow does not list triggers **nothing** —
not a reduced set of checks, none — so an external contributor would have seen
no signal at all, and neither would whoever merged their work. The branch and
its CI had to land together; the previous commit shipped only half of that.

So `contrib` joins `develop` and `main` in both trigger lists, and the three
`github.server_url != 'https://github.com'` guards are gone. Their reason went
with Verdaccio: the packages used to build against a core that existed only on
an internal registry a public runner cannot reach, and they resolve
`@green-tea/core` from npmjs.org now. Guarding CI to one forge while inviting
contributions to the other cannot both be true.

The dco job keeps `github.event_name == 'pull_request'`, matching core, so it
reports on pull requests and costs nothing on push.

Verified the way a public runner would: the workflow names no secrets and no
internal hosts, and a fresh clone runs `npm ci`, lint, typecheck, the Node suite
and `deno publish --dry-run` with nothing configured.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:58:48 -05:00
chrnx e1ea1542c9 docs: add the community files GitHub expects before this goes public
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 8s
The repository had a LICENSE and nothing else. Adds CONTRIBUTING, a code of
conduct, a security policy, the DCO, issue templates and a pull request
template — the set GitHub checks for, written for these packages rather than
copied from core.

**This adds a `contrib` branch, reversing a decision made earlier today.** The
promotion originally mirrored `main` alone, on the reasoning that a repository
with no documented contribution flow does not need a branch nobody targets. That
reasoning held right up until we decided to document one. CONTRIBUTING has to
send people somewhere, `main` is the wrong answer — a pull request there puts the
forges out of step and breaks the next promotion — so `develop → contrib` is
back, the same arrangement core runs.

What is adapted rather than inherited:

- Node 22, not core's 18, which is what every package here already requires.
- No build step anywhere. JSR transpiles the source, so `deno publish --dry-run`
  is what stands in for one.
- The four traps an assistant falls into *here*: turning `import type` into a
  value import, adding a build, writing for Node alone, and changing `engines`
  without the README's Runtimes table.
- SECURITY scopes each package separately, and sends vulnerabilities in the
  framework itself to core — same people, but the advisory has to live where the
  fix does.

There is also a plugin proposal template, which exists to ask the question that
is cheaper in a paragraph than in a written pull request: whether a thing belongs
in the official set at all, or is better as the author's own package. The
template says the second outcome is first-class, because it usually is.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:55:22 -05:00
chrnx a3f57e61d9 chore(ci): stop naming internal infrastructure in files that go public
`main` is about to be mirrored to a public repository for the first time, so
everything in the tree becomes readable by anyone. Two things in here were
written when only the development forge could see them.

`ci.yml` carried the internal registry's hostname in a step that authenticated
to it — twice. That step is also dead: `.npmrc` no longer points the @green-tea
scope anywhere, and core resolves from npmjs.org. So this removes a published
hostname and an instruction that does nothing, in the same edit.

`AGENTS.md` named the origin by its repository path. Core's public copy says
"Development lives on a private Gitea instance" and stops there, which is the
right level: a reader learns the shape of the workflow without learning where it
lives, and a path they cannot reach tells them nothing anyway.

`promote.yml` keeps saying the forge by name, because core's public copy does and
the two should read alike. Naming the product is not the problem; naming the host
was.

Checked the rest while here: no credentials, no keys, no personal paths or
addresses, no issue templates routing anyone to a forge they cannot open.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:50:52 -05:00
chrnx fd82d10c2b Merge pull request 'ci(plugins): mirror Gitea main to GitHub main' (#6) from ci/promote-to-github into develop
CI / dco (push) Has been skipped
CI / build (push) Successful in 13s
CI / runtimes (bun) (push) Successful in 12s
CI / runtimes (edge) (push) Successful in 9s
CI / runtimes (deno) (push) Successful in 11s
CI / dco (pull_request) Successful in 3s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 14s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / runtimes (deno) (pull_request) Successful in 11s
2026-09-23 16:43:30 +00:00
chrnx 51c54c1cc4 ci(plugins): mirror Gitea main to GitHub main
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 13s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 12s
CI / runtimes (edge) (pull_request) Successful in 9s
The public repository exists but nothing populates it. This is the same
promotion core uses, cut down to what this repository actually has: one branch.

Only `main`, and no `contrib` counterpart. Core mirrors `develop` as `contrib`
because outside contributions land there, and that flow is documented. Here it
is not, so a second mirrored branch would be a branch nobody targets.

Tags stay off the push, `--tags` included. Core's reason was that the same tag
means one thing on each forge; here it is simpler and sharper — these packages
publish to JSR, and a JSR version can never be replaced or removed, so a tag must
never reach the public forge as a side effect of promoting a branch.

The push is not forced, and the step fails early with a readable message when
GH_PROMOTE_TOKEN is missing rather than building a remote URL with an empty
credential and failing on the push with an authentication error instead. The
secret is set on this repository; the guard is for whoever forks or rebuilds it.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:41:25 -05:00
chrnx ea25331631 Merge pull request 'chore(plugins): publish to JSR alone, and drop the npm build' (#5) from chore/jsr-only-plugins into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 10s
CI / build (push) Successful in 14s
CI / runtimes (deno) (push) Successful in 10s
CI / runtimes (edge) (push) Successful in 9s
2026-09-23 16:35:02 +00:00
chrnx 686a4527cf docs(plugins): give each package a header, and stop leaning on a marketplace
CI / dco (pull_request) Successful in 7s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 10s
Each README now opens the way core's does — logo, name, one line saying what
the package is for. The package README is the page JSR renders, so it is the
first thing anyone sees, and three of them opened with a bare `# @green-tea/x`.

The logo is an absolute URL rather than a relative path, deliberately. Core's
README points at `./assets/logo.png`, and core's `publish.include` does not ship
`assets/` — so that image 404s on core's JSR page today. Repeating the pattern
three more times would have repeated the bug three more times.

Also drops the claim that npmjs.org discovery does not matter "where the
marketplace is the channel anyway". There is no marketplace yet, and a plugin
should stand on its own rather than on a site that has not shipped. The cost is
now stated plainly instead of argued away.

Corrects "their built code never imports it": with JSR publishing the source,
the build is JSR's, not ours. What holds is that a type import leaves nothing
behind, so the published JavaScript never mentions core.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 11:24:09 -05:00
chrnx 16f8329794 docs(plugins): say how to install now that npm is not an option
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 15s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / runtimes (deno) (pull_request) Successful in 11s
The READMEs still described a dual publish, and none of them carried an install
command at all — so the instruction a reader would infer, `npm i
@green-tea/jwt`, is the one command that no longer works. Each package README is
also the page JSR renders, which makes it the first thing anyone sees.

Adds `npx jsr add` to all three, with the deno and bun forms, and says plainly
that there is no npmjs.org package rather than letting someone find out from a
404.

Also corrects a claim in the root README that this branch made false: "installing
one never pulls a second copy of core". Measured while deciding this change — a
plugin names an exact core in `deno.json`, and across a minor boundary npm nests
a second copy instead of deduplicating. The copy is inert, since a plugin's built
code never imports core, and that is worth saying precisely: what is guaranteed
is which core *runs*, not how many are on disk.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 10:26:10 -05:00
chrnx 8499aaa760 fix(ci): resolve core from npm, not Verdaccio
CI / dco (pull_request) Successful in 6s
CI / runtimes (deno) (pull_request) Successful in 12s
CI / build (pull_request) Successful in 14s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
`npm ci` has been failing on `develop` with `EINTEGRITY` for `@green-tea/core`,
independently of any branch — verified by running it on a clean clone of
`develop` before touching anything. Every job that installs was red; only `dco`,
which does not, was green.

Verdaccio proxies npmjs.org. When core 26.9.0-beta.2 was published for real on
2026-09-22, the staged tarball under the same version was superseded by the
upstream one, and the integrity recorded in the lockfile stopped matching what
the registry serves. Nothing in this repository changed; the thing it pinned
did.

`.npmrc` existed only because that version lived on Verdaccio alone, which its
own comment said would end at Plan B3. It ended early: core is on npmjs.org, so
the scope line goes and the lockfile now resolves from
`registry.npmjs.org` with the integrity npm published.

The `if:` guards keeping CI on Gitea stay. Their stated reason is gone — a
GitHub runner can reach npm — but turning CI on over there is its own change,
and the repository has no GitHub mirror yet.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 10:21:53 -05:00
chrnx 4caf8809df chore(plugins): publish to JSR alone, and drop the npm build
CI / dco (pull_request) Successful in 4s
CI / build (pull_request) Failing after 8s
CI / runtimes (bun) (pull_request) Failing after 7s
CI / runtimes (deno) (pull_request) Failing after 9s
CI / runtimes (edge) (pull_request) Failing after 7s
The second registry was costing a tsup config per package, a dual `exports`
map and a `dist/` that could go stale between a merge and a release — and it
was not buying a reader anything. `npx jsr add @green-tea/<name>` installs
under npm, yarn, pnpm and bun through `npm.jsr.io`: one line in `.npmrc`, and
the import specifier stays `@green-tea/<name>`. The `@jsr/` name only ever
appears in the lockfile.

Nothing is published yet — all three packages are absent from both registries
— so this costs no consumer anything, and it is the reversible direction:
adding npm later breaks nobody, while removing it after a publish would.

JSR is also the only one of the two that can record *where a plugin runs*, per
package, which is not cosmetic for a framework whose claim is one app on four
runtimes. `jwt` needs `node:fs/promises` and cannot serve workerd; `metrics`
imports nothing and runs everywhere. npm has nowhere to put that.

`private: true` stays and becomes the guard: an accidental `npm publish` now
fails rather than shipping entry points that describe a build nobody runs.
`test/workspace.test.ts` pins that invariant instead of the dual-registry one.

The CI job keeps the name `build` deliberately — renaming it would change a
required status check on the protected branches, which is a separate change.
`deno publish --dry-run` in the `runtimes` job now stands in for the build, and
it is the publish path these packages actually take.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-23 10:13:39 -05:00
chrnx 3e8707034c Merge pull request 'docs: list every package, and show the graph doing the work' (#4) from docs/steps-and-index into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 12s
CI / build (push) Successful in 17s
CI / runtimes (edge) (push) Successful in 8s
CI / runtimes (deno) (push) Successful in 13s
2026-09-19 17:34:35 +00:00
chrnx 772f4d11a9 docs: list every package, and show the graph doing the work
CI / dco (pull_request) Successful in 3s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 18s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 10s
The root README still advertised one package, three releases in.

jwt and rate-limit both demonstrated themselves from inside a handler, which
reads as a middleware chain with extra steps. Signing does belong there — it is
the response to that one request — but verifying is a precondition shared by
every protected route, and its result is what those routes are actually asking
for. Shown as a `@Step` that provides `user`, so the handler asks for `user` and
never for `jwt`.

rate-limit gains the same treatment plus the constraint that makes it work:
the step must provide a token the handler names. `subgraphFor` builds each
route's closure backwards from the handler's `needs`, so a step providing
something nobody asks for is not in the closure and never runs — the limit
would silently not apply, which is the worst way for a rate limiter to fail.
The inline call is kept as the smaller option, with what it costs.

metrics is left alone: rendering a scrape really is a route's job.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-19 12:24:23 -05:00
chrnx dcc9c3d42b Merge pull request 'build: publish a real build to npm, and the source to JSR' (#3) from feature/package-builds into develop
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 11s
CI / build (push) Successful in 19s
CI / runtimes (deno) (push) Successful in 11s
CI / runtimes (edge) (push) Successful in 9s
2026-09-19 17:06:43 +00:00
chrnx 3b1eceecb9 build: publish a real build to npm, and the source to JSR
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 18s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 9s
Every package exported `./src/index.ts` and had no build at all, which made the
npm half of the dual publish unusable. Measured against a staging registry with
`@green-tea/metrics` installed into a clean project: Node threw
ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING, `--experimental-strip-types` threw
the same error because Node refuses to strip types under `node_modules`
unconditionally, and Deno-via-npm threw it too. Only Bun could import it. The
release pipeline would have published that to both registries at once.

JSR needs no help — it transpiles on publish and hands Node an ESM package with
generated declarations — so `deno.json` keeps exporting `src/`. The build exists
for npm alone, as CJS and ESM: core is `"type": "commonjs"` and publishes both,
so a CJS application has to be able to `require()` a plugin.

Core stays external in the declarations. tsup bundles devDependencies by
default, and convention rule 8 puts core there, so without that line every
plugin would have shipped a frozen private copy of a contract core owns.

Verified by packing all three and consuming them from outside the workspace:
`require()` and `import` both resolve under Node, Bun and Deno, and `tsc`
type-checks clean under `node16` and `bundler` resolution.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-19 11:58:54 -05:00
chrnx a7253196dc Merge pull request 'feat: rate-limit and metrics plugins' (#2) from feature/rate-limit-metrics into develop
CI / dco (push) Has been skipped
CI / build (push) Successful in 13s
CI / runtimes (bun) (push) Successful in 12s
CI / runtimes (edge) (push) Successful in 7s
CI / runtimes (deno) (push) Successful in 13s
2026-09-19 16:58:41 +00:00
chrnx e1773ae1e0 build: record the two new packages in the lockfile
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Successful in 12s
CI / runtimes (bun) (pull_request) Successful in 11s
CI / runtimes (deno) (pull_request) Successful in 10s
CI / runtimes (edge) (pull_request) Successful in 10s
npm ci verifies the lockfile against every workspace package.json and refuses to
install when they disagree, so adding rate-limit and metrics without refreshing
the lock failed all four CI jobs at their first step.

Nothing caught it locally: the contract tests import through relative paths
(../src/index.ts) rather than by package name, so the new workspaces never
needed to be linked into node_modules for the suite to pass. Verified now by
running npm ci itself rather than npm install.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:33:39 -05:00
chrnx de0081ddae feat(metrics): publish the collector and a transformer to serve it
CI / dco (pull_request) Successful in 5s
CI / build (pull_request) Failing after 8s
CI / runtimes (bun) (pull_request) Failing after 6s
CI / runtimes (deno) (pull_request) Failing after 7s
CI / runtimes (edge) (pull_request) Failing after 6s
The transformer is exported instead of a route: the path, the auth and whether
the endpoint exists are the application's decisions, and a plugin that mounted
/metrics itself would be taking them.

No onShutdown — a bus subscription is an entry in a set and keeps nothing alive,
which is what rule 7 asks about. Closes green-tea#68.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:27:08 -05:00
chrnx 5a74cad793 feat(metrics): count request:end, and only request:end
A failed request emits three lifecycle events. request:end is the terminal and
universal one, so it is the request counter; request:failed is additional and
gets its own series. Counting both as requests is the double count issue #64
was filed for.

Labels come from route, which the route table bounds, never from name, which
carries the arriving path and is bounded by nothing — issue #65.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:26:32 -05:00
chrnx 22e77ee452 feat(metrics): declare the package and what it refuses to label
The README carries the cardinality rule up front: label on route, which the
route table bounds, never on name, which nothing bounds. That is the mistake
issue #65 was filed for and the one a collector makes by default.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:25:48 -05:00
chrnx f72c391646 test(rate-limit): measure that close() lets the process exit
Rule 7 says nothing a plugin opens outlives close(), and the only portable probe
is a process: a leaked interval keeps all three runtimes alive, a cleared one
lets each exit in well under a second.

Verified the test fails with onShutdown removed — it reports the process still
alive after 2s — because a leak test that passes while leaking is worth nothing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:25:17 -05:00
chrnx 8ac46fed61 feat(rate-limit): publish the limiter as a named plugin
Extracted from patitas-peludas onto the object contract. The node now takes the
name it provides — the original registered 'rate-limit' while providing
'rateLimit', so two instances shared a node name and rule 2 could not hold.

onShutdown closes the store this plugin built. One passed in owns its own
lifecycle, and is closed only if it offers a close().

Every test that builds an app closes it, through a helper that says why: the
sweep timer is deliberately not unref'ed, so an app left open keeps the test
runner alive after its assertions have passed. That is the same behaviour the
exit test measures, so these exercise the shutdown path in passing.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:22:45 -05:00
chrnx 14ed9c38be feat(rate-limit): carry the error brand instead of extending core
The original extended core's HttpError, which is a value import and makes the
published plugin need core at run time. The brand is a registry-wide symbol, so
core renders the 429 without this package depending on it, and it survives two
copies of core in one tree where instanceof would not.

The fields asserted here are exactly the ones HttpErrorLike declares. That core
really renders them is proven end to end in the limiter's own tests, which read
a 429 and its Retry-After back out of app.fetch.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:18:49 -05:00
chrnx 66afb59103 feat(rate-limit): sweep expired windows instead of walking the map
hit() called evictExpired on every new or expired key, which is a full walk of
the map — O(N^2) over N callers, and a client rotating addresses drives it on
purpose. A timer armed on the first hit does the same work off the hot path.

It is not unref'ed, deliberately: the timer holds the process open so that
failing to release it fails the exit test rather than leaking quietly.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:18:26 -05:00
chrnx b15ce29315 feat(rate-limit): declare the package and the runtimes it claims
No workerd: the default store counts per isolate, and an edge deployment has
many, so the limit it would enforce is not the one configured. The README says
so rather than leaving someone to find out.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:17:45 -05:00
chrnx 74f297dafd test: pick the child-process command from the host runtime
The exit test spawns a probe and asserts it dies on its own, and the contract
files run unchanged on three runtimes — so the argv has to be decided at run
time rather than written for Node and skipped elsewhere.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-18 13:17:12 -05:00
chrnx d8ffb09ddc Merge pull request 'feat: plugins workspace with @green-tea/jwt' (#1) from feature/scaffold-jwt into develop
CI / dco (push) Has been skipped
CI / build (push) Successful in 11s
CI / runtimes (bun) (push) Successful in 12s
CI / runtimes (deno) (push) Successful in 11s
CI / runtimes (edge) (push) Successful in 10s
2026-09-18 04:20:47 +00:00
chrnx 7be37f5184 ci: gate every package on Gitea
CI / dco (pull_request) Successful in 3s
CI / build (pull_request) Successful in 11s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / runtimes (deno) (pull_request) Successful in 11s
CI / runtimes (edge) (pull_request) Successful in 8s
Lint, format, complexity, typecheck and the Node suite on the engines floor,
then Deno and Bun for the packages that declare them. Gitea only until core
comes from npm, because the version these packages build against lives on
Verdaccio.

The JSR dry-run is kept rather than deferred: it passes locally on Deno 2.9.6,
because `nodeModulesDir: manual` resolves core from the tree `npm ci` installed,
so JSR's checker never needs that version to exist on npm.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-17 23:18:22 -05:00
chrnx 1c0b6bde91 feat(jwt): load signing keys at boot as a named plugin
Extracted from patitas-peludas onto the object plugin contract. Core is a type
import only, so installing the plugin never drags in a second core or a version
warning; a bad key still fails boot, which the contract tests now pin.

The extraction moves from jose 5 to jose 6, and that is not a version bump: jose
6 refuses a private CryptoKey in jwtVerify, where jose 5 accepted one and derived
the public half itself. The original keeps a single key per signer and verifies
with the key it signed with, which works on 5 and throws
"CryptoKey instances must be of type public" on 6 — for every asymmetric
algorithm, so ES*, RS*, PS* and EdDSA alike. Symmetric keys are unaffected, which
is exactly why one HS256 test would have shipped it.

importJWKKey now imports the key twice for an asymmetric pair: as given, to sign
with, and with the private fields stripped, to verify with. A symmetric key has
no public half, so it keeps one secret for both. The round-trip is covered per
algorithm family rather than once, because one algorithm is not coverage — it is
the gap the defect lived in.

The get() helper in the contract tests is generic in its body: Response.json()
is typed Promise<unknown>, so reaching into the payload did not typecheck.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-17 23:11:55 -05:00
chrnx 42a2f490e8 test: check each package against the plugin convention
Rules 8 and 9 are the two a reviewer cannot see from a diff: where core sits in
package.json, and whether engines, the README table and JSR still agree. A
static test makes a drift fail the build instead of reaching a user.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-17 23:02:12 -05:00
chrnx efffaebb96 build: npm and Deno workspace with core's gates
Same lint, format and complexity gates as core, plus a lint rule that keeps
core a types-only import in plugin sources. Runtime suites are chosen from each
package's engines, so declaring a runtime is what puts a package under its test.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-17 23:00:49 -05:00