@agi-fans/dsh-tui 0.22.0 → 0.23.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 (282) hide show
  1. package/LICENSE +26 -0
  2. package/lib/CHANGELOG.md +219 -1
  3. package/lib/chrome/box.d.ts +1 -18
  4. package/lib/chrome/box.js +2 -45
  5. package/lib/chrome/box.js.map +1 -1
  6. package/lib/chrome/code-highlight.js +4 -4
  7. package/lib/chrome/code-highlight.js.map +1 -1
  8. package/lib/chrome/command-output.d.ts +0 -1
  9. package/lib/chrome/command-output.js +11 -5
  10. package/lib/chrome/command-output.js.map +1 -1
  11. package/lib/chrome/goal-bar.js +1 -1
  12. package/lib/chrome/goal-bar.js.map +1 -1
  13. package/lib/chrome/main-screen-renderer.js +4 -3
  14. package/lib/chrome/main-screen-renderer.js.map +1 -1
  15. package/lib/chrome/markdown.d.ts +3 -3
  16. package/lib/chrome/markdown.js +85 -36
  17. package/lib/chrome/markdown.js.map +1 -1
  18. package/lib/chrome/md-style.d.ts +5 -2
  19. package/lib/chrome/md-style.js +13 -4
  20. package/lib/chrome/md-style.js.map +1 -1
  21. package/lib/chrome/renderer.d.ts +37 -1
  22. package/lib/chrome/renderer.js.map +1 -1
  23. package/lib/chrome/status-line.d.ts +3 -3
  24. package/lib/chrome/status-line.js +5 -5
  25. package/lib/chrome/status-line.js.map +1 -1
  26. package/lib/chrome/theme.d.ts +8 -3
  27. package/lib/chrome/theme.js +51 -153
  28. package/lib/chrome/theme.js.map +1 -1
  29. package/lib/commands/auth-account.d.ts +9 -0
  30. package/lib/commands/auth-account.js +202 -0
  31. package/lib/commands/auth-account.js.map +1 -0
  32. package/lib/commands/auth.js +238 -414
  33. package/lib/commands/auth.js.map +1 -1
  34. package/lib/commands/diff.js +22 -16
  35. package/lib/commands/diff.js.map +1 -1
  36. package/lib/commands/export.d.ts +0 -1
  37. package/lib/commands/export.js +99 -32
  38. package/lib/commands/export.js.map +1 -1
  39. package/lib/commands/files.js +11 -9
  40. package/lib/commands/files.js.map +1 -1
  41. package/lib/commands/integrations.d.ts +12 -1
  42. package/lib/commands/integrations.js +120 -23
  43. package/lib/commands/integrations.js.map +1 -1
  44. package/lib/commands/jobs-browser.d.ts +3 -0
  45. package/lib/commands/jobs-browser.js +152 -0
  46. package/lib/commands/jobs-browser.js.map +1 -0
  47. package/lib/commands/jobs.d.ts +3 -14
  48. package/lib/commands/jobs.js +26 -18
  49. package/lib/commands/jobs.js.map +1 -1
  50. package/lib/commands/model.d.ts +3 -0
  51. package/lib/commands/model.js +212 -128
  52. package/lib/commands/model.js.map +1 -1
  53. package/lib/commands/open-external.d.ts +2 -0
  54. package/lib/commands/open-external.js +19 -0
  55. package/lib/commands/open-external.js.map +1 -0
  56. package/lib/commands/permission.js +65 -54
  57. package/lib/commands/permission.js.map +1 -1
  58. package/lib/commands/plugins.js +381 -139
  59. package/lib/commands/plugins.js.map +1 -1
  60. package/lib/commands/schedule-catalog.d.ts +12 -0
  61. package/lib/commands/schedule-catalog.js +41 -0
  62. package/lib/commands/schedule-catalog.js.map +1 -0
  63. package/lib/commands/schedule-history.d.ts +4 -0
  64. package/lib/commands/schedule-history.js +62 -0
  65. package/lib/commands/schedule-history.js.map +1 -0
  66. package/lib/commands/schedule.d.ts +12 -15
  67. package/lib/commands/schedule.js +220 -187
  68. package/lib/commands/schedule.js.map +1 -1
  69. package/lib/commands/session-configuration.d.ts +3 -0
  70. package/lib/commands/session-configuration.js +62 -28
  71. package/lib/commands/session-configuration.js.map +1 -1
  72. package/lib/commands/session.js +116 -66
  73. package/lib/commands/session.js.map +1 -1
  74. package/lib/commands/terminal.js +14 -8
  75. package/lib/commands/terminal.js.map +1 -1
  76. package/lib/definition.d.ts +115 -15
  77. package/lib/index.d.ts +1 -0
  78. package/lib/index.js +1 -0
  79. package/lib/index.js.map +1 -1
  80. package/lib/input/actions.d.ts +1 -1
  81. package/lib/input/actions.js +5 -2
  82. package/lib/input/actions.js.map +1 -1
  83. package/lib/input/composer-files.d.ts +2 -0
  84. package/lib/input/composer-files.js +13 -3
  85. package/lib/input/composer-files.js.map +1 -1
  86. package/lib/input/image-paste.d.ts +5 -12
  87. package/lib/input/image-paste.js +32 -28
  88. package/lib/input/image-paste.js.map +1 -1
  89. package/lib/input/key-test.d.ts +5 -0
  90. package/lib/input/key-test.js +19 -0
  91. package/lib/input/key-test.js.map +1 -0
  92. package/lib/input/keys.d.ts +2 -0
  93. package/lib/input/keys.js +4 -1
  94. package/lib/input/keys.js.map +1 -1
  95. package/lib/locale/index.d.ts +6 -0
  96. package/lib/locale/index.js +32 -0
  97. package/lib/locale/index.js.map +1 -0
  98. package/lib/locale/prompt.d.ts +4 -0
  99. package/lib/locale/prompt.js +24 -0
  100. package/lib/locale/prompt.js.map +1 -0
  101. package/lib/locale/zh.d.ts +1114 -0
  102. package/lib/locale/zh.js +1115 -0
  103. package/lib/locale/zh.js.map +1 -0
  104. package/lib/prompt-intents.d.ts +4 -0
  105. package/lib/prompt-intents.js +4 -0
  106. package/lib/prompt-intents.js.map +1 -1
  107. package/lib/runtime/account-settings.d.ts +18 -0
  108. package/lib/runtime/account-settings.js +241 -0
  109. package/lib/runtime/account-settings.js.map +1 -0
  110. package/lib/runtime/agent-profile.d.ts +3 -3
  111. package/lib/runtime/agent-profile.js +4 -4
  112. package/lib/runtime/agent-profile.js.map +1 -1
  113. package/lib/runtime/btw-policy.js +2 -1
  114. package/lib/runtime/btw-policy.js.map +1 -1
  115. package/lib/runtime/btw.js +1 -2
  116. package/lib/runtime/btw.js.map +1 -1
  117. package/lib/runtime/composer-images.d.ts +2 -2
  118. package/lib/runtime/composer-images.js +4 -4
  119. package/lib/runtime/composer-images.js.map +1 -1
  120. package/lib/runtime/composer-shell.js +27 -1
  121. package/lib/runtime/composer-shell.js.map +1 -1
  122. package/lib/runtime/file-browser.d.ts +19 -0
  123. package/lib/runtime/file-browser.js +291 -0
  124. package/lib/runtime/file-browser.js.map +1 -0
  125. package/lib/runtime/file-review.d.ts +6 -9
  126. package/lib/runtime/file-review.js +91 -7
  127. package/lib/runtime/file-review.js.map +1 -1
  128. package/lib/runtime/help-reader.d.ts +12 -0
  129. package/lib/runtime/help-reader.js +50 -0
  130. package/lib/runtime/help-reader.js.map +1 -0
  131. package/lib/runtime/human-interaction.js +1 -1
  132. package/lib/runtime/human-interaction.js.map +1 -1
  133. package/lib/runtime/model-catalog-editor.d.ts +12 -0
  134. package/lib/runtime/model-catalog-editor.js +215 -0
  135. package/lib/runtime/model-catalog-editor.js.map +1 -0
  136. package/lib/runtime/model-settings.d.ts +11 -0
  137. package/lib/runtime/model-settings.js +404 -0
  138. package/lib/runtime/model-settings.js.map +1 -0
  139. package/lib/runtime/plugin-settings.d.ts +4 -1
  140. package/lib/runtime/plugin-settings.js +164 -88
  141. package/lib/runtime/plugin-settings.js.map +1 -1
  142. package/lib/runtime/prompt-browser.d.ts +9 -0
  143. package/lib/runtime/prompt-browser.js +19 -0
  144. package/lib/runtime/prompt-browser.js.map +1 -0
  145. package/lib/runtime/provider-local.d.ts +27 -27
  146. package/lib/runtime/provider-local.js +1288 -308
  147. package/lib/runtime/provider-local.js.map +1 -1
  148. package/lib/runtime/reference-reader.d.ts +15 -0
  149. package/lib/runtime/reference-reader.js +78 -0
  150. package/lib/runtime/reference-reader.js.map +1 -0
  151. package/lib/runtime/runner.js +38 -29
  152. package/lib/runtime/runner.js.map +1 -1
  153. package/lib/runtime/session-runtime.js +1 -1
  154. package/lib/runtime/session-runtime.js.map +1 -1
  155. package/lib/runtime/settings-draft.d.ts +21 -0
  156. package/lib/runtime/settings-draft.js +166 -0
  157. package/lib/runtime/settings-draft.js.map +1 -0
  158. package/lib/runtime/settings-preferences.js +1 -1
  159. package/lib/runtime/settings-preferences.js.map +1 -1
  160. package/lib/runtime/startup-notices.d.ts +0 -1
  161. package/lib/runtime/startup-notices.js +35 -6
  162. package/lib/runtime/startup-notices.js.map +1 -1
  163. package/lib/runtime/subagent-model-selection.js +2 -1
  164. package/lib/runtime/subagent-model-selection.js.map +1 -1
  165. package/lib/runtime/subagent-settings.d.ts +14 -0
  166. package/lib/runtime/subagent-settings.js +288 -0
  167. package/lib/runtime/subagent-settings.js.map +1 -0
  168. package/lib/runtime/terminal-notifications.d.ts +3 -0
  169. package/lib/runtime/terminal-notifications.js +13 -8
  170. package/lib/runtime/terminal-notifications.js.map +1 -1
  171. package/lib/runtime/terminal-probe.d.ts +2 -0
  172. package/lib/runtime/terminal-probe.js +9 -0
  173. package/lib/runtime/terminal-probe.js.map +1 -1
  174. package/lib/runtime/tool-presentation.js.map +1 -1
  175. package/lib/runtime/tool-reader.d.ts +5 -0
  176. package/lib/runtime/tool-reader.js +27 -0
  177. package/lib/runtime/tool-reader.js.map +1 -0
  178. package/lib/runtime/web-settings.d.ts +14 -0
  179. package/lib/runtime/web-settings.js +339 -0
  180. package/lib/runtime/web-settings.js.map +1 -0
  181. package/lib/session/command-attachments.d.ts +17 -0
  182. package/lib/session/command-attachments.js +50 -0
  183. package/lib/session/command-attachments.js.map +1 -0
  184. package/lib/session/context-diagnostics.d.ts +16 -0
  185. package/lib/session/context-diagnostics.js +15 -0
  186. package/lib/session/context-diagnostics.js.map +1 -1
  187. package/lib/session/external-agents.d.ts +3 -1
  188. package/lib/session/external-agents.js +35 -10
  189. package/lib/session/external-agents.js.map +1 -1
  190. package/lib/session/generation-continuation.d.ts +11 -0
  191. package/lib/session/generation-continuation.js +34 -0
  192. package/lib/session/generation-continuation.js.map +1 -0
  193. package/lib/session/goal-controls.d.ts +5 -0
  194. package/lib/session/goal-controls.js +81 -0
  195. package/lib/session/goal-controls.js.map +1 -0
  196. package/lib/session/interaction-adapter.d.ts +7 -3
  197. package/lib/session/interaction-adapter.js +121 -49
  198. package/lib/session/interaction-adapter.js.map +1 -1
  199. package/lib/session/message-queue.d.ts +2 -0
  200. package/lib/session/message-queue.js +102 -17
  201. package/lib/session/message-queue.js.map +1 -1
  202. package/lib/session/pending-inputs.d.ts +30 -0
  203. package/lib/session/pending-inputs.js +183 -0
  204. package/lib/session/pending-inputs.js.map +1 -0
  205. package/lib/session/session-configuration.js +1 -1
  206. package/lib/session/session-configuration.js.map +1 -1
  207. package/lib/session/session-controller.d.ts +33 -20
  208. package/lib/session/session-controller.js +500 -129
  209. package/lib/session/session-controller.js.map +1 -1
  210. package/lib/session/session-library.d.ts +3 -1
  211. package/lib/session/session-library.js +15 -0
  212. package/lib/session/session-library.js.map +1 -1
  213. package/lib/session/subagent-roster.d.ts +1 -0
  214. package/lib/session/subagent-roster.js +16 -5
  215. package/lib/session/subagent-roster.js.map +1 -1
  216. package/lib/session/subagent-tracker.d.ts +2 -0
  217. package/lib/session/subagent-tracker.js +18 -0
  218. package/lib/session/subagent-tracker.js.map +1 -1
  219. package/lib/session/tui-settings.d.ts +9 -5
  220. package/lib/session/tui-settings.js +3 -1
  221. package/lib/session/tui-settings.js.map +1 -1
  222. package/lib/session/workflow-projection.d.ts +2 -1
  223. package/lib/session/workflow-projection.js +34 -4
  224. package/lib/session/workflow-projection.js.map +1 -1
  225. package/lib/views/autocomplete.d.ts +12 -12
  226. package/lib/views/autocomplete.js +54 -45
  227. package/lib/views/autocomplete.js.map +1 -1
  228. package/lib/views/context-overview.d.ts +4 -0
  229. package/lib/views/context-overview.js +43 -0
  230. package/lib/views/context-overview.js.map +1 -0
  231. package/lib/views/copy-targets.d.ts +6 -2
  232. package/lib/views/copy-targets.js +19 -14
  233. package/lib/views/copy-targets.js.map +1 -1
  234. package/lib/views/document-reader.d.ts +10 -1
  235. package/lib/views/document-reader.js +63 -6
  236. package/lib/views/document-reader.js.map +1 -1
  237. package/lib/views/event-views.js +29 -11
  238. package/lib/views/event-views.js.map +1 -1
  239. package/lib/views/file-actions.js +21 -0
  240. package/lib/views/file-actions.js.map +1 -1
  241. package/lib/views/file-browser.d.ts +98 -0
  242. package/lib/views/file-browser.js +120 -0
  243. package/lib/views/file-browser.js.map +1 -0
  244. package/lib/views/history-search.js +4 -4
  245. package/lib/views/history-search.js.map +1 -1
  246. package/lib/views/hotkey-format.d.ts +3 -2
  247. package/lib/views/hotkey-format.js +4 -3
  248. package/lib/views/hotkey-format.js.map +1 -1
  249. package/lib/views/hotkeys.js +10 -12
  250. package/lib/views/hotkeys.js.map +1 -1
  251. package/lib/views/list-view.js +16 -11
  252. package/lib/views/list-view.js.map +1 -1
  253. package/lib/views/prompt-selector.d.ts +23 -1
  254. package/lib/views/prompt-selector.js +123 -60
  255. package/lib/views/prompt-selector.js.map +1 -1
  256. package/lib/views/settings-list.d.ts +6 -1
  257. package/lib/views/settings-list.js +69 -46
  258. package/lib/views/settings-list.js.map +1 -1
  259. package/lib/views/tool-actions.d.ts +16 -0
  260. package/lib/views/tool-actions.js +29 -0
  261. package/lib/views/tool-actions.js.map +1 -0
  262. package/lib/views/trajectory-timeline.d.ts +5 -6
  263. package/lib/views/trajectory-timeline.js +25 -15
  264. package/lib/views/trajectory-timeline.js.map +1 -1
  265. package/lib/views/trajectory.d.ts +23 -2
  266. package/lib/views/trajectory.js +404 -186
  267. package/lib/views/trajectory.js.map +1 -1
  268. package/lib/views/transcript-render.d.ts +39 -15
  269. package/lib/views/transcript-render.js +406 -208
  270. package/lib/views/transcript-render.js.map +1 -1
  271. package/lib/views/transcript-types.d.ts +3 -2
  272. package/lib/views/transcript-types.js.map +1 -1
  273. package/lib/views/workflow.d.ts +16 -0
  274. package/lib/views/workflow.js +42 -0
  275. package/lib/views/workflow.js.map +1 -0
  276. package/package.json +61 -58
  277. package/lib/chrome/welcome-tips.d.ts +0 -23
  278. package/lib/chrome/welcome-tips.js +0 -24
  279. package/lib/chrome/welcome-tips.js.map +0 -1
  280. package/lib/session/steering.d.ts +0 -3
  281. package/lib/session/steering.js +0 -9
  282. package/lib/session/steering.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ export function rosterItems(roster) {
2
+ return [
3
+ ...(roster?.workflows ?? []).map(run => ({ key: `workflow:${run.id}`, kind: 'workflow', run })),
4
+ ...(roster?.agents ?? []).map(agent => ({ key: `agent:${agent.id}`, kind: 'agent', agent })),
5
+ ];
6
+ }
7
+ export function workflowStatus(status) {
8
+ return { open: 'Running', completed: 'Completed', error: 'Failed', failed: 'Failed', cancelled: 'Cancelled', interrupted: 'Interrupted' }[status] ?? status;
9
+ }
10
+ export function workflowMemberStatus(run, member) {
11
+ return member.outcome ?? (run.status === 'interrupted' ? 'interrupted' : 'open');
12
+ }
13
+ function badge(status) {
14
+ return { label: workflowStatus(status), tone: status === 'completed' ? 'success' : status === 'failed' || status === 'error' ? 'error' : status === 'open' ? 'muted' : 'warning' };
15
+ }
16
+ /** Only actual member starts create groups; absent and empty phase names stay distinct. */
17
+ export function workflowOptions(run, canOpen) {
18
+ const options = [
19
+ { label: run.name, value: 'run', disabled: true, badge: badge(run.status) },
20
+ ];
21
+ const phases = new Map();
22
+ for (const member of run.members) {
23
+ const members = phases.get(member.phase) ?? [];
24
+ members.push(member);
25
+ phases.set(member.phase, members);
26
+ }
27
+ for (const [phase, members] of phases) {
28
+ const value = phase === undefined ? 'phase:missing' : `phase:value:${phase}`;
29
+ const statuses = members.map(member => workflowMemberStatus(run, member));
30
+ const status = ['failed', 'interrupted', 'cancelled', 'open', 'completed'].find(status => statuses.includes(status)) ?? 'open';
31
+ options.push({ label: phase === undefined ? '—' : phase === '' ? '“”' : phase, value, parentValue: 'run', disabled: true,
32
+ badge: { ...badge(status), label: `${members.length} · ${workflowStatus(status)}` } });
33
+ for (const member of members) {
34
+ const available = canOpen(member);
35
+ const status = workflowMemberStatus(run, member);
36
+ options.push({ label: member.label, value: `member:${member.seq}`, parentValue: value,
37
+ badge: status === 'open' && !available ? { ...badge(status), label: 'Running · Not available to open' } : badge(status), disabled: !available, submitLabel: 'open' });
38
+ }
39
+ }
40
+ return options;
41
+ }
42
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/views/workflow.ts"],"names":[],"mappings":"AAOA,MAAM,UAA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EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI;YACtH,KAAK,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,MAAM,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAA;QACxF,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;YACjC,MAAM,MAAM,GAAG,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;YAChD,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,MAAM,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK;gBACnF,KAAK,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAA;QACzK,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agi-fans/dsh-tui",
3
3
  "description": "Library-only Cordis plugin suite for DeepSeek Harness terminal presentation and interaction",
