@lmzhen/dsh-evolution-skill-catalog 0.3.68 → 0.3.70
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 +16 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -75,12 +75,27 @@ function apply(ctx, rawConfig = {}) {
|
|
|
75
75
|
let summariesCache = null;
|
|
76
76
|
let summariesStamp = null;
|
|
77
77
|
let summariesEpoch = 0;
|
|
78
|
+
let lastScanWarn = "";
|
|
78
79
|
async function summaries() {
|
|
79
80
|
const stamp = await io.mtime?.(library.root) ?? null;
|
|
80
81
|
if (summariesCache !== null && (stamp === null || summariesStamp === stamp)) return summariesCache;
|
|
81
82
|
if (summariesCache !== null && stamp !== null) control?.invalidate();
|
|
82
83
|
const epochAtScanStart = summariesEpoch;
|
|
83
|
-
|
|
84
|
+
let scanned;
|
|
85
|
+
try {
|
|
86
|
+
scanned = await library.list();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
const message = `skill tree scan failed (${error instanceof Error ? error.message : String(error)}) — serving ${summariesCache?.length ?? 0} cached summaries`;
|
|
89
|
+
if (lastScanWarn !== message) {
|
|
90
|
+
lastScanWarn = message;
|
|
91
|
+
ctx.logger.warn(`evolution-skill-catalog: ${message}`);
|
|
92
|
+
}
|
|
93
|
+
return summariesCache ?? [];
|
|
94
|
+
}
|
|
95
|
+
if (lastScanWarn !== "") {
|
|
96
|
+
control?.invalidate();
|
|
97
|
+
lastScanWarn = "";
|
|
98
|
+
}
|
|
84
99
|
if (epochAtScanStart === summariesEpoch) {
|
|
85
100
|
summariesCache = scanned;
|
|
86
101
|
summariesStamp = stamp;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-skill-catalog",
|
|
3
3
|
"description": "Native ctx.skills provider for the evolution-managed skill tree (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.70",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.70"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
39
|
-
"@deepseek-ai/dsh-skill": "^0.1.
|
|
40
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
38
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.70"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-invariants": "^0.1.
|
|
44
|
-
"@deepseek-ai/dsh-skill": "^0.1.
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
46
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
43
|
+
"@deepseek-ai/dsh-invariants": "^0.1.5-rc.2",
|
|
44
|
+
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.3.70",
|
|
46
|
+
"@lmzhen/dsh-evolution-io": "^0.3.70"
|
|
47
47
|
}
|
|
48
48
|
}
|