dsh-agent-enhancer 0.3.1 → 0.3.3

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 (71) hide show
  1. package/README.en.md +15 -22
  2. package/README.md +15 -22
  3. package/lib/client/dsh/controls.d.ts.map +1 -1
  4. package/lib/client/dsh/persist-settings.d.ts +71 -0
  5. package/lib/client/dsh/persist-settings.d.ts.map +1 -0
  6. package/lib/client/dsh/settings-form.d.ts +19 -1
  7. package/lib/client/dsh/settings-form.d.ts.map +1 -1
  8. package/lib/client/dsh/settings.d.ts +4 -1
  9. package/lib/client/dsh/settings.d.ts.map +1 -1
  10. package/lib/client/index.d.ts.map +1 -1
  11. package/lib/client/locales.d.ts +39 -27
  12. package/lib/client/locales.d.ts.map +1 -1
  13. package/lib/client/rollback/controller.d.ts +1 -0
  14. package/lib/client/rollback/controller.d.ts.map +1 -1
  15. package/lib/client/rollback/cut-cache.d.ts +13 -0
  16. package/lib/client/rollback/cut-cache.d.ts.map +1 -0
  17. package/lib/client/rollback/modal-host.d.ts.map +1 -1
  18. package/lib/client/rollback/remote.d.ts +2 -1
  19. package/lib/client/rollback/remote.d.ts.map +1 -1
  20. package/lib/client/rollback/scope.d.ts +3 -1
  21. package/lib/client/rollback/scope.d.ts.map +1 -1
  22. package/lib/client/rollback/session-stats-dock.d.ts +1 -1
  23. package/lib/client/rollback/session-stats-dock.d.ts.map +1 -1
  24. package/lib/client/rollback/session-stats-filter.d.ts +9 -8
  25. package/lib/client/rollback/session-stats-filter.d.ts.map +1 -1
  26. package/lib/client/rollback/session-stats-meter.d.ts +4 -2
  27. package/lib/client/rollback/session-stats-meter.d.ts.map +1 -1
  28. package/lib/client/rollback/timeline-panel.d.ts +2 -4
  29. package/lib/client/rollback/timeline-panel.d.ts.map +1 -1
  30. package/lib/client/rollback/timeline-tab.d.ts +3 -2
  31. package/lib/client/rollback/timeline-tab.d.ts.map +1 -1
  32. package/lib/client/rollback/transcript-filter.d.ts +16 -6
  33. package/lib/client/rollback/transcript-filter.d.ts.map +1 -1
  34. package/lib/client/rollback/transcript.d.ts +15 -9
  35. package/lib/client/rollback/transcript.d.ts.map +1 -1
  36. package/lib/client/rollback/types.d.ts +4 -1
  37. package/lib/client/rollback/types.d.ts.map +1 -1
  38. package/lib/client/rollback/user-node.d.ts.map +1 -1
  39. package/lib/client.js +612 -346
  40. package/lib/client.js.map +1 -1
  41. package/lib/config.d.ts +3 -1
  42. package/lib/config.d.ts.map +1 -1
  43. package/lib/host/auto-route/classifier.d.ts.map +1 -1
  44. package/lib/host/auto-route/session-hook.d.ts.map +1 -1
  45. package/lib/host/auto-route/session-selection.d.ts +5 -1
  46. package/lib/host/auto-route/session-selection.d.ts.map +1 -1
  47. package/lib/host/checkpoint/chain-files.d.ts +35 -0
  48. package/lib/host/checkpoint/chain-files.d.ts.map +1 -0
  49. package/lib/host/checkpoint/cut-filter.d.ts +9 -0
  50. package/lib/host/checkpoint/cut-filter.d.ts.map +1 -0
  51. package/lib/host/checkpoint/cut-live.d.ts +13 -0
  52. package/lib/host/checkpoint/cut-live.d.ts.map +1 -0
  53. package/lib/host/checkpoint/cut-store.d.ts +30 -0
  54. package/lib/host/checkpoint/cut-store.d.ts.map +1 -0
  55. package/lib/host/checkpoint/dsh.d.ts.map +1 -1
  56. package/lib/host/checkpoint/files.d.ts.map +1 -1
  57. package/lib/host/checkpoint/live.d.ts +1 -0
  58. package/lib/host/checkpoint/live.d.ts.map +1 -1
  59. package/lib/host/checkpoint/service.d.ts +44 -5
  60. package/lib/host/checkpoint/service.d.ts.map +1 -1
  61. package/lib/host/checkpoint/store.d.ts +6 -0
  62. package/lib/host/checkpoint/store.d.ts.map +1 -1
  63. package/lib/host/index.d.ts +2 -1
  64. package/lib/host/index.d.ts.map +1 -1
  65. package/lib/host/model.d.ts.map +1 -1
  66. package/lib/host/rpc.d.ts +4 -0
  67. package/lib/host/rpc.d.ts.map +1 -1
  68. package/lib/identity.d.ts +1 -1
  69. package/lib/index.js +1063 -1086
  70. package/lib/index.js.map +4 -4
  71. package/package.json +4 -2
package/README.en.md CHANGED
@@ -17,7 +17,7 @@ English | [简体中文](./README.md)
17
17
  | Category | You want to… | Do this |
18
18
  | --- | --- | --- |
19
19
  | **Write** | Revisit / clarify / continue | `↑↓` or `Alt+R`; **Optimize** on the right; after a reply, `Tab` for the gray suggestion |
20
- | **Restore** | Go back before a turn | **Checkpoint timeline** / **Restore to here** → confirm in preview; **Undo restore** via **+** / `/` when available |
20
+ | **Restore** | Truncate & retry | Bubble / timeline **Restore to here** (optional tracked files); **Undo restore** via **+** / `/` |
21
21
  | **Usage & cost** | See tokens spent and remaining credit | **Token usage** → **Model bill**; **Settings → Models** for per-account balance; helpers can use a cheaper model or Auto |
22
22
  | **Context** | See how full the window is | Context meter → right-pane details; optional **Compress context** |
23
23
  | **Routing** | Let the session pick a strength tier | Choose **Auto** in the model list; map Instant / Thinking / Pro in settings |
@@ -34,7 +34,7 @@ Grouped by capability; screenshots share a row so new features extend the matchi
34
34
  | Category | Includes | How to use | Notes |
35
35
  | --- | --- | --- | --- |
36
36
  | **Write** | History · Optimize · Predict | First/last-line `↑↓`; `Alt+R` (`Ctrl+R` where available); Optimize on the right (undo; selection-only when selected); gray suggestion after a reply, `Tab` to accept | Current loaded session only; `Enter` fills without sending; chip drafts ignore history keys; vague drafts gain detail, specific drafts stay lean; at most one prediction per turn |
37
- | **Restore** | Checkpoint timeline · Restore to here · Undo restore | Open session stats from the composer “N turns / M steps” pill, then click the **Session statistics** title row; or the **Checkpoint timeline** icon on a user message; restore from the timeline or **Restore to here** → preview conversation-only or + tracked files; after restore open **+** / `/` → **Undo restore** (while a tip remains) | No processes / terminals / untracked files; existing checkpoints stay if you turn the switch off |
37
+ | **Restore** | Bubble restore · Checkpoint timeline · Undo restore | **Projection truncate (cut-first):** **Restore to here** on a message or the right-pane checkpoint timeline → preview first (conversation-only or + tracked **text** files, including deleted paths) → on confirm, write the projection cut then restore files; chat and the model hide everything past the cut **without** appending a tip to the DSH log. Use **+** / `/` → **Undo restore**. Optional: composer “N turns / M steps” → **Session statistics** title row also opens the timeline | File tracking = write/edit intents + Cline-style before/after workspace scan around shells, UTF-8 text only (PNG/WebP binaries are skipped). Multi-turn restore merges tracked files from the target turn through the tip. Official session stats keep full-log counts. No processes / terminals / untracked / binaries / external services. Existing checkpoints and projection cuts stay if you turn the switch off |
38
38
  | **Usage & cost** | Token usage · Model bill · Per-provider balance | Open the bill from the usage title (today / 7d / 30d / all); **Settings → Models** for DeepSeek account / API-key balances | Local input / output / cache-read totals, heatmap, feature share; “≈ ¥” from official rates (not an invoice); account uses Platform wallets, API key uses `/user/balance`; two decimal places |
39
39
  | **Context** | Meter · Details · Compact | Open the meter into the right pane; drill into categories; one-click official `/compact` | System / tools / messages breakdown; numbers are heuristic estimates, not bill-precise |
40
40
  | **Routing** | Auto · Tier maps · Optional classifier | Pick **Auto** in the model list; map Instant / Thinking / Pro; optional small-model classifier | Bilingual heuristic by default; classifier failures fall back; optimize / predict may also use Auto or a fixed model |
@@ -46,7 +46,7 @@ Grouped by capability; screenshots share a row so new features extend the matchi
46
46
  | Category | Toggles / config | Default | Effect |
