dsh-plugin-tool-management 0.22.7 → 0.22.8

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/lib/client.js CHANGED
@@ -353,6 +353,13 @@ button.dsm-qty:disabled{cursor:default}
353
353
  .dsm-kind-tag{flex:none;display:inline-flex;align-items:center;padding:0 6px;height:18px;border-radius:4px;border:1px solid var(--dsw-alias-line-tertiary,rgba(255,255,255,.16));color:var(--dsw-alias-label-tertiary,rgba(255,255,255,.55));font-size:11px;line-height:1;white-space:nowrap}
354
354
  .dsm-target-pick{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
355
355
  .dsm-target-pick>*{flex:1 1 120px;min-width:0}
356
+ /* 「新建记忆」的层级 + 二级下拉:左边那格只装短标签(全局 / 工作区 / 场景),宽度减半 ——
357
+ 腾出来的横向空间全给右边那格,因为它装的是工作区名 / 场景名,那串名字常比一整行还长,
358
+ 挤在半宽里就被省略号截掉,看不出是哪一档。
359
+ 只有层级一格时(选「全局」)它独占整行 —— 空着一大半不自然。 */
360
+ .dsm-target-pick>.dsm-target-level{flex:0 0 120px}
361
+ .dsm-target-pick>.dsm-target-name{flex:1 1 auto;min-width:0}
362
+ .dsm-target-pick>.dsm-target-level:only-child{flex:1 1 auto}
356
363
  /* 后台复习与其它段同版式:标题在框外,列表与失败项在框里。 */
357
364
  .dsm-evo-review{display:flex;flex-direction:column;gap:6px}
358
365
  .dsm-evo-review-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@@ -364,10 +371,6 @@ button.dsm-qty:disabled{cursor:default}
364
371
  .dsm-evo-review-caret{width:12px;height:12px;flex:none;color:var(--dsw-alias-label-primary)}
365
372
  .dsm-evo-review-toggle:disabled{cursor:default}
366
373
  .dsm-evo-review-head .dsm-help{margin:0;margin-left:auto}
367
- /* 自主记忆卡底部的「已归档」折叠区:用一条细线与上面的生效行分开 ——
368
- 它们不再注入,混在同一张清单里读起来像还生效。 */
369
- .dsm-evo-archived{display:flex;flex-direction:column;gap:4px;margin-top:2px;padding-top:6px;border-top:1px solid var(--dsw-alias-line-secondary)}
370
- .dsm-evo-archived-list{display:flex;flex-direction:column}
371
374
  /* 每会话复习上限:一句话里一个数字框,与「学习频率」那条同一版式。 */
372
375
  .dsm-evo-review-limit{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--dsw-alias-label-primary);font-size:12px;line-height:17px}
373
376
  /* 框内其余文字也用主色:这些是设置项的当前值,用户要读清楚「现在设的是几」。 */
@@ -754,7 +757,7 @@ button.dsm-qty:disabled{cursor:default}
754
757
  .dsm-tooltable-summary{display:flex;align-items:center;gap:8px;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}
755
758
  /* 会话层那一句(0.21.2):这张工具表归属哪一层、改动影响谁。 */
756
759
  .dsm-tooltable-scope{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}
757
- /* 「另有 1 个跟随记忆页总开关 · 实际下发 N 个」:不在表里占行,用弱一档的字色挂在合计下面,
760
+ /* 「<工具名>(≈N)随自主记忆开启 · 实际下发 N 个」(只在开启时显示):不在表里占行,用弱一档的字色挂在合计下面,
758
761
  与上面的手动合计分开读。 */
759
762
  .dsm-tooltable-derived{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:16px}
760
763
  /* 「保存方案 / 恢复方案」钉在合计那一行的最右(用户 2026-09-23 指定位置)。
@@ -1367,6 +1370,10 @@ button.dsm-qty:disabled{cursor:default}
1367
1370
  .dsm-head-stats{display:flex;overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsm-radius-m);background:var(--dsw-alias-bg-layer-2)}
1368
1371
  .dsm-head-stat{display:flex;flex:1;min-width:0;align-items:baseline;gap:4px;padding:6px 12px;border-right:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden}
1369
1372
  .dsm-head-stat:last-child{border-right:0}
1373
+ /* 按内容取宽的一格(记忆页的「记忆域预算」):其余格等分整行,这格按文字的自然宽度占位。
1374
+ 它是这一行里最长的一串(「记忆域预算 262144/262144 B」),等分时先被省略号截掉 ——
1375
+ 数字被截比标签被截严重得多。flex:0 0 auto = 不参与等分、不伸缩。 */
1376
+ .dsm-head-stat-auto{flex:0 0 auto}
1370
1377
  /* 统计格里的标签(2026-10-12 改成标签在前、值在后):深灰 12px,可收缩截断;
1371
1378
  值(.dsm-head-num)恒不收缩 —— 宁可截标签也不能截数字。 */
1372
1379
  .dsm-head-stat-label{min-width:0;overflow:hidden;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap}
@@ -5251,7 +5258,11 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
5251
5258
  const groupLabel = function (key) {
5252
5259
  if (key === 'other') return t('compat.tools.other')
5253
5260
  if (key === 'control') return t('compat.tools.group.control')
5254
- return t('compat.inject.domain.' + key)
5261
+ // 分组键来自注入域内部名(`memoryGlobal` / `memoryWorkspace`),而工具表里记忆是
5262
+ // 一组 —— 折到合并后的「记忆」标签。注入实况仍按全局 / 工作区分行显示,用各自的
5263
+ // 词条;不折的话组头会把内部键名原样显示出来。
5264
+ const uiKey = key === 'memoryGlobal' || key === 'memoryWorkspace' ? 'memory' : key
5265
+ return t('compat.inject.domain.' + uiKey)
5255
5266
  }
5256
5267
  const toolTableDisabled = toolTableBusy || scopeSessionLocked || toolTable.state === 'unknown'
5257
5268
  // 自主记忆那条工具没有独立开关:它的可见性只跟记忆页的两个开关走,
@@ -5339,11 +5350,12 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
5339
5350
  title: presetCount ? t('compat.tools.preset.apply.tip') : t('compat.tools.preset.apply.tipEmpty'),
5340
5351
  onClick: function () { setToolPreset({ mode: 'apply' }) },
5341
5352
  }, t('compat.tools.preset.apply')))),
