@lmzhen/dsh-evolution-skill-catalog 0.3.82 → 0.3.83
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/README.md +2 -2
- package/lib/index.js +7 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @lmzhen/dsh-evolution-skill-catalog
|
|
2
2
|
|
|
3
3
|
Native ctx.skills provider for the evolution-managed skill tree
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ Native ctx.skills provider for the evolution-managed skill tree
|
|
|
9
9
|
|
|
10
10
|
#### What the model sees
|
|
11
11
|
|
|
12
|
-
`@
|
|
12
|
+
`@lmzhen/dsh-evolution-skill-catalog` registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.
|
|
13
13
|
|
|
14
14
|
#### Token effect
|
|
15
15
|
|
package/lib/index.js
CHANGED
|
@@ -106,11 +106,16 @@ function apply(ctx, rawConfig = {}) {
|
|
|
106
106
|
"modelInvocable",
|
|
107
107
|
"userInvocable"
|
|
108
108
|
]) if (Object.hasOwn(data, legacy)) warnFrontmatterOnce(name, legacy, `field "${legacy}" is not accepted by the upstream registry; use the canonical kebab key`);
|
|
109
|
+
const legacyDisable = Object.hasOwn(data, "disableModelInvocation");
|
|
110
|
+
const hasLegacyModel = Object.hasOwn(data, "modelInvocable");
|
|
111
|
+
const hasLegacyUser = Object.hasOwn(data, "userInvocable");
|
|
109
112
|
const disableModel = frontmatterBool(name, data, "disable-model-invocation");
|
|
110
113
|
const user = frontmatterBool(name, data, "user-invocable");
|
|
114
|
+
const legacyModel = hasLegacyModel ? frontmatterBool(name, data, "modelInvocable") : void 0;
|
|
115
|
+
const legacyUser = hasLegacyUser ? frontmatterBool(name, data, "userInvocable") : void 0;
|
|
111
116
|
return {
|
|
112
|
-
modelInvocable: disableModel !== void 0 ? !disableModel : invocation.modelInvocable,
|
|
113
|
-
userInvocable: user !== void 0 ? user : invocation.userInvocable
|
|
117
|
+
modelInvocable: disableModel !== void 0 ? !disableModel : legacyDisable ? false : hasLegacyModel ? legacyModel ?? false : invocation.modelInvocable,
|
|
118
|
+
userInvocable: user !== void 0 ? user : hasLegacyUser ? legacyUser ?? false : invocation.userInvocable
|
|
114
119
|
};
|
|
115
120
|
};
|
|
116
121
|
async function libraryStamp() {
|
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.83",
|
|
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.83"
|
|
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.83"
|
|
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.83",
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.83"
|
|
41
41
|
}
|
|
42
42
|
}
|