`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>
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>
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>
`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>
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>
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>
One package per plugin, typed against core without depending on it at runtime.
The convention lives in AGENTS.md because the design it comes from is not
published anywhere a contributor can read.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>