@lmzhen/dsh-tool-skill-manage 0.47.0 → 0.49.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 CHANGED
@@ -62,7 +62,6 @@ const Config = z.object({
62
62
  skillContentChars: z.number().min(1).volatile(),
63
63
  citationPolicy: z.union([z.const("verify"), z.const("refuse")]).volatile(),
64
64
  supportFileCharPolicy: z.union([z.const("report"), z.const("enforce")]).volatile(),
65
- maxSkillContentChars: z.number().min(1).default(DEFAULT_SKILL_LIMITS.maxSkillContentChars),
66
65
  maxSkillFileBytes: z.number().min(1).default(DEFAULT_SKILL_LIMITS.maxSkillFileBytes).volatile(),
67
66
  descriptionStrict: z.boolean().default(false).volatile(),
68
67
  threatExemptLabels: z.array(z.string()).default([]),
@@ -485,12 +484,11 @@ function apply(ctx, rawConfig = {}) {
485
484
  /**
486
485
  * This row's write knobs as they stand RIGHT NOW (G1 §8.3) — the base layer of the
487
486
  * precedence chain. The ten E3 keys are live references the platform updates in
488
- * place, and the deprecated `maxSkillContentChars` alias stays the fallback spelling
489
- * of `skillContentChars`. Every numeric field is clamped (V6-06).
487
+ * place. Every numeric field is clamped (V6-06).
490
488
  * @returns the row layer of the write settings.
491
489
  */
492
490
  const rowSettings = () => ({
493
- skillContentChars: limit("maxSkillContentChars", unwrapLive(rawConfig.skillContentChars) ?? rawConfig.maxSkillContentChars, DEFAULT_SKILL_LIMITS.maxSkillContentChars),
491
+ skillContentChars: limit("skillContentChars", unwrapLive(rawConfig.skillContentChars), DEFAULT_SKILL_LIMITS.maxSkillContentChars),
494
492
  maxSkillFileBytes: limit("maxSkillFileBytes", rawConfig.maxSkillFileBytes, DEFAULT_SKILL_LIMITS.maxSkillFileBytes),
495
493
  maxSkillNameLength: limit("maxSkillNameLength", rawConfig.maxSkillNameLength, DEFAULT_SKILL_LIMITS.maxNameLength),
496
494
  maxDescriptionLength: limit("maxDescriptionLength", rawConfig.maxDescriptionLength, DEFAULT_SKILL_LIMITS.maxDescriptionLength),
@@ -29,9 +29,9 @@ export interface Config {
29
29
  maxSkillNameLength?: Volatile<number>;
30
30
  maxDescriptionLength?: Volatile<number>;
31
31
  /** Read cap for SKILL.md writes — the CANONICAL registry id (G1) and a LIVE row
32
- * field; the deprecated alias below is the fallback spelling. No schema default:
33
- * the alias carries it, and a default on the canonical key would fill it and make
34
- * the alias unreachable. */
32
+ * field; G0/S0.3: the removed live-row alias `maxSkillContentChars` is migration
33
+ * input only. No schema default: the alias carries it, and a default on the
34
+ * canonical key would fill it and make the alias unreachable. */
35
35
  skillContentChars?: Volatile<number | undefined>;
36
36
  /** Refuse a move that would leave a dangling reference, or verify it — the
37
37
  * CANONICAL registry id (G1). The user layer sits above the policy stages,
@@ -40,10 +40,6 @@ export interface Config {
40
40
  /** Warn about an oversize support file, or refuse the write — the CANONICAL
41
41
  * registry id (G1). */
42
42
  supportFileCharPolicy?: Volatile<SupportFileCharPolicy | undefined>;
43
- /** Deprecated alias of `skillContentChars` (G0/S0.3): still readable, refused
44
- * by writes; removal was planned for 0.7.0 and is deferred (the alias still
45
- * ships — see the package README). */
46
- maxSkillContentChars?: number;
47
43
  maxSkillFileBytes?: Volatile<number>;
48
44
  /** When true, create/update refuse a description over the 60-char authoring bar (default: advisory feedback only). */
49
45
  descriptionStrict?: Volatile<boolean>;
@@ -74,7 +70,6 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
74
70
  skillContentChars: z<number, number, "volatile">;
75
71
  citationPolicy: z<"verify" | "refuse", "verify" | "refuse", "volatile">;
76
72
  supportFileCharPolicy: z<"report" | "enforce", "report" | "enforce", "volatile">;
77
- maxSkillContentChars: z<number, number, "defined">;
78
73
  maxSkillFileBytes: z<number, number, "volatile-defined">;
79
74
  descriptionStrict: z<boolean, boolean, "volatile-defined">;
80
75
  threatExemptLabels: z<string[], string[], "defined">;
@@ -89,7 +84,6 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
89
84
  skillContentChars: z<number, number, "volatile">;
90
85
  citationPolicy: z<"verify" | "refuse", "verify" | "refuse", "volatile">;
91
86
  supportFileCharPolicy: z<"report" | "enforce", "report" | "enforce", "volatile">;
92
- maxSkillContentChars: z<number, number, "defined">;
93
87
  maxSkillFileBytes: z<number, number, "volatile-defined">;
94
88
  descriptionStrict: z<boolean, boolean, "volatile-defined">;
95
89
  threatExemptLabels: z<string[], string[], "defined">;
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.47.0",
4
+ "version": "0.49.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,23 +29,23 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-approval": "^0.47.0",
33
- "@lmzhen/dsh-evolution-core": "^0.47.0",
34
- "@lmzhen/dsh-evolution-skill-discovery": "^0.47.0"
32
+ "@lmzhen/dsh-evolution-approval": "^0.49.0",
33
+ "@lmzhen/dsh-evolution-core": "^0.49.0",
34
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.49.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/cordis": "^4.0.5",
38
38
  "@deepseek-ai/dsh-skill": "^0.2.2-rc.0",
39
39
  "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0",
40
40
  "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
41
- "@lmzhen/dsh-evolution-skill-discovery": "^0.47.0"
41
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.49.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.2-rc.0",
45
45
  "@deepseek-ai/dsh-skill": "^0.2.2-rc.0",
46
46
  "@deepseek-ai/dsh-system-prompt": "^0.2.2-rc.0",
47
- "@lmzhen/dsh-evolution-core": "^0.47.0",
48
- "@lmzhen/dsh-evolution-skill-discovery": "^0.47.0"
47
+ "@lmzhen/dsh-evolution-core": "^0.49.0",
48
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.49.0"
49
49
  },
50
50
  "engines": {
51
51
  "dsh": ">=0.2.2-rc.0 <0.2.3-0"