24 Commits
Author SHA1 Message Date
chrnx 943a6aca82 Merge pull request 'ci: move workflow actions off the deprecated Node 20 runtime' (#8) from chore/ci-node24-actions into develop
Promote → GitHub / push-github (push) Successful in 5s
2026-10-18 04:42:25 +00:00
chrnx 2583b40c83 ci: move workflow actions off the deprecated Node 20 runtime
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>
2026-10-17 22:55:51 -05:00
chrnx efe42d71b2 fix(deps): resolve npm audit advisories
http-cache-semantics, sharp, source-map-js (and smol-toml in the marketplace)
via npm audit fix.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-10-17 22:55:31 -05:00
chrnx b59ef424c0 Merge pull request 'docs: point plugin authors at matcha create plugin' (#5) from docs/matcha-create-plugin into develop
Promote → GitHub / push-github (push) Successful in 6s
2026-09-25 00:31:39 +00:00
chrnx b623a6687a docs: point plugin authors at matcha create plugin
matcha 26.9.0-beta.1 scaffolds a package that already meets the
listing's ESM rule and carries the Runtimes table the review asks for,
so CONTRIBUTING and the first step on the home say so.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 19:31:00 -05:00
chrnx 927742f11c Merge pull request 'ci: promote main and develop to the public GitHub repository' (#3) from ci/promote-to-github into develop
Promote → GitHub / push-github (push) Successful in 12s
2026-09-24 15:38:22 +00:00
chrnx 002f604d8b ci: promote main and develop to the public GitHub repository
main becomes GitHub main and develop becomes GitHub contrib, the same
two-branch mirror core uses. Feature branches stay on Gitea. Neither
push is forced, so contrib refuses a push while it holds external
merges that have not been carried into develop.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:38:12 -05:00
chrnx dcf236afe1 Merge pull request 'feat: plugin pages, ESM-only npm, and a home that sells the listing' (#2) from feature/plugin-pages into develop 2026-09-24 15:30:00 +00:00
chrnx de7d695f65 Merge pull request 'fix: list the official plugins from JSR, where they now live' (#1) from fix/jsr-only-entries into develop 2026-09-24 15:29:20 +00:00
chrnx 6373737edf fix: stop saying plugin registration order never matters
It does when two plugins provide the same token: the one registered
last wins. The card keeps only what holds in general, that execution
order comes from what each node needs and provides.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:26:17 -05:00
chrnx f43b1b690a fix: make no plugin isolation claim on the home
"The plugin never gets your app" still overstated it: a plugin's step
receives the live request context and can overwrite keys in it, and a
plugin node can take over a token an app step provides. The card now
makes the one claim that holds, that the graph works out the order.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:24:47 -05:00
chrnx a68ac09e4c fix: drop the claim that a plugin cannot replace an app's step
It can. A plugin node that provides a token an app step already
provides wins when the graph is built, and the app's step drops out
with no error. The card now says only what mountPlugin guarantees: a
plugin gets bus.on, scope.add and onShutdown, and never the app itself.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:23:00 -05:00
chrnx c3a3e3461e fix: keep the home's claims to what the code guarantees
"Node · Deno · Bun · workerd" under the hero read as a promise every
plugin runs everywhere; it now says the core version needed and that
runtimes are per plugin. Core-as-types is a convention review checks,
not something the listing enforces. A plugin cannot reorder or remove
the app's steps, which is narrower than "anything already there". And
the listing only rebuilds at a cut, not on every release.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:20:26 -05:00
chrnx e60de81ac0 feat: sell the listing to plugin authors, not just describe it
The home had the facts but no pull. It now shows a whole plugin in the
hero, explains what a plugin is and why it is cheap to write, says what
listing here gets you, and ends on the honest hook: the listing is new,
so the first community plugins get the front row. Every claim is one the
code backs today.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:18:51 -05:00
chrnx 8b5d1d47e1 fix: close three README and version gaps found in review
A README could borrow the site's own classes (card__link::after is a
full-page overlay), so classes are now limited to what shiki writes.
<source srcset> was not rebased, which broke the common dark-mode logo.
Yanked JSR versions were listed as current; the registry hides them and
so does the listing now.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 10:03:18 -05:00
chrnx b26201ee06 feat: lead the home with an invitation to list a plugin
The home opened with a definition of a plugin and left 'Add your
plugin' for the end. It now says where to publish and how to be
listed, and the definition and review criteria move to CONTRIBUTING.
It also stops claiming automatic checks that do not run yet.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:57:03 -05:00
chrnx 750781d839 feat: give every plugin a page with its README and versions
Clicking a plugin opened nothing; a developer expects what JSR shows.
Each page renders the README of the newest version, lists every
published version, and gives the install command for the registry the
entry recommends.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:56:00 -05:00
chrnx 84dae62864 feat: read entries, registry data and READMEs in one loader
renderMarkdown only exists inside a content loader, and the README
should render through the site's own pipeline. One loader also means
the home and every plugin page share a single registry read per build.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:54:51 -05:00
chrnx d61b577a48 feat: clean plugin READMEs before they reach the page
A README is third-party HTML that can change after review. It is
sanitized against a closed allowlist on every build, and its relative
links are pointed at the published version so images and docs resolve
without knowing the author's branch.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:54:11 -05:00
chrnx 2ce1e0c4e5 feat: accept npm plugins only when they are ESM only
green-tea is ESM end to end and its Node floor is moving up; a CJS or
dual package brings a require path that is the first thing to break.
The check lives in readEntry, so it bites on CI with every other
registry check, and validate.mjs inherits it when it is written.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:53:32 -05:00
chrnx 4b8d56e8e7 fix: list the official plugins from JSR, where they now live
The three @green-tea plugins shipped JSR-only on 2026-09-23, so their
npm: lines pointed at packages that 404 and failed the build on CI. npm
stays a valid registry for anyone else's entry.

preview.mjs goes with them: it stood in for unpublished packages. Off CI
a registry failure now leaves the entry out instead of rendering data
nobody read from a registry.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-24 09:52:58 -05:00
chrnx 34288666be fix: the contribute section is as wide as every other one
It was capped at 760px while the grid above it runs to 1120px, and since it
shares .wrap's margin: 0 auto that cap centred it — so its left edge sat inboard
of the cards and the page looked broken rather than deliberately narrow.

The cap existed for line length, which is real, but it belongs on the prose and
not on the section. That is the split the hero already used: a full-width .hero
holding a .hero__lead capped at 62ch. This now does the same.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-20 12:51:59 -05:00
chrnx 3c4f1312c8 feat: give the listing its own header and footer
It read as a page of green-tea's site, closing with a breadcrumb back to a
parent. It is not one: it has its own review loop, its own contributors and its
own deploy day, so it closes itself instead of handing the reader off.

A sticky header with the wordmark "Green Tea. / plugins" — family name, then
what this one is — and a footer with its own columns and colophon. Both are
lifted from green-tea-site so the family is recognisable without this being a
subpage of it.

`.wrap` is horizontal padding only now. The header and footer share that
container, so vertical rhythm belongs to each section rather than to the box
they have in common.

Also adds the "Add your plugin" section the nav points at, which is what the
README described and the site never said out loud, and the favicon, which was
missing entirely.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-20 12:49:14 -05:00
chrnx 3ee6928d94 feat: the plugin listing, built from registry data
One YAML file per plugin. There is deliberately no version and no runtimes
field in an entry: both are read from npm and JSR when the page is built, so a
card cannot go stale or claim support a package never declared.

The strictness lives in one flag. Under CI a registry that does not answer
fails the build, because a listing that silently drops a plugin is worse than
no deploy. Locally an unpublished package falls back to scripts/preview.mjs and
says so — a site nobody can look at until its packages ship is a site nobody
can design. The three seed plugins are unpublished today, so that fallback is
what renders them; it goes away with them.

Every card shows all four runtimes, never only the supported ones. Colour means
the package declares it runs there, dim grey means it does not — and the
tooltip is what separates "declared unsupported" from "nobody said", which look
identical but are not the same fact.

The brand marks carry no <title>: an SVG's own title wins over its parent's,
which is why the first attempt showed a help cursor and no tooltip. They are
aria-hidden and pointer-events: none, so the label and the hover both belong to
the list item, and the tooltip works from the keyboard too.

Type and palette are self-hosted from green-tea-site, so the sites read as one
project rather than three that share a colour.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-20 12:44:06 -05:00