@tangle-network/ui 11.9.0 → 11.11.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 (155) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +14 -0
  3. package/dist/active-sessions-store-Gt1R0rFG.js +262 -0
  4. package/dist/{active-sessions-store-CeOmXgv5.d.ts → active-sessions-store-nl70ZnMC.d.ts} +40 -41
  5. package/dist/artifact-pane-BL_DFWNl.d.ts +32 -0
  6. package/dist/artifact-pane-DMXT9a8U.js +70 -0
  7. package/dist/auth-DixfCMCk.js +154 -0
  8. package/dist/auth.d.ts +2 -74
  9. package/dist/auth.js +2 -15
  10. package/dist/branding-26d5ARIr.d.ts +14 -0
  11. package/dist/button-uhNnwdsD.js +78 -0
  12. package/dist/button-yoIv77e2.d.ts +16 -0
  13. package/dist/chat-CPLL0Fd9.js +667 -0
  14. package/dist/chat.d.ts +2 -201
  15. package/dist/chat.js +2 -30
  16. package/dist/code-block-B9miUPht.d.ts +23 -0
  17. package/dist/code-block-CngSn37j.js +165 -0
  18. package/dist/diff-preview-cySuqowW.js +533 -0
  19. package/dist/document-editor-pane-BcoABlhn.d.ts +131 -0
  20. package/dist/document-editor-pane-Cz6oEF1o.js +1287 -0
  21. package/dist/dropdown-menu-BpcLa5vF.js +101 -0
  22. package/dist/editor.d.ts +76 -78
  23. package/dist/editor.js +2 -33
  24. package/dist/file-format-BgXbr-Ib.js +160 -0
  25. package/dist/files-CYlOo0mE.js +743 -0
  26. package/dist/files.d.ts +2 -243
  27. package/dist/files.js +3 -40
  28. package/dist/focus-Cw02pNSr.js +56 -0
  29. package/dist/format-DfcLWqMa.js +54 -0
  30. package/dist/hooks.d.ts +30 -37
  31. package/dist/hooks.js +111 -45
  32. package/dist/index-2UntyjBb.d.ts +52 -0
  33. package/dist/index-COgqsFAQ.d.ts +42 -0
  34. package/dist/index-CPDET_s1.d.ts +549 -0
  35. package/dist/index-CUhfHT_V.d.ts +204 -0
  36. package/dist/index-Cg6gYAqh.d.ts +73 -0
  37. package/dist/index-Cq-EJzqW.d.ts +16 -0
  38. package/dist/index-DhYmSaLF.d.ts +245 -0
  39. package/dist/index-DjKxO357.d.ts +128 -0
  40. package/dist/index-b56ew9aF.d.ts +107 -0
  41. package/dist/index.d.ts +26 -43
  42. package/dist/index.js +35 -460
  43. package/dist/markdown-BprL96Gl.js +45 -0
  44. package/dist/markdown.d.ts +3 -18
  45. package/dist/markdown.js +3 -14
  46. package/dist/message-vhUI0c5G.d.ts +16 -0
  47. package/dist/nav.d.ts +6 -8
  48. package/dist/nav.js +29 -11
  49. package/dist/openui-artifact-renderer-D3E5bIAI.d.ts +114 -0
  50. package/dist/openui-artifact-renderer-DT4xbvWt.js +266 -0
  51. package/dist/openui.d.ts +2 -115
  52. package/dist/openui.js +2 -12
  53. package/dist/parts-5mhy9yJ3.d.ts +37 -0
  54. package/dist/primitives-DE-blUz-.js +1239 -0
  55. package/dist/primitives.d.ts +5 -523
  56. package/dist/primitives.js +9 -211
  57. package/dist/redaction-CGGB2ENG.js +74 -0
  58. package/dist/redaction.d.ts +2 -42
  59. package/dist/redaction.js +2 -7
  60. package/dist/run-OyWmIDqu.d.ts +41 -0
  61. package/dist/run-ZsIKPA6J.js +17 -0
  62. package/dist/run-group-D1InSdQu.js +410 -0
  63. package/dist/run.d.ts +3 -126
  64. package/dist/run.js +5 -39
  65. package/dist/sdk-hooks.d.ts +2 -285
  66. package/dist/sdk-hooks.js +3 -35
  67. package/dist/stores.d.ts +13 -14
  68. package/dist/stores.js +34 -76
  69. package/dist/table-DHyqDPbU.js +146 -0
  70. package/dist/tabs-ujuqAdtb.js +40 -0
  71. package/dist/text-shimmer-BUUo6I-g.js +64 -0
  72. package/dist/tool-call-feed-BeB1_4pX.d.ts +47 -0
  73. package/dist/tool-call-feed-C1W1N54c.js +109 -0
  74. package/dist/tool-call-step-Bi3_YJRV.js +434 -0
  75. package/dist/tool-display-BAuAVa43.js +158 -0
  76. package/dist/{tool-display-z4JcDmMQ.d.ts → tool-display-DgmL5rIU.d.ts} +16 -16
  77. package/dist/tool-previews.d.ts +2 -48
  78. package/dist/tool-previews.js +2 -22
  79. package/dist/types.d.ts +6 -19
  80. package/dist/types.js +0 -1
  81. package/dist/use-auto-scroll-C5Pjeqon.js +153 -0
  82. package/dist/use-sse-stream-BjVBDbxK.js +884 -0
  83. package/dist/use-sse-stream-Dm6R5YWz.d.ts +282 -0
  84. package/dist/utils-Bl_CZ0Qp.js +37 -0
  85. package/dist/{chunk-RQHJBTEU.js → utils-C_uf36nf.js} +4 -6
  86. package/dist/utils.d.ts +2 -51
  87. package/dist/utils.js +6 -32
  88. package/package.json +39 -41
  89. package/src/auth/auth.tsx +5 -1
  90. package/src/chat/agent-timeline.tsx +6 -1
  91. package/src/chat/chat-container.tsx +2 -1
  92. package/src/editor/document-editor-pane.test.tsx +3 -1
  93. package/src/editor/document-editor-pane.tsx +5 -1
  94. package/src/editor/markdown-document-editor.test.tsx +9 -4
  95. package/src/files/file-artifact-pane.tsx +3 -2
  96. package/src/files/file-preview.tsx +3 -1
  97. package/src/files/file-tabs.tsx +9 -2
  98. package/src/lib/focus.ts +63 -0
  99. package/src/markdown/code-block.tsx +5 -1
  100. package/src/primitives/badge.tsx +2 -1
  101. package/src/primitives/button.tsx +2 -1
  102. package/src/primitives/card.tsx +1 -2
  103. package/src/primitives/dialog.tsx +7 -1
  104. package/src/primitives/input.tsx +15 -14
  105. package/src/primitives/segmented-control.tsx +5 -3
  106. package/src/primitives/select.tsx +3 -1
  107. package/src/primitives/switch.tsx +3 -1
  108. package/src/primitives/tabs.tsx +6 -4
  109. package/src/primitives/terminal-display.tsx +6 -8
  110. package/src/primitives/toast.tsx +5 -1
  111. package/src/tool-previews/command-preview.tsx +5 -1
  112. package/src/tool-previews/web-search-preview.tsx +2 -1
  113. package/src/utils/index.ts +7 -0
  114. package/dist/artifact-pane-DpuWcAiF.d.ts +0 -33
  115. package/dist/button-CMQuQEW_.d.ts +0 -17
  116. package/dist/chunk-34A66VBG.js +0 -214
  117. package/dist/chunk-3OI2QKFD.js +0 -0
  118. package/dist/chunk-3TI5DEHV.js +0 -299
  119. package/dist/chunk-4CLN43XT.js +0 -45
  120. package/dist/chunk-565EATZZ.js +0 -156
  121. package/dist/chunk-5Z5ZYMOJ.js +0 -0
  122. package/dist/chunk-6BGQA4BQ.js +0 -0
  123. package/dist/chunk-7YOCS6IF.js +0 -728
  124. package/dist/chunk-EOAX2ENE.js +0 -60
  125. package/dist/chunk-GYPQXTJU.js +0 -230
  126. package/dist/chunk-HFL6R6IF.js +0 -37
  127. package/dist/chunk-HGML45QH.js +0 -104
  128. package/dist/chunk-KNYSKNZX.js +0 -550
  129. package/dist/chunk-L57WRIND.js +0 -59
  130. package/dist/chunk-LDLOJKPC.js +0 -1585
  131. package/dist/chunk-LTEKI7YJ.js +0 -59
  132. package/dist/chunk-MKTSMWVD.js +0 -109
  133. package/dist/chunk-ND3ZFXQK.js +0 -179
  134. package/dist/chunk-NKDZ7GZE.js +0 -192
  135. package/dist/chunk-NWECTSOH.js +0 -589
  136. package/dist/chunk-OEX7NZE3.js +0 -321
  137. package/dist/chunk-Q56BYXQF.js +0 -61
  138. package/dist/chunk-REJESC5U.js +0 -117
  139. package/dist/chunk-RQGKSCEZ.js +0 -0
  140. package/dist/chunk-TN4FUEWY.js +0 -437
  141. package/dist/chunk-VPWY4I5O.js +0 -1048
  142. package/dist/chunk-WUQDUBJG.js +0 -168
  143. package/dist/chunk-XGKULLYE.js +0 -40
  144. package/dist/chunk-XU3HB5QL.js +0 -127
  145. package/dist/chunk-XYAIX4SU.js +0 -133
  146. package/dist/chunk-YJ6RE5WV.js +0 -875
  147. package/dist/chunk-YTO5V6QS.js +0 -19
  148. package/dist/chunk-ZKCEAIIZ.js +0 -1395
  149. package/dist/code-block-0kSpWMnf.d.ts +0 -25
  150. package/dist/document-editor-pane-EX25CEYW.js +0 -12
  151. package/dist/document-editor-pane-IAEQn_Dl.d.ts +0 -128
  152. package/dist/message-BHWbxBtT.d.ts +0 -15
  153. package/dist/parts-dj7AcUg0.d.ts +0 -36
  154. package/dist/run-PfLmDAox.d.ts +0 -41
  155. package/dist/tool-call-feed-D9iofJgW.d.ts +0 -46
