dsh-prime-memory 0.26.2 → 0.26.3

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.
@@ -121,7 +121,8 @@ function buildState(store, l1) {
121
121
  const slots = snap.slots.map((slot) => {
122
122
  if (slot.refs === undefined)
123
123
  return slot;
124
- return { ...slot, refViews: resolveRefViews(slot.refs, l1) };
124
+ const refViews = resolveRefViews(slot.refs, l1);
125
+ return refViews === undefined ? { ...slot } : { ...slot, refViews };
125
126
  });
126
127
  return { rev: store.revision(), count: snap.count, openCount: snap.openCount, slots };
127
128
  }
@@ -76,14 +76,14 @@ export function renderGoodExample(g) {
76
76
  * 只在 `cfg.naming.fewShot` 为真时拼上(默认关):它每轮都收固定成本,值不值要靠
77
77
  * A/B 的 fallback 率说话,不能靠"看起来更专业"。
78
78
  */
79
- export const EXTRACTION_FEW_SHOT = `
80
-
81
- 【标准格式示例】下面每例的 title 与 content 是**并列的两个产物**:title 是名词短语(回答"这条讲的是什么"),content 是完整叙述正文。**不要**把 content 的开头抄成 title。
82
-
83
- ${TITLE_GOOD_EXAMPLES.map(renderGoodExample).join('\n\n')}
84
-
85
- 【不要这样】
86
- ${TITLE_BAD_EXAMPLES.map((b) => `- ✗ ${b.title}\u3000→ ${b.why}`).join('\n')}
79
+ export const EXTRACTION_FEW_SHOT = `
80
+
81
+ 【标准格式示例】下面每例的 title 与 content 是**并列的两个产物**:title 是名词短语(回答"这条讲的是什么"),content 是完整叙述正文。**不要**把 content 的开头抄成 title。
82
+
83
+ ${TITLE_GOOD_EXAMPLES.map(renderGoodExample).join('\n\n')}
84
+
85
+ 【不要这样】
86
+ ${TITLE_BAD_EXAMPLES.map((b) => `- ✗ ${b.title}\u3000→ ${b.why}`).join('\n')}
87
87
  `;
88
88
  /**
89
89
  * 各类型的"前因后果"要素表(照 G2 `NARRATIVE_CLAUSE` 写,不另造一套定义)。
package/dsh.plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "dsh-prime-memory",
3
3
  "name": "dsh-prime-memory",
4
- "version": "0.26.2",
4
+ "version": "0.26.3",
5
5
  "description": {
6
6
  "en": "Layered distilled memory plugin (L0 capture → L1 atomic memory → L2 scenes → L3 persona) with automatic recall injection before each model step.",
7
7
  "zh": "L0~L3 分层蒸馏记忆插件:自动捕获对话、抽取原子记忆、整合场景块、蒸馏核心画像,并在模型步骤前自动召回注入。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-prime-memory",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public",