basalt-ui 1.11.0 → 1.12.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 (237) hide show
  1. package/AGENTS.md +21 -21
  2. package/CHANGELOG.md +15 -0
  3. package/README.md +36 -27
  4. package/agent/rules/basalt-content.md +16 -3
  5. package/dist/agent/adapter.d.ts +146 -0
  6. package/dist/agent/adapter.d.ts.map +1 -0
  7. package/dist/agent/adapter.js +473 -0
  8. package/dist/agent/adapter.test.d.ts +2 -0
  9. package/dist/agent/adapter.test.d.ts.map +1 -0
  10. package/dist/agent/ai-sdk-transport.test.d.ts +2 -0
  11. package/dist/agent/ai-sdk-transport.test.d.ts.map +1 -0
  12. package/dist/agent/coalesce.d.ts +20 -4
  13. package/dist/agent/coalesce.d.ts.map +1 -1
  14. package/dist/agent/coalesce.js +76 -8
  15. package/dist/agent/coalesce.test.d.ts +2 -0
  16. package/dist/agent/coalesce.test.d.ts.map +1 -0
  17. package/dist/agent/foreign.test.d.ts +2 -0
  18. package/dist/agent/foreign.test.d.ts.map +1 -0
  19. package/dist/agent/id.d.ts +30 -0
  20. package/dist/agent/id.d.ts.map +1 -1
  21. package/dist/agent/id.js +16 -0
  22. package/dist/agent/id.test.d.ts +2 -0
  23. package/dist/agent/id.test.d.ts.map +1 -0
  24. package/dist/agent/index.d.ts +2 -0
  25. package/dist/agent/index.d.ts.map +1 -1
  26. package/dist/agent/index.js +3 -0
  27. package/dist/agent/merge.d.ts.map +1 -1
  28. package/dist/agent/merge.js +19 -7
  29. package/dist/agent/merge.test.d.ts +2 -0
  30. package/dist/agent/merge.test.d.ts.map +1 -0
  31. package/dist/agent/part-list.d.ts +49 -34
  32. package/dist/agent/part-list.d.ts.map +1 -1
  33. package/dist/agent/part-list.js +42 -6
  34. package/dist/agent/part-list.test.d.ts +2 -0
  35. package/dist/agent/part-list.test.d.ts.map +1 -0
  36. package/dist/agent/parts.d.ts +46 -10
  37. package/dist/agent/parts.d.ts.map +1 -1
  38. package/dist/agent/parts.js +16 -6
  39. package/dist/agent/parts.test.d.ts +2 -0
  40. package/dist/agent/parts.test.d.ts.map +1 -0
  41. package/dist/agent/thread.d.ts +14 -0
  42. package/dist/agent/thread.d.ts.map +1 -1
  43. package/dist/agent/thread.js +8 -2
  44. package/dist/agent/thread.test.d.ts +2 -0
  45. package/dist/agent/thread.test.d.ts.map +1 -0
  46. package/dist/agent/transport.test.d.ts +2 -0
  47. package/dist/agent/transport.test.d.ts.map +1 -0
  48. package/dist/agent/use-agent-stream.test.d.ts +2 -0
  49. package/dist/agent/use-agent-stream.test.d.ts.map +1 -0
  50. package/dist/agent/use-agent-thread-runs.foreign.test.d.ts +2 -0
  51. package/dist/agent/use-agent-thread-runs.foreign.test.d.ts.map +1 -0
  52. package/dist/agent/use-agent-thread-runs.resume.test.d.ts +2 -0
  53. package/dist/agent/use-agent-thread-runs.resume.test.d.ts.map +1 -0
  54. package/dist/agent/use-agent-thread-runs.test.d.ts +2 -0
  55. package/dist/agent/use-agent-thread-runs.test.d.ts.map +1 -0
  56. package/dist/agent/use-agent-thread-runs.wedge.test.d.ts +2 -0
  57. package/dist/agent/use-agent-thread-runs.wedge.test.d.ts.map +1 -0
  58. package/dist/agent-chat/composer.d.ts +130 -8
  59. package/dist/agent-chat/composer.d.ts.map +1 -1
  60. package/dist/agent-chat/composer.js +189 -23
  61. package/dist/agent-chat/composer.test.d.ts +2 -0
  62. package/dist/agent-chat/composer.test.d.ts.map +1 -0
  63. package/dist/agent-chat/index.d.ts +1 -1
  64. package/dist/agent-chat/index.d.ts.map +1 -1
  65. package/dist/agent-chat/thread-detail-panel.d.ts.map +1 -1
  66. package/dist/agent-chat/thread-detail-panel.js +1 -1
  67. package/dist/agent-chat/thread-message.d.ts.map +1 -1
  68. package/dist/agent-chat/thread-message.js +14 -3
  69. package/dist/agent-chat/thread-message.test.d.ts +2 -0
  70. package/dist/agent-chat/thread-message.test.d.ts.map +1 -0
  71. package/dist/agent-chat/thread-workspace.js +1 -1
  72. package/dist/agent-chat/tool-chip.test.d.ts +2 -0
  73. package/dist/agent-chat/tool-chip.test.d.ts.map +1 -0
  74. package/dist/charts/primitives/ChartFrame.test.d.ts +2 -0
  75. package/dist/charts/primitives/ChartFrame.test.d.ts.map +1 -0
  76. package/dist/charts/utils/domain.test.d.ts +2 -0
  77. package/dist/charts/utils/domain.test.d.ts.map +1 -0
  78. package/dist/cli/check-theme.test.d.ts +2 -0
  79. package/dist/cli/check-theme.test.d.ts.map +1 -0
  80. package/dist/cli/help.test.d.ts +2 -0
  81. package/dist/cli/help.test.d.ts.map +1 -0
  82. package/dist/cli/index.d.ts.map +1 -1
  83. package/dist/cli/init-sync.test.d.ts +2 -0
  84. package/dist/cli/init-sync.test.d.ts.map +1 -0
  85. package/dist/cli/placement-engine.test.d.ts +2 -0
  86. package/dist/cli/placement-engine.test.d.ts.map +1 -0
  87. package/dist/cli/tarball-parity.test.d.ts +2 -0
  88. package/dist/cli/tarball-parity.test.d.ts.map +1 -0
  89. package/dist/cli/template-format.test.d.ts +2 -0
  90. package/dist/cli/template-format.test.d.ts.map +1 -0
  91. package/dist/cli/template-ledger.test.d.ts +2 -0
  92. package/dist/cli/template-ledger.test.d.ts.map +1 -0
  93. package/dist/cli/tokens-css.test.d.ts +2 -0
  94. package/dist/cli/tokens-css.test.d.ts.map +1 -0
  95. package/dist/content/article-actions.test.d.ts +2 -0
  96. package/dist/content/article-actions.test.d.ts.map +1 -0
  97. package/dist/content/article-model.test.d.ts +2 -0
  98. package/dist/content/article-model.test.d.ts.map +1 -0
  99. package/dist/content/block-split.test.d.ts +2 -0
  100. package/dist/content/block-split.test.d.ts.map +1 -0
  101. package/dist/content/fence-block.d.ts +37 -10
  102. package/dist/content/fence-block.d.ts.map +1 -1
  103. package/dist/content/fence-block.js +80 -14
  104. package/dist/content/heading-components.d.ts.map +1 -1
  105. package/dist/content/heading-components.js +7 -4
  106. package/dist/content/heading-components.test.d.ts +2 -0
  107. package/dist/content/heading-components.test.d.ts.map +1 -0
  108. package/dist/content/index.d.ts +6 -3
  109. package/dist/content/index.d.ts.map +1 -1
  110. package/dist/content/index.js +5 -1
  111. package/dist/content/markdown.d.ts +101 -14
  112. package/dist/content/markdown.d.ts.map +1 -1
  113. package/dist/content/markdown.js +141 -28
  114. package/dist/content/markdown.test.d.ts +2 -0
  115. package/dist/content/markdown.test.d.ts.map +1 -0
  116. package/dist/content/prose.module.css.test.d.ts +2 -0
  117. package/dist/content/prose.module.css.test.d.ts.map +1 -0
  118. package/dist/content/sanitize.d.ts +170 -0
  119. package/dist/content/sanitize.d.ts.map +1 -0
  120. package/dist/content/sanitize.js +178 -0
  121. package/dist/content/sanitize.test.d.ts +2 -0
  122. package/dist/content/sanitize.test.d.ts.map +1 -0
  123. package/dist/content/slug.test.d.ts +2 -0
  124. package/dist/content/slug.test.d.ts.map +1 -0
  125. package/dist/dashboard/stat-card.test.d.ts +2 -0
  126. package/dist/dashboard/stat-card.test.d.ts.map +1 -0
  127. package/dist/guard/check-source.test.d.ts +2 -0
  128. package/dist/guard/check-source.test.d.ts.map +1 -0
  129. package/dist/guard/guard-hook.test.d.ts +2 -0
  130. package/dist/guard/guard-hook.test.d.ts.map +1 -0
  131. package/dist/index.d.ts +3 -3
  132. package/dist/index.d.ts.map +1 -1
  133. package/dist/index.js +9 -1
  134. package/dist/provider/index.test.d.ts +2 -0
  135. package/dist/provider/index.test.d.ts.map +1 -0
  136. package/dist/provider/lab-theme.test.d.ts +2 -0
  137. package/dist/provider/lab-theme.test.d.ts.map +1 -0
  138. package/dist/router-tanstack/multi-search-param-store.test.d.ts +2 -0
  139. package/dist/router-tanstack/multi-search-param-store.test.d.ts.map +1 -0
  140. package/dist/styles.floor.test.d.ts +2 -0
  141. package/dist/styles.floor.test.d.ts.map +1 -0
  142. package/dist/surfaces.d.ts +4 -4
  143. package/dist/surfaces.d.ts.map +1 -1
  144. package/dist/surfaces.js +12 -3
  145. package/dist/theme/border-coverage.test.d.ts +18 -0
  146. package/dist/theme/border-coverage.test.d.ts.map +1 -0
  147. package/dist/theme/contrast.test.d.ts +2 -0
  148. package/dist/theme/contrast.test.d.ts.map +1 -0
  149. package/dist/theme/density-option.test.d.ts +2 -0
  150. package/dist/theme/density-option.test.d.ts.map +1 -0
  151. package/dist/theme/density-relations.test.d.ts +2 -0
  152. package/dist/theme/density-relations.test.d.ts.map +1 -0
  153. package/dist/theme/derive-theme.test.d.ts +2 -0
  154. package/dist/theme/derive-theme.test.d.ts.map +1 -0
  155. package/dist/theme/fonts-option.test.d.ts +2 -0
  156. package/dist/theme/fonts-option.test.d.ts.map +1 -0
  157. package/dist/theme/radius-option.test.d.ts +2 -0
  158. package/dist/theme/radius-option.test.d.ts.map +1 -0
  159. package/dist/theme/radius.test.d.ts +2 -0
  160. package/dist/theme/radius.test.d.ts.map +1 -0
  161. package/dist/theme/shadow-surfaces.test.d.ts +26 -0
  162. package/dist/theme/shadow-surfaces.test.d.ts.map +1 -0
  163. package/dist/theme/spacing.test.d.ts +2 -0
  164. package/dist/theme/spacing.test.d.ts.map +1 -0
  165. package/dist/theme/use-basalt-spacing.test.d.ts +2 -0
  166. package/dist/theme/use-basalt-spacing.test.d.ts.map +1 -0
  167. package/dist/theme-lab/derive-controls.test.d.ts +2 -0
  168. package/dist/theme-lab/derive-controls.test.d.ts.map +1 -0
  169. package/dist/theme-lab/derive-state.test.d.ts +2 -0
  170. package/dist/theme-lab/derive-state.test.d.ts.map +1 -0
  171. package/dist/theme-lab/theme-lab.test.d.ts +2 -0
  172. package/dist/theme-lab/theme-lab.test.d.ts.map +1 -0
  173. package/dist/tokens/build-fonts-css.test.d.ts +2 -0
  174. package/dist/tokens/build-fonts-css.test.d.ts.map +1 -0
  175. package/dist/tokens/build-radius-css.test.d.ts +2 -0
  176. package/dist/tokens/build-radius-css.test.d.ts.map +1 -0
  177. package/dist/tokens/density.test.d.ts +2 -0
  178. package/dist/tokens/density.test.d.ts.map +1 -0
  179. package/dist/tokens/derive-radius.test.d.ts +2 -0
  180. package/dist/tokens/derive-radius.test.d.ts.map +1 -0
  181. package/dist/tokens/derive.test.d.ts +2 -0
  182. package/dist/tokens/derive.test.d.ts.map +1 -0
  183. package/dist/tokens/palette.test.d.ts +2 -0
  184. package/dist/tokens/palette.test.d.ts.map +1 -0
  185. package/dist/vite-color-mix.test.d.ts +2 -0
  186. package/dist/vite-color-mix.test.d.ts.map +1 -0
  187. package/dist/vite.test.d.ts +2 -0
  188. package/dist/vite.test.d.ts.map +1 -0
  189. package/llms.txt +6 -6
  190. package/package.json +6 -1
  191. package/src/agent/adapter.test.ts +1403 -0
  192. package/src/agent/adapter.ts +887 -0
  193. package/src/agent/ai-sdk-transport.test.ts +53 -26
  194. package/src/agent/coalesce.test.ts +202 -9
  195. package/src/agent/coalesce.ts +126 -15
  196. package/src/agent/foreign.test.ts +5 -1
  197. package/src/agent/id.test.ts +6 -2
  198. package/src/agent/id.ts +48 -0
  199. package/src/agent/index.ts +8 -0
  200. package/src/agent/merge.test.ts +87 -0
  201. package/src/agent/merge.ts +57 -10
  202. package/src/agent/part-list.test.tsx +31 -1
  203. package/src/agent/part-list.tsx +77 -29
  204. package/src/agent/parts.test.ts +121 -4
  205. package/src/agent/parts.ts +78 -17
  206. package/src/agent/thread.test.ts +75 -2
  207. package/src/agent/thread.ts +21 -1
  208. package/src/agent/use-agent-stream.test.tsx +9 -5
  209. package/src/agent/use-agent-thread-runs.foreign.test.tsx +5 -0
  210. package/src/agent/use-agent-thread-runs.resume.test.tsx +16 -11
  211. package/src/agent/use-agent-thread-runs.test.tsx +30 -17
  212. package/src/agent/use-agent-thread-runs.wedge.test.tsx +13 -7
  213. package/src/agent-chat/composer.test.tsx +924 -0
  214. package/src/agent-chat/composer.tsx +521 -52
  215. package/src/agent-chat/index.ts +1 -1
  216. package/src/agent-chat/thread-detail-panel.tsx +3 -1
  217. package/src/agent-chat/thread-message.test.tsx +141 -1
  218. package/src/agent-chat/thread-message.tsx +29 -4
  219. package/src/agent-chat/thread-workspace.tsx +1 -1
  220. package/src/cli/index.ts +0 -1
  221. package/src/cli/template-format.test.ts +2 -2
  222. package/src/content/fence-block.tsx +242 -15
  223. package/src/content/heading-components.test.tsx +65 -0
  224. package/src/content/heading-components.tsx +26 -5
  225. package/src/content/index.ts +19 -3
  226. package/src/content/markdown.test.tsx +603 -0
  227. package/src/content/markdown.tsx +355 -35
  228. package/src/content/sanitize.test.ts +659 -0
  229. package/src/content/sanitize.ts +510 -0
  230. package/src/dashboard/stat-card.test.tsx +6 -1
  231. package/src/index.ts +13 -1
  232. package/src/surfaces.ts +12 -3
  233. package/src/theme/contrast.test.ts +1 -4
  234. package/src/theme/density-relations.test.ts +4 -2
  235. package/src/theme/fonts-option.test.ts +7 -1
  236. package/src/theme/shadow-surfaces.test.ts +12 -6
  237. package/src/theme/use-basalt-spacing.test.tsx +2 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-agent-stream.test.d.ts","sourceRoot":"","sources":["../../src/agent/use-agent-stream.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-agent-thread-runs.foreign.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-agent-thread-runs.foreign.test.d.ts","sourceRoot":"","sources":["../../src/agent/use-agent-thread-runs.foreign.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-agent-thread-runs.resume.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-agent-thread-runs.resume.test.d.ts","sourceRoot":"","sources":["../../src/agent/use-agent-thread-runs.resume.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-agent-thread-runs.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-agent-thread-runs.test.d.ts","sourceRoot":"","sources":["../../src/agent/use-agent-thread-runs.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=use-agent-thread-runs.wedge.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-agent-thread-runs.wedge.test.d.ts","sourceRoot":"","sources":["../../src/agent/use-agent-thread-runs.wedge.test.tsx"],"names":[],"mappings":""}
