@lmzhen/dsh-evolution-skill-catalog 0.3.79 → 0.3.80
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 +8 -2
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
|
-
import { SKILL_NAME_RE, evolutionIoAdapter, newSkillLibrary, parseFrontmatter } from "@lmzhen/dsh-evolution-core";
|
|
2
|
+
import { SKILL_NAME_RE, evolutionIoAdapter, isAbsent, isUnknown, newSkillLibrary, parseFrontmatter, probeList } from "@lmzhen/dsh-evolution-core";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region lib/types/index.js
|
|
5
5
|
/**
|
|
@@ -113,8 +113,14 @@ function apply(ctx, rawConfig = {}) {
|
|
|
113
113
|
userInvocable: user !== void 0 ? user : invocation.userInvocable
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
+
async function libraryStamp() {
|
|
117
|
+
const probe = await probeList(io, library.root);
|
|
118
|
+
if (isUnknown(probe)) return null;
|
|
119
|
+
if (isAbsent(probe)) return "";
|
|
120
|
+
return probe.value.filter((name) => !name.startsWith(".")).sort().join("\n");
|
|
121
|
+
}
|
|
116
122
|
async function summaries() {
|
|
117
|
-
const stamp = await
|
|
123
|
+
const stamp = await libraryStamp();
|
|
118
124
|
if (summariesCache !== null && (stamp === null || summariesStamp === stamp)) return {
|
|
119
125
|
summaries: summariesCache,
|
|
120
126
|
complete: true
|
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.80",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.3.80"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
34
34
|
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
35
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
35
|
+
"@lmzhen/dsh-evolution-io": "^0.3.80"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
39
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
40
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
39
|
+
"@lmzhen/dsh-evolution-core": "^0.3.80",
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.80"
|
|
41
41
|
}
|
|
42
42
|
}
|