diff --git a/make-index.mjs b/make-index.mjs index 4b31b72..6970313 100644 --- a/make-index.mjs +++ b/make-index.mjs @@ -1,10 +1,20 @@ // Regenerate the QQ plugin market index (DSH plugin-market index format 1). // -// The index lists the QQ-dsh bundle and its four components. Each entry's -// install source is the org's Gitea npm registry (registry spec -> DSH shows its native update button); versions are read live from each repo's package.json -// commit at generation time, so re-running this after a release is the whole -// maintenance story. The Gitea repos are public, so the branch endpoints are -// read anonymously. Output: ./index.json next to this script. +// The index lists the four QQ-dsh component plugins. Each entry's install +// source is a git source pinned to the repo HEAD commit; versions are read +// live from each repo's package.json, so re-running this after a release is +// the whole maintenance story. The Gitea repos are public, so the branch +// endpoints are read anonymously. Output: ./index.json next to this script. +// +// Why git and not the org's Gitea npm registry (tried 2026-11-12, reverted +// the same day): Gitea's npm registry strips the `dsh` field from the +// package metadata it serves, and the Discover UI's pre-install inspect +// (pluginManager.inspect, kind=registry) refuses any package whose registry +// metadata lacks dsh.bundle — every install failed with "declares no +// dsh.bundle" on the user's machine. Git sources skip that check and the +// installer reads the repo's real package.json. Updates for git installs +// go through dsh-better-chat's Discover update button (installBundle +// overwrite); DSH's native update button does not apply to git sources. // // node make-index.mjs import { writeFileSync } from 'node:fs' @@ -82,7 +92,7 @@ for (const plugin of PLUGINS) { { version: version, publishTimestamp: head.timestamp, - source: { type: 'npm', registry: 'https://git.qyhhh.top/api/packages/DeepsSeekHarness/npm' }, + source: { type: 'git', url: `${WEB}/${plugin.repo}`, commit: head.commit }, engines: {}, }, ],