package/dist/index.js CHANGED
@@ -1,460 +1,35 @@
1
- import {
2
- RedactedDocument
3
- } from "./chunk-HGML45QH.js";
4
- import {
5
- AuthHeader,
6
- GitHubLoginButton,
7
- LoginLayout,
8
- UserMenu
9
- } from "./chunk-NKDZ7GZE.js";
10
- import {
11
- createAuthFetcher,
12
- useApiKey,
13
- useAuth,
14
- useLiveTime
15
- } from "./chunk-REJESC5U.js";
16
- import {
17
- RealtimeSessionRegistry,
18
- useDropdownMenu,
19
- useRealtimeSession,
20
- useSSEStream,
21
- useSdkSession,
22
- useToolCallStream
23
- } from "./chunk-VPWY4I5O.js";
24
- import {
25
- addMessage,
26
- addParts,
27
- clearChat,
28
- isStreamingAtom,
29
- messagesAtom,
30
- partMapAtom,
31
- updatePart
32
- } from "./chunk-HFL6R6IF.js";
33
- import {
34
- activeSessionsAtom,
35
- bumpActiveSessionActivity,
36
- getActiveSession,
37
- getAllActiveSessions,
38
- getAllProjectActivity,
39
- getSessionsByActivity,
40
- getSessionsForNavbar,
41
- getSessionsForProject,
42
- getTotalRunningSessionCount,
43
- hasBackgroundRunningSessions,
44
- registerActiveSession,
45
- resetActiveSessions,
46
- setActiveSessionAttention,
47
- setActiveSessionConnection,
48
- setActiveSessionError,
49
- setActiveSessionRunning,
50
- setForegroundActiveSession,
51
- unregisterActiveSession,
52
- updateActiveSessionMeta,
53
- useActiveSession,
54
- useActiveSessions,
55
- useActiveSessionsState,
56
- useHasBackgroundRunningSessions,
57
- useNavbarSessions,
58
- useProjectActivity,
59
- useProjectSessions,
60
- useSessionsByActivity,
61
- useTotalRunningSessions
62
- } from "./chunk-OEX7NZE3.js";
63
- import "./chunk-6BGQA4BQ.js";
64
- import {
65
- copyText,
66
- timeAgo
67
- } from "./chunk-XGKULLYE.js";
68
- import "./chunk-3OI2QKFD.js";
69
- import {
70
- Dialog,
71
- DialogClose,
72
- DialogContent,
73
- DialogDescription,
74
- DialogFooter,
75
- DialogHeader,
76
- DialogOverlay,
77
- DialogPortal,
78
- DialogTitle,
79
- DialogTrigger,
80
- DropZone,
81
- EmptyState,
82
- FilterField,
83
- Input,
84
- Label,
85
- Logo,
86
- Metric,
87
- MetricStrip,
88
- PageHeader,
89
- Progress,
90
- SegmentedControl,
91
- Select,
92
- SelectContent,
93
- SelectGroup,
94
- SelectItem,
95
- SelectLabel,
96
- SelectScrollDownButton,
97
- SelectScrollUpButton,
98
- SelectSeparator,
99
- SelectTrigger,
100
- SelectValue,
101
- SidebarDropZone,
102
- Skeleton,
103
- SkeletonCard,
104
- SkeletonTable,
105
- StatCard,
106
- StatusPill,
107
- Switch,
108
- TangleKnot,
109
- TerminalCursor,
110
- TerminalDisplay,
111
- TerminalInput,
112
- TerminalLine,
113
- Textarea,
114
- ThemeToggle,
115
- ToastContainer,
116
- ToastProvider,
117
- Toolbar,
118
- UploadProgress,
119
- useTheme,
120
- useToast
121
- } from "./chunk-LDLOJKPC.js";
122
- import {
123
- Avatar,
124
- AvatarFallback,
125
- AvatarImage,
126
- DropdownMenu,
127
- DropdownMenuCheckboxItem,
128
- DropdownMenuContent,
129
- DropdownMenuGroup,
130
- DropdownMenuItem,
131
- DropdownMenuLabel,
132
- DropdownMenuPortal,
133
- DropdownMenuRadioGroup,
134
- DropdownMenuRadioItem,
135
- DropdownMenuSeparator,
136
- DropdownMenuShortcut,
137
- DropdownMenuSub,
138
- DropdownMenuSubContent,
139
- DropdownMenuSubTrigger,
140
- DropdownMenuTrigger
141
- } from "./chunk-34A66VBG.js";
142
- import {
143
- AgentTimeline,
144
- ChatContainer,
145
- ChatMessage,
146
- MessageList,
147
- ThinkingIndicator,
148
- UserMessage
149
- } from "./chunk-7YOCS6IF.js";
150
- import {
151
- useAutoScroll,
152
- useRunCollapseState,
153
- useRunGroups
154
- } from "./chunk-565EATZZ.js";
155
- import {
156
- LiveDuration
157
- } from "./chunk-YTO5V6QS.js";
158
- import {
159
- ToolCallFeed,
160
- parseToolEvent
161
- } from "./chunk-XYAIX4SU.js";
162
- import {
163
- InlineThinkingItem,
164
- RunGroup
165
- } from "./chunk-TN4FUEWY.js";
166
- import {
167
- ExpandedToolDetail,
168
- InlineToolItem,
169
- RunRowShell,
170
- RunRowStatusDot
171
- } from "./chunk-KNYSKNZX.js";
172
- import {
173
- TOOL_CATEGORY_ICONS,
174
- getToolCategory,
175
- getToolDisplayMetadata,
176
- getToolErrorText
177
- } from "./chunk-ND3ZFXQK.js";
178
- import {
179
- CommandPreview,
180
- DiffPreview,
181
- GlobResultsPreview,
182
- GrepResultsPreview,
183
- QuestionPreview,
184
- WebSearchPreview,
185
- WriteFilePreview
186
- } from "./chunk-NWECTSOH.js";
187
- import {
188
- TextShimmer
189
- } from "./chunk-L57WRIND.js";
190
- import "./chunk-RQGKSCEZ.js";
191
- import {
192
- OpenUIArtifactRenderer
193
- } from "./chunk-3TI5DEHV.js";
194
- import {
195
- Badge,
196
- Card,
197
- CardContent,
198
- CardDescription,
199
- CardFooter,
200
- CardHeader,
201
- CardTitle,
202
- InlineCode,
203
- Table,
204
- TableBody,
205
- TableCaption,
206
- TableCell,
207
- TableFooter,
208
- TableHead,
209
- TableHeader,
210
- TableRow,
211
- badgeVariants
212
- } from "./chunk-GYPQXTJU.js";
213
- import {
214
- CSV_PREVIEW_ROW_LIMIT,
215
- FileArtifactPane,
216
- FilePreview,
217
- FileTabs,
218
- FileTree,
219
- RichFileTree,
220
- filterFileTree,
221
- parseCsv
222
- } from "./chunk-YJ6RE5WV.js";
223
- import {
224
- formatBytes,
225
- formatDuration,
226
- formatUptime,
227
- truncateText
228
- } from "./chunk-4CLN43XT.js";
229
- import {
230
- detectFileFormat,
231
- fileExtension,
232
- getCodeLanguage,
233
- getFormatLabel,
234
- getSyntaxLanguage,
235
- resolveFilePreviewKind
236
- } from "./chunk-XU3HB5QL.js";
237
- import {
238
- Button,
239
- buttonVariants
240
- } from "./chunk-MKTSMWVD.js";
241
- import {
242
- Tabs,
243
- TabsContent,
244
- TabsList,
245
- TabsTrigger
246
- } from "./chunk-Q56BYXQF.js";
247
- import {
248
- ArtifactPane
249
- } from "./chunk-LTEKI7YJ.js";
250
- import "./chunk-5Z5ZYMOJ.js";
251
- import {
252
- Markdown
253
- } from "./chunk-EOAX2ENE.js";
254
- import {
255
- CodeBlock,
256
- CopyButton
257
- } from "./chunk-WUQDUBJG.js";
258
- import {
259
- cn
260
- } from "./chunk-RQHJBTEU.js";
261
- export {
262
- AgentTimeline,
263
- ArtifactPane,
264
- AuthHeader,
265
- Avatar,
266
- AvatarFallback,
267
- AvatarImage,
268
- Badge,
269
- Button,
270
- CSV_PREVIEW_ROW_LIMIT,
271
- Card,
272
- CardContent,
273
- CardDescription,
274
- CardFooter,
275
- CardHeader,
276
- CardTitle,
277
- ChatContainer,
278
- ChatMessage,
279
- CodeBlock,
280
- CommandPreview,
281
- CopyButton,
282
- Dialog,
283
- DialogClose,
284
- DialogContent,
285
- DialogDescription,
286
- DialogFooter,
287
- DialogHeader,
288
- DialogOverlay,
289
- DialogPortal,
290
- DialogTitle,
291
- DialogTrigger,
292
- DiffPreview,
293
- DropZone,
294
- DropdownMenu,
295
- DropdownMenuCheckboxItem,
296
- DropdownMenuContent,
297
- DropdownMenuGroup,
298
- DropdownMenuItem,
299
- DropdownMenuLabel,
300
- DropdownMenuPortal,
301
- DropdownMenuRadioGroup,
302
- DropdownMenuRadioItem,
303
- DropdownMenuSeparator,
304
- DropdownMenuShortcut,
305
- DropdownMenuSub,
306
- DropdownMenuSubContent,
307
- DropdownMenuSubTrigger,
308
- DropdownMenuTrigger,
309
- EmptyState,
310
- ExpandedToolDetail,
311
- FileArtifactPane,
312
- FilePreview,
313
- FileTabs,
314
- FileTree,
315
- FilterField,
316
- GitHubLoginButton,
317
- GlobResultsPreview,
318
- GrepResultsPreview,
319
- InlineCode,
320
- InlineThinkingItem,
321
- InlineToolItem,
322
- Input,
323
- Label,
324
- LiveDuration,
325
- LoginLayout,
326
- Logo,
327
- Markdown,
328
- MessageList,
329
- Metric,
330
- MetricStrip,
331
- OpenUIArtifactRenderer,
332
- PageHeader,
333
- Progress,
334
- QuestionPreview,
335
- RealtimeSessionRegistry,
336
- RedactedDocument,
337
- RichFileTree,
338
- RunGroup,
339
- RunRowShell,
340
- RunRowStatusDot,
341
- SegmentedControl,
342
- Select,
343
- SelectContent,
344
- SelectGroup,
345
- SelectItem,
346
- SelectLabel,
347
- SelectScrollDownButton,
348
- SelectScrollUpButton,
349
- SelectSeparator,
350
- SelectTrigger,
351
- SelectValue,
352
- SidebarDropZone,
353
- Skeleton,
354
- SkeletonCard,
355
- SkeletonTable,
356
- StatCard,
357
- StatusPill,
358
- Switch,
359
- TOOL_CATEGORY_ICONS,
360
- Table,
361
- TableBody,
362
- TableCaption,
363
- TableCell,
364
- TableFooter,
365
- TableHead,
366
- TableHeader,
367
- TableRow,
368
- Tabs,
369
- TabsContent,
370
- TabsList,
371
- TabsTrigger,
372
- TangleKnot,
373
- TerminalCursor,
374
- TerminalDisplay,
375
- TerminalInput,
376
- TerminalLine,
377
- TextShimmer,
378
- Textarea,
379
- ThemeToggle,
380
- ThinkingIndicator,
381
- ToastContainer,
382
- ToastProvider,
383
- ToolCallFeed,
384
- Toolbar,
385
- UploadProgress,
386
- UserMenu,
387
- UserMessage,
388
- WebSearchPreview,
389
- WriteFilePreview,
390
- activeSessionsAtom,
391
- addMessage,
392
- addParts,
393
- badgeVariants,
394
- bumpActiveSessionActivity,
395
- buttonVariants,
396
- clearChat,
397
- cn,
398
- copyText,
399
- createAuthFetcher,
400
- detectFileFormat,
401
- fileExtension,
402
- filterFileTree,
403
- formatBytes,
404
- formatDuration,
405
- formatUptime,
406
- getActiveSession,
407
- getAllActiveSessions,
408
- getAllProjectActivity,
409
- getCodeLanguage,
410
- getFormatLabel,
411
- getSessionsByActivity,
412
- getSessionsForNavbar,
413
- getSessionsForProject,
414
- getSyntaxLanguage,
415
- getToolCategory,
416
- getToolDisplayMetadata,
417
- getToolErrorText,
418
- getTotalRunningSessionCount,
419
- hasBackgroundRunningSessions,
420
- isStreamingAtom,
421
- messagesAtom,
422
- parseCsv,
423
- parseToolEvent,
424
- partMapAtom,
425
- registerActiveSession,
426
- resetActiveSessions,
427
- resolveFilePreviewKind,
428
- setActiveSessionAttention,
429
- setActiveSessionConnection,
430
- setActiveSessionError,
431
- setActiveSessionRunning,
432
- setForegroundActiveSession,
433
- timeAgo,
434
- truncateText,
435
- unregisterActiveSession,
436
- updateActiveSessionMeta,
437
- updatePart,
438
- useActiveSession,
439
- useActiveSessions,
440
- useActiveSessionsState,
441
- useApiKey,
442
- useAuth,
443
- useAutoScroll,
444
- useDropdownMenu,
445
- useHasBackgroundRunningSessions,
446
- useLiveTime,
447
- useNavbarSessions,
448
- useProjectActivity,
449
- useProjectSessions,
450
- useRealtimeSession,
451
- useRunCollapseState,
452
- useRunGroups,
453
- useSSEStream,
454
- useSdkSession,
455
- useSessionsByActivity,
456
- useTheme,
457
- useToast,
458
- useToolCallStream,
459
- useTotalRunningSessions
460
- };
1
+ import { a as focusRingInset, i as focusRing, n as focusFieldInvalid, r as focusFieldWithin, t as focusField } from "./focus-Cw02pNSr.js";
2
+ import { t as cn } from "./utils-C_uf36nf.js";
3
+ import { n as buttonVariants, t as Button } from "./button-uhNnwdsD.js";
4
+ import { a as TableFooter, c as TableRow, d as Card, f as CardContent, g as CardTitle, h as CardHeader, i as TableCell, l as Badge, m as CardFooter, n as TableBody, o as TableHead, p as CardDescription, r as TableCaption, s as TableHeader, t as Table, u as badgeVariants } from "./table-DHyqDPbU.js";
5
+ import { A as SegmentedControl, B as SelectValue, C as ToastProvider, D as SkeletonTable, E as SkeletonCard, F as SelectLabel, G as DialogContent, H as Textarea, I as SelectScrollDownButton, J as DialogHeader, K as DialogDescription, L as SelectScrollUpButton, M as SelectContent, N as SelectGroup, O as Switch, P as SelectItem, Q as DialogTrigger, R as SelectSeparator, S as ToastContainer, T as Skeleton, U as Dialog, V as Input, W as DialogClose, X as DialogPortal, Y as DialogOverlay, Z as DialogTitle, _ as TerminalInput, a as Metric, b as EmptyState, c as PageHeader, d as InlineCode, f as SidebarDropZone, g as TerminalDisplay, h as TerminalCursor, i as Toolbar, j as Select, k as Progress, l as ThemeToggle, m as DropZone, n as TangleKnot, o as MetricStrip, p as UploadProgress, q as DialogFooter, r as FilterField, s as StatusPill, t as Logo, u as useTheme, v as TerminalLine, w as useToast, x as Label, y as StatCard, z as SelectTrigger } from "./primitives-DE-blUz-.js";
6
+ import { _ as AvatarFallback, a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, g as Avatar, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator, v as AvatarImage } from "./dropdown-menu-BpcLa5vF.js";
7
+ import { i as TabsTrigger, n as TabsContent, r as TabsList, t as Tabs } from "./tabs-ujuqAdtb.js";
8
+ import { t as TextShimmer } from "./text-shimmer-BUUo6I-g.js";
9
+ import { t as ArtifactPane } from "./artifact-pane-DMXT9a8U.js";
10
+ import { n as CopyButton, t as CodeBlock } from "./code-block-CngSn37j.js";
11
+ import { i as getToolErrorText, n as getToolCategory, r as getToolDisplayMetadata, t as TOOL_CATEGORY_ICONS } from "./tool-display-BAuAVa43.js";
12
+ import { n as useRunCollapseState, r as useRunGroups, t as useAutoScroll } from "./use-auto-scroll-C5Pjeqon.js";
13
+ import { i as truncateText, n as formatDuration, r as formatUptime, t as formatBytes } from "./format-DfcLWqMa.js";
14
+ import { a as GrepResultsPreview, i as GlobResultsPreview, n as QuestionPreview, o as WriteFilePreview, r as WebSearchPreview, s as CommandPreview, t as DiffPreview } from "./diff-preview-cySuqowW.js";
15
+ import { a as getSyntaxLanguage, i as getFormatLabel, n as fileExtension, o as resolveFilePreviewKind, r as getCodeLanguage, t as detectFileFormat } from "./file-format-BgXbr-Ib.js";
16
+ import { a as RunRowStatusDot, i as RunRowShell, o as ExpandedToolDetail, r as InlineToolItem } from "./tool-call-step-Bi3_YJRV.js";
17
+ import { t as Markdown } from "./markdown-BprL96Gl.js";
18
+ import { n as InlineThinkingItem, t as RunGroup } from "./run-group-D1InSdQu.js";
19
+ import { t as OpenUIArtifactRenderer } from "./openui-artifact-renderer-DT4xbvWt.js";
20
+ import { a as MessageList, i as ThinkingIndicator, n as ChatContainer, o as UserMessage, r as AgentTimeline, t as ChatMessage } from "./chat-CPLL0Fd9.js";
21
+ import { t as LiveDuration } from "./run-ZsIKPA6J.js";
22
+ import { n as parseToolEvent, t as ToolCallFeed } from "./tool-call-feed-C1W1N54c.js";
23
+ import "./openui.js";
24
+ import { a as parseCsv, c as filterFileTree, i as FilePreview, n as FileTabs, o as RichFileTree, r as CSV_PREVIEW_ROW_LIMIT, s as FileTree, t as FileArtifactPane } from "./files-CYlOo0mE.js";
25
+ import "./markdown.js";
26
+ import { i as UserMenu, n as AuthHeader, r as GitHubLoginButton, t as LoginLayout } from "./auth-DixfCMCk.js";
27
+ import { a as useToolCallStream, i as useRealtimeSession, n as useSdkSession, o as useDropdownMenu, r as RealtimeSessionRegistry, t as useSSEStream } from "./use-sse-stream-BjVBDbxK.js";
28
+ import { C as useHasBackgroundRunningSessions, D as useSessionsByActivity, E as useProjectSessions, O as useTotalRunningSessions, S as useActiveSessionsState, T as useProjectActivity, _ as setForegroundActiveSession, a as getAllProjectActivity, b as useActiveSession, c as getSessionsForProject, d as registerActiveSession, f as resetActiveSessions, g as setActiveSessionRunning, h as setActiveSessionError, i as getAllActiveSessions, l as getTotalRunningSessionCount, m as setActiveSessionConnection, n as bumpActiveSessionActivity, o as getSessionsByActivity, p as setActiveSessionAttention, r as getActiveSession, s as getSessionsForNavbar, t as activeSessionsAtom, u as hasBackgroundRunningSessions, v as unregisterActiveSession, w as useNavbarSessions, x as useActiveSessions, y as updateActiveSessionMeta } from "./active-sessions-store-Gt1R0rFG.js";
29
+ import { createAuthFetcher, useApiKey, useAuth, useLiveTime } from "./hooks.js";
30
+ import { addMessage, addParts, clearChat, isStreamingAtom, messagesAtom, partMapAtom, updatePart } from "./stores.js";
31
+ import "./types.js";
32
+ import { n as copyText, t as timeAgo } from "./utils-Bl_CZ0Qp.js";
33
+ import "./tool-previews.js";
34
+ import { t as RedactedDocument } from "./redaction-CGGB2ENG.js";
35
+ export { AgentTimeline, ArtifactPane, AuthHeader, Avatar, AvatarFallback, AvatarImage, Badge, Button, CSV_PREVIEW_ROW_LIMIT, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatContainer, ChatMessage, CodeBlock, CommandPreview, CopyButton, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffPreview, DropZone, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, ExpandedToolDetail, FileArtifactPane, FilePreview, FileTabs, FileTree, FilterField, GitHubLoginButton, GlobResultsPreview, GrepResultsPreview, InlineCode, InlineThinkingItem, InlineToolItem, Input, Label, LiveDuration, LoginLayout, Logo, Markdown, MessageList, Metric, MetricStrip, OpenUIArtifactRenderer, PageHeader, Progress, QuestionPreview, RealtimeSessionRegistry, RedactedDocument, RichFileTree, RunGroup, RunRowShell, RunRowStatusDot, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarDropZone, Skeleton, SkeletonCard, SkeletonTable, StatCard, StatusPill, Switch, TOOL_CATEGORY_ICONS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TangleKnot, TerminalCursor, TerminalDisplay, TerminalInput, TerminalLine, TextShimmer, Textarea, ThemeToggle, ThinkingIndicator, ToastContainer, ToastProvider, ToolCallFeed, Toolbar, UploadProgress, UserMenu, UserMessage, WebSearchPreview, WriteFilePreview, activeSessionsAtom, addMessage, addParts, badgeVariants, bumpActiveSessionActivity, buttonVariants, clearChat, cn, copyText, createAuthFetcher, detectFileFormat, fileExtension, filterFileTree, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatUptime, getActiveSession, getAllActiveSessions, getAllProjectActivity, getCodeLanguage, getFormatLabel, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getSyntaxLanguage, getToolCategory, getToolDisplayMetadata, getToolErrorText, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, parseCsv, parseToolEvent, partMapAtom, registerActiveSession, resetActiveSessions, resolveFilePreviewKind, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, timeAgo, truncateText, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useApiKey, useAuth, useAutoScroll, useDropdownMenu, useHasBackgroundRunningSessions, useLiveTime, useNavbarSessions, useProjectActivity, useProjectSessions, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionsByActivity, useTheme, useToast, useToolCallStream, useTotalRunningSessions };
@@ -0,0 +1,45 @@
1
+ import { t as cn } from "./utils-C_uf36nf.js";
2
+ import { n as CopyButton, t as CodeBlock } from "./code-block-CngSn37j.js";
3
+ import { memo } from "react";
4
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
5
+ import ReactMarkdown from "react-markdown";
6
+ import remarkGfm from "remark-gfm";
7
+ import rehypeSanitize from "rehype-sanitize";
8
+ //#region src/markdown/markdown.tsx
9
+ /**
10
+ * Renders Markdown content with GFM support, XSS sanitisation, and
11
+ * custom code block rendering via our CodeBlock component.
12
+ */
13
+ const Markdown = memo(({ children, className, urlTransform }) => {
14
+ return /* @__PURE__ */ jsx("div", {
15
+ className: cn("tangle-prose max-w-none text-sm", className),
16
+ children: /* @__PURE__ */ jsx(ReactMarkdown, {
17
+ remarkPlugins: [remarkGfm],
18
+ rehypePlugins: [rehypeSanitize],
19
+ urlTransform,
20
+ components: {
21
+ pre({ children: preChildren }) {
22
+ return /* @__PURE__ */ jsx(Fragment$1, { children: preChildren });
23
+ },
24
+ code({ className: codeClass, children: codeChildren, ...rest }) {
25
+ const language = /language-(\w+)/.exec(codeClass || "")?.[1];
26
+ const code = String(codeChildren).replace(/\n$/, "");
27
+ if (!language && !code.includes("\n")) return /* @__PURE__ */ jsx("code", {
28
+ className: cn("px-1.5 py-0.5 rounded border border-border bg-card text-[var(--code-keyword)] text-[0.85em] font-mono", codeClass),
29
+ ...rest,
30
+ children: codeChildren
31
+ });
32
+ return /* @__PURE__ */ jsx(CodeBlock, {
33
+ code,
34
+ language,
35
+ children: /* @__PURE__ */ jsx(CopyButton, { text: code })
36
+ });
37
+ }
38
+ },
39
+ children
40
+ })
41
+ });
42
+ });
43
+ Markdown.displayName = "Markdown";
44
+ //#endregion
45
+ export { Markdown as t };
@@ -1,18 +1,3 @@
1
- import * as React from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { UrlTransform } from 'react-markdown';
4
- export { C as CodeBlock, a as CodeBlockProps, b as CopyButton } from './code-block-0kSpWMnf.js';
5
-
6
- interface MarkdownProps {
7
- children: string;
8
- className?: string;
9
- /** Transform parsed link and image URLs before sanitisation. */
10
- urlTransform?: UrlTransform;
11
- }
12
- /**
13
- * Renders Markdown content with GFM support, XSS sanitisation, and
14
- * custom code block rendering via our CodeBlock component.
15
- */
16
- declare const Markdown: React.MemoExoticComponent<({ children, className, urlTransform }: MarkdownProps) => react_jsx_runtime.JSX.Element>;
17
-
18
- export { Markdown, type MarkdownProps };
1
+ import { n as CodeBlockProps, r as CopyButton, t as CodeBlock } from "./code-block-B9miUPht.js";
2
+ import { n as MarkdownProps, t as Markdown } from "./index-Cq-EJzqW.js";
3
+ export { CodeBlock, type CodeBlockProps, CopyButton, Markdown, type MarkdownProps };
package/dist/markdown.js CHANGED
@@ -1,14 +1,3 @@
1
- import "./chunk-5Z5ZYMOJ.js";
2
- import {
3
- Markdown
4
- } from "./chunk-EOAX2ENE.js";
5
- import {
6
- CodeBlock,
7
- CopyButton
8
- } from "./chunk-WUQDUBJG.js";
9
- import "./chunk-RQHJBTEU.js";
10
- export {
11
- CodeBlock,
12
- CopyButton,
13
- Markdown
14
- };
1
+ import { n as CopyButton, t as CodeBlock } from "./code-block-CngSn37j.js";
2
+ import { t as Markdown } from "./markdown-BprL96Gl.js";
3
+ export { CodeBlock, CopyButton, Markdown };
@@ -0,0 +1,16 @@
1
+ //#region src/types/message.d.ts
2
+ /** A single message in a chat session. */
3
+ interface SessionMessage {
4
+ id: string;
5
+ role: 'user' | 'assistant' | 'system';
6
+ sessionID?: string;
7
+ time?: {
8
+ created?: number;
9
+ updated?: number;
10
+ completed?: number;
11
+ };
12
+ /** Monotonically increasing insertion index for stable ordering. */
13
+ _insertionIndex?: number;
14
+ }
15
+ //#endregion
16
+ export { SessionMessage as t };
package/dist/nav.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { LinkProps, NavLinkProps } from 'react-router';
3
- export { LinkProps, NavLinkProps } from 'react-router';
4
-
1
+ import { LinkProps, LinkProps as LinkProps$1, NavLinkProps, NavLinkProps as NavLinkProps$1 } from "react-router";
2
+ //#region src/nav/index.d.ts
5
3
  /**
6
4
  * Navigation primitives that make agent-app products feel snappy by default.
7
5
  *
@@ -18,8 +16,8 @@ export { LinkProps, NavLinkProps } from 'react-router';
18
16
  * wins (the spread is applied after the default).
19
17
  */
20
18
  /** `react-router` `<Link>` with `prefetch="intent"` on by default. */
21
- declare function Link({ prefetch, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
19
+ export declare function Link({ prefetch, ...props }: LinkProps$1): import("react").JSX.Element;
22
20
  /** `react-router` `<NavLink>` with `prefetch="intent"` on by default. */
23
- declare function NavLink({ prefetch, ...props }: NavLinkProps): react_jsx_runtime.JSX.Element;
24
-
25
- export { Link, NavLink };
21
+ export declare function NavLink({ prefetch, ...props }: NavLinkProps$1): import("react").JSX.Element;
22
+ //#endregion
23
+ export type { LinkProps, NavLinkProps };
package/dist/nav.js CHANGED
@@ -1,16 +1,34 @@
1
- // src/nav/index.tsx
2
- import {
3
- Link as RRLink,
4
- NavLink as RRNavLink
5
- } from "react-router";
6
1
  import { jsx } from "react/jsx-runtime";
2
+ import { Link as Link$1, NavLink as NavLink$1 } from "react-router";
3
+ //#region src/nav/index.tsx
4
+ /**
5
+ * Navigation primitives that make agent-app products feel snappy by default.
6
+ *
7
+ * The dominant source of the "1–2s when I click through pages" latency in the
8
+ * fleet is NOT slow queries (route loaders' D1 indexes already cover their
9
+ * filters) — it is that every click is a COLD loader round-trip the user waits
10
+ * on, because bare `<Link>`s do no prefetching. React Router can fire the
11
+ * target route's loader on hover/focus (`prefetch="intent"`), overlapping the
12
+ * round-trip with the user's mouse travel so the transition feels instant.
13
+ *
14
+ * These wrappers default `prefetch="intent"` so a product gets that behaviour
15
+ * by importing the shared `<Link>` instead of remembering the flag on every
16
+ * nav element. The default is overridable — a caller that passes `prefetch`
17
+ * wins (the spread is applied after the default).
18
+ */
19
+ /** `react-router` `<Link>` with `prefetch="intent"` on by default. */
7
20
  function Link({ prefetch = "intent", ...props }) {
8
- return /* @__PURE__ */ jsx(RRLink, { prefetch, ...props });
21
+ return /* @__PURE__ */ jsx(Link$1, {
22
+ prefetch,
23
+ ...props
24
+ });
9
25
  }
26
+ /** `react-router` `<NavLink>` with `prefetch="intent"` on by default. */
10
27
  function NavLink({ prefetch = "intent", ...props }) {
11
- return /* @__PURE__ */ jsx(RRNavLink, { prefetch, ...props });
28
+ return /* @__PURE__ */ jsx(NavLink$1, {
29
+ prefetch,
30
+ ...props
31
+ });
12
32
  }
13
- export {
14
- Link,
15
- NavLink
16
- };
33
+ //#endregion
34
+ export { Link, NavLink };