@sagmans/dsh-tui 0.5.2 → 0.7.0

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 (285) hide show
  1. package/.agents/skills/dsh-tui-dogfood/SKILL.md +83 -0
  2. package/.agents/skills/dsh-tui-dogfood/references/home-state.md +78 -0
  3. package/.agents/skills/dsh-tui-dogfood/scripts/clone-links.mjs +133 -0
  4. package/.agents/skills/dsh-tui-dogfood/scripts/run-plugin-from-worktree.sh +417 -0
  5. package/.agents/skills/dsh-tui-update-models/SKILL.md +121 -0
  6. package/.agents/skills/dsh-tui-update-models/references/model-wiring.md +162 -0
  7. package/.agents/skills/dsh-tui-update-models/scripts/dump-model-catalog.mjs +178 -0
  8. package/README.md +131 -17
  9. package/lib/agent/host.d.ts +11 -0
  10. package/lib/agent/host.d.ts.map +1 -1
  11. package/lib/agent/host.js +16 -2
  12. package/lib/agent/host.js.map +1 -1
  13. package/lib/agent/present.d.ts.map +1 -1
  14. package/lib/agent/present.js +2 -1
  15. package/lib/agent/present.js.map +1 -1
  16. package/lib/agent/undo.d.ts +52 -0
  17. package/lib/agent/undo.d.ts.map +1 -0
  18. package/lib/agent/undo.js +106 -0
  19. package/lib/agent/undo.js.map +1 -0
  20. package/lib/cards/composition.d.ts +68 -0
  21. package/lib/cards/composition.d.ts.map +1 -0
  22. package/lib/cards/composition.js +117 -0
  23. package/lib/cards/composition.js.map +1 -0
  24. package/lib/cards/presenter.d.ts +23 -0
  25. package/lib/cards/presenter.d.ts.map +1 -0
  26. package/lib/cards/presenter.js +394 -0
  27. package/lib/cards/presenter.js.map +1 -0
  28. package/lib/cards/preview.d.ts +42 -0
  29. package/lib/cards/preview.d.ts.map +1 -0
  30. package/lib/cards/preview.js +51 -0
  31. package/lib/cards/preview.js.map +1 -0
  32. package/lib/cards.d.ts +42 -95
  33. package/lib/cards.d.ts.map +1 -1
  34. package/lib/cards.js +4 -526
  35. package/lib/cards.js.map +1 -1
  36. package/lib/compat/section.d.ts +29 -0
  37. package/lib/compat/section.d.ts.map +1 -0
  38. package/lib/compat/section.js +82 -0
  39. package/lib/compat/section.js.map +1 -0
  40. package/lib/config.d.ts +27 -2
  41. package/lib/config.d.ts.map +1 -1
  42. package/lib/config.js +61 -1
  43. package/lib/config.js.map +1 -1
  44. package/lib/contracts.d.ts +28 -0
  45. package/lib/contracts.d.ts.map +1 -1
  46. package/lib/fold-cursor.d.ts +8 -0
  47. package/lib/fold-cursor.d.ts.map +1 -1
  48. package/lib/fold-cursor.js +18 -0
  49. package/lib/fold-cursor.js.map +1 -1
  50. package/lib/gates/question-card.d.ts +77 -0
  51. package/lib/gates/question-card.d.ts.map +1 -0
  52. package/lib/gates/question-card.js +113 -0
  53. package/lib/gates/question-card.js.map +1 -0
  54. package/lib/gates/questions.d.ts +127 -0
  55. package/lib/gates/questions.d.ts.map +1 -0
  56. package/lib/gates/questions.js +418 -0
  57. package/lib/gates/questions.js.map +1 -0
  58. package/lib/gates.d.ts +1 -113
  59. package/lib/gates.d.ts.map +1 -1
  60. package/lib/gates.js +1 -484
  61. package/lib/gates.js.map +1 -1
  62. package/lib/herdr/reporter.d.ts +9 -4
  63. package/lib/herdr/reporter.d.ts.map +1 -1
  64. package/lib/herdr/reporter.js +5 -9
  65. package/lib/herdr/reporter.js.map +1 -1
  66. package/lib/herdr/state.d.ts +35 -4
  67. package/lib/herdr/state.d.ts.map +1 -1
  68. package/lib/herdr/state.js +37 -4
  69. package/lib/herdr/state.js.map +1 -1
  70. package/lib/index.d.ts +1 -0
  71. package/lib/index.d.ts.map +1 -1
  72. package/lib/index.js +343 -2267
  73. package/lib/index.js.map +1 -1
  74. package/lib/input/action-catalog.d.ts +74 -0
  75. package/lib/input/action-catalog.d.ts.map +1 -0
  76. package/lib/input/action-catalog.js +137 -0
  77. package/lib/input/action-catalog.js.map +1 -0
  78. package/lib/input/actions.d.ts +5 -81
  79. package/lib/input/actions.d.ts.map +1 -1
  80. package/lib/input/actions.js +4 -621
  81. package/lib/input/actions.js.map +1 -1
  82. package/lib/input/completion.d.ts +11 -1
  83. package/lib/input/completion.d.ts.map +1 -1
  84. package/lib/input/completion.js +17 -1
  85. package/lib/input/completion.js.map +1 -1
  86. package/lib/input/file-index.d.ts +40 -0
  87. package/lib/input/file-index.d.ts.map +1 -0
  88. package/lib/input/file-index.js +141 -0
  89. package/lib/input/file-index.js.map +1 -0
  90. package/lib/input/file-search.d.ts +1 -38
  91. package/lib/input/file-search.d.ts.map +1 -1
  92. package/lib/input/file-search.js +1 -487
  93. package/lib/input/file-search.js.map +1 -1
  94. package/lib/input/key-press.d.ts +57 -0
  95. package/lib/input/key-press.d.ts.map +1 -0
  96. package/lib/input/key-press.js +218 -0
  97. package/lib/input/key-press.js.map +1 -0
  98. package/lib/input/keymap-conflicts.d.ts +59 -0
  99. package/lib/input/keymap-conflicts.d.ts.map +1 -0
  100. package/lib/input/keymap-conflicts.js +292 -0
  101. package/lib/input/keymap-conflicts.js.map +1 -0
  102. package/lib/input/keymap-settings.js +1 -1
  103. package/lib/input/keymap-settings.js.map +1 -1
  104. package/lib/input/keymap.d.ts.map +1 -1
  105. package/lib/input/keymap.js +5 -1
  106. package/lib/input/keymap.js.map +1 -1
  107. package/lib/input/submission.d.ts +11 -1
  108. package/lib/input/submission.d.ts.map +1 -1
  109. package/lib/input/submission.js +10 -1
  110. package/lib/input/submission.js.map +1 -1
  111. package/lib/input/workspace-files.d.ts +10 -0
  112. package/lib/input/workspace-files.d.ts.map +1 -0
  113. package/lib/input/workspace-files.js +359 -0
  114. package/lib/input/workspace-files.js.map +1 -0
  115. package/lib/install-skills.d.ts +20 -0
  116. package/lib/install-skills.d.ts.map +1 -0
  117. package/lib/install-skills.js +198 -0
  118. package/lib/install-skills.js.map +1 -0
  119. package/lib/keys-command.d.ts +2 -1
  120. package/lib/keys-command.d.ts.map +1 -1
  121. package/lib/keys-command.js +2 -1
  122. package/lib/keys-command.js.map +1 -1
  123. package/lib/model-list.d.ts +37 -0
  124. package/lib/model-list.d.ts.map +1 -0
  125. package/lib/model-list.js +60 -0
  126. package/lib/model-list.js.map +1 -0
  127. package/lib/startup.d.ts +8 -0
  128. package/lib/startup.d.ts.map +1 -1
  129. package/lib/startup.js +120 -24
  130. package/lib/startup.js.map +1 -1
  131. package/lib/subagents.d.ts +7 -3
  132. package/lib/subagents.d.ts.map +1 -1
  133. package/lib/subagents.js +28 -4
  134. package/lib/subagents.js.map +1 -1
  135. package/lib/surface/appearance-preferences.d.ts +26 -0
  136. package/lib/surface/appearance-preferences.d.ts.map +1 -0
  137. package/lib/surface/appearance-preferences.js +139 -0
  138. package/lib/surface/appearance-preferences.js.map +1 -0
  139. package/lib/surface/appearance.d.ts +87 -0
  140. package/lib/surface/appearance.d.ts.map +1 -0
  141. package/lib/surface/appearance.js +353 -0
  142. package/lib/surface/appearance.js.map +1 -0
  143. package/lib/surface/background-work.d.ts +49 -0
  144. package/lib/surface/background-work.d.ts.map +1 -0
  145. package/lib/surface/background-work.js +146 -0
  146. package/lib/surface/background-work.js.map +1 -0
  147. package/lib/surface/commands.d.ts +80 -0
  148. package/lib/surface/commands.d.ts.map +1 -0
  149. package/lib/surface/commands.js +364 -0
  150. package/lib/surface/commands.js.map +1 -0
  151. package/lib/surface/modal-input.d.ts +58 -0
  152. package/lib/surface/modal-input.d.ts.map +1 -0
  153. package/lib/surface/modal-input.js +237 -0
  154. package/lib/surface/modal-input.js.map +1 -0
  155. package/lib/surface/model-choice.d.ts +54 -0
  156. package/lib/surface/model-choice.d.ts.map +1 -0
  157. package/lib/surface/model-choice.js +325 -0
  158. package/lib/surface/model-choice.js.map +1 -0
  159. package/lib/surface/preset-choice.d.ts +78 -0
  160. package/lib/surface/preset-choice.d.ts.map +1 -0
  161. package/lib/surface/preset-choice.js +163 -0
  162. package/lib/surface/preset-choice.js.map +1 -0
  163. package/lib/surface/prompt-input.d.ts +97 -0
  164. package/lib/surface/prompt-input.d.ts.map +1 -0
  165. package/lib/surface/prompt-input.js +215 -0
  166. package/lib/surface/prompt-input.js.map +1 -0
  167. package/lib/surface/prompt-memory.d.ts +76 -0
  168. package/lib/surface/prompt-memory.d.ts.map +1 -0
  169. package/lib/surface/prompt-memory.js +167 -0
  170. package/lib/surface/prompt-memory.js.map +1 -0
  171. package/lib/surface/session-lifecycle.d.ts +120 -0
  172. package/lib/surface/session-lifecycle.d.ts.map +1 -0
  173. package/lib/surface/session-lifecycle.js +321 -0
  174. package/lib/surface/session-lifecycle.js.map +1 -0
  175. package/lib/surface/session-picker.d.ts +39 -0
  176. package/lib/surface/session-picker.d.ts.map +1 -0
  177. package/lib/surface/session-picker.js +107 -0
  178. package/lib/surface/session-picker.js.map +1 -0
  179. package/lib/surface/session-view.d.ts +86 -0
  180. package/lib/surface/session-view.d.ts.map +1 -0
  181. package/lib/surface/session-view.js +215 -0
  182. package/lib/surface/session-view.js.map +1 -0
  183. package/lib/surface/staged-turns.d.ts +81 -0
  184. package/lib/surface/staged-turns.d.ts.map +1 -0
  185. package/lib/surface/staged-turns.js +206 -0
  186. package/lib/surface/staged-turns.js.map +1 -0
  187. package/lib/surface/terminal-lifecycle.d.ts +76 -0
  188. package/lib/surface/terminal-lifecycle.d.ts.map +1 -0
  189. package/lib/surface/terminal-lifecycle.js +222 -0
  190. package/lib/surface/terminal-lifecycle.js.map +1 -0
  191. package/lib/terminal/warning-screen.d.ts +8 -1
  192. package/lib/terminal/warning-screen.d.ts.map +1 -1
  193. package/lib/terminal/warning-screen.js +9 -0
  194. package/lib/terminal/warning-screen.js.map +1 -1
  195. package/lib/terminal-text/scan.d.ts +44 -0
  196. package/lib/terminal-text/scan.d.ts.map +1 -0
  197. package/lib/terminal-text/scan.js +195 -0
  198. package/lib/terminal-text/scan.js.map +1 -0
  199. package/lib/terminal-text/sgr.d.ts +32 -0
  200. package/lib/terminal-text/sgr.d.ts.map +1 -0
  201. package/lib/terminal-text/sgr.js +203 -0
  202. package/lib/terminal-text/sgr.js.map +1 -0
  203. package/lib/terminal-text.d.ts +1 -1
  204. package/lib/terminal-text.d.ts.map +1 -1
  205. package/lib/terminal-text.js +2 -379
  206. package/lib/terminal-text.js.map +1 -1
  207. package/lib/theme-command.js +2 -1
  208. package/lib/theme-command.js.map +1 -1
  209. package/lib/theme-defaults.d.ts +64 -0
  210. package/lib/theme-defaults.d.ts.map +1 -0
  211. package/lib/theme-defaults.js +248 -0
  212. package/lib/theme-defaults.js.map +1 -0
  213. package/lib/theme-resolver.d.ts +36 -0
  214. package/lib/theme-resolver.d.ts.map +1 -0
  215. package/lib/theme-resolver.js +112 -0
  216. package/lib/theme-resolver.js.map +1 -0
  217. package/lib/theme-schema.d.ts +6 -6
  218. package/lib/theme-schema.d.ts.map +1 -1
  219. package/lib/theme-schema.js +3 -2
  220. package/lib/theme-schema.js.map +1 -1
  221. package/lib/theme-settings.d.ts +13 -15
  222. package/lib/theme-settings.d.ts.map +1 -1
  223. package/lib/theme-settings.js +27 -19
  224. package/lib/theme-settings.js.map +1 -1
  225. package/lib/theme-tokens.d.ts +1 -90
  226. package/lib/theme-tokens.d.ts.map +1 -1
  227. package/lib/theme-tokens.js +11 -341
  228. package/lib/theme-tokens.js.map +1 -1
  229. package/lib/theme.d.ts +1 -1
  230. package/lib/theme.d.ts.map +1 -1
  231. package/lib/theme.js +2 -1
  232. package/lib/theme.js.map +1 -1
  233. package/lib/tool-display.d.ts.map +1 -1
  234. package/lib/tool-display.js +2 -1
  235. package/lib/tool-display.js.map +1 -1
  236. package/lib/transcript/message-content.d.ts +21 -0
  237. package/lib/transcript/message-content.d.ts.map +1 -0
  238. package/lib/transcript/message-content.js +61 -0
  239. package/lib/transcript/message-content.js.map +1 -0
  240. package/lib/transcript/tool-calls.d.ts +106 -0
  241. package/lib/transcript/tool-calls.d.ts.map +1 -0
  242. package/lib/transcript/tool-calls.js +254 -0
  243. package/lib/transcript/tool-calls.js.map +1 -0
  244. package/lib/transcript.d.ts +38 -43
  245. package/lib/transcript.d.ts.map +1 -1
  246. package/lib/transcript.js +58 -245
  247. package/lib/transcript.js.map +1 -1
  248. package/lib/ui/copy.d.ts +17 -0
  249. package/lib/ui/copy.d.ts.map +1 -0
  250. package/lib/ui/copy.js +104 -0
  251. package/lib/ui/copy.js.map +1 -0
  252. package/lib/ui/dock.d.ts +35 -3
  253. package/lib/ui/dock.d.ts.map +1 -1
  254. package/lib/ui/dock.js +124 -23
  255. package/lib/ui/dock.js.map +1 -1
  256. package/lib/ui/editor.d.ts.map +1 -1
  257. package/lib/ui/editor.js +2 -1
  258. package/lib/ui/editor.js.map +1 -1
  259. package/lib/ui/frame.d.ts +31 -0
  260. package/lib/ui/frame.d.ts.map +1 -1
  261. package/lib/ui/frame.js +27 -4
  262. package/lib/ui/frame.js.map +1 -1
  263. package/lib/ui/keymap-picker.d.ts +2 -1
  264. package/lib/ui/keymap-picker.d.ts.map +1 -1
  265. package/lib/ui/keymap-picker.js +1 -0
  266. package/lib/ui/keymap-picker.js.map +1 -1
  267. package/lib/ui/view/gate-card.d.ts +21 -0
  268. package/lib/ui/view/gate-card.d.ts.map +1 -0
  269. package/lib/ui/view/gate-card.js +104 -0
  270. package/lib/ui/view/gate-card.js.map +1 -0
  271. package/lib/ui/view/tool-card.d.ts +138 -0
  272. package/lib/ui/view/tool-card.d.ts.map +1 -0
  273. package/lib/ui/view/tool-card.js +413 -0
  274. package/lib/ui/view/tool-card.js.map +1 -0
  275. package/lib/ui/view/transcript-message.d.ts +62 -0
  276. package/lib/ui/view/transcript-message.d.ts.map +1 -0
  277. package/lib/ui/view/transcript-message.js +158 -0
  278. package/lib/ui/view/transcript-message.js.map +1 -0
  279. package/lib/ui/view.d.ts +87 -156
  280. package/lib/ui/view.d.ts.map +1 -1
  281. package/lib/ui/view.js +122 -556
  282. package/lib/ui/view.js.map +1 -1
  283. package/package.json +3 -1
  284. package/themes/deepseek-blue.yaml +9 -0
  285. package/themes/violet-orbit.yaml +7 -0
