@tangle-network/ui 11.10.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 (130) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/active-sessions-store-Gt1R0rFG.js +262 -0
  3. package/dist/{active-sessions-store-CeOmXgv5.d.ts → active-sessions-store-nl70ZnMC.d.ts} +40 -41
  4. package/dist/artifact-pane-BL_DFWNl.d.ts +32 -0
  5. package/dist/artifact-pane-DMXT9a8U.js +70 -0
  6. package/dist/auth-DixfCMCk.js +154 -0
  7. package/dist/auth.d.ts +2 -74
  8. package/dist/auth.js +2 -16
  9. package/dist/branding-26d5ARIr.d.ts +14 -0
  10. package/dist/button-uhNnwdsD.js +78 -0
  11. package/dist/button-yoIv77e2.d.ts +16 -0
  12. package/dist/chat-CPLL0Fd9.js +667 -0
  13. package/dist/chat.d.ts +2 -201
  14. package/dist/chat.js +2 -31
  15. package/dist/code-block-B9miUPht.d.ts +23 -0
  16. package/dist/code-block-CngSn37j.js +165 -0
  17. package/dist/diff-preview-cySuqowW.js +533 -0
  18. package/dist/document-editor-pane-BcoABlhn.d.ts +131 -0
  19. package/dist/document-editor-pane-Cz6oEF1o.js +1287 -0
  20. package/dist/dropdown-menu-BpcLa5vF.js +101 -0
  21. package/dist/editor.d.ts +76 -78
  22. package/dist/editor.js +2 -34
  23. package/dist/file-format-BgXbr-Ib.js +160 -0
  24. package/dist/files-CYlOo0mE.js +743 -0
  25. package/dist/files.d.ts +2 -243
  26. package/dist/files.js +3 -41
  27. package/dist/focus-Cw02pNSr.js +56 -0
  28. package/dist/format-DfcLWqMa.js +54 -0
  29. package/dist/hooks.d.ts +30 -37
  30. package/dist/hooks.js +111 -46
  31. package/dist/index-2UntyjBb.d.ts +52 -0
  32. package/dist/index-COgqsFAQ.d.ts +42 -0
  33. package/dist/index-CPDET_s1.d.ts +549 -0
  34. package/dist/index-CUhfHT_V.d.ts +204 -0
  35. package/dist/index-Cg6gYAqh.d.ts +73 -0
  36. package/dist/index-Cq-EJzqW.d.ts +16 -0
  37. package/dist/index-DhYmSaLF.d.ts +245 -0
  38. package/dist/index-DjKxO357.d.ts +128 -0
  39. package/dist/index-b56ew9aF.d.ts +107 -0
  40. package/dist/index.d.ts +26 -43
  41. package/dist/index.js +35 -472
  42. package/dist/markdown-BprL96Gl.js +45 -0
  43. package/dist/markdown.d.ts +3 -18
  44. package/dist/markdown.js +3 -15
  45. package/dist/message-vhUI0c5G.d.ts +16 -0
  46. package/dist/nav.d.ts +6 -8
  47. package/dist/nav.js +29 -11
  48. package/dist/openui-artifact-renderer-D3E5bIAI.d.ts +114 -0
  49. package/dist/openui-artifact-renderer-DT4xbvWt.js +266 -0
  50. package/dist/openui.d.ts +2 -115
  51. package/dist/openui.js +2 -13
  52. package/dist/parts-5mhy9yJ3.d.ts +37 -0
  53. package/dist/primitives-DE-blUz-.js +1239 -0
  54. package/dist/primitives.d.ts +5 -525
  55. package/dist/primitives.js +9 -212
  56. package/dist/redaction-CGGB2ENG.js +74 -0
  57. package/dist/redaction.d.ts +2 -42
  58. package/dist/redaction.js +2 -7
  59. package/dist/run-OyWmIDqu.d.ts +41 -0
  60. package/dist/run-ZsIKPA6J.js +17 -0
  61. package/dist/run-group-D1InSdQu.js +410 -0
  62. package/dist/run.d.ts +3 -126
  63. package/dist/run.js +5 -40
  64. package/dist/sdk-hooks.d.ts +2 -285
  65. package/dist/sdk-hooks.js +3 -36
  66. package/dist/stores.d.ts +13 -14
  67. package/dist/stores.js +34 -76
  68. package/dist/table-DHyqDPbU.js +146 -0
  69. package/dist/tabs-ujuqAdtb.js +40 -0
  70. package/dist/text-shimmer-BUUo6I-g.js +64 -0
  71. package/dist/tool-call-feed-BeB1_4pX.d.ts +47 -0
  72. package/dist/tool-call-feed-C1W1N54c.js +109 -0
  73. package/dist/tool-call-step-Bi3_YJRV.js +434 -0
  74. package/dist/tool-display-BAuAVa43.js +158 -0
  75. package/dist/{tool-display-z4JcDmMQ.d.ts → tool-display-DgmL5rIU.d.ts} +16 -16
  76. package/dist/tool-previews.d.ts +2 -48
  77. package/dist/tool-previews.js +2 -23
  78. package/dist/types.d.ts +6 -19
  79. package/dist/types.js +0 -1
  80. package/dist/use-auto-scroll-C5Pjeqon.js +153 -0
  81. package/dist/use-sse-stream-BjVBDbxK.js +884 -0
  82. package/dist/use-sse-stream-Dm6R5YWz.d.ts +282 -0
  83. package/dist/utils-Bl_CZ0Qp.js +37 -0
  84. package/dist/{chunk-RQHJBTEU.js → utils-C_uf36nf.js} +4 -6
  85. package/dist/utils.d.ts +2 -104
  86. package/dist/utils.js +6 -44
  87. package/package.json +39 -41
  88. package/dist/artifact-pane-DpuWcAiF.d.ts +0 -33
  89. package/dist/button-CMQuQEW_.d.ts +0 -17
  90. package/dist/chunk-34A66VBG.js +0 -214
  91. package/dist/chunk-3OI2QKFD.js +0 -0
  92. package/dist/chunk-3XXBZL53.js +0 -174
  93. package/dist/chunk-42PAH5D2.js +0 -112
  94. package/dist/chunk-4CLN43XT.js +0 -45
  95. package/dist/chunk-55WHV7SS.js +0 -1604
  96. package/dist/chunk-565EATZZ.js +0 -156
  97. package/dist/chunk-5Z5ZYMOJ.js +0 -0
  98. package/dist/chunk-6BGQA4BQ.js +0 -0
  99. package/dist/chunk-BEBXZPHW.js +0 -299
  100. package/dist/chunk-C5WF4WMV.js +0 -734
  101. package/dist/chunk-HFL6R6IF.js +0 -37
  102. package/dist/chunk-HGML45QH.js +0 -104
  103. package/dist/chunk-HMAPIH7L.js +0 -595
  104. package/dist/chunk-K5XFRUS4.js +0 -1401
  105. package/dist/chunk-KFQGHD73.js +0 -198
  106. package/dist/chunk-L57WRIND.js +0 -59
  107. package/dist/chunk-LTEKI7YJ.js +0 -59
  108. package/dist/chunk-M3QZK62R.js +0 -233
  109. package/dist/chunk-ND3ZFXQK.js +0 -179
  110. package/dist/chunk-OEX7NZE3.js +0 -321
  111. package/dist/chunk-OL5GYLHV.js +0 -60
  112. package/dist/chunk-QGFYBNSO.js +0 -133
  113. package/dist/chunk-R7B3UWPF.js +0 -550
  114. package/dist/chunk-R7SUY4E3.js +0 -65
  115. package/dist/chunk-REJESC5U.js +0 -117
  116. package/dist/chunk-RQGKSCEZ.js +0 -0
  117. package/dist/chunk-SNLR2AEA.js +0 -40
  118. package/dist/chunk-WKWBTL2V.js +0 -15
  119. package/dist/chunk-X7CU776B.js +0 -1048
  120. package/dist/chunk-XU3HB5QL.js +0 -127
  121. package/dist/chunk-YTO5V6QS.js +0 -19
  122. package/dist/chunk-YU4E5J2N.js +0 -437
  123. package/dist/chunk-YZ6AK25N.js +0 -886
  124. package/dist/code-block-0kSpWMnf.d.ts +0 -25
  125. package/dist/document-editor-pane-IAEQn_Dl.d.ts +0 -128
  126. package/dist/document-editor-pane-QHDOBA43.js +0 -13
  127. package/dist/message-BHWbxBtT.d.ts +0 -15
  128. package/dist/parts-dj7AcUg0.d.ts +0 -36
  129. package/dist/run-PfLmDAox.d.ts +0 -41
  130. package/dist/tool-call-feed-D9iofJgW.d.ts +0 -46
