sage-mem 2.12.0 → 2.12.1

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/README.en.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  **Cross-session memory for DeepSeek Harness — plain markdown files, no database, no worker.**
14
14
 
15
- **Current release: `2.12.0`** — the npm badge above is the dynamic source of truth. **Contract baseline: `1.0.0`** — the first stable release, whose public commitments, the capability boundaries and the list of things it explicitly cannot do are frozen in the
15
+ **Current release: `2.12.1`** — the npm badge above is the dynamic source of truth. **Contract baseline: `1.0.0`** — the first stable release, whose public commitments, the capability boundaries and the list of things it explicitly cannot do are frozen in the
16
16
  [frozen contract](https://github.com/gezi-wen/sage-mem/blob/main/docs/1.0.0-contract.md).
17
17
 
18
18
  If it is useful to you, a Star is the most direct feedback.
@@ -474,11 +474,11 @@ The two things are moved **differently**, spelled out:
474
474
  - **Hot**: flipping the switch takes effect immediately, no restart (unlike MMR).
475
475
  - **Off by default**; no drag-and-drop ordering, no automatic `session-log` archiving — moving those pending-deletion rows into the log is the agent's job at wrap-up. Details in `docs/todo-board.md`.
476
476
 
477
- ## Initial memory: scaffold the library with an agent (2.12.0)
477
+ ## Initial memory: scaffold the library with an agent (2.12.0; moved to Lab in 2.12.1)
478
478
 
479
479
  A freshly installed library is empty, and the agent has no idea how your memories should start — it either writes a diary or writes nothing at all.
480
480
 
481
- The **Initial memory** card at the top of Settings → Memory management → Files holds a prompt you can execute directly: **copy** it (or **download the .md**), paste it to the agent in the conversation. It first looks at what your library already contains, then creates the `MEMORY.md` index, the `session-log.md` log and three starter memories (memory discipline / library layout / wrap-up routine).
481
+ The **Initial memory** card at the top of Settings → Memory management → **Lab** holds a prompt you can execute directly: **copy** it (or **download the .md**), paste it to the agent in the conversation. It first looks at what your library already contains, then creates the `MEMORY.md` index, the `session-log.md` log and three starter memories (memory discipline / library layout / wrap-up routine).
482
482
 
483
483
  ![Initial memory: copy this prompt to the agent and it scaffolds the library around what you already have](https://raw.githubusercontent.com/gezi-wen/sage-mem/main/docs/images/initial-guide.png)
484
484
 
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  > File-based cross-session memory for DeepSeek Harness — every memory is a plain markdown file you can open, edit and delete. No database, no worker, no port.
16
16
 
17
- **当前发布版本:`2.12.0`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
17
+ **当前发布版本:`2.12.1`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
18
18
  [契约冻结](https://github.com/gezi-wen/sage-mem/blob/main/docs/1.0.0-contract.md)。
19
19
 
20
20
  如果它对你有用,给个 Star 是最直接的反馈。
@@ -474,11 +474,11 @@ sage-mem 给记忆目录的写入加了**版本守卫**:写入前记下当前
474
474
  - **热的**:拨开关立刻生效,不用重启(与 MMR 不同)。
475
475
  - **默认关闭**;不做拖拽排序、不代写 `session-log` 留档 —— 把「待删除」搬进流水是 agent 收尾时的活。细节见 `docs/todo-board.md`。
476
476
 
477
- ## 初始记忆:让 agent 建个骨架(2.12.0)
477
+ ## 初始记忆:让 agent 建个骨架(2.12.0,2.12.1 挪到「实验性」)
478
478
 
479
479
  新装的库是空的,而 agent 并不知道你的记忆该怎么起 —— 它要么把记忆写成日记,要么一条都不写。
480
480
 
481
- 设置 → 记忆管理 → 文件列表顶部那张**初始记忆**卡片里,是一段可以直接执行的提示词:**复制**(或**下载 .md**),粘到会话里发给 agent。它会先看库里已经有什么,再建 `MEMORY.md` 索引、`session-log.md` 流水和三条起步记忆(记忆纪律 / 库结构 / 收尾动作)。
481
+ 设置 → 记忆管理 → **实验性** 页签最上面那张**初始记忆**卡片里,是一段可以直接执行的提示词:**复制**(或**下载 .md**),粘到会话里发给 agent。它会先看库里已经有什么,再建 `MEMORY.md` 索引、`session-log.md` 流水和三条起步记忆(记忆纪律 / 库结构 / 收尾动作)。
482
482
 
483
483
  ![初始记忆:复制这段提示词粘给 agent,它会先看你已有的记忆再动手](https://raw.githubusercontent.com/gezi-wen/sage-mem/main/docs/images/initial-guide.png)
484
484
 
package/lib/client.js CHANGED
@@ -6822,6 +6822,10 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
6822
6822
  * (哪些记忆被端上来)。后者出事的样子是「该来的那条没来」,也就是失忆 ——
6823
6823
  * 用户必须能一眼找到这是实验性的、并且知道怎么关掉。
6824
6824
  *
6825
+ * 2.12.1:这一屏最上面还挂着**初始记忆卡片**(`InitialGuideCard`,不是开关)——
6826
+ * 它和 MMR / 待办看板同属「不天天用、需要时找得到」的那一栏;文件列表留给「今天读哪条」。
6827
+ * 卡片由装配层(`client/70-memory-panel.js`)造好放进同一屏,本文件不 import 它。
6828
+ *
6825
6829
  * 目前只有一个开关:**MMR 去重**(注入名额有限时,同族记忆不再互相挤占名额)。
6826
6830
  * 语义与三道护栏在宿主侧 `lib/memory/mmr.js`;这里只负责读写与说清楚代价。
6827
6831
  *
@@ -7560,13 +7564,7 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
7560
7564
  : list;
7561
7565
  }
7562
7566
 
7563
- // 2.12.0:初始记忆卡片由**装配层**(Section)造好传进来(`guideCard`)。
7564
- // 这一屏保持「只吃 props 的纯渲染」:不 import 卡片、也不判断库空不空 ——
7565
- // 于是它单独被渲染(比如 Q16 那套只拼 05+55+50+72 的量具)时照样成立。
7566
- // 没有卡片时**原样返回**(不包数组):旧调用点拿到的形状必须与 2.11.1 一致。
7567
- if (!props.guideCard) return filesView;
7568
- const body = Array.isArray(filesView) ? filesView : [filesView];
7569
- return [props.guideCard].concat(body);
7567
+ return filesView;
7570
7568
  }
7571
7569
 
7572
7570
  // ── 筛选条(1.5.2 从 Section 里抽出)────────────────────────────────
@@ -8837,7 +8835,10 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
8837
8835
  const healthWork = (audit && typeof audit.problems === "number" && audit.problems > 0 ? audit.problems : 0)
8838
8836
  + (conflictOpen > 0 ? conflictOpen : 0);
8839
8837
 
8840
- // 2.12.0:初始记忆卡片(放在文件列表顶部,由装配层决定,FilesView 只负责摆)。
8838
+ // 2.12.0(2.12.1 改位置):初始记忆卡片 —— 挂在**实验性**那一屏最上面。
8839
+ // 放这里的理由(2026-11-17 定):它不是日常动作,是「第一次上手」用的一段材料,
8840
+ // 和 MMR / 待办看板一样属于「你可能不会天天用、但需要时找得到」的那一栏;
8841
+ // 文件列表留给「今天要读哪条记忆」。卡片由装配层造好传给实验性屏,FilesView 不再认识它。
8841
8842
  // 骨架加载期间不渲染:`totalCount` 此刻还是 0,卡片会误判成空库并展开一次再收起。
8842
8843
  const guideCard = (loading && totalCount === 0) ? null : h(InitialGuideCard, {
8843
8844
  key: "guide",
@@ -8849,7 +8850,6 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
8849
8850
  // 「文件列表」这一屏:状态筛选决定看哪一批,灰色卡片与留痕块自带「退役」语义。
8850
8851
  // banner 只在**专门看归档**时出现,切到全部时不重复说一遍。
8851
8852
  const filesView = h(FilesView, {
8852
- guideCard: guideCard,
8853
8853
  loading: loading, totalCount: totalCount, openAdd: openAdd, createIndexSkeleton: createIndexSkeleton,
8854
8854
  statusFilter: statusFilter, setStatusFilter: setStatusFilter,
8855
8855
  items: items, archiveItems: archiveItems, filtered: filtered,
@@ -9156,7 +9156,7 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
9156
9156
  h(AuditPanel, { key: "audit", report: audit, busy: auditBusy, onRun: runAudit, standalone: true }),
9157
9157
  ])
9158
9158
  : tab === "lab"
9159
- ? h("div", { className: "smem-stack smem-view", key: "lab" }, [h(LabSettingsPanel, { key: "lab-card", ctx: props.ctx })])
9159
+ ? h("div", { className: "smem-stack smem-view", key: "lab" }, [guideCard, h(LabSettingsPanel, { key: "lab-card", ctx: props.ctx })])
9160
9160
  : h("div", { className: "smem-view", key: "files" }, filesView),
9161
9161
  // 2.8.0:第三方注入的视图(`settings.memory.starmap` 子槽)。没有占用者时是 null,
9162
9162
  // 一个 div 都不出 —— 所以默认安装下界面与 2.7.0 逐像素相同。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sage-mem",
3
3
  "description": "Cross-session memory for DeepSeek Harness — plain markdown files, no database, no worker.",
4
- "version": "2.12.0",
4
+ "version": "2.12.1",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "icon": "./icon.png",