package/lib/transcript.js CHANGED
@@ -1,7 +1,8 @@
1
- import { cardFromLines, carriedFields, contentLines, mergeCards, subCallOf, subCallRows, SUBCALL_MAX } from "./cards.js";
2
1
  import { injectionSummary } from "./injection.js";
3
2
  import { sliceGraphemes, tailGraphemes } from "./text.js";
4
3
  import { countTokens } from "./tokens.js";
4
+ import { reasoningTextsOf, textOfContent } from "./transcript/message-content.js";
5
+ import { ToolCallFold } from "./transcript/tool-calls.js";
5
6
  /** Reasoning kept per settled block, so one runaway thought cannot grow the transcript without bound. */
6
7
  export const REASONING_CHAR_LIMIT = 20_000;
7
8
  /**
@@ -19,62 +20,6 @@ function describeTokens(text) {
19
20
  function asRecord(value) {
20
21
  return typeof value === 'object' && value !== null ? value : undefined;
21
22
  }
22
- /** The arguments a nested call was made with, as the shape a presenter is asked with. */
23
- function argumentsJsonOf(value) {
24
- if (value === undefined)
25
- return '';
26
- try {
27
- return JSON.stringify(value) ?? '';
28
- }
29
- catch {
30
- return '';
31
- }
32
- }
33
- function contentLinesOf(content) {
34
- if (!Array.isArray(content))
35
- return [];
36
- const lines = [];
37
- for (const block of content) {
38
- const record = asRecord(block);
39
- if (record === undefined)
40
- continue;
41
- // A thought is a row of its own; reading it here would hand the model's
42
- // private reasoning to the reader as though it had been said out loud.
43
- if (record.type === 'reasoning')
44
- continue;
45
- // Any block that carries text counts; a tool-result block also holds its
46
- // model-facing content one level deeper.
47
- if (typeof record.text === 'string')
48
- lines.push(...record.text.split('\n'));
49
- if (Array.isArray(record.content))
50
- lines.push(...contentLinesOf(record.content));
51
- }
52
- return lines;
53
- }
54
- function textOfContent(content) {
55
- return contentLinesOf(content).join('\n');
56
- }
57
- /**
58
- * The thoughts a durable message carries, in the order they were recorded.
59
- *
60
- * A recorded thought is the only path a resumed session has to the model's
61
- * reasoning, and the live stream does not outlive the turn that produced it.
62
- */
63
- function reasoningTextsOf(content) {
64
- if (!Array.isArray(content))
65
- return [];
66
- const thoughts = [];
67
- for (const block of content) {
68
- const record = asRecord(block);
69
- if (record === undefined)
70
- continue;
71
- if (record.type === 'reasoning' && typeof record.text === 'string')
72
- thoughts.push(record.text);
73
- if (Array.isArray(record.content))
74
- thoughts.push(...reasoningTextsOf(record.content));
75
- }
76
- return thoughts;
77
- }
78
23
  function sourceKind(data) {
79
24
  return asRecord(data.source)?.kind === 'user' ? 'user' : 'plugin';
80
25
  }
