@lmzhen/dsh-evolution-maintenance 0.3.47 → 0.3.49
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/lib/index.js +2 -7
- package/lib/types/render-facts.d.ts +1 -3
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -37,11 +37,6 @@ function renderSignal(signal, redact) {
|
|
|
37
37
|
if (signal.detail !== void 0) parts.push(`detail=${redact(signal.detail)}`);
|
|
38
38
|
return [parts.join(" ")];
|
|
39
39
|
}
|
|
40
|
-
/** Convenience for tests and replays: summarize a skill assessment. */
|
|
41
|
-
function summarizeAssessment(assessment) {
|
|
42
|
-
const over = assessment.signals.filter((signal) => signal.verdict === "over").map((signal) => signal.id);
|
|
43
|
-
return over.length === 0 ? `${assessment.name}: clean` : `${assessment.name}: ${over.join(",")}`;
|
|
44
|
-
}
|
|
45
40
|
//#endregion
|
|
46
41
|
//#region lib/types/validate-plan.js
|
|
47
42
|
/**
|
|
@@ -405,7 +400,7 @@ async function runMaintain(runtime, options = {}) {
|
|
|
405
400
|
}],
|
|
406
401
|
parent: runtime.parent,
|
|
407
402
|
signal,
|
|
408
|
-
maxDepth: options.maxDepth
|
|
403
|
+
maxDepth: typeof options.maxDepth === "number" && Number.isFinite(options.maxDepth) ? options.maxDepth : 1,
|
|
409
404
|
agentOptions,
|
|
410
405
|
persona: template,
|
|
411
406
|
toolFilter: { allow: [...options.toolAllow ?? ["skill", "maintenance_probe"]] },
|
|
@@ -523,4 +518,4 @@ async function runMaintain(runtime, options = {}) {
|
|
|
523
518
|
}
|
|
524
519
|
}
|
|
525
520
|
//#endregion
|
|
526
|
-
export { PROBE_SIGNALS, buildEnrichment, buildMaintainFacts, computeProbe, renderFacts, renderMaintainTemplate, runMaintain, snapshotFromLibrary,
|
|
521
|
+
export { PROBE_SIGNALS, buildEnrichment, buildMaintainFacts, computeProbe, renderFacts, renderMaintainTemplate, runMaintain, snapshotFromLibrary, validateAndNormalizeMaintainPlan };
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* value/detail text passes through the optional redactor before it leaves
|
|
9
9
|
* the session.
|
|
10
10
|
*/
|
|
11
|
-
import { type DriftReport
|
|
11
|
+
import { type DriftReport } from '@lmzhen/dsh-evolution-core';
|
|
12
12
|
export interface RenderFactsOptions {
|
|
13
13
|
/** signals_version — changes whenever the signal set/thresholds change. */
|
|
14
14
|
signalsVersion: string;
|
|
@@ -18,6 +18,4 @@ export interface RenderFactsOptions {
|
|
|
18
18
|
redact?: ((text: string) => string) | undefined;
|
|
19
19
|
}
|
|
20
20
|
export declare function renderFacts(report: DriftReport, options: RenderFactsOptions): string;
|
|
21
|
-
/** Convenience for tests and replays: summarize a skill assessment. */
|
|
22
|
-
export declare function summarizeAssessment(assessment: DriftSkillAssessment): string;
|
|
23
21
|
//# sourceMappingURL=render-facts.d.ts.map
|
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.
|
|
4
|
+
"version": "0.3.49",
|
|
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.
|
|
37
|
+
"@lmzhen/dsh-evolution-core": "^0.3.49"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|