@moonquake2004/dsh-doctor 0.4.21 → 0.4.22
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/dsh-doctor.mjs +8 -1
- package/package.json +1 -1
package/dsh-doctor.mjs
CHANGED
|
@@ -2286,7 +2286,14 @@ async function run() {
|
|
|
2286
2286
|
if (quarantineArg || unquarantineArg) {
|
|
2287
2287
|
const r = quarantineBundle(profDir, quarantineArg || unquarantineArg, !!unquarantineArg);
|
|
2288
2288
|
if (!r.ok) { console.error(`✗ ${r.error}`); process.exit(1); }
|
|
2289
|
-
|
|
2289
|
+
const payload = { ok: true, action: unquarantineArg ? 'unquarantine' : 'quarantine', ...r, next: '重启 dsh;随后用 --boot-check 复查,或用 --unquarantine 撤销' };
|
|
2290
|
+
if (jsonOut) console.log(JSON.stringify(payload, null, 2));
|
|
2291
|
+
else if (unquarantineArg) {
|
|
2292
|
+
console.log(`✓ 已放回 ${unquarantineArg}(当前启动列表 ${r.bundles} 项)——重启 dsh 生效`);
|
|
2293
|
+
} else {
|
|
2294
|
+
console.log(`✓ 已隔离 ${quarantineArg}(启动列表现为 ${r.bundles} 项;原始 package.json 已备份)`);
|
|
2295
|
+
console.log(` 重启 dsh,然后用 --boot-check 复查;要放回:--unquarantine ${quarantineArg}`);
|
|
2296
|
+
}
|
|
2290
2297
|
process.exit(0);
|
|
2291
2298
|
}
|
|
2292
2299
|
const results = await runBootCheck(profDir);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonquake2004/dsh-doctor",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.22",
|
|
4
4
|
"description": "Offline diagnostic for DeepSeek Harness — 28 built-in + 5 catalog checks across env/profile/session (Layer A checks-as-data), self-update (Layer B), and a semi-automatic LLM observer (Layer C, --observe); Doctor panel in web UI settings.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|