@lmzhen/dsh-tool-skill-manage 0.45.0 → 0.47.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
@@ -1,39 +1,8 @@
1
- import { DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, 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, authorityFrom, buildExtractPlanFromLibrary, callingScope, clampOnce, computeDedupGroups, contentHash, createSubagentChannel, evolutionIoAdapter, fuzzyPatch, isPresent, isUnknown, liveBool, nearDuplicateSummaries, ownerCandidatesFromSummaries, ownerDecisionText, paramRowId, policyStageLimits, probePresent, probeUnknown, projectExtractBodies, proposalFromPlan, protectedSkillNamesOf, readProposalReport, skillWriteGateContext, unwrapLive, userSetKeys, writeProposalReport } from "@lmzhen/dsh-evolution-core";
1
+ import { DEFAULT_ARCHIVE_RETENTION_POLICY, DEFAULT_CITATION_POLICY, DEFAULT_REFERENCE_REWRITE_POLICY, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_VERSION_KEEP, DEFAULT_SUPPORT_FILE_CHAR_POLICY, DEFAULT_WRITE_CONFIRM_MODE, DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS, DSH_AUTHORING_STANDARDS, EXTRACT_PROMPT_V1, SKILLS_GUIDANCE, SKILLS_GUIDANCE_SECTION_ORDER, authorityFrom, buildExtractPlanFromLibrary, callingScope, clampOnce, computeDedupGroups, contentHash, createSubagentChannel, evolutionIoAdapter, fuzzyPatch, isPresent, isUnknown, liveBool, nearDuplicateSummaries, ownerCandidatesFromSummaries, ownerDecisionText, paramRowId, policyStageLimits, probePresent, probeUnknown, projectExtractBodies, proposalFromPlan, protectedSkillNamesOf, readProposalReport, runWriteGates, 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, registerEvolutionTool } from "@lmzhen/dsh-evolution-core/platform";
5
5
  import { DEFAULT_HEALTH_THRESHOLDS, anchorVerdict, authoringFeedback, newSkillLibrary, normalizeFrontmatter, parseFrontmatter, resolveExecOrigins, sessionReadSkillNames, sessionReadSupportFiles } from "@lmzhen/dsh-evolution-core/skills";
6
- //#region \0rolldown/runtime.js
7
- var __defProp = Object.defineProperty;
8
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
- var __getOwnPropNames = Object.getOwnPropertyNames;
10
- var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __exportAll = (all, no_symbols) => {
12
- let target = {};
13
- for (var name in all) __defProp(target, name, {
14
- get: all[name],
15
- enumerable: true
16
- });
17
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
18
- return target;
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
- key = keys[i];
23
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
- get: ((k) => from[k]).bind(null, key),
25
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
- });
27
- }
28
- return to;
29
- };
30
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
31
- //#endregion
32
- //#region lib/types/write-gates.js
33
- var write_gates_exports = /* @__PURE__ */ __exportAll({});
34
- import * as import__deepseek_ai_dsh_evolution_core from "@lmzhen/dsh-evolution-core";
35
- __reExport(write_gates_exports, import__deepseek_ai_dsh_evolution_core);
36
- //#endregion
37
6
  //#region lib/types/index.js
38
7
  /**
39
8
  * Model-facing skill_manage tool over ctx.evolutionIo + ctx.skillUsage.
@@ -103,8 +72,8 @@ const Config = z.object({
103
72
  z.const("auto"),
104
73
  z.const("ask"),
105
74
  z.const("timeout")
106
- ]).default(write_gates_exports.DEFAULT_WRITE_CONFIRM_MODE).volatile(),
107
- skillWriteConfirmTimeoutSeconds: z.number().min(1).default(write_gates_exports.DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS).volatile()
75
+ ]).default(DEFAULT_WRITE_CONFIRM_MODE).volatile(),
76
+ skillWriteConfirmTimeoutSeconds: z.number().min(1).default(DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS).volatile()
108
77
  });
109
78
  /** The four caps a user may only tighten, in schema order (the sentry reads it). */
