@lmzhen/dsh-tool-skill-manage 0.37.1 → 0.38.0
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 +2 -2
- package/package.json +15 -17
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_HEALTH_THRESHOLDS, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_VERSION_KEEP, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DSH_AUTHORING_STANDARDS, EXTRACT_PROMPT_V1, SKILLS_GUIDANCE, SKILLS_GUIDANCE_SECTION_ORDER, anchorVerdict, authoringFeedback, authorityFrom, buildExtractPlanFromLibrary, callingScope, clampOnce, computeDedupGroups, contentHash, createSubagentChannel, evolutionIoAdapter, fuzzyPatch, isPresent, isUnknown, liveBool, nearDuplicateSummaries, newSkillLibrary, normalizeFrontmatter, ownerCandidatesFromSummaries, ownerDecisionText, paramRowId, parseFrontmatter, policyStageLimits, probePresent, probeUnknown, projectExtractBodies, proposalFromPlan, protectedSkillNamesOf, registerOwnerSettings, resolveExecOrigins, sessionReadSkillNames, sessionReadSupportFiles, skillWriteGateContext, unwrapLive, userSetKeys, writeProposalReport } from "@lmzhen/dsh-evolution-core";
|
|
2
2
|
import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
3
3
|
import z from "@deepseek-ai/schemastery";
|
|
4
|
-
import { defineTool } from "@
|
|
4
|
+
import { defineTool, registerEvolutionTool } from "@lmzhen/dsh-evolution-core/platform";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -876,7 +876,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
876
876
|
warningLine
|
|
877
877
|
].join("\n");
|
|
878
878
|
}
|
|
879
|
-
ctx
|
|
879
|
+
registerEvolutionTool(ctx, defineTool({
|
|
880
880
|
name: "skill_manage",
|
|
881
881
|
description: "Manage reusable skills. review returns the library review text (state/usage/quality per skill); list returns names only; create/edit/update take full SKILL.md content (edit is an alias of update); patch applies old_string -> new_string; delete archives to .archive (absorbed_into names an umbrella skill); write_file/remove_file add or remove one support file under references/ or scripts/; pin protects a skill from deletion, background review, and the lifecycle (pin/unpin are never allowed from a background review — foreground and delegated subagents may). Per-action arguments: patch needs name + old_string + new_string and patches SKILL.md unless file_path names a support file (e.g. \"references/topic.md\"); patch replaces the FIRST occurrence only unless replace_all=true, and the result message reports how many anchors the file carried. write_file needs name + file_path + file_content; remove_file needs name + file_path; create/edit/update need name + content; delete needs name. A rejected patch names the reason and the remedy (missing anchor, stale snapshot, frontmatter that cannot be auto-quoted, byte/char limit). Protected bundled/hub skills reject any mutation; pinned skills reject deletion and are read-only to the background review.Prefer patching an umbrella over creating narrow skills. restructure moves entire body sections (by their exact \"## heading\" line, via restructure: [{heading, to_file: \"references/<topic>.md\"}]) into a references/ file and replaces each with a pointer line — the skill name and directory never change. extract moves a reusable part (exact heading, optional start/end sub-block) into an existing class-level owner: extract: [{heading, start?, end?, to_skill}]. One target per call; owner-gap is reported, never auto-created.Created/edited SKILL.md MUST start with YAML frontmatter (a name/description block), or creation is rejected. " + DSH_AUTHORING_STANDARDS,
|
|
882
882
|
parameters: {
|
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.
|
|
4
|
+
"version": "0.38.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,28 +27,26 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.38.0",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.38.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
35
|
-
"@deepseek-ai/dsh-skill": "^0.2.
|
|
36
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@
|
|
39
|
-
"@lmzhen/dsh-
|
|
40
|
-
"@lmzhen/dsh-skill-usage": "^0.37.1"
|
|
35
|
+
"@deepseek-ai/dsh-skill": "^0.2.2-rc.0",
|
|
36
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0",
|
|
37
|
+
"@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
|
|
38
|
+
"@lmzhen/dsh-evolution-io": "^0.38.0",
|
|
39
|
+
"@lmzhen/dsh-skill-usage": "^0.38.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.
|
|
44
|
-
"@deepseek-ai/dsh-skill": "^0.2.
|
|
45
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.
|
|
46
|
-
"@
|
|
47
|
-
"@lmzhen/dsh-evolution-
|
|
48
|
-
"@lmzhen/dsh-
|
|
49
|
-
"@lmzhen/dsh-skill-usage": "^0.37.1"
|
|
42
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.2-rc.0",
|
|
43
|
+
"@deepseek-ai/dsh-skill": "^0.2.2-rc.0",
|
|
44
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0",
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.38.0",
|
|
46
|
+
"@lmzhen/dsh-evolution-io": "^0.38.0",
|
|
47
|
+
"@lmzhen/dsh-skill-usage": "^0.38.0"
|
|
50
48
|
},
|
|
51
49
|
"engines": {
|
|
52
|
-
"dsh": ">=0.2.
|
|
50
|
+
"dsh": ">=0.2.2-rc.0 <0.2.3-0"
|
|
53
51
|
}
|
|
54
52
|
}
|