dsh-plugin-toolkit 0.20.18 → 0.20.19

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.20.19
2
+
3
+ - **`audit --home` expands `~` and `~\` before the scan, and a bare flag is
4
+ refused.** The local audit resolves its home like every other user-named
5
+ path, so `audit --home '~/.dsh'` and `audit --home '~\.dsh'` read
6
+ `$HOME/.dsh` on cmd and PowerShell instead of a folder literally named `~`.
7
+ A checked-in home with one declared plugin whose `dsh.bundle.patch` names
8
+ `./missing.yml` now pins both spellings through the shipped CLI: each prints
9
+ the `broken` row, names the missing patch, exits `1`, and leaves no `~`
10
+ directory in the working folder; the absolute-path control exits `1` with the
11
+ same row. `--home` with no value exits `2` and says what it needs, rather
12
+ than scanning the current folder and reporting "no plugins installed" with
13
+ exit `0`. `--help` documents the flag.
14
+
1
15
  ## 0.20.18
2
16
 
3
17
  - **`verify` resolves the installed root the way the loader does.** It used to
package/lib/cli.mjs CHANGED
@@ -56,6 +56,7 @@ export const HELP = `dsh-plugin — preflight and release DeepSeek Harness plugi
56
56
 
57
57
  dsh-plugin audit [flags] every installed plugin: valid, and loaded by the running app
58
58
  dsh-plugin audit --host http://127.0.0.1:54133
59
+ dsh-plugin audit --home '~/.dsh' the profile home; both tilde spellings expand
59
60
 
60
61
  dsh-plugin audit --remote --from <file> audit a list and print one line per repository
61
62
  dsh-plugin audit --remote --from repos.txt
@@ -107,6 +108,7 @@ Flags
107
108
  --budget <seconds> how long to wait for npm, a positive number, default 480
108
109
  --pr commit the index on a branch, push it, open the pull request
109
110
  --merge with --pr: wait for checks, then squash-merge
111
+ --home <dir> with audit: the profile home to scan, default ~/.dsh
110
112
  --base <branch> base branch for the pull request, default main
111
113
  --name <package-name> with init: the npm name, required
112
114
  --title <text> with init: the tab title, default "My panel"
@@ -188,7 +190,14 @@ function flags(argv) {
188
190
  else if (token === '--pr') parsed.pr = true;
189
191
  else if (token === '--merge') parsed.merge = true;
190
192
  else if (token === '--publish') parsed.publish = true;
191
- else if (token === '--home') parsed.home = argv[++index];
193
+ else if (token === '--home') {
194
+ // Like every other path flag: a bare `--home` is a missing path, not
195
+ // permission to swallow the next option. Otherwise `audit --home
196
+ // --timeout 50` would scan a folder literally named `--timeout` and
197
+ // report "no plugins installed" with exit 0.
198
+ const next = argv[index + 1];
199
+ parsed.home = next === undefined || next.startsWith('--') === true ? '' : argv[++index];
200
+ }
192
201
  else if (token === '--base') parsed.base = argv[++index];
193
202
  else if (token === '--market') parsed.market = argv[++index];
194
203
  else if (token.startsWith('--') === true) throw new Error(`unknown flag ${token}`);
@@ -540,6 +549,10 @@ export async function run(argv, io = console, deps = {}) {
540
549
 
541
550
  if (command === 'audit') {
542
551
  const { audit, parseJobs } = await import('./audit.mjs');
552
+ if (options.home !== undefined && String(options.home).trim() === '') {
553
+ io.error('dsh-plugin audit --home needs a directory path');
554
+ return 2;
555
+ }
543
556
  if (options.remote !== undefined || options.from !== undefined || options.patchDir !== undefined) {
544
557
  let remote = remoteTarget(options);
545
558
  let from = options.from;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-toolkit",
3
- "version": "0.20.18",
3
+ "version": "0.20.19",
4
4
  "description": "Preflight, release and test DeepSeek Harness plugins: check a folder or any GitHub repository, wait for npm to actually serve the version, and keep the market index honest.",
5
5
  "type": "module",
6
6
  "bin": {