4
- "version": "0.22.0",
4
+ "version": "0.23.1",
5
5
  "homepage": "https://omdsh.agi.fans/",
6
6
  "keywords": [
7
7
  "omdsh",
@@ -160,59 +160,62 @@
160
160
  "access": "public"
161
161
  },
162
162
  "dependencies": {
163
- "@deepseek-ai/cordis-plugin-loader": "1.0.6",
164
- "@deepseek-ai/dsh-agent": "0.2.1-rc.5",
165
- "@deepseek-ai/dsh-agent-default-model": "0.2.1-rc.5",
166
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.5",
167
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
168
- "@deepseek-ai/dsh-authorization": "0.2.1-rc.5",
169
- "@deepseek-ai/dsh-cmdline": "0.2.1-rc.5",
170
- "@deepseek-ai/dsh-commands": "0.2.1-rc.5",
171
- "@deepseek-ai/dsh-compaction": "0.2.1-rc.5",
172
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.5",
173
- "@deepseek-ai/dsh-experimental-worktree": "0.2.1-rc.5",
174
- "@deepseek-ai/dsh-file-reference": "0.2.1-rc.5",
175
- "@deepseek-ai/dsh-fs": "0.2.1-rc.5",
176
- "@deepseek-ai/dsh-goal": "0.2.1-rc.5",
177
- "@deepseek-ai/dsh-hook-protocol": "0.2.1-rc.5",
178
- "@deepseek-ai/dsh-hooks-claude-code": "0.2.1-rc.5",
179
- "@deepseek-ai/dsh-hooks-codex": "0.2.1-rc.5",
180
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.5",
181
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
182
- "@deepseek-ai/dsh-llm-retry": "0.2.1-rc.5",
183
- "@deepseek-ai/dsh-message-feedback": "0.2.1-rc.5",
184
- "@deepseek-ai/dsh-permission-presets": "0.2.1-rc.5",
185
- "@deepseek-ai/dsh-plan-mode": "0.2.1-rc.5",
186
- "@deepseek-ai/dsh-plugin-manager": "0.2.1-rc.5",
187
- "@deepseek-ai/dsh-plugin-market": "0.2.1-rc.5",
188
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
189
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
190
- "@deepseek-ai/dsh-schedule": "0.2.1-rc.5",
191
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
192
- "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
193
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
194
- "@deepseek-ai/dsh-session-query": "0.2.1-rc.5",
195
- "@deepseek-ai/dsh-session-reference": "0.2.1-rc.5",
196
- "@deepseek-ai/dsh-session-stats": "0.2.1-rc.5",
197
- "@deepseek-ai/dsh-session-title": "0.2.1-rc.5",
198
- "@deepseek-ai/dsh-settings": "0.2.1-rc.5",
199
- "@deepseek-ai/dsh-skill": "0.2.1-rc.5",
200
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.5",
201
- "@deepseek-ai/dsh-subprocess": "0.2.1-rc.5",
202
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
203
- "@deepseek-ai/dsh-terminal": "0.2.1-rc.5",
204
- "@deepseek-ai/dsh-token-meter": "0.2.1-rc.5",
205
- "@deepseek-ai/dsh-tool-present": "0.2.1-rc.5",
206
- "@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.5",
207
- "@deepseek-ai/dsh-tool-todo": "0.2.1-rc.5",
208
- "@deepseek-ai/dsh-tool-workflow": "0.2.1-rc.5",
209
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
210
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
211
- "@deepseek-ai/dsh-user-questions": "0.2.1-rc.5",
212
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.5",
213
- "@deepseek-ai/dsh-workspace": "0.2.1-rc.5",
214
- "@deepseek-ai/dsh-workspace-changes": "0.2.1-rc.5",
215
- "@deepseek-ai/schemastery": "3.18.5",
163
+ "@deepseek-ai/cordis-plugin-loader": "1.1.0",
164
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
165
+ "@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.1",
166
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.1",
167
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
168
+ "@deepseek-ai/dsh-authorization": "0.2.2-rc.1",
169
+ "@deepseek-ai/dsh-cmdline": "0.2.2-rc.1",
170
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
171
+ "@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
172
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
173
+ "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.1",
174
+ "@deepseek-ai/dsh-experimental-worktree": "0.2.2-rc.1",
175
+ "@deepseek-ai/dsh-file-reference": "0.2.2-rc.1",
176
+ "@deepseek-ai/dsh-fs": "0.2.2-rc.1",
177
+ "@deepseek-ai/dsh-goal": "0.2.2-rc.1",
178
+ "@deepseek-ai/dsh-hook-protocol": "0.2.2-rc.1",
179
+ "@deepseek-ai/dsh-hooks-claude-code": "0.2.2-rc.1",
180
+ "@deepseek-ai/dsh-hooks-codex": "0.2.2-rc.1",
181
+ "@deepseek-ai/dsh-jobs": "0.2.2-rc.1",
182
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
183
+ "@deepseek-ai/dsh-llm-retry": "0.2.2-rc.1",
184
+ "@deepseek-ai/dsh-message-feedback": "0.2.2-rc.1",
185
+ "@deepseek-ai/dsh-permission-presets": "0.2.2-rc.1",
186
+ "@deepseek-ai/dsh-plan-mode": "0.2.2-rc.1",
187
+ "@deepseek-ai/dsh-plugin-manager": "0.2.2-rc.1",
188
+ "@deepseek-ai/dsh-plugin-market": "0.2.2-rc.1",
189
+ "@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
190
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
191
+ "@deepseek-ai/dsh-schedule": "0.2.2-rc.1",
192
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
193
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
194
+ "@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
195
+ "@deepseek-ai/dsh-session-query": "0.2.2-rc.1",
196
+ "@deepseek-ai/dsh-session-reference": "0.2.2-rc.1",
197
+ "@deepseek-ai/dsh-session-stats": "0.2.2-rc.1",
198
+ "@deepseek-ai/dsh-session-title": "0.2.2-rc.1",
199
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
200
+ "@deepseek-ai/dsh-skill": "0.2.2-rc.1",
201
+ "@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
202
+ "@deepseek-ai/dsh-subprocess": "0.2.2-rc.1",
203
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
204
+ "@deepseek-ai/dsh-terminal": "0.2.2-rc.1",
205
+ "@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
206
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
207
+ "@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.1",
208
+ "@deepseek-ai/dsh-tool-present": "0.2.2-rc.1",
209
+ "@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.1",
210
+ "@deepseek-ai/dsh-tool-todo": "0.2.2-rc.1",
211
+ "@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.1",
212
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
213
+ "@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
214
+ "@deepseek-ai/dsh-user-questions": "0.2.2-rc.1",
215
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
216
+ "@deepseek-ai/dsh-workspace": "0.2.2-rc.1",
217
+ "@deepseek-ai/dsh-workspace-changes": "0.2.2-rc.1",
218
+ "@deepseek-ai/schemastery": "3.19.0",
216
219
  "diff": "9.0.0",
217
220
  "fflate": "0.8.3",
218
221
  "lovely-mermaid": "0.3.3",
@@ -221,12 +224,12 @@
221
224
  "sharp": "0.35.5"
222
225
  },
