memory-eternal 0.9.8 → 0.9.9

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://anthropic.com/claude-code/plugin.schema.json",
3
3
  "name": "memory-eternal",
4
- "version": "0.9.8",
4
+ "version": "0.9.9",
5
5
  "description": "璁板繂鏍稿績锛圡emory Eternal锛夛細鐭ヨ瘑鍗¤嚜鍔ㄦ矇娣€/鍙洖锛岀粺涓€ ~/.dsh/memory-vault锛屼細璇濈粨鏉熻嚜鍔ㄥ叆搴撹繘寰呭鏍搞€?,
6
6
  "author": {
7
7
  "name": "EternalNight996",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-eternal",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "璁板繂鏍稿績锛圡emory Eternal锛夛細鐭ヨ瘑鍗¤嚜鍔ㄦ矇娣€/鍙洖锛岀粺涓€ ~/.dsh/memory-vault锛屼細璇濈粨鏉熻嚜鍔ㄥ叆搴撹繘寰呭鏍搞€?,
5
5
  "author": {
6
6
  "name": "EternalNight996",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-eternal",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "璁板繂鏍稿績锛圡emory Eternal锛夛細鐭ヨ瘑鍗¤嚜鍔ㄦ矇娣€/鍙洖锛岀粺涓€ ~/.dsh/memory-vault锛屼細璇濈粨鏉熻嚜鍔ㄥ叆搴撹繘寰呭鏍搞€?,
5
5
  "author": {
6
6
  "name": "EternalNight996",
package/README.en.md CHANGED
@@ -277,6 +277,7 @@ npm run build # builds lib/client.js (DSH embed) + web/app.js (standalone web
277
277
 
278
278
  | Version | Date | Highlights |
279
279
  |---|---|---|
280
+ | **v0.9.9** | 2026-09-28 | **Fixed the sidebar "Memory" entry being pushed out of view (issue #2)**: the slot host comes in two shapes — the shell's own horizontal row (`.footerActions`) and a `div[data-slot="sidebar.footer.action"]` that other plugins (`dsh-diff-approval`, `dsh-footer-order`, …) turn into `flex-direction: column`. The old CSS applied `flex-wrap: wrap` plus `.me-footer { flex: 1 1 100% }` to both: inside a column container `wrap` means "new column" and `basis: 100%` means **100% height**, so the button was pushed into an overflow column and clipped to a sliver. `flex-wrap` is now scoped to the horizontal `.footerActions` only and `.me-footer` uses the direction-agnostic `flex: 0 0 auto`, guarded by a new SSR assertion. Also: bilingual READMEs gained a "Community & Support" section (group QR + WeChat pay/reward codes), plus `SPONSOR.md` and `.github/FUNDING.yml` |
280
281
  | **v0.9.8** | 2026-09-28 | **Backlog burn-down release.** ① **Capture reliability** (issues #3 / #4): distillation no longer hardcodes `providers[0]` — new `captureProvider` / `captureModel` config plus ordered fallback across providers; adapter errors carried by the stream's terminal `finish` block (missing credential, rate limit, …) are now **visible failures** (code/message in the capture log, red health state, raw-card fallback annotated with the cause) instead of a vague "distillation produced nothing"; the stall detector moved from cumulative-counter deltas to a **sliding window** (alerts only when turns keep starting with zero finishes inside 20 min), fixing both false alarms and misses. ② **Independent-process vault consistency** (dsh-memory-eternal#5): CLI / MCP / hooks / standalone web / sweep now share the host's resolution order (`MEMORY_VAULT_DIR` → `activeVault` → `vaultDir` → default), so switching vaults no longer splits your memory in two. ③ **Watchdog singleton lock** (dsh-memory-eternal#6): a new process exits when a live watchdog already owns the port, and stale pid records are cleaned, ending the orphan pile-up on every restart. ④ **Graph performance**: tag edges became "Top-K by shared tags" (measured **24,193 → 2,763** edges at 593 cards), similarity switched to a **rare-bigram inverted index** (cold **948 → ~520ms**, warm 2-4ms), payload **3,531KB → 579KB**, and the client dim pass now uses an **adjacency set** (**52ms → <1ms** per frame). ⑤ Five new test files (routing/finish, stall window, vault resolution, watchdog lock, graph perf baseline); `npm test` now covers **85 checks** |
281
282
  | **v0.9.7** | 2026-09-28 | **Cards open fully expanded (and can be collapsed) + new body typography**: the reader no longer folds to 300px by default — it **opens showing the whole card**, with a one-click collapse for long ones (and an "Expand ⌄" hint when folded). Frontmatter is lifted out of the body into **colored chips** (kind / audit status / tags / dates / source; kind reuses the graph palette) instead of leaking raw YAML. Body rendering is rewritten (`src/client/markdown.js`, shared by the host and the standalone web page): headings get an **emoji + color group by meaning** (conclusion ✅green / risk ⚠️amber / root cause 🔍blue / plan 🛠️purple / example 💡pink), consecutive `- ` lines become a real `<ul>`, `1.` becomes an `<ol>` with numbered circles, `- [x]` becomes a checkbox, `>` becomes an emoji callout, `---` becomes a divider, short `key: value` lines get an aligned style, and `**bold**` gets a highlighter underline; fenced code is protected so `#` / `-` inside it are no longer re-typeset. **Adds 7 typography unit tests** (XSS escaping, link-protocol allowlist, prose colons must not be misread as key/value). Also carries the PR #8 port: Electron-host subprocess node resolution (`lib/node-bin.js`, fixing "standalone web server never starts → sidebar popup white screen") and API routes registered after `webServer` is ready (fixing "settings page stuck loading") |
282
283
  | **v0.9.6** | 2026-09-28 | **Fixed the full-screen overlay covering the desktop shell's window controls (clicking Close quit the whole shell)**: the desktop shell draws minimize / maximize / close at the top of the page and, per the DSH convention, marks `<html>` with `data-windows-titlebar` and publishes `--dsh-windows-titlebar-height` (both confirmed present inside the official desktop build's `app.asar`); the memory overlay used `inset:0` plus an inline `100vh`, covering that whole strip, and our own top-right "×" landed exactly on the shell's window Close — one click quit the entire desktop shell. The full-screen state now uses the `.me-modal-full` class (no inline `100vh`, which CSS cannot override), and under `[data-windows-titlebar]` the `.me-overlay-top` / `.me-overlay` / `.me-modal-full` surfaces are pushed down by `--dsh-windows-titlebar-height` with height `calc(100vh - that)`. Browsers without the attribute get a 0px offset, so behaviour is unchanged there. The export-graph full-screen preview also moved from `100vh` to `100%` so it cannot overflow the shortened overlay. Adds 1 render regression asserting all three avoidance rules ship in the bundle |
@@ -296,6 +297,23 @@ npm run build # builds lib/client.js (DSH embed) + web/app.js (standalone web
296
297
 
297
298
  ---
298
299
 
300
+ ## 💬 Community & Support
301
+
302
+ **Questions, feature requests, or just want to talk about DSH plugin development — join the group chat:**
303
+
304
+ <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/group-qr.jpg" width="260" alt="DeepSeek Harness community group QR code" />
305
+
306
+ **If this plugin saved you some time, you can buy the author a coffee (either code works):**
307
+
308
+ | WeChat Pay | WeChat Reward |
309
+ |---|---|
310
+ | <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/wechat-pay.jpg" width="230" alt="WeChat Pay QR code" /> | <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/wechat-reward.jpg" width="230" alt="WeChat reward QR code" /> |
311
+
312
+ > Donations are entirely optional and change nothing about the plugin; it stays open source and free (MIT).
313
+ > Picking the first custom entry in the repo's **Sponsor** dropdown lands on [SPONSOR.md](SPONSOR.md), which shows the same codes.
314
+
315
+ ---
316
+
299
317
  ## 📄 License
300
318
 
301
319
  MIT
package/README.md CHANGED
@@ -290,6 +290,7 @@ npm run build # 构建 lib/client.js(DSH 内嵌)+ web/app.js(独立 web
290
290
 
291
291
  | 版本 | 日期 | 关键改动 |
292
292
  |---|---|---|
293
+ | **v0.9.9** | 2026-09-28 | **修复侧边栏「记忆」入口被挤出可视区(issue #2)**:槽位宿主有两种形态 —— 壳自己的横向行容器 `.footerActions`,以及被其他插件(`dsh-diff-approval` / `dsh-footer-order` 等)改成 `flex-direction: column` 的 `div[data-slot="sidebar.footer.action"]`。旧 CSS 对两者都套了 `flex-wrap: wrap` + `.me-footer { flex: 1 1 100% }`:纵向容器里 wrap 的语义是「换列」、`basis: 100%` 指的是**高度 100%**,叠加后按钮被挤进右侧溢出列、裁切到只剩右边缘一条缝。现在 `flex-wrap` 只留给横向 `.footerActions`,`.me-footer` 改用方向无关的 `flex: 0 0 auto`,并新增 SSR 回归断言。另:README 双语新增「交流群 & 打赏」(群二维码 + 微信收款码 / 赞赏码),新增 `SPONSOR.md` 与 `.github/FUNDING.yml`(FUNDING 只支持文字链接,故 custom 第一项指向 SPONSOR.md 页面直接展示二维码) |
293
294
  | **v0.9.8** | 2026-09-28 | **集中解决存量问题**。① **采集可信性**(issue #3 / #4):蒸馏路由不再写死 `providers[0]` —— 新增 `captureProvider` / `captureModel` 配置,并按注册顺序**依次重试**;**流末尾 `finish` 块里的适配器错误**(缺凭证 `MISSING_CREDENTIAL`、限流等)现在成为**可见失败**(沉淀日志写明 code/message + 健康态亮红 + 兜底原文卡注明原因),不再笼统记成「蒸馏无输出」;停滞探测从「累积计数差额」改为**滑动窗口**(20 分钟内持续开始且零收尾才告警),误报与漏报一并修掉。② **独立进程 vault 一致性**(dsh-memory-eternal#5):CLI / MCP / hooks / 独立 web / sweep 与宿主共用同一套优先级(`MEMORY_VAULT_DIR` → `activeVault` → `vaultDir` → 默认库),切库后不再数据分裂。③ **看门狗单例锁**(dsh-memory-eternal#6):同端口已有活着的 watchdog 时新进程直接退出并清理陈旧 pid 记录,止住「每次重启多一个孤儿进程」。④ **图谱性能**:标签边改「共享标签数 Top-K」(593 卡实测 **24,193 → 2,763** 条边)、相似度改**稀有 bigram 倒排候选**(冷启动 **948 → ~520ms**,warm 2-4ms)、payload **3,531KB → 579KB**;客户端 dim 判定改**邻接 Set**(每帧 **52ms → <1ms**)。⑤ 新增 5 个测试文件(路由/finish、停滞窗口、vault 解析、看门狗锁、图谱性能基线),`npm test` **85 项** |
294
295
  | **v0.9.7** | 2026-09-28 | **打开卡片默认全部展开(可收起)+ 正文排版重做**:卡片阅读器不再默认折成 300px,而是**打开即读全文**,长卡可一键收起(折叠后底部给「展开 ⌄」提示)。frontmatter 从正文里抽出来,改成 kind / 审核状态 / 标签 / 时间 / 来源的**彩色 chips**(kind 沿用图谱配色),不再把一段 YAML 当正文露出来。正文排版换成新方案(`src/client/markdown.js`,宿主与独立 web 共用同一套):小标题按语义自动配 **emoji + 颜色分组**(结论 ✅绿 / 风险 ⚠️琥珀 / 根因 🔍蓝 / 方案 🛠️紫 / 示例 💡粉),连续 `- ` 合成真正的 `<ul>`、`1.` 合成带圆形序号的 `<ol>`、`- [x]` 变复选框、`>` 引用升级成带 emoji 的 callout、`---` 变分隔线、行首「短键:值」渲染成对齐样式、`**加粗**` 加荧光笔下划线;围栏代码整段保护,内部 `#` / `-` 不再被误排版。**新增 7 项排版单测**(含 XSS 转义、链接协议白名单、散文冒号不得误判成 key/value)。另含 PR #8 移植:Electron 宿主下的子进程 node 解析(`lib/node-bin.js`,修「独立 web server 拉不起来 → 侧边栏弹窗白屏」)与 `webServer` 就绪后再注册 API 路由(修「设置页永远加载中」) |
295
296
  | **v0.9.6** | 2026-09-28 | **修复官方桌面版全屏浮层挡住窗口控制面板(点「关闭」会退出整个桌面壳)**:桌面壳把「最小化 / 最大化 / 关闭」画在页面顶部,并按 DSH 约定在 `<html>` 上打 `data-windows-titlebar` + 给出 `--dsh-windows-titlebar-height`(已在官方桌面版 `app.asar` 里确认这两个标记确实存在);记忆库全屏浮层原本是 `inset:0` + 内联 `100vh`,整条盖住标题栏,而我们右上角的「×」恰好压在窗口「关闭」上 —— 用户一点就直接退出整个桌面壳。现全屏态改用 `.me-modal-full` 类(不再写死内联 `100vh`:内联样式无法被 CSS 覆盖),并在 `[data-windows-titlebar]` 下把 `.me-overlay-top` / `.me-overlay` / `.me-modal-full` 一律下移 `--dsh-windows-titlebar-height`、高度改为 `calc(100vh - 该高度)`;浏览器里没有该属性时偏移 0px,行为与之前完全一致。导出图谱的全屏预览同步从 `100vh` 改为 `100%`,避免在缩短后的浮层里溢出。新增 1 项渲染回归断言(三处让位规则必须出现在打包产物中) |
@@ -309,6 +310,23 @@ npm run build # 构建 lib/client.js(DSH 内嵌)+ web/app.js(独立 web
309
310
 
310
311
  ---
311
312
 
313
+ ## 💬 交流群 & 打赏
314
+
315
+ **遇到问题、想提需求、或者想聊聊 DSH 插件开发 —— 欢迎进群:**
316
+
317
+ <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/group-qr.jpg" width="260" alt="DeepSeek Harness 交流群二维码" />
318
+
319
+ **如果这个插件帮你省了时间,可以请作者喝杯咖啡(两个码任选其一):**
320
+
321
+ | 微信收款码 | 微信赞赏码 |
322
+ |---|---|
323
+ | <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/wechat-pay.jpg" width="230" alt="微信收款码" /> | <img src="https://raw.githubusercontent.com/EternalNight996/memory-eternal/main/assets/support/wechat-reward.jpg" width="230" alt="微信赞赏码" /> |
324
+
325
+ > 打赏完全自愿,不影响任何功能;插件本体始终开源免费(MIT)。
326
+ > 仓库页的 **Sponsor** 按钮下拉里选 custom 第一项,会落到 [SPONSOR.md](SPONSOR.md)(同样是这一页的码)。
327
+
328
+ ---
329
+
312
330
  ## 📄 License
313
331
 
314
332
  MIT
package/lib/client.js CHANGED
@@ -154,10 +154,15 @@ Option A, because:
154
154
  .mc-flag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2, #d1d5db); margin-left: 6px; }
155
155
 
156
156
  /* ---- sidebar footer button ---- */
157
- /* \u8BA9\u300C\u8BB0\u5FC6\u300D\u6309\u94AE\u72EC\u5360\u4E00\u884C\uFF1A\u8BA9\u5BB9\u5668\u53EF\u6362\u884C\uFF0C\u672C\u6309\u94AE flex-basis:100% \u5360\u6EE1\u6574\u884C\u3002
158
- \u540C\u65F6\u547D\u4E2D\u300CfooterActions \u76F4\u63A5\u5305\u542B\u300D\u4E0E\u300C\u4E2D\u95F4\u9694\u4E00\u5C42 wrapper\u300D\u4E24\u79CD\u60C5\u51B5\uFF08:has \u5728 WebView2/Chromium \u5747\u652F\u6301\uFF09\u3002 */
159
- [class*="footerActions"]:has(.me-footer), :has(> .me-footer) { flex-wrap: wrap; width: 100%; }
160
- .me-footer { width: 100%; flex: 1 1 100%; }
157
+ /* \u8BA9\u300C\u8BB0\u5FC6\u300D\u6309\u94AE\u72EC\u5360\u4E00\u884C\u3002\u6CE8\u610F\uFF1A\u69FD\u4F4D\u5BBF\u4E3B\u6709\u4E24\u79CD\u5F62\u6001 \u2014\u2014
158
+ \u2460 \u58F3\u81EA\u5DF1\u7684\u6A2A\u5411\u884C\u5BB9\u5668\uFF08.footerActions\uFF09\uFF0C\u8FD9\u91CC\u8981 flex-wrap + width:100% \u624D\u80FD\u8BA9\u5165\u53E3\u72EC\u5360\u4E00\u884C\uFF1B
159
+ \u2461 \u88AB\u522B\u7684\u63D2\u4EF6\uFF08dsh-diff-approval / dsh-footer-order \u7B49\uFF09\u6539\u6210 flex-direction:column \u7684
160
+ div[data-slot="sidebar.footer.action"]\u3002\u7EB5\u5411\u5BB9\u5668\u91CC wrap \u7684\u8BED\u4E49\u662F\u300C\u6362\u5217\u300D\uFF0C
161
+ \u800C flex-basis:100% \u6307\u7684\u662F\u300C\u9AD8\u5EA6 100%\u300D\u2014\u2014\u4E24\u8005\u53E0\u52A0\u4F1A\u628A\u6309\u94AE\u6324\u8FDB\u53F3\u4FA7\u6EA2\u51FA\u5217\uFF0C
162
+ \u6700\u7EC8\u88C1\u5207\u5230\u53EA\u5269\u53F3\u8FB9\u7F18\u4E00\u6761\u7F1D\uFF08issue #2\uFF09\u3002\u6240\u4EE5\u8FD9\u4E24\u6761\u53EA\u7528\u5728 \u2460\uFF0C\u2461 \u53EA\u7ED9\u5BBD\u5EA6\u3002 */
163
+ [class*="footerActions"]:has(.me-footer), :has(> .me-footer) { width: 100%; }
164
+ [class*="footerActions"]:has(.me-footer) { flex-wrap: wrap; }
165
+ .me-footer { width: 100%; flex: 0 0 auto; min-width: 0; }
161
166
  .me-footer-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 1px solid var(--dsw-alias-border-l1, rgba(127,127,127,0.14)); background: var(--dsw-alias-bg-layer-1, rgba(255,255,255,0.04)); color: var(--dsw-alias-label-secondary, #6b7280); font: inherit; font-size: 13.5px; line-height: 18px; border-radius: 8px; cursor: pointer; text-align: left; }
162
167
  .me-footer-btn:hover { background: var(--dsw-alias-bg-layer-1, rgba(255,255,255,0.06)); color: var(--dsw-alias-label-primary, #111); }
163
168
  .me-footer-btn:active { transform: translateY(0.5px); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-eternal",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "记忆核心(Memory Eternal):自研的 DeepSeek Harness 记忆插件,不移植任何既有记忆框架——对话结束后自动沉淀知识卡到本地 Markdown Vault(自研去重、自研 CJK 检索、可 git 管理),设置页提供图形化知识库(统计 / 搜索 / 知识图谱 + 侧边栏一键弹窗),Agent 通过 memory_recall 工具按需召回历史上下文。零人工干预。",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -156,10 +156,15 @@ Option A, because:
156
156
  .mc-flag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--dsw-alias-border-l2, #d1d5db); margin-left: 6px; }
157
157
 
158
158
  /* ---- sidebar footer button ---- */
159
- /* \u8BA9\u300C\u8BB0\u5FC6\u300D\u6309\u94AE\u72EC\u5360\u4E00\u884C\uFF1A\u8BA9\u5BB9\u5668\u53EF\u6362\u884C\uFF0C\u672C\u6309\u94AE flex-basis:100% \u5360\u6EE1\u6574\u884C\u3002
160
- \u540C\u65F6\u547D\u4E2D\u300CfooterActions \u76F4\u63A5\u5305\u542B\u300D\u4E0E\u300C\u4E2D\u95F4\u9694\u4E00\u5C42 wrapper\u300D\u4E24\u79CD\u60C5\u51B5\uFF08:has \u5728 WebView2/Chromium \u5747\u652F\u6301\uFF09\u3002 */
161
- [class*="footerActions"]:has(.me-footer), :has(> .me-footer) { flex-wrap: wrap; width: 100%; }
162
- .me-footer { width: 100%; flex: 1 1 100%; }
159
+ /* \u8BA9\u300C\u8BB0\u5FC6\u300D\u6309\u94AE\u72EC\u5360\u4E00\u884C\u3002\u6CE8\u610F\uFF1A\u69FD\u4F4D\u5BBF\u4E3B\u6709\u4E24\u79CD\u5F62\u6001 \u2014\u2014
160
+ \u2460 \u58F3\u81EA\u5DF1\u7684\u6A2A\u5411\u884C\u5BB9\u5668\uFF08.footerActions\uFF09\uFF0C\u8FD9\u91CC\u8981 flex-wrap + width:100% \u624D\u80FD\u8BA9\u5165\u53E3\u72EC\u5360\u4E00\u884C\uFF1B
161
+ \u2461 \u88AB\u522B\u7684\u63D2\u4EF6\uFF08dsh-diff-approval / dsh-footer-order \u7B49\uFF09\u6539\u6210 flex-direction:column \u7684
162
+ div[data-slot="sidebar.footer.action"]\u3002\u7EB5\u5411\u5BB9\u5668\u91CC wrap \u7684\u8BED\u4E49\u662F\u300C\u6362\u5217\u300D\uFF0C
163
+ \u800C flex-basis:100% \u6307\u7684\u662F\u300C\u9AD8\u5EA6 100%\u300D\u2014\u2014\u4E24\u8005\u53E0\u52A0\u4F1A\u628A\u6309\u94AE\u6324\u8FDB\u53F3\u4FA7\u6EA2\u51FA\u5217\uFF0C
164
+ \u6700\u7EC8\u88C1\u5207\u5230\u53EA\u5269\u53F3\u8FB9\u7F18\u4E00\u6761\u7F1D\uFF08issue #2\uFF09\u3002\u6240\u4EE5\u8FD9\u4E24\u6761\u53EA\u7528\u5728 \u2460\uFF0C\u2461 \u53EA\u7ED9\u5BBD\u5EA6\u3002 */
165
+ [class*="footerActions"]:has(.me-footer), :has(> .me-footer) { width: 100%; }
166
+ [class*="footerActions"]:has(.me-footer) { flex-wrap: wrap; }
167
+ .me-footer { width: 100%; flex: 0 0 auto; min-width: 0; }
163
168
  .me-footer-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 1px solid var(--dsw-alias-border-l1, rgba(127,127,127,0.14)); background: var(--dsw-alias-bg-layer-1, rgba(255,255,255,0.04)); color: var(--dsw-alias-label-secondary, #6b7280); font: inherit; font-size: 13.5px; line-height: 18px; border-radius: 8px; cursor: pointer; text-align: left; }
164
169
  .me-footer-btn:hover { background: var(--dsw-alias-bg-layer-1, rgba(255,255,255,0.06)); color: var(--dsw-alias-label-primary, #111); }
165
170
  .me-footer-btn:active { transform: translateY(0.5px); }