47
47
  | --- | --- | --- | --- |
48
48
  | **Write** | `historyEnabled` · `optimizeEnabled` · `predictEnabled` | All on | `↑↓` / `Alt+R`; optimize & undo (model pill); gray predict (model pill) |
49
- | **Restore** | `rollbackEnabled` | On | Checkpoint timeline; **Restore to here**; **+** / `/` **Undo restore** |
49
+ | **Restore** | `rollbackEnabled` | On | Bubble / timeline **Restore to here**; **+** / `/` **Undo restore** |
50
50
  | **Context** | `contextInspectEnabled` | On | Context meter → right-pane details |
51
51
  | **Routing** | `autoClassifierEnabled`, etc. | Classifier off | Session / helpers may use Auto; tier maps; optional classifier |
52
52
  | **Maintenance** | Plugin updates | — | Check/apply for npm installs; link installs show guidance only |
@@ -58,7 +58,7 @@ Model pills default to **Follow session**, or pick provider / model / reasoning
58
58
  | Category | What you see | Preview |
59
59
  | --- | --- | --- |
60
60
  | **Write** | History search; optimize control and gray prediction | ![History search](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/prompt-history.png) ![Optimize & predict](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/optimize-and-predict.png) |
61
- | **Restore** | Session-stats / message timeline entry → restore → preview → undo | ![Session stats entry](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-session-stats-entry.png) ![Checkpoint timeline entry](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-timeline-entry.png) ![Rollback entry](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-entry.png) ![Rollback preview](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-preview.png) ![Undo restore](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/undo-restore.png) |
61
+ | **Restore** | Bubble / timeline restore → preview → undo; session-stats row optional | ![Checkpoint timeline entry](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-timeline-entry.png) ![Rollback entry](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-entry.png) ![Rollback preview](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-preview.png) ![Undo restore](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/undo-restore.png) ![Session stats shortcut](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-session-stats-entry.png) |
62
62
  | **Usage & cost** | Token usage entry, model bill, per-provider balance | ![Token usage](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/token-usage-meter.png) ![Model bill](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/model-bill.png) ![Provider balance](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/provider-balance.png) |
63
63
  | **Context** | Meter summary and right-pane details / compact | ![Context meter](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/context-meter.png) ![Context details](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/context-details.png) |
64
64
  | **Routing** | Auto in the model list; tier maps and optional classifier | ![Auto picker](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/auto-model-picker.png) ![Auto routing](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/auto-routing-settings.png) |
@@ -95,7 +95,7 @@ Then open the **Plugin Market** tab, search, and install this plugin. Some third
95
95
  When the `dsh` CLI is available and you intend to write the **desktop** profile:
96
96
 
97
97
  ```sh
98
- dsh plugin --profile desktop add dsh-agent-enhancer@0.3.1
98
+ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.3
99
99
  ```
100
100
 
101
101
  Or unpinned: `dsh plugin --profile desktop add dsh-agent-enhancer`.
@@ -104,27 +104,20 @@ You should then see the optimize control and **Agent Enhance** in settings.
104
104
 
105
105
  ### Local directory (development)
106
106
 
107
- **Do not** run `dsh plugin --profile desktop add <absolute-path>` against this repo: some Desktop / CLI builds rewrite the plugin's `package.json` into `@deepseek-ai/dsh-desktop-runtime` dependencies and break the tree. Link manually instead:
107
+ **Do not** run `dsh plugin --profile desktop add <absolute-path>` against this repo: some Desktop / CLI builds rewrite the plugin `package.json` or corrupt the profile. Use the one-shot switchers (they only edit `~/.dsh/profiles/desktop/package.json`, **never** the plugin Git tree):
108
108
 
109
109
  ```powershell
110
110
  corepack pnpm install --frozen-lockfile
111
- corepack pnpm build
112
-
113
- $Repo = (Resolve-Path .).Path -replace '\\','/'
114
- $ProfileDir = if ($env:DSH_HOME) { Join-Path $env:DSH_HOME 'profiles\desktop' } else { Join-Path $env:USERPROFILE '.dsh\profiles\desktop' }
115
- $ProfilePkg = Join-Path $ProfileDir 'package.json'
116
- $json = Get-Content -LiteralPath $ProfilePkg -Raw | ConvertFrom-Json
117
- if (-not $json.dependencies) { $json | Add-Member -NotePropertyName dependencies -NotePropertyValue ([pscustomobject]@{}) }
118
- $json.dependencies | Add-Member -NotePropertyName 'dsh-agent-enhancer' -NotePropertyValue "link:$Repo" -Force
119
- $bundles = @($json.dsh.profile.bundles)
120
- if ($bundles -notcontains 'dsh-agent-enhancer') {
121
- $json.dsh.profile.bundles = @($bundles + 'dsh-agent-enhancer')
122
- }
123
- ($json | ConvertTo-Json -Depth 20) | Set-Content -LiteralPath $ProfilePkg -Encoding utf8
124
- dsh plugin --profile desktop install
111
+
112
+ # Local dev: build → pack → extract into profile/.dsh-enhancer-pack/pkg, then install
113
+ corepack pnpm desktop:link
114
+
115
+ # Back to npm (defaults to this package.json version; or: pnpm desktop:npm -- 0.3.3)
116
+ corepack pnpm desktop:npm
125
117
  ```
126
118
 
127
- Fully quit and restart Desktop afterward. Later code changes only need `corepack pnpm build` (Desktop loads `lib/`).
119
+ Fully quit and restart Desktop afterward. After local code changes, run `corepack pnpm desktop:link` again (pack-snapshot install; no live repo hot reload).
120
+ Do not point `link:` / `file:` at the repo directory: on Windows that becomes a Junction and exposes this repo's `node_modules`, which leaves the plugin permanently off.
128
121
  Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`, not in `dependencies`.
129
122
 
130
123
  ---
@@ -156,7 +149,7 @@ Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`,
156
149
  | --- | --- |
157
150
  | Official Desktop / dsh-market | Uninstall or disable the plugin on the in-app **Plugins** page; or `dsh plugin --profile desktop remove dsh-agent-enhancer` |
158
151
  | CLI npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
159
- | Local `link:` | **Do not** `remove` / run `pnpm remove` in the profile (can delete the source repo). Follow below |
152
+ | Local `file:` / dev install | **Do not** `remove` / run `pnpm remove` in the profile (a directory link can delete the source repo). Follow below |
160
153
 
161
154
  1. Quit Desktop (including tray)
162
155
  2. Edit the **profile** `package.json`: drop this plugin from `dependencies` and `dsh.profile.bundles`
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  | 类别 | 你想… | 怎么做 |
18
18
  | --- | --- | --- |
19
19
  | **写提示** | 找回 / 改清楚 / 接着问 | `↑↓` 或 `Alt+R`;右侧 **优化**;回复后 `Tab` 采纳灰字 |
20
- | **回退** | 回到某一轮之前 | **检查点时间线** / **恢复到这里** → 预览确认;需要时用 **+** / `/` **撤销恢复** |
20
+ | **回退** | 截断重来 | 气泡 / 时间线 **恢复到这里**(可选已跟踪文件);**+** / `/` **撤销恢复** |
21
21
  | **用量与成本** | 看 token 花多少、账号还剩多少 | **Token 用量** → **模型账单**;**设置 → 模型** 看分账号余额;辅助模型可单独选更便宜档或 Auto |
22
22
  | **上下文** | 看窗口占了多少 | 占用环 → 右侧栏明细;可 **压缩上下文** |
23
23
  | **模型路由** | 让会话自己选强弱档 | 模型列表选 **Auto**;设置里映射 Instant / Thinking / Pro |
@@ -34,7 +34,7 @@
34
34
  | 类别 | 包含 | 怎么用 | 要点 |
35
35
  | --- | --- | --- | --- |
36
36
  | **写提示** | 历史 · 优化 · 预测 | 首/末行 `↑↓`;`Alt+R`(兼容 `Ctrl+R`);右侧优化(可撤销,有选区只改选区);回复后灰字,`Tab` 采纳 | 仅当前已加载会话;`Enter` 只填不发;chip 草稿不误触历史;模糊稿补全、明确稿少改;预测每轮最多一条 |
