Skip to content

build the plugin list from the plugins release asset - #12

Open
adssib wants to merge 1 commit into
mainfrom
plugins-release-asset
Open

adssib wants to merge 1 commit into
mainfrom
plugins-release-asset

Conversation

@adssib

@adssib adssib commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Pairs with patch-it-dev/patch-it-plugins#208 (patch-it-plugins: the plugin list is printed from the registry and attached to each release as plugins.json; docs/plugins.md is deleted there).

What this changes

  • scripts/sync-plugins.mjs reads plugins.json from patch-it-plugins' latest release (https://github.com/patch-it-dev/patch-it-plugins/releases/latest/download/plugins.json, public, no token) instead of copying docs/plugins.md's table from main.
  • It renders the providers grouped by category (the list's own category order), one table per category: provider (linked to its site), source id (linked to its page in patch-it-plugins), layer, what it watches, and the first URL it reads.
  • No committed copy. The page's markers now hold only a "the list is temporarily unavailable" note; when the asset can't be fetched (offline, GitHub down, no asset yet, malformed JSON), the build writes that note instead of keeping an old list, and doesn't fail.
  • Also runs before npm run dev (predev), so the dev server shows the list too.
  • PLUGINS_JSON_URL overrides the source (a URL or file:///path) to preview.
  • README, the page's intro (providers and sources, provider/source ids, layers), the overview page's sentence, and both review prompts (a committed list is blocking) updated.

Tested

  • Rendered from a plugins.json printed by the patch-it-plugins branch (PLUGINS_JSON_URL=file://…): 26 providers, 30 sources, one table per category.
  • Against the real releases/latest today (v0.2.0 has no asset yet): HTTP 404 → the "temporarily unavailable" note, exit 0; the page came back byte-identical to the committed one.
  • I didn't run astro build (no node_modules here); the script only writes plain Markdown tables and a :::note, which the page already used.

Calls I made (please check)

  • Until patch-it-plugins makes its first release after print the plugin list from the registry, commit none patch-it-plugins#208 merges, the page shows "temporarily unavailable". A release right after merging fills it.
  • Category headings: ai → "AI", crm → "CRM", devtools → "Developer tools"; any other id is capitalized (no list of categories kept here).
  • A local build leaves the rendered list as a diff in the working tree (as before); the README says to discard it rather than commit it.

Related PRs

🤖 Generated with Claude Code

sync-plugins now reads plugins.json from patch-it-plugins' latest release
(no token), the list its registry prints, and renders providers grouped by
category between the page's markers. No committed copy: when the asset
can't be fetched, the page says the list is temporarily unavailable and the
build goes on. Also runs before npm run dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adssib <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant