omni-dsh-plugins 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/bin.js +20 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ never ships here.
|
|
|
22
22
|
- Node.js 20 or newer.
|
|
23
23
|
- The official `dsh` executable on `PATH` for add, update and remove operations.
|
|
24
24
|
- Network access for discovery. With no `--catalog`, the CLI reads the snapshot published at
|
|
25
|
-
<https://dsh-plugins.
|
|
25
|
+
<https://dsh-plugins.omniskill.online/catalog.snapshot.json> and accepts the revision that
|
|
26
26
|
snapshot declares, so a plugin merged today is findable today. Passing `--revision` turns the
|
|
27
27
|
fetch into an exact-commit demand and rejects any snapshot declaring a different one.
|
|
28
28
|
|
|
@@ -136,7 +136,7 @@ granting `--allow-code-execution`.
|
|
|
136
136
|
|
|
137
137
|
`--catalog` accepts a local catalog directory, a local
|
|
138
138
|
`omni-dsh-catalog-snapshot-v1` JSON file, or one of two allowlisted HTTPS URLs: the stable
|
|
139
|
-
site-hosted snapshot `https://dsh-plugins.
|
|
139
|
+
site-hosted snapshot `https://dsh-plugins.omniskill.online/catalog.snapshot.json` (the
|
|
140
140
|
operational remote source) or the raw GitHub form embedding the revision in its path.
|
|
141
141
|
Remote snapshots require `--revision <40-character-commit-sha>` and the snapshot document must
|
|
142
142
|
declare exactly that SHA. Redirects, alternate hosts, traversal, symlinks, oversized inputs,
|
|
@@ -144,7 +144,7 @@ and revision mismatches are rejected before catalog validation.
|
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
146
|
npx omni-dsh-plugins search tui \
|
|
147
|
-
--catalog https://dsh-plugins.
|
|
147
|
+
--catalog https://dsh-plugins.omniskill.online/catalog.snapshot.json \
|
|
148
148
|
--revision <published-catalog-revision>
|
|
149
149
|
```
|
|
150
150
|
|
package/dist/bin.js
CHANGED
|
@@ -23774,7 +23774,7 @@ function sanitizedErrorMessage(error) {
|
|
|
23774
23774
|
// src/catalogSnapshot.ts
|
|
23775
23775
|
var CATALOG_SNAPSHOT_FORMAT_V1 = "omni-dsh-catalog-snapshot-v1";
|
|
23776
23776
|
var PUBLIC_CATALOG_RAW_ORIGIN = "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-dsh-plugins";
|
|
23777
|
-
var PUBLIC_SNAPSHOT_SITE_URL = "https://dsh-plugins.
|
|
23777
|
+
var PUBLIC_SNAPSHOT_SITE_URL = "https://dsh-plugins.omniskill.online/catalog.snapshot.json";
|
|
23778
23778
|
var CATALOG_SNAPSHOT_LIMITS = Object.freeze({
|
|
23779
23779
|
snapshotBytes: 128 * 1024 * 1024,
|
|
23780
23780
|
totalFileBytes: 128 * 1024 * 1024,
|
|
@@ -29515,15 +29515,29 @@ function addMutationOptions(command) {
|
|
|
29515
29515
|
"consent to DSH/pnpm lifecycle code (native Windows disabled; use WSL)"
|
|
29516
29516
|
);
|
|
29517
29517
|
}
|
|
29518
|
+
function parseManifestVersion(raw) {
|
|
29519
|
+
const manifest = JSON.parse(raw);
|
|
29520
|
+
const version = manifest.version;
|
|
29521
|
+
if (typeof version !== "string" || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u.test(version)) {
|
|
29522
|
+
throw new Error("the package manifest does not declare an exact version");
|
|
29523
|
+
}
|
|
29524
|
+
return version;
|
|
29525
|
+
}
|
|
29518
29526
|
function publishedVersion() {
|
|
29519
|
-
|
|
29520
|
-
readFileSync(new URL("../package.json", import.meta.url), "utf8")
|
|
29521
|
-
);
|
|
29522
|
-
return manifest.version;
|
|
29527
|
+
return parseManifestVersion(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
29523
29528
|
}
|
|
29524
29529
|
async function runCli(argv, dependencies = defaultDependencies3) {
|
|
29525
29530
|
let result = 0;
|
|
29526
|
-
|
|
29531
|
+
let version;
|
|
29532
|
+
try {
|
|
29533
|
+
version = publishedVersion();
|
|
29534
|
+
} catch (error) {
|
|
29535
|
+
dependencies.stderr(`${sanitizedErrorMessage(error)}
|
|
29536
|
+
`);
|
|
29537
|
+
dependencies.stderr("Command failed safely; no changes were made.\n");
|
|
29538
|
+
return 1;
|
|
29539
|
+
}
|
|
29540
|
+
const program2 = new Command().name("dsh-plugins").version(version).description("Unofficial catalog and safe installer for DeepSeek Harness plugins.").addHelpText(
|
|
29527
29541
|
"after",
|
|
29528
29542
|
"\nUnofficial community project. Not affiliated with, endorsed by, or sponsored by DeepSeek.\nNative Windows add/update/remove with code execution are disabled; use WSL.\nDry-run and read-only catalog/search/info/list/doctor commands remain available.\nNative Windows recovery markers require documented manual recovery.\n"
|
|
29529
29543
|
).configureOutput({
|