dsh-agent-enhancer 0.3.0 → 0.3.1

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 (90) hide show
  1. package/README.en.md +22 -10
  2. package/README.md +22 -10
  3. package/lib/client/context/open-tab.d.ts +5 -0
  4. package/lib/client/context/open-tab.d.ts.map +1 -1
  5. package/lib/client/dsh/conversation.d.ts.map +1 -1
  6. package/lib/client/dsh/icons.d.ts +2 -0
  7. package/lib/client/dsh/icons.d.ts.map +1 -1
  8. package/lib/client/dsh/overlay.d.ts.map +1 -1
  9. package/lib/client/index.d.ts.map +1 -1
  10. package/lib/client/locales.d.ts +93 -9
  11. package/lib/client/locales.d.ts.map +1 -1
  12. package/lib/client/prompt/coordinator.d.ts +2 -0
  13. package/lib/client/prompt/coordinator.d.ts.map +1 -1
  14. package/lib/client/prompt/history.d.ts.map +1 -1
  15. package/lib/client/prompt/ledger-store.d.ts +8 -0
  16. package/lib/client/prompt/ledger-store.d.ts.map +1 -0
  17. package/lib/client/prompt/ledger.d.ts +15 -0
  18. package/lib/client/prompt/ledger.d.ts.map +1 -0
  19. package/lib/client/rollback/actions.d.ts +1 -0
  20. package/lib/client/rollback/actions.d.ts.map +1 -1
  21. package/lib/client/rollback/controller.d.ts +24 -2
  22. package/lib/client/rollback/controller.d.ts.map +1 -1
  23. package/lib/client/rollback/failure.d.ts +7 -0
  24. package/lib/client/rollback/failure.d.ts.map +1 -0
  25. package/lib/client/rollback/format.d.ts +23 -0
  26. package/lib/client/rollback/format.d.ts.map +1 -0
  27. package/lib/client/rollback/input-actions-cache.d.ts +6 -0
  28. package/lib/client/rollback/input-actions-cache.d.ts.map +1 -0
  29. package/lib/client/rollback/modal-host.d.ts +13 -0
  30. package/lib/client/rollback/modal-host.d.ts.map +1 -1
  31. package/lib/client/rollback/preview.d.ts +3 -2
  32. package/lib/client/rollback/preview.d.ts.map +1 -1
  33. package/lib/client/rollback/prompt-entries.d.ts +9 -0
  34. package/lib/client/rollback/prompt-entries.d.ts.map +1 -0
  35. package/lib/client/rollback/remote.d.ts +2 -1
  36. package/lib/client/rollback/remote.d.ts.map +1 -1
  37. package/lib/client/rollback/session-stats-dock.d.ts +10 -0
  38. package/lib/client/rollback/session-stats-dock.d.ts.map +1 -0
  39. package/lib/client/rollback/session-stats-filter.d.ts +18 -0
  40. package/lib/client/rollback/session-stats-filter.d.ts.map +1 -0
  41. package/lib/client/rollback/session-stats-meter.d.ts +18 -0
  42. package/lib/client/rollback/session-stats-meter.d.ts.map +1 -0
  43. package/lib/client/rollback/timeline-format.d.ts +23 -0
  44. package/lib/client/rollback/timeline-format.d.ts.map +1 -0
  45. package/lib/client/rollback/timeline-kind.d.ts +13 -0
  46. package/lib/client/rollback/timeline-kind.d.ts.map +1 -0
  47. package/lib/client/rollback/timeline-panel.d.ts +25 -0
  48. package/lib/client/rollback/timeline-panel.d.ts.map +1 -0
  49. package/lib/client/rollback/timeline-tab.d.ts +39 -0
  50. package/lib/client/rollback/timeline-tab.d.ts.map +1 -0
  51. package/lib/client/rollback/transcript-filter.d.ts +5 -0
  52. package/lib/client/rollback/transcript-filter.d.ts.map +1 -1
  53. package/lib/client/rollback/transcript.d.ts +45 -5
  54. package/lib/client/rollback/transcript.d.ts.map +1 -1
  55. package/lib/client/rollback/turn-outline-filter.d.ts.map +1 -1
  56. package/lib/client/rollback/types.d.ts +14 -1
  57. package/lib/client/rollback/types.d.ts.map +1 -1
  58. package/lib/client/rollback/user-node.d.ts +1 -0
  59. package/lib/client/rollback/user-node.d.ts.map +1 -1
  60. package/lib/client.js +1807 -236
  61. package/lib/client.js.map +1 -1
  62. package/lib/host/auto-route/session-hook.d.ts.map +1 -1
  63. package/lib/host/auto-route/session-selection.d.ts.map +1 -1
  64. package/lib/host/checkpoint/activity.d.ts +43 -0
  65. package/lib/host/checkpoint/activity.d.ts.map +1 -0
  66. package/lib/host/checkpoint/availability.d.ts +8 -1
  67. package/lib/host/checkpoint/availability.d.ts.map +1 -1
  68. package/lib/host/checkpoint/capture.d.ts +12 -4
  69. package/lib/host/checkpoint/capture.d.ts.map +1 -1
  70. package/lib/host/checkpoint/dsh.d.ts.map +1 -1
  71. package/lib/host/checkpoint/files.d.ts +3 -0
  72. package/lib/host/checkpoint/files.d.ts.map +1 -1
  73. package/lib/host/checkpoint/live.d.ts +8 -0
  74. package/lib/host/checkpoint/live.d.ts.map +1 -1
  75. package/lib/host/checkpoint/service.d.ts +82 -0
  76. package/lib/host/checkpoint/service.d.ts.map +1 -1
  77. package/lib/host/checkpoint/store.d.ts +7 -0
  78. package/lib/host/checkpoint/store.d.ts.map +1 -1
  79. package/lib/host/checkpoint/workspace-snapshot.d.ts +30 -0
  80. package/lib/host/checkpoint/workspace-snapshot.d.ts.map +1 -0
  81. package/lib/host/index.d.ts +2 -1
  82. package/lib/host/index.d.ts.map +1 -1
  83. package/lib/host/rpc.d.ts +3 -0
  84. package/lib/host/rpc.d.ts.map +1 -1
  85. package/lib/host/usage/source.d.ts.map +1 -1
  86. package/lib/identity.d.ts +1 -1
  87. package/lib/identity.d.ts.map +1 -1
  88. package/lib/index.js +1094 -138
  89. package/lib/index.js.map +4 -4
  90. package/package.json +61 -60
