@tangle-network/sandbox-ui 0.14.0 → 0.15.2
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.
- package/dist/auth.d.ts +1 -74
- package/dist/auth.js +1 -4
- package/dist/chat.d.ts +1 -136
- package/dist/chat.js +2 -15
- package/dist/chunk-2BUPSB7O.js +0 -0
- package/dist/chunk-3J6FG3FJ.js +18 -0
- package/dist/chunk-76IQLPW2.js +206 -0
- package/dist/chunk-7ZA5SEK3.js +239 -0
- package/dist/chunk-AZ3AWMTM.js +8 -0
- package/dist/chunk-CMY7W45U.js +380 -0
- package/dist/chunk-EI44GEQ5.js +6 -0
- package/dist/chunk-ENMWGVDL.js +858 -0
- package/dist/{chunk-5OQ27N57.js → chunk-GPT7VKK6.js} +34 -38
- package/dist/chunk-HLZTKSGT.js +2652 -0
- package/dist/chunk-JBGKGLD7.js +16 -0
- package/dist/chunk-NJNME4J4.js +14 -0
- package/dist/chunk-QPAJR74X.js +20 -0
- package/dist/chunk-TK46XFLM.js +28 -0
- package/dist/chunk-WID73FPH.js +89 -0
- package/dist/chunk-YVXK4XRO.js +30 -0
- package/dist/dashboard.d.ts +450 -4
- package/dist/dashboard.js +20 -891
- package/dist/editor.d.ts +1 -120
- package/dist/editor.js +1 -5
- package/dist/files.d.ts +1 -129
- package/dist/files.js +2 -7
- package/dist/globals.css +2 -1265
- package/dist/hooks.d.ts +114 -11
- package/dist/hooks.js +17 -88
- package/dist/index.d.ts +24 -99
- package/dist/index.js +251 -256
- package/dist/markdown.d.ts +1 -29
- package/dist/markdown.js +2 -2
- package/dist/openui.d.ts +8 -115
- package/dist/openui.js +1 -6
- package/dist/pages.d.ts +13 -12
- package/dist/pages.js +91 -115
- package/dist/primitives.d.ts +14 -49
- package/dist/primitives.js +69 -77
- package/dist/run.d.ts +1 -14
- package/dist/run.js +2 -22
- package/dist/sdk-hooks.d.ts +3 -283
- package/dist/sdk-hooks.js +10 -14
- package/dist/stores.d.ts +2 -14
- package/dist/stores.js +11 -39
- package/dist/styles.css +2 -1265
- package/dist/template-card-DStb8boW.d.ts +183 -0
- package/dist/types.d.ts +11 -8
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +1 -44
- package/dist/utils.js +6 -12
- package/dist/workspace.d.ts +5 -10
- package/dist/workspace.js +3 -19
- package/package.json +19 -54
- package/dist/active-sessions-store-CeOmXgv5.d.ts +0 -85
- package/dist/artifact-pane-Bh45Ssco.d.ts +0 -24
- package/dist/branding-DCi5VEik.d.ts +0 -13
- package/dist/button-CMQuQEW_.d.ts +0 -17
- package/dist/chat-container-f4yEs6KN.d.ts +0 -106
- package/dist/chunk-34A66VBG.js +0 -214
- package/dist/chunk-34I7UFSX.js +0 -92
- package/dist/chunk-36QY2W5G.js +0 -802
- package/dist/chunk-4CLN43XT.js +0 -45
- package/dist/chunk-54SQQMMM.js +0 -156
- package/dist/chunk-66EZOYZR.js +0 -102
- package/dist/chunk-BX6AQMUS.js +0 -183
- package/dist/chunk-DI3NZ5ZX.js +0 -192
- package/dist/chunk-DPGIXDAI.js +0 -220
- package/dist/chunk-DXMIEK4K.js +0 -1426
- package/dist/chunk-GSZA3TSY.js +0 -79
- package/dist/chunk-HB5Y37YU.js +0 -54
- package/dist/chunk-LQNEZDRM.js +0 -109
- package/dist/chunk-MA7YKRUP.js +0 -131
- package/dist/chunk-MKTSMWVD.js +0 -109
- package/dist/chunk-MQXABZTB.js +0 -1348
- package/dist/chunk-MT5FJ3ZT.js +0 -186
- package/dist/chunk-NKUPJC34.js +0 -2070
- package/dist/chunk-OEX7NZE3.js +0 -321
- package/dist/chunk-OKLQVY3Y.js +0 -139
- package/dist/chunk-Q56BYXQF.js +0 -61
- package/dist/chunk-QD4QE5P5.js +0 -40
- package/dist/chunk-QDH5GEGY.js +0 -630
- package/dist/chunk-QID2OOMG.js +0 -133
- package/dist/chunk-QMU2PWOU.js +0 -493
- package/dist/chunk-RQHJBTEU.js +0 -10
- package/dist/chunk-T7HMZEVO.js +0 -216
- package/dist/chunk-U6QTHMY6.js +0 -1290
- package/dist/chunk-US6JKJKH.js +0 -124
- package/dist/chunk-VX3XOUEB.js +0 -63
- package/dist/chunk-XLG757B6.js +0 -933
- package/dist/chunk-ZMNSRDMH.js +0 -127
- package/dist/chunk-ZNCEM5CD.js +0 -316
- package/dist/document-editor-pane-A70-EhdQ.d.ts +0 -124
- package/dist/document-editor-pane-TLPVRBBU.js +0 -11
- package/dist/expanded-tool-detail-Dh99mcbY.d.ts +0 -63
- package/dist/file-tabs-BLfxfmAH.d.ts +0 -51
- package/dist/parts-CyGkM6Fp.d.ts +0 -50
- package/dist/run-CtFZ6s-D.d.ts +0 -41
- package/dist/sidebar-drop-zone-tDBsuOH5.d.ts +0 -301
- package/dist/sidecar-CFU2W9j1.d.ts +0 -8
- package/dist/template-card-BAtvcAkU.d.ts +0 -18
- package/dist/tool-call-feed-Bs3MyQMT.d.ts +0 -68
- package/dist/tool-display-Ct9nFAzJ.d.ts +0 -32
- package/dist/usage-chart-CPTcNlGs.d.ts +0 -73
- package/dist/use-sandbox-metrics-DWc0k9Xm.d.ts +0 -153
- package/dist/variant-list-BrHYcBCk.d.ts +0 -540
package/dist/index.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import "./chunk-2BUPSB7O.js";
|
|
1
2
|
import {
|
|
3
|
+
TOOL_CATEGORY_ICONS,
|
|
4
|
+
cn,
|
|
2
5
|
copyText,
|
|
3
|
-
|
|
4
|
-
|
|
6
|
+
formatBytes,
|
|
7
|
+
formatDuration,
|
|
8
|
+
formatUptime,
|
|
9
|
+
getToolCategory,
|
|
10
|
+
getToolDisplayMetadata,
|
|
11
|
+
getToolErrorText,
|
|
12
|
+
timeAgo,
|
|
13
|
+
truncateText
|
|
14
|
+
} from "./chunk-TK46XFLM.js";
|
|
5
15
|
import {
|
|
6
16
|
CollaboratorsList,
|
|
7
17
|
DocumentEditorPane,
|
|
@@ -15,85 +25,100 @@ import {
|
|
|
15
25
|
useEditorConnection,
|
|
16
26
|
useEditorContext,
|
|
17
27
|
useYjsState
|
|
18
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YVXK4XRO.js";
|
|
19
29
|
import {
|
|
20
30
|
AuthHeader,
|
|
21
31
|
GitHubLoginButton,
|
|
22
32
|
LoginLayout,
|
|
23
33
|
UserMenu
|
|
24
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NJNME4J4.js";
|
|
25
35
|
import {
|
|
36
|
+
RealtimeSessionRegistry,
|
|
26
37
|
createAuthFetcher,
|
|
27
38
|
useApiKey,
|
|
28
39
|
useAuth,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
import {
|
|
33
|
-
usePtySession
|
|
34
|
-
} from "./chunk-AG7QDC2Q.js";
|
|
35
|
-
import {
|
|
36
|
-
RealtimeSessionRegistry,
|
|
40
|
+
useAutoScroll,
|
|
41
|
+
useCreateSession,
|
|
42
|
+
useDeleteSession,
|
|
37
43
|
useDropdownMenu,
|
|
44
|
+
useLiveTime,
|
|
38
45
|
useRealtimeSession,
|
|
46
|
+
useRenameSession,
|
|
47
|
+
useRunCollapseState,
|
|
48
|
+
useRunGroups,
|
|
39
49
|
useSSEStream,
|
|
50
|
+
useSandboxMetrics,
|
|
40
51
|
useSdkSession,
|
|
41
|
-
|
|
42
|
-
useSidecarAuth,
|
|
52
|
+
useSessions,
|
|
43
53
|
useToolCallStream
|
|
44
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-76IQLPW2.js";
|
|
45
55
|
import {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
Select,
|
|
49
|
-
SelectContent,
|
|
50
|
-
SelectGroup,
|
|
51
|
-
SelectItem,
|
|
52
|
-
SelectLabel,
|
|
53
|
-
SelectScrollDownButton,
|
|
54
|
-
SelectScrollUpButton,
|
|
55
|
-
SelectSeparator,
|
|
56
|
-
SelectTrigger,
|
|
57
|
-
SelectValue,
|
|
58
|
-
SidebarDropZone,
|
|
59
|
-
Switch,
|
|
60
|
-
TerminalCursor,
|
|
61
|
-
TerminalDisplay,
|
|
62
|
-
TerminalInput,
|
|
63
|
-
TerminalLine,
|
|
64
|
-
ToastContainer,
|
|
65
|
-
ToastProvider,
|
|
66
|
-
UploadProgress,
|
|
67
|
-
useToast
|
|
68
|
-
} from "./chunk-36QY2W5G.js";
|
|
69
|
-
import {
|
|
70
|
-
Dialog,
|
|
71
|
-
DialogClose,
|
|
72
|
-
DialogContent,
|
|
73
|
-
DialogDescription,
|
|
74
|
-
DialogFooter,
|
|
75
|
-
DialogHeader,
|
|
76
|
-
DialogOverlay,
|
|
77
|
-
DialogPortal,
|
|
78
|
-
DialogTitle,
|
|
79
|
-
DialogTrigger
|
|
80
|
-
} from "./chunk-US6JKJKH.js";
|
|
56
|
+
usePtySession
|
|
57
|
+
} from "./chunk-AG7QDC2Q.js";
|
|
81
58
|
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
59
|
+
useSessionStream,
|
|
60
|
+
useSidecarAuth
|
|
61
|
+
} from "./chunk-CMY7W45U.js";
|
|
62
|
+
import {
|
|
63
|
+
activeSessionsAtom,
|
|
64
|
+
addMessage,
|
|
65
|
+
addParts,
|
|
66
|
+
bumpActiveSessionActivity,
|
|
67
|
+
clearChat,
|
|
68
|
+
connectSession,
|
|
69
|
+
disconnectSession,
|
|
70
|
+
getActiveSession,
|
|
71
|
+
getAllActiveSessions,
|
|
72
|
+
getAllProjectActivity,
|
|
73
|
+
getSessionsByActivity,
|
|
74
|
+
getSessionsForNavbar,
|
|
75
|
+
getSessionsForProject,
|
|
76
|
+
getTotalRunningSessionCount,
|
|
77
|
+
hasBackgroundRunningSessions,
|
|
78
|
+
isStreamingAtom,
|
|
79
|
+
messagesAtom,
|
|
80
|
+
partMapAtom,
|
|
81
|
+
registerActiveSession,
|
|
82
|
+
resetActiveSessions,
|
|
83
|
+
sessionAtom,
|
|
84
|
+
setActiveSessionAttention,
|
|
85
|
+
setActiveSessionConnection,
|
|
86
|
+
setActiveSessionError,
|
|
87
|
+
setActiveSessionRunning,
|
|
88
|
+
setForegroundActiveSession,
|
|
89
|
+
unregisterActiveSession,
|
|
90
|
+
updateActiveSessionMeta,
|
|
91
|
+
updatePart,
|
|
92
|
+
useActiveSession,
|
|
93
|
+
useActiveSessions,
|
|
94
|
+
useActiveSessionsState,
|
|
95
|
+
useHasBackgroundRunningSessions,
|
|
96
|
+
useNavbarSessions,
|
|
97
|
+
useProjectActivity,
|
|
98
|
+
useProjectSessions,
|
|
99
|
+
useSessionsByActivity,
|
|
100
|
+
useTotalRunningSessions
|
|
101
|
+
} from "./chunk-WID73FPH.js";
|
|
87
102
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
103
|
+
AgentTimeline,
|
|
104
|
+
ChatContainer,
|
|
105
|
+
ChatInput,
|
|
106
|
+
ChatMessage,
|
|
107
|
+
MessageList,
|
|
108
|
+
ThinkingIndicator,
|
|
109
|
+
UserMessage
|
|
110
|
+
} from "./chunk-QPAJR74X.js";
|
|
90
111
|
import {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
112
|
+
ExpandedToolDetail,
|
|
113
|
+
InlineThinkingItem,
|
|
114
|
+
InlineToolItem,
|
|
115
|
+
LiveDuration,
|
|
116
|
+
RunGroup
|
|
117
|
+
} from "./chunk-JBGKGLD7.js";
|
|
94
118
|
import {
|
|
95
119
|
AgentWorkbench,
|
|
96
120
|
ApprovalQueue,
|
|
121
|
+
ArtifactPane,
|
|
97
122
|
AuditResults,
|
|
98
123
|
CalendarView,
|
|
99
124
|
DirectoryPane,
|
|
@@ -106,101 +131,37 @@ import {
|
|
|
106
131
|
TaskBoard,
|
|
107
132
|
TerminalPanel,
|
|
108
133
|
WorkspaceLayout
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import "./chunk-OEX7NZE3.js";
|
|
111
|
-
import {
|
|
112
|
-
EmptyState,
|
|
113
|
-
Input,
|
|
114
|
-
Textarea
|
|
115
|
-
} from "./chunk-MA7YKRUP.js";
|
|
116
|
-
import {
|
|
117
|
-
AgentTimeline,
|
|
118
|
-
ChatContainer,
|
|
119
|
-
ChatInput,
|
|
120
|
-
MessageList,
|
|
121
|
-
ThinkingIndicator,
|
|
122
|
-
UserMessage
|
|
123
|
-
} from "./chunk-XLG757B6.js";
|
|
134
|
+
} from "./chunk-GPT7VKK6.js";
|
|
124
135
|
import {
|
|
125
|
-
useAutoScroll,
|
|
126
|
-
useRunCollapseState,
|
|
127
|
-
useRunGroups
|
|
128
|
-
} from "./chunk-54SQQMMM.js";
|
|
129
|
-
import {
|
|
130
|
-
CommandPreview,
|
|
131
|
-
DiffPreview,
|
|
132
|
-
ExpandedToolDetail,
|
|
133
|
-
GlobResultsPreview,
|
|
134
|
-
GrepResultsPreview,
|
|
135
|
-
InlineThinkingItem,
|
|
136
|
-
InlineToolItem,
|
|
137
|
-
QuestionPreview,
|
|
138
|
-
RunGroup,
|
|
139
|
-
WebSearchPreview,
|
|
140
|
-
WriteFilePreview
|
|
141
|
-
} from "./chunk-MQXABZTB.js";
|
|
142
|
-
import {
|
|
143
|
-
formatBytes,
|
|
144
|
-
formatDuration,
|
|
145
|
-
formatUptime,
|
|
146
|
-
truncateText
|
|
147
|
-
} from "./chunk-4CLN43XT.js";
|
|
148
|
-
import {
|
|
149
|
-
ToolCallGroup,
|
|
150
|
-
ToolCallStep
|
|
151
|
-
} from "./chunk-MT5FJ3ZT.js";
|
|
152
|
-
import {
|
|
153
|
-
TOOL_CATEGORY_ICONS,
|
|
154
|
-
getToolCategory,
|
|
155
|
-
getToolDisplayMetadata,
|
|
156
|
-
getToolErrorText
|
|
157
|
-
} from "./chunk-BX6AQMUS.js";
|
|
158
|
-
import {
|
|
159
|
-
InlineCode,
|
|
160
136
|
OpenUIArtifactRenderer
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import {
|
|
163
|
-
Table,
|
|
164
|
-
TableBody,
|
|
165
|
-
TableCaption,
|
|
166
|
-
TableCell,
|
|
167
|
-
TableFooter,
|
|
168
|
-
TableHead,
|
|
169
|
-
TableHeader,
|
|
170
|
-
TableRow
|
|
171
|
-
} from "./chunk-34I7UFSX.js";
|
|
172
|
-
import {
|
|
173
|
-
RichFileTree
|
|
174
|
-
} from "./chunk-LQNEZDRM.js";
|
|
137
|
+
} from "./chunk-AZ3AWMTM.js";
|
|
175
138
|
import {
|
|
176
139
|
FileArtifactPane,
|
|
177
140
|
FilePreview,
|
|
178
141
|
FileTabs,
|
|
179
142
|
FileTree,
|
|
143
|
+
RichFileTree,
|
|
180
144
|
filterFileTree
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import {
|
|
183
|
-
ArtifactPane
|
|
184
|
-
} from "./chunk-HB5Y37YU.js";
|
|
185
|
-
import {
|
|
186
|
-
CodeBlock,
|
|
187
|
-
CopyButton,
|
|
188
|
-
Markdown
|
|
189
|
-
} from "./chunk-T7HMZEVO.js";
|
|
145
|
+
} from "./chunk-3J6FG3FJ.js";
|
|
190
146
|
import {
|
|
147
|
+
BackendConfig,
|
|
191
148
|
BackendSelector,
|
|
192
149
|
ClusterStatusBar,
|
|
193
150
|
CreditBalance,
|
|
194
151
|
DashboardLayout,
|
|
152
|
+
GitPanel,
|
|
195
153
|
HARNESS_OPTIONS,
|
|
196
154
|
HarnessPicker,
|
|
197
155
|
InvoiceTable,
|
|
198
|
-
|
|
156
|
+
NetworkConfig,
|
|
199
157
|
NewSandboxCard,
|
|
200
158
|
PlanCards,
|
|
159
|
+
PortsList,
|
|
160
|
+
ProcessList,
|
|
201
161
|
ProfileAvatar,
|
|
202
162
|
ProfileComparison,
|
|
203
163
|
ProfileSelector,
|
|
164
|
+
PromoBanner,
|
|
204
165
|
RailButton,
|
|
205
166
|
RailModeButton,
|
|
206
167
|
RailSeparator,
|
|
@@ -221,26 +182,50 @@ import {
|
|
|
221
182
|
SidebarRailFooter,
|
|
222
183
|
SidebarRailHeader,
|
|
223
184
|
SidebarRailNav,
|
|
185
|
+
SnapshotList,
|
|
186
|
+
SystemLogsViewer,
|
|
187
|
+
UsageSummary,
|
|
224
188
|
VariantList,
|
|
225
|
-
|
|
226
|
-
formatContext,
|
|
227
|
-
formatPricing,
|
|
189
|
+
canAdminSandbox,
|
|
228
190
|
useSidebar
|
|
229
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-HLZTKSGT.js";
|
|
230
192
|
import {
|
|
231
193
|
BillingDashboard,
|
|
194
|
+
InfoPanel,
|
|
195
|
+
ModelPicker,
|
|
232
196
|
PricingPage,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
} from "./chunk-
|
|
197
|
+
TemplateCard,
|
|
198
|
+
UsageChart,
|
|
199
|
+
canonicalModelId,
|
|
200
|
+
formatContext,
|
|
201
|
+
formatPrice,
|
|
202
|
+
formatPricing
|
|
203
|
+
} from "./chunk-ENMWGVDL.js";
|
|
240
204
|
import {
|
|
241
205
|
Avatar,
|
|
242
206
|
AvatarFallback,
|
|
243
207
|
AvatarImage,
|
|
208
|
+
Badge,
|
|
209
|
+
Button,
|
|
210
|
+
Card,
|
|
211
|
+
CardContent,
|
|
212
|
+
CardDescription,
|
|
213
|
+
CardFooter,
|
|
214
|
+
CardHeader,
|
|
215
|
+
CardTitle,
|
|
216
|
+
CodeBlock,
|
|
217
|
+
CopyButton,
|
|
218
|
+
Dialog,
|
|
219
|
+
DialogClose,
|
|
220
|
+
DialogContent,
|
|
221
|
+
DialogDescription,
|
|
222
|
+
DialogFooter,
|
|
223
|
+
DialogHeader,
|
|
224
|
+
DialogOverlay,
|
|
225
|
+
DialogPortal,
|
|
226
|
+
DialogTitle,
|
|
227
|
+
DialogTrigger,
|
|
228
|
+
DropZone,
|
|
244
229
|
DropdownMenu,
|
|
245
230
|
DropdownMenuCheckboxItem,
|
|
246
231
|
DropdownMenuContent,
|
|
@@ -255,116 +240,73 @@ import {
|
|
|
255
240
|
DropdownMenuSub,
|
|
256
241
|
DropdownMenuSubContent,
|
|
257
242
|
DropdownMenuSubTrigger,
|
|
258
|
-
DropdownMenuTrigger
|
|
259
|
-
|
|
260
|
-
|
|
243
|
+
DropdownMenuTrigger,
|
|
244
|
+
EmptyState,
|
|
245
|
+
InlineCode,
|
|
246
|
+
Input,
|
|
247
|
+
Label,
|
|
248
|
+
Logo,
|
|
261
249
|
Progress,
|
|
250
|
+
SegmentedControl,
|
|
251
|
+
Select,
|
|
252
|
+
SelectContent,
|
|
253
|
+
SelectGroup,
|
|
254
|
+
SelectItem,
|
|
255
|
+
SelectLabel,
|
|
256
|
+
SelectScrollDownButton,
|
|
257
|
+
SelectScrollUpButton,
|
|
258
|
+
SelectSeparator,
|
|
259
|
+
SelectTrigger,
|
|
260
|
+
SelectValue,
|
|
261
|
+
SidebarDropZone,
|
|
262
262
|
Skeleton,
|
|
263
263
|
SkeletonCard,
|
|
264
|
-
SkeletonTable
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
264
|
+
SkeletonTable,
|
|
265
|
+
StatCard,
|
|
266
|
+
Switch,
|
|
267
|
+
Table,
|
|
268
|
+
TableBody,
|
|
269
|
+
TableCaption,
|
|
270
|
+
TableCell,
|
|
271
|
+
TableFooter,
|
|
272
|
+
TableHead,
|
|
273
|
+
TableHeader,
|
|
274
|
+
TableRow,
|
|
275
|
+
Tabs,
|
|
276
|
+
TabsContent,
|
|
277
|
+
TabsList,
|
|
278
|
+
TabsTrigger,
|
|
279
|
+
TangleKnot,
|
|
280
|
+
TerminalDisplay,
|
|
281
|
+
Textarea,
|
|
282
|
+
ThemeToggle,
|
|
283
|
+
ToastContainer,
|
|
284
|
+
ToastProvider,
|
|
285
|
+
UploadProgress,
|
|
286
|
+
badgeVariants,
|
|
287
|
+
buttonVariants,
|
|
288
|
+
useTheme,
|
|
289
|
+
useToast
|
|
290
|
+
} from "./chunk-7ZA5SEK3.js";
|
|
291
|
+
import "./chunk-EI44GEQ5.js";
|
|
292
|
+
|
|
293
|
+
// src/index.ts
|
|
294
|
+
import { CodeBlock as CodeBlock2 } from "@tangle-network/ui/markdown";
|
|
276
295
|
import {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
296
|
+
TerminalLine,
|
|
297
|
+
TerminalInput,
|
|
298
|
+
TerminalCursor
|
|
299
|
+
} from "@tangle-network/ui/primitives";
|
|
280
300
|
import {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
function applyTheme(theme) {
|
|
291
|
-
const resolved = theme === "system" ? getSystemTheme() : theme;
|
|
292
|
-
document.documentElement.classList.toggle("dark", resolved === "dark");
|
|
293
|
-
}
|
|
294
|
-
function useTheme() {
|
|
295
|
-
const [theme, setThemeState] = useState(() => {
|
|
296
|
-
if (typeof window === "undefined") return "system";
|
|
297
|
-
return localStorage.getItem("theme") ?? "system";
|
|
298
|
-
});
|
|
299
|
-
const setTheme = useCallback((next) => {
|
|
300
|
-
setThemeState(next);
|
|
301
|
-
if (next === "system") {
|
|
302
|
-
localStorage.removeItem("theme");
|
|
303
|
-
} else {
|
|
304
|
-
localStorage.setItem("theme", next);
|
|
305
|
-
}
|
|
306
|
-
applyTheme(next);
|
|
307
|
-
}, []);
|
|
308
|
-
useEffect(() => {
|
|
309
|
-
applyTheme(theme);
|
|
310
|
-
if (theme !== "system") return;
|
|
311
|
-
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
312
|
-
const handler = () => applyTheme("system");
|
|
313
|
-
mq.addEventListener("change", handler);
|
|
314
|
-
return () => mq.removeEventListener("change", handler);
|
|
315
|
-
}, [theme]);
|
|
316
|
-
return { theme, setTheme };
|
|
317
|
-
}
|
|
318
|
-
var iconClass = "h-4 w-4";
|
|
319
|
-
function SunIcon() {
|
|
320
|
-
return /* @__PURE__ */ jsxs(
|
|
321
|
-
"svg",
|
|
322
|
-
{
|
|
323
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
-
viewBox: "0 0 24 24",
|
|
325
|
-
fill: "none",
|
|
326
|
-
stroke: "currentColor",
|
|
327
|
-
strokeWidth: 2,
|
|
328
|
-
strokeLinecap: "round",
|
|
329
|
-
strokeLinejoin: "round",
|
|
330
|
-
className: iconClass,
|
|
331
|
-
children: [
|
|
332
|
-
/* @__PURE__ */ jsx("circle", { cx: 12, cy: 12, r: 5 }),
|
|
333
|
-
/* @__PURE__ */ jsx("path", { d: "M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" })
|
|
334
|
-
]
|
|
335
|
-
}
|
|
336
|
-
);
|
|
337
|
-
}
|
|
338
|
-
function MoonIcon() {
|
|
339
|
-
return /* @__PURE__ */ jsx(
|
|
340
|
-
"svg",
|
|
341
|
-
{
|
|
342
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
343
|
-
viewBox: "0 0 24 24",
|
|
344
|
-
fill: "none",
|
|
345
|
-
stroke: "currentColor",
|
|
346
|
-
strokeWidth: 2,
|
|
347
|
-
strokeLinecap: "round",
|
|
348
|
-
strokeLinejoin: "round",
|
|
349
|
-
className: iconClass,
|
|
350
|
-
children: /* @__PURE__ */ jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" })
|
|
351
|
-
}
|
|
352
|
-
);
|
|
353
|
-
}
|
|
354
|
-
function ThemeToggle() {
|
|
355
|
-
const { theme, setTheme } = useTheme();
|
|
356
|
-
const resolved = theme === "system" ? getSystemTheme() : theme;
|
|
357
|
-
return /* @__PURE__ */ jsx(
|
|
358
|
-
"button",
|
|
359
|
-
{
|
|
360
|
-
type: "button",
|
|
361
|
-
onClick: () => setTheme(resolved === "dark" ? "light" : "dark"),
|
|
362
|
-
className: "inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors",
|
|
363
|
-
"aria-label": `Switch to ${resolved === "dark" ? "light" : "dark"} mode`,
|
|
364
|
-
children: resolved === "dark" ? /* @__PURE__ */ jsx(SunIcon, {}) : /* @__PURE__ */ jsx(MoonIcon, {})
|
|
365
|
-
}
|
|
366
|
-
);
|
|
367
|
-
}
|
|
301
|
+
CommandPreview,
|
|
302
|
+
WriteFilePreview,
|
|
303
|
+
GrepResultsPreview,
|
|
304
|
+
GlobResultsPreview,
|
|
305
|
+
WebSearchPreview,
|
|
306
|
+
QuestionPreview,
|
|
307
|
+
DiffPreview
|
|
308
|
+
} from "@tangle-network/ui/tool-previews";
|
|
309
|
+
import { Markdown } from "@tangle-network/ui/markdown";
|
|
368
310
|
export {
|
|
369
311
|
AgentTimeline,
|
|
370
312
|
AgentWorkbench,
|
|
@@ -375,6 +317,7 @@ export {
|
|
|
375
317
|
Avatar,
|
|
376
318
|
AvatarFallback,
|
|
377
319
|
AvatarImage,
|
|
320
|
+
BackendConfig,
|
|
378
321
|
BackendSelector,
|
|
379
322
|
Badge,
|
|
380
323
|
BillingDashboard,
|
|
@@ -391,7 +334,7 @@ export {
|
|
|
391
334
|
ChatMessage,
|
|
392
335
|
ClusterStatusBar,
|
|
393
336
|
CodeBlock,
|
|
394
|
-
|
|
337
|
+
CodeBlock2 as CodeBlockDisplay,
|
|
395
338
|
CollaboratorsList,
|
|
396
339
|
CommandPreview,
|
|
397
340
|
CopyButton,
|
|
@@ -435,29 +378,36 @@ export {
|
|
|
435
378
|
FileTabs,
|
|
436
379
|
FileTree,
|
|
437
380
|
GitHubLoginButton,
|
|
381
|
+
GitPanel,
|
|
438
382
|
GlobResultsPreview,
|
|
439
383
|
GrepResultsPreview,
|
|
440
384
|
HARNESS_OPTIONS,
|
|
441
385
|
HarnessPicker,
|
|
386
|
+
InfoPanel,
|
|
442
387
|
InlineCode,
|
|
443
388
|
InlineThinkingItem,
|
|
444
389
|
InlineToolItem,
|
|
445
390
|
Input,
|
|
446
391
|
InvoiceTable,
|
|
447
392
|
Label,
|
|
393
|
+
LiveDuration,
|
|
448
394
|
LoginLayout,
|
|
449
395
|
Logo,
|
|
450
396
|
Markdown,
|
|
451
397
|
MessageList,
|
|
452
398
|
ModelPicker,
|
|
399
|
+
NetworkConfig,
|
|
453
400
|
NewSandboxCard,
|
|
454
401
|
OpenUIArtifactRenderer,
|
|
455
402
|
PlanCards,
|
|
456
|
-
|
|
403
|
+
PortsList,
|
|
404
|
+
PricingPage,
|
|
405
|
+
ProcessList,
|
|
457
406
|
ProfileAvatar,
|
|
458
407
|
ProfileComparison,
|
|
459
408
|
ProfileSelector,
|
|
460
409
|
Progress,
|
|
410
|
+
PromoBanner,
|
|
461
411
|
QuestionPreview,
|
|
462
412
|
RailButton,
|
|
463
413
|
RailModeButton,
|
|
@@ -474,6 +424,7 @@ export {
|
|
|
474
424
|
SandboxCard,
|
|
475
425
|
SandboxTable,
|
|
476
426
|
SandboxWorkbench,
|
|
427
|
+
SegmentedControl,
|
|
477
428
|
Select,
|
|
478
429
|
SelectContent,
|
|
479
430
|
SelectGroup,
|
|
@@ -500,10 +451,12 @@ export {
|
|
|
500
451
|
Skeleton,
|
|
501
452
|
SkeletonCard,
|
|
502
453
|
SkeletonTable,
|
|
454
|
+
SnapshotList,
|
|
503
455
|
StatCard,
|
|
504
456
|
StatusBanner,
|
|
505
457
|
StatusBar,
|
|
506
458
|
Switch,
|
|
459
|
+
SystemLogsViewer,
|
|
507
460
|
TOOL_CATEGORY_ICONS,
|
|
508
461
|
Table,
|
|
509
462
|
TableBody,
|
|
@@ -519,6 +472,7 @@ export {
|
|
|
519
472
|
TabsTrigger,
|
|
520
473
|
TangleKnot,
|
|
521
474
|
TaskBoard,
|
|
475
|
+
TemplateCard,
|
|
522
476
|
TerminalDisplay,
|
|
523
477
|
TerminalCursor as TerminalDisplayCursor,
|
|
524
478
|
TerminalInput as TerminalDisplayInput,
|
|
@@ -530,58 +484,99 @@ export {
|
|
|
530
484
|
TiptapEditor,
|
|
531
485
|
ToastContainer,
|
|
532
486
|
ToastProvider,
|
|
533
|
-
ToolCallFeed,
|
|
534
|
-
ToolCallGroup,
|
|
535
|
-
ToolCallStep,
|
|
536
487
|
UploadProgress,
|
|
537
488
|
UsageChart,
|
|
489
|
+
UsageSummary,
|
|
538
490
|
UserMenu,
|
|
539
491
|
UserMessage,
|
|
540
492
|
VariantList,
|
|
541
493
|
WebSearchPreview,
|
|
542
494
|
WorkspaceLayout,
|
|
543
495
|
WriteFilePreview,
|
|
496
|
+
activeSessionsAtom,
|
|
497
|
+
addMessage,
|
|
498
|
+
addParts,
|
|
544
499
|
badgeVariants,
|
|
500
|
+
bumpActiveSessionActivity,
|
|
545
501
|
buttonVariants,
|
|
502
|
+
canAdminSandbox,
|
|
546
503
|
canonicalModelId,
|
|
504
|
+
clearChat,
|
|
547
505
|
cn,
|
|
506
|
+
connectSession,
|
|
548
507
|
copyText,
|
|
549
508
|
createAuthFetcher,
|
|
509
|
+
disconnectSession,
|
|
550
510
|
filterFileTree,
|
|
551
511
|
formatBytes,
|
|
552
512
|
formatContext,
|
|
553
513
|
formatDuration,
|
|
514
|
+
formatPrice,
|
|
554
515
|
formatPricing,
|
|
555
516
|
formatUptime,
|
|
517
|
+
getActiveSession,
|
|
518
|
+
getAllActiveSessions,
|
|
519
|
+
getAllProjectActivity,
|
|
520
|
+
getSessionsByActivity,
|
|
521
|
+
getSessionsForNavbar,
|
|
522
|
+
getSessionsForProject,
|
|
556
523
|
getToolCategory,
|
|
557
524
|
getToolDisplayMetadata,
|
|
558
525
|
getToolErrorText,
|
|
559
|
-
|
|
526
|
+
getTotalRunningSessionCount,
|
|
527
|
+
hasBackgroundRunningSessions,
|
|
528
|
+
isStreamingAtom,
|
|
529
|
+
messagesAtom,
|
|
530
|
+
partMapAtom,
|
|
531
|
+
registerActiveSession,
|
|
532
|
+
resetActiveSessions,
|
|
533
|
+
sessionAtom,
|
|
534
|
+
setActiveSessionAttention,
|
|
535
|
+
setActiveSessionConnection,
|
|
536
|
+
setActiveSessionError,
|
|
537
|
+
setActiveSessionRunning,
|
|
538
|
+
setForegroundActiveSession,
|
|
560
539
|
timeAgo,
|
|
561
540
|
truncateText,
|
|
541
|
+
unregisterActiveSession,
|
|
542
|
+
updateActiveSessionMeta,
|
|
543
|
+
updatePart,
|
|
544
|
+
useActiveSession,
|
|
545
|
+
useActiveSessions,
|
|
546
|
+
useActiveSessionsState,
|
|
562
547
|
useApiKey,
|
|
563
548
|
useAuth,
|
|
564
549
|
useAutoScroll,
|
|
565
550
|
useAwareness,
|
|
566
551
|
useCollaboratorPresence,
|
|
567
552
|
useCollaborators,
|
|
553
|
+
useCreateSession,
|
|
554
|
+
useDeleteSession,
|
|
568
555
|
useDocumentChanges,
|
|
569
556
|
useDropdownMenu,
|
|
570
557
|
useEditorConnection,
|
|
571
558
|
useEditorContext,
|
|
559
|
+
useHasBackgroundRunningSessions,
|
|
572
560
|
useLiveTime,
|
|
561
|
+
useNavbarSessions,
|
|
562
|
+
useProjectActivity,
|
|
563
|
+
useProjectSessions,
|
|
573
564
|
usePtySession,
|
|
574
565
|
useRealtimeSession,
|
|
566
|
+
useRenameSession,
|
|
575
567
|
useRunCollapseState,
|
|
576
568
|
useRunGroups,
|
|
577
569
|
useSSEStream,
|
|
578
570
|
useSandboxMetrics,
|
|
579
571
|
useSdkSession,
|
|
580
572
|
useSessionStream,
|
|
573
|
+
useSessions,
|
|
574
|
+
useSessionsByActivity,
|
|
581
575
|
useSidebar,
|
|
582
576
|
useSidecarAuth,
|
|
583
577
|
useTheme,
|
|
584
578
|
useToast,
|
|
585
579
|
useToolCallStream,
|
|
580
|
+
useTotalRunningSessions,
|
|
586
581
|
useYjsState
|
|
587
582
|
};
|