@restregular/dsh-memory 0.5.1 → 0.5.2

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.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/icon.svg +27 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -280,6 +280,7 @@ tools/build-single-package.mjs 构建(产物契约检查 + 可选加载验证)
280
280
 
281
281
  ## 版本
282
282
 
283
+ - **0.5.2** —— 新图标:插件图标换成"芯片"记号(内存条的直白隐喻)。仍是宿主内置插件美术那套规范(36×36 画布、蓝色渐变圆角瓦片 `#69B9FF → #324DE2`、外层统一缩到 26/28),但记号改用**深墨蓝 `#0E1C58` 的圆角方 + 中心点**,而不是白色细描边 —— 这个图标同时出现在**浅色主题**下(插件管理器的卡片/行、设置导航),瓦片顶部是亮蓝,白描边在 36px 就糊成"蓝方块+白点";深墨蓝在整块渐变上都够暗,缩到 16px 仍可辨。同时去掉 SVG 里的固定 `width/height`,显示尺寸交给宿主(行 30 / 卡片 36)。
283
284
  - **0.5.1** —— 清理空作用域文件:作用域被删空后(删掉最后一条、或 `POST /data/wipe`),它的 `.jsonl` 与 `.vec` 会在下一次落盘时一起移除,不再留 0 字节文件与只剩身份头的边车;下次写同一个名字会重新创建。`global.jsonl` 是唯一例外(保留作用域只清内容、留文件)。同版本的旧文件行为不变,无数据迁移。
284
285
  - **0.5.0** —— 作用域重构:
285
286
  - **默认作用域 = 当前会话**:`memory_save` 省略 `scope` 时写进 `session:<会话 id>`(子代理共享父会话;拿不到会话信息或 `scopes.session: false` 时回退当前项目,不报错)。
package/icon.svg CHANGED
@@ -1 +1,27 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect x="4" y="8" width="16" height="12" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>
1
+ <svg viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <!--
3
+ 记忆插件的图标:一块芯片(内存条的直白隐喻 = "存下来的东西")。
4
+
5
+ 沿用宿主内置插件美术的规范(packages/client/ui-primitives 的 plugin-artwork /
6
+ sidebar-terminal 卡片):36×36 画布、内缩 4 的 28×28 圆角瓦片(rx 8)、瓦片带自上而下的
7
+ 蓝色渐变 #69B9FF → #324DE2。不写死 width/height,显示尺寸交给消费方
8
+ (宿主按 <img width=30|36> 渲染:插件管理器行 30、卡片 36)。
9
+
10
+ 为什么记号是**深墨蓝**而不是白色:这个图标同时出现在浅色主题下(插件管理器卡片/行、
11
+ 设置导航),而瓦片顶部是亮蓝 —— 白描边在那一段会糊掉(实测 36px 下整块糊成"蓝方块+
12
+ 白点")。深墨蓝 #0E1C58 在整块渐变上都够暗,所以放小到 16px 仍然一眼可辨。
13
+ 记号本身只用"圆角方 + 中心点"两个形状、无细引脚:20px 以下细线会消失,而这两个
14
+ 形状靠面积说话。
15
+ -->
16
+ <g transform="translate(18 18) scale(0.9286) translate(-18 -18)">
17
+ <rect x="4" y="4" width="28" height="28" rx="8" fill="url(#memory_tile)" />
18
+ <rect x="10.6" y="10.6" width="14.8" height="14.8" rx="3.6" fill="none" stroke="#0E1C58" stroke-width="2.4" />
19
+ <rect x="16.2" y="16.2" width="3.6" height="3.6" rx="1.2" fill="#0E1C58" />
20
+ </g>
21
+ <defs>
22
+ <linearGradient id="memory_tile" x1="18" y1="4" x2="18" y2="32" gradientUnits="userSpaceOnUse">
23
+ <stop stop-color="#69B9FF" />
24
+ <stop offset="1" stop-color="#324DE2" />
25
+ </linearGradient>
26
+ </defs>
27
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restregular/dsh-memory",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "DeepSeek Harness 本地长期记忆(单包单入口):JSONL 存储 + 本地向量检索(BGE-M3)+ 四个模型工具 + 自动召回注入 + 管理面板。",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",