dsh-agent-enhancer 0.3.5 → 0.3.7

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 (135) hide show
  1. package/README.en.md +32 -155
  2. package/README.md +32 -155
  3. package/lib/client/dsh/hints.d.ts.map +1 -1
  4. package/lib/client/dsh/plugin-hints.d.ts +1 -0
  5. package/lib/client/dsh/plugin-hints.d.ts.map +1 -1
  6. package/lib/client/dsh/settings-catalog.d.ts +2 -2
  7. package/lib/client/dsh/settings-catalog.d.ts.map +1 -1
  8. package/lib/client/dsh/settings-features.d.ts +2 -0
  9. package/lib/client/dsh/settings-features.d.ts.map +1 -1
  10. package/lib/client/dsh/settings.d.ts.map +1 -1
  11. package/lib/client/file-edit/address.d.ts +16 -0
  12. package/lib/client/file-edit/address.d.ts.map +1 -1
  13. package/lib/client/file-edit/open-tab.d.ts +18 -0
  14. package/lib/client/file-edit/open-tab.d.ts.map +1 -1
  15. package/lib/client/index.d.ts.map +1 -1
  16. package/lib/client/instructions-skills/errors.d.ts +13 -0
  17. package/lib/client/instructions-skills/errors.d.ts.map +1 -0
  18. package/lib/client/instructions-skills/guide-icon.d.ts +4 -0
  19. package/lib/client/instructions-skills/guide-icon.d.ts.map +1 -0
  20. package/lib/client/instructions-skills/install-progress-ui.d.ts +6 -0
  21. package/lib/client/instructions-skills/install-progress-ui.d.ts.map +1 -0
  22. package/lib/client/instructions-skills/kind.d.ts +9 -0
  23. package/lib/client/instructions-skills/kind.d.ts.map +1 -0
  24. package/lib/client/instructions-skills/left-nav.d.ts +30 -0
  25. package/lib/client/instructions-skills/left-nav.d.ts.map +1 -0
  26. package/lib/client/instructions-skills/markdown-preview.d.ts +10 -0
  27. package/lib/client/instructions-skills/markdown-preview.d.ts.map +1 -0
  28. package/lib/client/instructions-skills/nav-update-hints.d.ts +6 -0
  29. package/lib/client/instructions-skills/nav-update-hints.d.ts.map +1 -0
  30. package/lib/client/instructions-skills/remote.d.ts +29 -0
  31. package/lib/client/instructions-skills/remote.d.ts.map +1 -0
  32. package/lib/client/instructions-skills/slot-types.d.ts +17 -0
  33. package/lib/client/instructions-skills/slot-types.d.ts.map +1 -0
  34. package/lib/client/instructions-skills/tab.d.ts +40 -0
  35. package/lib/client/instructions-skills/tab.d.ts.map +1 -0
  36. package/lib/client/locales.d.ts +307 -1
  37. package/lib/client/locales.d.ts.map +1 -1
  38. package/lib/client/manager-shell.d.ts +32 -0
  39. package/lib/client/manager-shell.d.ts.map +1 -0
  40. package/lib/client/mcp-connectors/errors.d.ts +3 -0
  41. package/lib/client/mcp-connectors/errors.d.ts.map +1 -0
  42. package/lib/client/mcp-connectors/guide-icon.d.ts +4 -0
  43. package/lib/client/mcp-connectors/guide-icon.d.ts.map +1 -0
  44. package/lib/client/mcp-connectors/kind.d.ts +4 -0
  45. package/lib/client/mcp-connectors/kind.d.ts.map +1 -0
  46. package/lib/client/mcp-connectors/left-nav.d.ts +21 -0
  47. package/lib/client/mcp-connectors/left-nav.d.ts.map +1 -0
  48. package/lib/client/mcp-connectors/remote.d.ts +26 -0
  49. package/lib/client/mcp-connectors/remote.d.ts.map +1 -0
  50. package/lib/client/mcp-connectors/slot-types.d.ts +16 -0
  51. package/lib/client/mcp-connectors/slot-types.d.ts.map +1 -0
  52. package/lib/client/mcp-connectors/tab.d.ts +11 -0
  53. package/lib/client/mcp-connectors/tab.d.ts.map +1 -0
  54. package/lib/client/remote.d.ts +13 -1
  55. package/lib/client/remote.d.ts.map +1 -1
  56. package/lib/client/rollback/user-node.d.ts +3 -1
  57. package/lib/client/rollback/user-node.d.ts.map +1 -1
  58. package/lib/client/soft-pause/action.d.ts +14 -0
  59. package/lib/client/soft-pause/action.d.ts.map +1 -0
  60. package/lib/client/soft-pause/controller.d.ts +39 -0
  61. package/lib/client/soft-pause/controller.d.ts.map +1 -0
  62. package/lib/client/soft-pause/visibility.d.ts +22 -0
  63. package/lib/client/soft-pause/visibility.d.ts.map +1 -0
  64. package/lib/client.js +4156 -1076
  65. package/lib/client.js.map +1 -1
  66. package/lib/config.d.ts +1 -1
  67. package/lib/config.d.ts.map +1 -1
  68. package/lib/host/extra-folders/pick.d.ts +13 -0
  69. package/lib/host/extra-folders/pick.d.ts.map +1 -1
  70. package/lib/host/index.d.ts +51 -2
  71. package/lib/host/index.d.ts.map +1 -1
  72. package/lib/host/instructions-skills/content-revision.d.ts +2 -0
  73. package/lib/host/instructions-skills/content-revision.d.ts.map +1 -0
  74. package/lib/host/instructions-skills/create.d.ts +11 -0
  75. package/lib/host/instructions-skills/create.d.ts.map +1 -0
  76. package/lib/host/instructions-skills/discover.d.ts +37 -0
  77. package/lib/host/instructions-skills/discover.d.ts.map +1 -0
  78. package/lib/host/instructions-skills/fs-access.d.ts +8 -0
  79. package/lib/host/instructions-skills/fs-access.d.ts.map +1 -0
  80. package/lib/host/instructions-skills/git-source.d.ts +22 -0
  81. package/lib/host/instructions-skills/git-source.d.ts.map +1 -0
  82. package/lib/host/instructions-skills/github-archive.d.ts +16 -0
  83. package/lib/host/instructions-skills/github-archive.d.ts.map +1 -0
  84. package/lib/host/instructions-skills/install-fs.d.ts +42 -0
  85. package/lib/host/instructions-skills/install-fs.d.ts.map +1 -0
  86. package/lib/host/instructions-skills/install-ledger.d.ts +15 -0
  87. package/lib/host/instructions-skills/install-ledger.d.ts.map +1 -0
  88. package/lib/host/instructions-skills/install-progress.d.ts +23 -0
  89. package/lib/host/instructions-skills/install-progress.d.ts.map +1 -0
  90. package/lib/host/instructions-skills/install.d.ts +40 -0
  91. package/lib/host/instructions-skills/install.d.ts.map +1 -0
  92. package/lib/host/instructions-skills/io.d.ts +65 -0
  93. package/lib/host/instructions-skills/io.d.ts.map +1 -0
  94. package/lib/host/instructions-skills/paths.d.ts +25 -0
  95. package/lib/host/instructions-skills/paths.d.ts.map +1 -0
  96. package/lib/host/instructions-skills/remove-path.d.ts +20 -0
  97. package/lib/host/instructions-skills/remove-path.d.ts.map +1 -0
  98. package/lib/host/instructions-skills/scope.d.ts +4 -0
  99. package/lib/host/instructions-skills/scope.d.ts.map +1 -0
  100. package/lib/host/instructions-skills/transient-paths.d.ts +15 -0
  101. package/lib/host/instructions-skills/transient-paths.d.ts.map +1 -0
  102. package/lib/host/instructions-skills/types.d.ts +143 -0
  103. package/lib/host/instructions-skills/types.d.ts.map +1 -0
  104. package/lib/host/instructions-skills/uninstall.d.ts +44 -0
  105. package/lib/host/instructions-skills/uninstall.d.ts.map +1 -0
  106. package/lib/host/instructions-skills/update-check.d.ts +18 -0
  107. package/lib/host/instructions-skills/update-check.d.ts.map +1 -0
  108. package/lib/host/instructions-skills/zip-install.d.ts +12 -0
  109. package/lib/host/instructions-skills/zip-install.d.ts.map +1 -0
  110. package/lib/host/mcp-connectors/import-mcp-json.d.ts +11 -0
  111. package/lib/host/mcp-connectors/import-mcp-json.d.ts.map +1 -0
  112. package/lib/host/mcp-connectors/install-git.d.ts +15 -0
  113. package/lib/host/mcp-connectors/install-git.d.ts.map +1 -0
  114. package/lib/host/mcp-connectors/io.d.ts +18 -0
  115. package/lib/host/mcp-connectors/io.d.ts.map +1 -0
  116. package/lib/host/mcp-connectors/paths.d.ts +8 -0
  117. package/lib/host/mcp-connectors/paths.d.ts.map +1 -0
  118. package/lib/host/mcp-connectors/runtime.d.ts +24 -0
  119. package/lib/host/mcp-connectors/runtime.d.ts.map +1 -0
  120. package/lib/host/mcp-connectors/store.d.ts +8 -0
  121. package/lib/host/mcp-connectors/store.d.ts.map +1 -0
  122. package/lib/host/mcp-connectors/types.d.ts +113 -0
  123. package/lib/host/mcp-connectors/types.d.ts.map +1 -0
  124. package/lib/host/mcp-connectors/validate.d.ts +7 -0
  125. package/lib/host/mcp-connectors/validate.d.ts.map +1 -0
  126. package/lib/host/rpc.d.ts +856 -0
  127. package/lib/host/rpc.d.ts.map +1 -1
  128. package/lib/host/soft-pause/gate.d.ts +19 -0
  129. package/lib/host/soft-pause/gate.d.ts.map +1 -0
  130. package/lib/host/soft-pause/live.d.ts +12 -0
  131. package/lib/host/soft-pause/live.d.ts.map +1 -0
  132. package/lib/identity.d.ts +1 -1
  133. package/lib/index.js +4516 -454
  134. package/lib/index.js.map +4 -4
  135. package/package.json +5 -1
