@lmzhen/dsh-evolution-review 0.23.0 → 0.25.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 (2) hide show
  1. package/lib/index.js +6 -6
  2. package/package.json +11 -11
package/lib/index.js CHANGED
@@ -1052,7 +1052,7 @@ function apply(ctx, rawConfig = {}) {
1052
1052
  ctx.logger.warn(`dsh-evolution-review: approval enabled but no replay runner registered for kind "${kind}" - skipping write (${summary})`);
1053
1053
  return {
1054
1054
  ok: false,
1055
- message: `Approval is enabled but no replay runner is registered for kind "${kind}"; write skipped (mount the tool that provides it, or disable approval).`
1055
+ message: `已启用批准,但没有为类型「${kind}」注册回放运行器;已跳过写入(请挂载提供该能力的工具,或禁用批准)。`
1056
1056
  };
1057
1057
  }
1058
1058
  const decision = await approval.request({
@@ -1097,7 +1097,7 @@ function apply(ctx, rawConfig = {}) {
1097
1097
  const io = ctx.get("evolutionIo");
1098
1098
  if (!io) return {
1099
1099
  ok: false,
1100
- message: "evolution-io service not mounted"
1100
+ message: "evolution-io 服务未挂载"
1101
1101
  };
1102
1102
  const policySnapshot = policySnapshotOf(ctx.get("evolutionPolicy"));
1103
1103
  const library = newSkillLibrary({
@@ -1116,7 +1116,7 @@ function apply(ctx, rawConfig = {}) {
1116
1116
  const protectedNames = policySnapshot?.protectedSkillNames;
1117
1117
  if (origin !== "foreground" && protectedNames?.includes(name) && op.action !== "create") return {
1118
1118
  ok: false,
1119
- message: `Skill "${name}" is protected by the current policy (protectedSkillNames); autonomous writes are refused.`
1119
+ message: `技能「${name}」受当前策略保护(protectedSkillNames):拒绝自主写入。`
1120
1120
  };
1121
1121
  if (op.action === "create") {
1122
1122
  const created = await library.create(name, op.content ?? "", origin);
@@ -1138,7 +1138,7 @@ function apply(ctx, rawConfig = {}) {
1138
1138
  const into = (op.absorbed_into ?? "").trim();
1139
1139
  if (!into || !await library.read(into)) return {
1140
1140
  ok: false,
1141
- message: "delete requires an existing absorbed_into target"
1141
+ message: "删除需要一个已存在的 absorbed_into 目标"
1142
1142
  };
1143
1143
  const archived = await library.archive(name, { absorbedInto: into });
1144
1144
  if (archived.ok) await ctx.get("skillUsage")?.markArchived?.(name);
@@ -1165,7 +1165,7 @@ function apply(ctx, rawConfig = {}) {
1165
1165
  }
1166
1166
  return {
1167
1167
  ok: false,
1168
- message: `Unknown skill action "${op.action ?? ""}"`
1168
+ message: `未知的技能动作「${op.action ?? ""}」`
1169
1169
  };
1170
1170
  }
1171
1171
  }
@@ -1213,7 +1213,7 @@ function anchorOf(op) {
1213
1213
  function staleRefusal(result, name, filePath) {
1214
1214
  if (filePath === void 0 && result.anchor === "missing") return {
1215
1215
  ok: false,
1216
- message: `Skill "${name}" not found.`
1216
+ message: `技能「${name}」不存在。`
1217
1217
  };
1218
1218
  return {
1219
1219
  ok: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-review",
3
3
  "description": "Background review orchestration (community build)",
4
- "version": "0.23.0",
4
+ "version": "0.25.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,9 +27,9 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.4",
30
- "@lmzhen/dsh-evolution-approval": "^0.23.0",
31
- "@lmzhen/dsh-evolution-core": "^0.23.0",
32
- "@lmzhen/dsh-evolution-plan-validator": "^0.23.0"
30
+ "@lmzhen/dsh-evolution-approval": "^0.25.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.25.0",
32
+ "@lmzhen/dsh-evolution-plan-validator": "^0.25.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.1",
@@ -37,8 +37,8 @@
37
37
  "@deepseek-ai/dsh-llm": "^0.2.0-rc.1",
38
38
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
39
39
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
40
- "@lmzhen/dsh-evolution-state": "^0.23.0",
41
- "@lmzhen/dsh-evolution-policy": "^0.23.0"
40
+ "@lmzhen/dsh-evolution-state": "^0.25.0",
41
+ "@lmzhen/dsh-evolution-policy": "^0.25.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-agent": "^0.2.0-rc.1",
@@ -48,10 +48,10 @@
48
48
  "@deepseek-ai/dsh-session-persistence": "^0.2.0-rc.1",
49
49
  "@deepseek-ai/dsh-session-persistence-jsonl": "^0.2.0-rc.1",
50
50
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
51
- "@lmzhen/dsh-evolution-approval": "^0.23.0",
52
- "@lmzhen/dsh-evolution-core": "^0.23.0",
53
- "@lmzhen/dsh-evolution-curator": "^0.23.0",
54
- "@lmzhen/dsh-evolution-plan-validator": "^0.23.0",
55
- "@lmzhen/dsh-evolution-state": "^0.23.0"
51
+ "@lmzhen/dsh-evolution-approval": "^0.25.0",
52
+ "@lmzhen/dsh-evolution-core": "^0.25.0",
53
+ "@lmzhen/dsh-evolution-curator": "^0.25.0",
54
+ "@lmzhen/dsh-evolution-plan-validator": "^0.25.0",
55
+ "@lmzhen/dsh-evolution-state": "^0.25.0"
56
56
  }
57
57
  }