@tangle-network/sandbox-ui 0.137.1 → 0.138.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/{WorkflowGraph-BcuJ0kgt.js → WorkflowGraph-DXmu60At.js} +4 -7
- package/dist/assets.d.ts +0 -18
- package/dist/assets.js +9 -17
- package/dist/{auth-CWe17Hly.js → auth-BDpoZ_2f.js} +1 -2
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -2
- package/dist/{chat-_aHUfqtH.js → chat-BYTVLZQW.js} +9 -15
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -2
- package/dist/{connections-C5DxYxvz.js → connections-DymjzHe_.js} +1 -2
- package/dist/connections.d.ts +1 -1
- package/dist/connections.js +1 -2
- package/dist/connectors.d.ts +0 -10
- package/dist/connectors.js +5 -9
- package/dist/{dashboard-SFakZEtu.js → dashboard-ClKA3opr.js} +31 -55
- package/dist/dashboard.d.ts +3 -3
- package/dist/dashboard.js +3 -3
- package/dist/diff-view-A0O0Z_SR.js +287 -0
- package/dist/diff-view-DDHWtR6X.d.ts +21 -0
- package/dist/editor.js +1 -2
- package/dist/{embedded-app-view-CYb9hevq.js → embedded-app-view-DXsoPale.js} +5 -8
- package/dist/{embedded-app-view-B_vMTtJn.d.ts → embedded-app-view-Ta5GI4hx.d.ts} +0 -4
- package/dist/files.js +1 -2
- package/dist/globals.css +43 -0
- package/dist/hooks.d.ts +3 -7
- package/dist/hooks.js +4 -6
- package/dist/{index-DsU8ts9f.d.ts → index-BAEvGqrn.d.ts} +0 -4
- package/dist/{index-DvmZLMT1.d.ts → index-BbfWVtZq.d.ts} +0 -2
- package/dist/index-C5h5T0nb.d.ts +91 -0
- package/dist/{index-ByzdHyte.d.ts → index-CvtEhIpk.d.ts} +25 -52
- package/dist/{index-ClRHbsoX.d.ts → index-DLX35YAa.d.ts} +0 -2
- package/dist/{index-AVDzT8Jw.d.ts → index-DRDtTgb0.d.ts} +2 -54
- package/dist/{index-C61CTrhx.d.ts → index-F42BOxUM.d.ts} +15 -37
- package/dist/{index-QBCEflyf.d.ts → index-ucJHuuVZ.d.ts} +2 -8
- package/dist/{index-DGil6iqm.d.ts → index-y2OPUSoY.d.ts} +0 -4
- package/dist/index.d.ts +17 -16
- package/dist/index.js +24 -20
- package/dist/integrations.d.ts +0 -14
- package/dist/integrations.js +6 -11
- package/dist/markdown.js +1 -2
- package/dist/{model-brand-B57CV8Lg.d.ts → model-brand-ZwVS49Fq.d.ts} +0 -2
- package/dist/{model-brand-BSr9on8C.js → model-brand-bTcMjQtB.js} +34 -67
- package/dist/{motion-D4njYpys.js → motion-Bn7ESHrj.js} +1 -2
- package/dist/{node-output-fuk0NV0V.js → node-output-udnwhShN.js} +9 -16
- package/dist/openui.js +1 -2
- package/dist/{page-layout-2IRtfx51.js → page-layout-CuOpvZys.js} +5 -9
- package/dist/pages.d.ts +2 -14
- package/dist/pages.js +9 -15
- package/dist/{primitives-CLOVnjWz.js → primitives-CiwDp4-0.js} +4 -7
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +1 -2
- package/dist/{provider-logo-BGCziCbM.js → provider-logo-CPKRPHcS.js} +1 -2
- package/dist/{rolldown-runtime-BBjsoOtd.js → rolldown-runtime-782esTHO.js} +1 -2
- package/dist/run-CliTxkfw.js +397 -0
- package/dist/run.d.ts +2 -2
- package/dist/run.js +1 -2
- package/dist/sdk-hooks.d.ts +1 -1
- package/dist/sdk-hooks.js +1 -1
- package/dist/{shell-header-CTh3oV_e.js → shell-header-CwqDzC4I.js} +2 -3
- package/dist/{sidecar-DgH_vQ6m.d.ts → sidecar-CNP4zXop.d.ts} +0 -2
- package/dist/stores.d.ts +0 -2
- package/dist/stores.js +1 -2
- package/dist/styles.css +43 -0
- package/dist/{terminal-X6r5pjgv.js → terminal-nUCznZRj.js} +3 -5
- package/dist/terminal.d.ts +1 -3
- package/dist/terminal.js +1 -2
- package/dist/{tree-data-DtoCNNBJ.js → tree-data-YXtcK6Ld.js} +2 -4
- package/dist/types.d.ts +1 -1
- package/dist/{usage-chart-BjM8ShvX.d.ts → usage-chart-BFpdkqNq.d.ts} +0 -6
- package/dist/{use-pty-session-B5Q_i9RI.js → use-pty-session-BHVQlSs-.js} +1 -2
- package/dist/{use-pty-session-DbAYO5uH.d.ts → use-pty-session-DSgtQyYX.d.ts} +0 -2
- package/dist/{use-sidecar-auth-CCTJcrq7.d.ts → use-sidecar-auth-CPevSSEj.d.ts} +0 -4
- package/dist/{use-sidecar-auth-DkdcufOz.js → use-sidecar-auth-DpG0aWQ3.js} +3 -6
- package/dist/utils-BER_bdgE.js +1 -0
- package/dist/utils.js +1 -2
- package/dist/vault-tree.d.ts +1 -1
- package/dist/vault-tree.js +1 -2
- package/dist/workbench/diff.d.ts +2 -0
- package/dist/workbench/diff.js +1 -0
- package/dist/workbench/embedded-app.d.ts +1 -1
- package/dist/workbench/embedded-app.js +1 -2
- package/dist/workbench-B3JL1qbt.js +892 -0
- package/dist/workbench.d.ts +4 -3
- package/dist/workbench.js +4 -3
- package/dist/workflows.d.ts +1 -13
- package/dist/workflows.js +4 -5
- package/dist/{workspace-cjk0axyT.js → workspace-DRhi6S3o.js} +325 -141
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +2 -2
- package/package.json +36 -28
- package/dist/utils-DzWbktWG.js +0 -2
- package/dist/workbench-DPZ6LXqf.js +0 -8136
package/dist/sdk-hooks.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { d as useSessionStream, l as UseSessionStreamOptions, n as UseSidecarAuthOptions, r as useSidecarAuth, s as SessionInfo, t as SidecarAuth, u as UseSessionStreamResult } from "./use-sidecar-auth-
|
|
1
|
+
import { d as useSessionStream, l as UseSessionStreamOptions, n as UseSidecarAuthOptions, r as useSidecarAuth, s as SessionInfo, t as SidecarAuth, u as UseSessionStreamResult } from "./use-sidecar-auth-CPevSSEj.js";
|
|
2
2
|
import { AgentStreamEvent, AppendUserMessageOptions, ApplySdkEventOptions, AutomationStreamEvent, BeginAssistantMessageOptions, BotStreamEvent, CompleteAssistantMessageOptions, ConnectionState, RealtimeSessionOptions, RealtimeSessionRegistry, RealtimeSessionRegistryProps, RealtimeSessionState, RealtimeSessionTarget, SSEEvent, SdkSessionAttachment, SdkSessionEvent, SdkSessionSeed, TaskStreamEvent, TerminalStreamEvent, UseRunGroupsOptions, UseSSEStreamOptions, UseSSEStreamResult, UseSdkSessionOptions, UseSdkSessionReturn, UseToolCallStreamReturn, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useToolCallStream } from "@tangle-network/ui/sdk-hooks";
|
|
3
3
|
export { type AgentStreamEvent, type AppendUserMessageOptions, type ApplySdkEventOptions, type AutomationStreamEvent, type BeginAssistantMessageOptions, type BotStreamEvent, type CompleteAssistantMessageOptions, type ConnectionState, type RealtimeSessionOptions, RealtimeSessionRegistry, type RealtimeSessionRegistryProps, type RealtimeSessionState, type RealtimeSessionTarget, type SSEEvent, type SdkSessionAttachment, type SdkSessionEvent, type SdkSessionSeed, type SessionInfo, type SidecarAuth, type TaskStreamEvent, type TerminalStreamEvent, type UseRunGroupsOptions, type UseSSEStreamOptions, type UseSSEStreamResult, type UseSdkSessionOptions, type UseSdkSessionReturn, type UseSessionStreamOptions, type UseSessionStreamResult, type UseSidecarAuthOptions, type UseToolCallStreamReturn, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream };
|
package/dist/sdk-hooks.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as useSessionStream, t as useSidecarAuth } from "./use-sidecar-auth-
|
|
1
|
+
import { i as useSessionStream, t as useSidecarAuth } from "./use-sidecar-auth-DpG0aWQ3.js";
|
|
2
2
|
import { RealtimeSessionRegistry, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useToolCallStream } from "@tangle-network/ui/sdk-hooks";
|
|
3
3
|
export { RealtimeSessionRegistry, useAutoScroll, useDropdownMenu, useRealtimeSession, useRunCollapseState, useRunGroups, useSSEStream, useSdkSession, useSessionStream, useSidecarAuth, useToolCallStream };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-BER_bdgE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/workspace/shell-header.tsx
|
|
4
4
|
/**
|
|
5
5
|
* One height for every header row in the app shell: the sidebar rail's top row,
|
|
6
6
|
* the main pane, side panels, drawers and the assistant. Their bottom dividers
|
|
@@ -37,5 +37,4 @@ function ShellHeader({ as: Tag = "div", inset = false, divider = true, className
|
|
|
37
37
|
}
|
|
38
38
|
/** @deprecated Use `ShellHeader`; kept so existing imports keep the shared row. */
|
|
39
39
|
const WorkspacePaneHeader = ShellHeader;
|
|
40
|
-
//#endregion
|
|
41
40
|
export { WorkspacePaneHeader as i, SHELL_INSET_GUTTER as n, ShellHeader as r, SHELL_HEADER_HEIGHT as t };
|
package/dist/stores.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ActiveProjectActivity, ActiveSessionActivityOptions, ActiveSessionConnectionOptions, ActiveSessionConnectionState, ActiveSessionReconnectState, ActiveSessionRecord, ActiveSessionStatus, ActiveSessionTransportMode, ActiveSessionsState, RegisterActiveSessionOptions, SessionProjectKey, activeSessionsAtom, addMessage, addParts, bumpActiveSessionActivity, clearChat, getActiveSession, getAllActiveSessions, getAllProjectActivity, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, partMapAtom, registerActiveSession, resetActiveSessions, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useHasBackgroundRunningSessions, useNavbarSessions, useProjectActivity, useProjectSessions, useSessionsByActivity, useTotalRunningSessions } from "@tangle-network/ui/stores";
|
|
2
|
-
//#region src/stores/session-store.d.ts
|
|
3
2
|
export interface ChatSession {
|
|
4
3
|
/** Sidecar HTTP base URL, e.g. "http://localhost:8080". */
|
|
5
4
|
sidecarUrl: string;
|
|
@@ -12,5 +11,4 @@ export interface ChatSession {
|
|
|
12
11
|
export declare const sessionAtom: import("nanostores").PreinitializedWritableAtom<ChatSession | null> & object;
|
|
13
12
|
export declare function connectSession(session: ChatSession): void;
|
|
14
13
|
export declare function disconnectSession(): void;
|
|
15
|
-
//#endregion
|
|
16
14
|
export { type ActiveProjectActivity, type ActiveSessionActivityOptions, type ActiveSessionConnectionOptions, type ActiveSessionConnectionState, type ActiveSessionReconnectState, type ActiveSessionRecord, type ActiveSessionStatus, type ActiveSessionTransportMode, type ActiveSessionsState, type RegisterActiveSessionOptions, type SessionProjectKey, activeSessionsAtom, addMessage, addParts, bumpActiveSessionActivity, clearChat, getActiveSession, getAllActiveSessions, getAllProjectActivity, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, partMapAtom, registerActiveSession, resetActiveSessions, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useHasBackgroundRunningSessions, useNavbarSessions, useProjectActivity, useProjectSessions, useSessionsByActivity, useTotalRunningSessions };
|
package/dist/stores.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { activeSessionsAtom, addMessage, addParts, bumpActiveSessionActivity, clearChat, getActiveSession, getAllActiveSessions, getAllProjectActivity, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, partMapAtom, registerActiveSession, resetActiveSessions, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useHasBackgroundRunningSessions, useNavbarSessions, useProjectActivity, useProjectSessions, useSessionsByActivity, useTotalRunningSessions } from "@tangle-network/ui/stores";
|
|
2
2
|
import { atom } from "nanostores";
|
|
3
|
-
|
|
3
|
+
// src/stores/session-store.ts
|
|
4
4
|
/** The currently active chat session (null when disconnected). */
|
|
5
5
|
const sessionAtom = atom(null);
|
|
6
6
|
function connectSession(session) {
|
|
@@ -9,5 +9,4 @@ function connectSession(session) {
|
|
|
9
9
|
function disconnectSession() {
|
|
10
10
|
sessionAtom.set(null);
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { activeSessionsAtom, addMessage, addParts, bumpActiveSessionActivity, clearChat, connectSession, disconnectSession, getActiveSession, getAllActiveSessions, getAllProjectActivity, getSessionsByActivity, getSessionsForNavbar, getSessionsForProject, getTotalRunningSessionCount, hasBackgroundRunningSessions, isStreamingAtom, messagesAtom, partMapAtom, registerActiveSession, resetActiveSessions, sessionAtom, setActiveSessionAttention, setActiveSessionConnection, setActiveSessionError, setActiveSessionRunning, setForegroundActiveSession, unregisterActiveSession, updateActiveSessionMeta, updatePart, useActiveSession, useActiveSessions, useActiveSessionsState, useHasBackgroundRunningSessions, useNavbarSessions, useProjectActivity, useProjectSessions, useSessionsByActivity, useTotalRunningSessions };
|
package/dist/styles.css
CHANGED
|
@@ -397,6 +397,9 @@
|
|
|
397
397
|
.bottom-2 {
|
|
398
398
|
bottom: calc(var(--spacing) * 2);
|
|
399
399
|
}
|
|
400
|
+
.bottom-3 {
|
|
401
|
+
bottom: calc(var(--spacing) * 3);
|
|
402
|
+
}
|
|
400
403
|
.bottom-4 {
|
|
401
404
|
bottom: calc(var(--spacing) * 4);
|
|
402
405
|
}
|
|
@@ -958,6 +961,9 @@
|
|
|
958
961
|
.h-\[36rem\] {
|
|
959
962
|
height: 36rem;
|
|
960
963
|
}
|
|
964
|
+
.h-\[70vh\] {
|
|
965
|
+
height: 70vh;
|
|
966
|
+
}
|
|
961
967
|
.h-\[72\%\] {
|
|
962
968
|
height: 72%;
|
|
963
969
|
}
|
|
@@ -1171,6 +1177,9 @@
|
|
|
1171
1177
|
.min-h-\[66px\] {
|
|
1172
1178
|
min-height: 66px;
|
|
1173
1179
|
}
|
|
1180
|
+
.min-h-\[70vh\] {
|
|
1181
|
+
min-height: 70vh;
|
|
1182
|
+
}
|
|
1174
1183
|
.min-h-\[72px\] {
|
|
1175
1184
|
min-height: 72px;
|
|
1176
1185
|
}
|
|
@@ -1465,6 +1474,9 @@
|
|
|
1465
1474
|
.max-w-40 {
|
|
1466
1475
|
max-width: calc(var(--spacing) * 40);
|
|
1467
1476
|
}
|
|
1477
|
+
.max-w-48 {
|
|
1478
|
+
max-width: calc(var(--spacing) * 48);
|
|
1479
|
+
}
|
|
1468
1480
|
.max-w-72 {
|
|
1469
1481
|
max-width: calc(var(--spacing) * 72);
|
|
1470
1482
|
}
|
|
@@ -2103,6 +2115,9 @@
|
|
|
2103
2115
|
.self-start {
|
|
2104
2116
|
align-self: flex-start;
|
|
2105
2117
|
}
|
|
2118
|
+
.self-stretch {
|
|
2119
|
+
align-self: stretch;
|
|
2120
|
+
}
|
|
2106
2121
|
.justify-self-start {
|
|
2107
2122
|
justify-self: flex-start;
|
|
2108
2123
|
}
|
|
@@ -2274,6 +2289,10 @@
|
|
|
2274
2289
|
border-bottom-style: var(--tw-border-style);
|
|
2275
2290
|
border-bottom-width: 1px;
|
|
2276
2291
|
}
|
|
2292
|
+
.border-b-0 {
|
|
2293
|
+
border-bottom-style: var(--tw-border-style);
|
|
2294
|
+
border-bottom-width: 0px;
|
|
2295
|
+
}
|
|
2277
2296
|
.border-b-2 {
|
|
2278
2297
|
border-bottom-style: var(--tw-border-style);
|
|
2279
2298
|
border-bottom-width: 2px;
|
|
@@ -2709,6 +2728,9 @@
|
|
|
2709
2728
|
.bg-\[var\(--status-running\)\] {
|
|
2710
2729
|
background-color: var(--status-running);
|
|
2711
2730
|
}
|
|
2731
|
+
.bg-\[var\(--status-running\,\#34c48c\)\] {
|
|
2732
|
+
background-color: var(--status-running,#34c48c);
|
|
2733
|
+
}
|
|
2712
2734
|
.bg-\[var\(--surface-danger-bg\)\] {
|
|
2713
2735
|
background-color: var(--surface-danger-bg);
|
|
2714
2736
|
}
|
|
@@ -2940,6 +2962,12 @@
|
|
|
2940
2962
|
background-color: color-mix(in oklab, hsl(var(--muted-foreground)) 40%, transparent);
|
|
2941
2963
|
}
|
|
2942
2964
|
}
|
|
2965
|
+
.bg-muted-foreground\/50 {
|
|
2966
|
+
background-color: hsl(var(--muted-foreground));
|
|
2967
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2968
|
+
background-color: color-mix(in oklab, hsl(var(--muted-foreground)) 50%, transparent);
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2943
2971
|
.bg-muted\/10 {
|
|
2944
2972
|
background-color: hsl(var(--muted));
|
|
2945
2973
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -4432,6 +4460,9 @@
|
|
|
4432
4460
|
--tw-translate-x: calc(var(--spacing) * 0.5);
|
|
4433
4461
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
4434
4462
|
}
|
|
4463
|
+
.group-hover\:bg-primary:is(:where(.group):hover *) {
|
|
4464
|
+
background-color: hsl(var(--primary));
|
|
4465
|
+
}
|
|
4435
4466
|
.group-hover\:bg-primary\/20:is(:where(.group):hover *) {
|
|
4436
4467
|
background-color: hsl(var(--primary));
|
|
4437
4468
|
}
|
|
@@ -4467,6 +4498,9 @@
|
|
|
4467
4498
|
opacity: 100%;
|
|
4468
4499
|
}
|
|
4469
4500
|
}
|
|
4501
|
+
.group-focus-visible\:bg-primary:is(:where(.group):focus-visible *) {
|
|
4502
|
+
background-color: hsl(var(--primary));
|
|
4503
|
+
}
|
|
4470
4504
|
.group-focus-visible\:bg-primary\/30:is(:where(.group):focus-visible *) {
|
|
4471
4505
|
background-color: hsl(var(--primary));
|
|
4472
4506
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -4600,6 +4634,9 @@
|
|
|
4600
4634
|
border-color: color-mix(in oklab, hsl(var(--accent)) 50%, transparent);
|
|
4601
4635
|
}
|
|
4602
4636
|
}
|
|
4637
|
+
.hover\:border-border:hover {
|
|
4638
|
+
border-color: hsl(var(--border));
|
|
4639
|
+
}
|
|
4603
4640
|
.hover\:border-destructive\/30:hover {
|
|
4604
4641
|
border-color: hsl(var(--destructive));
|
|
4605
4642
|
}
|
|
@@ -5111,6 +5148,9 @@
|
|
|
5111
5148
|
.focus-visible\:text-foreground:focus-visible {
|
|
5112
5149
|
color: hsl(var(--foreground));
|
|
5113
5150
|
}
|
|
5151
|
+
.focus-visible\:underline:focus-visible {
|
|
5152
|
+
text-decoration-line: underline;
|
|
5153
|
+
}
|
|
5114
5154
|
.focus-visible\:opacity-100:focus-visible {
|
|
5115
5155
|
opacity: 100%;
|
|
5116
5156
|
}
|
|
@@ -6149,6 +6189,9 @@
|
|
|
6149
6189
|
.\[\&\:not\(\:first-child\)\]\:pt-3:not(:first-child) {
|
|
6150
6190
|
padding-top: calc(var(--spacing) * 3);
|
|
6151
6191
|
}
|
|
6192
|
+
.\[\&\>\*\]\:min-h-full > * {
|
|
6193
|
+
min-height: 100%;
|
|
6194
|
+
}
|
|
6152
6195
|
.\[\&\>\*\]\:max-w-full > * {
|
|
6153
6196
|
max-width: 100%;
|
|
6154
6197
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as usePtySession } from "./use-pty-session-
|
|
1
|
+
import { t as usePtySession } from "./use-pty-session-BHVQlSs-.js";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import "@xterm/xterm/css/xterm.css";
|
|
5
5
|
import { Terminal } from "@xterm/xterm";
|
|
6
6
|
import { FitAddon } from "@xterm/addon-fit";
|
|
7
7
|
import { WebLinksAddon } from "@xterm/addon-web-links";
|
|
8
|
-
|
|
8
|
+
// node_modules/.pnpm/@xterm+addon-unicode-graphemes@0.4.0/node_modules/@xterm/addon-unicode-graphemes/lib/addon-unicode-graphemes.mjs
|
|
9
9
|
/**
|
|
10
10
|
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
11
11
|
* @license MIT
|
|
@@ -1503,8 +1503,7 @@ var wt = class {
|
|
|
1503
1503
|
this._unicode && (this._unicode.activeVersion = this._oldVersion);
|
|
1504
1504
|
}
|
|
1505
1505
|
};
|
|
1506
|
-
|
|
1507
|
-
//#region src/terminal/terminal-view.tsx
|
|
1506
|
+
// src/terminal/terminal-view.tsx
|
|
1508
1507
|
const DEFAULT_TERMINAL_THEME = {
|
|
1509
1508
|
background: "#0c0c0e",
|
|
1510
1509
|
foreground: "#d4d4d8",
|
|
@@ -1700,5 +1699,4 @@ function TerminalView({ session, apiUrl, token, theme, title = "Terminal", subti
|
|
|
1700
1699
|
})]
|
|
1701
1700
|
});
|
|
1702
1701
|
}
|
|
1703
|
-
//#endregion
|
|
1704
1702
|
export { TerminalView as n, DEFAULT_TERMINAL_THEME as t };
|
package/dist/terminal.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as UsePtySessionReturn } from "./use-pty-session-
|
|
1
|
+
import { n as UsePtySessionReturn } from "./use-pty-session-DSgtQyYX.js";
|
|
2
2
|
import "@xterm/xterm/css/xterm.css";
|
|
3
3
|
import { AgentInteractiveSessionControlClaim } from "@tangle-network/agent-interface";
|
|
4
|
-
//#region src/terminal/terminal-view.d.ts
|
|
5
4
|
interface TerminalTheme {
|
|
6
5
|
background: string;
|
|
7
6
|
foreground: string;
|
|
@@ -67,5 +66,4 @@ interface TerminalViewProps {
|
|
|
67
66
|
}
|
|
68
67
|
export declare const DEFAULT_TERMINAL_THEME: TerminalTheme;
|
|
69
68
|
declare function TerminalView({ session, apiUrl, token, theme, title, subtitle, isActive, connectionId, incarnationId, control, fontSize }: TerminalViewProps): import("react").JSX.Element;
|
|
70
|
-
//#endregion
|
|
71
69
|
export { type TerminalSession, type TerminalTheme, TerminalView, type TerminalViewProps };
|
package/dist/terminal.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DEFAULT_TERMINAL_THEME, TerminalView };
|
|
1
|
+
export { t as DEFAULT_TERMINAL_THEME, n as TerminalView } from "./terminal-nUCznZRj.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { ChevronRight, File, FileCode, FileImage, FileJson, FileSpreadsheet, FileText, Folder, FolderOpen } from "lucide-react";
|
|
4
|
-
|
|
4
|
+
// src/vault-tree/vault-tree.tsx
|
|
5
5
|
/**
|
|
6
6
|
* The file tree shared by the vault page and workspace Files panels: folders
|
|
7
7
|
* start collapsed, the reader's expansion is remembered per `storageKey` in this
|
|
@@ -353,8 +353,7 @@ function VaultTree({ root, selectedPath, activeFolder, onSelect, onFolderToggle,
|
|
|
353
353
|
})
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
|
|
357
|
-
//#region src/vault-tree/tree-data.ts
|
|
356
|
+
// src/vault-tree/tree-data.ts
|
|
358
357
|
/**
|
|
359
358
|
* Nests flat paths into folders. A path ending in `/` is a directory, so an
|
|
360
359
|
* empty folder survives; leading `./` and `/` are ignored.
|
|
@@ -412,5 +411,4 @@ function filterFileNodes(nodes, query) {
|
|
|
412
411
|
}
|
|
413
412
|
return out;
|
|
414
413
|
}
|
|
415
|
-
//#endregion
|
|
416
414
|
export { VaultTree as i, filterFileNodes as n, VAULT_TREE_CHILD_PAGE as r, fileTreeFromPaths as t };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Session } from "./sidecar-
|
|
1
|
+
import { t as Session } from "./sidecar-CNP4zXop.js";
|
|
2
2
|
import { ActiveProjectActivity, ActiveSessionActivityOptions, ActiveSessionConnectionOptions, ActiveSessionConnectionState, ActiveSessionReconnectState, ActiveSessionRecord, ActiveSessionStatus, ActiveSessionTransportMode, ActiveSessionsState, RegisterActiveSessionOptions, SessionProjectKey } from "@tangle-network/ui/stores";
|
|
3
3
|
import { AgentBranding, ChatAuthor, CustomToolRenderer, DisplayVariant, FinalTextPart, GroupedMessage, MessageRun, MessageUser, ReasoningPart, Run, RunStats, SessionMessage, SessionPart, TextPart, ToolCategory, ToolDisplayMetadata, ToolPart, ToolState, ToolStatus, ToolTime } from "@tangle-network/ui/types";
|
|
4
4
|
export { type ActiveProjectActivity, type ActiveSessionActivityOptions, type ActiveSessionConnectionOptions, type ActiveSessionConnectionState, type ActiveSessionReconnectState, type ActiveSessionRecord, type ActiveSessionStatus, type ActiveSessionTransportMode, type ActiveSessionsState, type AgentBranding, type ChatAuthor, type CustomToolRenderer, type DisplayVariant, type FinalTextPart, type GroupedMessage, type MessageRun, type MessageUser, type ReasoningPart, type RegisterActiveSessionOptions, type Run, type RunStats, Session, type SessionMessage, type SessionPart, type SessionProjectKey, type TextPart, type ToolCategory, type ToolDisplayMetadata, type ToolPart, type ToolState, type ToolStatus, type ToolTime };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
//#region src/dashboard/billing-dashboard.d.ts
|
|
3
2
|
interface BillingSubscription {
|
|
4
3
|
status: string;
|
|
5
4
|
tierName: string;
|
|
@@ -25,8 +24,6 @@ interface BillingDashboardProps {
|
|
|
25
24
|
cardClassName?: string;
|
|
26
25
|
}
|
|
27
26
|
declare function BillingDashboard({ subscription, balance, usage, onManageSubscription, onAddCredits, variant, className, cardClassName }: BillingDashboardProps): import("react").JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/dashboard/pricing-page.d.ts
|
|
30
27
|
interface PricingTier {
|
|
31
28
|
id: string;
|
|
32
29
|
name: string;
|
|
@@ -58,8 +55,6 @@ interface PricingPageProps {
|
|
|
58
55
|
*/
|
|
59
56
|
declare function formatPrice(cents: number): string;
|
|
60
57
|
declare function PricingPage({ tiers, currentTierId, billingPeriod, onBillingPeriodChange, onSelectTier, loading, className }: PricingPageProps): import("react").JSX.Element;
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/dashboard/usage-chart.d.ts
|
|
63
58
|
interface UsageDataPoint {
|
|
64
59
|
date: string;
|
|
65
60
|
value: number;
|
|
@@ -71,5 +66,4 @@ interface UsageChartProps {
|
|
|
71
66
|
className?: string;
|
|
72
67
|
}
|
|
73
68
|
declare function UsageChart({ data, title, unit, className }: UsageChartProps): React$1.JSX.Element;
|
|
74
|
-
//#endregion
|
|
75
69
|
export { PricingPageProps as a, BillingBalance as c, BillingSubscription as d, BillingUsage as f, PricingPage as i, BillingDashboard as l, UsageChartProps as n, PricingTier as o, UsageDataPoint as r, formatPrice as s, UsageChart as t, BillingDashboardProps as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
-
|
|
2
|
+
// src/hooks/use-pty-session.ts
|
|
3
3
|
function createEmptyBatch() {
|
|
4
4
|
return {
|
|
5
5
|
data: "",
|
|
@@ -678,5 +678,4 @@ function usePtySession({ enabled = true, apiUrl, token, onData, connectionId: pr
|
|
|
678
678
|
reconnect: connect
|
|
679
679
|
};
|
|
680
680
|
}
|
|
681
|
-
//#endregion
|
|
682
681
|
export { usePtySession as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AgentInteractiveSessionControlClaim } from "@tangle-network/agent-interface";
|
|
2
|
-
//#region src/hooks/use-pty-session.d.ts
|
|
3
2
|
interface UsePtySessionOptions {
|
|
4
3
|
/** Disable the built-in shell transport when a caller supplies a session. */
|
|
5
4
|
enabled?: boolean;
|
|
@@ -62,5 +61,4 @@ interface UsePtySessionReturn {
|
|
|
62
61
|
* deployments that have not yet shipped the WS endpoint.
|
|
63
62
|
*/
|
|
64
63
|
declare function usePtySession({ enabled, apiUrl, token, onData, connectionId: providedConnectionId, incarnationId, control }: UsePtySessionOptions): UsePtySessionReturn;
|
|
65
|
-
//#endregion
|
|
66
64
|
export { UsePtySessionReturn as n, usePtySession as r, UsePtySessionOptions as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReasoningEffort } from "@tangle-network/agent-interface";
|
|
2
2
|
import { SessionMessage, SessionPart } from "@tangle-network/ui/types";
|
|
3
|
-
//#region src/hooks/use-session-stream.d.ts
|
|
4
3
|
/** Minimal session info returned by the listing API. */
|
|
5
4
|
interface SessionInfo {
|
|
6
5
|
id: string;
|
|
@@ -109,8 +108,6 @@ declare const SESSION_STREAM_RECONNECT_DELAY_MS = 1000;
|
|
|
109
108
|
* SessionMessage + partMap format.
|
|
110
109
|
*/
|
|
111
110
|
declare function useSessionStream({ apiUrl, token, sessionId, enabled }: UseSessionStreamOptions): UseSessionStreamResult;
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region src/hooks/use-sidecar-auth.d.ts
|
|
114
111
|
interface UseSidecarAuthOptions {
|
|
115
112
|
/** Scoping key for token storage (e.g. botId, sandboxId). */
|
|
116
113
|
resourceId: string;
|
|
@@ -141,5 +138,4 @@ interface SidecarAuth {
|
|
|
141
138
|
* Tokens are cached in localStorage and auto-refreshed 5 minutes before expiry.
|
|
142
139
|
*/
|
|
143
140
|
declare function useSidecarAuth({ resourceId, apiUrl, signMessage }: UseSidecarAuthOptions): SidecarAuth;
|
|
144
|
-
//#endregion
|
|
145
141
|
export { SendMessageOptions as a, SessionStreamError as c, useSessionStream as d, SESSION_STREAM_RECONNECT_DELAY_MS as i, UseSessionStreamOptions as l, UseSidecarAuthOptions as n, SessionDegradation as o, useSidecarAuth as r, SessionInfo as s, SidecarAuth as t, UseSessionStreamResult as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
2
|
import { createParser } from "eventsource-parser";
|
|
3
|
-
|
|
3
|
+
// src/hooks/wire-encoding.ts
|
|
4
4
|
/** btoa handles only latin-1; widen each UTF-8 byte into its own char first. */
|
|
5
5
|
function utf8ToLatin1(text) {
|
|
6
6
|
return encodeURIComponent(text).replace(/%([0-9A-F]{2})/g, (_, hex) => String.fromCharCode(Number.parseInt(hex, 16)));
|
|
@@ -11,8 +11,7 @@ function encodeTextForWire(text) {
|
|
|
11
11
|
if (bufferCtor) return bufferCtor.from(text, "utf8").toString("base64");
|
|
12
12
|
throw new Error("encodeTextForWire: no base64 encoder available (btoa and Buffer both undefined)");
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
//#region src/hooks/use-session-stream.ts
|
|
14
|
+
// src/hooks/use-session-stream.ts
|
|
16
15
|
var SessionStreamError = class extends Error {
|
|
17
16
|
code;
|
|
18
17
|
status;
|
|
@@ -613,8 +612,7 @@ function useSessionStream({ apiUrl, token, sessionId, enabled = true }) {
|
|
|
613
612
|
degradation
|
|
614
613
|
};
|
|
615
614
|
}
|
|
616
|
-
|
|
617
|
-
//#region src/hooks/use-sidecar-auth.ts
|
|
615
|
+
// src/hooks/use-sidecar-auth.ts
|
|
618
616
|
function storageKey(resourceId, apiUrl) {
|
|
619
617
|
return `sidecar_session_${resourceId}__${apiUrl}`;
|
|
620
618
|
}
|
|
@@ -738,5 +736,4 @@ function useSidecarAuth({ resourceId, apiUrl, signMessage }) {
|
|
|
738
736
|
error
|
|
739
737
|
};
|
|
740
738
|
}
|
|
741
|
-
//#endregion
|
|
742
739
|
export { useSessionStream as i, SESSION_STREAM_RECONNECT_DELAY_MS as n, SessionStreamError as r, useSidecarAuth as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn as t } from "@tangle-network/ui/utils";
|
package/dist/utils.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { TOOL_CATEGORY_ICONS, cn, copyText, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatUptime, getToolCategory, getToolDisplayMetadata, getToolErrorText, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, plainTextFromMarkdown, timeAgo, truncateText };
|
|
1
|
+
export { TOOL_CATEGORY_ICONS, cn, copyText, focusField, focusFieldInvalid, focusFieldWithin, focusRing, focusRingInset, formatBytes, formatDuration, formatUptime, getToolCategory, getToolDisplayMetadata, getToolErrorText, ixControl, ixControlAfter, ixControlSoft, ixField, ixRow, ixSelected, ixTabUnderline, plainTextFromMarkdown, timeAgo, truncateText } from "@tangle-network/ui/utils";
|
package/dist/vault-tree.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VaultTreeProps, i as VaultTree, n as filterFileNodes, r as VAULT_TREE_CHILD_PAGE, t as fileTreeFromPaths } from "./index-
|
|
1
|
+
import { a as VaultTreeProps, i as VaultTree, n as filterFileNodes, r as VAULT_TREE_CHILD_PAGE, t as fileTreeFromPaths } from "./index-y2OPUSoY.js";
|
|
2
2
|
export { VAULT_TREE_CHILD_PAGE, VaultTree, type VaultTreeProps, fileTreeFromPaths, filterFileNodes };
|
package/dist/vault-tree.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { VAULT_TREE_CHILD_PAGE, VaultTree, fileTreeFromPaths, filterFileNodes };
|
|
1
|
+
export { r as VAULT_TREE_CHILD_PAGE, i as VaultTree, t as fileTreeFromPaths, n as filterFileNodes } from "./tree-data-YXtcK6Ld.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as DiffView } from "../diff-view-A0O0Z_SR.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PreviewReadiness, i as PreviewAccess, n as EmbeddedAppView, r as EmbeddedAppViewProps, t as EmbeddedApp } from "../embedded-app-view-
|
|
1
|
+
import { a as PreviewReadiness, i as PreviewAccess, n as EmbeddedAppView, r as EmbeddedAppViewProps, t as EmbeddedApp } from "../embedded-app-view-Ta5GI4hx.js";
|
|
2
2
|
export { type EmbeddedApp, EmbeddedAppView, type EmbeddedAppViewProps, type PreviewAccess, type PreviewReadiness };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { EmbeddedAppView };
|
|
1
|
+
export { t as EmbeddedAppView } from "../embedded-app-view-DXsoPale.js";
|