@restregular/dsh-memory 0.10.1 → 0.11.0

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/icon.svg CHANGED
@@ -1,6 +1,6 @@
1
1
  <svg viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <!--
3
- 长期记忆图标:年轮。
3
+ 记忆系统图标:年轮。
4
4
 
5
5
  记忆是时间累积出来的东西 —— 一圈一圈长出来的年轮,比"内存条/芯片"更贴
6
6
  "长期";金色年轮压在深咖底上,像一枚封蜡印章。配色刻意避开插件列表里大量
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * dsh-memory — 客户端半边(设置页「记忆」区块)。
2
+ * dsh-memory — 客户端半边(设置页「记忆系统」区块)。
3
3
  *
4
4
  * 合并后本 bundle 与 provider / 工具 / 注入同属一个 npm 包
5
5
  * `@restregular/dsh-memory`:一个包名、一条 Loader entry、两侧都在。
@@ -854,7 +854,7 @@ window.__ModuleLoader__.load({
854
854
  },
855
855
  h('span', { className: 'root-icon' }, h(NavLineIcon, { size: 19 })),
856
856
  h('span', null,
857
- h('b', null, '记忆'),
857
+ h('b', null, '记忆系统'),
858
858
  h('span', null, `${node.count} 条`),
859
859
  ),
860
860
  )