110
79
  const SKILL_SETTINGS_CAPS = [
@@ -529,8 +498,8 @@ function apply(ctx, rawConfig = {}) {
529
498
  strictCrossSource: liveBool(rawConfig.strictCrossSource),
530
499
  citationPolicy: unwrapLive(rawConfig.citationPolicy) ?? DEFAULT_CITATION_POLICY,
531
500
  supportFileCharPolicy: unwrapLive(rawConfig.supportFileCharPolicy) ?? DEFAULT_SUPPORT_FILE_CHAR_POLICY,
532
- skillWriteConfirm: unwrapLive(rawConfig.skillWriteConfirm) ?? write_gates_exports.DEFAULT_WRITE_CONFIRM_MODE,
533
- skillWriteConfirmTimeoutSeconds: limit("skillWriteConfirmTimeoutSeconds", rawConfig.skillWriteConfirmTimeoutSeconds, write_gates_exports.DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS)
501
+ skillWriteConfirm: unwrapLive(rawConfig.skillWriteConfirm) ?? DEFAULT_WRITE_CONFIRM_MODE,
502
+ skillWriteConfirmTimeoutSeconds: limit("skillWriteConfirmTimeoutSeconds", rawConfig.skillWriteConfirmTimeoutSeconds, DEFAULT_WRITE_CONFIRM_TIMEOUT_SECONDS)
534
503
  });
535
504
  /**
536
505
  * G3/S3.4 + G1: the USER layer sits above the deployment carriers. `settings()` is
@@ -690,7 +659,7 @@ function apply(ctx, rawConfig = {}) {
690
659
  skills: []
691
660
  };
692
661
  }
693
- const refusal = await (0, write_gates_exports.runWriteGates)(skillWriteGateContext({
662
+ const refusal = await runWriteGates(skillWriteGateContext({
694
663
  policy: ctx.get("evolutionPolicy"),
695
664
  confirm: void 0,
696
665
  readNames: void 0,
@@ -1043,7 +1012,7 @@ function apply(ctx, rawConfig = {}) {
1043
1012
  };
1044
1013
  crossSourceView = gate.view;
1045
1014
  }
1046
- const refusal = await (0, write_gates_exports.runWriteGates)({
1015
+ const refusal = await runWriteGates({
1047
1016
  point: "admission",
1048
1017
  args,
1049
1018
  origin: libraryOrigin,
@@ -20,7 +20,7 @@
20
20
  import type { Context, Volatile } from '@deepseek-ai/cordis';
21
21
  import z from '@deepseek-ai/schemastery';
22
22
  import type { CitationPolicy, SupportFileCharPolicy } from '@lmzhen/dsh-evolution-core';
23
- import { type WriteConfirmMode } from './write-gates.ts';
23
+ import { type WriteConfirmMode } from '@lmzhen/dsh-evolution-core';
24
24
  export declare const name = "tool-skill-manage";
25
25
  export declare const inject: string[];
26
26
  export interface Config {
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.45.0",
4
+ "version": "0.47.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.45.0",
33
- "@lmzhen/dsh-evolution-core": "^0.45.0",
34
- "@lmzhen/dsh-evolution-skill-discovery": "^0.45.0"
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"
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.45.0"
41
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.47.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.45.0",
48
- "@lmzhen/dsh-evolution-skill-discovery": "^0.45.0"
47
+ "@lmzhen/dsh-evolution-core": "^0.47.0",
48
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.47.0"
49
49
  },
50
50
  "engines": {
51
51
  "dsh": ">=0.2.2-rc.0 <0.2.3-0"
@@ -1,12 +0,0 @@
1
- /**
2
- * G1/1.2: the write-admission sequence moved to its nouns' home.
3
- *
4
- * The gate table used to be package-private to this tool, so every other write entry point - the graph
5
- * commands above all - either bypassed it or copied its semantics (audit: approval mirrors the confirm
6
- * vocabulary "mirrored, not imported"). It now lives in evolution-core next to `write-authority.ts`, and
7
- * this file re-exports it unchanged so nothing importing from here has to move.
8
- *
9
- * @module @lmzhen/dsh-tool-skill-manage/write-gates
10
- */
11
- export * from '@lmzhen/dsh-evolution-core';
12
- //# sourceMappingURL=write-gates.d.ts.map