5342
- // 表里能勾的只有手动清单里的工具;正文里还固定搭着一份跟随记忆页总开关的
5343
- // 记忆工具,它没有勾选框、不占一行。这里把它「现在开没开」和"实际一共下发几个"
5344
- // 写清楚 —— 否则合计行的数字与模型真正看到的工具数会差一个。
5345
- report.derived ? React.createElement('div', { key: 'derived', className: 'dsm-tooltable-derived' },
5346
- t('compat.tools.derived', { state: t(report.derived.active ? 'compat.tools.derived.on' : 'compat.tools.derived.off') }),
5353
+ // 表里能勾的只有手动清单里的工具;正文里还固定搭着一份跟随自主记忆开关的
5354
+ // 记忆工具,它没有勾选框、不占一行。开启时补一行写明它和"实际一共下发几个"
5355
+ // —— 否则合计行的数字与模型真正看到的工具数会差一个;关闭时没有这个差额,
5356
+ // 整行不显示。
5357
+ report.derived && report.derived.active ? React.createElement('div', { key: 'derived', className: 'dsm-tooltable-derived' },
5358
+ t('compat.tools.derived', { name: report.derived.name, tok: report.derived.tok }),
5347
5359
  ' · ',
5348
5360
  t('compat.tools.sent', { count: report.sentCount })) : null,
5349
5361
  // 这一张表归属哪一层 / 为什么勾不动(锁)。读不到时这一节本来就不渲染。
@@ -6813,7 +6825,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
6813
6825
  "evo.source.session": "生效来源:本会话设置",
6814
6826
  "evo.stat": "已学 {learned} 条 · 生效 {active} 条 · 待确认 {pending} 条",
6815
6827
  "evo.stat.reviewDue": " · 待复核 {due} 条",
6816
- "evo.stat.archived": " · 已归档 {archived} 条",
6817
6828
  "evo.stat.broken": " · 索引读不到,条目可能显示不全",
6818
6829
  "evo.empty": "暂无",
6819
6830
  "evo.layer.global": "全局",
@@ -6824,8 +6835,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
6824
6835
  "evo.tag.candidate": "待确认",
6825
6836
  "evo.tag.active": "生效",
6826
6837
  "evo.tag.core": "常驻",
6827
- "evo.tag.superseded": "已取代",
6828
- "evo.tag.archived": "已归档",
6829
6838
  "evo.approve": "确认",
6830
6839
  "evo.approved": "已确认:这条会进上下文",
6831
6840
  "evo.review.open": "查看",
@@ -6858,7 +6867,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
6858
6867
  "evo.tier.model_inference": "模型推断",
6859
6868
  "evo.review.approving": "确认中…",
6860
6869
  "evo.review.reject": "否决",
6861
- "evo.rejected": "已归档,可在卡片底部的「已归档」里恢复",
6870
+ "evo.rejected": "已移入回收站,可在那里恢复",
6862
6871
  "evo.review.deleted": "已删除",
6863
6872
  "evo.review.needed": "待复核",
6864
6873
  "evo.review.done": "复核",
@@ -6880,11 +6889,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
6880
6889
  "evo.enable": "启用",
6881
6890
  "evo.disabled": "已停用:不再注入,条目保留在列表里",
6882
6891
  "evo.enabled": "已启用:会重新注入",
6883
- // 已归档(否决过的条目):收在自主记忆卡底部,恢复 = 回到 active,重新注入。
6884
- "evo.archived.toggle": "已归档({count})",
6885
- "evo.archived.restore": "恢复",
6886
- "evo.archived.restoreTip": "恢复为生效:重新注入并回到上面的列表",
6887
- "evo.restored": "已恢复:这条重新生效",
6888
6892
  "evo.tag.off": "已停用",
6889
6893
  "evo.style": "笔记风格",
6890
6894
  "evo.style.default": "默认", "evo.style.detailed": "详细", "evo.style.minimal": "极简", "evo.style.custom": "自定义",
@@ -7205,6 +7209,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7205
7209
  "compat.token.failed": "读取令牌状态失败,请刷新后重试。",
7206
7210
  "compat.inject.domains": "注入内容",
7207
7211
  "compat.inject.domain.scene": "场景", "compat.inject.domain.memory": "记忆", "compat.inject.domain.mcp": "MCP",
7212
+ "compat.inject.domain.memoryGlobal": "全局记忆", "compat.inject.domain.memoryWorkspace": "工作区记忆",
7208
7213
  "compat.inject.domain.memory.title": "全局记忆(含常开共享组)、当前工作区的手写记忆与两层自主笔记一起注入;关掉后这些都不再注入。场景记忆由「场景」开关控制",
7209
7214
  "compat.inject.domain.subagents": "子智能体", "compat.inject.domain.prompt": "提示词",
7210
7215
  "compat.inject.domain.skills": "技能",
@@ -7247,9 +7252,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7247
7252
  "compat.note.toolTableFile.unreadable": "工具表侧车(tool-table.json)不可读:暂时沿用上次成功值(没有则出厂默认),保存已禁用;请检查文件权限或删除该文件后重试。",
7248
7253
  "compat.tools.summaryAll": "{total} 个工具手动下发 · ≈{tok} tok/轮",
7249
7254
  "compat.tools.summary": "手动下发 {on}/{total} 个 · ≈{tok} tok/轮(关掉的省下 ≈{saved})",
7250
- "compat.tools.derived": "另有 1 个跟随记忆页总开关({state})",
7251
- "compat.tools.derived.on": "当前开",
7252
- "compat.tools.derived.off": "当前关",
7255
+ "compat.tools.derived": "{name}(≈{tok})随自主记忆开启",
7253
7256
  "compat.tools.sent": "实际下发 {count} 个",
7254
7257
  "compat.tools.groupCount": "{on}/{total} 个 · ≈{tok}",
7255
7258
  "compat.tools.other": "其它",
@@ -7301,10 +7304,10 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7301
7304
  "compat.tools.about.scene_manager_switch": "进入/退出场景",
7302
7305
  "compat.tools.about.scene_manager_save": "新建/修改场景",
7303
7306
  "compat.tools.about.scene_manager_archive": "改场景档案",
7304
- "compat.tools.about.memory_get": "查/读/搜记忆与笔记",
7305
- "compat.tools.about.memory_switch": "启用/停用记忆",
7306
- "compat.tools.about.memory_remember": "记住用户要求保留的内容",
7307
- "compat.tools.about.memory_note": "学习/忘记笔记",
7307
+ "compat.tools.about.memory_manager_get": "查/读/搜记忆与笔记",
7308
+ "compat.tools.about.memory_manager_switch": "启用/停用记忆",
7309
+ "compat.tools.about.memory_manager_remember": "记住用户要求保留的内容",
7310
+ "compat.tools.about.memory_manager_note": "学习/忘记笔记",
7308
7311
  "compat.tools.about.mcp_manager_list": "列出服务器",
7309
7312
  "compat.tools.about.mcp_manager_switch": "启用/停用服务器",
7310
7313
  "compat.tools.about.mcp_manager_save": "新建/修改服务器",
@@ -7318,14 +7321,14 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7318
7321
  "compat.tools.about.subagent_manager_save": "新建/修改人设",
7319
7322
  "compat.tools.about.prompt_manager_list": "列出全局提示词",
7320
7323
  "compat.tools.about.prompt_manager_apply": "应用全局提示词",
7321
- "compat.tools.about.tool_manager_tools": "本对话的工具开关",
7324
+ "compat.tools.about.tool_manager_switch": "本对话的工具开关",
7322
7325
  // 五个域的删除合进一条之后,行内只能给一个中性对象词("条目");
7323
7326
  // 具体是哪一类写在悬停那一档的 domain 里。
7324
- "compat.tools.about.plugin_manager_remove": "删除/恢复条目",
7325
- "compat.tools.hover.memory_get": "用户记忆与 Agent 笔记的读取入口。不给参数 = 清单(用户记忆带场景、启停与一句话描述,笔记带层、状态与是否注入);给 id = 正文(用户记忆 id 形如 <场景>/<名字>,笔记 id 带 note: 前缀;不带前缀时先找用户记忆,再找笔记);给 query = 两边一起按词过滤。默认只列会注入的条目,all=true 连停用、场景未启用、归档的一起列。只看不改。",
7326
- "compat.tools.hover.memory_switch": "只拨索引里的开关,.md 文件一个字不动,随时能拨回来。停用的记忆不再进上下文,等于把注入预算让给别人 —— 想省 token 优先用它,而不是删。",
7327
- "compat.tools.hover.memory_remember": "用户明确要求记住时用。scope=scene 写进某个场景(只有该场景开着才注入);scope=global 每个项目都注入;scope=workspace 写成本项目的用户记忆(用户资产,不需要自主记忆开着)。没说范围就先问用户,别猜。给 id 则更新已有记忆或笔记,而不是新建。记忆会进之后每一轮请求,只记从代码、配置、git 推不出来的事;同名的第二条会替换第一条的正文。",
7328
- "compat.tools.hover.memory_note": "Agent 自己推断的一句话笔记:learn 记一条(title + text),forget 按 id / slot / title / 注入行首句忘掉。查看笔记用 memory_get。用户明确要求记住的内容走 memory_remember,不要用这条。笔记 id 带 note: 前缀,用户记忆 id 是 <场景>/<名字>。",
7327
+ "compat.tools.about.plugin_manager_trash": "删除/恢复条目",
7328
+ "compat.tools.hover.memory_manager_get": "用户记忆与 Agent 笔记的读取入口。不给参数 = 清单(用户记忆带场景、启停与一句话描述,笔记带层、状态与是否注入);给 id = 正文(用户记忆 id 形如 <场景>/<名字>,笔记 id 带 note: 前缀;不带前缀时先找用户记忆,再找笔记);给 query = 两边一起按词过滤。默认只列会注入的条目,all=true 连停用、场景未启用、归档的一起列。只看不改。",
7329
+ "compat.tools.hover.memory_manager_switch": "只拨索引里的开关,.md 文件一个字不动,随时能拨回来。停用的记忆不再进上下文,等于把注入预算让给别人 —— 想省 token 优先用它,而不是删。",
7330
+ "compat.tools.hover.memory_manager_remember": "用户明确要求记住时用。scope=scene 写进某个场景(只有该场景开着才注入);scope=global 每个项目都注入;scope=workspace 写成本项目的用户记忆(用户资产,不需要自主记忆开着)。没说范围就先问用户,别猜。给 id 则更新已有记忆或笔记,而不是新建。记忆会进之后每一轮请求,只记从代码、配置、git 推不出来的事;同名的第二条会替换第一条的正文。",
7331
+ "compat.tools.hover.memory_manager_note": "Agent 自己推断的一句话笔记:learn 记一条(title + text),forget 按 id / slot / title / 注入行首句忘掉。查看笔记用 memory_manager_get。用户明确要求记住的内容走 memory_manager_remember,不要用这条。笔记 id 带 note: 前缀,用户记忆 id 是 <场景>/<名字>。",
7329
7332
  "compat.tools.hover.scene_manager_list": "列出每个场景:场景名(界面显示名不同时会一并标出 —— 工具要的是前者)、启用 / 已进入 / 已锁定、场景说明、绑定的预设、记忆条数,以及档案:进入它时会开哪些 MCP / 技能 / 人设(没勾的一律关掉)。要改某个场景的档案之前先看它 —— 保存是整段替换,看不到现有勾选就会把原来勾的挤掉;要进入哪个场景也在这一份里挑。只看不改。",
7330
7333
  "compat.tools.hover.scene_manager_switch": "进入一个场景:按它的档案把 MCP / 技能 / 人设整套拨到位(没勾的一律关掉),注入范围收窄成它的记忆,并把场景绑定的预设正文写进全局 AGENTS.md。退出则按进场景前的快照精确还原,基线也恢复。切之前先用 scene_manager_list 看一眼那个场景的档案。改的是整个运行时环境,所以默认要用户确认。",
7331
7334
  "compat.tools.hover.scene_manager_save": "建一个场景,或改掉已有的那个 —— 回执会说清走了哪条。场景是「进入时按它切换」的一套:档案里勾了什么,进入后就开什么,其余全部关掉。只写记录不碰档案 —— 档案由另一条工具写;「照现在的样子存」(capture)则由当前生效状态把档案一次填好。写档案或写记录都不会让场景生效 —— 要生效得进入它(scene_manager_switch,或你在「场景」页点)。没传的字段保持原样。",
@@ -7343,10 +7346,10 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7343
7346
  "compat.tools.hover.subagent_manager_save": "新建人设,或改掉已存在的那份 —— 回执会说清走了哪条。可改名字、描述、正文(正文会作为子代理的系统提示词)与输出要求,没传的字段保持原样;改名会连带改场景与档案里的绑定。provider / 模型 / 工具限制只留给面板(模型看不到自己改对了没有,所以不给)。描述决定模型什么时候会选它。",
7344
7347
  "compat.tools.hover.prompt_manager_list": "列出全局提示词预设(写进 AGENTS.md 的那一类)与摘要,标明当前生效的是哪一份 —— 同时只有一份生效。要换用哪份之前先用它确认名字。快捷提示词不在这个域里:那是用户自己在输入框里点出来的一段话,不进上下文,模型这边没有可做的动作。",
7345
7348
  "compat.tools.hover.prompt_manager_apply": "把某份预设应用到用户级 AGENTS.md,之后的对话立刻按它走。一次只有一份在生效,换一份就是替换上一份。",
7346
- "compat.tools.hover.tool_manager_tools": "模型自己开关**本对话**能用的插件工具。action=list 列出这个对话当前关着的那些(每条一句话用途 + 每轮 ≈token);action=enable / disable 把它们打开或关掉,只影响这个对话,从下一次请求起生效。要在对话里说「进入某个场景」而场景工具恰好是关着的时候,就靠它。action=repair 修坏掉的侧车(记忆索引 / 作用域侧车 / MCP 停用表 / 模型工具表)—— 那一步会把损坏的文件改名留存、按空表(工具表按出厂名单)继续,所以会先问一次。",
7347
- // 删除族:五个域合进一条 `plugin_manager_remove`,悬停要一次说清 domain 的取值、
7349
+ "compat.tools.hover.tool_manager_switch": "模型自己开关**本对话**能用的插件工具。action=list 列出这个对话当前关着的那些(每条一句话用途 + 每轮 ≈token);action=enable / disable 把它们打开或关掉,只影响这个对话,从下一次请求起生效。要在对话里说「进入某个场景」而场景工具恰好是关着的时候,就靠它。action=repair 修坏掉的侧车(记忆索引 / 作用域侧车 / MCP 停用表 / 模型工具表)—— 那一步会把损坏的文件改名留存、按空表(工具表按出厂名单)继续,所以会先问一次。",
7350
+ // 删除族:五个域合进一条 `plugin_manager_trash`,悬停要一次说清 domain 的取值、
7348
7351
  // 各域 id 的形状,以及"只是不想注入就用 switch 停用"这条更省事的替代路径。
7349
- "compat.tools.hover.plugin_manager_remove": "把一条移进回收站、从回收站恢复,或列出回收站。domain 决定动的是哪一类:memory(id 是 <场景>/<名字>)、skill、persona、preset(用它的 id)、scene。删除可恢复 —— 只想让它别再注入或别再进目录,用对应的 switch 停用即可,不必删;删技能时可传 root 指定来源。永久删除在各自那一页的回收站里做。",
7352
+ "compat.tools.hover.plugin_manager_trash": "把一条移进回收站、从回收站恢复,或列出回收站。domain 决定动的是哪一类:memory(id 是 <场景>/<名字>)、skill、persona、preset(用它的 id)、scene。删除可恢复 —— 只想让它别再注入或别再进目录,用对应的 switch 停用即可,不必删;删技能时可传 root 指定来源。永久删除在各自那一页的回收站里做。",
7350
7353
  "compat.live.title": "注入实况", "compat.live.hint": "模型实际看到的内容(只读)",
7351
7354
  "compat.live.never": "这段对话还没投过", "compat.live.delivered": "本段对话已投递 {count} 条 · 最近 {time}",
7352
7355
  "compat.live.copy": "复制全文", "compat.live.copied": "已复制", "compat.live.noAgent": "还没有会话:发一条消息后再来看",
@@ -7921,7 +7924,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7921
7924
  "evo.source.session": "In effect from: this conversation",
7922
7925
  "evo.stat": "{learned} learned · {active} active · {pending} pending",
7923
7926
  "evo.stat.reviewDue": " · {due} to review",
7924
- "evo.stat.archived": " · {archived} archived",
7925
7927
  "evo.stat.broken": " · index unreadable, some notes may be missing",
7926
7928
  "evo.empty": "None yet",
7927
7929
  "evo.layer.global": "Global",
@@ -7932,8 +7934,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7932
7934
  "evo.tag.candidate": "Pending",
7933
7935
  "evo.tag.active": "Active",
7934
7936
  "evo.tag.core": "Pinned",
7935
- "evo.tag.superseded": "Superseded",
7936
- "evo.tag.archived": "Archived",
7937
7937
  "evo.approve": "Approve",
7938
7938
  "evo.approved": "Approved: it will be injected from now on",
7939
7939
  "evo.review.open": "Review",
@@ -7964,7 +7964,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7964
7964
  "evo.review.tipNoKind": "Types with an expiry come back for review so you can confirm them",
7965
7965
  "evo.review.approving": "Approving…",
7966
7966
  "evo.review.reject": "Reject",
7967
- "evo.rejected": "Archived — restore it from the Archived section at the bottom of the card",
7967
+ "evo.rejected": "Moved to the recycle bin — you can restore it there",
7968
7968
  "evo.review.deleted": "Deleted",
7969
7969
  "evo.review.needed": "Needs review",
7970
7970
  "evo.review.done": "Reviewed",
@@ -7986,10 +7986,6 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
7986
7986
  "evo.enable": "Turn on",
7987
7987
  "evo.disabled": "Turned off: it is no longer injected, but stays in the list",
7988
7988
  "evo.enabled": "Turned on: it will be injected again",
7989
- "evo.archived.toggle": "Archived ({count})",
7990
- "evo.archived.restore": "Restore",
7991
- "evo.archived.restoreTip": "Restore as active: inject it again and put it back in the list above",
7992
- "evo.restored": "Restored — this entry is active again",
7993
7989
  "evo.tag.off": "Off",
7994
7990
  "evo.style": "Note style",
7995
7991
  "evo.style.default": "Default", "evo.style.detailed": "Detailed", "evo.style.minimal": "Minimal", "evo.style.custom": "Custom",
@@ -8299,6 +8295,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
8299
8295
  "compat.inject.caps.descLen": "Description up to", "compat.inject.caps.descLenUnit": "chars",
8300
8296
  "compat.inject.domains": "What to inject",
8301
8297
  "compat.inject.domain.scene": "Scene", "compat.inject.domain.memory": "Memory", "compat.inject.domain.mcp": "MCP",
8298
+ "compat.inject.domain.memoryGlobal": "Global memory", "compat.inject.domain.memoryWorkspace": "Workspace memory",
8302
8299
  "compat.inject.domain.memory.title": "Global memories (including the shared always-on group), this workspace's hand-written memories and both autonomous-note layers, sent together; turning this off stops all of them. Scene memories follow the Scene switch",
8303
8300
  "compat.inject.domain.subagents": "Subagents", "compat.inject.domain.prompt": "Prompt",
8304
8301
  "compat.inject.domain.skills": "Skills",
@@ -8337,9 +8334,7 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
8337
8334
  "compat.note.toolTableFile.unreadable": "The tool-table sidecar (tool-table.json) is unreadable: the last good value is in effect (factory default if none), and saving is blocked. Check file permissions or delete the file and retry.",
8338
8335
  "compat.tools.summaryAll": "all {total} tools sent manually · ≈{tok} tok per turn",
8339
8336
  "compat.tools.summary": "{on}/{total} sent manually · ≈{tok} tok per turn ({saved} tok saved)",
8340
- "compat.tools.derived": "plus 1 that follows the Memory page master switch ({state})",
8341
- "compat.tools.derived.on": "currently on",
8342
- "compat.tools.derived.off": "currently off",
8337
+ "compat.tools.derived": "{name} (≈{tok}) follows autonomous memory (on)",
8343
8338
  "compat.tools.sent": "{count} tools actually sent",
8344
8339
  "compat.tools.groupCount": "{on}/{total} · ≈{tok}",
8345
8340
  "compat.tools.other": "Other",
@@ -8388,10 +8383,10 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
8388
8383
  "compat.tools.about.scene_manager_switch": "Enter/leave a scene",
8389
8384
  "compat.tools.about.scene_manager_save": "Create/update a scene",
8390
8385
  "compat.tools.about.scene_manager_archive": "Update a scene archive",
8391
- "compat.tools.about.memory_get": "Read/search memories and notes",
8392
- "compat.tools.about.memory_switch": "Enable/disable a memory",
8393
- "compat.tools.about.memory_remember": "Remember something the user asked to keep",
8394
- "compat.tools.about.memory_note": "Learn/forget notes",
8386
+ "compat.tools.about.memory_manager_get": "Read/search memories and notes",
8387
+ "compat.tools.about.memory_manager_switch": "Enable/disable a memory",
8388
+ "compat.tools.about.memory_manager_remember": "Remember something the user asked to keep",
8389
+ "compat.tools.about.memory_manager_note": "Learn/forget notes",
8395
8390
  "compat.tools.about.mcp_manager_list": "List servers",
8396
8391
  "compat.tools.about.mcp_manager_switch": "Enable/disable a server",
8397
8392
  "compat.tools.about.mcp_manager_save": "Create/update a server",
@@ -8405,14 +8400,14 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
8405
8400
  "compat.tools.about.subagent_manager_save": "Create/update a persona",
8406
8401
  "compat.tools.about.prompt_manager_list": "List global prompts",
8407
8402
  "compat.tools.about.prompt_manager_apply": "Apply a global prompt",
8408
- "compat.tools.about.tool_manager_tools": "This conversation's tool switches",
8403
+ "compat.tools.about.tool_manager_switch": "This conversation's tool switches",
8409
8404
  // One merged delete tool for all five domains: the inline line needs a neutral
8410
8405
  // object noun, the domain values live in the hover tier.
8411
- "compat.tools.about.plugin_manager_remove": "Delete/restore an item",
8412
- "compat.tools.hover.memory_get": "The read side for user memories and agent notes. No arguments → catalogs (memories with scene, on/off state and one-line description; notes with layer, status and whether they inject). An id → the full body (user memory ids look like <scene>/<name>; note ids carry the note: prefix, and an unprefixed id is looked up as a memory first, then a note). A query → both catalogs filtered by words. Only injecting entries by default; all=true adds disabled, inactive-scene and archived ones. Read-only.",
8413
- "compat.tools.hover.memory_switch": "Flips the index switch only — the .md file is untouched and it is reversible. A disabled memory stops being injected, which frees byte budget for the others; prefer this over deleting when you want to spend fewer tokens.",
8414
- "compat.tools.hover.memory_remember": "Use when the user explicitly asks you to keep something. scope=scene writes into a scene (injected only when that scene is on); scope=global injects in every project; scope=workspace stores a user memory for this workspace (a user asset, no autonomous memory needed). If the user did not say where, ask — do not guess. Pass id to update an existing memory or note instead of creating one. Memories enter every later request, so record only what cannot be re-derived from code, config or git; a second entry with the same name replaces the first body.",
8415
- "compat.tools.hover.memory_note": "Agent-inferred one-line notes: learn records one (title + text), forget removes one by id, slot, title or the first line as injected. Inspect notes with memory_get. When the user explicitly asks you to keep something, use memory_remember instead. Note ids carry the note: prefix; user memory ids are <scene>/<name>.",
8406
+ "compat.tools.about.plugin_manager_trash": "Delete/restore an item",
8407
+ "compat.tools.hover.memory_manager_get": "The read side for user memories and agent notes. No arguments → catalogs (memories with scene, on/off state and one-line description; notes with layer, status and whether they inject). An id → the full body (user memory ids look like <scene>/<name>; note ids carry the note: prefix, and an unprefixed id is looked up as a memory first, then a note). A query → both catalogs filtered by words. Only injecting entries by default; all=true adds disabled, inactive-scene and archived ones. Read-only.",
8408
+ "compat.tools.hover.memory_manager_switch": "Flips the index switch only — the .md file is untouched and it is reversible. A disabled memory stops being injected, which frees byte budget for the others; prefer this over deleting when you want to spend fewer tokens.",
8409
+ "compat.tools.hover.memory_manager_remember": "Use when the user explicitly asks you to keep something. scope=scene writes into a scene (injected only when that scene is on); scope=global injects in every project; scope=workspace stores a user memory for this workspace (a user asset, no autonomous memory needed). If the user did not say where, ask — do not guess. Pass id to update an existing memory or note instead of creating one. Memories enter every later request, so record only what cannot be re-derived from code, config or git; a second entry with the same name replaces the first body.",
8410
+ "compat.tools.hover.memory_manager_note": "Agent-inferred one-line notes: learn records one (title + text), forget removes one by id, slot, title or the first line as injected. Inspect notes with memory_manager_get. When the user explicitly asks you to keep something, use memory_manager_remember instead. Note ids carry the note: prefix; user memory ids are <scene>/<name>.",
8416
8411
  "compat.tools.hover.scene_manager_list": "Lists every scene: its name (with the display label when it differs — tools need the name), enabled / entered / locked state, its description, bound preset, memory count, and its archive: which MCP servers, skills and personas entering it switches on, everything else going off. Look here before changing a scene's archive — saving replaces a whole section, so an unseen selection gets dropped — and use it to pick which scene to enter. Read-only.",
8417
8412
  "compat.tools.hover.scene_manager_switch": "Enters a scene: its archive is applied across MCP, skills and personas (anything it does not list goes off), injection narrows to its memories, and its bound preset is written into the global AGENTS.md. Leaving restores the runtime snapshot taken on entry, including the previous baseline. Check the scene's archive in scene_manager_list first. It rewrites the whole runtime environment, so it asks for confirmation by default.",
8418
8413
  "compat.tools.hover.scene_manager_save": "Saves a scene — a named bundle the user enters: whatever its archive lists gets switched on, everything else off. It writes the record only; the archive is written by a separate tool (capture fills the archive from what is currently switched on). Writing does not turn the scene on — enter it with scene_manager_switch (or the Scenes page) for that. Fields you omit keep their current value.",
@@ -8430,10 +8425,10 @@ button.dsm-rowselect-box:disabled{cursor:default;opacity:.45}
8430
8425
  "compat.tools.hover.subagent_manager_save": "Creates a persona, or updates the existing one — the receipt says which. You can set the name, description, body (the body becomes the subagent's system prompt) and output contract; omitted fields keep their current values, and a rename makes scene and archive bindings follow. Provider, model and tool limits stay in the panel (the model cannot tell whether it got them right, so it is not offered them). The description decides when the model picks it.",
8431
8426
  "compat.tools.hover.prompt_manager_list": "Lists the global prompt presets (the ones written into AGENTS.md) with their summaries and marks the one currently in effect — only one is active at a time. Use it to confirm the name before switching. Quick prompts are not this domain: the user picks those in the composer, they never enter the context, and there is nothing for the model to do with them.",
8432
8427
  "compat.tools.hover.prompt_manager_apply": "Applies a preset to the user-level AGENTS.md; later conversations follow it immediately. Only one preset is in effect, so applying another replaces it.",
8433
- "compat.tools.hover.tool_manager_tools": "The model switches which of this plugin's tools THIS conversation can use. action=list lists the ones that are off here (one line of purpose each, plus their per-turn token cost); action=enable / disable turns them on or off, affecting this conversation only and taking effect from the next request. This is what unblocks \"switch to that scene\" when the scene tools happen to be off. action=repair fixes a broken sidecar (memory index / scope sidecar / MCP disabled-tools table / model tool table) — that renames the damaged file aside and continues with an empty table (the factory list, for the tool table), so it asks first.",
8428
+ "compat.tools.hover.tool_manager_switch": "The model switches which of this plugin's tools THIS conversation can use. action=list lists the ones that are off here (one line of purpose each, plus their per-turn token cost); action=enable / disable turns them on or off, affecting this conversation only and taking effect from the next request. This is what unblocks \"switch to that scene\" when the scene tools happen to be off. action=repair fixes a broken sidecar (memory index / scope sidecar / MCP disabled-tools table / model tool table) — that renames the damaged file aside and continues with an empty table (the factory list, for the tool table), so it asks first.",
8434
8429
  // One merged delete tool for all five domains: the hover has to carry the domain
8435
8430
  // values, the per-domain id shapes, and the cheaper alternative (switch off).
8436
- "compat.tools.hover.plugin_manager_remove": "Moves one item to the trash, restores one from the trash, or lists the trash. domain says which kind: memory (id is <scene>/<name>), skill, persona, preset (use its id) or scene. Deleting is reversible — to just stop it being injected or leaving the catalog, disable it with the matching switch instead; pass root to pick the source when trashing a skill. Emptying the trash is a panel action on that domain's page.",
8431
+ "compat.tools.hover.plugin_manager_trash": "Moves one item to the trash, restores one from the trash, or lists the trash. domain says which kind: memory (id is <scene>/<name>), skill, persona, preset (use its id) or scene. Deleting is reversible — to just stop it being injected or leaving the catalog, disable it with the matching switch instead; pass root to pick the source when trashing a skill. Emptying the trash is a panel action on that domain's page.",
8437
8432
  "compat.live.title": "Live injection", "compat.live.hint": "What the model actually sees (read-only)",
8438
8433
  "compat.live.never": "nothing delivered in this conversation yet", "compat.live.delivered": "{count} delivered in this conversation · last {time}",
8439
8434
  "compat.live.copy": "Copy all", "compat.live.copied": "Copied", "compat.live.noAgent": "No session yet — send a message first",
@@ -16510,11 +16505,10 @@ function enabledMemoryCount(rules) {
16510
16505
  var deleted = m.deletedAt ? new Date(m.deletedAt).toLocaleString() : ''
16511
16506
  if (deleted) rows.push([t('trash.preview.field.deletedAt'), deleted])
16512
16507
  if (domain === 'memories') {
16513
- // 自动记忆的停用副本:没有场景、不是 bundle,多报一层与「已归档」状态。
16508
+ // 自动记忆的副本:没有场景、不是 bundle,只多报一条属于自己的层。
16514
16509
  if (m.auto === true) {
16515
16510
  rows.push([t('trash.preview.field.auto'), t('trash.preview.yes')])
16516
16511
  rows.push([t('trash.preview.field.layer'), t('evo.layer.' + (m.autoLayer === 'global' ? 'global' : 'workspace'))])
16517
- rows.push([t('trash.preview.field.status'), t('evo.tag.archived')])
16518
16512
  return rows
16519
16513
  }
16520
16514
  if (m.group !== undefined) rows.push([t('trash.preview.field.scene'), sceneLabel([], String(m.group || ''))])
@@ -21415,9 +21409,9 @@ function enabledMemoryCount(rules) {
21415
21409
  }
21416
21410
 
21417
21411
  /**
21418
- * 否决当前这条 → 归档(不再注入、收进列表底部的「已归档」、随时可恢复),然后进入下一条。
21412
+ * 否决当前这条 → 正文移进统一回收站,然后进入下一条。
21419
21413
  *
21420
- * 不用 `evolution-forget`:那条会删文件并写墓碑,30 天内同义内容学不回来 ——
21414
+ * 不用 `evolution-forget`:那条会写墓碑,30 天内同义内容学不回来 ——
21421
21415
  * 「这条我不要」和「这个说法以后都别记」是两件事,否决只该表达前一件。
21422
21416
  */
21423
21417
  function rejectEvolutionInReview() {
@@ -21425,7 +21419,7 @@ function enabledMemoryCount(rules) {
21425
21419
  if (!cur || cur.busy || cur.loading) return
21426
21420
  var id = cur.id
21427
21421
  setEvoReview(Object.assign({}, cur, { busy: true, error: null }))
21428
- apiCall('evolution-set-status', { id: id, status: 'archived' }).then(function (res) {
21422
+ apiCall('evolution-discard', { id: id }).then(function (res) {
21429
21423
  if (!res || res.ok === false) {
21430
21424
  setEvoReview(function (c) {
21431
21425
  return c && c.id === id ? Object.assign({}, c, { busy: false, error: translateError(t, res) }) : c
@@ -21534,23 +21528,6 @@ function enabledMemoryCount(rules) {
21534
21528
  }).catch(function (e) { setEvoBusy(false); setResult({ ok: false, text: errMsg(e) }) })
21535
21529
  }
21536
21530
 
21537
- /**
21538
- * 已归档 → 生效。
21539
- *
21540
- * 归档只是"不再注入",文件与正文都还在;恢复就是把状态拨回 `active`。
21541
- * 不走回收站:回收站管的是删除,已归档的条目从没进过那里。
21542
- */
21543
- function restoreEvolution(id) {
21544
- setEvoBusy(true)
21545
- apiCall('evolution-set-status', { id: id, status: 'active' }).then(function (res) {
21546
- setEvoBusy(false)
21547
- if (res && res.ok !== false) {
21548
- setResult({ ok: true, text: t('evo.restored') })
21549
- refreshEvolution()
21550
- } else setResult({ ok: false, text: translateError(t, res) })
21551
- }).catch(function (e) { setEvoBusy(false); setResult({ ok: false, text: errMsg(e) }) })
21552
- }
21553
-
21554
21531
  /** 算整理草案(只读)。结果留在卡片里,用户逐条「应用」。 */
21555
21532
  function runOrganize() {
21556
21533
  setEvoOrg({ busy: true, drafts: null, scanned: 0, error: null })
@@ -21627,9 +21604,7 @@ function enabledMemoryCount(rules) {
21627
21604
  // core / playbook 是旧数据里仍可注入的两档,按「生效」显示,不标成待确认。
21628
21605
  var statusKey = e.status === 'core' ? 'evo.tag.core'
21629
21606
  : e.status === 'active' || e.status === 'playbook' ? 'evo.tag.active'
21630
- : e.status === 'superseded' ? 'evo.tag.superseded'
21631
- : e.status === 'archived' ? 'evo.tag.archived'
21632
- : 'evo.tag.candidate'
21607
+ : 'evo.tag.candidate'
21633
21608
  var enabled = e.enabled !== false
21634
21609
  var tone = !enabled ? 'idle' : e.status === 'core' || e.status === 'active' || e.status === 'playbook' ? 'ok' : e.status === 'candidate' ? 'warn' : 'idle'
21635
21610
  var pending = e.status === 'candidate'
@@ -21874,9 +21849,10 @@ function enabledMemoryCount(rules) {
21874
21849
  }
21875
21850
 
21876
21851
  /**
21877
- * 过滤一组自主记忆:搜索命中 + 拆出已归档 / 已取代,并算出生效数。
21878
- * 已归档单独回传(卡片底部那行「已归档」用它渲染恢复入口);已取代是历史,
21879
- * 没有恢复语义,直接丢。
21852
+ * 过滤一组自主记忆:搜索命中 + 丢掉已归档 / 已取代,并算出生效数。
21853
+ *
21854
+ * 已归档不再出现在自主记忆目录里:否决与删除都把正文移进了统一回收站,
21855
+ * 恢复入口只有回收站一个,这里不需要第二套。
21880
21856
  */
21881
21857
  function evolutionGroupView(groups) {
21882
21858
  return (groups || []).map(function (g) {
@@ -21888,10 +21864,8 @@ function enabledMemoryCount(rules) {
21888
21864
  return hay.toLowerCase().indexOf(q) >= 0
21889
21865
  })
21890
21866
  }
21891
- // 已归档不进生效列表,但也不是垃圾:放在底部折叠区里,能一键恢复。
21892
21867
  var live = rows.filter(function (e) { return e.status !== 'archived' && e.status !== 'superseded' })
21893
- var archived = rows.filter(function (e) { return e.status === 'archived' })
21894
- return { key: g.key, label: g.label, live: live, on: evolutionOnCount(live), archived: archived }
21868
+ return { key: g.key, label: g.label, live: live, on: evolutionOnCount(live) }
21895
21869
  })
21896
21870
  }
21897
21871
 
@@ -21905,55 +21879,27 @@ function enabledMemoryCount(rules) {
21905
21879
  React.createElement('span', { className: 'dsm-evo-divider-line' }))
21906
21880
  }
21907
21881
 
21908
- /**
21909
- * 已归档行:只留名称、正文摘要与「恢复」。
21910
- *
21911
- * 归档的条目不再注入,行内开关没有意义;要删就直接从列表里恢复后删,
21912
- * 或去回收站 —— 这里只给一条最常用的出路。
21913
- */
21914
- function renderArchivedRow(e) {
21915
- var title = evolutionNameOf(e)
21916
- var body = String(e.oneLine || '').trim()
21917
- return React.createElement(ListRow, {
21918
- key: 'arch:' + e.id,
21919
- dots: [React.createElement(StatusDot, { key: 'd', tone: 'idle', title: t('evo.tag.archived') })],
21920
- name: title,
21921
- meta: body !== '' && body !== title
21922
- ? [React.createElement('span', { key: 'body', className: 'dsm-listrow-meta-desc', title: body }, body)]
21923
- : undefined,
21924
- side: React.createElement('button', {
21925
- type: 'button', className: 'dsm-btn dsm-btn-quiet', disabled: evoBusy,
21926
- title: t('evo.archived.restoreTip'),
21927
- onClick: function () { restoreEvolution(e.id) },
21928
- }, t('evo.archived.restore')),
21929
- })
21930
- }
21931
-
21932
21882
  /**
21933
21883
  * 工作区自主记忆卡。`groups` 是这张卡要展示的工作区分组,组间画分节线。
21934
21884
  * `cardKey` 同时是折叠状态的键。
21935
21885
  *
21936
21886
  * 复用场景卡的骨架(.dsm-source),行沿用 renderEvolutionRow(ListRow):
21937
- * 名称 + 正文,候选行右侧有「确认」,生效行右侧是开关(关闭只停止注入,删除才进回收站)。
21887
+ * 名称 + 正文,候选行右侧有「确认」,生效行右侧是开关(关闭只停止注入,否决与删除都进回收站)。
21938
21888
  * 卡头右侧的「设置」开设置弹窗(两层开关 / 风格 / 整理),卡片本身只管展示与逐条操作。
21939
21889
  *
21940
- * 已归档的条目收在卡片底部一行折叠里:它们不在生效清单里,但用户否决错了要能
21941
- * 就地找回 —— 回收站里没有它们(归档不删文件)。
21890
+ * 已归档 / 已否决 / 已删除都不在这里:正文已经移进统一回收站,恢复入口只有回收站。
21942
21891
  */
21943
21892
  function renderEvolutionCard(opts) {
21944
21893
  var layerOn = opts.layerOn
21945
21894
  var groups = evolutionGroupView(opts.groups)
21946
21895
  var total = 0
21947
21896
  var onCount = 0
21948
- var archivedRows = []
21949
21897
  groups.forEach(function (g) {
21950
21898
  total += g.live.length
21951
21899
  onCount += g.on
21952
- archivedRows = archivedRows.concat(g.archived)
21953
21900
  })
21954
- // 生效的一条都没有、归档也没有 → 不渲染:空卡只占空间。
21955
- // 只有归档时必须画:否则刚否决最后一条,卡片连同恢复入口一起消失。
21956
- if (total === 0 && archivedRows.length === 0) return null
21901
+ // 一条生效的都没有 → 不渲染:空卡只占空间。
21902
+ if (total === 0) return null
21957
21903
  // 默认展开跟总开关走(开 = 这里就是它注入的清单,该一眼能看);手动收起的以手动为准。
21958
21904
  var openFlag = collapsed[opts.cardKey]
21959
21905
  var baseOpen = openFlag === undefined ? layerOn : openFlag !== true
@@ -21964,18 +21910,6 @@ function enabledMemoryCount(rules) {
21964
21910
  body.push(renderEvolutionDivider('h:' + g.key, g.label, g.on, g.live.length))
21965
21911
  body = body.concat(g.live.map(function (e) { return renderEvolutionRow(e) }))
21966
21912
  })
21967
- if (archivedRows.length > 0) {
21968
- var archivedKey = opts.cardKey + ':archived'
21969
- var archivedOpen = collapsed[archivedKey] === true
21970
- body.push(React.createElement('div', { key: archivedKey, className: 'dsm-evo-archived' },
21971
- React.createElement('button', {
21972
- type: 'button', className: 'dsm-evo-review-toggle', 'aria-expanded': archivedOpen,
21973
- onClick: function () { toggleCollapse(archivedKey, !archivedOpen) },
21974
- }, t('evo.archived.toggle', { count: archivedRows.length })),
21975
- archivedOpen
21976
- ? React.createElement('div', { className: 'dsm-evo-archived-list' }, archivedRows.map(renderArchivedRow))
21977
- : null))
21978
- }
21979
21913
  // 总开关开 = 卡照常;关 = 整卡置灰(条目还在盘上,只是不再注入)。
21980
21914
  return React.createElement('div', { key: opts.cardKey, className: 'dsm-source' + (layerOn ? '' : ' dsm-rule-off') },
21981
21915
  React.createElement('div', { className: 'dsm-source-head' },
@@ -22589,12 +22523,9 @@ function enabledMemoryCount(rules) {
22589
22523
  active: auto.active || 0,
22590
22524
  pending: auto.pending || 0,
22591
22525
  })
22592
- // 待复核与已归档只在非零时追加:它们是"需要你做什么"与"你已经收起了什么",
22593
- // 恒显示一个 0 只会让这行变长。这两个数服务端一直在给,界面此前从没读过。
22526
+ // 待复核只在非零时追加:它表示"需要你做什么",恒显示一个 0 只会让这行变长。
22594
22527
  var evoDue = Number(auto.reviewDue) || 0
22595
22528
  if (evoDue > 0) statText += t('evo.stat.reviewDue', { due: evoDue })
22596
- var evoArchived = Number(auto.archived) || 0
22597
- if (evoArchived > 0) statText += t('evo.stat.archived', { archived: evoArchived })
22598
22529
  // 索引读坏:条目可能整块为空,而用户看到的是"我明明学过几条"。这一句必须显式
22599
22530
  // 说清是读不到,不是没有 —— 否则他会以为自己的记忆丢了。
22600
22531
  if (auto.broken === true) statText += t('evo.stat.broken')
@@ -22741,9 +22672,11 @@ function enabledMemoryCount(rules) {
22741
22672
  // 注入预算本来就是"已用/上限",与上面两格同形;超限整格转错误色。
22742
22673
  // 已用只取服务端的 `injectBytes.bytes`(记忆域),不叠加任何本地累加 ——
22743
22674
  // 见上面预算那段注释。取不到时值是「未知 / 降级」,不是 0。
22675
+ // 这格按内容取宽(dsm-head-stat-auto),不与另两格等分:它的文字最长
22676
+ // (「记忆域预算 262144/262144 B」),等分时先被截断(用户 2026-11-12)。
22744
22677
  [budgetValue,
22745
22678
  budgetOver ? t('memory.budget.label') + ' · ' + t('memory.budget.over') : t('memory.budget.label'),
22746
- budgetOver ? 'dsm-stat-over' : ''],
22679
+ 'dsm-head-stat-auto' + (budgetOver ? ' dsm-stat-over' : '')],
22747
22680
  // 冲突格**只在真有时才出现**:恒显示一个 0 的统计比不显示更糟 —— 用户会
22748
22681
  // 以为"没有冲突",而实际上那个字段此前压根没被赋值过。
22749
22682
  ...(evoConflicts > 0
@@ -22902,12 +22835,12 @@ function enabledMemoryCount(rules) {
22902
22835
  onClick: function () { stepEvolutionReview(1) },
22903
22836
  }, '›')),
22904
22837
  // 左下否决 / 右下确认(用户 2026-11-11)。处理完自动进下一条,全部处理完自动关窗。
22905
- // 否决 = 归档(不注入、可恢复),不是删除 —— 删除会写墓碑,30 天内同义内容
22838
+ // 否决 = 正文移进回收站,可恢复,但不写墓碑 —— 删除会写墓碑,30 天内同义内容
22906
22839
  // 都学不回来,那是另一件事。
22907
22840
  React.createElement('div', { className: 'dsm-modal-actions dsm-modal-actions-split' },
22908
22841
  // 与「确认」同一档主按钮(用户 2026-11-11):两个都是对这条记忆的处置,
22909
- // 没有主次,方向由文案与左右位置表达。**不用红色** —— 否决是归档(不注入、
22910
- // 可恢复),不是销毁;红色在这里会把「先不采用」说成「危险操作」。
22842
+ // 没有主次,方向由文案与左右位置表达。**不用红色** —— 否决是把正文收进
22843
+ // 回收站,可恢复,不是销毁;红色在这里会把「先不采用」说成「危险操作」。
22911
22844
  React.createElement('button', { type: 'button', className: 'dsm-btn', disabled: evoReview.busy || evoReview.loading, onClick: rejectEvolutionInReview }, t('evo.review.reject')),
22912
22845
  React.createElement('button', {
22913
22846
  type: 'button', className: 'dsm-btn',
@@ -23026,7 +22959,11 @@ function enabledMemoryCount(rules) {
23026
22959
  */
23027
22960
  editor.mode === 'create'
23028
22961
  ? React.createElement('div', { className: 'dsm-target-pick' },
22962
+ // 层级下拉只装短标签(全局 / 工作区 / 场景),给它固定窄宽;
22963
+ // 腾出来的横向空间全给右边那个 —— 它装的是工作区名 / 场景名,
22964
+ // 那串名字常比容器还长,收窄了就被截成看不出是哪一档。
23029
22965
  React.createElement(SourceSelect, {
22966
+ className: 'dsm-target-level',
23030
22967
  options: createTargets.levels,
23031
22968
  value: createKind,
23032
22969
  ariaLabel: t('memory.field.level'),
@@ -23034,6 +22971,7 @@ function enabledMemoryCount(rules) {
23034
22971
  onChange: function (v) { onPickCreateLevel(v) },
23035
22972
  }),
23036
22973
  createKind === 'global' ? null : React.createElement(SourceSelect, {
22974
+ className: 'dsm-target-name',
23037
22975
  options: createKind === 'workspace' ? createTargets.workspace : createTargets.scene,
23038
22976
  value: editor.group || '',
23039
22977
  ariaLabel: createKind === 'workspace' ? t('memory.level.workspace') : t('memory.level.scene'),
@@ -538,7 +538,7 @@ export const CAPABILITY_SPECS = [
538
538
  methods: ['prepareCall'],
539
539
  // 自主记忆的后台复习走这条路:`prepareCall(config)` 拿到 `{config, stream}`,再派发一次。
540
540
  // 两个形状缺一个,复习每次都失败(日志里只有一句 review-failed),而热路径的
541
- // `memory_note` 不受影响 —— 症状是「开了自主记忆但从来不学」,界面看起来一切正常。
541
+ // `memory_manager_note` 不受影响 —— 症状是「开了自主记忆但从来不学」,界面看起来一切正常。
542
542
  //
543
543
  // 官方实现是 **async**(`dsh-llm` 的 provider 门面):返回的是 Promise,同步探测看不到
544
544
  // 里面的 config / stream。那种情况只核对签名,不判形状 —— 把 Promise 当"缺 config"报,