@@ -95,20 +40,12 @@ function messageOf(value) {
95
40
  * Durable events own the transcript: the live stream is decoration that a
96
41
  * repaint or a resume can drop without changing what the reader sees. Tool
97
42
  * rows come from the tool's own render intent, so the fold never learns a tool
98
- * name.
43
+ * name; the bookkeeping that a tool row's request, dispatch, and result share
44
+ * lives in the call fold this model routes those events to.
99
45
  */
100
46
  export class TranscriptModel {
101
- presenter;
102
- now;
47
+ clock;
103
48
  settled = [];
104
- pending = new Map();
105
- /**
106
- * Where each nested call landed on its root card.
107
- *
108
- * A dispatch logs a start and then a settle, so the second event has to find
109
- * the row the first one drew instead of adding a second line for one call.
110
- */
111
- pendingSub = new Map();
112
49
  live = '';
113
50
  liveReasoning = '';
114
51
  reasoningStartedAt;
@@ -127,17 +64,33 @@ export class TranscriptModel {
127
64
  */
128
65
  thoughtSeq = 0;
129
66
  liveReasoningId;
67
+ /** The call-to-row bookkeeping tool events share, told the clock and the rows this model holds. */
68
+ calls;
130
69
  constructor(presenter,
131
- /** Clock for "how long has this been thinking"; injected so a test can pin it. */
132
- now = () => Date.now()) {
133
- this.presenter = presenter;
134
- this.now = now;
70
+ /**
71
+ * Clock for "how long has this been thinking or running"; injected so a test
72
+ * can pin it and reachable through {@link now} so a renderer keys its rows
73
+ * to the same one.
74
+ */
75
+ clock = () => Date.now()) {
76
+ this.clock = clock;
77
+ this.calls = new ToolCallFold(presenter, clock, index => this.cardAt(index));
78
+ }
79
+ /**
80
+ * The clock every duration on a row is measured with.
81
+ *
82
+ * A renderer that caches rows has to know when a running row's duration would
83
+ * have changed, and reading the same clock the fold timed the call with is the
84
+ * only way for the number on screen and the cache key to agree.
85
+ */
86
+ now() {
87
+ return this.clock();
135
88
  }
136
89
  /** Rows to render: settled rows, the in-flight reasoning, then the in-flight text. */
137
90
  entries() {
138
91
  const entries = [...this.settled];
139
92
  if (this.liveReasoning !== '') {
140
- const ranFor = this.reasoningStartedAt === undefined ? undefined : this.now() - this.reasoningStartedAt;
93
+ const ranFor = this.reasoningStartedAt === undefined ? undefined : this.clock() - this.reasoningStartedAt;
141
94
  entries.push({
142
95
  kind: 'reasoning',
143
96
  // The live row and the row it settles into share an id, so a click made
@@ -162,17 +115,25 @@ export class TranscriptModel {
162
115
  settledCount() {
163
116
  return this.settled.length;
164
117
  }
118
+ /**
119
+ * How long one call has been in flight, or that it is not.
120
+ *
121
+ * The call fold owns the request-to-result window, so a renderer asks here
122
+ * rather than timing the row itself: a row read twice in one frame would
123
+ * otherwise report two durations for one call.
124
+ */
125
+ liveCall(callId) {
126
+ return this.calls.liveCall(callId);
127
+ }
165
128
  /** Whether any row exists, so a caller can decide to clear or redraw. */
166
129
  isEmpty() {
167
130
  return this.settled.length === 0 && this.live === '' && this.liveReasoning === '';
168
131
  }
169
132
  reset() {
170
133
  this.settled.length = 0;
171
- this.pending.clear();
172
- // The sub-call bookkeeping names rows of the fold being dropped, so it goes
173
- // with them: an index kept across the reset would refuse a replayed call the
174
- // row it is entitled to.
175
- this.pendingSub.clear();
134
+ // The call fold's records name rows of the transcript being dropped, so the
135
+ // fold is reset with it rather than left holding stale row indices.
136
+ this.calls.reset();
176
137
  this.live = '';
177
138
  this.liveReasoning = '';
178
139
  this.liveReasoningId = undefined;
@@ -200,7 +161,7 @@ export class TranscriptModel {
200
161
  case 'reasoning-delta':
201
162
  if (typeof record.text !== 'string')
202
163
  return;
203
- this.reasoningStartedAt ??= this.now();
164
+ this.reasoningStartedAt ??= this.clock();
204
165
  this.liveReasoningId ??= String(++this.thoughtSeq);
205
166
  this.liveReasoning += record.text;
206
167
  // A live thought is not bounded until the block it belongs to ends, and
@@ -274,7 +235,7 @@ export class TranscriptModel {
274
235
  if (this.liveReasoning === '')
275
236
  return;
276
237
  const text = this.liveReasoning;
277
- const ranFor = this.reasoningStartedAt === undefined ? undefined : this.now() - this.reasoningStartedAt;
238
+ const ranFor = this.reasoningStartedAt === undefined ? undefined : this.clock() - this.reasoningStartedAt;
278
239
  this.liveReasoning = '';
279
240
  this.reasoningStartedAt = undefined;
280
241
  this.paintReasoning(text, ranFor);
@@ -354,179 +315,31 @@ export class TranscriptModel {
354
315
  this.settled.push({ kind: 'assistant', text });
355
316
  return;
356
317
  }
357
- case 'tool/call': {
358
- const name = typeof data.name === 'string' ? data.name : 'tool';
359
- const argumentsJson = typeof data.arguments === 'string' ? data.arguments : '';
360
- const callId = typeof data.callId === 'string' ? data.callId : '';
361
- const card = this.presenter?.call(name, argumentsJson);
362
- this.settled.push({
363
- kind: 'tool',
364
- // The id is what keeps a reader's click on this message after the
365
- // result replaces the card: the entry object does not survive, the id does.
366
- id: callId,
367
- // Without a presenter the row still has to say what ran and with what.
368
- card: card ?? cardFromLines('generic', name, name, argumentsJson === '' ? [] : argumentsJson.split('\n'), false),
369
- });
370
- if (callId !== '')
371
- this.pending.set(callId, { name, argumentsJson, index: this.settled.length - 1, subs: [] });
372
- return;
373
- }
374
- case 'tool/ptc-dispatch-start': {
375
- this.applySubCall(data, false);
376
- return;
377
- }
378
- case 'tool/ptc-dispatch': {
379
- this.applySubCall(data, true);
380
- return;
381
- }
318
+ case 'tool/call':
319
+ case 'tool/ptc-dispatch-start':
320
+ case 'tool/ptc-dispatch':
382
321
  case 'tool/result': {
383
- this.settleToolResult(data);
322
+ // Tool events are the only rows drawn before they are finished, so they
323
+ // are folded where that bookkeeping lives and the rows come back here,
324
+ // where reading order and row indices are owned.
325
+ this.commit(this.calls.apply(event.type, data, this.settled.length));
384
326
  return;
385
327
  }
386
328
  default:
387
329
  return;
388
330
  }
389
331
  }
390
- /**
391
- * Fold one nested PTC call onto the card of the run_code call that dispatched it.
392
- *
393
- * Dispatches are logged while the program runs, so the root is still pending;
394
- * a dispatch whose root is not in this fold belongs to a window that starts
395
- * mid-run, and attaching it to another card would claim a call that card
396
- * never made.
397
- */
398
- applySubCall(data, settled) {
399
- const rootCallId = typeof data.rootCallId === 'string' ? data.rootCallId : '';
400
- const subCallId = typeof data.subCallId === 'string' ? data.subCallId : '';
401
- const root = rootCallId === '' ? undefined : this.pending.get(rootCallId);
402
- if (root === undefined || subCallId === '')
403
- return;
404
- const entry = this.settled[root.index];
405
- const card = entry !== undefined && entry.kind === 'tool' ? entry.card : undefined;
406
- if (card === undefined)
407
- return;
408
- const name = typeof data.name === 'string' ? data.name : 'tool';
409
- const argumentsJson = argumentsJsonOf(data.arguments);
410
- // The call's own view is asked for once: it names the row and it is what the
411
- // row shows of the call itself, so two asks could disagree about one call.
412
- const view = this.presenter?.call(name, argumentsJson);
413
- const isError = data.isError === true;
414
- const output = settled ? this.subCallOutcome(name, argumentsJson, data, view) : undefined;
415
- const known = this.pendingSub.get(subCallId);
416
- if (known !== undefined) {
417
- // A settle restates the row its start drew: it adds the outcome a reader
418
- // opens the row for, and a failure takes back what the call only declared.
419
- if (!settled || known.childIndex < 0)
420
- return;
421
- if (!isError && output === undefined)
422
- return;
423
- const subCalls = (card.subCalls ?? []).map((call, at) => at === known.childIndex
424
- ? this.settledSubCall(call, isError, output)
425
- : call);
426
- this.settled[root.index] = { kind: 'tool', id: rootCallId, card: { ...card, subCalls } };
427
- return;
428
- }
429
- const presented = subCallRows(view);
430
- const failed = settled && isError;
431
- const call = {
432
- ...subCallOf(subCallId, name, argumentsJson, view),
433
- failed,
434
- ...(presented === undefined || failed ? {} : { presented }),
435
- ...(output === undefined ? {} : { output }),
436
- };
437
- const kept = card.subCalls ?? [];
438
- const total = (card.subCallsTotal ?? 0) + 1;
439
- if (kept.length >= SUBCALL_MAX) {
440
- // Retention keeps the head, where the calls that shaped the program are;
441
- // the count still reports everything it dispatched. The id is remembered
442
- // so a settle is not counted twice, and listed on the root so the root's
443
- // own cleanup forgets it — an overflow row has no row to clean up after.
444
- this.pendingSub.set(subCallId, { rootIndex: root.index, childIndex: -1 });
445
- root.subs.push(subCallId);
446
- this.settled[root.index] = { kind: 'tool', id: rootCallId, card: { ...card, subCallsTotal: total } };
447
- return;
448
- }
449
- root.subs.push(subCallId);
450
- this.pendingSub.set(subCallId, { rootIndex: root.index, childIndex: kept.length });
451
- this.settled[root.index] = { kind: 'tool', id: rootCallId, card: { ...card, subCalls: [...kept, call], subCallsTotal: total } };
332
+ /** Commit the rows the call fold drew: appends in order, replacements in place. */
333
+ commit(outcome) {
334
+ for (const entry of outcome.appends)
335
+ this.settled.push(entry);
336
+ for (const { index, entry } of outcome.replacements)
337
+ this.settled[index] = entry;
452
338
  }
453
- /**
454
- * The row a settle leaves behind, once the outcome the call produced is known.
455
- *
456
- * A row that failed keeps only what still holds: its declared change never
457
- * happened, so those rows go with the outcome that never came, while the
458
- * outcome stays because the reason it failed is what a reader opens it to read.
459
- */
460
- settledSubCall(call, isError, output) {
461
- const outcome = output === undefined ? {} : { output };
462
- if (!isError)
463
- return { ...call, ...outcome };
464
- return {
465
- id: call.id,
466
- title: call.title,
467
- ...(call.argument === undefined ? {} : { argument: call.argument }),
468
- failed: true,
469
- ...outcome,
470
- };
471
- }
472
- /**
473
- * The outcome a dispatched call opens to, from the view its result presented.
474
- *
475
- * A presenter can only rebuild the view it declared when the logged content is
476
- * enough for it: a shell's output is, while a read's numbered window and a
477
- * search's hits live in the metadata a dispatch does not carry. The fallback is
478
- * the content the program was actually shown, so a row whose tool cannot be
479
- * re-presented still opens to its outcome rather than to nothing.
480
- */
481
- subCallOutcome(name, argumentsJson, data, view) {
482
- const failed = data.isError === true;
483
- const card = this.presenter?.result(name, { argumentsJson, content: data.content, isError: failed, meta: data.meta })
484
- ?? cardFromLines(view?.kind ?? 'generic', name, view?.title ?? name, contentLines(data.content), failed);
485
- return subCallRows(card);
486
- }
487
- settleToolResult(data) {
488
- const message = asRecord(data.message);
489
- const firstBlock = Array.isArray(message?.content) ? asRecord(message.content[0]) : undefined;
490
- const callId = typeof firstBlock?.toolCallId === 'string' ? firstBlock.toolCallId : '';
491
- const pending = callId === '' ? undefined : this.pending.get(callId);
492
- if (callId !== '')
493
- this.pending.delete(callId);
494
- // The root is done dispatching, so its bookkeeping goes with it; the rows it
495
- // already drew stay on the card.
496
- if (pending !== undefined)
497
- for (const sub of pending.subs)
498
- this.pendingSub.delete(sub);
499
- const name = pending?.name ?? 'tool';
500
- const isError = message?.isError === true;
501
- const result = this.presenter?.result(name, {
502
- argumentsJson: pending?.argumentsJson ?? '',
503
- content: message?.content,
504
- isError,
505
- meta: data.meta,
506
- });
507
- if (pending === undefined) {
508
- // No matching call in this fold: a resumed transcript may start mid-call.
509
- this.settled.push({
510
- kind: 'tool',
511
- id: callId,
512
- card: result ?? cardFromLines('generic', name, name, contentLinesOf(message?.content), isError),
513
- });
514
- return;
515
- }
516
- const previous = this.settled[pending.index];
517
- const call = previous !== undefined && previous.kind === 'tool' ? previous.card : undefined;
518
- if (result === undefined) {
519
- // No presenter answered: the model-facing content is still what happened,
520
- // and a reader without it would see a tool row that never reported back.
521
- const reported = contentLinesOf(message?.content);
522
- const base = call ?? cardFromLines('generic', name, name, [], false);
523
- const rebuilt = reported.length === 0
524
- ? { ...base, failed: isError }
525
- : { ...cardFromLines(base.kind, base.tool, base.title, reported, isError), ...carriedFields(base) };
526
- this.settled[pending.index] = { kind: 'tool', id: callId, card: rebuilt };
527
- return;
528
- }
529
- this.settled[pending.index] = { kind: 'tool', id: callId, card: mergeCards(call, { ...result, failed: isError }) };
339
+ /** The card a settled tool row holds, so the call fold can restate a row it drew earlier. */
340
+ cardAt(index) {
341
+ const entry = this.settled[index];
342
+ return entry !== undefined && entry.kind === 'tool' ? entry.card : undefined;
530
343
  }
531
344
  }
532
345
  //# sourceMappingURL=transcript.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transcript.js","sourceRoot":"","sources":["../src/transcript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE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A6F;IACrF,MAAM,CAAC,KAAa;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QACjC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;IAC9E,CAAC;CACF"}
@@ -0,0 +1,17 @@
1
+ import type { FrameRow } from './frame.ts';
2
+ /**
3
+ * Read a copied selection back out of the rows the surface drew.
4
+ *
5
+ * A terminal copies the screen, so a reader who drags across a message takes the
6
+ * frame the surface drew around it as well: the sides, the padding between a side
7
+ * and the words, and the rules above and below. None of that is the reader's text
8
+ * and none of it was asked for, so a copy is read back through the account the
9
+ * surface kept of its own drawing — a row it recognises gives up its text, a row
10
+ * that is frame alone is dropped, and a line it cannot place is handed back
11
+ * exactly as the terminal gave it. Copying is no place to be clever: the frame is
12
+ * only ever removed, never rewritten, so the worst a copy can lose is the shape
13
+ * the reader was trying to get rid of — and a selection that was nothing but frame
14
+ * comes back as it read, because a copy is never emptied.
15
+ */
16
+ export declare function cleanCopied(text: string, rows: readonly FrameRow[]): string;
17
+ //# sourceMappingURL=copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/ui/copy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE1C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,QAAQ,EAAE,GAAG,MAAM,CAc3E"}
package/lib/ui/copy.js ADDED
@@ -0,0 +1,104 @@
1
+ import { sliceByColumn, visibleWidth } from '@earendil-works/pi-tui';
2
+ /**
3
+ * Read a copied selection back out of the rows the surface drew.
4
+ *
5
+ * A terminal copies the screen, so a reader who drags across a message takes the
6
+ * frame the surface drew around it as well: the sides, the padding between a side
7
+ * and the words, and the rules above and below. None of that is the reader's text
8
+ * and none of it was asked for, so a copy is read back through the account the
9
+ * surface kept of its own drawing — a row it recognises gives up its text, a row
10
+ * that is frame alone is dropped, and a line it cannot place is handed back
11
+ * exactly as the terminal gave it. Copying is no place to be clever: the frame is
12
+ * only ever removed, never rewritten, so the worst a copy can lose is the shape
13
+ * the reader was trying to get rid of — and a selection that was nothing but frame
14
+ * comes back as it read, because a copy is never emptied.
15
+ */
16
+ export function cleanCopied(text, rows) {
17
+ if (text === '' || rows.length === 0)
18
+ return text;
19
+ const whole = byText(rows);
20
+ const kept = [];
21
+ for (const line of text.split('\n')) {
22
+ const read = readLine(line, rows, whole);
23
+ // A rule is not a line of text: a selection that crossed one loses the row
24
+ // rather than gaining an empty line where it stood.
25
+ if (read !== undefined)
26
+ kept.push(read);
27
+ }
28
+ // Every line was frame, so there was no text to keep. Handing the selection back
29
+ // is the one answer that loses nothing: dropping it would clear a clipboard the
30
+ // reader never asked to have cleared.
31
+ return kept.length === 0 ? text : kept.join('\n');
32
+ }
33
+ /**
34
+ * The rows a whole copied line can match, keyed by the text that line carries.
35
+ *
36
+ * A copy comes back trimmed, so a row that is all text matches on its trimmed
37
+ * form. Built once per copy: a long transcript has one row per message line, and
38
+ * reading each copied line against all of them would trim the whole transcript
39
+ * again for every line the reader selected.
40
+ */
41
+ function byText(rows) {
42
+ const index = new Map();
43
+ for (const row of rows) {
44
+ const text = row.drawn.trimEnd();
45
+ // The first row wins, so the same line is read the same way twice.
46
+ if (!index.has(text))
47
+ index.set(text, row);
48
+ }
49
+ return index;
50
+ }
51
+ /** One copied line as the row it came from says it should read, or nothing when it came from the frame. */
52
+ function readLine(line, rows, whole) {
53
+ // A blank line is a blank line: no row of a frame reads as nothing, so there is
54
+ // nothing here to recognise, and nothing to take away.
55
+ if (line === '')
56
+ return line;
57
+ const hit = locate(line, rows, whole);
58
+ if (hit === undefined)
59
+ return line;
60
+ const drawn = hit.row.drawn;
61
+ const frame = hit.row.frame;
62
+ if (frame === undefined) {
63
+ // A rule is the frame itself: the reader selected the shape, not any text. The
64
+ // whole row is that shape, and so is a piece of one that runs to either end —
65
+ // which is what a drag across the frame leaves above and below a message. A
66
+ // line that merely reads like the middle of a rule came from somewhere else,
67
+ // and nothing here is entitled to take it away.
68
+ if (hit.whole)
69
+ return undefined;
70
+ const end = hit.column + visibleWidth(line);
71
+ return hit.column === 0 || end >= visibleWidth(drawn) ? undefined : line;
72
+ }
73
+ const own = sliceByColumn(drawn, frame.lead, Math.max(0, visibleWidth(drawn) - frame.lead - frame.trail));
74
+ // A drag selects columns, so the first and last rows of a selection arrive as
75
+ // fragments. Reading the fragment's own columns back out of the row it came from
76
+ // is what takes the frame columns with it: the span the fragment spends inside the
77
+ // frame is not part of the text this returns, and a fragment that spent all of
78
+ // itself there was the shape and nothing more.
79
+ const from = Math.max(hit.column, frame.lead);
80
+ const to = Math.min(hit.column + visibleWidth(line), visibleWidth(drawn) - frame.trail);
81
+ if (to <= from)
82
+ return undefined;
83
+ return sliceByColumn(own, from - frame.lead, to - from, true).trimEnd();
84
+ }
85
+ /**
86
+ * The row a copied line came from: the row that reads exactly as the line does,
87
+ * or else the one row holding it as a fragment.
88
+ */
89
+ function locate(line, rows, whole) {
90
+ const exact = whole.get(line);
91
+ if (exact !== undefined)
92
+ return { row: exact, column: 0, whole: true };
93
+ for (const row of rows) {
94
+ const offset = row.drawn.indexOf(line);
95
+ if (offset === -1)
96
+ continue;
97
+ // A fragment matches inside the row as it was drawn, which is where the frame's
98
+ // own columns are still countable: the column it began at is measured in cells,
99
+ // not characters, so a wide glyph before it costs the width it was drawn at.
100
+ return { row, column: visibleWidth(row.drawn.slice(0, offset)), whole: false };
101
+ }
102
+ return undefined;
103
+ }
104
+ //# sourceMappingURL=copy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.js","sourceRoot":"","sources":["../../src/ui/copy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY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CAAC,KAAK,CAAC,CAAA;IACvF,IAAI,EAAE,IAAI,IAAI;QAAE,OAAO,SAAS,CAAA;IAChC,OAAO,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,CAAA;AACzE,CAAC;AAED;;;GAGG;AACH,SAAS,MAAM,CAAC,IAAY,EAAE,IAAyB,EAAE,KAAoC;IAC3F,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC7B,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACtE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QACtC,IAAI,MAAM,KAAK,CAAC,CAAC;YAAE,SAAQ;QAC3B,gFAAgF;QAChF,gFAAgF;QAChF,6EAA6E;QAC7E,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IAChF,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC"}
package/lib/ui/dock.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type Component } from '@earendil-works/pi-tui';
1
+ import { type Component, type TuiMouseEvent, type TuiMouseEventResult } from '@earendil-works/pi-tui';
2
2
  import { type JobSummary } from '../jobs.ts';
3
3
  import { type SubagentRun } from '../subagents.ts';
4
4
  import type { TuiTheme } from '../theme.ts';
@@ -9,7 +9,9 @@ export declare const DOCK_TODO_LIMIT = 4;
9
9
  * The dock above the editor: what the agent is working on right now.
10
10
  *
11
11
  * It renders nothing when there is nothing to say, so a plain conversation
12
- * keeps its rows for the conversation.
12
+ * keeps its rows for the conversation. Each list it draws opens on a rule that
13
+ * names it, in that section's own hue: the dock is several boards stacked, and
14
+ * which board a row belongs to has to be readable without reading the row.
13
15
  */
14
16
  export declare class WorkDock implements Component {
15
17
  private readonly state;
@@ -20,14 +22,44 @@ export declare class WorkDock implements Component {
20
22
  private readonly subagents;
21
23
  /** Clock for elapsed times, so a frame can be pinned in a test. */
22
24
  private readonly now;
25
+ /** A child opens through the same read-only transcript path as /subagents open. */
26
+ private readonly openSubagent?;
27
+ /** A choice lasts while more than the preview's rows remain live. */
28
+ private subagentsExpanded;
29
+ /** Rendered rows delimit the section even when its heading is hidden. */
30
+ private subagentSection;
31
+ /** Text spans retain full child ids; the drawn ids may be shortened. */
32
+ private readonly subagentTexts;
23
33
  constructor(state: () => WorkState, theme: TuiTheme,
24
34
  /** Live background jobs: process state, not something a resume can replay. */
25
35
  jobs?: () => readonly JobSummary[],
26
36
  /** Delegations this session started; also live state. */
27
37
  subagents?: () => readonly SubagentRun[],
28
38
  /** Clock for elapsed times, so a frame can be pinned in a test. */
29
- now?: () => number);
39
+ now?: () => number,
40
+ /** A child opens through the same read-only transcript path as /subagents open. */
41
+ openSubagent?: ((id: string) => void) | undefined);
30
42
  invalidate(): void;
43
+ /** Text opens its child; other cells in a foldable section control that fold. */
44
+ handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
45
+ /**
46
+ * The dashed rule that opens a section, with the section's name on it.
47
+ *
48
+ * A name with no room left for a dash after it is drawn as the heading it
49
+ * would otherwise have been: a rule earns its row by being the edge of a
50
+ * list, and an edge a reader cannot tell from a name is not one.
51
+ */
52
+ private sectionRule;
53
+ /**
54
+ * One section as the dock draws it: the rule that names it, then its rows.
55
+ *
56
+ * The rows arrive already built and are pushed as they are, so a section costs
57
+ * the rows it always cost and no column of them. The name's element is what
58
+ * spends the row: a hidden rule leaves the heading it replaced, and a hidden
59
+ * name leaves the section exactly as it stood before the sections were edged —
60
+ * a rule with no name to carry would be an edge that says nothing.
61
+ */
62
+ private pushSection;
31
63
  private pushTodos;
32
64
  private pushSubagents;
33
65
  private pushJobs;
@@ -1 +1 @@
1
- {"version":3,"file":"dock.d.ts","sourceRoot":"","sources":["../../src/ui/dock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,EAAuC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AACjF,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAEzF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAa,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtD,mEAAmE;AACnE,eAAO,MAAM,eAAe,IAAI,CAAA;AAsChC;;;;;GAKG;AACH,qBAAa,QAAS,YAAW,SAAS;IAEtC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,yDAAyD;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,mEAAmE;IACnE,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAPH,KAAK,EAAE,MAAM,SAAS,EACtB,KAAK,EAAE,QAAQ;IAChC,8EAA8E;IAC7D,IAAI,GAAE,MAAM,SAAS,UAAU,EAAa;IAC7D,yDAAyD;IACxC,SAAS,GAAE,MAAM,SAAS,WAAW,EAAa;IACnE,mEAAmE;IAClD,GAAG,GAAE,MAAM,MAAyB;IAGvD,UAAU,IAAI,IAAI;IAIlB,OAAO,CAAC,SAAS;IAqBjB,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,QAAQ;IAqBhB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CA2BhC"}
1
+ {"version":3,"file":"dock.d.ts","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