@lmzhen/dsh-tool-skill-manage 0.32.5 → 0.32.6
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 +10 -12
- package/lib/index.js +2 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
# @lmzhen/dsh-tool-skill-manage
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Model-facing `skill_manage` tool for reading and mutating reusable skills. It ships in `all` and the layered/full model-tool presets, not in host-only.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Actions
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
`review`, `list`, `create`, `edit`, `update`, `patch`, `delete`, `write_file`, `remove_file`, `restructure`, `extract`, `pin`, and `unpin`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Create/edit/update take a complete `SKILL.md`; patch replaces the first anchor unless `replace_all=true`. Support files are addressed by `file_path`. Restructure moves a body section into a support file; extract moves a reusable part into an existing owner skill. Delete archives to `.archive`, with `absorbed_into` recording an umbrella where applicable.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Created or edited skill files require valid YAML frontmatter. Protected bundled/hub skills reject mutation; pinned skills reject deletion and are read-only to background review.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Write controls
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The four authoring caps are tighten-only at the user layer: `skillContentChars`, `maxSkillFileBytes`, `maxSkillNameLength`, and `maxDescriptionLength`. `descriptionStrict`, `strictCrossSource`, citation/reference policy, support-file policy, version retention, and threat exemptions are described in [PARAMETERS.md](../PARAMETERS.md).
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
`skillWriteConfirm` defaults to `auto`, so unattended runs do not park on a question. `ask` waits for an answer; `timeout` cancels after `skillWriteConfirmTimeoutSeconds`. Ordinary approval can instead return a `pending_id` for replay through the approval service.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
History keeps the configured number of content versions per skill. Older version entries leave the index, but their stored blobs currently have no automatic sweep, so long-lived libraries can retain historical bytes.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`maxSkillContentChars` → `skillContentChars`。旧名仍可读,写入会拒绝。
|
|
21
|
+
`maxSkillContentChars` remains a readable deprecated alias of `skillContentChars`; writes to the old name are refused (G0/S0.3).
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, resolveExecOrigins, sessionReadSkillNames, sessionReadSupportFiles, skillWriteGateContext, unwrapLive, userSetKeys, writeProposalReport } from "@lmzhen/dsh-evolution-core";
|
|
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
4
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
@@ -405,6 +405,7 @@ function confirmedBy(answer, questionId, confirmLabel) {
|
|
|
405
405
|
return (answer.answers.find((entry) => entry.id === questionId)?.selected ?? []).includes(confirmLabel);
|
|
406
406
|
}
|
|
407
407
|
function apply(ctx, rawConfig = {}) {
|
|
408
|
+
registerOwnerSettings(ctx, "tool-skill-manage", Config);
|
|
408
409
|
ctx.inject(["settings"], (injected) => {
|
|
409
410
|
const settings = injected.settings;
|
|
410
411
|
if (typeof settings?.configure !== "function") return;
|
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.32.
|
|
4
|
+
"version": "0.32.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.32.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.32.6",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.32.6"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
37
37
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
|
|
39
|
-
"@lmzhen/dsh-evolution-io": "^0.32.
|
|
40
|
-
"@lmzhen/dsh-skill-usage": "^0.32.
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.32.6",
|
|
40
|
+
"@lmzhen/dsh-skill-usage": "^0.32.6"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.2",
|
|
44
44
|
"@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
|
|
45
45
|
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
46
46
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
47
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
48
|
-
"@lmzhen/dsh-evolution-io": "^0.32.
|
|
49
|
-
"@lmzhen/dsh-skill-usage": "^0.32.
|
|
47
|
+
"@lmzhen/dsh-evolution-core": "^0.32.6",
|
|
48
|
+
"@lmzhen/dsh-evolution-io": "^0.32.6",
|
|
49
|
+
"@lmzhen/dsh-skill-usage": "^0.32.6"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|