@lmzhen/dsh-evolution-commands 0.31.1 → 0.32.0
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 +7 -0
- package/package.json +6 -5
package/lib/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
|
9
9
|
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
10
10
|
import { composePresetEntry, mergePresetRow, presetPatchText, presetRowBlock, presetRowBody, presetRowId, resolveBasePresetPatch } from "@lmzhen/dsh-evolution-core/composition";
|
|
11
11
|
import { buildEnrichment, buildMaintainFacts, enrichmentSnapshotOptions, runMaintain, snapshotFromLibrary } from "@lmzhen/dsh-evolution-maintenance";
|
|
12
|
+
import { processScopeViolations } from "@lmzhen/dsh-evolution-state-storage";
|
|
12
13
|
//#region lib/types/command-fallback.js
|
|
13
14
|
/**
|
|
14
15
|
* G6/W8: the command-face fallback for every Host data-plane surface.
|
|
@@ -1394,6 +1395,11 @@ async function diagnose(ctx, options = {}) {
|
|
|
1394
1395
|
});
|
|
1395
1396
|
const has = (name) => ctx.get(name) !== void 0;
|
|
1396
1397
|
const capabilityAbsence = absentHostServices(has);
|
|
1398
|
+
const ioRegistry = ctx.get("evolutionIo");
|
|
1399
|
+
let processScopeIssues = [];
|
|
1400
|
+
try {
|
|
1401
|
+
if (ioRegistry?.provider !== void 0) processScopeIssues = processScopeViolations(ioRegistry.provider());
|
|
1402
|
+
} catch {}
|
|
1397
1403
|
const presetFreshness = probePresetFreshness(home, has);
|
|
1398
1404
|
const platform = await readPlatformView(ctx);
|
|
1399
1405
|
const familyBundleRows = platform.bundles?.filter((row) => tailOf(row.name).startsWith("dsh-evolution-"));
|
|
@@ -1457,6 +1463,7 @@ async function diagnose(ctx, options = {}) {
|
|
|
1457
1463
|
const env = envIssues();
|
|
1458
1464
|
if (env.length > 0) actions.push("Fix the DSH_EVOLUTION_* variable listed above.");
|
|
1459
1465
|
if (capabilityAbsence.length > 0) actions.push(`The family probes ${capabilityAbsence.length} platform capability/ies this deployment does not mount (${capabilityAbsence.map((entry) => entry.service).join(", ")}) — mount the rows that carry the ones you need; the features they gate are listed above.`);
|
|
1466
|
+
if (processScopeIssues.length > 0) actions.push(`The mounted IO backend does not back every cross-process medium claim: ${processScopeIssues.join("; ")} — mount a provider that declares processScope 'cross-process', or treat this home as single-process (no concurrent writers).`);
|
|
1460
1467
|
if (services.review && !services.curator) actions.push("Curator service is not mounted — automatic curation is off; verify the host/all bundle row set is complete.");
|
|
1461
1468
|
if (pendingCount === null && services.approval) actions.push("Approval service is mounted but pending listing failed — check the evolution state service.");
|
|
1462
1469
|
if (pendingTtlMs !== null && pendingTtlMs > 0) actions.push(`Staged writes expire after ${pendingTtlMs} ms (evolution-approval.pendingTtlMs): an expired write is closed as rejected and is never executed.`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-commands",
|
|
3
3
|
"description": "Human commands for the evolution family (/evolution pending|curator|maintain|doctor) (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
32
|
-
"@lmzhen/dsh-evolution-maintenance": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.32.0",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.32.0",
|
|
32
|
+
"@lmzhen/dsh-evolution-maintenance": "^0.32.0",
|
|
33
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.32.0"
|
|
33
34
|
},
|
|
34
35
|
"optionalDependencies": {
|
|
35
|
-
"@lmzhen/dsh-evolution-agent-preset": "^0.
|
|
36
|
+
"@lmzhen/dsh-evolution-agent-preset": "^0.32.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"@deepseek-ai/cordis": "^4.0.5",
|