@lmzhen/dsh-evolution-skill-discovery 0.30.42 → 0.30.43
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 +14 -5
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -1225,11 +1225,20 @@ function registerSkillSearchTool(ctx, provider) {
|
|
|
1225
1225
|
}]
|
|
1226
1226
|
},
|
|
1227
1227
|
async execute(args, exec) {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1228
|
+
try {
|
|
1229
|
+
const allowed = await provider?.allowedSkillKeys?.(exec.agent);
|
|
1230
|
+
return toToolResponse(await searchWithDegraded(provider, {
|
|
1231
|
+
query: args.query,
|
|
1232
|
+
limit: args.limit
|
|
1233
|
+
}, allowed, exec.agent));
|
|
1234
|
+
} catch (error) {
|
|
1235
|
+
return {
|
|
1236
|
+
results: [],
|
|
1237
|
+
truncated: false,
|
|
1238
|
+
degraded: true,
|
|
1239
|
+
hint: "Skill search failed: " + (error instanceof Error ? error.message : String(error))
|
|
1240
|
+
};
|
|
1241
|
+
}
|
|
1233
1242
|
}
|
|
1234
1243
|
}));
|
|
1235
1244
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-skill-discovery",
|
|
3
3
|
"description": "Read model and view identity for evolution skill discovery (community build)",
|
|
4
|
-
"version": "0.30.
|
|
4
|
+
"version": "0.30.43",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@deepseek-ai/dsh-session": "^0.2.1-rc.2",
|
|
34
34
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
35
35
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
36
|
-
"@lmzhen/dsh-evolution-core": "^0.30.
|
|
37
|
-
"@lmzhen/dsh-evolution-io": "^0.30.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.30.43",
|
|
37
|
+
"@lmzhen/dsh-evolution-io": "^0.30.43"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
48
48
|
"@deepseek-ai/dsh-skill-filesystem": "^0.2.1-rc.2",
|
|
49
49
|
"@deepseek-ai/dsh-tool-skill": "^0.2.1-rc.2",
|
|
50
|
-
"@lmzhen/dsh-evolution-core": "^0.30.
|
|
51
|
-
"@lmzhen/dsh-evolution-io": "^0.30.
|
|
50
|
+
"@lmzhen/dsh-evolution-core": "^0.30.43",
|
|
51
|
+
"@lmzhen/dsh-evolution-io": "^0.30.43"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
|