sage-mem 3.0.0 → 3.1.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: `3.0.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: `3.1.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.
@@ -39,6 +39,7 @@ If it is useful to you, a Star is the most direct feedback.
39
39
  - [Cross-device pull](#cross-device-pull-fetch-it-in-one-ssh-round-trip-2280)
40
40
  - [Cross-device push](#cross-device-push-send-what-changed-locally-300)
41
41
  - [Cross-device differences](#cross-device-differences-arbitration-300)
42
+ - [Cross-device panel](#cross-device-panel-three-steps-in-one-card-310)
42
43
  - [Configuration Reference](#configuration-reference)
43
44
  - [Stability and Versioning Policy](#stability-and-versioning-policy)
44
45
  - [Permissions and Privacy](#permissions-and-privacy)
@@ -722,6 +723,19 @@ Each record shows which remote, which file, and a **line-by-line comparison** (s
722
723
 
723
724
  `Keep local` / `Keep remote` both overwrite a real file, so both ask for confirmation. If arbitration fails (the remote moved again, the write is refused) the record stays open and the baseline does not move - the next check still reports it instead of pretending it is fixed.
724
725
 
726
+ ## Cross-device panel: three steps in one card (3.1.0)
727
+
728
+ `memory_sync_check` / `memory_sync_pull` / `memory_sync_push` used to be callable only from the conversation. One card under **External access -> Cross-device sync** now wraps all three:
729
+
730
+ - **Host**: type an SSH alias, or hit "see which devices exist" and pick one from Tailscale. That step is **candidate listing only, never authentication** - seeing a peer proves it passed an ACL, not that the machine is yours; what actually gates writes is the three gates described above.
731
+ - **Remote memory directory**: fill it once, **saved on blur** (no save button).
732
+ - **Three buttons**: check (read-only) - pull - push. Both pull and push **preview first**, so you see the plan and the byte count before hitting "execute", which then asks for confirmation (both directions overwrite real files).
733
+ - **The first push gets one extra step**: confirm the remote's identity, then "confirm and push". Once only - unless the remote was reinstalled and the library changed.
734
+
735
+ No Tailscale installed, not logged in, or an empty peer list - all of that just means no candidates; the host stays typeable and **nothing depends on it**. The last run's result (the raw markdown) stays in the card; it is more honest than any progress bar.
736
+
737
+ ![Cross-device sync: host and remote directory on top, check / pull / push each previewing first; the awaiting-arbitration differences below](https://raw.githubusercontent.com/gezi-wen/sage-mem/main/docs/images/sync-arbitration.png)
738
+
725
739
  ## Configuration Reference
726
740
 
727
741
  ### Environment Variables
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
- **当前发布版本:`3.0.0`** —— 顶部 npm 徽章是动态权威。**契约基线:`1.0.0`** —— 第一个稳定版,公开承诺、能力边界与「明确做不到」的清单冻结在
17
+ **当前发布版本:`3.1.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 是最直接的反馈。
@@ -41,6 +41,7 @@
41
41
  - [跨设备拉取](#跨设备拉取一次-ssh-搬回来2280)
42
42
  - [跨设备推送](#跨设备推送把本地动过的推出去3000)
43
43
  - [跨设备差异](#跨设备差异裁决3000)
44
+ - [跨设备面板](#跨设备面板一个卡片跑完三步310)
44
45
  - [配置参考](#配置参考)
45
46
  - [稳定性与版本策略](#稳定性与版本策略)
46
47
  - [权限与隐私](#权限与隐私)
@@ -724,6 +725,19 @@ memory_sync_push({ apply: true }) // 之后不必再确认
724
725
 
725
726
  `留本地` / `留远端` 都会覆盖一份真实文件,所以都有二次确认。裁决失败(远端又变了、写不进去)时记录保持待裁决、基线不动 —— 下次检查还会报,而不是假装修好了。
726
727
 
728
+ ## 跨设备面板:一个卡片跑完三步(3.1.0)
729
+
730
+ `memory_sync_check` / `memory_sync_pull` / `memory_sync_push` 以前只能从对话里调。现在「外部访问 → 跨设备同步」一张卡把它们装起来:
731
+
732
+ - **主机**:手打 SSH 别名,或点「看看有哪些设备」从 Tailscale 里挑一个。这一步**只列候选、不做鉴权** —— 能列出候选只说明已经过了一层 ACL,不说明那一定是你的机器;真正拦写的是那三道门。
733
+ - **远端记忆目录**:填一次,**失焦即存**(不用点保存)。
734
+ - **三个按钮**:检查(只读)· 拉取 · 推送。拉取与推送都**先预演**,看清清单与字节数再点「执行」;执行前还有一次二次确认(两个方向都会覆盖真实文件)。
735
+ - **首次推送多一道**:认过远端身份之后点「确认并推送」,只这一次。之后不再问,除非远端重装换了库。
736
+
737
+ 没装 Tailscale、没登录、或者它返回空 —— 都只是拿不到候选,主机照常手打,**功能不依赖它**。上一次的结果(markdown 原文)留在卡片里,它比任何进度条都诚实。
738
+
739
+ ![跨设备同步:主机与远端目录在顶上,检查 / 拉取 / 推送三个按钮各自先预演;下面是等裁决的差异](https://raw.githubusercontent.com/gezi-wen/sage-mem/main/docs/images/sync-arbitration.png)
740
+
727
741
  ## 配置参考
728
742
 
729
743
  ### 环境变量