223
226
  "peerDependencies": {
224
- "@deepseek-ai/cordis": "~4.0.5"
227
+ "@deepseek-ai/cordis": "~4.1.0"
225
228
  },
226
229
  "devDependencies": {
227
- "@deepseek-ai/cordis": "4.0.5",
228
- "@deepseek-ai/dsh-scope": "0.2.1-rc.5",
229
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.5",
230
+ "@deepseek-ai/cordis": "4.1.0",
231
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
232
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
230
233
  "@types/node": "^22.10.0",
231
234
  "@types/prismjs": "1.26.6",
232
235
  "@xterm/headless": "6.0.0",
@@ -1,23 +0,0 @@
1
- /** The fixed startup hint line that sits under the header. */
2
- /** One key/action pair: the key, then what it opens. */
3
- export interface WelcomeHint {
4
- key: string;
5
- text: string;
6
- }
7
- /**
8
- * What the header teaches, in the order a new reader needs it.
9
- *
10
- * Four entries, and each one has to earn its place on two counts: it must be
11
- * impossible to guess, and it must change what the reader can do. That is why
12
- * `Ctrl+R` is not here — history search is a shortcut you go looking for once
13
- * you already have a history, not an affordance that changes the first session.
14
- * `!` is the opposite: no reader guesses that a bang runs a Shell line outside
15
- * the model's context, and once they know, they use it every day.
16
- *
17
- * The line carries no universal key either. `Esc` cancels and `Enter` sends;
18
- * a reminder of either is a permanent row about something learned in a minute.
19
- * The last entry is the exit hatch — `/help` holds the rest of the catalog.
20
- */
21
- export declare const WELCOME_HINTS: readonly WelcomeHint[];
22
- /** The label that marks the line as advice rather than as chrome. */
23
- export declare const HINT_LABEL = "Tips:";
@@ -1,24 +0,0 @@
1
- /** The fixed startup hint line that sits under the header. */
2
- /**
3
- * What the header teaches, in the order a new reader needs it.
4
- *
5
- * Four entries, and each one has to earn its place on two counts: it must be
6
- * impossible to guess, and it must change what the reader can do. That is why
7
- * `Ctrl+R` is not here — history search is a shortcut you go looking for once
8
- * you already have a history, not an affordance that changes the first session.
9
- * `!` is the opposite: no reader guesses that a bang runs a Shell line outside
10
- * the model's context, and once they know, they use it every day.
11
- *
12
- * The line carries no universal key either. `Esc` cancels and `Enter` sends;
13
- * a reminder of either is a permanent row about something learned in a minute.
14
- * The last entry is the exit hatch — `/help` holds the rest of the catalog.
15
- */
16
- export const WELCOME_HINTS = [
17
- { key: '/', text: 'commands' },
18
- { key: '@', text: 'files' },
19
- { key: '!', text: 'shell' },
20
- { key: '/help', text: 'all shortcuts' },
21
- ];
22
- /** The label that marks the line as advice rather than as chrome. */
23
- export const HINT_LABEL = 'Tips:';
24
- //# sourceMappingURL=welcome-tips.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"welcome-tips.js","sourceRoot":"","sources":["../../src/chrome/welcome-tips.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAQ9D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE;IAC9B,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE;IAC3B,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE;IAC3B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE;CACxC,CAAA;AAED,qEAAqE;AACrE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAA"}
@@ -1,3 +0,0 @@
1
- /** Shared text guidance entry for the slash command and composer shortcut. */
2
- import type { Agent } from '@deepseek-ai/dsh-agent';
3
- export declare function steerAgent(agent: Agent | undefined, text: string): void;
@@ -1,9 +0,0 @@
1
- import { createUserMessage } from '@deepseek-ai/dsh-llm';
2
- export function steerAgent(agent, text) {
3
- if (text.trim() === '')
4
- throw new Error('Enter guidance for the active turn.');
5
- if (agent?.status !== 'running')
6
- throw new Error('Steering needs an active turn. Use Enter to send the next message.');
7
- agent.steer(createUserMessage({ content: [{ type: 'text', text }], source: { kind: 'user' } }));
8
- }
9
- //# sourceMappingURL=steering.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"steering.js","sourceRoot":"","sources":["../../src/session/steering.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,UAAU,UAAU,CAAC,KAAwB,EAAE,IAAY;IAC/D,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IAC9E,IAAI,KAAK,EAAE,MAAM,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAA;IACtH,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AACjG,CAAC"}