@lmzhen/dsh-evolution-commands 0.4.1 → 0.5.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 +13 -3
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire } from "node:module";
|
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
4
4
|
import { createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
5
|
-
import { MAX_TIMER_DELAY_MS, appendEvolutionEvent, assertSkillsRootAliasRetired, buildLearnPrompt, clampedNumber, composePresetComposition, eventsFile, evolutionRoot, isMissingPath, newSkillLibrary, resolveRootConfig, scopedProbeReport } from "@lmzhen/dsh-evolution-core";
|
|
5
|
+
import { DEFAULT_SKILL_LIMITS, MAX_TIMER_DELAY_MS, appendEvolutionEvent, assertSkillsRootAliasRetired, buildLearnPrompt, clampedNumber, composePresetComposition, eventsFile, evolutionRoot, isMissingPath, newSkillLibrary, policyStageLimits, resolveRootConfig, scopedProbeReport } from "@lmzhen/dsh-evolution-core";
|
|
6
6
|
import { buildEnrichment, buildMaintainFacts, runMaintain, snapshotFromLibrary } from "@lmzhen/dsh-evolution-maintenance";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { dirname, join } from "node:path";
|
|
@@ -861,6 +861,9 @@ function apply(ctx, rawConfig = {}) {
|
|
|
861
861
|
quality: enrichment.quality,
|
|
862
862
|
protected: enrichment.protected,
|
|
863
863
|
catalogInvalid: enrichment.catalogInvalid,
|
|
864
|
+
demand: enrichment.demand,
|
|
865
|
+
liveness: enrichment.liveness,
|
|
866
|
+
supportChars: enrichment.supportChars,
|
|
864
867
|
onReadError: (name, error) => {
|
|
865
868
|
readFailures.push(name);
|
|
866
869
|
ctx.logger.warn(`evolution-maintenance: skipping unreadable skill "${name}": ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -910,7 +913,10 @@ function apply(ctx, rawConfig = {}) {
|
|
|
910
913
|
quality: () => enrichment.quality,
|
|
911
914
|
protected: () => enrichment.protected,
|
|
912
915
|
catalogInvalid: () => enrichment.catalogInvalid,
|
|
913
|
-
usageObserved: () => enrichment.usageObservedValue
|
|
916
|
+
usageObserved: () => enrichment.usageObservedValue,
|
|
917
|
+
demand: () => enrichment.demand,
|
|
918
|
+
liveness: () => enrichment.liveness,
|
|
919
|
+
supportChars: () => enrichment.supportChars
|
|
914
920
|
});
|
|
915
921
|
if (outcome.ok) lastMaintainRunId = outcome.runId ?? "";
|
|
916
922
|
if (!outcome.ok) return err(outcome.error ?? "Maintenance scan failed.");
|
|
@@ -1038,7 +1044,11 @@ function apply(ctx, rawConfig = {}) {
|
|
|
1038
1044
|
config: { root: skillsRootValue },
|
|
1039
1045
|
io: ioRegistry.provider(),
|
|
1040
1046
|
ctx,
|
|
1041
|
-
threatExemptLabels: config.threatExemptLabels
|
|
1047
|
+
threatExemptLabels: config.threatExemptLabels,
|
|
1048
|
+
limits: {
|
|
1049
|
+
...DEFAULT_SKILL_LIMITS,
|
|
1050
|
+
...policyStageLimits(ctx.get("evolutionPolicy")?.get?.())
|
|
1051
|
+
}
|
|
1042
1052
|
}).restructure(name, [{
|
|
1043
1053
|
heading,
|
|
1044
1054
|
toFile
|
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.5.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
32
|
-
"@lmzhen/dsh-evolution-maintenance": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.5.0",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.5.0",
|
|
32
|
+
"@lmzhen/dsh-evolution-maintenance": "^0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@lmzhen/dsh-evolution-agent-preset": "^0.
|
|
35
|
+
"@lmzhen/dsh-evolution-agent-preset": "^0.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|