37
- | **回退** | 检查点时间线 · 恢复到这里 · 撤销恢复 | 底部「N 轮 M 步」打开会话统计,点标题行 **会话统计**;或用户消息旁 **检查点时间线** 图标;时间线 / 消息旁 **恢复到这里** → 预览仅对话或含已跟踪文件;恢复后 **+** / `/` **撤销恢复**(有 tip 时) | 不恢复进程 / 终端 / 未跟踪文件等;关闭开关后保留已有检查点 |
37
+ | **回退** | 气泡恢复 · 检查点时间线 · 撤销恢复 | **投影截断(cut-first):** 消息旁或右侧栏检查点时间线 **恢复到这里** → 先出预览(仅对话或含已跟踪**文本**文件,含已删除路径)→ 确认后先写投影 cut、再还原文件;对话/模型按截断投影隐藏切开之后,**不**往 DSH 日志追加 tip。可用 **+** / `/` **撤销恢复**。可选:底部「N 轮 M 步」→ 会话统计标题行也可打开时间线 | 文件跟踪 = write/edit intent + 壳命令前后工作区扫描(Cline 风格),且仅 UTF-8 文本(PNG/WebP 等二进制不入库)。跨多轮恢复时会合并目标轮及之后所有检查点上的已跟踪文件。官方会话统计保持全量日志计数。不恢复进程 / 终端 / 未跟踪 / 二进制 / 外部服务。关闭开关后保留已有检查点与投影 cut |
38
38
  | **用量与成本** | Token 用量 · 模型账单 · 分账号余额 | 点用量标题进右侧栏账单(今天 / 7 天 / 30 天 / 全部);**设置 → 模型** 看 DeepSeek 账号 / API Key 余额 | 本地汇总输入 / 输出 / 缓存读、热力与功能占比;「约 ¥」按官方价估算非发票;账号走 Platform 钱包、API Key 走 `/user/balance`;金额两位小数 |
39
39
  | **上下文** | 占用环 · 上下文明细 · 压缩 | 点占用环进右侧栏;可跳转分项明细;一键调用官方 `/compact` | 拆分系统提示 / 工具 / 消息;数字为启发式约值,非账单精确值 |
40
40
  | **模型路由** | Auto · 档位映射 · 可选分类器 | 模型列表选 **Auto**;设置映射 Instant / Thinking / Pro;可选开小模型分类 | 默认中英双语启发式;分类失败回退启发式;优化 / 预测也可选 Auto 或指定模型 |
@@ -46,7 +46,7 @@
46
46
  | 类别 | 开关 / 配置 | 默认 | 作用 |
47
47
  | --- | --- | --- | --- |
48
48
  | **写提示** | `historyEnabled` · `optimizeEnabled` · `predictEnabled` | 均开 | `↑↓` / `Alt+R`;优化与撤销(旁有模型药丸);灰字预测(旁有模型药丸) |
49
- | **回退** | `rollbackEnabled` | 开 | 检查点时间线;「恢复到这里」;`+` / `/`「撤销恢复」 |
49
+ | **回退** | `rollbackEnabled` | 开 | 气泡 / 时间线「恢复到这里」;`+` / `/`「撤销恢复」 |
50
50
  | **上下文** | `contextInspectEnabled` | 开 | 占用环 → 右侧栏明细 |
51
51
  | **模型路由** | `autoClassifierEnabled` 等 | 分类器关 | 会话 / 辅助可选 Auto;档位映射;可选小模型分类 |
52
52
  | **维护** | 插件更新 | — | npm 安装可检查更新;链接安装仅说明 |
@@ -58,7 +58,7 @@
58
58
  | 类别 | 说明 | 预览 |
59
59
  | --- | --- | --- |
60
60
  | **写提示** | 历史搜索;优化入口与灰字预测 | ![历史搜索](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/prompt-history.png) ![优化与预测](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/optimize-and-predict.png) |
61
- | **回退** | 会话统计 / 消息旁时间线入口 → 恢复 → 预览 → 撤销 | ![会话统计入口](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-session-stats-entry.png) ![检查点时间线入口](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-timeline-entry.png) ![回滚入口](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-entry.png) ![回滚预览](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-preview.png) ![撤销恢复](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/undo-restore.png) |
61
+ | **回退** | 气泡 / 时间线恢复 → 预览 → 撤销;会话统计行为可选捷径 | ![检查点时间线入口](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-timeline-entry.png) ![回滚入口](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-entry.png) ![回滚预览](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/rollback-preview.png) ![撤销恢复](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/undo-restore.png) ![会话统计捷径](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/checkpoint-session-stats-entry.png) |
62
62
  | **用量与成本** | Token 用量入口、模型账单、分账号余额 | ![Token 用量](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/token-usage-meter.png) ![模型账单](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/model-bill.png) ![分账号余额](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/provider-balance.png) |
63
63
  | **上下文** | 占用摘要与右侧栏明细 / 压缩 | ![上下文占用](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/context-meter.png) ![上下文明细](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/context-details.png) |
64
64
  | **模型路由** | 模型列表 Auto;档位映射与可选分类器 | ![Auto 选择](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/auto-model-picker.png) ![Auto 路由](https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/auto-routing-settings.png) |
@@ -95,7 +95,7 @@
95
95
  本机已配置 `dsh` CLI、且要写入 **desktop** profile 时:
96
96
 
97
97
  ```sh
98
- dsh plugin --profile desktop add dsh-agent-enhancer@0.3.1
98
+ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.3
99
99
  ```
100
100
 
101
101
  也可不钉版本:`dsh plugin --profile desktop add dsh-agent-enhancer`。
@@ -104,27 +104,20 @@ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.1
104
104
 
105
105
  ### 本地目录(开发)
106
106
 
107
- **不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI 会把仓库里的 `package.json` 改写成 `@deepseek-ai/dsh-desktop-runtime` 依赖,破坏开发树。请手动 `link:`:
107
+ **不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI 会改写仓库 `package.json` 或弄坏 profile。本仓库提供一键切换(只改 `~/.dsh/profiles/desktop/package.json`,**不会**进插件 Git):
108
108
 
109
109
  ```powershell
110
110
  corepack pnpm install --frozen-lockfile
111
- corepack pnpm build
112
-
113
- $Repo = (Resolve-Path .).Path -replace '\\','/'
114
- $ProfileDir = if ($env:DSH_HOME) { Join-Path $env:DSH_HOME 'profiles\desktop' } else { Join-Path $env:USERPROFILE '.dsh\profiles\desktop' }
115
- $ProfilePkg = Join-Path $ProfileDir 'package.json'
116
- $json = Get-Content -LiteralPath $ProfilePkg -Raw | ConvertFrom-Json
117
- if (-not $json.dependencies) { $json | Add-Member -NotePropertyName dependencies -NotePropertyValue ([pscustomobject]@{}) }
118
- $json.dependencies | Add-Member -NotePropertyName 'dsh-agent-enhancer' -NotePropertyValue "link:$Repo" -Force
119
- $bundles = @($json.dsh.profile.bundles)
120
- if ($bundles -notcontains 'dsh-agent-enhancer') {
121
- $json.dsh.profile.bundles = @($bundles + 'dsh-agent-enhancer')
122
- }
123
- ($json | ConvertTo-Json -Depth 20) | Set-Content -LiteralPath $ProfilePkg -Encoding utf8
124
- dsh plugin --profile desktop install
111
+
112
+ # 本机开发:build → pack → 解压到 profile/.dsh-enhancer-pack/pkg 再安装
113
+ corepack pnpm desktop:link
114
+
115
+ # 切回线上 npm(默认用本仓库 package.json 的 version;也可 pnpm desktop:npm -- 0.3.3)
116
+ corepack pnpm desktop:npm
125
117
  ```
126
118
 
127
- 然后完全退出并重启 Desktop。之后改代码只需再执行 `corepack pnpm build`(加载的是 `lib/`)。
119
+ 然后完全退出并重启 Desktop。本地改代码后需再执行 `corepack pnpm desktop:link`(当前为 pack 快照安装,不支持对着仓库热更新)。
120
+ 不要对仓库目录用 `link:` / `file:`:Windows 上会变成 Junction,把仓库 `node_modules` 暴露给宿主,插件会一直「已关闭」。
128
121
  与宿主共享的 DSH 包请同时放在 `peerDependencies` 与 `devDependencies`,不要放进 `dependencies`。
129
122
 
130
123
  ---
@@ -156,7 +149,7 @@ dsh plugin --profile desktop install
156
149
  | --- | --- |
157
150
  | 官方桌面端 / dsh-market | 在应用内 **插件** 页对本插件选择卸载或禁用;或 `dsh plugin --profile desktop remove dsh-agent-enhancer` |
158
151
  | 命令行 npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
159
- | 本地 `link:` | **不要** `remove` / 在 profile 里 `pnpm remove`(可能删掉源仓库)。按下面做 |
152
+ | 本地 `file:` / 开发安装 | **不要** `remove` / 在 profile 里 `pnpm remove`(若仍是目录链接可能删源仓库)。按下面做 |
160
153
 
161
154
  1. 退出 Desktop(含托盘)
162
155
  2. 编辑 **profile** 的 `package.json`:从 `dependencies` 与 `dsh.profile.bundles` 去掉本插件
