@lmzhen/dsh-tool-memory 0.3.12 → 0.3.13

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 +4 -4
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -24,7 +24,7 @@ import { createHash } from "node:crypto";
24
24
  * changes semantically: the bundle digest is the fail-closed signal for
25
25
  * review workers, so a stale id across deployments must be distinguishable.
26
26
  */
27
- const PROMPT_BUNDLE_ID = "dsh-evolution@11";
27
+ const PROMPT_BUNDLE_ID = "dsh-evolution@13";
28
28
  const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
29
29
  Review the conversation above and consider saving to memory if appropriate.
30
30
 
@@ -244,7 +244,7 @@ D. 库·整合纪律(计划形态约束)
244
244
  - verdict=no_issues ⇒ plan=[](不允许空 plan 之外的"无问题"表述)。
245
245
  - **confidence 降档规则(机械)**:条款全部由机械证据支撑 → 0.6–0.9;每含一项语义推断(是否锚/是否同伞/性质归类)→ 上限 0.4。
246
246
  - needs_human = (confidence < 0.6) OR (不可逆) OR (is_override) OR (引用 unknown 信号)。
247
- - 语言:finding/recommendation/notes 与库正文一致(中文);字段名/信号 id/枚举保留英文。
247
+ - 语言:finding/recommendation/notes 与库正文语言一致(不自订语言);字段名/信号 id/枚举保留英文。
248
248
  - **提交前自查(逐项对照,不许跳过)**:① verdict 与 plan 一致 ② 每条 evidence 在事实块 ③ undo_path 非空(不可逆=n/a)④ confidence 含推断≤0.4 ⑤ finding 无"应"字 ⑥ §3 完整性契约满足。
249
249
 
250
250
  ## 7. 裁决纪律
@@ -282,12 +282,12 @@ function sha256(text) {
282
282
  function createPromptBundle(prompts) {
283
283
  const canonical = JSON.stringify({
284
284
  id: PROMPT_BUNDLE_ID,
285
- version: 12,
285
+ version: 13,
286
286
  prompts: Object.fromEntries(Object.entries(prompts).sort())
287
287
  });
288
288
  return Object.freeze({
289
289
  id: PROMPT_BUNDLE_ID,
290
- version: 12,
290
+ version: 13,
291
291
  prompts: Object.freeze({ ...prompts }),
292
292
  sha256: sha256(canonical)
293
293
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-tool-memory",
3
3
  "description": "Model-facing memory tool and prompt context (community build)",
4
- "version": "0.3.12",
4
+ "version": "0.3.13",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -39,15 +39,15 @@
39
39
  "@deepseek-ai/cordis": "^4.0.1",
40
40
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
41
41
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
42
- "@lmzhen/dsh-memory": "^0.3.12",
43
- "@lmzhen/dsh-memory-files": "^0.3.12"
42
+ "@lmzhen/dsh-memory": "^0.3.13",
43
+ "@lmzhen/dsh-memory-files": "^0.3.13"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
47
47
  "@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
48
48
  "@deepseek-ai/dsh-system-prompt": "^0.1.1-rc.2",
49
49
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.1-rc.2",
50
- "@lmzhen/dsh-memory": "^0.3.12",
51
- "@lmzhen/dsh-memory-files": "^0.3.12"
50
+ "@lmzhen/dsh-memory": "^0.3.13",
51
+ "@lmzhen/dsh-memory-files": "^0.3.13"
52
52
  }
53
53
  }