dsh-plugin-toolkit 0.20.24 → 0.20.25
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 +21 -1
- package/lib/audit.mjs +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
## 0.20.
|
|
1
|
+
## 0.20.25
|
|
2
|
+
|
|
3
|
+
- **`audit` reads a profile `package.json` saved with a UTF-8 BOM instead of
|
|
4
|
+
calling its bundles unlisted.** The profile reader passed the BOM straight to
|
|
5
|
+
`JSON.parse`, which throws; the catch then returned no bundles, so a plugin
|
|
6
|
+
that `dsh.profile.bundles` really did list was reported as missing and the
|
|
7
|
+
repair said `add it to dsh.profile.bundles` rather than `restart the app`.
|
|
8
|
+
`readProfileBundles` now strips a leading run of U+FEFF through the same
|
|
9
|
+
`stripBom` helper `readManifest` uses. A BOM profile lists its bundles and a
|
|
10
|
+
malformed profile still degrades to no bundles; tests cover one BOM, a
|
|
11
|
+
doubled BOM, the malformed control, and the audit row's restart repair.
|
|
12
|
+
|
|
13
|
+
- **The BOM repair is locked at the CLI boundary.** A test replays the
|
|
14
|
+
six-trial experiment (three BOM profiles, three no-BOM controls), installing
|
|
15
|
+
the same listed plugin and pointing `audit --home` at a fake app graph that
|
|
16
|
+
does not contain it. It requires 6/6 `restart the app once to load it`
|
|
17
|
+
sentences and zero `does not list it`; on 0.20.12 the three BOM trials print
|
|
18
|
+
the unlisted cause and an edit the profile already has. The test spawns the
|
|
19
|
+
real CLI, so a future change that bypasses `readProfileBundles` cannot pass.
|
|
2
20
|
|
|
3
21
|
- **A check run with a conclusion is settled even if GitHub leaves its status
|
|
4
22
|
at `in_progress`.** On 2026-11-11 GitHub wrote `conclusion: success` and
|
|
@@ -22,6 +40,8 @@
|
|
|
22
40
|
leave `lib/secret.js` out of the tarball and `doctor` to report it on three
|
|
23
41
|
consecutive runs, so the check cannot drift from the packer.
|
|
24
42
|
|
|
43
|
+
## 0.20.24
|
|
44
|
+
|
|
25
45
|
- **A failed `market/<version>` push is named, not a raw exec error.** With
|
|
26
46
|
`--pr`, a rejected or denied branch push used to surface only as
|
|
27
47
|
`Command failed: git push -u origin market/<version>` from the exec wrapper.
|
package/lib/audit.mjs
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
doctor,
|
|
17
17
|
hostRange,
|
|
18
18
|
readManifestSource,
|
|
19
|
+
stripBom,
|
|
19
20
|
version as manifestVersion,
|
|
20
21
|
} from './doctor.mjs';
|
|
21
22
|
import { hostCompatibility } from './compat.mjs';
|
|
@@ -66,7 +67,11 @@ export function readProfileBundles({ home = DEFAULT_HOME, profile } = {}) {
|
|
|
66
67
|
const file = path.join(root, 'profiles', profile, 'package.json');
|
|
67
68
|
if (fs.existsSync(file) === false) return { file, bundles: [] };
|
|
68
69
|
try {
|
|
69
|
-
|
|
70
|
+
// A profile package.json saved by Notepad starts with a UTF-8 BOM, which
|
|
71
|
+
// JSON.parse rejects. Read it through the same strip `readManifest` uses:
|
|
72
|
+
// otherwise a listed plugin looks unlisted and the repair sends the user
|
|
73
|
+
// back to `dsh.profile.bundles` instead of restarting the app.
|
|
74
|
+
const manifest = JSON.parse(stripBom(fs.readFileSync(file, 'utf8')));
|
|
70
75
|
const bundles = manifest?.dsh?.profile?.bundles;
|
|
71
76
|
return { file, bundles: Array.isArray(bundles) ? bundles : [] };
|
|
72
77
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-toolkit",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.25",
|
|
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": {
|