@lmzhen/dsh-evolution-maintenance 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/lib/index.js +4 -2
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -367,7 +367,7 @@ async function runMaintain(runtime, options = {}) {
367
367
  }],
368
368
  parent: runtime.parent,
369
369
  signal: AbortSignal.timeout(timeoutMs),
370
- maxDepth: options.maxDepth ?? 0,
370
+ maxDepth: options.maxDepth ?? 1,
371
371
  agentOptions,
372
372
  persona: template,
373
373
  toolFilter: { allow: [...options.toolAllow ?? ["skill", "maintenance_probe"]] },
@@ -438,9 +438,11 @@ async function runMaintain(runtime, options = {}) {
438
438
  text: formatPlan(validated, runId)
439
439
  };
440
440
  } catch (error) {
441
+ const name = typeof error === "object" && error !== null ? error.name : void 0;
442
+ const message = error instanceof Error ? error.message : String(error);
441
443
  return {
442
444
  ok: false,
443
- error: String(error)
445
+ error: name === "AbortError" ? "Maintenance scan was aborted (subagent timeout or cancellation) before a plan was produced — retry, or raise the timeout (evolution-commands maintainTimeoutMs) on a slow/large library." : `Maintenance scan failed: ${message}`
444
446
  };
445
447
  }
446
448
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-maintenance",
3
3
  "description": "Deterministic maintenance-scan surface: skill-library snapshot assembly, drift signals and mechanical-facts rendering (design 011) (community build)",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@lmzhen/dsh-evolution-core": "^0.3.1"
37
+ "@lmzhen/dsh-evolution-core": "^0.3.3"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",