@@ -1 +1 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAGnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C;AAUD,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,kBAAkB,kDAkC/D"}
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/controls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAGnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C;AAUD,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,kBAAkB,kDAqC/D"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Host settings write for the enhancer namespace.
3
+ *
4
+ * Typert requires arity 3 (`expected 3 argument(s), got 2`). Trailing
5
+ * `undefined` becomes `null` on the JSON wire, and Host treats null as a real
6
+ * expected revision (always conflicts). Always pass a numeric revision.
7
+ *
8
+ * When ConfigForm's mirrored revision is stale, refresh via describe and retry
9
+ * once — same recovery idea as ConfigForm.recover, without its pre-queue pin.
10
+ */
11
+ export declare const ENHANCER_SETTINGS_NS = "agent-enhancer";
12
+ export type SettingsPersistOp = {
13
+ readonly op: 'set' | 'unset';
14
+ readonly path: readonly string[];
15
+ readonly value?: unknown;
16
+ };
17
+ type SettingsMutateOk = {
18
+ readonly ok: true;
19
+ readonly value?: unknown;
20
+ };
21
+ type SettingsMutateFail = {
22
+ readonly ok: false;
23
+ readonly error?: {
24
+ readonly message?: string;
25
+ } | string;
26
+ };
27
+ type SettingsMutateResponse = SettingsMutateOk | SettingsMutateFail;
28
+ type SettingsDescribeOk = {
29
+ readonly ok: true;
30
+ readonly value: {
31
+ readonly namespaces?: ReadonlyArray<{
32
+ readonly ns: string;
33
+ readonly revision: number;
34
+ }>;
35
+ };
36
+ };
37
+ type SettingsDescribeFail = {
38
+ readonly ok: false;
39
+ readonly error?: unknown;
40
+ };
41
+ type SettingsDescribeResponse = SettingsDescribeOk | SettingsDescribeFail;
42
+ export type SettingsRemote = {
43
+ readonly settings: {
44
+ readonly mutate: (ns: string, ops: readonly SettingsPersistOp[], expectedRevision: number) => Promise<SettingsMutateResponse>;
45
+ readonly describe?: () => Promise<SettingsDescribeResponse>;
46
+ };
47
+ };
48
+ export type RevisionReader = () => number | undefined;
49
+ /**
50
+ * Soft-resolve `remote.settings`. Cordis blocks nested faces that are not in
51
+ * `inject`, so callers that did not hard-inject must use
52
+ * {@link withSettingsRemote} (lazy inject) instead of this alone.
53
+ */
54
+ export declare function settingsRemoteOf(remote: unknown): SettingsRemote;
55
+ type InjectHost = {
56
+ readonly inject: (deps: readonly string[], callback: (scope: {
57
+ readonly remote: unknown;
58
+ }) => void | (() => void)) => {
59
+ readonly dispose: () => void | Promise<void>;
60
+ };
61
+ };
62
+ /**
63
+ * Run `run` with `remote.settings` available via a one-shot Cordis inject.
64
+ * Avoids putting `remote.settings` on the plugin's boot `inject` list (that
65
+ * delayed Desktop account paint).
66
+ */
67
+ export declare function withSettingsRemote<T>(ctx: InjectHost, run: (remote: unknown) => Promise<T>): Promise<T>;
68
+ /** Persist enhancer config. Throws with Host detail on refusal. */
69
+ export declare function persistEnhancerSettings(remote: unknown, ops: readonly SettingsPersistOp[], readRevision?: RevisionReader): Promise<void>;
70
+ export {};
71
+ //# sourceMappingURL=persist-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"persist-settings.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/persist-settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAO,MAAM,oBAAoB,mBAAmB,CAAA;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,EAAE,KAAK,GAAG,OAAO,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,KAAK,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AACvE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAA;IAClB,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAA;CACxD,CAAA;AACD,KAAK,sBAAsB,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAEnE,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,QAAQ,EAA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E,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,OAAO,EACf,GAAG,EAAE,SAAS,iBAAiB,EAAE,EACjC,YAAY,CAAC,EAAE,cAAc,GAC5B,OAAO,CAAC,IAAI,CAAC,CAcf"}
@@ -1,6 +1,11 @@
1
1
  import type { ConfigForm, ConfigFormSnapshot } from '@deepseek-ai/dsh-client-ui-settings/client';
2
2
  import type { EnhancerSettings } from '../../config.ts';