@@ -1,18 +1,140 @@
1
- import type { JSX } from 'react';
1
+ import type { ClipboardEvent, JSX, ReactNode, Ref } from 'react';
2
+ export type ComposerAttachment = {
3
+ readonly id: string;
4
+ readonly name: string;
5
+ readonly mediaType: string;
6
+ readonly size: number;
7
+ readonly url: string;
8
+ };
9
+ export type ComposerSubmit = {
10
+ readonly text: string;
11
+ readonly attachments: readonly ComposerAttachment[];
12
+ };
13
+ /**
14
+ * Imperative escape hatch for slot content that must write into the composer from OUTSIDE the
15
+ * render tree — a voice recorder streaming transcript chunks, a suggestion chip inserting at the
16
+ * cursor. Obtained via `ref`. Kept to exactly the three primitives that cover both real use cases
17
+ * (every method here is API surface fixed for a major, so this is deliberately not more):
18
+ *
19
+ * - `insertText` — the one write primitive. Inserts at the CURRENT SELECTION, replacing it if
20
+ * non-collapsed, so a mid-speech voice chunk lands where the caret is and a suggestion never
21
+ * clobbers a selection the user made on purpose. See its own doc for what "current selection"
22
+ * means when the textarea isn't focused.
23
+ * - `setValue` — a whole-value replace (loading a canned reply, discarding the draft), for when
24
+ * there is no meaningful selection to insert around.
25
+ * - `focus` — hands focus back to the textarea (e.g. once a recorder finishes).
26
+ *
27
+ * All three write through the SAME draft store `onChange` does — same `draftKey` persistence,
28
+ * same subscriber notification, same value the existing submit/clear/restore logic already sees.
29
+ * There is no second source of truth.
30
+ *
31
+ * A slot control that inserts at the caret must not steal focus first. A plain `<button>` in
32
+ * `leftSection`/`rightSection` blurs the textarea on mousedown, which collapses the selection before
33
+ * `onClick` runs — so every insert silently lands at the end and the at-caret path is unreachable by
34
+ * mouse. Suppress it on the control, not here:
35
+ *
36
+ * ```tsx
37
+ * <ActionIcon onMouseDown={(e) => e.preventDefault()} onClick={record}>
38
+ * ```
39
+ */
40
+ export type ComposerHandle = {
41
+ /**
42
+ * Inserts `text` at the textarea's current selection, replacing it if non-collapsed, then moves
43
+ * the caret to just after the inserted text.
44
+ *
45
+ * "Current selection" only exists while the textarea IS the focused element — a `<textarea>`'s
46
+ * `selectionStart`/`selectionEnd` are not a reliable caret once focus has moved elsewhere, so:
47
+ * - **focused, collapsed caret**: inserts at that caret position.
48
+ * - **focused, with a range selected**: replaces the selected range (never inserted alongside
49
+ * it — that would silently keep text the user was in the middle of deleting).
50
+ * - **not focused, including never focused**: appends to the end of the current value. This is
51
+ * the safe default for a voice recorder streaming chunks before the user has clicked into
52
+ * the box at all.
53
+ */
54
+ readonly insertText: (text: string) => void;
55
+ /** Replaces the whole draft value and moves the caret to the end. */
56
+ readonly setValue: (value: string) => void;
57
+ /** Focuses the textarea. */
58
+ readonly focus: () => void;
59
+ };
2
60
  export type ComposerProps = {
3
- /** Called with the trimmed, non-empty text on submit. The input is cleared afterward. */
4
- readonly onSubmit: (text: string) => void;
5
- /** Disables the textarea and the send action (e.g. while a run is streaming). */
6
- readonly disabled?: boolean;
61
+ /** Imperative write/focus handle — see `ComposerHandle`. */
62
+ readonly ref?: Ref<ComposerHandle>;
63
+ /**
64
+ * Called with the trimmed text plus the pending attachments. May return `void` (fire-and-forget,
65
+ * validated only synchronously) or a `Promise<void>` (its outcome is awaited, its timing is not).
66
+ *
67
+ * The draft and attachments clear OPTIMISTICALLY, immediately, before this settles — a chat
68
+ * composer has to feel instant, so Composer never sits on the typed text for a round trip.
69
+ * Rejecting restores them instead:
70
+ * - THROW synchronously to refuse a send outright (bad input, offline, …) — the clear never
71
+ * runs, exactly as before this prop went async.
72
+ * - Return a promise that REJECTS to report a failure discovered later (a network error) — the
73
+ * text and attachments are put back, UNLESS something has since made that unsafe:
74
+ * - the user already typed something new into the (now-empty) box — their new text wins;
75
+ * the failed one is not restored (surface a retry via the failed message instead);
76
+ * - a LATER submit has already gone through this same draft — that one's own optimistic
77
+ * clear (whether it went on to succeed or fail) wins over restoring this older one;
78
+ * - the attachments are no longer empty (the caller already put something else there), or
79
+ * `draftKey` has since changed (this Composer now points at a different thread/consumer
80
+ * destination) — either way the attachments are left as they are rather than risking a
81
+ * leak into whatever is current now.
82
+ * A resolved promise clears and stays cleared, same as a `void` return.
83
+ */
84
+ readonly onSubmit: (payload: ComposerSubmit) => void | Promise<void>;
7
85
  readonly placeholder?: string;
8
86
  /** Autofocuses the textarea on mount. */
9
87
  readonly autoFocus?: boolean;
88
+ /** Autosize ceiling for the textarea. Default 6. */
89
+ readonly maxRows?: number;
90
+ /** Hard-disable, independent of streaming (e.g. offline). */
91
+ readonly disabled?: boolean;
92
+ /** A run is in flight on this thread. */
93
+ readonly streaming?: boolean;
94
+ /** Default false — preserves the historical `disabled={streaming}` behaviour. */
95
+ readonly allowSubmitWhileStreaming?: boolean;
96
+ /** When given, the send action becomes a Stop action while `streaming`. */
97
+ readonly onStop?: () => void;
98
+ /**
99
+ * Opaque slot rendered before the textarea (a voice recorder, a mode switch, …). Slot content
100
+ * that needs to WRITE into the composer — append a transcript, insert a suggestion — does so
101
+ * through the `ref` handle (`ComposerHandle`), not a callback prop here; see the file's
102
+ * `@example`.
103
+ */
104
+ readonly leftSection?: ReactNode;
105
+ /** Opaque slot rendered between the textarea and the send action (an attach button, …). */
106
+ readonly rightSection?: ReactNode;
107
+ /**
108
+ * Pending attachments, owned by the caller. Composer only forwards them on submit and asks for a
109
+ * reset afterwards — rendering previews is the caller's job, via `leftSection`/`rightSection`.
110
+ */
111
+ readonly attachments?: readonly ComposerAttachment[];
112
+ /**
113
+ * Called with `[]` optimistically the instant a submit goes out WITH pending attachments — a
114
+ * submit that had none to begin with skips the call rather than reporting a no-op change — and,
115
+ * subject to the restoration guards documented on `onSubmit`, with the original attachments
116
+ * again if that submit later rejects.
117
+ */
118
+ readonly onAttachmentsChange?: (next: readonly ComposerAttachment[]) => void;
119
+ readonly onPaste?: (event: ClipboardEvent<HTMLTextAreaElement>) => void;
120
+ /**
121
+ * Persists the unsent draft under `basalt:composer-draft:<key>`; switching keys swaps drafts, and
122
+ * the entry is removed (not blanked) on a successful submit.
123
+ *
124
+ * "Successful" means `onSubmit` returned (or resolved) without throwing or rejecting — a send
125
+ * that fails, synchronously or later over the network, restores this persisted draft instead of
126
+ * leaving it erased (subject to the restoration guards documented on `onSubmit`).
127
+ */
128
+ readonly draftKey?: string;
129
+ /** Replaces the whole Enter/Shift+Enter hint row. Pass `null` to drop it entirely. */
130
+ readonly hint?: ReactNode;
10
131
  };