package/README.en.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  English | [简体中文](./README.md)
4
4
 
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
- > Prompt history · select-to-quote · one-click optimize · next-prompt predict · conversation & file restore · workspace edit / extra folders · session delete · model bill · context details · Auto routing · per-provider balance — inside the official conversation and settings, no extra window.
5
+ > Make DeepSeek Harness Desktop **easier to write, refine, roll back, and see usage & context**.
6
+ > Features live inside the official chat and settings. Defaults on; turn off individually under **Settings → Built-in plugins → Agent Enhance**.
7
7
 
8
8
  [![npm](https://img.shields.io/npm/v/dsh-agent-enhancer.svg)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
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)
@@ -12,164 +12,52 @@ English | [简体中文](./README.md)
12
12
 
13
13
  ---
14
14
 
15
- ## Know it in 30 seconds
15
+ ## Features
16
16
 
17
- | Category | You want to… | Do this |
18
- | --- | --- | --- |
19
- | **Write** | Revisit / clarify / continue / quote selection | `↑↓` or `Alt+R`; **Optimize** on the right; after a reply, `Tab` for the gray suggestion; select text in chat / preview / editor / terminal → **Quote text** |
20
- | **Restore** | Truncate & retry | Bubble / timeline **Restore to here** (optional tracked files); **Undo restore** via **+** / `/` |
21
- | **Workspace** | Edit files, attach folders, delete sessions | Preview toolbar **Edit**; right-sidebar guide capsule **Extra folders**; session ⋯ **Delete session** |
22
- | **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 |
23
- | **Context** | See how full the window is | Context meter → right-pane details; optional **Compress context** |
24
- | **Routing** | Let the session pick a strength tier | Choose **Auto** in the model list; map Instant / Thinking / Pro in settings |
25
- | **Master switches** | Turn a feature off | **Settings → Built-in plugins → Agent Enhance** (Features / Models & routing / About) |
26
-
27
- Core features default on. UI language follows Desktop (`zh` / `en`).
28
-
29
- ---
30
-
31
- ## Feature map
32
-
33
- Grouped by capability; screenshots share a row so new features extend the matching category instead of lengthening the table.
17
+ Previews are 56×56 squares — click for the full image. UI language follows Desktop (`zh` / `en`).
34
18
 
35
- | Category | Includes | How to use | Notes |
36
- | --- | --- | --- | --- |
37
- | **Write** | History · Select-to-quote · Optimize · Predict | First/last-line `↑↓`; `Alt+R` (`Ctrl+R` where available); select text in the transcript, file preview, Monaco editor, or sidebar terminal, then the floating **Quote text** chip (atomic quote in the composer); 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. Quote never calls a model. Streaming assistant replies and HTML iframe / PDF / Excel previews are not quote sources yet |
38
- | **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 |
39
- | **Workspace** | File edit · Extra folders · Session delete | Official preview toolbar **Edit** → Monaco (`Ctrl+S` / pause-to-save), with a path back to preview; open **Extra folders** from the right-sidebar guide capsule (same list as Workspace Files), attach local folders via the system picker (tree chrome matches Workspace Files), open with official preview, then optional Edit; session ⋯ **Delete session** (confirm, then purge conversation + plugin-local data) | Edit is UTF-8 text only. Extra folders are for human browse/edit and do **not** expand the Agent sandbox. Delete is permanent; running sessions cannot be deleted. Delete must clear every plugin-owned store for that session (see `docs/architecture/session-delete.md`) |
40
- | **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 |
41
- | **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 |
42
- | **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 |
43
-
44
- ### Settings
45
-
46
- **Settings → Built-in plugins → Agent Enhance** (in-plugin **Features** / **Models & routing** / **About**)
47
-
48
- | Category | Toggles / config | Default | Effect |
49
- | --- | --- | --- | --- |
50
- | **Chat** | `historyEnabled` · `optimizeEnabled` · `predictEnabled` · `quoteEnabled` · `rollbackEnabled` · `contextInspectEnabled` · `usageEnabled` | All on | `↑↓` / `Alt+R`; optimize & undo (model pill); gray predict; select-to-quote; restore; context meter; token usage / model bill |
51
- | **Workspace & sessions** | `sessionDeleteEnabled` · `fileEditEnabled` | All on | Session ⋯ delete; preview **Edit** + guide-capsule **Extra folders** (both follow `fileEditEnabled`) |
52
- | **Models & routing** | Helper model pills · `autoClassifierEnabled`, etc. | Classifier off | Optimize / predict / compact may follow session or Auto; tier maps; optional classifier |
53
- | **About** | Plugin updates | — | Check/apply for npm installs; link installs show guidance only |
54
-
55
- Model pills default to **Follow session**, or pick provider / model / reasoning effort, or **Auto**. Live balance stays on **Settings → Models** cards, not as a single global line on the bill.
56
-
57
- ### UI map
19
+ | Capability | How | Preview |
20
+ | --- | --- | --- |
21
+ | **Write** | `↑↓` / `Alt+R` history; **Optimize** (undo); after a reply, `Tab` for gray predict; select in chat / preview / editor / terminal → **Quote text** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/prompt-history.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/prompt-history.png" alt="History" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/optimize-and-predict.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/optimize-and-predict.png" alt="Optimize & predict" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/select-to-quote.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/select-to-quote.png" alt="Quote" width="56" height="56" /></a> |
22
+ | **Soft pause** | **Pause / Resume** on the latest user bubble toolbar (‖ in a circle): hold the next model step to save later tokens; the current stream and in-flight tools still finish. Official Stop remains a hard interrupt | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/soft-pause-action.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/soft-pause-action.png" alt="Soft pause" width="56" height="56" /></a> |
23
+ | **Restore** | Bubble or timeline **Restore to here** (optional tracked text files) → preview → confirm; **+** / `/` **Undo restore** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-timeline-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-timeline-entry.png" alt="Timeline" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-entry.png" alt="Rollback entry" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-preview.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-preview.png" alt="Preview" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/undo-restore.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/undo-restore.png" alt="Undo" width="56" height="56" /></a> |
24
+ | **Workspace** | Preview **Edit** (Monaco); guide capsule **Extra folders**; left-nav **Skills** / **Connectors** (Plugins-page chrome: list · Add dialog · detail; Skills GitHub·Zip → `~/.agents/skills` → `/`; Connectors via `mcp.json`); session ⋯ **Delete session** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/skills-mcp-left-nav.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/skills-mcp-left-nav.png" alt="Skills & connectors" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/file-edit-toolbar.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/file-edit-toolbar.png" alt="Edit" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/extra-folders.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/extra-folders.png" alt="Extra folders" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/session-delete.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/session-delete.png" alt="Delete session" width="56" height="56" /></a> |
25
+ | **Usage** | **Token usage** → model bill; **Settings → Models** for per-provider balance | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/token-usage-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/token-usage-meter.png" alt="Token usage" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/model-bill.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/model-bill.png" alt="Bill" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/provider-balance.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/provider-balance.png" alt="Balance" width="56" height="56" /></a> |
26
+ | **Context** | Meter → right-pane details; one-click official `/compact` | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-meter.png" alt="Meter" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-details.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-details.png" alt="Details" width="56" height="56" /></a> |
27
+ | **Routing** | Pick **Auto** in the model list; map Instant / Thinking / Pro in settings | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-model-picker.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-model-picker.png" alt="Auto picker" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-routing-settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-routing-settings.png" alt="Auto routing" width="56" height="56" /></a> |
28
+ | **Settings** | **Features** twelve toggles · **Models & routing** helpers / Auto · **About** updates | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/settings.png" alt="Settings" width="56" height="56" /></a> |
58
29
 
59
- Description and preview share one table. Previews are **56×56 squares** cropped from the originals, wrapping horizontally; click for the full image.
30
+ **Limits (short):** Quote never calls a model; streaming assistant replies and HTML/PDF/Excel previews are not quote sources yet. Restore tracks UTF-8 text only — no processes / terminals / untracked / binaries. Extra folders do not widen the Agent sandbox. Skills and Connectors are left-nav peers under Plugins (Plugins-page chrome): Skills use GitHub·Zip install / search / detail / uninstall (default `~/.agents/skills`; GitHub can update, Zip cannot; no AGENTS.md or empty stubs; invoke via `/`); Connectors add via `mcp.json`, toggle in the list, tools on the detail page. Session delete is permanent. Context numbers are heuristic; bill “≈ ¥” is not an invoice. Soft pause holds **later** model steps after pause; the gate is not kept across restarts.
60
31
 
61
- | Category | What you see | Preview |
62
- | --- | --- | --- |
63
- | **Write** | History search; optimize & gray prediction; select → **Quote text** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/prompt-history.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/prompt-history.png" alt="History search" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/optimize-and-predict.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/optimize-and-predict.png" alt="Optimize & predict" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/select-to-quote.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/select-to-quote.png" alt="Select to quote" width="56" height="56" /></a> |
64
- | **Restore** | Bubble / timeline restore → preview → undo; session-stats optional | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-timeline-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-timeline-entry.png" alt="Checkpoint timeline entry" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-entry.png" alt="Rollback entry" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-preview.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-preview.png" alt="Rollback preview" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/undo-restore.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/undo-restore.png" alt="Undo restore" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-session-stats-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-session-stats-entry.png" alt="Session stats shortcut" width="56" height="56" /></a> |
65
- | **Workspace** | Preview **Edit**; guide-capsule **Extra folders**; session ⋯ **Delete session** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/file-edit-toolbar.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/file-edit-toolbar.png" alt="File edit" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/extra-folders.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/extra-folders.png" alt="Extra folders" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/session-delete.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/session-delete.png" alt="Delete session" width="56" height="56" /></a> |
66
- | **Usage & cost** | Token usage entry, model bill, per-provider balance | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/token-usage-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/token-usage-meter.png" alt="Token usage" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/model-bill.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/model-bill.png" alt="Model bill" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/provider-balance.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/provider-balance.png" alt="Provider balance" width="56" height="56" /></a> |
67
- | **Context** | Meter summary and right-pane details / compact | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-meter.png" alt="Context meter" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-details.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-details.png" alt="Context details" width="56" height="56" /></a> |
68
- | **Routing** | Auto in the model list; tier maps and optional classifier | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-model-picker.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-model-picker.png" alt="Auto picker" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-routing-settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-routing-settings.png" alt="Auto routing" width="56" height="56" /></a> |
69
- | **Settings** | Features / Models & routing / About (nine toggles) | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/settings.png" alt="Settings" width="56" height="56" /></a> |
32
+ Feature toggles: `history` · `optimize` · `predict` · `quote` · `rollback` · `softPause` · `contextInspect` · `usage` · `sessionDelete` · `fileEdit` · `instructionsSkills` · `mcpConnectors` (all default on; Extra folders follows `fileEdit`).
70
33
 
71
34
  ---
72
35
 
73
36
  ## Install
74
37
 
75
- Quit every Desktop window and tray process before install, upgrade, or uninstall.
76
- This plugin targets **Desktop / the `desktop` profile** (do not validate with `web`). It is listed on [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin); you can also search for `dsh-agent-enhancer` / **Agent Enhance** in third-party markets.
77
-
78
- ### Official Desktop · in-app install (recommended)
79
-
80
- For the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) **official Desktop** (and other official builds that ship **Settings → Plugins**):
81
-
82
- 1. Open **Settings → Plugins** (or the **Plugins** sidebar entry).
83
- 2. Search for `dsh-agent-enhancer` or **Agent Enhance**, then install when prompted.
84
- 3. Fully quit and restart Desktop.
85
-
86
- > Desktop manages its own profile. Do **not** install into Desktop with `dsh plugin --profile web …` — the command may succeed while writing to `profiles/web`, which Desktop never loads.
87
-
88
- ### dsh-market (optional)
38
+ Targets **Desktop / the `desktop` profile** (do not validate with `web`). Quit Desktop (including tray) first.
89
39
 
90
- For a dedicated market UI / one-click upgrades, install the community market [dsh-market](https://github.com/dsh-market/dsh-market):
91
-
92
- - **Official Desktop:** in-app **Settings → Plugins**, search `dshmarket` and install (do not use the CLI `web` profile).
93
- - **Plain `dsh web`:** `dsh plugin --profile web add dshmarket`, then restart.
94
-
95
- Then open the **Plugin Market** tab, search, and install this plugin. Some third-party Desktop clients ship or recommend this market by default.
96
-
97
- ### CLI · npm
98
-
99
- When the `dsh` CLI is available and you intend to write the **desktop** profile:
100
-
101
- ```sh
102
- dsh plugin --profile desktop add dsh-agent-enhancer@0.3.5
103
- ```
104
-
105
- Or unpinned: `dsh plugin --profile desktop add dsh-agent-enhancer`.
106
- If you previously installed `dsh-composer-enhancer`, remove it first, then install this package.
107
- You should then see the optimize control and **Agent Enhance** in settings.
108
-
109
- ### Local directory (development)
110
-
111
- **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):
112
-
113
- ```powershell
114
- corepack pnpm install --frozen-lockfile
115
-
116
- # Local dev: build → pack → extract into profile/.dsh-enhancer-pack/pkg, then install
117
- corepack pnpm desktop:link
118
-
119
- # Back to npm (defaults to this package.json version; or: pnpm desktop:npm -- 0.3.5)
120
- corepack pnpm desktop:npm
121
- ```
122
-
123
- Fully quit and restart Desktop afterward. After local code changes, run `corepack pnpm desktop:link` again (pack-snapshot install; no live repo hot reload).
124
- 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.
125
- Keep host-shared DSH packages in both `peerDependencies` and `devDependencies`, not in `dependencies`.
126
-
127
- ---
128
-
129
- ## Privacy & coexistence
130
-
131
- | Topic | Detail |
40
+ | Method | Steps |
132
41
  | --- | --- |
133
- | History | Never calls a model |
134
- | Select-to-quote | Local composer quote insert only — no model call |
135
- | Optimize | Sends draft/selection + latest completed turn |
136
- | Predict | Sends the latest completed turn |
137
- | File edit / Extra folders | Reads/writes local text and chosen folders; extra folders do not expand the Agent sandbox |
138
- | Session delete | Purges that session’s conversation and plugin-local data (permanent) |
139
- | Auto classifier | Only when the toggle is on; failures fall back to local heuristics without blocking the main request |
140
- | Bill / context | Local aggregation and heuristic estimates; balance queries use Desktop-stored credentials — this plugin ships no keys |
141
- | Cache | In-session memory (bill data persists under the local usage directory) |
142
- | Audit | Local `plugin:agent-enhancer/request` (no telemetry upload) |
143
- | Coexistence | Hints only — never auto-disables third-party plugins |
144
-
145
- ---
42
+ | **In-app (recommended)** | **Settings → Plugins** → search `dsh-agent-enhancer` / **Agent Enhance** → install → restart |
43
+ | **CLI** | `dsh plugin --profile desktop add dsh-agent-enhancer@0.3.7` |
44
+ | **Dev** | `corepack pnpm install --frozen-lockfile` → `corepack pnpm desktop:link` → restart; back to npm: `corepack pnpm desktop:npm` |
146
45
 
147
- ## Compatibility
46
+ Optional market: [dsh-market](https://github.com/dsh-market/dsh-market) (in-app search `dshmarket`; do not use the `web` profile). Remove legacy `dsh-composer-enhancer` before installing this package.
148
47
 
149
- - **DSH:** `>=0.2.2-rc.1 <0.3.0-0` (Desktop `0.2.2-rc.1`+)
48
+ > Do not install into Desktop with `dsh plugin --profile web …`. Do not `add` / `link:` / `file:` a repo path (Windows Junctions expose `node_modules` and leave the plugin off). Use `desktop:link` (pack snapshot; re-link after code changes).
150
49
 
151
- ---
50
+ **Uninstall:** in-app remove, or `dsh plugin --profile desktop remove dsh-agent-enhancer`. For a linked dev install, do not `remove` blindly — edit the profile `package.json`, then delete only the `node_modules` link.
152
51
 
153
- ## Uninstall
52
+ **Compatibility:** DSH `>=0.2.2-rc.1 <0.3.0-0`.
154
53
 
155
- | Install type | Action |
156
- | --- | --- |
157
- | 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
- | CLI npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
159
- | Local `file:` / dev install | **Do not** `remove` / run `pnpm remove` in the profile (a directory link can delete the source repo). Follow below |
54
+ ---
160
55
 
161
- 1. Quit Desktop (including tray)
162
- 2. Edit the **profile** `package.json`: drop this plugin from `dependencies` and `dsh.profile.bundles`
163
- 3. Refresh deps and delete the link only (not its target):
56
+ ## Privacy
164
57
 
165
- ```powershell
166
- $DshHome = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE '.dsh' }
167
- $ProfileDir = Join-Path $DshHome 'profiles\desktop'
168
- dsh plugin --profile desktop install
169
- $PluginLink = Join-Path $ProfileDir 'node_modules\dsh-agent-enhancer'
170
- $Item = Get-Item -LiteralPath $PluginLink -Force -ErrorAction SilentlyContinue
171
- if ($Item -and $Item.LinkType -in @('SymbolicLink', 'Junction')) { $Item.Delete() }
172
- ```
58
+ - History / select-to-quote: no model calls. Optimize / predict: only the needed draft or latest completed turn.
59
+ - Bill and context stay local; balances use Desktop-stored credentials — this plugin ships no keys. No telemetry upload.
60
+ - Overlap with third-party plugins is hinted only; never auto-disabled.
173
61
 
174
62
  ---
175
63
 
@@ -177,24 +65,13 @@ if ($Item -and $Item.LinkType -in @('SymbolicLink', 'Junction')) { $Item.Delete(
177
65
 
178
66
  ```powershell
179
67
  corepack pnpm install --frozen-lockfile
180
- corepack pnpm typecheck
181
- corepack pnpm test
182
- corepack pnpm build # Desktop loads lib/
183
68
  corepack pnpm check # typecheck + test + build + pack verify
184
69
  ```
185
70
 
186
- | Path | Contents |
187
- | --- | --- |
188
- | `src/host/` | Model calls, RPC, checkpoint rollback, bill, Auto routing, balances, file I/O, extra folders, session delete |
189
- | `src/client/` | Conversation input, select-to-quote, file edit / extra folders, bill / context side panes, settings |
190
- | `tests/` | Vitest |
191
- | `lib/` | Build output |
192
- | `docs/images/` | Full README screenshots; `thumbs/` square crops (`scripts/make-readme-thumbs.py`) |
71
+ `src/host/` · `src/client/` · `tests/` · `lib/` build output · `docs/images/` screenshots (`thumbs/` via `scripts/make-readme-thumbs.py`).
193
72
 
194
73
  ---
195
74
 
196
75
  ## License
197
76
 
198
- [MIT](./LICENSE)
199
-
200
- See [CHANGELOG.md](./CHANGELOG.md) for release notes.
77
+ [MIT](./LICENSE) · [CHANGELOG](./CHANGELOG.md)
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [English](./README.en.md) | 简体中文
4
4
 
5
- > 一个插件,让 DeepSeek Harness Desktop **更好写、更好改、更好回退、更看得见用量与上下文**,并持续向主流 Agent 体验对齐。
6
- > 历史回顾 · 划词引用 · 一键优化 · 下一条预测 · 对话与文件恢复 · 工作区编辑 / 附加目录 · 会话删除 · 模型账单 · 上下文明细 · Auto 路由 · 分账号余额 —— 嵌在官方会话与设置里,不用另开窗口。
5
+ > 让 DeepSeek Harness Desktop **更好写、更好改、更好回退、更看得见用量与上下文**。
6
+ > 能力嵌在官方会话与设置里,默认开启,可在 **设置 → 内置插件 → 智能体增强** 逐项关闭。
7
7
 
8
8
  [![npm](https://img.shields.io/npm/v/dsh-agent-enhancer.svg)](https://www.npmjs.com/package/dsh-agent-enhancer)
9
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)
@@ -12,164 +12,52 @@
12
12
 
13
13
  ---
14
14
 
15
- ## 30 秒看懂
15
+ ## 功能
16
16
 
17
- | 类别 | 你想… | 怎么做 |
18
- | --- | --- | --- |
19
- | **写提示** | 找回 / 改清楚 / 接着问 / 划词进输入框 | `↑↓` 或 `Alt+R`;右侧 **优化**;回复后 `Tab` 采纳灰字;对话 / 预览 / 编辑器 / 终端划词 → **引用文本** |
20
- | **回退** | 截断重来 | 气泡 / 时间线 **恢复到这里**(可选已跟踪文件);**+** / `/` **撤销恢复** |
21
- | **工作区** | 改文件、挂本地目录、删会话 | 预览工具栏 **编辑**;右侧指南胶囊 **附加目录**;会话 ⋯ **删除会话** |
22
- | **用量与成本** | 看 token 花多少、账号还剩多少 | **Token 用量** → **模型账单**;**设置 → 模型** 看分账号余额;辅助模型可单独选更便宜档或 Auto |
23
- | **上下文** | 看窗口占了多少 | 占用环 → 右侧栏明细;可 **压缩上下文** |
24
- | **模型路由** | 让会话自己选强弱档 | 模型列表选 **Auto**;设置里映射 Instant / Thinking / Pro |
25
- | **总开关** | 关掉某个能力 | **设置 → 内置插件 → 智能体增强**(功能 / 模型与路由 / 关于) |
26
-
27
- 默认核心能力开启。界面语言跟随 Desktop(`zh` / `en`)。
28
-
29
- ---
30
-
31
- ## 功能对照
32
-
33
- 按能力归类;同组能力共用入口与截图,后续加能力往对应行扩写即可。
17
+ 预览为 56×56 方图,点击打开原图。语言跟随 Desktop(`zh` / `en`)。
34
18
 
35
- | 类别 | 包含 | 怎么用 | 要点 |
36
- | --- | --- | --- | --- |
37
- | **写提示** | 历史 · 划词引用 · 优化 · 预测 | 首/末行 `↑↓`;`Alt+R`(兼容 `Ctrl+R`);在对话正文、文件预览、Monaco 编辑器或侧栏终端划词后点浮钮 **引用文本**(写入输入框原子引用块);右侧优化(可撤销,有选区只改选区);回复后灰字,`Tab` 采纳 | 仅当前已加载会话;`Enter` 只填不发;chip 草稿不误触历史;模糊稿补全、明确稿少改;预测每轮最多一条。划词引用不调用模型。流式中的助手回复、HTML iframe / PDF / Excel 预览暂不支持划词引用 |
38
- | **回退** | 气泡恢复 · 检查点时间线 · 撤销恢复 | **投影截断(cut-first):** 消息旁或右侧栏检查点时间线 **恢复到这里** → 先出预览(仅对话或含已跟踪**文本**文件,含已删除路径)→ 确认后先写投影 cut、再还原文件;对话/模型按截断投影隐藏切开之后,**不**往 DSH 日志追加 tip。可用 **+** / `/` **撤销恢复**。可选:底部「N 轮 M 步」→ 会话统计标题行也可打开时间线 | 文件跟踪 = write/edit intent + 壳命令前后工作区扫描(Cline 风格),且仅 UTF-8 文本(PNG/WebP 等二进制不入库)。跨多轮恢复时会合并目标轮及之后所有检查点上的已跟踪文件。官方会话统计保持全量日志计数。不恢复进程 / 终端 / 未跟踪 / 二进制 / 外部服务。关闭开关后保留已有检查点与投影 cut |
39
- | **工作区** | 文件编辑 · 附加目录 · 删除会话 | 官方文件预览工具栏 **编辑** → Monaco(`Ctrl+S` / 停顿自动保存),仍可回官方预览;右侧指南胶囊(与「工作区文件」同列)打开 **附加目录**,用系统选夹挂本地文件夹(树样式对齐「工作区文件」),打开文件走官方预览,可再进编辑;侧栏会话 ⋯ **删除会话**(确认后清对话与插件本地数据) | 编辑仅 UTF-8 文本。附加目录只给人机浏览/编辑,**不**改 Agent 沙箱可见根。删除不可恢复;运行中会话不可删。删除须清掉该会话全部插件持久化(见 `docs/architecture/session-delete.md`) |
40
- | **用量与成本** | Token 用量 · 模型账单 · 分账号余额 | 点用量标题进右侧栏账单(今天 / 7 天 / 30 天 / 全部);**设置 → 模型** 看 DeepSeek 账号 / API Key 余额 | 本地汇总输入 / 输出 / 缓存读、热力与功能占比;「约 ¥」按官方价估算非发票;账号走 Platform 钱包、API Key 走 `/user/balance`;金额两位小数 |
41
- | **上下文** | 占用环 · 上下文明细 · 压缩 | 点占用环进右侧栏;可跳转分项明细;一键调用官方 `/compact` | 拆分系统提示 / 工具 / 消息;数字为启发式约值,非账单精确值 |
42
- | **模型路由** | Auto · 档位映射 · 可选分类器 | 模型列表选 **Auto**;设置映射 Instant / Thinking / Pro;可选开小模型分类 | 默认中英双语启发式;分类失败回退启发式;优化 / 预测也可选 Auto 或指定模型 |
43
-
44
- ### 设置
45
-
46
- 路径:**设置 → 内置插件 → 智能体增强**(页内 **功能** / **模型与路由** / **关于**)
47
-
48
- | 类别 | 开关 / 配置 | 默认 | 作用 |
49
- | --- | --- | --- | --- |
50
- | **对话增强** | `historyEnabled` · `optimizeEnabled` · `predictEnabled` · `quoteEnabled` · `rollbackEnabled` · `contextInspectEnabled` · `usageEnabled` | 均开 | `↑↓` / `Alt+R`;优化与撤销(旁有模型药丸);灰字预测;划词引用;回退;占用环明细;Token 用量 / 模型账单 |
51
- | **工作区与会话** | `sessionDeleteEnabled` · `fileEditEnabled` | 均开 | 会话 ⋯ 删除;预览 **编辑** + 指南胶囊 **附加目录**(均随 `fileEditEnabled`) |
52
- | **模型与路由** | 辅助模型药丸 · `autoClassifierEnabled` 等 | 分类器关 | 优化 / 预测 / 压缩可选跟随会话或 Auto;档位映射;可选小模型分类 |
53
- | **关于** | 插件更新 | — | npm 安装可检查更新;链接安装仅说明 |
54
-
55
- 模型药丸默认「跟随会话」,也可指定提供商 / 模型 / 推理等级,或选 **Auto**。余额挂在 **设置 → 模型** 各提供商卡片上,不在账单顶栏重复展示。
56
-
57
- ### 界面一览
19
+ | 能力 | 用法 | 预览 |
20
+ | --- | --- | --- |
21
+ | **写提示** | `↑↓` / `Alt+R` 历史;右侧 **优化**(可撤销);回复后 `Tab` 采纳灰字;对话 / 预览 / 编辑器 / 终端划词 → **引用文本** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/prompt-history.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/prompt-history.png" alt="历史搜索" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/optimize-and-predict.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/optimize-and-predict.png" alt="优化与预测" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/select-to-quote.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/select-to-quote.png" alt="划词引用" width="56" height="56" /></a> |
22
+ | **软暂停** | 最新用户气泡工具栏 **暂停 / 恢复**(圆圈内 ‖):挡住下一步模型调用,省后续 token;当前流式与已发出工具仍跑完。官方 Stop 仍硬中断 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/soft-pause-action.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/soft-pause-action.png" alt="软暂停" width="56" height="56" /></a> |
23
+ | **回退** | 气泡或时间线 **恢复到这里**(可含已跟踪文本文件)→ 预览 → 确认;**+** / `/` **撤销恢复** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-timeline-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-timeline-entry.png" alt="检查点时间线" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-entry.png" alt="回滚入口" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-preview.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-preview.png" alt="回滚预览" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/undo-restore.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/undo-restore.png" alt="撤销恢复" width="56" height="56" /></a> |
24
+ | **工作区** | 预览 **编辑**(Monaco);指南胶囊 **附加目录**;左侧栏一级 **技能** / **连接器**(对齐官方插件页:列表 · 添加对话框 · 详情;技能 GitHub·Zip 可选 `~/.agents/skills` / `~/.dsh/skills` 或项目对应目录 → `/`;连接器 `mcp.json`);会话 ⋯ **删除会话** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/skills-mcp-left-nav.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/skills-mcp-left-nav.png" alt="技能与连接器" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/file-edit-toolbar.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/file-edit-toolbar.png" alt="文件编辑" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/extra-folders.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/extra-folders.png" alt="附加目录" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/session-delete.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/session-delete.png" alt="删除会话" width="56" height="56" /></a> |
25
+ | **用量** | **Token 用量** → 模型账单;**设置 → 模型** 看分账号余额 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/token-usage-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/token-usage-meter.png" alt="Token 用量" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/model-bill.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/model-bill.png" alt="模型账单" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/provider-balance.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/provider-balance.png" alt="分账号余额" width="56" height="56" /></a> |
26
+ | **上下文** | 占用环 → 右侧明细;可一键官方 `/compact` | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-meter.png" alt="上下文占用" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-details.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-details.png" alt="上下文明细" width="56" height="56" /></a> |
27
+ | **路由** | 模型列表选 **Auto**;设置映射 Instant / Thinking / Pro | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-model-picker.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-model-picker.png" alt="Auto 选择" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-routing-settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-routing-settings.png" alt="Auto 路由" width="56" height="56" /></a> |
28
+ | **设置** | **功能** 十二开关 · **模型与路由** 辅助模型 / Auto · **关于** 更新 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/settings.png" alt="设置" width="56" height="56" /></a> |
58
29
 
59
- 说明与预览同表。预览为 **56×56 方图**(裁自原图),同行横排、排不下换行;点击打开原图。
30
+ **边界(精简):** 划词引用不调模型;流式助手与 HTML/PDF/Excel 预览暂不可划词。回退仅跟踪 UTF-8 文本文件,不恢复进程 / 终端 / 未跟踪 / 二进制。附加目录不扩大 Agent 沙箱。技能与连接器:左侧栏一级入口(在「插件」下方;chrome 对齐官方插件页);技能 GitHub·Zip 安装 / 搜索 / 详情预览 / 卸载(安装目标可选用户/项目 × `.agents/skills` 或 `.dsh/skills`,默认用户 `.agents`),GitHub 可更新、Zip 无更新提示,不代建 AGENTS.md / 空 Skill,调用走官方 `/`;连接器用 `mcp.json` 添加、列表开关、详情看工具。删除会话不可恢复。占用数字为启发式约值;账单「约 ¥」非发票。软暂停挡住的是**暂停之后**尚未发生的模型步;不跨重启保留门闸。
60
31
 
61
- | 类别 | 说明 | 预览 |
62
- | --- | --- | --- |
63
- | **写提示** | 历史搜索;优化与灰字预测;划词后点 **引用文本** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/prompt-history.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/prompt-history.png" alt="历史搜索" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/optimize-and-predict.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/optimize-and-predict.png" alt="优化与预测" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/select-to-quote.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/select-to-quote.png" alt="划词引用" width="56" height="56" /></a> |
64
- | **回退** | 气泡 / 时间线恢复 → 预览 → 撤销;会话统计可选捷径 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-timeline-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-timeline-entry.png" alt="检查点时间线入口" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-entry.png" alt="回滚入口" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/rollback-preview.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/rollback-preview.png" alt="回滚预览" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/undo-restore.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/undo-restore.png" alt="撤销恢复" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/checkpoint-session-stats-entry.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/checkpoint-session-stats-entry.png" alt="会话统计捷径" width="56" height="56" /></a> |
65
- | **工作区** | 预览 **编辑**;指南胶囊 **附加目录**;会话 ⋯ **删除会话** | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/file-edit-toolbar.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/file-edit-toolbar.png" alt="文件编辑" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/extra-folders.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/extra-folders.png" alt="附加目录" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/session-delete.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/session-delete.png" alt="删除会话" width="56" height="56" /></a> |
66
- | **用量与成本** | Token 用量入口、模型账单、分账号余额 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/token-usage-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/token-usage-meter.png" alt="Token 用量" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/model-bill.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/model-bill.png" alt="模型账单" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/provider-balance.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/provider-balance.png" alt="分账号余额" width="56" height="56" /></a> |
67
- | **上下文** | 占用摘要与右侧栏明细 / 压缩 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-meter.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-meter.png" alt="上下文占用" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/context-details.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/context-details.png" alt="上下文明细" width="56" height="56" /></a> |
68
- | **模型路由** | 模型列表 Auto;档位映射与可选分类器 | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-model-picker.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-model-picker.png" alt="Auto 选择" width="56" height="56" /></a> <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/auto-routing-settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/auto-routing-settings.png" alt="Auto 路由" width="56" height="56" /></a> |
69
- | **设置** | 功能 / 模型与路由 / 关于(九项开关) | <a href="https://github.com/rebornace/dsh-agent-enhancer/blob/main/docs/images/settings.png"><img src="https://raw.githubusercontent.com/rebornace/dsh-agent-enhancer/main/docs/images/thumbs/settings.png" alt="设置" width="56" height="56" /></a> |
32
+ 功能页开关:`history` · `optimize` · `predict` · `quote` · `rollback` · `softPause` · `contextInspect` · `usage` · `sessionDelete` · `fileEdit` · `instructionsSkills` · `mcpConnectors`(均默认开;附加目录随 `fileEdit`)。
70
33
 
71
34
  ---
72
35
 
73
36
  ## 安装
74
37
 
75
- 安装 / 升级 / 卸载前,请退出所有 Desktop 窗口和托盘,确认旧主进程结束后再操作。
76
- 本插件面向 **Desktop / `desktop` profile**(不要用 `web` 验收)。收录于 [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin),也可在第三方市场中搜索 `dsh-agent-enhancer` / **智能体增强**。
77
-
78
- ### 官方桌面端 · 应用内安装(推荐)
79
-
80
- 适用于 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) **官方桌面端**(以及同样提供「设置 → 插件」的官方发行形态):
81
-
82
- 1. 打开应用内 **设置 → 插件**(或侧边栏 **插件**)。
83
- 2. 在已安装 / 搜索框中查找 `dsh-agent-enhancer` 或 **智能体增强**,按提示安装。
84
- 3. 完全退出并重启 Desktop。
85
-
86
- > 桌面端的 profile 由应用管理。不要用 `dsh plugin --profile web …` 往桌面端装插件——命令可能显示成功,但装进的是 `profiles/web`,桌面端看不到。
87
-
88
- ### dsh-market(可选)
38
+ 面向 **Desktop / `desktop` profile**(不要用 `web` 验收)。装前请退出 Desktop(含托盘)。
89
39
 
90
- 需要独立的市场 UI / 一键升级时,可安装社区市场插件 [dsh-market](https://github.com/dsh-market/dsh-market):
91
-
92
- - **官方桌面端:** 在应用内 **设置 → 插件** 搜索 `dshmarket` 并安装(不要用 CLI 的 `web` profile)。
93
- - **普通 `dsh web`:** `dsh plugin --profile web add dshmarket`,然后重启。
94
-
95
- 装好后打开 **插件市场** 标签,搜索并安装本插件。部分第三方桌面客户端会预装或推荐此市场。
96
-
97
- ### 命令行 · npm
98
-
99
- 本机已配置 `dsh` CLI、且要写入 **desktop** profile 时:
100
-
101
- ```sh
102
- dsh plugin --profile desktop add dsh-agent-enhancer@0.3.5
103
- ```
104
-
105
- 也可不钉版本:`dsh plugin --profile desktop add dsh-agent-enhancer`。
106
- 若曾安装旧包 `dsh-composer-enhancer`,请先卸载再装本包。
107
- 启动后应能看到输入框右侧优化入口,以及设置中的 **智能体增强**。
108
-
109
- ### 本地目录(开发)
110
-
111
- **不要**对本地仓库执行 `dsh plugin --profile desktop add <绝对路径>`:部分 Desktop / CLI 会改写仓库 `package.json` 或弄坏 profile。本仓库提供一键切换(只改 `~/.dsh/profiles/desktop/package.json`,**不会**进插件 Git):
112
-
113
- ```powershell
114
- corepack pnpm install --frozen-lockfile
115
-
116
- # 本机开发:build → pack → 解压到 profile/.dsh-enhancer-pack/pkg 再安装
117
- corepack pnpm desktop:link
118
-
119
- # 切回线上 npm(默认用本仓库 package.json 的 version;也可 pnpm desktop:npm -- 0.3.5)
120
- corepack pnpm desktop:npm
121
- ```
122
-
123
- 然后完全退出并重启 Desktop。本地改代码后需再执行 `corepack pnpm desktop:link`(当前为 pack 快照安装,不支持对着仓库热更新)。
124
- 不要对仓库目录用 `link:` / `file:`:Windows 上会变成 Junction,把仓库 `node_modules` 暴露给宿主,插件会一直「已关闭」。
125
- 与宿主共享的 DSH 包请同时放在 `peerDependencies` 与 `devDependencies`,不要放进 `dependencies`。
126
-
127
- ---
128
-
129
- ## 隐私与共存
130
-
131
- | 项目 | 说明 |
40
+ | 方式 | 步骤 |
132
41
  | --- | --- |
133
- | 历史 | 不请求模型 |
134
- | 划词引用 | 仅本地写入输入框引用块,不请求模型 |
135
- | 优化 | 发送原稿或选区 + 最近一轮已完成对话 |
136
- | 预测 | 发送最近一轮已完成对话 |
137
- | 文件编辑 / 附加目录 | 读写本机文本与所选目录;附加目录不扩大 Agent 沙箱 |
138
- | 删除会话 | 清除该会话对话与插件本地数据(不可恢复) |
139
- | Auto 分类器 | 仅开关打开时调用;失败回退本地启发式,不阻塞主请求 |
140
- | 账单 / 上下文 | 本地汇总与启发式估算;余额查询使用 Desktop 已存凭据,插件不携带密钥 |
141
- | 缓存 | 仅当前会话内存(账单落盘在本机 usage 目录) |
142
- | 审计 | 本地 `plugin:agent-enhancer/request`(无遥测上传) |
143
- | 共存 | 只提示,不自动关闭第三方 |
144
-
145
- ---
42
+ | **应用内(推荐)** | **设置 → 插件** 搜索 `dsh-agent-enhancer` / **智能体增强** → 安装 → 重启 |
43
+ | **CLI** | `dsh plugin --profile desktop add dsh-agent-enhancer@0.3.7` |
44
+ | **开发** | `corepack pnpm install --frozen-lockfile` → `corepack pnpm desktop:link` → 重启;切回线上:`corepack pnpm desktop:npm` |
146
45
 
147
- ## 兼容
46
+ 可选市场:[dsh-market](https://github.com/dsh-market/dsh-market)(应用内搜 `dshmarket`,勿用 `web` profile)。曾装 `dsh-composer-enhancer` 请先卸再装本包。
148
47
 
149
- - **DSH:** `>=0.2.2-rc.1 <0.3.0-0`(Desktop `0.2.2-rc.1`+)
48
+ > 不要 `dsh plugin --profile web …` 往桌面端装;不要对仓库路径 `add` / `link:` / `file:`(Windows Junction 会暴露仓库 `node_modules`,插件会一直关闭)。本地开发用 `desktop:link`(pack 快照,改代码需再 link)。
150
49
 
151
- ---
50
+ **卸载:** 应用内卸载,或 `dsh plugin --profile desktop remove dsh-agent-enhancer`。开发安装勿直接 `remove`(可能删源仓库)——先改 profile `package.json` 去掉依赖,再删 `node_modules` 里的链接本身。
152
51
 
153
- ## 卸载
52
+ **兼容:** DSH `>=0.2.2-rc.1 <0.3.0-0`。
154
53
 
155
- | 安装方式 | 做法 |
156
- | --- | --- |
157
- | 官方桌面端 / dsh-market | 在应用内 **插件** 页对本插件选择卸载或禁用;或 `dsh plugin --profile desktop remove dsh-agent-enhancer` |
158
- | 命令行 npm | `dsh plugin --profile desktop remove dsh-agent-enhancer` |
159
- | 本地 `file:` / 开发安装 | **不要** `remove` / 在 profile 里 `pnpm remove`(若仍是目录链接可能删源仓库)。按下面做 |
54
+ ---
160
55
 
161
- 1. 退出 Desktop(含托盘)
162
- 2. 编辑 **profile** 的 `package.json`:从 `dependencies` 与 `dsh.profile.bundles` 去掉本插件
163
- 3. 更新依赖并删除链接本身(不删链接目标):
56
+ ## 隐私
164
57
 
165
- ```powershell
166
- $DshHome = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE '.dsh' }
167
- $ProfileDir = Join-Path $DshHome 'profiles\desktop'
168
- dsh plugin --profile desktop install
169
- $PluginLink = Join-Path $ProfileDir 'node_modules\dsh-agent-enhancer'
170
- $Item = Get-Item -LiteralPath $PluginLink -Force -ErrorAction SilentlyContinue
171
- if ($Item -and $Item.LinkType -in @('SymbolicLink', 'Junction')) { $Item.Delete() }
172
- ```
58
+ - 历史 / 划词引用:不请求模型。优化 / 预测:仅发送必要草稿或最近一轮对话。
59
+ - 账单与上下文本地汇总;余额用 Desktop 已存凭据,插件不携带密钥。无遥测上传。
60
+ - 与第三方重叠能力只提示,不自动关闭。
173
61
 
174
62
  ---
175
63
 
@@ -177,24 +65,13 @@ if ($Item -and $Item.LinkType -in @('SymbolicLink', 'Junction')) { $Item.Delete(
177
65
 
178
66
  ```powershell
179
67
  corepack pnpm install --frozen-lockfile
180
- corepack pnpm typecheck
181
- corepack pnpm test
182
- corepack pnpm build # Desktop 加载 lib/
183
68
  corepack pnpm check # typecheck + test + build + 打包校验
184
69
  ```
185
70
 
186
- | 路径 | 内容 |
187
- | --- | --- |
188
- | `src/host/` | 模型调用、RPC、检查点回滚、账单、Auto 路由、余额、文件读写、附加目录、会话删除 |
189
- | `src/client/` | 会话输入区、划词引用、文件编辑 / 附加目录、右侧栏账单 / 上下文、设置 |
190
- | `tests/` | Vitest |
191
- | `lib/` | 构建产物 |
192
- | `docs/images/` | README 原图;`thumbs/` 为方裁预览(`scripts/make-readme-thumbs.py`) |
71
+ `src/host/` 服务端 · `src/client/` UI · `tests/` · `lib/` 构建产物 · `docs/images/` 截图(`thumbs/` 由 `scripts/make-readme-thumbs.py` 生成)。
193
72
 
194
73
  ---
195
74
 
196
75
  ## 许可
197
76
 
198
- [MIT](./LICENSE)
199
-
200
- 更新日志见 [CHANGELOG.md](./CHANGELOG.md)。
77
+ [MIT](./LICENSE) · [CHANGELOG](./CHANGELOG.md)
@@ -1 +1 @@
1
- {"version":3,"file":"hints.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/hints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AASzD,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC7C,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C,2CAuBA"}
1
+ {"version":3,"file":"hints.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/hints.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAGnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAUzD,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC7C,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAA;IAChC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAA;CAC1C,2CAuBA"}
@@ -2,6 +2,7 @@ export declare const KNOWN_OVERLAPS: {
2
2
  readonly history: readonly ["dsh-composer-history", "dsh-prompt-history", "dsh-input-assistant"];
3
3
  readonly optimize: readonly ["dsh-input-assistant"];
4
4
  readonly predict: readonly ["dsh-reply-suggestions", "dsh-prompt-history", "dsh-input-assistant"];
5
+ readonly softPause: readonly ["dsh-breather"];
5
6
  };
6
7
  export type OverlapModule = keyof typeof KNOWN_OVERLAPS;
7
8
  export declare function overlapHints(entries: readonly {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-hints.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/plugin-hints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;CAIjB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAA;AAGvD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG,aAAa,EAAE,CAG1G;AAED,KAAK,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,CAAC,CAAA;AAUvD,qBAAa,gBAAgB;IAMzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAN1B,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,MAAM,CAAO;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;gBAG/B,OAAO,GAAE,WAAW,GAAG,SAA4B,EACnD,OAAO,SAAU;IAGpC,WAAW,IAAI,SAAS,aAAa,EAAE;IAIvC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAM3C,MAAM,CAAC,OAAO,EAAE,SAAS;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,GAAG,IAAI;IAU1E,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAQpC,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,IAAI;CAGb"}
1
+ {"version":3,"file":"plugin-hints.d.ts","sourceRoot":"","sources":["../../../src/client/dsh/plugin-hints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;CAKjB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAA;AAGvD,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG,aAAa,EAAE,CAG1G;AAED,KAAK,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,SAAS,CAAC,CAAA;AAUvD,qBAAa,gBAAgB;IAMzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAN1B,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,MAAM,CAAO;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;gBAG/B,OAAO,GAAE,WAAW,GAAG,SAA4B,EACnD,OAAO,SAAU;IAGpC,WAAW,IAAI,SAAS,aAAa,EAAE;IAIvC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAM3C,MAAM,CAAC,OAAO,EAAE,SAAS;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,GAAG,IAAI;IAU1E,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAQpC,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,IAAI;CAGb"}
@@ -3,8 +3,8 @@ import type { ConfigurableAuxiliaryFeature, ModuleName } from '../../config.ts';
3
3
  export declare const SETTINGS_TABS: readonly ["features", "models", "about"];
4
4
  export type SettingsTabId = typeof SETTINGS_TABS[number];
5
5
  export type SettingsGroupId = 'chat' | 'workspace';
6
- export type FeatureLabelKey = 'history' | 'optimize' | 'predict' | 'quote' | 'rollback' | 'contextInspect' | 'usage' | 'sessionDelete' | 'fileEdit';
7
- export type FeatureDescriptionKey = 'historyDescription' | 'optimizeDescription' | 'predictDescription' | 'quoteDescription' | 'rollbackDescription' | 'contextInspectDescription' | 'usageDescription' | 'sessionDeleteDescription' | 'fileEditDescription';
6
+ export type FeatureLabelKey = 'history' | 'optimize' | 'predict' | 'quote' | 'rollback' | 'softPause' | 'contextInspect' | 'usage' | 'sessionDelete' | 'fileEdit' | 'instructionsSkills' | 'mcpConnectors';
7
+ export type FeatureDescriptionKey = 'historyDescription' | 'optimizeDescription' | 'predictDescription' | 'quoteDescription' | 'rollbackDescription' | 'softPauseDescription' | 'contextInspectDescription' | 'usageDescription' | 'sessionDeleteDescription' | 'fileEditDescription' | 'instructionsSkillsDescription' | 'mcpConnectorsDescription';
8
8
  export interface SettingsFeatureEntry {
9
9
  readonly module: ModuleName;
10
10
  readonly labelKey: FeatureLabelKey;