3
- export type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set'>;
3
+ export type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set' | 'mutate'>;
4
+ type SettingsPathOp = {
5
+ readonly op: 'set' | 'unset';
6
+ readonly path: readonly string[];
7
+ readonly value?: unknown;
8
+ };
4
9
  export declare class AcceptedSettingsForm implements SettingsForm {
5
10
  private readonly form;
6
11
  private readonly listeners;
@@ -10,6 +15,19 @@ export declare class AcceptedSettingsForm implements SettingsForm {
10
15
  getSnapshot(): ConfigFormSnapshot<EnhancerSettings>;
11
16
  subscribe(listener: () => void): () => void;
12
17
  set(field: string, value: unknown): Promise<boolean>;
18
+ /**
19
+ * Optimistic overlay after a successful fence-free Host write (see
20
+ * `persistEnhancerSettings`). Keeps pills in sync until ConfigForm mirrors
21
+ * the document-updated event.
22
+ */
23
+ acceptLocal(ops: readonly SettingsPathOp[]): void;
24
+ /**
25
+ * Fallback Host write through ConfigForm. Prefer `persistEnhancerSettings`
26
+ * for UI saves — ConfigForm always attaches a revision fence.
27
+ */
28
+ mutate(ops: readonly SettingsPathOp[], expectedRevision?: number): Promise<boolean>;
29
+ private remember;
13
30
  private refresh;
14
31
  }
32
+ export {};
15
33
  //# sourceMappingURL=settings-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-form.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB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AAY;IAK3C,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IACtD,OAAO,CAAC,QAAQ,CAAsC;gBAEzB,IAAI,EAAE,YAAY;IAI/C,WAAW,IAAI,kBAAkB,CAAC,gBAAgB,CAAC;IAInD,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAYrC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1D;;;;OAIG;IACH,WAAW,CAAC,GAAG,EAAE,SAAS,cAAc,EAAE,GAAG,IAAI;IAIjD;;;OAGG;IACG,MAAM,CACV,GAAG,EAAE,SAAS,cAAc,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC;IAgBnB,OAAO,CAAC,QAAQ;IAWhB,OAAO,CAAC,OAAO;CAehB"}
@@ -3,10 +3,13 @@ import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
3
3
  import type { ModelCatalog } from '@deepseek-ai/dsh-api-session-controller/types';
4
4
  import type { EnhancerSettings } from '../../config.ts';
5
5
  import type { ApplyUpdateResult, UpdateCheckResult } from '../../host/update/types.ts';
6
- type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set'>;
6
+ import type { SettingsPersistOp } from './persist-settings.ts';
7
+ type SettingsForm = Pick<ConfigForm<EnhancerSettings>, 'getSnapshot' | 'subscribe' | 'set' | 'mutate'>;
7
8
  export interface PluginSettingsProps {
8
9
  readonly form: SettingsForm;
9
10
  readonly t: TranslateNS<'agent-enhancer'>;
11
+ /** Fence-free Host write; preferred over form.mutate/set for Desktop 0.2.2. */
12
+ readonly persist?: (ops: readonly SettingsPersistOp[]) => Promise<void>;
10
13
  readonly loadCatalog?: () => Promise<ModelCatalog>;
11
14
  readonly checkUpdate?: () => Promise<UpdateCheckResult>;
12
15
  readonly applyUpdate?: () => Promise<ApplyUpdateResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,+CAA+C,CAAA;AAYrG,OAAO,KAAK,EAA4C,gBAAgB,EAAc,MAAM,iBAAiB,CAAA;AAC7G,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAwEtF,KAAK,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,KAAK,CAAC,CAAA;AAQ3F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAA;IAClD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACxD;AAsvBD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAUxD"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/settings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAsB,MAAM,+CAA+C,CAAA;AAYrG,OAAO,KAAK,EAGV,gBAAgB,EAEjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAYtF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AA6D9D,KAAK,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAQtG,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;IACzC,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,iBAAiB,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACvE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAA;IAClD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACvD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CACxD;AA8wBD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAUxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAmFlD,eAAO,MAAM,MAAM,UAGlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA6dxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAyFlD,eAAO,MAAM,MAAM,UAMlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA6fxC"}
@@ -1,6 +1,6 @@
1
1
  declare module '@deepseek-ai/dsh-client-ui-slots' {
2
2
  interface LocaleNamespaceMap {
3
- 'agent-enhancer': 'historyTitle' | 'historySearch' | 'historyResults' | 'historyClose' | 'optimize' | 'optimizePending' | 'optimizeUndo' | 'optimizeError' | 'optimizeChips' | 'optimizeChipSelection' | 'optimizeModelUnavailable' | 'optimizeRequestFailed' | 'optimizeInvalidOutput' | 'optimizeRollbackFailed' | 'optimizeSessionChanged' | 'settingsTitle' | 'settingsSubtitle' | 'history' | 'historyDescription' | 'optimizeDescription' | 'predict' | 'predictDescription' | 'privacyTitle' | 'privacy' | 'coexistence' | 'settingsError' | 'modelCatalogLoading' | 'modelCatalogError' | 'modelLabel' | 'modelFollowSession' | 'modelAuto' | 'modelUnconfigured' | 'reasoningDefault' | 'settingsBack' | 'settingsConfigure' | 'usageTitle' | 'usageNote' | 'usageMeterOpen' | 'usageBuckets' | 'usageBucketInput' | 'usageBucketOutput' | 'usageBucketCacheRead' | 'usageBucketCacheWrite' | 'usageReasoningNote' | 'usageChartSources' | 'usageChartModels' | 'usageChartTotal' | 'usageChartEmpty' | 'usageHeatmap' | 'usageHeatmapHint' | 'usageHeatmapHourHint' | 'usageShareBar' | 'usageTotalLabel' | 'usageEstimateLabel' | 'usageEstimateHint' | 'usageUnpriced' | 'usageBalanceLabel' | 'usageBalanceDetail' | 'usageBalanceStale' | 'usageBalanceNoKey' | 'usageBalanceUnavailable' | 'providerBalanceLabel' | 'providerBalanceDetail' | 'providerBalanceStale' | 'providerBalanceLoading' | 'providerBalanceNoKey' | 'providerBalanceSignedOut' | 'providerBalanceUnavailable' | 'providerBalanceRefreshHint' | 'usageRecordModel' | 'usageRecordProvider' | 'usageRecordEffort' | 'usageRecordInput' | 'usageRecordOutput' | 'usageRecordCacheRead' | 'usageRecordCacheWrite' | 'usageModelRouteEffort' | 'usageBack' | 'usageRecordsOpen' | 'usageRecordsHint' | 'usageRecordsEmpty' | 'usageLoading' | 'usageLoadFailed' | 'usageRetry' | 'usageRefresh' | 'usageUnavailable' | 'usageEmpty' | 'usageRangeLabel' | 'usageRange_today' | 'usageRange_7d' | 'usageRange_30d' | 'usageRange_all' | 'usageRecent' | 'usageRetention' | 'usageCalls' | 'usageModelRoute' | 'usageSource_optimize' | 'usageSource_predict' | 'usageSource_compact' | 'usageSource_autoClassifier' | 'usageSource_session' | 'usageSource_compaction' | 'usageSource_sessionTitle' | 'usageSource_other' | 'updateTitle' | 'updateCurrent' | 'updateCheck' | 'updateChecking' | 'updateLatest' | 'updateAvailable' | 'updateApply' | 'updateApplying' | 'updateRestart' | 'updateLinkBlocked' | 'updateManual' | 'updateFailed' | 'updateCheckFailed' | 'updateCopy' | 'updateCopied' | 'autoRouting' | 'autoRoutingDescription' | 'autoClassifier' | 'autoClassifierDescription' | 'autoMappingTitle' | 'autoTier_instant' | 'autoTier_thinking' | 'autoTier_pro' | 'autoTier_classifier' | 'overlapHistory' | 'overlapOptimize' | 'overlapPredict' | 'dismissHint' | 'rollback' | 'rollbackDescription' | 'rollbackBoundary' | 'rollbackAction' | 'rollbackUndoAction' | 'rollbackUndoCommandDescription' | 'rollbackTitle' | 'rollbackScope' | 'rollbackScopeAlready' | 'rollbackScopeCovered' | 'rollbackUndoTitle' | 'rollbackUndoScope' | 'rollbackUndoScopeConversation' | 'rollbackClose' | 'rollbackConfirm' | 'rollbackConfirmConversation' | 'rollbackConfirmAlready' | 'rollbackConfirmConversationAlready' | 'rollbackUndoConfirm' | 'rollbackUndoConfirmConversation' | 'rollbackCancel' | 'rollbackLoading' | 'rollbackAlreadyRestored' | 'rollbackCoveredByEarlier' | 'rollbackRestoring' | 'rollbackRestoringConversation' | 'rollbackUndoRestoring' | 'rollbackUndoRestoringConversation' | 'rollbackFailed' | 'rollbackFailedUnavailable' | 'rollbackFailedConflict' | 'rollbackFailedRecovery' | 'rollbackRetry' | 'rollbackTurnOpen' | 'rollbackTurnStartMissing' | 'rollbackSummary' | 'rollbackSummaryLabel' | 'rollbackMessageEmpty' | 'rollbackRole_user' | 'rollbackRole_assistant' | 'rollbackRole_tool' | 'rollbackRole_system' | 'rollbackRole_other' | 'rollbackCoverageFiles' | 'rollbackCoveragePartial' | 'rollbackCoverageConversation' | 'rollbackTimelineTitle' | 'rollbackTimelineOpen' | 'rollbackTimelineLead' | 'rollbackTimelineLoading' | 'rollbackTimelineFailed' | 'rollbackTimelineEmpty' | 'rollbackTimelineNoSession' | 'rollbackTimelineTurn' | 'rollbackTimelineRolledBack' | 'rollbackTimelineTip' | 'rollbackTimelineOpening' | 'rollbackTimelineCoveredHint' | 'rollbackTimelineNoPrompt' | 'rollbackTimelineFileFallback' | 'rollbackTimelineFilesFallback' | 'rollbackTimelineCoverageFiles' | 'rollbackTimelineCoveragePartial' | 'rollbackTimelineCoverageConversation' | 'rollbackTimelineCoverageUnknown' | 'rollbackMessages' | 'rollbackFiles' | 'rollbackGaps' | 'rollbackFilesLimited' | 'rollbackFilesLimitedHint' | 'rollbackConflicts' | 'rollbackNoMessages' | 'rollbackNoFiles' | 'rollbackFile_create' | 'rollbackFile_modify' | 'rollbackFile_delete' | 'rollbackGapWorkspace' | 'rollbackGapPrompt' | 'rollbackUnavailableCheckpoint' | 'rollbackUnavailableIncomplete' | 'rollbackUnavailableSessionChanged' | 'rollbackUnavailableRunning' | 'rollbackUnavailablePermission' | 'rollbackUnavailableDisabled' | 'rollbackUnavailableIncompatible' | 'rollbackUnavailableCompacted' | 'rollbackUnavailableSubagent' | 'rollbackUnavailableUnknown' | 'rollbackUnavailableAlready' | 'rollbackUnavailableCovered' | 'rollbackConflictUnsafe' | 'rollbackConflictSymlink' | 'rollbackConflictRegular' | 'rollbackConflictBinary' | 'rollbackConflictLarge' | 'rollbackConflictBefore' | 'rollbackConflictHash' | 'rollbackConflictHashHint' | 'contextInspect' | 'contextInspectDescription' | 'contextInspectDetailTitle' | 'contextInspectNote' | 'contextInspectEmpty' | 'contextInspectApproxTotal' | 'contextInspectApproxBadge' | 'contextInspectOpenCategory' | 'contextInspectCategories' | 'contextInspectItemDetail' | 'contextInspectLoading' | 'contextInspectLoadFailed' | 'contextInspectNoSession' | 'contextInspectChartOverview' | 'contextInspectChartCategory' | 'contextInspectChartMessages' | 'contextInspectChartOther' | 'contextInspectCategory_system' | 'contextInspectCategory_tools' | 'contextInspectCategory_messages' | 'contextInspectKind_user' | 'contextInspectKind_inject' | 'contextInspectKind_assistant' | 'contextInspectKind_tool' | 'contextInspectKind_developer' | 'contextInspectHeadroom' | 'contextInspectOccupied' | 'contextInspectEvents' | 'contextInspectEvent_compact' | 'contextInspectEvent_prune' | 'contextInspectEvent_replace' | 'contextInspectReplaced' | 'contextInspectCompact' | 'contextInspectCompactHint' | 'contextInspectCompacting' | 'contextInspectCompactDone' | 'contextInspectCompactNoop' | 'contextInspectCompactUnavailable' | 'contextInspectCompactBusy' | 'contextInspectCompactFailed' | 'contextInspectCompactSummary' | 'contextInspectCompactChanged';
3
+ 'agent-enhancer': 'historyTitle' | 'historySearch' | 'historyResults' | 'historyClose' | 'optimize' | 'optimizePending' | 'optimizeUndo' | 'optimizeError' | 'optimizeChips' | 'optimizeChipSelection' | 'optimizeModelUnavailable' | 'optimizeRequestFailed' | 'optimizeInvalidOutput' | 'optimizeRollbackFailed' | 'optimizeSessionChanged' | 'settingsTitle' | 'settingsSubtitle' | 'history' | 'historyDescription' | 'optimizeDescription' | 'predict' | 'predictDescription' | 'privacyTitle' | 'privacy' | 'coexistence' | 'settingsError' | 'settingsUnavailable' | 'modelCatalogLoading' | 'modelCatalogError' | 'modelLabel' | 'modelFollowSession' | 'modelAuto' | 'modelUnconfigured' | 'reasoningDefault' | 'settingsBack' | 'settingsConfigure' | 'usageTitle' | 'usageNote' | 'usageMeterOpen' | 'usageBuckets' | 'usageBucketInput' | 'usageBucketOutput' | 'usageBucketCacheRead' | 'usageBucketCacheWrite' | 'usageReasoningNote' | 'usageChartSources' | 'usageChartModels' | 'usageChartTotal' | 'usageChartEmpty' | 'usageHeatmap' | 'usageHeatmapHint' | 'usageHeatmapHourHint' | 'usageShareBar' | 'usageTotalLabel' | 'usageEstimateLabel' | 'usageEstimateHint' | 'usageUnpriced' | 'usageBalanceLabel' | 'usageBalanceDetail' | 'usageBalanceStale' | 'usageBalanceNoKey' | 'usageBalanceUnavailable' | 'providerBalanceLabel' | 'providerBalanceDetail' | 'providerBalanceStale' | 'providerBalanceLoading' | 'providerBalanceNoKey' | 'providerBalanceSignedOut' | 'providerBalanceUnavailable' | 'providerBalanceRefreshHint' | 'usageRecordModel' | 'usageRecordProvider' | 'usageRecordEffort' | 'usageRecordInput' | 'usageRecordOutput' | 'usageRecordCacheRead' | 'usageRecordCacheWrite' | 'usageModelRouteEffort' | 'usageBack' | 'usageRecordsOpen' | 'usageRecordsHint' | 'usageRecordsEmpty' | 'usageLoading' | 'usageLoadFailed' | 'usageRetry' | 'usageRefresh' | 'usageUnavailable' | 'usageEmpty' | 'usageRangeLabel' | 'usageRange_today' | 'usageRange_7d' | 'usageRange_30d' | 'usageRange_all' | 'usageRecent' | 'usageRetention' | 'usageCalls' | 'usageModelRoute' | 'usageSource_optimize' | 'usageSource_predict' | 'usageSource_compact' | 'usageSource_autoClassifier' | 'usageSource_session' | 'usageSource_compaction' | 'usageSource_sessionTitle' | 'usageSource_other' | 'updateTitle' | 'updateCurrent' | 'updateCheck' | 'updateChecking' | 'updateLatest' | 'updateAvailable' | 'updateApply' | 'updateApplying' | 'updateRestart' | 'updateLinkBlocked' | 'updateManual' | 'updateFailed' | 'updateCheckFailed' | 'updateCopy' | 'updateCopied' | 'autoRouting' | 'autoRoutingDescription' | 'autoClassifier' | 'autoClassifierDescription' | 'autoMappingTitle' | 'autoTier_instant' | 'autoTier_thinking' | 'autoTier_pro' | 'autoTier_classifier' | 'overlapHistory' | 'overlapOptimize' | 'overlapPredict' | 'dismissHint' | 'rollback' | 'rollbackDescription' | 'rollbackBoundary' | 'rollbackAction' | 'rollbackUndoAction' | 'rollbackUndoCommandDescription' | 'rollbackTitle' | 'rollbackScope' | 'rollbackScopeAlready' | 'rollbackScopeCovered' | 'rollbackUndoTitle' | 'rollbackUndoScope' | 'rollbackUndoScopeConversation' | 'rollbackClose' | 'rollbackConfirm' | 'rollbackConfirmConversation' | 'rollbackConfirmAlready' | 'rollbackConfirmConversationAlready' | 'rollbackUndoConfirm' | 'rollbackUndoConfirmConversation' | 'rollbackCancel' | 'rollbackLoading' | 'rollbackAlreadyRestored' | 'rollbackCoveredByEarlier' | 'rollbackRestoring' | 'rollbackRestoringConversation' | 'rollbackUndoRestoring' | 'rollbackUndoRestoringConversation' | 'rollbackFailed' | 'rollbackFailedUnavailable' | 'rollbackFailedConflict' | 'rollbackFailedRecovery' | 'rollbackRetry' | 'rollbackTurnOpen' | 'rollbackTurnStartMissing' | 'rollbackSummary' | 'rollbackSummaryLabel' | 'rollbackMessageEmpty' | 'rollbackRole_user' | 'rollbackRole_assistant' | 'rollbackRole_tool' | 'rollbackRole_system' | 'rollbackRole_other' | 'rollbackCoverageFiles' | 'rollbackCoveragePartial' | 'rollbackCoverageConversation' | 'rollbackTimelineTitle' | 'rollbackTimelineOpen' | 'rollbackTimelineLead' | 'rollbackTimelineLeadRestoredNote' | 'rollbackTimelineRestoreHint' | 'rollbackTimelineFilterEmpty' | 'rollbackTimelineSearchLabel' | 'rollbackTimelineSearchPlaceholder' | 'rollbackTimelineLoading' | 'rollbackTimelineFailed' | 'rollbackTimelineEmpty' | 'rollbackTimelineNoSession' | 'rollbackTimelineTurn' | 'rollbackTimelineRolledBack' | 'rollbackTimelineTip' | 'rollbackTimelineOpening' | 'rollbackTimelineCoveredHint' | 'rollbackTimelineNoPrompt' | 'rollbackTimelineFileFallback' | 'rollbackTimelineFilesFallback' | 'rollbackTimelineCoverageFiles' | 'rollbackTimelineCoveragePartial' | 'rollbackTimelineCoverageConversation' | 'rollbackTimelineCoverageUnknown' | 'rollbackMessages' | 'rollbackFiles' | 'rollbackGaps' | 'rollbackFilesLimited' | 'rollbackFilesLimitedHint' | 'rollbackConflicts' | 'rollbackNoMessages' | 'rollbackNoFiles' | 'rollbackFile_create' | 'rollbackFile_modify' | 'rollbackFile_delete' | 'rollbackGapWorkspace' | 'rollbackGapPrompt' | 'rollbackUnavailableCheckpoint' | 'rollbackUnavailableIncomplete' | 'rollbackUnavailableSessionChanged' | 'rollbackUnavailableRunning' | 'rollbackUnavailablePermission' | 'rollbackUnavailableDisabled' | 'rollbackUnavailableIncompatible' | 'rollbackUnavailableCompacted' | 'rollbackUnavailableSubagent' | 'rollbackUnavailableUnknown' | 'rollbackUnavailableAlready' | 'rollbackUnavailableCovered' | 'rollbackConflictUnsafe' | 'rollbackConflictSymlink' | 'rollbackConflictRegular' | 'rollbackConflictBinary' | 'rollbackConflictLarge' | 'rollbackConflictBefore' | 'rollbackConflictHash' | 'rollbackConflictHashHint' | 'contextInspect' | 'contextInspectDescription' | 'contextInspectDetailTitle' | 'contextInspectNote' | 'contextInspectEmpty' | 'contextInspectApproxTotal' | 'contextInspectApproxBadge' | 'contextInspectOpenCategory' | 'contextInspectCategories' | 'contextInspectItemDetail' | 'contextInspectLoading' | 'contextInspectLoadFailed' | 'contextInspectNoSession' | 'contextInspectChartOverview' | 'contextInspectChartCategory' | 'contextInspectChartMessages' | 'contextInspectChartOther' | 'contextInspectCategory_system' | 'contextInspectCategory_tools' | 'contextInspectCategory_messages' | 'contextInspectKind_user' | 'contextInspectKind_inject' | 'contextInspectKind_assistant' | 'contextInspectKind_tool' | 'contextInspectKind_developer' | 'contextInspectHeadroom' | 'contextInspectOccupied' | 'contextInspectEvents' | 'contextInspectEvent_compact' | 'contextInspectEvent_prune' | 'contextInspectEvent_replace' | 'contextInspectReplaced' | 'contextInspectCompact' | 'contextInspectCompactHint' | 'contextInspectCompacting' | 'contextInspectCompactDone' | 'contextInspectCompactNoop' | 'contextInspectCompactUnavailable' | 'contextInspectCompactBusy' | 'contextInspectCompactFailed' | 'contextInspectCompactSummary' | 'contextInspectCompactChanged';
4
4
  }
5
5
  }
6
6
  export declare const agentLocales: {
@@ -133,6 +133,7 @@ export declare const agentLocales: {
133
133
  readonly privacy: "优化、预测与上下文压缩会把相关内容发送给所选模型提供商(默认跟随当前会话模型);历史不请求模型;不采集提示词内容或采纳率遥测。模型账单只记录功能、模型和 token,留在本机,不上传。";
134
134
  readonly coexistence: "检测到官方或第三方同类能力时仅提示,不会自动停用。";
135
135
  readonly settingsError: "设置未保存,请重试。";
136
+ readonly settingsUnavailable: "插件未在宿主侧启用,无法写入设置。请在插件页打开「智能体增强」后重试。";
136
137
  readonly overlapHistory: "检测到另一个历史提示词功能。智能体增强的历史仍保持开启。";
137
138
  readonly overlapOptimize: "检测到另一个提示词优化功能。智能体增强的优化仍保持开启。";
138
139
  readonly overlapPredict: "检测到另一个回复建议功能。智能体增强的预测仍保持开启。";
@@ -181,17 +182,17 @@ export declare const agentLocales: {
181
182
  readonly contextInspectCompactChanged: "压缩过程中历史已变化,会话未写入;请稍后重试。";
182
183
  readonly rollback: "对话与文件恢复";
183
184
  readonly rollbackDescription: "在合规用户消息旁预览并恢复对话与已跟踪文件";
184
- readonly rollbackBoundary: "不恢复进程、终端、后台任务、数据库、网络、部署、第三方服务或未跟踪文件;关闭后保留已有日志和检查点。";
185
+ readonly rollbackBoundary: "仅自动恢复对话投影与已跟踪的文本文件;进程、终端、未跟踪与二进制文件不在范围内。关闭开关后保留已有日志与检查点。";
185
186
  readonly rollbackAction: "恢复到这里";
186
187
  readonly rollbackUndoAction: "撤销恢复";
187
- readonly rollbackUndoCommandDescription: "撤回最近一次恢复标记,并还原恢复前的预览内容";
188
+ readonly rollbackUndoCommandDescription: "撤回最近一次恢复投影";
188
189
  readonly rollbackTitle: "恢复到第 {turn} 轮之前";
189
190
  readonly rollbackUndoTitle: "撤销第 {turn} 轮恢复";
190
- readonly rollbackScope: "可选择仅恢复对话,或同时恢复已跟踪文件。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。无文件变更或仅有捕获缺口时仍可确认;有文件冲突时仍可仅恢复对话。";
191
- readonly rollbackScopeAlready: "对话已停在此检查点。确认只会重新填入该轮草稿;若要重新显示被撤回的消息,请用「撤销恢复」。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。";
192
- readonly rollbackScopeCovered: "当前已恢复到更早的检查点,此处被覆盖。请先「撤销恢复」回到完整对话,再选择恢复到这一轮。";
193
- readonly rollbackUndoScope: "将撤回本次恢复标记,并还原恢复前的对话与已跟踪文件预览。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。";
194
- readonly rollbackUndoScopeConversation: "将撤回本次仅对话恢复标记,并还原恢复前的对话预览。已跟踪文件保持当前状态。";
191
+ readonly rollbackScope: "可仅恢复对话,或同时恢复已跟踪文本文件。无文件变更时仍可确认;有冲突时可仅恢复对话。";
192
+ readonly rollbackScopeAlready: "对话已停在此检查点。确认只会重新填入该轮草稿;要用「撤销恢复」才会重新显示被撤回的消息。";
193
+ readonly rollbackScopeCovered: "当前已恢复到更早的检查点。请先「撤销恢复」,再选择这一轮。";
194
+ readonly rollbackUndoScope: "清除本次恢复投影,并尽量还原恢复前的对话与已跟踪文本文件。";
195
+ readonly rollbackUndoScopeConversation: "清除本次仅对话恢复投影,并还原恢复前的对话预览。";
195
196
  readonly rollbackClose: "关闭恢复预览";
196
197
  readonly rollbackConfirm: "恢复对话与已跟踪文件";
197
198
  readonly rollbackConfirmConversation: "仅恢复对话";
@@ -227,16 +228,21 @@ export declare const agentLocales: {
227
228
  readonly rollbackCoverageConversation: "恢复到这里 · 仅对话快照";
228
229
  readonly rollbackTimelineTitle: "检查点";
229
230
  readonly rollbackTimelineOpen: "检查点时间线";
230
- readonly rollbackTimelineLead: "当前对话 {turns} 轮 / {steps} 步 · 检查点 {liveCheckpoints}/{checkpoints}(不含撤销壳)。按对话顺序排列;展开可看提示词、文件与缺口。";
231
+ readonly rollbackTimelineLead: "{turns} 轮 · {checkpoints} 个检查点";
232
+ readonly rollbackTimelineLeadRestoredNote: "已投影截断到当前恢复点。";
233
+ readonly rollbackTimelineFilterEmpty: "没有匹配的轮次。";
234
+ readonly rollbackTimelineSearchLabel: "搜索检查点";
235
+ readonly rollbackTimelineSearchPlaceholder: "搜索轮次号或提示词…";
236
+ readonly rollbackTimelineRestoreHint: "";
231
237
  readonly rollbackTimelineLoading: "正在加载检查点…";
232
238
  readonly rollbackTimelineFailed: "检查点列表加载失败。请重试。";
233
- readonly rollbackTimelineEmpty: "此会话还没有可展示的检查点。完成一轮后会出现在这里。";
234
- readonly rollbackTimelineNoSession: "请从会话中的恢复入口打开检查点时间线。";
239
+ readonly rollbackTimelineEmpty: "此会话还没有可展示的检查点。";
240
+ readonly rollbackTimelineNoSession: "请从会话中打开检查点时间线。";
235
241
  readonly rollbackTimelineTurn: "第 {turn} 轮";
236
- readonly rollbackTimelineRolledBack: "已回滚";
242
+ readonly rollbackTimelineRolledBack: "已截断";
237
243
  readonly rollbackTimelineTip: "当前恢复点";
238
244
  readonly rollbackTimelineOpening: "正在打开预览…";
239
- readonly rollbackTimelineCoveredHint: "已被更早的恢复点覆盖。要回到这一轮,请先撤销当前恢复。";
245
+ readonly rollbackTimelineCoveredHint: "已被更早的恢复点覆盖,请先撤销当前恢复。";
240
246
  readonly rollbackTimelineNoPrompt: "无可用提示词摘要";
241
247
  readonly rollbackTimelineFileFallback: "{path}";
242
248
  readonly rollbackTimelineFilesFallback: "{path} 等 {count} 个文件";
@@ -248,7 +254,7 @@ export declare const agentLocales: {
248
254
  readonly rollbackFiles: "将恢复的已跟踪文件";
249
255
  readonly rollbackGaps: "无法恢复的原因";
250
256
  readonly rollbackFilesLimited: "完整恢复受限";
251
- readonly rollbackFilesLimitedHint: "已跟踪的文件变更仍可恢复;若文件冲突或捕获缺口挡住其余部分,仍可只恢复对话。";
257
+ readonly rollbackFilesLimitedHint: "已跟踪文本文件仍可恢复;若文件冲突,仍可只恢复对话。";
252
258
  readonly rollbackConflicts: "文件冲突";
253
259
  readonly rollbackNoMessages: "没有可预览的对话消息。";
254
260
  readonly rollbackNoFiles: "此检查点没有已跟踪文件。";
@@ -407,6 +413,7 @@ export declare const agentLocales: {
407
413
  readonly privacy: "Optimize, predict, and context compact send related content to the selected model provider (defaults to the current session model). History never requests a model. No prompt content or acceptance-rate telemetry is collected. The model bill records only the feature, model, and token counts on this computer, and is not uploaded.";
408
414
  readonly coexistence: "Similar official or third-party features are only reported; they are never disabled automatically.";
409
415
  readonly settingsError: "Setting was not saved. Try again.";
416
+ readonly settingsUnavailable: "The plugin is not enabled on the host, so settings cannot be written. Turn on Agent Enhance in Plugins, then try again.";
410
417
  readonly overlapHistory: "Another prompt-history feature is enabled. Agent Enhance history remains enabled.";
411
418
  readonly overlapOptimize: "Another prompt-optimization feature is enabled. Agent Enhance optimization remains enabled.";
412
419
  readonly overlapPredict: "Another reply-suggestion feature is enabled. Agent Enhance prediction remains enabled.";
@@ -455,17 +462,17 @@ export declare const agentLocales: {
455
462
  readonly contextInspectCompactChanged: "History changed during compaction; nothing was written. Try again.";
456
463
  readonly rollback: "Conversation and file restore";
457
464
  readonly rollbackDescription: "Preview and restore conversation and tracked files from eligible user messages";
458
- readonly rollbackBoundary: "Processes, terminals, background jobs, databases, network activity, deployments, third-party state, and untracked files are not restored. Existing logs and checkpoints remain after disable.";
465
+ readonly rollbackBoundary: "Auto-restores conversation projection and tracked text files only. Processes, terminals, untracked files, and binaries are out of scope. Existing logs and checkpoints remain after disable.";
459
466
  readonly rollbackAction: "Restore to here";
460
467
  readonly rollbackUndoAction: "Undo restore";
461
- readonly rollbackUndoCommandDescription: "Withdraw the latest restore marker and bring back the preview";
468
+ readonly rollbackUndoCommandDescription: "Withdraw the latest restore projection";
462
469
  readonly rollbackTitle: "Restore before turn {turn}";
463
470
  readonly rollbackUndoTitle: "Undo restore before turn {turn}";
464
- readonly rollbackScope: "Choose conversation-only restore, or restore conversation and tracked files. Processes, terminals, background jobs, databases, network activity, deployments, third-party state, and untracked files are not restored. Soft capture gaps do not block restore when there are no tracked files; conversation-only remains available when files conflict.";
465
- readonly rollbackScopeAlready: "The conversation is already at this checkpoint. Confirm only prefills that turn’s draft; use Undo restore to bring withdrawn messages back. Processes, terminals, background jobs, databases, network activity, deployments, third-party state, and untracked files are not restored.";
466
- readonly rollbackScopeCovered: "A more recent restore already sits at an earlier checkpoint. Undo that restore first, then restore to this turn.";
467
- readonly rollbackUndoScope: "Withdraw the restore marker and bring back the conversation and tracked files shown in preview. Processes, terminals, background jobs, databases, network activity, deployments, third-party state, and untracked files are not restored.";
468
- readonly rollbackUndoScopeConversation: "Withdraw the conversation-only restore marker and bring back the conversation shown in preview. Tracked files stay as they are.";
471
+ readonly rollbackScope: "Restore conversation only, or conversation plus tracked text files. Soft gaps do not block confirm; conversation-only remains available when files conflict.";
472
+ readonly rollbackScopeAlready: "Already at this checkpoint. Confirm only prefills that turn’s draft; use Undo restore to bring withdrawn messages back.";
473
+ readonly rollbackScopeCovered: "A more recent restore already sits at an earlier checkpoint. Undo that restore first, then choose this turn.";
474
+ readonly rollbackUndoScope: "Clear the restore projection and bring back the conversation and tracked text files shown in preview when possible.";
475
+ readonly rollbackUndoScopeConversation: "Clear the conversation-only restore projection and bring back the conversation shown in preview.";
469
476
  readonly rollbackClose: "Close restore preview";
470
477
  readonly rollbackConfirm: "Restore conversation and tracked files";
471
478
  readonly rollbackConfirmConversation: "Restore conversation only";
@@ -501,16 +508,21 @@ export declare const agentLocales: {
501
508
  readonly rollbackCoverageConversation: "Restore to here · conversation snapshot";
502
509
  readonly rollbackTimelineTitle: "Checkpoints";
503
510
  readonly rollbackTimelineOpen: "Checkpoint timeline";
504
- readonly rollbackTimelineLead: "Live chat {turns} turns / {steps} steps · checkpoints {liveCheckpoints}/{checkpoints} (undo shells excluded). Listed in conversation order; expand a row for prompt, files, and gaps.";
511
+ readonly rollbackTimelineLead: "{turns} turns · {checkpoints} checkpoints";
512
+ readonly rollbackTimelineLeadRestoredNote: "Projected truncated to the current restore point.";
513
+ readonly rollbackTimelineFilterEmpty: "No matching turns.";
514
+ readonly rollbackTimelineSearchLabel: "Search checkpoints";
515
+ readonly rollbackTimelineSearchPlaceholder: "Search turn number or prompt…";
516
+ readonly rollbackTimelineRestoreHint: "";
505
517
  readonly rollbackTimelineLoading: "Loading checkpoints…";
506
518
  readonly rollbackTimelineFailed: "Could not load checkpoints. Try again.";
507
- readonly rollbackTimelineEmpty: "No checkpoints for this session yet. They appear after a completed turn.";
508
- readonly rollbackTimelineNoSession: "Open the checkpoint timeline from a restore entry in a conversation.";
519
+ readonly rollbackTimelineEmpty: "No checkpoints to show for this session yet.";
520
+ readonly rollbackTimelineNoSession: "Open the checkpoint timeline from a conversation.";
509
521
  readonly rollbackTimelineTurn: "Turn {turn}";
510
- readonly rollbackTimelineRolledBack: "Rolled back";
522
+ readonly rollbackTimelineRolledBack: "Truncated";
511
523
  readonly rollbackTimelineTip: "Current restore point";
512
524
  readonly rollbackTimelineOpening: "Opening preview…";
513
- readonly rollbackTimelineCoveredHint: "Covered by an earlier restore. Undo the current restore before restoring to this turn.";
525
+ readonly rollbackTimelineCoveredHint: "Covered by an earlier restore. Undo the current restore first.";
514
526
  readonly rollbackTimelineNoPrompt: "No prompt summary available";
515
527
  readonly rollbackTimelineFileFallback: "{path}";
516
528
  readonly rollbackTimelineFilesFallback: "{path} · {count} files";
@@ -522,7 +534,7 @@ export declare const agentLocales: {
522
534
  readonly rollbackFiles: "Tracked files to restore";
523
535
  readonly rollbackGaps: "Why restore is unavailable";
524
536
  readonly rollbackFilesLimited: "Full restore is limited";
525
- readonly rollbackFilesLimitedHint: "Tracked file changes can still be restored. Conversation-only restore remains available if files conflict or capture gaps block the rest.";
537
+ readonly rollbackFilesLimitedHint: "Tracked text files can still be restored; conversation-only remains available if files conflict.";
526
538
  readonly rollbackConflicts: "File conflicts";
527
539
  readonly rollbackNoMessages: "No conversation messages are available for preview.";
528
540
  readonly rollbackNoFiles: "This checkpoint has no tracked files.";
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/client/locales.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,gBAAgB,EAAE,cAAc,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,GACpF,UAAU,GAAG,iBAAiB,GAAG,cAAc,GAAG,eAAe,GAAG,eAAe,GAAG,uBAAuB,GAC7G,0BAA0B,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,wBAAwB,GAAG,wBAAwB,GACpI,eAAe,GAAG,kBAAkB,GAAG,SAAS,GAAG,oBAAoB,GAAG,qBAAqB,GAC/F,SAAS,GAAG,oBAAoB,GAAG,cAAc,GAAG,SAAS,GAAG,aAAa,GAAG,eAAe,GAC/F,qBAAqB,GAAG,mBAAmB,GAC3C,YAAY,GAAG,oBAAoB,GAAG,WAAW,GAAG,mBAAmB,GAAG,kBAAkB,GAC5F,cAAc,GAAG,mBAAmB,GACpC,YAAY,GAAG,WAAW,GAAG,gBAAgB,GAAG,cAAc,GAC9D,kBAAkB,GAAG,mBAAmB,GAAG,sBAAsB,GAAG,uBAAuB,GAC3F,oBAAoB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,iBAAiB,GACvG,cAAc,GAAG,kBAAkB,GAAG,sBAAsB,GAAG,eAAe,GAC9E,iBAAiB,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,eAAe,GAChF,mBAAmB,GAAG,oBAAoB,GAAG,mBAAmB,GAChE,mBAAmB,GAAG,yBAAyB,GAC/C,sBAAsB,GAAG,uBAAuB,GAAG,sBAAsB,GACzE,wBAAwB,GAAG,sBAAsB,GAAG,0BAA0B,GAC9E,4BAA4B,G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B,GAAG,8BAA8B,GACxF,yBAAyB,GAAG,8BAA8B,GAC1D,wBAAwB,GAAG,wBAAwB,GAAG,sBAAsB,GAC5E,6BAA6B,GAAG,2BAA2B,GAAG,6BAA6B,GAC3F,wBAAwB,GACxB,uBAAuB,GAAG,2BAA2B,GAAG,0BAA0B,GAClF,2BAA2B,GAAG,2BAA2B,GACzD,kCAAkC,GAAG,2BAA2B,GAAG,6BAA6B,GAChG,8BAA8B,GAAG,8BAA8B,CAAA;KAClE;CACF;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAijBf,CAAA"}
@@ -29,6 +29,7 @@ export declare class RollbackController {
29
29
  notifySessionRunning(running: boolean): void;
30
30
  open(turn: number, operation?: CheckpointRollbackOperation, options?: {
31
31
  readonly surface?: RollbackModalSurface;
32
+ readonly atSeq?: number;
32
33
  }): void;
33
34
  close(turn?: number): void;
34
35
  confirm(actions: RollbackDraftActions, scope?: CheckpointRollbackScope): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/client/rollback/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,2BAA2B,EAI3B,uBAAuB,EAExB,MAAM,kCAAkC,CAAA;AAGzC,OAAO,KAAK,EAEV,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EAEpB,gBAAgB,EACjB,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAMhD,qBAAa,kBAAkB;IAYjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAXpC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,cAAc,CAAsD;IAC5E,OAAO,CAAC,kBAAkB,CAA+B;IACzD,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,OAAO,CAAI;IACnB,OAAO,CAAC,QAAQ,CAAQ;IACxB,oFAAoF;IACpF,OAAO,CAAC,gBAAgB,CAAqB;gBAEhB,OAAO,EAAE,yBAAyB;IAK/D;;;OAGG;IACH,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,IAAI;IAK1D,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAI/C;IAED,WAAW,QAAO,gBAAgB,CAAiB;IAEnD,eAAe,IAAI,IAAI;IAcvB;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAU5C,IAAI,CACF,IAAI,EAAE,MAAM,EACZ,SAAS,GAAE,2BAAwC,EACnD,OAAO,GAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,oBAAoB,CAAA;KAAO,GACxD,IAAI;IAgCP,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,GA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