11
132
  /**
12
- * An autosize Textarea + send ActionIcon. Enter submits, Shift+Enter inserts a newline.
133
+ * An autosize Textarea + send ActionIcon, with slots either side. Enter submits, Shift+Enter
134
+ * inserts a newline, and `draftKey` survives an unmount.
13
135
  *
14
136
  * @example
15
- * <Composer onSubmit={onSend} disabled={streaming} />
137
+ * <Composer onSubmit={({ text }) => onSend(text)} streaming={streaming} onStop={stop} />
16
138
  */
17
- export declare function Composer({ onSubmit, disabled, placeholder, autoFocus, }: ComposerProps): JSX.Element;
139
+ export declare function Composer({ ref, onSubmit, placeholder, autoFocus, maxRows, disabled, streaming, allowSubmitWhileStreaming, onStop, leftSection, rightSection, attachments, onAttachmentsChange, onPaste, draftKey, hint, }: ComposerProps): JSX.Element;
18
140
  //# sourceMappingURL=composer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"composer.d.ts","sourceRoot":"","sources":["../../src/agent-chat/composer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAkB,GAAG,EAAiB,MAAM,OAAO,CAAA;AAoB/D,MAAM,MAAM,aAAa,GAAG;IAC1B,yFAAyF;IACzF,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE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,CAAC,EACvB,GAAG,EACH,QAAQ,EACR,WAAW,EACX,SAAS,EACT,OAAW,EACX,QAAgB,EAChB,SAAiB,EACjB,yBAAiC,EACjC,MAAM,EACN,WAAW,EACX,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,IAAI,GACL,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAgO7B"}
