sage-mem 2.15.4 → 2.15.5

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.15.4`** — 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.15.5`** — 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.
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.15.4`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
17
+ **当前发布版本:`2.15.5`** —— 顶部 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 是最直接的反馈。
package/lib/client.js CHANGED
@@ -2881,6 +2881,9 @@ const StarmapRuntime = (function (require, _react) {
2881
2881
  ".smem-todo-depth-select{width:auto;padding:0 2px;font-size:11.5px;}",
2882
2882
  // 「搬进流水」是待删除块的主动作(清空是丢弃、这条是留档),给品牌色。
2883
2883
  ".smem-todo-archive{font-weight:600;}",
2884
+ // 2.15.5:确认条独占一行,与「搬进流水」那颗按钮不在同一位置(双击打不到它)。
2885
+ ".smem-todo-confirm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0 2px;border-top:1px dashed var(--dsw-alias-border-l1);}",
2886
+ ".smem-todo-confirm .smem-todo-archive{color:var(--dsw-alias-state-danger-primary,#ef4444);}",
2884
2887
  // 检查点聚合块:只读、来源是别的文件 —— 用虚线边框和正文色区分开。
2885
2888
  ".smem-todo-group-cp{border-style:dashed;}",
2886
2889
  ".smem-todo-cp-task{display:flex;flex-direction:column;gap:2px;padding:2px 0;}",
@@ -2892,7 +2895,7 @@ const StarmapRuntime = (function (require, _react) {
2892
2895
  ".smem-todo-done-title{font-weight:600;}",
2893
2896
  ].join("\n");
2894
2897
 
2895
- /**
2898
+ /**
2896
2899
  * 把输入框里的一串标签切成数组。
2897
2900
  *
2898
2901
  * 分隔符收半角逗号、全角逗号、顿号三种 —— 中文输入法下这三种都会自然敲出来。
@@ -10505,32 +10508,17 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
10505
10508
  h("span", { key: "n", className: "smem-todo-count" }, countText),
10506
10509
  ]),
10507
10510
  isDone && blockCount > 0
10508
- ? (confirming
10509
- ? h("button", {
10510
- key: "archiveConfirm",
10511
- type: "button",
10512
- className: "smem-todo-mini smem-todo-archive smem-todo-del",
10513
- title: t("todo.action.archiveConfirm.title", { count: blockCount, file: TODO_LOG_FILE }),
10514
- disabled: props.busy,
10515
- onClick: function () { setConfirming(false); props.onArchive(sec); },
10516
- }, t("todo.action.archiveConfirm", { count: blockCount }))
10517
- : h("button", {
10518
- key: "archive",
10519
- type: "button",
10520
- className: "smem-todo-mini smem-todo-archive",
10521
- title: t("todo.action.archive", { count: blockCount, file: TODO_LOG_FILE }),
10522
- disabled: props.busy,
10523
- onClick: function () { setConfirming(true); },
10524
- }, t("todo.action.archive", { count: blockCount, file: TODO_LOG_FILE })))
10525
- : null,
10526
- isDone && blockCount > 0 && confirming
10527
10511
  ? h("button", {
10528
- key: "archiveCancel",
10512
+ key: "archive",
10529
10513
  type: "button",
10530
- className: "smem-todo-mini",
10531
- disabled: props.busy,
10532
- onClick: function () { setConfirming(false); },
10533
- }, t("todo.action.cancel"))
10514
+ className: "smem-todo-mini smem-todo-archive",
10515
+ title: t("todo.action.archive", { count: blockCount, file: TODO_LOG_FILE }),
10516
+ // 2.15.5:进入确认态后**原位那颗按钮只变灰、不再响应**。
10517
+ // 之前是把确认按钮换到同一个位置 —— 双击的第二下正好落在确认上,
10518
+ // 一次误触就把不可逆动作做完了。确认按钮现在固定在**下面一行**。
10519
+ disabled: props.busy || confirming,
10520
+ onClick: function () { setConfirming(true); },
10521
+ }, t("todo.action.archive", { count: blockCount, file: TODO_LOG_FILE }))
10534
10522
  : null,
10535
10523
  isDone && blockCount > 0
10536
10524
  ? h("button", {
@@ -10543,6 +10531,26 @@ h("span", { key: "sep", className: "smem-actions-sep", "aria-hidden": "true" }),
10543
10531
  }, t("todo.action.clearDone", { count: blockCount }))
10544
10532
  : null,
10545
10533
  ]),
10534
+ // 确认条独占一行:位置与原按钮不同,双击打不到它。
10535
+ isDone && blockCount > 0 && confirming
10536
+ ? h("div", { key: "confirm", className: "smem-todo-confirm" }, [
10537
+ h("button", {
10538
+ key: "yes",
10539
+ type: "button",
10540
+ className: "smem-btn smem-btn-primary smem-todo-mini smem-todo-archive",
10541
+ title: t("todo.action.archiveConfirm.title", { count: blockCount, file: TODO_LOG_FILE }),
10542
+ disabled: props.busy,
10543
+ onClick: function () { setConfirming(false); props.onArchive(sec); },
10544
+ }, t("todo.action.archiveConfirm", { count: blockCount })),
10545
+ h("button", {
10546
+ key: "no",
10547
+ type: "button",
10548
+ className: "smem-todo-mini",
10549
+ disabled: props.busy,
10550
+ onClick: function () { setConfirming(false); },
10551
+ }, t("todo.action.cancel")),
10552
+ ])
10553
+ : null,
10546
10554
  collapsed ? null : h("div", { key: "list", className: "smem-todo-list" }, sec.items.length === 0
10547
10555
  ? [h("div", { key: "empty", className: "smem-todo-empty" }, isDone ? t("todo.empty.done") : t("todo.empty.section"))]
10548
10556
  : sec.items.map(function (it) {
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.15.4",
4
+ "version": "2.15.5",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "icon": "./icon.png",