Import make-index.mjs
This commit is contained in:
parent
8175049815
commit
2bda1a460a
|
|
@ -1,10 +1,20 @@
|
||||||
// Regenerate the QQ plugin market index (DSH plugin-market index format 1).
|
// 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
|
// The index lists the four QQ-dsh component plugins. Each entry's install
|
||||||
// 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
|
// source is a git source pinned to the repo HEAD commit; versions are read
|
||||||
// commit at generation time, so re-running this after a release is the whole
|
// live from each repo's package.json, so re-running this after a release is
|
||||||
// maintenance story. The Gitea repos are public, so the branch endpoints are
|
// the whole maintenance story. The Gitea repos are public, so the branch
|
||||||
// read anonymously. Output: ./index.json next to this script.
|
// 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
|
// node make-index.mjs
|
||||||
import { writeFileSync } from 'node:fs'
|
import { writeFileSync } from 'node:fs'
|
||||||
|
|
@ -82,7 +92,7 @@ for (const plugin of PLUGINS) {
|
||||||
{
|
{
|
||||||
version: version,
|
version: version,
|
||||||
publishTimestamp: head.timestamp,
|
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: {},
|
engines: {},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue