@tangle-network/sandbox-ui 0.57.0 → 0.59.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/chat.d.ts +134 -36
- package/dist/chat.js +5 -3
- package/dist/{chunk-NHHYPID3.js → chunk-4XOZGMJC.js} +487 -131
- package/dist/{chunk-SVNWL3ZR.js → chunk-D7JJLG4L.js} +1 -1
- package/dist/{chunk-DLKDWMFM.js → chunk-MKX3F55O.js} +1 -1
- package/dist/dashboard.js +1 -1
- package/dist/globals.css +43 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -5
- package/dist/styles.css +43 -0
- package/dist/workbench.js +2 -2
- package/package.json +3 -3
|
@@ -2014,7 +2014,7 @@ function DashboardLayoutInner({
|
|
|
2014
2014
|
/* @__PURE__ */ jsx14(
|
|
2015
2015
|
RailHeader,
|
|
2016
2016
|
{
|
|
2017
|
-
brand: /* @__PURE__ */ jsx14(Logo, { variant, size: "sm", iconOnly:
|
|
2017
|
+
brand: /* @__PURE__ */ jsx14(Logo, { variant, size: "sm", iconOnly: !showLabels }),
|
|
2018
2018
|
brandHref: logoHref,
|
|
2019
2019
|
collapsed: !showLabels,
|
|
2020
2020
|
onToggle: toggleRail,
|
package/dist/dashboard.js
CHANGED
package/dist/globals.css
CHANGED
|
@@ -404,6 +404,9 @@
|
|
|
404
404
|
.bottom-\[-0\.75rem\] {
|
|
405
405
|
bottom: -0.75rem;
|
|
406
406
|
}
|
|
407
|
+
.bottom-full {
|
|
408
|
+
bottom: 100%;
|
|
409
|
+
}
|
|
407
410
|
.left-0 {
|
|
408
411
|
left: calc(var(--spacing) * 0);
|
|
409
412
|
}
|
|
@@ -660,6 +663,14 @@
|
|
|
660
663
|
width: calc(var(--spacing) * 3);
|
|
661
664
|
height: calc(var(--spacing) * 3);
|
|
662
665
|
}
|
|
666
|
+
.size-4 {
|
|
667
|
+
width: calc(var(--spacing) * 4);
|
|
668
|
+
height: calc(var(--spacing) * 4);
|
|
669
|
+
}
|
|
670
|
+
.size-9 {
|
|
671
|
+
width: calc(var(--spacing) * 9);
|
|
672
|
+
height: calc(var(--spacing) * 9);
|
|
673
|
+
}
|
|
663
674
|
.\!h-2 {
|
|
664
675
|
height: calc(var(--spacing) * 2) !important;
|
|
665
676
|
}
|
|
@@ -825,6 +836,9 @@
|
|
|
825
836
|
.max-h-\[160px\] {
|
|
826
837
|
max-height: 160px;
|
|
827
838
|
}
|
|
839
|
+
.max-h-\[min\(60vh\,420px\)\] {
|
|
840
|
+
max-height: min(60vh, 420px);
|
|
841
|
+
}
|
|
828
842
|
.max-h-\[min\(440px\,var\(--radix-dropdown-menu-content-available-height\)\)\] {
|
|
829
843
|
max-height: min(440px, var(--radix-dropdown-menu-content-available-height));
|
|
830
844
|
}
|
|
@@ -885,6 +899,9 @@
|
|
|
885
899
|
.min-h-\[300px\] {
|
|
886
900
|
min-height: 300px;
|
|
887
901
|
}
|
|
902
|
+
.min-h-\[640px\] {
|
|
903
|
+
min-height: 640px;
|
|
904
|
+
}
|
|
888
905
|
.min-h-full {
|
|
889
906
|
min-height: 100%;
|
|
890
907
|
}
|
|
@@ -1050,6 +1067,9 @@
|
|
|
1050
1067
|
.w-\[300px\] {
|
|
1051
1068
|
width: 300px;
|
|
1052
1069
|
}
|
|
1070
|
+
.w-\[320px\] {
|
|
1071
|
+
width: 320px;
|
|
1072
|
+
}
|
|
1053
1073
|
.w-\[360px\] {
|
|
1054
1074
|
width: 360px;
|
|
1055
1075
|
}
|
|
@@ -3375,6 +3395,9 @@
|
|
|
3375
3395
|
.accent-primary {
|
|
3376
3396
|
accent-color: var(--color-primary);
|
|
3377
3397
|
}
|
|
3398
|
+
.\[color-scheme\:dark\] {
|
|
3399
|
+
color-scheme: dark;
|
|
3400
|
+
}
|
|
3378
3401
|
.opacity-0 {
|
|
3379
3402
|
opacity: 0%;
|
|
3380
3403
|
}
|
|
@@ -3839,6 +3862,14 @@
|
|
|
3839
3862
|
border-color: var(--color-border);
|
|
3840
3863
|
}
|
|
3841
3864
|
}
|
|
3865
|
+
.focus-within\:border-primary\/60 {
|
|
3866
|
+
&:focus-within {
|
|
3867
|
+
border-color: color-mix(in srgb, hsl(var(--primary)) 60%, transparent);
|
|
3868
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3869
|
+
border-color: color-mix(in oklab, var(--color-primary) 60%, transparent);
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3842
3873
|
.focus-within\:shadow-\[var\(--chat-input-focus-shadow\,0_10px_30px_rgba\(15\,23\,42\,0\.08\)\)\] {
|
|
3843
3874
|
&:focus-within {
|
|
3844
3875
|
--tw-shadow: var(--chat-input-focus-shadow,0 10px 30px rgba(15,23,42,0.08));
|
|
@@ -4355,6 +4386,13 @@
|
|
|
4355
4386
|
}
|
|
4356
4387
|
}
|
|
4357
4388
|
}
|
|
4389
|
+
.hover\:text-\[var\(--status-error\,\#ff4d6d\)\] {
|
|
4390
|
+
&:hover {
|
|
4391
|
+
@media (hover: hover) {
|
|
4392
|
+
color: var(--status-error,#ff4d6d);
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4358
4396
|
.hover\:text-\[var\(--surface-danger-text\)\] {
|
|
4359
4397
|
&:hover {
|
|
4360
4398
|
@media (hover: hover) {
|
|
@@ -4475,6 +4513,11 @@
|
|
|
4475
4513
|
border-color: var(--border-accent-hover);
|
|
4476
4514
|
}
|
|
4477
4515
|
}
|
|
4516
|
+
.focus\:border-primary {
|
|
4517
|
+
&:focus {
|
|
4518
|
+
border-color: var(--color-primary);
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4478
4521
|
.focus\:bg-accent {
|
|
4479
4522
|
&:focus {
|
|
4480
4523
|
background-color: var(--color-accent);
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { AgentWorkbench, ApprovalConfidenceStat, ApprovalItem, ApprovalQueue, Ap
|
|
|
5
5
|
export { ArtifactView, BRAND_PRISM_THEME, CodeSurface, CodeSurfaceProps, CodeView, CodeViewProps, DiffStats, DiffView, DiffViewProps, FileBreadcrumb, FileBreadcrumbProps, GitStatusBadge, PanelHeader, PanelHeaderProps, PillTabItem, PillTabs, PillTabsProps, PreviewView, PreviewViewProps, SandboxArtifact, SandboxArtifactPane, SandboxArtifactPaneProps, SandboxArtifactTerminal, buildUnifiedPatch, computeDiffStats, resolveLanguage } from './workbench.js';
|
|
6
6
|
export { OpenUIAction, OpenUIActionsNode, OpenUIArtifactRenderer, OpenUIArtifactRendererProps, OpenUIBadgeNode, OpenUICardNode, OpenUICodeNode, OpenUIComponentNode, OpenUIGridNode, OpenUIHeadingNode, OpenUIKeyValueNode, OpenUIMarkdownNode, OpenUIPrimitive, OpenUISeparatorNode, OpenUIStackNode, OpenUIStatNode, OpenUITableNode, OpenUITextNode } from '@tangle-network/ui/openui';
|
|
7
7
|
export { AgentTimeline, AgentTimelineArtifactItem, AgentTimelineCustomItem, AgentTimelineItem, AgentTimelineMessageItem, AgentTimelineProps, AgentTimelineStatusItem, AgentTimelineTone, AgentTimelineToolGroupItem, AgentTimelineToolItem, ChatContainer, ChatContainerProps, ChatInput, ChatInputProps, ChatMessage, ChatMessageProps, MessageList, MessageListProps, MessageRole, PendingFile, ThinkingIndicator, ThinkingIndicatorProps, UserMessage, UserMessageProps } from '@tangle-network/ui/chat';
|
|
8
|
-
export { AgentSessionControls, AgentSessionControlsProps, AgentSessionHarnessControl, AgentSessionModelControl, AgentSessionReasoningControl, ArtifactAgentDock, ArtifactAgentDockProps, ArtifactAgentDockTransport, ArtifactDockMessage, ArtifactDockStreamEvent, ArtifactKind, ArtifactScope, DEFAULT_REASONING_LEVEL_OPTIONS,
|
|
8
|
+
export { AgentComposer, AgentComposerProps, AgentProfileCapability, AgentProfileDraft, AgentProfileOption, AgentProfilePicker, AgentProfilePickerProps, AgentSessionControls, AgentSessionControlsProps, AgentSessionHarnessControl, AgentSessionModelControl, AgentSessionProfileControl, AgentSessionReasoningControl, ArtifactAgentDock, ArtifactAgentDockProps, ArtifactAgentDockTransport, ArtifactDockMessage, ArtifactDockStreamEvent, ArtifactKind, ArtifactScope, DEFAULT_REASONING_LEVEL_OPTIONS, ReasoningLevel, ReasoningLevelOption, ReasoningLevelPicker, ReasoningLevelPickerProps, createFetchTransport, isModelCompatibleWithHarness, snapModelToHarness } from './chat.js';
|
|
9
9
|
export { ExpandedToolDetail, ExpandedToolDetailProps, InlineThinkingItem, InlineThinkingItemProps, InlineToolItem, InlineToolItemProps, LiveDuration, RunGroup, RunGroupProps } from '@tangle-network/ui/run';
|
|
10
10
|
export { CommandPreview, DiffPreview, GlobResultsPreview, GrepResultsPreview, QuestionPreview, WebSearchPreview, WriteFilePreview } from '@tangle-network/ui/tool-previews';
|
|
11
11
|
export { FileArtifactPane, FileArtifactPaneProps, FileNode, FilePreview, FilePreviewProps, FileTabData, FileTabs, FileTabsProps, FileTree, FileTreeProps, FileTreeVisibilityOptions, RichFileTree, RichFileTreeGitEntry, RichFileTreeGitStatus, RichFileTreeProps, RichFileTreeThemeVars, filterFileTree } from '@tangle-network/ui/files';
|
|
@@ -23,7 +23,7 @@ export { ChatSession, connectSession, disconnectSession, sessionAtom } from './s
|
|
|
23
23
|
export { AgentBranding, CustomToolRenderer, DisplayVariant, FinalTextPart, GroupedMessage, MessageRun, MessageUser, ReasoningPart, Run, RunStats, SessionMessage, SessionPart, TextPart, ToolCategory, ToolDisplayMetadata, ToolPart, ToolState, ToolStatus, ToolTime } from '@tangle-network/ui/types';
|
|
24
24
|
export { Session } from './types.js';
|
|
25
25
|
export { TOOL_CATEGORY_ICONS, cn, copyText, formatBytes, formatDuration, formatUptime, getToolCategory, getToolDisplayMetadata, getToolErrorText, timeAgo, truncateText } from '@tangle-network/ui/utils';
|
|
26
|
-
export { HarnessType } from '@tangle-network/agent-interface';
|
|
26
|
+
export { HarnessType, modelProvider, snapHarnessToModel } from '@tangle-network/agent-interface';
|
|
27
27
|
import 'react/jsx-runtime';
|
|
28
28
|
import 'react';
|
|
29
29
|
import '@radix-ui/react-dropdown-menu';
|
package/dist/index.js
CHANGED
|
@@ -74,6 +74,8 @@ import {
|
|
|
74
74
|
UserMenu
|
|
75
75
|
} from "./chunk-IOB2PW5Z.js";
|
|
76
76
|
import {
|
|
77
|
+
AgentComposer,
|
|
78
|
+
AgentProfilePicker,
|
|
77
79
|
AgentSessionControls,
|
|
78
80
|
AgentTimeline,
|
|
79
81
|
ArtifactAgentDock,
|
|
@@ -81,7 +83,6 @@ import {
|
|
|
81
83
|
ChatInput,
|
|
82
84
|
ChatMessage,
|
|
83
85
|
DEFAULT_REASONING_LEVEL_OPTIONS,
|
|
84
|
-
HARNESS_MODEL_POLICIES,
|
|
85
86
|
MessageList,
|
|
86
87
|
ReasoningLevelPicker,
|
|
87
88
|
ThinkingIndicator,
|
|
@@ -91,7 +92,7 @@ import {
|
|
|
91
92
|
modelProvider,
|
|
92
93
|
snapHarnessToModel,
|
|
93
94
|
snapModelToHarness
|
|
94
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-4XOZGMJC.js";
|
|
95
96
|
import {
|
|
96
97
|
TOOL_CATEGORY_ICONS,
|
|
97
98
|
cn,
|
|
@@ -148,7 +149,7 @@ import {
|
|
|
148
149
|
buildUnifiedPatch,
|
|
149
150
|
computeDiffStats,
|
|
150
151
|
resolveLanguage
|
|
151
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-MKX3F55O.js";
|
|
152
153
|
import {
|
|
153
154
|
FileArtifactPane,
|
|
154
155
|
FilePreview,
|
|
@@ -213,7 +214,7 @@ import {
|
|
|
213
214
|
canAdminSandbox,
|
|
214
215
|
parseInsufficientBalance,
|
|
215
216
|
useSidebar
|
|
216
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-D7JJLG4L.js";
|
|
217
218
|
import {
|
|
218
219
|
BillingDashboard,
|
|
219
220
|
InfoPanel,
|
|
@@ -352,6 +353,8 @@ import {
|
|
|
352
353
|
import { Markdown } from "@tangle-network/ui/markdown";
|
|
353
354
|
export {
|
|
354
355
|
ActivityFeed,
|
|
356
|
+
AgentComposer,
|
|
357
|
+
AgentProfilePicker,
|
|
355
358
|
AgentSessionControls,
|
|
356
359
|
AgentTimeline,
|
|
357
360
|
AgentWorkbench,
|
|
@@ -432,7 +435,6 @@ export {
|
|
|
432
435
|
GlobResultsPreview,
|
|
433
436
|
GrepResultsPreview,
|
|
434
437
|
HARNESS_BRAND,
|
|
435
|
-
HARNESS_MODEL_POLICIES,
|
|
436
438
|
HARNESS_OPTIONS,
|
|
437
439
|
HarnessLogo,
|
|
438
440
|
HarnessPicker,
|
package/dist/styles.css
CHANGED
|
@@ -404,6 +404,9 @@
|
|
|
404
404
|
.bottom-\[-0\.75rem\] {
|
|
405
405
|
bottom: -0.75rem;
|
|
406
406
|
}
|
|
407
|
+
.bottom-full {
|
|
408
|
+
bottom: 100%;
|
|
409
|
+
}
|
|
407
410
|
.left-0 {
|
|
408
411
|
left: calc(var(--spacing) * 0);
|
|
409
412
|
}
|
|
@@ -660,6 +663,14 @@
|
|
|
660
663
|
width: calc(var(--spacing) * 3);
|
|
661
664
|
height: calc(var(--spacing) * 3);
|
|
662
665
|
}
|
|
666
|
+
.size-4 {
|
|
667
|
+
width: calc(var(--spacing) * 4);
|
|
668
|
+
height: calc(var(--spacing) * 4);
|
|
669
|
+
}
|
|
670
|
+
.size-9 {
|
|
671
|
+
width: calc(var(--spacing) * 9);
|
|
672
|
+
height: calc(var(--spacing) * 9);
|
|
673
|
+
}
|
|
663
674
|
.\!h-2 {
|
|
664
675
|
height: calc(var(--spacing) * 2) !important;
|
|
665
676
|
}
|
|
@@ -825,6 +836,9 @@
|
|
|
825
836
|
.max-h-\[160px\] {
|
|
826
837
|
max-height: 160px;
|
|
827
838
|
}
|
|
839
|
+
.max-h-\[min\(60vh\,420px\)\] {
|
|
840
|
+
max-height: min(60vh, 420px);
|
|
841
|
+
}
|
|
828
842
|
.max-h-\[min\(440px\,var\(--radix-dropdown-menu-content-available-height\)\)\] {
|
|
829
843
|
max-height: min(440px, var(--radix-dropdown-menu-content-available-height));
|
|
830
844
|
}
|
|
@@ -885,6 +899,9 @@
|
|
|
885
899
|
.min-h-\[300px\] {
|
|
886
900
|
min-height: 300px;
|
|
887
901
|
}
|
|
902
|
+
.min-h-\[640px\] {
|
|
903
|
+
min-height: 640px;
|
|
904
|
+
}
|
|
888
905
|
.min-h-full {
|
|
889
906
|
min-height: 100%;
|
|
890
907
|
}
|
|
@@ -1050,6 +1067,9 @@
|
|
|
1050
1067
|
.w-\[300px\] {
|
|
1051
1068
|
width: 300px;
|
|
1052
1069
|
}
|
|
1070
|
+
.w-\[320px\] {
|
|
1071
|
+
width: 320px;
|
|
1072
|
+
}
|
|
1053
1073
|
.w-\[360px\] {
|
|
1054
1074
|
width: 360px;
|
|
1055
1075
|
}
|
|
@@ -3375,6 +3395,9 @@
|
|
|
3375
3395
|
.accent-primary {
|
|
3376
3396
|
accent-color: var(--color-primary);
|
|
3377
3397
|
}
|
|
3398
|
+
.\[color-scheme\:dark\] {
|
|
3399
|
+
color-scheme: dark;
|
|
3400
|
+
}
|
|
3378
3401
|
.opacity-0 {
|
|
3379
3402
|
opacity: 0%;
|
|
3380
3403
|
}
|
|
@@ -3839,6 +3862,14 @@
|
|
|
3839
3862
|
border-color: var(--color-border);
|
|
3840
3863
|
}
|
|
3841
3864
|
}
|
|
3865
|
+
.focus-within\:border-primary\/60 {
|
|
3866
|
+
&:focus-within {
|
|
3867
|
+
border-color: color-mix(in srgb, hsl(var(--primary)) 60%, transparent);
|
|
3868
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3869
|
+
border-color: color-mix(in oklab, var(--color-primary) 60%, transparent);
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3842
3873
|
.focus-within\:shadow-\[var\(--chat-input-focus-shadow\,0_10px_30px_rgba\(15\,23\,42\,0\.08\)\)\] {
|
|
3843
3874
|
&:focus-within {
|
|
3844
3875
|
--tw-shadow: var(--chat-input-focus-shadow,0 10px 30px rgba(15,23,42,0.08));
|
|
@@ -4355,6 +4386,13 @@
|
|
|
4355
4386
|
}
|
|
4356
4387
|
}
|
|
4357
4388
|
}
|
|
4389
|
+
.hover\:text-\[var\(--status-error\,\#ff4d6d\)\] {
|
|
4390
|
+
&:hover {
|
|
4391
|
+
@media (hover: hover) {
|
|
4392
|
+
color: var(--status-error,#ff4d6d);
|
|
4393
|
+
}
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4358
4396
|
.hover\:text-\[var\(--surface-danger-text\)\] {
|
|
4359
4397
|
&:hover {
|
|
4360
4398
|
@media (hover: hover) {
|
|
@@ -4475,6 +4513,11 @@
|
|
|
4475
4513
|
border-color: var(--border-accent-hover);
|
|
4476
4514
|
}
|
|
4477
4515
|
}
|
|
4516
|
+
.focus\:border-primary {
|
|
4517
|
+
&:focus {
|
|
4518
|
+
border-color: var(--color-primary);
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4478
4521
|
.focus\:bg-accent {
|
|
4479
4522
|
&:focus {
|
|
4480
4523
|
background-color: var(--color-accent);
|
package/dist/workbench.js
CHANGED
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
buildUnifiedPatch,
|
|
13
13
|
computeDiffStats,
|
|
14
14
|
resolveLanguage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MKX3F55O.js";
|
|
16
16
|
import "./chunk-3J6FG3FJ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-D7JJLG4L.js";
|
|
18
18
|
import "./chunk-OMUIPJQZ.js";
|
|
19
19
|
import "./chunk-VIREDUBF.js";
|
|
20
20
|
import "./chunk-77WVVJA4.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"test:bridge": "pnpm build && vitest run src/__tests__/re-export-identity.test.ts"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@tangle-network/agent-interface": ">=0.
|
|
129
|
+
"@tangle-network/agent-interface": ">=0.15.0 <1.0.0",
|
|
130
130
|
"@tangle-network/brand": "^0.6.0",
|
|
131
131
|
"@tangle-network/ui": "^4.0.0",
|
|
132
132
|
"@xyflow/react": "^12.0.0",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"@storybook/react-vite": "^8.6.18",
|
|
182
182
|
"@tailwindcss/postcss": "^4.2.2",
|
|
183
183
|
"@tailwindcss/vite": "^4.2.2",
|
|
184
|
-
"@tangle-network/agent-interface": ">=0.
|
|
184
|
+
"@tangle-network/agent-interface": ">=0.15.0 <1.0.0",
|
|
185
185
|
"@tangle-network/brand": "^0.6.0",
|
|
186
186
|
"@tangle-network/ui": "^4.1.0",
|
|
187
187
|
"@tanstack/react-query": "^5.91.0",
|