@lmzhen/dsh-tool-skill-manage 0.3.22 → 0.3.23
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 +1 -11
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
1
2
|
import z from "@deepseek-ai/schemastery";
|
|
2
3
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
3
4
|
import { DEFAULT_SKILL_LIMITS, DSH_AUTHORING_STANDARDS, SKILLS_GUIDANCE, SkillLibrary, authoringFeedback, computeDedupGroups, evolutionIoAdapter, parseFrontmatter, resolveOrigins, resolveSkillsRoot } from "@lmzhen/dsh-evolution-core";
|
|
@@ -35,17 +36,6 @@ const Config = z.object({
|
|
|
35
36
|
maxSkillFileBytes: z.number().min(1).default(DEFAULT_SKILL_LIMITS.maxSkillFileBytes),
|
|
36
37
|
descriptionStrict: z.boolean().default(false)
|
|
37
38
|
});
|
|
38
|
-
/**
|
|
39
|
-
* The requesting session's effective approval policy, mirroring
|
|
40
|
-
* `dsh-user-approval` (override ?? configured default). Returns undefined when
|
|
41
|
-
* the approval service is not mounted or no session is available — callers
|
|
42
|
-
* keep their previous behavior.
|
|
43
|
-
*/
|
|
44
|
-
function effectiveSessionPolicy(ctx, session) {
|
|
45
|
-
const approval = ctx.get("approval");
|
|
46
|
-
if (!approval || session === void 0) return void 0;
|
|
47
|
-
return approval.overrideOf(session) ?? approval.config.policy ?? "ask";
|
|
48
|
-
}
|
|
49
39
|
function apply(ctx, rawConfig = {}) {
|
|
50
40
|
const systemPrompt = ctx.get("systemPrompt");
|
|
51
41
|
if (systemPrompt) ctx.effect(() => systemPrompt.section({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-tool-skill-manage",
|
|
3
3
|
"description": "Model-facing skill_manage tool (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.23",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
35
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.23",
|
|
35
|
+
"@lmzhen/dsh-evolution-core": "^0.3.23"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
39
39
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
40
40
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
41
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
42
|
-
"@lmzhen/dsh-skill-usage": "^0.3.
|
|
41
|
+
"@lmzhen/dsh-evolution-io": "^0.3.23",
|
|
42
|
+
"@lmzhen/dsh-skill-usage": "^0.3.23"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
|
|
46
46
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
47
47
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
48
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
49
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
50
|
-
"@lmzhen/dsh-skill-usage": "^0.3.
|
|
48
|
+
"@lmzhen/dsh-evolution-core": "^0.3.23",
|
|
49
|
+
"@lmzhen/dsh-evolution-io": "^0.3.23",
|
|
50
|
+
"@lmzhen/dsh-skill-usage": "^0.3.23"
|
|
51
51
|
}
|
|
52
52
|
}
|