package/README.en.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # DSH Agent Enhancer
2
2
 
3
- **中文:** [README.md](./README.md)
3
+ English | [简体中文](./README.md)
4
4
 
5
5
  > One plugin to make DeepSeek Harness Desktop **easier to write, refine, roll back, and see usage & context**, and to keep moving toward mainstream agent UX.
6
6
  > Prompt history · one-click optimize · next-prompt predict · conversation & file restore · model bill · context details · Auto routing · per-provider balance — inside the official conversation and settings, no extra window.
7
7
 
8
8
  [![npm](https://img.shields.io/npm/v/dsh-agent-enhancer.svg)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
- [![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.5%20%3C0.3.0-blue)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
+ [![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1%20%3C0.3.0-blue)](https://www.npmjs.com/package/dsh-agent-enhancer)
10
10
  [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
11
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
12
12
 
@@ -17,7 +17,7 @@
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 | **Restore to here** → confirm in preview; **Undo restore** via **+** / `/` when available |
20
+ | **Restore** | Go back before a turn | **Checkpoint timeline** / **Restore to here** → confirm in preview; **Undo restore** via **+** / `/` when available |
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** | Restore to here · Undo restore | Restore on the message → preview conversation-only or + tracked files; after restore open **+** / `/` → **Undo restore** (while a tip remains) | No processes / terminals / untracked files |
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 |
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 | **Restore to here**; **+** / `/` **Undo restore** |
49
+ | **Restore** | `rollbackEnabled` | On | Checkpoint 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** | Entry → preview scope → undo restore | ![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** | 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) |
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.0
98
+ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.1
99
99
  ```
100
100
 
101
101
  Or unpinned: `dsh plugin --profile desktop add dsh-agent-enhancer`.
@@ -104,12 +104,24 @@ You should then see the optimize control and **Agent Enhance** in settings.
104
104
 
105
105
  ### Local directory (development)
106
106
 
107
- `dsh plugin` forwards arguments to pnpm inside the profile directory. Pass an **absolute path** so the profile stores `link:<path>` and adds the bundle:
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:
108
108
 
109
109
  ```powershell
110
110
  corepack pnpm install --frozen-lockfile
111
111
  corepack pnpm build
112
- dsh plugin --profile desktop add ((Resolve-Path .).Path)
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
113
125
  ```
114
126
 
115
127
  Fully quit and restart Desktop afterward. Later code changes only need `corepack pnpm build` (Desktop loads `lib/`).
@@ -134,7 +146,7 @@ Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`,
134
146
 
135
147
  ## Compatibility
136
148
 
137
- - **DSH:** `>=0.2.1-rc.5 <0.3.0-0` (`0.2.1-rc.3` fails to load)
149
+ - **DSH:** `>=0.2.2-rc.1 <0.3.0-0` (Desktop `0.2.2-rc.1`+)
138
150
 
139
151
  ---
140
152
 
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # DSH Agent Enhancer
2
2
 
3
- **English:** [README.en.md](./README.en.md)
3
+ [English](./README.en.md) | 简体中文
4
4
 
5
5
  > 一个插件,让 DeepSeek Harness Desktop **更好写、更好改、更好回退、更看得见用量与上下文**,并持续向主流 Agent 体验对齐。
6
6
  > 历史回顾 · 一键优化 · 下一条预测 · 对话与文件恢复 · 模型账单 · 上下文明细 · Auto 路由 · 分账号余额 —— 嵌在官方会话与设置里,不用另开窗口。
7
7
 
8
8
  [![npm](https://img.shields.io/npm/v/dsh-agent-enhancer.svg)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
- [![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.5%20%3C0.3.0-blue)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
+ [![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1%20%3C0.3.0-blue)](https://www.npmjs.com/package/dsh-agent-enhancer)
10
10
  [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
11
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
12
12
 
@@ -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
- | **回退** | 恢复到这里 · 撤销恢复 | 消息旁恢复 → 预览选仅对话或含已跟踪文件;恢复后 **+** / `/` 选 **撤销恢复**(有 tip 时) | 不恢复进程 / 终端 / 未跟踪文件等 |
37
+ | **回退** | 检查点时间线 · 恢复到这里 · 撤销恢复 | 底部「N 轮 M 步」打开会话统计,点标题行 **会话统计**;或用户消息旁 **检查点时间线** 图标;时间线 / 消息旁 **恢复到这里** → 预览仅对话或含已跟踪文件;恢复后 **+** / `/` **撤销恢复**(有 tip 时) | 不恢复进程 / 终端 / 未跟踪文件等;关闭开关后保留已有检查点 |
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/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-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) |
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.0
98
+ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.1
99
99
  ```
100
100
 
101
101
  也可不钉版本:`dsh plugin --profile desktop add dsh-agent-enhancer`。
@@ -104,12 +104,24 @@ dsh plugin --profile desktop add dsh-agent-enhancer@0.3.0
104
104
 
105
105
  ### 本地目录(开发)
106
106
 
107
- `dsh plugin` 会把参数原样转给 profile 目录里的 pnpm。对本地仓库要用**绝对路径**,这样会写入 `link:<路径>` 并加入 bundles:
107
+ **不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI 会把仓库里的 `package.json` 改写成 `@deepseek-ai/dsh-desktop-runtime` 依赖,破坏开发树。请手动 `link:`:
108
108
 
109
109
  ```powershell
110
110
  corepack pnpm install --frozen-lockfile
111
111
  corepack pnpm build
112
- dsh plugin --profile desktop add ((Resolve-Path .).Path)
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
113
125
  ```
114
126
 
115
127
  然后完全退出并重启 Desktop。之后改代码只需再执行 `corepack pnpm build`(加载的是 `lib/`)。
@@ -134,7 +146,7 @@ dsh plugin --profile desktop add ((Resolve-Path .).Path)
134
146
 
135
147
  ## 兼容
136
148
 
137
- - **DSH:** `>=0.2.1-rc.5 <0.3.0-0`(`0.2.1-rc.3` 无法加载)
149
+ - **DSH:** `>=0.2.2-rc.1 <0.3.0-0`(Desktop `0.2.2-rc.1`+)
138
150
 
139
151
  ---
140
152
 
@@ -13,4 +13,9 @@ export declare function openContextInspectTab(sidebarRight: SidebarRightOpenTab
13
13
  }): () => void;
14
14
  /** Open the model bill; poll briefly until the rightbar session surface is mounted. */
15
15
  export declare function openUsageTab(sidebarRight: SidebarRightOpenTab | undefined): () => void;
16
+ /** Open the checkpoint timeline for a session; poll briefly until the rightbar mounts. */
17
+ export declare function openCheckpointTimelineTab(sidebarRight: SidebarRightOpenTab | undefined, params: {
18
+ readonly sessionId: SessionId;
19
+ readonly turn?: number;
20
+ }): () => void;
16
21
  //# sourceMappingURL=open-tab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-tab.d.ts","sourceRoot":"","sources":["../../../src/client/context/open-tab.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAI/D,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACpE;AA6CD,iGAAiG;AACjG,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,mBAAmB,GAAG,SAAS,EAC7C,MAAM,EAAE;IAAE,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7G,MAAM,IAAI,CAEZ;AAED,uFAAuF;AACvF,wBAAgB,YAAY,CAAC,YAAY,EAAE,mBAAmB,GAAG,SAAS,GAAG,MAAM,IAAI,CAEtF"}
1
+ {"version":3,"file":"open-tab.d.ts","sourceRoot":"","sources":["../../../src/client/context/open-tab.ts"],"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C,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAYD,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,WAAW,EAAE,CAQlF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,OAAO,EAAE,eAAe,GACvB,aAAa,GAAG,IAAI,CAqBtB"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAA;AACrF,OAAO,KAAK,EACgB,YAAY,EACvC,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAmBD,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,WAAW,EAAE,CAUlF;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,OAAO,EAAE,eAAe,GACvB,aAAa,GAAG,IAAI,CAqBtB"}
@@ -1,3 +1,5 @@
1
1
  export declare function OptimizeIcon(): import("react/jsx-runtime").JSX.Element;
2
2
  export declare function UndoIcon(): import("react/jsx-runtime").JSX.Element;
3
+ /** Vertical checkpoint rail for the timeline affordance. */
4
+ export declare function TimelineIcon(): import("react/jsx-runtime").JSX.Element;
3
5
  //# sourceMappingURL=icons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,4CAc3B;AAED,wBAAgB,QAAQ,4CAevB"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,4CAc3B;AAED,wBAAgB,QAAQ,4CAevB;AAED,4DAA4D;AAC5D,wBAAgB,YAAY,4CAkB3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAMzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,4BAA4B,CAAC,GAAG;IAC3E,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C,CAAA;AA8BD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA2LpD"}
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAOzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,4BAA4B,CAAC,GAAG;IAC3E,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACjC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C,CAAA;AA8BD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAqMpD"}
@@ -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;AAuElD,eAAO,MAAM,MAAM,UAGlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA2YxC"}
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,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' | 'rollbackUndoTitle' | 'rollbackUndoScope' | 'rollbackUndoScopeConversation' | 'rollbackClose' | 'rollbackConfirm' | 'rollbackConfirmConversation' | 'rollbackUndoConfirm' | 'rollbackUndoConfirmConversation' | 'rollbackCancel' | 'rollbackLoading' | 'rollbackRestoring' | 'rollbackRestoringConversation' | 'rollbackUndoRestoring' | 'rollbackUndoRestoringConversation' | 'rollbackFailed' | 'rollbackTurnOpen' | 'rollbackTurnStartMissing' | 'rollbackMessages' | 'rollbackFiles' | 'rollbackGaps' | 'rollbackFilesLimited' | 'rollbackFilesLimitedHint' | 'rollbackConflicts' | 'rollbackNoMessages' | 'rollbackNoFiles' | 'rollbackFile_create' | 'rollbackFile_modify' | 'rollbackFile_delete' | 'rollbackGapWorkspace' | 'rollbackGapPrompt' | 'rollbackUnavailableCheckpoint' | 'rollbackUnavailableIncomplete' | 'rollbackUnavailableSessionChanged' | 'rollbackUnavailableRunning' | 'rollbackUnavailablePermission' | 'rollbackUnavailableDisabled' | 'rollbackUnavailableFirstTurn' | 'rollbackUnavailableIncompatible' | 'rollbackUnavailableCompacted' | 'rollbackUnavailableSubagent' | 'rollbackUnavailableUnknown' | 'rollbackConflictUnsafe' | 'rollbackConflictSymlink' | 'rollbackConflictRegular' | 'rollbackConflictBinary' | 'rollbackConflictLarge' | 'rollbackConflictBefore' | 'rollbackConflictHash' | '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' | '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';
4
4
  }
5
5
  }
6
6
  export declare const agentLocales: {
@@ -188,46 +188,87 @@ export declare const agentLocales: {
188
188
  readonly rollbackTitle: "恢复到第 {turn} 轮之前";
189
189
  readonly rollbackUndoTitle: "撤销第 {turn} 轮恢复";
190
190
  readonly rollbackScope: "可选择仅恢复对话,或同时恢复已跟踪文件。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。无文件变更或仅有捕获缺口时仍可确认;有文件冲突时仍可仅恢复对话。";
191
+ readonly rollbackScopeAlready: "对话已停在此检查点。确认只会重新填入该轮草稿;若要重新显示被撤回的消息,请用「撤销恢复」。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。";
192
+ readonly rollbackScopeCovered: "当前已恢复到更早的检查点,此处被覆盖。请先「撤销恢复」回到完整对话,再选择恢复到这一轮。";
191
193
  readonly rollbackUndoScope: "将撤回本次恢复标记,并还原恢复前的对话与已跟踪文件预览。进程、终端、后台任务、数据库、网络、部署、第三方服务和未跟踪文件不会恢复。";
192
194
  readonly rollbackUndoScopeConversation: "将撤回本次仅对话恢复标记,并还原恢复前的对话预览。已跟踪文件保持当前状态。";
193
195
  readonly rollbackClose: "关闭恢复预览";
194
196
  readonly rollbackConfirm: "恢复对话与已跟踪文件";
195
197
  readonly rollbackConfirmConversation: "仅恢复对话";
198
+ readonly rollbackConfirmAlready: "重新填入草稿(含文件)";
199
+ readonly rollbackConfirmConversationAlready: "重新填入草稿";
196
200
  readonly rollbackUndoConfirm: "撤销恢复并还原预览内容";
197
201
  readonly rollbackUndoConfirmConversation: "撤销恢复并还原对话";
198
202
  readonly rollbackCancel: "取消";
203
+ readonly rollbackAlreadyRestored: "当前已恢复到此检查点,没有新的对话可撤回。确认后关闭预览并填入该轮提示词草稿;需要找回被撤回的消息时,请改用「撤销恢复」。";
204
+ readonly rollbackCoveredByEarlier: "更早的恢复(第 {tipTurn} 轮)已覆盖此检查点。请先撤销当前恢复,再恢复到这一轮。";
199
205
  readonly rollbackLoading: "正在重新检查对话和文件状态…";
200
206
  readonly rollbackRestoring: "正在恢复对话与已跟踪文件…";
201
207
  readonly rollbackRestoringConversation: "正在恢复对话…";
202
208
  readonly rollbackUndoRestoring: "正在撤销恢复并还原对话与已跟踪文件…";
203
209
  readonly rollbackUndoRestoringConversation: "正在撤销恢复并还原对话…";
204
210
  readonly rollbackFailed: "恢复未完成,请关闭预览后重试。";
211
+ readonly rollbackFailedUnavailable: "当前无法恢复(会话已变化、仍在运行或结构不兼容)。请关闭预览后重试。";
212
+ readonly rollbackFailedConflict: "文件在预览后发生了变化,完整恢复已取消。可改为仅恢复对话,或关闭后重新预览。";
213
+ readonly rollbackFailedRecovery: "上次恢复尚未收尾(会话正忙或崩溃恢复未完成)。请等会话空闲后点「重新检查」,或关闭预览再试。";
214
+ readonly rollbackRetry: "重新检查";
205
215
  readonly rollbackTurnOpen: "本轮尚未结束";
206
216
  readonly rollbackTurnStartMissing: "本轮开始事件尚未加载";
217
+ readonly rollbackSummary: "{messages} 条消息 · {files} 个文件";
218
+ readonly rollbackSummaryLabel: "恢复范围摘要";
219
+ readonly rollbackMessageEmpty: "(无文本)";
220
+ readonly rollbackRole_user: "用户";
221
+ readonly rollbackRole_assistant: "助手";
222
+ readonly rollbackRole_tool: "工具";
223
+ readonly rollbackRole_system: "系统";
224
+ readonly rollbackRole_other: "其他";
225
+ readonly rollbackCoverageFiles: "恢复到这里 · {count} 个已跟踪文件";
226
+ readonly rollbackCoveragePartial: "恢复到这里 · 部分文件快照({count})";
227
+ readonly rollbackCoverageConversation: "恢复到这里 · 仅对话快照";
228
+ readonly rollbackTimelineTitle: "检查点";
229
+ readonly rollbackTimelineOpen: "检查点时间线";
230
+ readonly rollbackTimelineLead: "当前对话 {turns} 轮 / {steps} 步 · 检查点 {liveCheckpoints}/{checkpoints}(不含撤销壳)。按对话顺序排列;展开可看提示词、文件与缺口。";
231
+ readonly rollbackTimelineLoading: "正在加载检查点…";
232
+ readonly rollbackTimelineFailed: "检查点列表加载失败。请重试。";
233
+ readonly rollbackTimelineEmpty: "此会话还没有可展示的检查点。完成一轮后会出现在这里。";
234
+ readonly rollbackTimelineNoSession: "请从会话中的恢复入口打开检查点时间线。";
235
+ readonly rollbackTimelineTurn: "第 {turn} 轮";
236
+ readonly rollbackTimelineRolledBack: "已回滚";
237
+ readonly rollbackTimelineTip: "当前恢复点";
238
+ readonly rollbackTimelineOpening: "正在打开预览…";
239
+ readonly rollbackTimelineCoveredHint: "已被更早的恢复点覆盖。要回到这一轮,请先撤销当前恢复。";
240
+ readonly rollbackTimelineNoPrompt: "无可用提示词摘要";
241
+ readonly rollbackTimelineFileFallback: "{path}";
242
+ readonly rollbackTimelineFilesFallback: "{path} 等 {count} 个文件";
243
+ readonly rollbackTimelineCoverageFiles: "{count} 个已跟踪文件";
244
+ readonly rollbackTimelineCoveragePartial: "部分快照 · {count} 个文件";
245
+ readonly rollbackTimelineCoverageConversation: "仅对话";
246
+ readonly rollbackTimelineCoverageUnknown: "未知覆盖";
207
247
  readonly rollbackMessages: "将撤回的对话";
208
248
  readonly rollbackFiles: "将恢复的已跟踪文件";
209
249
  readonly rollbackGaps: "无法恢复的原因";
210
250
  readonly rollbackFilesLimited: "完整恢复受限";
211
- readonly rollbackFilesLimitedHint: "仍可只恢复对话;工作区捕获不完整或文件有冲突时,不建议恢复文件。";
251
+ readonly rollbackFilesLimitedHint: "已跟踪的文件变更仍可恢复;若文件冲突或捕获缺口挡住其余部分,仍可只恢复对话。";
212
252
  readonly rollbackConflicts: "文件冲突";
213
253
  readonly rollbackNoMessages: "没有可预览的对话消息。";
214
254
  readonly rollbackNoFiles: "此检查点没有已跟踪文件。";
215
255
  readonly rollbackFile_create: "删除本轮创建的文件";
216
256
  readonly rollbackFile_modify: "恢复修改前内容";
217
257
  readonly rollbackFile_delete: "恢复已删除文件";
218
- readonly rollbackGapWorkspace: "工作区捕获不完整";
258
+ readonly rollbackGapWorkspace: "工作区捕获不完整(部分命令行副作用可能未收录)";
219
259
  readonly rollbackGapPrompt: "原提示词不是纯文本";
220
260
  readonly rollbackUnavailableCheckpoint: "找不到此轮检查点";
221
- readonly rollbackUnavailableIncomplete: "检查点不完整;仍可只恢复对话";
261
+ readonly rollbackUnavailableIncomplete: "检查点不完整;已跟踪文件与对话仍可恢复;部分命令行副作用可能未收录";
222
262
  readonly rollbackUnavailableSessionChanged: "会话已变化,请重新预览";
223
263
  readonly rollbackUnavailableRunning: "会话仍在运行";
224
264
  readonly rollbackUnavailablePermission: "当前没有恢复权限";
225
265
  readonly rollbackUnavailableDisabled: "回滚功能已关闭";
226
- readonly rollbackUnavailableFirstTurn: "首轮边界较特殊;仍可尝试只恢复对话";
227
266
  readonly rollbackUnavailableIncompatible: "检查点与当前会话或插件版本不兼容";
228
267
  readonly rollbackUnavailableCompacted: "对话曾被压缩;完整文件恢复可能不可用,仍可只恢复对话";
229
268
  readonly rollbackUnavailableSubagent: "子 Agent 会话不支持回滚";
230
269
  readonly rollbackUnavailableUnknown: "对话结构无法安全识别";
270
+ readonly rollbackUnavailableAlready: "对话已停在此检查点";
271
+ readonly rollbackUnavailableCovered: "已被更早的恢复点覆盖";
231
272
  readonly rollbackConflictUnsafe: "文件路径不安全";
232
273
  readonly rollbackConflictSymlink: "文件路径包含符号链接";
233
274
  readonly rollbackConflictRegular: "当前路径不是普通文件";
@@ -235,6 +276,7 @@ export declare const agentLocales: {
235
276
  readonly rollbackConflictLarge: "文件超过恢复大小限制";
236
277
  readonly rollbackConflictBefore: "检查点文件内容无效";
237
278
  readonly rollbackConflictHash: "文件在检查点后发生了变化";
279
+ readonly rollbackConflictHashHint: "可改回检查点内容后重试,或先仅恢复对话";
238
280
  };
239
281
  readonly en: {
240
282
  readonly historyTitle: "Prompt history";
@@ -420,46 +462,87 @@ export declare const agentLocales: {
420
462
  readonly rollbackTitle: "Restore before turn {turn}";
421
463
  readonly rollbackUndoTitle: "Undo restore before turn {turn}";
422
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.";
423
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.";
424
468
  readonly rollbackUndoScopeConversation: "Withdraw the conversation-only restore marker and bring back the conversation shown in preview. Tracked files stay as they are.";
425
469
  readonly rollbackClose: "Close restore preview";
426
470
  readonly rollbackConfirm: "Restore conversation and tracked files";
427
471
  readonly rollbackConfirmConversation: "Restore conversation only";
472
+ readonly rollbackConfirmAlready: "Prefill draft (with files)";
473
+ readonly rollbackConfirmConversationAlready: "Prefill draft";
428
474
  readonly rollbackUndoConfirm: "Undo restore and bring back preview";
429
475
  readonly rollbackUndoConfirmConversation: "Undo restore and bring back conversation";
430
476
  readonly rollbackCancel: "Cancel";
477
+ readonly rollbackAlreadyRestored: "Already restored to this checkpoint — nothing new to withdraw. Confirm closes the preview and prefills that turn’s prompt. Use Undo restore if you want the withdrawn messages back.";
478
+ readonly rollbackCoveredByEarlier: "An earlier restore (before turn {tipTurn}) already covers this checkpoint. Undo the current restore first, then restore to this turn.";
431
479
  readonly rollbackLoading: "Rechecking conversation and file state…";
432
480
  readonly rollbackRestoring: "Restoring conversation and tracked files…";
433
481
  readonly rollbackRestoringConversation: "Restoring conversation…";
434
482
  readonly rollbackUndoRestoring: "Undoing restore and bringing back conversation and tracked files…";
435
483
  readonly rollbackUndoRestoringConversation: "Undoing restore and bringing back conversation…";
436
484
  readonly rollbackFailed: "Restore did not complete. Close the preview and try again.";
485
+ readonly rollbackFailedUnavailable: "Restore is unavailable (session changed, still running, or structure incompatible). Close the preview and try again.";
486
+ readonly rollbackFailedConflict: "Files changed after preview, so full restore was cancelled. Use conversation-only restore, or close and preview again.";
487
+ readonly rollbackFailedRecovery: "A previous restore is still finishing (session busy or crash recovery pending). Wait until the session is idle, then tap Check again, or close the preview and retry.";
488
+ readonly rollbackRetry: "Check again";
437
489
  readonly rollbackTurnOpen: "The turn is not closed";
438
490
  readonly rollbackTurnStartMissing: "The turn start is not loaded";
491
+ readonly rollbackSummary: "{messages} messages · {files} files";
492
+ readonly rollbackSummaryLabel: "Restore scope summary";
493
+ readonly rollbackMessageEmpty: "(no text)";
494
+ readonly rollbackRole_user: "User";
495
+ readonly rollbackRole_assistant: "Assistant";
496
+ readonly rollbackRole_tool: "Tool";
497
+ readonly rollbackRole_system: "System";
498
+ readonly rollbackRole_other: "Other";
499
+ readonly rollbackCoverageFiles: "Restore to here · {count} tracked files";
500
+ readonly rollbackCoveragePartial: "Restore to here · partial file snapshot ({count})";
501
+ readonly rollbackCoverageConversation: "Restore to here · conversation snapshot";
502
+ readonly rollbackTimelineTitle: "Checkpoints";
503
+ 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.";
505
+ readonly rollbackTimelineLoading: "Loading checkpoints…";
506
+ 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.";
509
+ readonly rollbackTimelineTurn: "Turn {turn}";
510
+ readonly rollbackTimelineRolledBack: "Rolled back";
511
+ readonly rollbackTimelineTip: "Current restore point";
512
+ readonly rollbackTimelineOpening: "Opening preview…";
513
+ readonly rollbackTimelineCoveredHint: "Covered by an earlier restore. Undo the current restore before restoring to this turn.";
514
+ readonly rollbackTimelineNoPrompt: "No prompt summary available";
515
+ readonly rollbackTimelineFileFallback: "{path}";
516
+ readonly rollbackTimelineFilesFallback: "{path} · {count} files";
517
+ readonly rollbackTimelineCoverageFiles: "{count} tracked files";
518
+ readonly rollbackTimelineCoveragePartial: "Partial · {count} files";
519
+ readonly rollbackTimelineCoverageConversation: "Conversation only";
520
+ readonly rollbackTimelineCoverageUnknown: "Unknown coverage";
439
521
  readonly rollbackMessages: "Conversation to withdraw";
440
522
  readonly rollbackFiles: "Tracked files to restore";
441
523
  readonly rollbackGaps: "Why restore is unavailable";
442
524
  readonly rollbackFilesLimited: "Full restore is limited";
443
- readonly rollbackFilesLimitedHint: "Conversation-only restore is still available. Skip file restore when workspace capture is incomplete or files conflict.";
525
+ readonly rollbackFilesLimitedHint: "Tracked file changes can still be restored. Conversation-only restore remains available if files conflict or capture gaps block the rest.";
444
526
  readonly rollbackConflicts: "File conflicts";
445
527
  readonly rollbackNoMessages: "No conversation messages are available for preview.";
446
528
  readonly rollbackNoFiles: "This checkpoint has no tracked files.";
447
529
  readonly rollbackFile_create: "Remove file created in this turn";
448
530
  readonly rollbackFile_modify: "Restore previous content";
449
531
  readonly rollbackFile_delete: "Restore deleted file";
450
- readonly rollbackGapWorkspace: "Workspace capture is incomplete";
532
+ readonly rollbackGapWorkspace: "Workspace capture is incomplete (some shell side effects may be missing)";
451
533
  readonly rollbackGapPrompt: "The original prompt was not plain text";
452
534
  readonly rollbackUnavailableCheckpoint: "No checkpoint was found for this turn";
453
- readonly rollbackUnavailableIncomplete: "The checkpoint is incomplete; conversation-only restore is still available";
535
+ readonly rollbackUnavailableIncomplete: "The checkpoint is incomplete; tracked files and conversation restore are still available; some shell side effects may be missing";
454
536
  readonly rollbackUnavailableSessionChanged: "The session changed. Preview again.";
455
537
  readonly rollbackUnavailableRunning: "The session is still running";
456
538
  readonly rollbackUnavailablePermission: "Restore permission is unavailable";
457
539
  readonly rollbackUnavailableDisabled: "Rollback is disabled";
458
- readonly rollbackUnavailableFirstTurn: "The first-turn boundary is unusual; conversation-only restore may still work";
459
540
  readonly rollbackUnavailableIncompatible: "The checkpoint is incompatible with this session or plugin version";
460
541
  readonly rollbackUnavailableCompacted: "The conversation was compacted; full file restore may be unavailable, conversation-only restore still works";
461
542
  readonly rollbackUnavailableSubagent: "Subagent sessions do not support rollback";
462
543
  readonly rollbackUnavailableUnknown: "The conversation structure cannot be verified safely";
544
+ readonly rollbackUnavailableAlready: "Already at this checkpoint";
545
+ readonly rollbackUnavailableCovered: "Covered by an earlier restore";
463
546
  readonly rollbackConflictUnsafe: "The file path is unsafe";
464
547
  readonly rollbackConflictSymlink: "The file path contains a symbolic link";
465
548
  readonly rollbackConflictRegular: "The current path is not a regular file";
@@ -467,6 +550,7 @@ export declare const agentLocales: {
467
550
  readonly rollbackConflictLarge: "The file exceeds the restore size limit";
468
551
  readonly rollbackConflictBefore: "The checkpoint file content is invalid";
469
552
  readonly rollbackConflictHash: "File changed after this checkpoint";
553
+ readonly rollbackConflictHashHint: "Revert the file to the checkpoint contents, or restore conversation only";
470
554
  };
471
555
  };
472
556
  //# sourceMappingURL=locales.d.ts.map
@@ -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,cA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqiBf,CAAA"}
@@ -46,6 +46,8 @@ export declare class Coordinator {
46
46
  predictionSnapshot(): string | null;
47
47
  dismissPrediction(): void;
48
48
  registerHistory(actions: HistoryActions): () => void;
49
+ /** Drop cached ↑↓ / search entries without leaving history mode. */
50
+ invalidateHistoryCache(sessionId?: SessionId): void;
49
51
  refreshSettings(): void;
50
52
  sync(input: PromptInput): void;
51
53
  showPrediction(result: TextResult): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../../src/client/prompt/coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,WAAW,EACZ,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE;QAAE,QAA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AE,WAAW,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO;IAU7D,OAAO,CAAC,gBAAgB;IAmCxB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,UAAU;IAsBlB,OAAO,CAAC,eAAe;IAwBvB,OAAO,CAAC,WAAW;IAoCnB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,WAAW;IA8BnB,OAAO,CAAC,qBAAqB;CAM9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../src/client/prompt/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,WAAW,eAAe;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;AAEzF,qBAAa,aAAa;IACZ,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,SAAS,WAAW,EAAE;IASnD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,GAAG,IAAI;IAMtD,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;IAO3C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,WAAW,EAAE;CAK9C"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../src/client/prompt/history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,WAAW,eAAe;IAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE;AAEzF,qBAAa,aAAa;IACZ,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,SAAS,WAAW,EAAE;IAenD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,GAAG,IAAI;IAMtD,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;IAO3C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,WAAW,EAAE;CAK9C"}
@@ -0,0 +1,8 @@
1
+ import type { SessionId } from '@deepseek-ai/dsh-session/types';
2
+ import { PromptHistoryLedger } from './ledger.ts';
3
+ export declare function promptLedgerFor(sessionId: SessionId): PromptHistoryLedger;
4
+ export declare function disposePromptLedger(sessionId: SessionId): void;
5
+ /** Let composers drop ↑↓ caches when the ledger gains newly observed prompts. */
6
+ export declare function subscribePromptLedgerInvalidation(listener: (sessionId: SessionId) => void): () => void;
7
+ export declare function invalidatePromptHistory(sessionId: SessionId): void;
8
+ //# sourceMappingURL=ledger-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledger-store.d.ts","sourceRoot":"","sources":["../../../src/client/prompt/ledger-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAKjD,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB,CAQzE;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAE9D;AAED,iFAAiF;AACjF,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,GACvC,MAAM,IAAI,CAGZ;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAElE"}
@@ -0,0 +1,15 @@
1
+ import type { PromptEntry } from './types.ts';
2
+ /**
3
+ * Session input snapshots for ↑↓ / search history.
4
+ * Unique by exact prompt text (same characters → one row); newer seq wins.
5
+ * Chat filters and rollback must not drop distinct prompts from this ledger.
6
+ * Rollback draft prefill is a separate composer write — never feed it here.
7
+ */
8
+ export declare class PromptHistoryLedger {
9
+ /** Keyed by exact `text`; value is the newest seq for that string. */
10
+ private readonly byText;
11
+ observe(incoming: readonly PromptEntry[]): readonly PromptEntry[];
12
+ list(): readonly PromptEntry[];
13
+ clear(): void;
14
+ }
15
+ //# sourceMappingURL=ledger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../src/client/prompt/ledger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;GAKG;AACH,qBAAa,mBAAmB;IAC9B,sEAAsE;IACtE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;IAExD,OAAO,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE;IAUjE,IAAI,IAAI,SAAS,WAAW,EAAE;IAI9B,KAAK,IAAI,IAAI;CAGd"}