@@ -1634,7 +1634,7 @@ window.__ModuleLoader__.load({
1634
1634
  },
1635
1635
  {
1636
1636
  key: 'sidebar', title: '侧栏入口',
1637
- desc: '在左侧栏「插件」下方显示「记忆」入口,点击在主界面打开面板。',
1637
+ desc: '在左侧栏「插件」下方显示「记忆系统」入口,点击在主界面打开面板。',
1638
1638
  fields: [
1639
1639
  { k: 'enabled', label: '启用', type: 'bool', hint: '关闭只隐藏侧栏入口,设置页仍然可用。' },
1640
1640
  ],
@@ -2331,7 +2331,7 @@ window.__ModuleLoader__.load({
2331
2331
  /** 侧栏入口打开的主界面页面(整块可滚动,内容就是面板本体)。 */
2332
2332
  function MemoryPage() {
2333
2333
  return h('div', { className: 'mem-page' },
2334
- h('div', { className: 'mem-page-head' }, h('h2', null, '记忆')),
2334
+ h('div', { className: 'mem-page-head' }, h('h2', null, '记忆系统')),
2335
2335
  h(MemoryPanel, {}),
2336
2336
  )
2337
2337
  }
@@ -2380,7 +2380,7 @@ window.__ModuleLoader__.load({
2380
2380
  () => React.createElement(MemoryPanel),
2381
2381
  ))
2382
2382
 
2383
- // 侧栏入口(可选):开启后在左侧栏「插件」下方多一个「记忆」,点击在主界面打开面板。
2383
+ // 侧栏入口(可选):开启后在左侧栏「插件」下方多一个「记忆系统」,点击在主界面打开面板。
2384
2384
  // 注册契约见 dsh-client-ui-schedule:sidebar.panellist 给 id/label/icon,main 用同一个 key。
2385
2385
  let sidebarDisposers = null
2386
2386
  const syncSidebar = () => {
@@ -2422,10 +2422,10 @@ window.__ModuleLoader__.load({
2422
2422
  * 侧栏这一行的显示名。导航图标覆盖靠"认出自己那一行"来定位,所以文案必须只有一处,
2423
2423
  * 注册与识别共用这个常量(改文案时不会漏改)。
2424
2424
  */
2425
- const NAV_LABEL = '记忆'
2425
+ const NAV_LABEL = '记忆系统'
2426
2426
 
2427
2427
  /**
2428
- * 设置侧栏「记忆」那一行的图标 —— 与侧栏入口、插件列表共用同一只年轮。
2428
+ * 设置侧栏「记忆系统」那一行的图标 —— 与侧栏入口、插件列表共用同一只年轮。
2429
2429
  *
2430
2430
  * 宿主把导航图标写死在 `dsh-client-ui-settings-general` 的 `navIcon(id)` 里:只有
2431
2431
  * account / models / agent-presets / plugins / archived-sessions 五个 id 有专属图标
@@ -2482,7 +2482,7 @@ window.__ModuleLoader__.load({
2482
2482
  }
2483
2483
 
2484
2484
  /**
2485
- * 在"含「记忆」那一行"上做记号并换图。
2485
+ * 在"含「记忆系统」那一行"上做记号并换图。
2486
2486
  *
2487
2487
  * 关键:记号打在**按钮自己**身上,绝不打在父级 navList 上 —— 整列是同一个容器,
2488
2488
  * 打到父级等于给所有区块都加图标。面板随时可能卸载/重挂(它是 body 上的 portal),
@@ -15,7 +15,7 @@ import { estimateTokens } from '../provider/rerank.js'
15
15
 
16
16
 
17
17
  const HEADER =
18
- '以下是本项目 / 全局已有的长期记忆摘要(按重要度挑出的前几条;' +
18
+ '以下是本项目 / 全局已有的记忆摘要(按重要度挑出的前几条;' +
19
19
  '需要原文用 memory_search,删除用 memory_forget):'
20
20
 
21
21
  const HINT_HEADER = '相关记忆索引(正文未注入):'
@@ -215,7 +215,7 @@ export function renderRecallBlock(
215
215
  const chars = impression ? (options.chars ?? 120) : 300
216
216
  const header = impression
217
217
  ? '以下是与你这次请求可能相关的记忆摘要:'
218
- : '以下是与此请求可能相关的长期记忆,供参考(可用 memory_search 核实,用 memory_forget 删除):'
218
+ : '以下是与此请求可能相关的记忆,供参考(可用 memory_search 核实,用 memory_forget 删除):'
219
219
  let tokens = estimateTokens(header) + 4
220
220
  const lines = []
221
221
  const ids = []
@@ -2,7 +2,7 @@
2
2
  * 「记忆使用策略」常驻段:告诉模型什么时候查、查到怎么用、查不到怎么办。
3
3
  * 只写操作口径,不写具体记忆内容 —— 内容由摘要 / 召回 / 规则段负责。
4
4
  */
5
- export const POLICY_TEXT = `## 长期记忆
5
+ export const POLICY_TEXT = `## 记忆系统
6
6
 
7
7
  本会话挂着一个本地记忆库,工具:memory_search / memory_list / memory_get / memory_save / memory_forget(可按会话、项目、全局等作用域读写)。
8
8
 
@@ -22,10 +22,10 @@ import { estimateTokens } from '../provider/rerank.js'
22
22
  import { supersededIds } from './digest.js'
23
23
 
24
24
  export const RULES_HEADER =
25
- '以下是必须遵守的硬性规则(来自 kind=rule 的长期记忆;除非用户明确要求破例,否则按它做):'
25
+ '以下是必须遵守的硬性规则(来自 kind=rule 的记忆;除非用户明确要求破例,否则按它做):'
26
26
 
27
27
  export const RULES_DELTA_HEADER =
28
- '以下是新增或变更的硬性规则(来自 kind=rule 的长期记忆;从现在起按它做):'
28
+ '以下是新增或变更的硬性规则(来自 kind=rule 的记忆;从现在起按它做):'
29
29
 
30
30
  /** mandatory/pinned 是显式的标签约定,不把全部 kind=rule 自动升级。 */
31
31
  const MANDATORY_TAGS = new Set(['mandatory', 'pinned', '必含', '强制'])
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Long-term Memory",
4
- "description": "Local long-term memory: automatic recall, hard rules, five memory tools, JSONL storage and local vector search."
3
+ "title": "Memory System",
4
+ "description": "Local memory system: automatic recall, hard rules, five memory tools, JSONL storage and local vector search."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
- "title": "长期记忆",
4
- "description": "本地长期记忆:自动召回、硬性规则、五个记忆工具,JSONL 落盘 + 本地向量检索。"
3
+ "title": "记忆系统",
4
+ "description": "本地记忆系统:自动召回、硬性规则、五个记忆工具,JSONL 落盘 + 本地向量检索。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@restregular/dsh-memory",
3
- "version": "0.10.1",
4
- "description": "DeepSeek Harness 本地长期记忆(单包单入口):JSONL 存储 + 本地向量检索(BGE-M3)+ 五个模型工具 + 自动召回注入 + 管理面板。",
3
+ "version": "0.11.0",
4
+ "description": "DeepSeek Harness 记忆系统(单包单入口):JSONL 存储 + 本地向量检索(BGE-M3)+ 五个模型工具 + 自动召回注入 + 管理面板。",
5
5
  "icon": "./icon.svg",
6
6
  "type": "module",
7
7
  "exports": {
@@ -17,6 +17,7 @@
17
17
  "cordis.patch.yml",
18
18
  "icon.svg",
19
19
  "README.md",
20
+ "CHANGELOG.md",
20
21
  "LICENSE"
21
22
  ],
22
23
  "dsh": {