package/dist/index.js CHANGED
@@ -1,472 +1,35 @@
1
- import {
2
- RedactedDocument
3
- } from "./chunk-HGML45QH.js";
4
- import {
5
- AuthHeader,
6
- GitHubLoginButton,
7
- LoginLayout,
8
- UserMenu
9
- } from "./chunk-KFQGHD73.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-X7CU776B.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-SNLR2AEA.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-55WHV7SS.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-C5WF4WMV.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-QGFYBNSO.js";
162
- import {
163
- InlineThinkingItem,
164
- RunGroup
165
- } from "./chunk-YU4E5J2N.js";
166
- import {
167
- ExpandedToolDetail,
168
- InlineToolItem,
169
- RunRowShell,
170
- RunRowStatusDot
171
- } from "./chunk-R7B3UWPF.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-HMAPIH7L.js";
187
- import {
188
- TextShimmer
189
- } from "./chunk-L57WRIND.js";
190
- import "./chunk-RQGKSCEZ.js";
191
- import {
192
- OpenUIArtifactRenderer
193
- } from "./chunk-BEBXZPHW.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-M3QZK62R.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-YZ6AK25N.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-42PAH5D2.js";
241
- import {
242
- Tabs,
243
- TabsContent,
244
- TabsList,
245
- TabsTrigger
246
- } from "./chunk-R7SUY4E3.js";
247
- import {
248
- ArtifactPane
249
- } from "./chunk-LTEKI7YJ.js";
250
- import "./chunk-5Z5ZYMOJ.js";
251
- import {
252
- Markdown
253
- } from "./chunk-OL5GYLHV.js";
254
- import {
255
- CodeBlock,
256
- CopyButton
257
- } from "./chunk-3XXBZL53.js";
258
- import {
259
- focusField,
260
- focusFieldInvalid,
261
- focusFieldWithin,
262
- focusRing,
263
- focusRingInset
264
- } from "./chunk-WKWBTL2V.js";
265
- import {
266
- cn
267
- } from "./chunk-RQHJBTEU.js";
268
- export {
269
- AgentTimeline,
270
- ArtifactPane,
271
- AuthHeader,
272
- Avatar,
273
- AvatarFallback,
274
- AvatarImage,
275
- Badge,
276
- Button,
277
- CSV_PREVIEW_ROW_LIMIT,
278
- Card,
279
- CardContent,
280
- CardDescription,
281
- CardFooter,
282
- CardHeader,
283
- CardTitle,
284
- ChatContainer,
285
- ChatMessage,
286
- CodeBlock,
287
- CommandPreview,
288
- CopyButton,
289
- Dialog,
290
- DialogClose,
291
- DialogContent,
292
- DialogDescription,
293
- DialogFooter,
294
- DialogHeader,
295
- DialogOverlay,
296
- DialogPortal,
297
- DialogTitle,
298
- DialogTrigger,
299
- DiffPreview,
300
- DropZone,
301
- DropdownMenu,
302
- DropdownMenuCheckboxItem,
303
- DropdownMenuContent,
304
- DropdownMenuGroup,
305
- DropdownMenuItem,
306
- DropdownMenuLabel,
307
- DropdownMenuPortal,
308
- DropdownMenuRadioGroup,
309
- DropdownMenuRadioItem,
310
- DropdownMenuSeparator,
311
- DropdownMenuShortcut,
312
- DropdownMenuSub,
313
- DropdownMenuSubContent,
314
- DropdownMenuSubTrigger,
315
- DropdownMenuTrigger,
316
- EmptyState,
317
- ExpandedToolDetail,
318
- FileArtifactPane,
319
- FilePreview,
320
- FileTabs,
321
- FileTree,
322
- FilterField,
323
- GitHubLoginButton,
324
- GlobResultsPreview,
325
- GrepResultsPreview,
326
- InlineCode,
327
- InlineThinkingItem,
328
- InlineToolItem,
329
- Input,
330
- Label,
331
- LiveDuration,
332
- LoginLayout,
333
- Logo,
334
- Markdown,
335
- MessageList,
336
- Metric,
337
- MetricStrip,
338
- OpenUIArtifactRenderer,
339
- PageHeader,
340
- Progress,
341
- QuestionPreview,
342
- RealtimeSessionRegistry,
343
- RedactedDocument,
344
- RichFileTree,
345
- RunGroup,
346
- RunRowShell,
347
- RunRowStatusDot,
348
- SegmentedControl,
349
- Select,
350
- SelectContent,
351
- SelectGroup,
352
- SelectItem,
353
- SelectLabel,
354
- SelectScrollDownButton,
355
- SelectScrollUpButton,
356
- SelectSeparator,
357
- SelectTrigger,
358
- SelectValue,
359
- SidebarDropZone,
360
- Skeleton,
361
- SkeletonCard,
362
- SkeletonTable,
363
- StatCard,
364
- StatusPill,
365
- Switch,
366
- TOOL_CATEGORY_ICONS,
367
- Table,
368
- TableBody,
369
- TableCaption,
370
- TableCell,
371
- TableFooter,
372
- TableHead,
373
- TableHeader,
374
- TableRow,
375
- Tabs,
376
- TabsContent,
377
- TabsList,
378
- TabsTrigger,
379
- TangleKnot,
380
- TerminalCursor,
381
- TerminalDisplay,
382
- TerminalInput,
383
- TerminalLine,
384
- TextShimmer,
385
- Textarea,
386
- ThemeToggle,
387
- ThinkingIndicator,
388
- ToastContainer,
389
- ToastProvider,
390
- ToolCallFeed,
391
- Toolbar,
392
- UploadProgress,
393
- UserMenu,
394
- UserMessage,
395
- WebSearchPreview,
396
- WriteFilePreview,
397
- activeSessionsAtom,
398
- addMessage,
399
- addParts,
400
- badgeVariants,
401
- bumpActiveSessionActivity,
402
- buttonVariants,
403
- clearChat,
404
- cn,
405
- copyText,
406
- createAuthFetcher,
407
- detectFileFormat,
408
- fileExtension,
409
- filterFileTree,
410
- focusField,
411
- focusFieldInvalid,
412
- focusFieldWithin,
413
- focusRing,
414
- focusRingInset,
415
- formatBytes,
416
- formatDuration,
417
- formatUptime,
418
- getActiveSession,
419
- getAllActiveSessions,
420
- getAllProjectActivity,
421
- getCodeLanguage,
422
- getFormatLabel,
423
- getSessionsByActivity,
424
- getSessionsForNavbar,
425
- getSessionsForProject,
426
- getSyntaxLanguage,
427
- getToolCategory,
428
- getToolDisplayMetadata,
429
- getToolErrorText,
430
- getTotalRunningSessionCount,
431
- hasBackgroundRunningSessions,
432
- isStreamingAtom,
433
- messagesAtom,
434
- parseCsv,
435
- parseToolEvent,
436
- partMapAtom,
437
- registerActiveSession,
438
- resetActiveSessions,
439
- resolveFilePreviewKind,
440
- setActiveSessionAttention,
441
- setActiveSessionConnection,
442
- setActiveSessionError,
443
- setActiveSessionRunning,
444
- setForegroundActiveSession,
445
- timeAgo,
446
- truncateText,
447
- unregisterActiveSession,
448
- updateActiveSessionMeta,
449
- updatePart,
450
- useActiveSession,
451
- useActiveSessions,
452
- useActiveSessionsState,
453
- useApiKey,
454
- useAuth,
455
- useAutoScroll,
456
- useDropdownMenu,
457
- useHasBackgroundRunningSessions,
458
- useLiveTime,
459
- useNavbarSessions,
460
- useProjectActivity,
461
- useProjectSessions,
462
- useRealtimeSession,
463
- useRunCollapseState,
464
- useRunGroups,
465
- useSSEStream,
466
- useSdkSession,
467
- useSessionsByActivity,
468
- useTheme,
469
- useToast,
470
- useToolCallStream,
471
- useTotalRunningSessions
472
- };
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,15 +1,3 @@
1
- import "./chunk-5Z5ZYMOJ.js";
2
- import {
3
- Markdown
4
- } from "./chunk-OL5GYLHV.js";
5
- import {
6
- CodeBlock,
7
- CopyButton
8
- } from "./chunk-3XXBZL53.js";
9
- import "./chunk-WKWBTL2V.js";
10
- import "./chunk-RQHJBTEU.js";
11
- export {
12
- CodeBlock,
13
- CopyButton,
14
- Markdown
15
- };
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 };