@@ -1,6 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ActionIcon, Group, Kbd, Stack, Text, Textarea } from "@mantine/core";
3
- import { useState } from "react";
3
+ import { useImperativeHandle, useLayoutEffect, useRef, useSyncExternalStore } from "react";
4
+ import { readPersistedValue } from "../state.js";
4
5
  import { VX } from "../tokens/index.js";
5
6
  function SendGlyph() {
6
7
  return /* @__PURE__ */ jsx("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx(
@@ -14,21 +15,178 @@ function SendGlyph() {
14
15
  }
15
16
  ) });
16
17
  }
18
+ function StopGlyph() {
19
+ return /* @__PURE__ */ jsx("svg", { width: 16, height: 16, viewBox: "0 0 24 24", "aria-hidden": true, children: /* @__PURE__ */ jsx("rect", { x: 7, y: 7, width: 10, height: 10, rx: 2, fill: "currentColor" }) });
20
+ }
21
+ const DRAFT_VERSION = 1;
22
+ function createDraftStore(key) {
23
+ const storageKey = key === null ? null : `basalt:composer-draft:${key}`;
24
+ const listeners = /* @__PURE__ */ new Set();
25
+ let cache = key === null ? "" : null;
26
+ let storageHandler = null;
27
+ let submissionId = 0;
28
+ const notify = () => {
29
+ for (const cb of listeners) cb();
30
+ };
31
+ return {
32
+ subscribe: (cb) => {
33
+ listeners.add(cb);
34
+ if (storageKey !== null && storageHandler === null) {
35
+ storageHandler = (e) => {
36
+ if (e.key !== storageKey) return;
37
+ cache = null;
38
+ notify();
39
+ };
40
+ window.addEventListener("storage", storageHandler);
41
+ }
42
+ return () => {
43
+ listeners.delete(cb);
44
+ if (listeners.size === 0 && storageHandler !== null) {
45
+ window.removeEventListener("storage", storageHandler);
46
+ storageHandler = null;
47
+ }
48
+ };
49
+ },
50
+ get: () => {
51
+ if (cache === null) {
52
+ const persisted = key === null ? null : readPersistedValue(`composer-draft:${key}`, DRAFT_VERSION);
53
+ cache = typeof persisted === "string" ? persisted : "";
54
+ }
55
+ return cache;
56
+ },
57
+ set: (next) => {
58
+ cache = next;
59
+ if (storageKey !== null) {
60
+ try {
61
+ if (next.length === 0) window.localStorage.removeItem(storageKey);
62
+ else
63
+ window.localStorage.setItem(
64
+ storageKey,
65
+ JSON.stringify({ v: DRAFT_VERSION, value: next })
66
+ );
67
+ } catch {
68
+ }
69
+ }
70
+ notify();
71
+ },
72
+ bumpSubmissionId: () => {
73
+ submissionId += 1;
74
+ return submissionId;
75
+ },
76
+ currentSubmissionId: () => submissionId
77
+ };
78
+ }
79
+ const draftStores = /* @__PURE__ */ new Map();
80
+ function persistedDraftStore(key) {
81
+ const existing = draftStores.get(key);
82
+ if (existing !== void 0) return existing;
83
+ const created = createDraftStore(key);
84
+ draftStores.set(key, created);
85
+ return created;
86
+ }
87
+ const isServer = typeof window === "undefined";
88
+ const noopSubscribe = (_cb) => () => {
89
+ };
90
+ const emptyDraft = () => "";
91
+ const NO_ATTACHMENTS = [];
92
+ function liveSelection(el) {
93
+ if (document.activeElement !== el) return null;
94
+ const { selectionStart, selectionEnd } = el;
95
+ if (selectionStart === null || selectionEnd === null) return null;
96
+ return { start: selectionStart, end: selectionEnd };
97
+ }
98
+ function DefaultHint() {
99
+ return /* @__PURE__ */ jsxs(Group, { gap: 4, children: [
100
+ /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Enter" }),
101
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "to send" }),
102
+ /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Shift" }),
103
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "+" }),
104
+ /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Enter" }),
105
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "for a new line" })
106
+ ] });
107
+ }
17
108
  function Composer({
109
+ ref,
18
110
  onSubmit,
19
- disabled = false,
20
111
  placeholder,
21
- autoFocus
112
+ autoFocus,
113
+ maxRows = 6,
114
+ disabled = false,
115
+ streaming = false,
116
+ allowSubmitWhileStreaming = false,
117
+ onStop,
118
+ leftSection,
119
+ rightSection,
120
+ attachments,
121
+ onAttachmentsChange,
122
+ onPaste,
123
+ draftKey,
124
+ hint
22
125
  }) {
23
- const [value, setValue] = useState("");
126
+ const memoryStore = useRef(null);
127
+ memoryStore.current ??= createDraftStore(null);
128
+ const store = draftKey === void 0 ? memoryStore.current : persistedDraftStore(draftKey);
129
+ const value = useSyncExternalStore(
130
+ isServer ? noopSubscribe : store.subscribe,
131
+ isServer ? emptyDraft : store.get,
132
+ emptyDraft
133
+ );
134
+ const inputDisabled = disabled || streaming && !allowSubmitWhileStreaming;
135
+ const showStop = streaming && onStop !== void 0;
136
+ const showSend = !showStop || allowSubmitWhileStreaming;
137
+ const pending = attachments ?? NO_ATTACHMENTS;
138
+ const trimmed = value.trim();
139
+ const hasPayload = trimmed.length > 0 || pending.length > 0;
140
+ const attachmentsRef = useRef(pending);
141
+ attachmentsRef.current = pending;
142
+ const draftKeyRef = useRef(draftKey);
143
+ draftKeyRef.current = draftKey;
144
+ const textareaRef = useRef(null);
145
+ const pendingCaretRef = useRef(null);
146
+ useLayoutEffect(() => {
147
+ const caret = pendingCaretRef.current;
148
+ if (caret === null) return;
149
+ pendingCaretRef.current = null;
150
+ textareaRef.current?.setSelectionRange(caret, caret);
151
+ }, [value]);
152
+ const insertText = (text) => {
153
+ const current = store.get();
154
+ const selection = textareaRef.current === null ? null : liveSelection(textareaRef.current);
155
+ const start = selection?.start ?? current.length;
156
+ const end = selection?.end ?? current.length;
157
+ const next = current.slice(0, start) + text + current.slice(end);
158
+ store.set(next);
159
+ pendingCaretRef.current = next === value ? null : start + text.length;
160
+ };
161
+ const setValue = (next) => {
162
+ store.set(next);
163
+ pendingCaretRef.current = next === value ? null : next.length;
164
+ };
165
+ const focusTextarea = () => {
166
+ textareaRef.current?.focus();
167
+ };
168
+ useImperativeHandle(ref, () => ({ insertText, setValue, focus: focusTextarea }));
24
169
  const submit = () => {
25
- const trimmed = value.trim();
26
- if (trimmed.length === 0 || disabled) return;
27
- onSubmit(trimmed);
28
- setValue("");
170
+ if (inputDisabled || !hasPayload) return;
171
+ const submittedText = trimmed;
172
+ const submittedAttachments = pending;
173
+ const submittedDraftKey = draftKey;
174
+ const mySubmissionId = store.bumpSubmissionId();
175
+ const result = onSubmit({ text: submittedText, attachments: submittedAttachments });
176
+ store.set("");
177
+ if (submittedAttachments.length > 0) onAttachmentsChange?.([]);
178
+ void Promise.resolve(result).catch(() => {
179
+ if (store.currentSubmissionId() === mySubmissionId && store.get() === "") {
180
+ store.set(submittedText);
181
+ }
182
+ if (submittedAttachments.length > 0 && attachmentsRef.current.length === 0 && draftKeyRef.current === submittedDraftKey) {
183
+ onAttachmentsChange?.(submittedAttachments);
184
+ }
185
+ });
29
186
  };
30
187
  const handleKeyDown = (event) => {
31
188
  if (event.key !== "Enter" || event.shiftKey) return;
189
+ if (event.nativeEvent.isComposing) return;
32
190
  event.preventDefault();
33
191
  submit();
34
192
  };
@@ -36,10 +194,10 @@ function Composer({
36
194
  flex: 1,
37
195
  autosize: true,
38
196
  minRows: 1,
39
- maxRows: 6,
197
+ maxRows,
40
198
  value,
41
- disabled,
42
- onChange: (event) => setValue(event.currentTarget.value),
199
+ disabled: inputDisabled,
200
+ onChange: (event) => store.set(event.currentTarget.value),
43
201
  onKeyDown: handleKeyDown,
44
202
  // Composer input surface (docs/DESIGN-SPEC.md §5): panel + control radius (6px, VX.radiusCtrl);
45
203
  // the ring lives in the shadow, so the input carries no separate border. Depth is deliberately
@@ -56,30 +214,38 @@ function Composer({
56
214
  };
57
215
  if (placeholder !== void 0) textareaProps.placeholder = placeholder;
58
216
  if (autoFocus !== void 0) textareaProps.autoFocus = autoFocus;
217
+ if (onPaste !== void 0) textareaProps.onPaste = onPaste;
59
218
  return /* @__PURE__ */ jsxs(Stack, { gap: 6, children: [
60
219
  /* @__PURE__ */ jsxs(Group, { gap: "xs", align: "flex-end", wrap: "nowrap", children: [
61
- /* @__PURE__ */ jsx(Textarea, { ...textareaProps }),
62
- /* @__PURE__ */ jsx(
220
+ leftSection,
221
+ /* @__PURE__ */ jsx(Textarea, { ...textareaProps, ref: textareaRef }),
222
+ rightSection,
223
+ showStop ? /* @__PURE__ */ jsx(
224
+ ActionIcon,
225
+ {
226
+ size: 42,
227
+ radius: "md",
228
+ variant: "filled",
229
+ color: "red",
230
+ onClick: onStop,
231
+ "aria-label": "Stop generating",
232
+ children: /* @__PURE__ */ jsx(StopGlyph, {})
233
+ }
234
+ ) : null,
235
+ showSend ? /* @__PURE__ */ jsx(
63
236
  ActionIcon,
64
237
  {
65
238
  size: 42,
66
239
  radius: "md",
67
240
  variant: "filled",
68
241
  onClick: submit,
69
- disabled: disabled || value.trim().length === 0,
242
+ disabled: inputDisabled || !hasPayload,
70
243
  "aria-label": "Send message",
71
244
  children: /* @__PURE__ */ jsx(SendGlyph, {})
72
245
  }
73
- )
246
+ ) : null
74
247
  ] }),
75
- /* @__PURE__ */ jsxs(Group, { gap: 4, children: [
76
- /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Enter" }),
77
- /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "to send" }),
78
- /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Shift" }),
79
- /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "+" }),
80
- /* @__PURE__ */ jsx(Kbd, { size: "xs", children: "Enter" }),
81
- /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", style: { fontFamily: "var(--basalt-font-mono)" }, children: "for a new line" })
82
- ] })
248
+ hint === void 0 ? /* @__PURE__ */ jsx(DefaultHint, {}) : hint
83
249
  ] });
84
250
  }
85
251
  export {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=composer.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composer.test.d.ts","sourceRoot":"","sources":["../../src/agent-chat/composer.test.tsx"],"names":[],"mappings":""}
@@ -19,7 +19,7 @@ export type { ThreadOutcomeCardProps } from './thread-outcome-card.js';
19
19
  export { ThreadDetailPanel } from './thread-detail-panel.js';
20
20
  export type { ThreadDetailPanelProps } from './thread-detail-panel.js';
21
21
  export { Composer } from './composer.js';
22
- export type { ComposerProps } from './composer.js';
22
+ export type { ComposerAttachment, ComposerHandle, ComposerProps, ComposerSubmit } from './composer.js';
23
23
  export { threadPartRenderers, ThreadTranscript } from './thread-message.js';
24
24
  export type { ThreadTranscriptProps } from './thread-message.js';
25
25
  export { ToolChip } from './tool-chip.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent-chat/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AAGnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,YAAY,EAAE,sBAAsB,EAAE,M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{"version":3,"file":"thread-detail-panel.d.ts","sourceRoot":"","sources":["../../src/agent-chat/thread-detail-panel.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAiDpE,MAAM,MAAM,sBAAsB,GAAG;IACnC,uFAAuF;IACvF,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAA;IAChC,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAuFtC"}
1
+ {"version":3,"file":"thread-detail-panel.d.ts","sourceRoot":"","sources":["../../src/agent-chat/thread-detail-panel.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAiDpE,MAAM,MAAM,sBAAsB,GAAG;IACnC,uFAAuF;IACvF,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC,0FAA0F;IAC1F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAA;IAChC,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;IAC5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAyFtC"}
@@ -90,7 +90,7 @@ function ThreadDetailPanel({
90
90
  ) }),
91
91
  /* @__PURE__ */ jsx(Divider, { color: "var(--vx-divider)" }),
92
92
  /* @__PURE__ */ jsx(Box, { p: "sm", children: /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
93
- /* @__PURE__ */ jsx(Composer, { onSubmit: onSend, disabled: streaming }),
93
+ /* @__PURE__ */ jsx(Composer, { onSubmit: ({ text }) => onSend(text), streaming }),
94
94
  streaming && /* @__PURE__ */ jsx(Button, { size: "compact-sm", variant: "subtle", color: "red", onClick: onStop, children: "Stop" })
95
95
  ] }) })
96
96
  ] });
@@ -1 +1 @@
1
- {"version":3,"file":"thread-message.d.ts","sourceRoot":"","sources":["../../src/agent-chat/thread-message.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,KAAK,EAEV,kBAAkB,EAClB,WAAW,EAEX,WAAW,EACX,YAAY,EACZ,aAAa,EAGb,YAAY,EAGZ,cAAc,EACf,MAAM,UAAU,CAAA;AAkFjB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D;IACrD,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,CAAC,cAAc,CAAC,EAAE,CAAA;IACzD,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;IAC9C,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAA;IAClC,kFAAkF;IAClF,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAA;IAClC;iGAC6F;IAC7F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAA;AAExD;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EAAE,aAAa,EACxB,gBAA4C,GAC7C,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CAgCrC"}
@@ -24,8 +24,11 @@ const MICRO_LABEL_STYLE = {
24
24
  textTransform: "uppercase",
25
25
  color: VX.faint
26
26
  };
27
- function TextRenderer({ part }) {
28
- return /* @__PURE__ */ jsx(Markdown, { streaming: true, density: "chat", children: part.text });
27
+ function TextRenderer({
28
+ part,
29
+ settled
30
+ }) {
31
+ return /* @__PURE__ */ jsx(Markdown, { streaming: !settled, contentTrust: "untrusted", density: "chat", children: part.text });
29
32
  }
30
33
  const RAIL_STYLE = {
31
34
  borderLeft: `2px solid ${VX.divider}`,
@@ -133,7 +136,15 @@ function MessageBlockImpl({
133
136
  finishIndicator !== void 0 && /* @__PURE__ */ jsx(Text, { style: { ...MICRO_LABEL_STYLE, color: finishIndicator.statusToken }, children: finishIndicator.label })
134
137
  ] }),
135
138
  segments.map(
136
- (segment) => segment.kind === "agent" ? /* @__PURE__ */ jsx(PartList, { parts: segment.parts, components: threadPartRenderers }, segment.key) : /* @__PURE__ */ jsx(Fragment, { children: segment.render({
139
+ (segment) => segment.kind === "agent" ? /* @__PURE__ */ jsx(
140
+ PartList,
141
+ {
142
+ parts: segment.parts,
143
+ components: threadPartRenderers,
144
+ settled
145
+ },
146
+ segment.key
147
+ ) : /* @__PURE__ */ jsx(Fragment, { children: segment.render({
137
148
  part: segment.part,
138
149
  messageId: message.id,
139
150
  partId: segment.part.id,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=thread-message.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-message.test.d.ts","sourceRoot":"","sources":["../../src/agent-chat/thread-message.test.tsx"],"names":[],"mappings":""}
@@ -55,7 +55,7 @@ function ThreadWorkspace({
55
55
  /* @__PURE__ */ jsx(Box, { p: "sm", children: /* @__PURE__ */ jsx(
56
56
  Composer,
57
57
  {
58
- onSubmit: handleNewThread,
58
+ onSubmit: ({ text }) => handleNewThread(text),
59
59
  ...newThreadPlaceholder !== void 0 ? { placeholder: newThreadPlaceholder } : {}
60
60
  }
61
61
  ) })
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tool-chip.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-chip.test.d.ts","sourceRoot":"","sources":["../../src/agent-chat/tool-chip.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ChartFrame.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartFrame.test.d.ts","sourceRoot":"","sources":["../../../src/charts/primitives/ChartFrame.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=domain.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domain.test.d.ts","sourceRoot":"","sources":["../../../src/charts/utils/domain.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=check-theme.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-theme.test.d.ts","sourceRoot":"","sources":["../../src/cli/check-theme.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=help.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.test.d.ts","sourceRoot":"","sources":["../../src/cli/help.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAwB,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE9E,OAAO,EAAE,UAAU,EAAE,WAAW,EAA2C,MAAM,aAAa,CAAA;AAI9F,yEAAyE;AACzE,MAAM,MAAM,YAAY,GAAG;IACzB,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,uGAAuG;IACvG,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB;wFACoF;IACpF,QAAQ,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;IACpD,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;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;AAUD;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,GAAE,MAAsB,GAAG,MAAM,CAiD9E;AAED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,GAAG,GAAE,MAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,CAsF5E;AAcD;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,GAAE,MAAsB,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAoCzF;AAKD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAAE,WAAW,EAAE,CAAA;AACnF,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=init-sync.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init-sync.test.d.ts","sourceRoot":"","sources":["../../src/cli/init-sync.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=placement-engine.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placement-engine.test.d.ts","sourceRoot":"","sources":["../../src/cli/placement-engine.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tarball-parity.test.d.ts.map