@lmzhen/dsh-tool-skill-manage 0.32.5 → 0.33.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.
Files changed (3) hide show
  1. package/README.md +10 -12
  2. package/lib/index.js +2 -1
  3. package/package.json +8 -8
package/README.md CHANGED
@@ -1,23 +1,21 @@
1
1
  # @lmzhen/dsh-tool-skill-manage
2
2
 
3
- > Agent 写技能的工具(创建/修补/归档/合并入口)。
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
- 用户看到的是 Agent 创建/修改技能;改错可看历史/撤销。
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
- 你让 Agent 把做法写成技能,或它自己改进时。
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
- all/分层预设才有;host 没有。
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
- ## 维护者参考:参数别名(G0/S0.3)
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.5",
4
+ "version": "0.33.0",
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.5",
31
- "@lmzhen/dsh-evolution-core": "^0.32.5"
30
+ "@lmzhen/dsh-evolution-approval": "^0.33.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.33.0"
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.5",
40
- "@lmzhen/dsh-skill-usage": "^0.32.5"
39
+ "@lmzhen/dsh-evolution-io": "^0.33.0",
40
+ "@lmzhen/dsh-skill-usage": "^0.33.0"
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.5",
48
- "@lmzhen/dsh-evolution-io": "^0.32.5",
49
- "@lmzhen/dsh-skill-usage": "^0.32.5"
47
+ "@lmzhen/dsh-evolution-core": "^0.33.0",
48
+ "@lmzhen/dsh-evolution-io": "^0.33.0",
49
+ "@lmzhen/dsh-skill-usage": "^0.33.0"
50
50
  },
51
51
  "engines": {
52
52
  "dsh": ">=0.2.1-rc.2 <0.2.2-0"