@tangle-network/sandbox-ui 0.4.0 → 0.5.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.
- package/dist/auth.js +3 -3
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +11 -9
- package/dist/{chunk-ZP6GSX4D.js → chunk-565V6JTN.js} +26 -50
- package/dist/chunk-5CEMHKBP.js +72 -0
- package/dist/{chunk-FOQTE67I.js → chunk-5F4NX5R2.js} +10 -5
- package/dist/{chunk-MUOL44AE.js → chunk-BRBTD7RH.js} +6 -6
- package/dist/{chunk-SSKVYXCR.js → chunk-DCPYTL4W.js} +62 -79
- package/dist/chunk-DLCFZDGX.js +182 -0
- package/dist/{chunk-HXEA7L2T.js → chunk-FFOXUHOF.js} +10 -10
- package/dist/chunk-H5XYSFYE.js +228 -0
- package/dist/{chunk-TQN3VR4F.js → chunk-JP725R4W.js} +2 -2
- package/dist/{chunk-CJ2RYVZH.js → chunk-NTSRY4GW.js} +68 -10
- package/dist/{chunk-DQYODCBN.js → chunk-P24K22CV.js} +57 -66
- package/dist/{chunk-GVUW4VDD.js → chunk-R3IU37AW.js} +161 -229
- package/dist/chunk-TDYQBLL5.js +127 -0
- package/dist/{chunk-HWLX5NME.js → chunk-TSE423UF.js} +12 -12
- package/dist/{chunk-YDBXQQLC.js → chunk-VBWY44UU.js} +30 -76
- package/dist/{chunk-IW2JZCOC.js → chunk-WBQ7VULC.js} +7 -7
- package/dist/{chunk-72UEKFZ2.js → chunk-WC7QTWPN.js} +65 -42
- package/dist/{chunk-HYLTXGOI.js → chunk-WQH233GF.js} +5 -5
- package/dist/{chunk-CCKNIAS7.js → chunk-XBR3IP7B.js} +2 -2
- package/dist/{chunk-OHMO7NUX.js → chunk-XTPAWK7L.js} +20 -31
- package/dist/{chunk-SULQQJPB.js → chunk-YS66Q3RC.js} +1 -1
- package/dist/{chunk-FRGMMANX.js → chunk-YYGECNZZ.js} +3 -3
- package/dist/{chunk-MVYFNPAH.js → chunk-ZOZX2U6I.js} +285 -271
- package/dist/dashboard.d.ts +2 -2
- package/dist/dashboard.js +6 -6
- package/dist/{document-editor-pane-5TN2VWGZ.js → document-editor-pane-JNXPANWM.js} +2 -2
- package/dist/editor.js +2 -2
- package/dist/files.js +2 -2
- package/dist/globals.css +129 -95
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +5 -5
- package/dist/{index-tTfThG0n.d.ts → index-CDt0GE4A.d.ts} +7 -8
- package/dist/index.d.ts +16 -23
- package/dist/index.js +27 -26
- package/dist/markdown.d.ts +14 -17
- package/dist/markdown.js +1 -1
- package/dist/openui.js +5 -5
- package/dist/pages.d.ts +10 -3
- package/dist/pages.js +147 -184
- package/dist/primitives.d.ts +8 -5
- package/dist/primitives.js +8 -8
- package/dist/run.d.ts +1 -1
- package/dist/run.js +4 -4
- package/dist/sdk-hooks.d.ts +1 -1
- package/dist/sdk-hooks.js +4 -4
- package/dist/styles.css +129 -95
- package/dist/terminal.d.ts +2 -2
- package/dist/terminal.js +13 -43
- package/dist/tokens.css +299 -179
- package/dist/{tool-call-feed-D5Ume-Pt.d.ts → tool-call-feed-Bs3MyQMT.d.ts} +3 -1
- package/dist/{usage-chart-CY9xo3KX.d.ts → usage-chart-XCoB_7Xu.d.ts} +1 -2
- package/dist/{use-pty-session-DeZSxOCN.d.ts → use-pty-session-COzVkhtc.d.ts} +1 -1
- package/dist/workspace.d.ts +3 -1
- package/dist/workspace.js +11 -11
- package/package.json +14 -2
- package/dist/chunk-GRYHFH5O.js +0 -110
- package/dist/chunk-LTFK464G.js +0 -103
- package/dist/chunk-MXCSSOGH.js +0 -105
package/dist/index.js
CHANGED
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
useEditorConnection,
|
|
16
16
|
useEditorContext,
|
|
17
17
|
useYjsState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FFOXUHOF.js";
|
|
19
19
|
import {
|
|
20
20
|
AuthHeader,
|
|
21
21
|
GitHubLoginButton,
|
|
22
22
|
LoginLayout,
|
|
23
23
|
UserMenu
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XTPAWK7L.js";
|
|
25
25
|
import {
|
|
26
26
|
createAuthFetcher,
|
|
27
27
|
useApiKey,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-FJSVPBKY.js";
|
|
30
30
|
import {
|
|
31
31
|
usePtySession
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DLCFZDGX.js";
|
|
33
33
|
import {
|
|
34
34
|
RealtimeSessionRegistry,
|
|
35
35
|
useDropdownMenu,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
useSessionStream,
|
|
40
40
|
useSidecarAuth,
|
|
41
41
|
useToolCallStream
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5F4NX5R2.js";
|
|
43
43
|
import {
|
|
44
44
|
DropZone,
|
|
45
45
|
Label,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
ToastProvider,
|
|
65
65
|
UploadProgress,
|
|
66
66
|
useToast
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-DCPYTL4W.js";
|
|
68
68
|
import {
|
|
69
69
|
Dialog,
|
|
70
70
|
DialogClose,
|
|
@@ -76,17 +76,20 @@ import {
|
|
|
76
76
|
DialogPortal,
|
|
77
77
|
DialogTitle,
|
|
78
78
|
DialogTrigger
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-YS66Q3RC.js";
|
|
80
80
|
import {
|
|
81
81
|
Tabs,
|
|
82
82
|
TabsContent,
|
|
83
83
|
TabsList,
|
|
84
84
|
TabsTrigger
|
|
85
85
|
} from "./chunk-Q56BYXQF.js";
|
|
86
|
+
import {
|
|
87
|
+
ChatMessage
|
|
88
|
+
} from "./chunk-5CEMHKBP.js";
|
|
86
89
|
import {
|
|
87
90
|
ToolCallFeed,
|
|
88
91
|
parseToolEvent
|
|
89
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-XBR3IP7B.js";
|
|
90
93
|
import {
|
|
91
94
|
AgentWorkbench,
|
|
92
95
|
AuditResults,
|
|
@@ -99,22 +102,21 @@ import {
|
|
|
99
102
|
StatusBar,
|
|
100
103
|
TerminalPanel,
|
|
101
104
|
WorkspaceLayout
|
|
102
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-P24K22CV.js";
|
|
103
106
|
import "./chunk-OEX7NZE3.js";
|
|
104
107
|
import {
|
|
105
108
|
EmptyState,
|
|
106
109
|
Input,
|
|
107
110
|
Textarea
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-BRBTD7RH.js";
|
|
109
112
|
import {
|
|
110
113
|
AgentTimeline,
|
|
111
114
|
ChatContainer,
|
|
112
115
|
ChatInput,
|
|
113
|
-
ChatMessage,
|
|
114
116
|
MessageList,
|
|
115
117
|
ThinkingIndicator,
|
|
116
118
|
UserMessage
|
|
117
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-R3IU37AW.js";
|
|
118
120
|
import {
|
|
119
121
|
useAutoScroll,
|
|
120
122
|
useRunCollapseState,
|
|
@@ -132,7 +134,7 @@ import {
|
|
|
132
134
|
RunGroup,
|
|
133
135
|
WebSearchPreview,
|
|
134
136
|
WriteFilePreview
|
|
135
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-WC7QTWPN.js";
|
|
136
138
|
import {
|
|
137
139
|
formatDuration,
|
|
138
140
|
truncateText
|
|
@@ -140,7 +142,7 @@ import {
|
|
|
140
142
|
import {
|
|
141
143
|
ToolCallGroup,
|
|
142
144
|
ToolCallStep
|
|
143
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-NTSRY4GW.js";
|
|
144
146
|
import {
|
|
145
147
|
TOOL_CATEGORY_ICONS,
|
|
146
148
|
getToolCategory,
|
|
@@ -148,10 +150,9 @@ import {
|
|
|
148
150
|
getToolErrorText
|
|
149
151
|
} from "./chunk-BX6AQMUS.js";
|
|
150
152
|
import {
|
|
151
|
-
CodeBlock,
|
|
152
153
|
InlineCode,
|
|
153
154
|
OpenUIArtifactRenderer
|
|
154
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-VBWY44UU.js";
|
|
155
156
|
import {
|
|
156
157
|
Table,
|
|
157
158
|
TableBody,
|
|
@@ -161,22 +162,22 @@ import {
|
|
|
161
162
|
TableHead,
|
|
162
163
|
TableHeader,
|
|
163
164
|
TableRow
|
|
164
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-JP725R4W.js";
|
|
165
166
|
import {
|
|
166
167
|
FileArtifactPane,
|
|
167
168
|
FilePreview,
|
|
168
169
|
FileTabs,
|
|
169
170
|
FileTree,
|
|
170
171
|
filterFileTree
|
|
171
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-WQH233GF.js";
|
|
172
173
|
import {
|
|
173
174
|
ArtifactPane
|
|
174
175
|
} from "./chunk-W4LM3QYZ.js";
|
|
175
176
|
import {
|
|
176
|
-
CodeBlock
|
|
177
|
+
CodeBlock,
|
|
177
178
|
CopyButton,
|
|
178
179
|
Markdown
|
|
179
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-H5XYSFYE.js";
|
|
180
181
|
import {
|
|
181
182
|
BackendSelector,
|
|
182
183
|
ClusterStatusBar,
|
|
@@ -209,12 +210,12 @@ import {
|
|
|
209
210
|
SidebarRailNav,
|
|
210
211
|
VariantList,
|
|
211
212
|
useSidebar
|
|
212
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-ZOZX2U6I.js";
|
|
213
214
|
import {
|
|
214
215
|
BillingDashboard,
|
|
215
216
|
PricingPage,
|
|
216
217
|
UsageChart
|
|
217
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-565V6JTN.js";
|
|
218
219
|
import {
|
|
219
220
|
Logo,
|
|
220
221
|
TangleKnot
|
|
@@ -238,13 +239,13 @@ import {
|
|
|
238
239
|
DropdownMenuSubContent,
|
|
239
240
|
DropdownMenuSubTrigger,
|
|
240
241
|
DropdownMenuTrigger
|
|
241
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-WBQ7VULC.js";
|
|
242
243
|
import {
|
|
243
244
|
Progress,
|
|
244
245
|
Skeleton,
|
|
245
246
|
SkeletonCard,
|
|
246
247
|
SkeletonTable
|
|
247
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-YYGECNZZ.js";
|
|
248
249
|
import {
|
|
249
250
|
Badge,
|
|
250
251
|
Card,
|
|
@@ -254,11 +255,11 @@ import {
|
|
|
254
255
|
CardHeader,
|
|
255
256
|
CardTitle,
|
|
256
257
|
badgeVariants
|
|
257
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-TDYQBLL5.js";
|
|
258
259
|
import {
|
|
259
260
|
Button,
|
|
260
261
|
buttonVariants
|
|
261
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-TSE423UF.js";
|
|
262
263
|
import {
|
|
263
264
|
cn
|
|
264
265
|
} from "./chunk-RQHJBTEU.js";
|
|
@@ -370,7 +371,7 @@ export {
|
|
|
370
371
|
ChatInput,
|
|
371
372
|
ChatMessage,
|
|
372
373
|
ClusterStatusBar,
|
|
373
|
-
|
|
374
|
+
CodeBlock,
|
|
374
375
|
CodeBlock as CodeBlockDisplay,
|
|
375
376
|
CollaboratorsList,
|
|
376
377
|
CommandPreview,
|
package/dist/markdown.d.ts
CHANGED
|
@@ -2,31 +2,28 @@ import * as React from 'react';
|
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
interface MarkdownProps {
|
|
6
|
-
children: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Renders Markdown content with GFM support, XSS sanitisation, and
|
|
11
|
-
* custom code block rendering via our CodeBlock component.
|
|
12
|
-
*/
|
|
13
|
-
declare const Markdown: React.MemoExoticComponent<({ children, className }: MarkdownProps) => react_jsx_runtime.JSX.Element>;
|
|
14
|
-
|
|
15
5
|
interface CodeBlockProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
6
|
code: string;
|
|
17
7
|
language?: string;
|
|
8
|
+
showLineNumbers?: boolean;
|
|
9
|
+
/** Force light theme; defaults to dark */
|
|
10
|
+
light?: boolean;
|
|
18
11
|
children?: ReactNode;
|
|
19
12
|
}
|
|
20
|
-
|
|
21
|
-
* Syntax-highlighted code block with copy button.
|
|
22
|
-
*
|
|
23
|
-
* Falls back to plain `<pre><code>` — syntax highlighting can be provided
|
|
24
|
-
* by the consuming app via CSS (e.g. Shiki themes applied externally).
|
|
25
|
-
*/
|
|
26
|
-
declare const CodeBlock: React.MemoExoticComponent<({ code, language, className, children, ...props }: CodeBlockProps) => react_jsx_runtime.JSX.Element>;
|
|
13
|
+
declare const CodeBlock: React.MemoExoticComponent<({ code, language, showLineNumbers, light: lightProp, className, children, ...props }: CodeBlockProps) => react_jsx_runtime.JSX.Element>;
|
|
27
14
|
/** Copy-to-clipboard button for use inside CodeBlock. */
|
|
28
15
|
declare const CopyButton: React.MemoExoticComponent<({ text }: {
|
|
29
16
|
text: string;
|
|
30
17
|
}) => react_jsx_runtime.JSX.Element>;
|
|
31
18
|
|
|
19
|
+
interface MarkdownProps {
|
|
20
|
+
children: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Renders Markdown content with GFM support, XSS sanitisation, and
|
|
25
|
+
* custom code block rendering via our CodeBlock component.
|
|
26
|
+
*/
|
|
27
|
+
declare const Markdown: React.MemoExoticComponent<({ children, className }: MarkdownProps) => react_jsx_runtime.JSX.Element>;
|
|
28
|
+
|
|
32
29
|
export { CodeBlock, type CodeBlockProps, CopyButton, Markdown, type MarkdownProps };
|
package/dist/markdown.js
CHANGED
package/dist/openui.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenUIArtifactRenderer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VBWY44UU.js";
|
|
4
|
+
import "./chunk-JP725R4W.js";
|
|
5
|
+
import "./chunk-H5XYSFYE.js";
|
|
6
|
+
import "./chunk-TDYQBLL5.js";
|
|
7
|
+
import "./chunk-TSE423UF.js";
|
|
8
8
|
import "./chunk-RQHJBTEU.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenUIArtifactRenderer
|
package/dist/pages.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BillingSubscription, a as BillingBalance, b as BillingUsage, U as UsageDataPoint, P as PricingTier } from './usage-chart-
|
|
2
|
+
import { B as BillingSubscription, a as BillingBalance, b as BillingUsage, U as UsageDataPoint, P as PricingTier } from './usage-chart-XCoB_7Xu.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
type ProductVariant$1 = "sandbox";
|
|
@@ -28,8 +28,14 @@ interface EnvironmentOption {
|
|
|
28
28
|
icon: React.ReactNode;
|
|
29
29
|
color: string;
|
|
30
30
|
}
|
|
31
|
+
interface EnvironmentEntry {
|
|
32
|
+
id: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
version?: string;
|
|
35
|
+
}
|
|
31
36
|
interface ProvisioningWizardProps {
|
|
32
37
|
environments?: EnvironmentOption[];
|
|
38
|
+
onLoadEnvironments?: () => Promise<EnvironmentEntry[]>;
|
|
33
39
|
onSubmit?: (config: ProvisioningConfig) => void;
|
|
34
40
|
onBack?: () => void;
|
|
35
41
|
className?: string;
|
|
@@ -42,7 +48,8 @@ interface ProvisioningConfig {
|
|
|
42
48
|
modelTier: string;
|
|
43
49
|
systemPrompt: string;
|
|
44
50
|
}
|
|
45
|
-
declare function
|
|
51
|
+
declare function resolveEnvironment(env: EnvironmentEntry): EnvironmentOption;
|
|
52
|
+
declare function ProvisioningWizard({ environments: environmentsProp, onLoadEnvironments, onSubmit, onBack, className, }: ProvisioningWizardProps): react_jsx_runtime.JSX.Element;
|
|
46
53
|
|
|
47
54
|
type ProductVariant = "sandbox";
|
|
48
55
|
interface StandalonePricingPageProps {
|
|
@@ -111,4 +118,4 @@ interface ProfilesPageProps {
|
|
|
111
118
|
}
|
|
112
119
|
declare function ProfilesPage({ apiClient, tier, maxProfiles, onCompareClick, title, }: ProfilesPageProps): react_jsx_runtime.JSX.Element;
|
|
113
120
|
|
|
114
|
-
export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentOption, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, StandalonePricingPage, type StandalonePricingPageProps };
|
|
121
|
+
export { BillingPage, type BillingPageData, type BillingPageProps, type EnvironmentEntry, type EnvironmentOption, type ProductVariant$1 as ProductVariant, type Profile, type ProfileFormData, type ProfileMetrics, ProfilesPage, type ProfilesPageProps, type ProvisioningConfig, ProvisioningWizard, type ProvisioningWizardProps, StandalonePricingPage, type StandalonePricingPageProps, resolveEnvironment };
|