@lmzhen/dsh-tool-skill-manage 0.6.1 → 0.8.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/README.md +4 -4
- package/lib/index.js +3 -5
- package/lib/types/index.d.ts +0 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -24,10 +24,10 @@ Mutations (create/edit/update/patch/delete/write_file/remove_file/restructure) p
|
|
|
24
24
|
|
|
25
25
|
- `maxSkillContentChars` / `maxSkillFileBytes` bound SKILL.md reads and support-file writes on this row.
|
|
26
26
|
- Deprecated name (G0/S0.3): `maxSkillContentChars` is the legacy spelling of the
|
|
27
|
-
policy row's `skillContentChars` (canonical id). The two are not auto-synchronised
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
policy row's `skillContentChars` (canonical id). The two are not auto-synchronised with it: this row's value is what
|
|
28
|
+
the write paths use, and since 0.6.0 the user settings layer can override it
|
|
29
|
+
per user. Reading the legacy name still works; writing it is refused. Removal was planned for 0.7.0 and is deferred:
|
|
30
|
+
the alias still ships, so no later version is claimed here.
|
|
31
31
|
|
|
32
32
|
## Known limitations
|
|
33
33
|
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
4
|
-
import { DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_SKILL_LIMITS, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DSH_AUTHORING_STANDARDS,
|
|
4
|
+
import { DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_SKILL_LIMITS, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DSH_AUTHORING_STANDARDS, SKILLS_GUIDANCE, SKILLS_GUIDANCE_SECTION_ORDER, SKILL_ACTION_REQUIRED_FIELDS, authoringFeedback, callingScope, clampedNumber, computeDedupGroups, contentHash, evolutionIoAdapter, installParamSection, isPresent, isUnknown, newSkillLibrary, paramNamespace, parseFrontmatter, policyStageLimits, probePresent, probeUnknown, readNumberParam, resolveExecOrigins } from "@lmzhen/dsh-evolution-core";
|
|
5
5
|
//#region lib/types/index.js
|
|
6
6
|
/**
|
|
7
7
|
* Model-facing skill_manage tool over ctx.evolutionIo + ctx.skillUsage.
|
|
@@ -41,8 +41,6 @@ const Config = z.object({
|
|
|
41
41
|
threatExemptLabels: z.array(z.string()).default([]),
|
|
42
42
|
strictCrossSource: z.boolean().default(false)
|
|
43
43
|
});
|
|
44
|
-
/** Namespace the write caps and the four stage policies live in (core's PARAM_NAMESPACES). */
|
|
45
|
-
const SKILLS_SETTINGS_NAMESPACE = "evolution-skills";
|
|
46
44
|
/** Schema the platform validates the user layer against; defaults mirror the core
|
|
47
45
|
* constants and the row schema, so an empty document resolves to today's behaviour. */
|
|
48
46
|
const SKILLS_SETTINGS_SCHEMA = z.object({
|
|
@@ -160,7 +158,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
160
158
|
supportFileCharPolicy: resolved.supportFileCharPolicy
|
|
161
159
|
});
|
|
162
160
|
};
|
|
163
|
-
section.overrides = installParamSection(ctx,
|
|
161
|
+
section.overrides = installParamSection(ctx, paramNamespace("tool-skill-manage"), SKILLS_SETTINGS_SCHEMA, settingsBase, {
|
|
164
162
|
warn: (message) => {
|
|
165
163
|
ctx.logger.warn("dsh-evolution-skills: " + message);
|
|
166
164
|
},
|
|
@@ -507,4 +505,4 @@ function apply(ctx, rawConfig = {}) {
|
|
|
507
505
|
});
|
|
508
506
|
}
|
|
509
507
|
//#endregion
|
|
510
|
-
export { Config,
|
|
508
|
+
export { Config, SKILLS_SETTINGS_SCHEMA, SKILL_SETTINGS_CAPS, apply, inject, name, validateSkillSettings };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -48,8 +48,6 @@ export interface Config {
|
|
|
48
48
|
strictCrossSource?: boolean;
|
|
49
49
|
}
|
|
50
50
|
export declare const Config: z<Config>;
|
|
51
|
-
/** Namespace the write caps and the four stage policies live in (core's PARAM_NAMESPACES). */
|
|
52
|
-
export declare const SKILLS_SETTINGS_NAMESPACE = "evolution-skills";
|
|
53
51
|
/** Write behaviour a user may change (G3/S3.4). Field names are the CANONICAL
|
|
54
52
|
* parameter ids from the registry. The four caps are TIGHTEN-ONLY: the settings
|
|
55
53
|
* `validate` hook refuses a value above what the deployment allocated, because
|
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.8.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.8.0",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.8.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
35
35
|
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
36
36
|
"@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.2",
|
|
37
37
|
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
38
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
39
|
-
"@lmzhen/dsh-skill-usage": "^0.
|
|
38
|
+
"@lmzhen/dsh-evolution-io": "^0.8.0",
|
|
39
|
+
"@lmzhen/dsh-skill-usage": "^0.8.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.5-rc.2",
|
|
43
43
|
"@deepseek-ai/dsh-skill": "^0.1.5-rc.2",
|
|
44
44
|
"@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.2",
|
|
45
45
|
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
46
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
47
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
48
|
-
"@lmzhen/dsh-skill-usage": "^0.
|
|
46
|
+
"@lmzhen/dsh-evolution-core": "^0.8.0",
|
|
47
|
+
"@lmzhen/dsh-evolution-io": "^0.8.0",
|
|
48
|
+
"@lmzhen/dsh-skill-usage": "^0.8.0"
|
|
49
49
|
}
|
|
50
50
|
}
|