@tangle-network/sandbox-ui 0.137.0 → 0.137.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/{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-Cw13rqn9.js} +7 -13
- 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/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/hooks.d.ts +3 -7
- package/dist/hooks.js +4 -6
- package/dist/{index-QBCEflyf.d.ts → index-4KFqFK1f.d.ts} +0 -6
- package/dist/{index-C61CTrhx.d.ts → index-B1oEiBks.d.ts} +0 -36
- 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-ClRHbsoX.d.ts → index-DLX35YAa.d.ts} +0 -2
- package/dist/{index-AVDzT8Jw.d.ts → index-DRDtTgb0.d.ts} +2 -54
- package/dist/{index-ByzdHyte.d.ts → index-T4-5mWTq.d.ts} +2 -24
- package/dist/{index-DGil6iqm.d.ts → index-y2OPUSoY.d.ts} +0 -4
- package/dist/index.d.ts +15 -15
- package/dist/index.js +15 -16
- 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.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/{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/embedded-app.d.ts +1 -1
- package/dist/workbench/embedded-app.js +1 -2
- package/dist/{workbench-BdW-YQ68.js → workbench-GDuy3rB5.js} +96 -185
- package/dist/workbench.d.ts +2 -2
- package/dist/workbench.js +2 -2
- package/dist/workflows.d.ts +1 -13
- package/dist/workflows.js +4 -5
- package/dist/{workspace-Bg1MFr9I.js → workspace-Cpgyw5N7.js} +25 -39
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +2 -2
- package/package.json +28 -28
- package/dist/utils-DzWbktWG.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as modelBrandFor, t as ModelBrandStack } from "./model-brand-
|
|
2
|
-
import { t as ProviderIcon } from "./provider-logo-
|
|
1
|
+
import { i as modelBrandFor, t as ModelBrandStack } from "./model-brand-bTcMjQtB.js";
|
|
2
|
+
import { t as ProviderIcon } from "./provider-logo-CPKRPHcS.js";
|
|
3
3
|
import { StatusPill } from "@tangle-network/ui/primitives";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { AlertTriangle, Bell, Box, Cable, Camera, Check, Circle, Clock, Code, GitBranch, Repeat, ScanSearch, Sparkles, UserCheck, Webhook, Zap } from "lucide-react";
|
|
6
6
|
import { parse } from "yaml";
|
|
7
|
-
|
|
7
|
+
// src/workflows/cron.ts
|
|
8
8
|
/**
|
|
9
9
|
* Cron → English for a schedule trigger's node label. A raw `0 9 * * 1-5` tells
|
|
10
10
|
* a reader nothing at a glance; "Weekdays at 09:00" tells them everything.
|
|
@@ -124,8 +124,7 @@ function describeCron(expression) {
|
|
|
124
124
|
if (day !== null && day >= 1 && day <= 31) return `Monthly on the ${ordinal(day)} at ${time}`;
|
|
125
125
|
return raw;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
//#region src/workflows/format.ts
|
|
127
|
+
// src/workflows/format.ts
|
|
129
128
|
/**
|
|
130
129
|
* Display formatters for the workflow graph's live run-state chips. Pure and
|
|
131
130
|
* dependency-free so they can be unit-tested without rendering the graph.
|
|
@@ -170,8 +169,7 @@ function fmtTokens(input, output) {
|
|
|
170
169
|
if (i === void 0 && o === void 0) return void 0;
|
|
171
170
|
return `${i ?? 0}/${o ?? 0} tok`;
|
|
172
171
|
}
|
|
173
|
-
|
|
174
|
-
//#region src/workflows/naming.ts
|
|
172
|
+
// src/workflows/naming.ts
|
|
175
173
|
/**
|
|
176
174
|
* Human-facing naming for workflow nodes. A definition addresses things by
|
|
177
175
|
* machine identifier — an action kind (`agent.run`), a hub action path
|
|
@@ -286,8 +284,7 @@ function actionPathLabel(path) {
|
|
|
286
284
|
const operation = humanizeIdentifier(parts.operation, "lower");
|
|
287
285
|
return parts.resource ? `${operation}: ${parts.resource}` : operation;
|
|
288
286
|
}
|
|
289
|
-
|
|
290
|
-
//#region src/workflows/provider-label.ts
|
|
287
|
+
// src/workflows/provider-label.ts
|
|
291
288
|
/**
|
|
292
289
|
* Display label for a connector slug ("github" → "GitHub"). Separate from
|
|
293
290
|
* `model.ts` so consumers that only need the label avoid pulling the `yaml`
|
|
@@ -313,8 +310,7 @@ function providerLabel(provider) {
|
|
|
313
310
|
const key = provider.toLowerCase();
|
|
314
311
|
return PROVIDER_LABELS[key] ?? humanizeIdentifier(provider, "title");
|
|
315
312
|
}
|
|
316
|
-
|
|
317
|
-
//#region src/workflows/model.ts
|
|
313
|
+
// src/workflows/model.ts
|
|
318
314
|
/**
|
|
319
315
|
* Turns a workflow YAML definition into a positioned node/edge graph for the
|
|
320
316
|
* visualizer. Pure and React-Flow-agnostic so the parsing + layout is unit
|
|
@@ -1311,8 +1307,7 @@ function buildWorkflowGraph(yaml, options) {
|
|
|
1311
1307
|
}
|
|
1312
1308
|
};
|
|
1313
1309
|
}
|
|
1314
|
-
|
|
1315
|
-
//#region src/workflows/node-ui.tsx
|
|
1310
|
+
// src/workflows/node-ui.tsx
|
|
1316
1311
|
/**
|
|
1317
1312
|
* Shared presentational atoms for a workflow graph node — the type glyph, the
|
|
1318
1313
|
* status color/label/badge maps, and the edge coloring. One source of truth so
|
|
@@ -1749,8 +1744,7 @@ function NodeMark({ kind, provider, model, accent, tile }) {
|
|
|
1749
1744
|
})
|
|
1750
1745
|
});
|
|
1751
1746
|
}
|
|
1752
|
-
|
|
1753
|
-
//#region src/workflows/node-output.tsx
|
|
1747
|
+
// src/workflows/node-output.tsx
|
|
1754
1748
|
/** Failure text, in the semantic danger token — which carries a light AND a dark
|
|
1755
1749
|
* value. A palette shade (`text-red-400`) only ever reads well in one theme. */
|
|
1756
1750
|
const ERROR_TEXT = { color: "var(--surface-danger-text)" };
|
|
@@ -1926,5 +1920,4 @@ function NodeOutputBody({ shape, rows = 2, tone = "default" }) {
|
|
|
1926
1920
|
children: shape.text
|
|
1927
1921
|
});
|
|
1928
1922
|
}
|
|
1929
|
-
//#endregion
|
|
1930
1923
|
export { triggerNodeIndex as A, fmtTokens as B, COMPACT_NODE_SIZE as C, buildWorkflowGraph as D, branchNodeId as E, parseActionPath as F, shortModel as I, clampPreview as L, worstSeverity as M, actionPathLabel as N, isStructuralKind as O, humanizeIdentifier as P, fmtCost as R, statusBorder as S, actionNodeId as T, emptySlotLabel as _, NodeMark as a, problemSurface as b, RESTING_BORDER as c, STATUS_LABEL as d, STATUS_PILL as f, edgeColor as g, StatusPill$1 as h, KIND_ICON as i, wfEdgeId as j, triggerNodeId as k, RESTING_SHADOW as l, StatusFooter as m, classifyOutput as n, ProblemMarker as o, STATUS_TONE as p, condenseText as r, ProblemMessages as s, NodeOutputBody as t, STATUS_COLOR as u, kindAccent as v, TRIGGER_NODE_ID as w, problemTitle as x, problemBorder as y, fmtDuration as z };
|
package/dist/openui.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode };
|
|
1
|
+
export { OPENUI_NODE_JSON_SCHEMA, OPENUI_NODE_TYPES, OpenUIArtifactRenderer, findUnsupportedOpenUINode, validateOpenUIJsonArtifact, validateOpenUIJsonNode } from "@tangle-network/ui/openui";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
1
|
+
import { t as cn } from "./utils-BER_bdgE.js";
|
|
2
2
|
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, PageHeader, PageShell, Progress } from "@tangle-network/ui/primitives";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { Check, Zap } from "lucide-react";
|
|
6
|
-
|
|
6
|
+
// src/dashboard/billing-dashboard.tsx
|
|
7
7
|
const variantColors = { sandbox: {
|
|
8
8
|
accent: "text-[var(--accent-text)]",
|
|
9
9
|
accentBg: "bg-[var(--accent-surface-soft)]",
|
|
@@ -259,8 +259,7 @@ function BillingDashboard({ subscription, balance, usage, onManageSubscription,
|
|
|
259
259
|
]
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
|
|
263
|
-
//#region src/dashboard/pricing-page.tsx
|
|
262
|
+
// src/dashboard/pricing-page.tsx
|
|
264
263
|
/**
|
|
265
264
|
* Formats an integer cent amount as a human-readable USD price.
|
|
266
265
|
* Whole-dollar amounts omit decimals ($10), fractional amounts show two ($10.99).
|
|
@@ -380,8 +379,7 @@ function PricingPage({ tiers, currentTierId, billingPeriod, onBillingPeriodChang
|
|
|
380
379
|
})]
|
|
381
380
|
});
|
|
382
381
|
}
|
|
383
|
-
|
|
384
|
-
//#region src/dashboard/usage-chart.tsx
|
|
382
|
+
// src/dashboard/usage-chart.tsx
|
|
385
383
|
const colors = {
|
|
386
384
|
bar: "bg-[image:var(--accent-gradient-strong)]",
|
|
387
385
|
barHover: "hover:brightness-110",
|
|
@@ -530,8 +528,7 @@ function UsageChart({ data, title, unit, className }) {
|
|
|
530
528
|
})] }) })]
|
|
531
529
|
});
|
|
532
530
|
}
|
|
533
|
-
|
|
534
|
-
//#region src/dashboard/page-layout.tsx
|
|
531
|
+
// src/dashboard/page-layout.tsx
|
|
535
532
|
/** Product page spacing; the generic UI PageShell remains an exact re-export. */
|
|
536
533
|
function SandboxPageShell({ children, className }) {
|
|
537
534
|
return /* @__PURE__ */ jsx(PageShell, {
|
|
@@ -547,5 +544,4 @@ function DashboardPageHeader({ title, description, actions, className }) {
|
|
|
547
544
|
className: cn("gap-3 [&_h1]:text-2xl sm:[&_h1]:text-[28px] [&_h1]:font-semibold [&_p]:text-base [&_p]:leading-relaxed", className)
|
|
548
545
|
});
|
|
549
546
|
}
|
|
550
|
-
//#endregion
|
|
551
547
|
export { formatPrice as a, PricingPage as i, SandboxPageShell as n, BillingDashboard as o, UsageChart as r, DashboardPageHeader as t };
|
package/dist/pages.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as ModelInfo } from "./model-brand-
|
|
2
|
-
import { c as BillingBalance, d as BillingSubscription, f as BillingUsage, o as PricingTier, r as UsageDataPoint } from "./usage-chart-
|
|
1
|
+
import { r as ModelInfo } from "./model-brand-ZwVS49Fq.js";
|
|
2
|
+
import { c as BillingBalance, d as BillingSubscription, f as BillingUsage, o as PricingTier, r as UsageDataPoint } from "./usage-chart-BFpdkqNq.js";
|
|
3
3
|
import * as React$2 from "react";
|
|
4
4
|
import { CSSProperties, ReactNode } from "react";
|
|
5
|
-
//#region src/pages/auth-page.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Shared, self-contained sign-in / sign-up page for every Tangle vertical app.
|
|
8
7
|
*
|
|
@@ -63,8 +62,6 @@ interface AuthPageProps {
|
|
|
63
62
|
children?: ReactNode;
|
|
64
63
|
}
|
|
65
64
|
export declare function AuthPage({ product, tagline, mode, tangleAuthUrl, providers, socialHref, onEmailSubmit, collectName, altHref, accent, accentHover, accentForeground, logoSize, className, style, children }: AuthPageProps): import("react").JSX.Element;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/pages/billing-page.d.ts
|
|
68
65
|
type ProductVariant = "sandbox";
|
|
69
66
|
interface BillingPageData {
|
|
70
67
|
subscription: BillingSubscription | null;
|
|
@@ -83,8 +80,6 @@ interface BillingPageProps {
|
|
|
83
80
|
fetchBillingData?: () => Promise<BillingPageData>;
|
|
84
81
|
}
|
|
85
82
|
export declare function BillingPage({ variant, initialData, apiBasePath, onManageSubscription, onAddCredits, onSelectTier, fetchBillingData }: BillingPageProps): React$2.JSX.Element;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/pages/provisioning-types.d.ts
|
|
88
83
|
interface EnvironmentOption {
|
|
89
84
|
id: string;
|
|
90
85
|
name: string;
|
|
@@ -168,8 +163,6 @@ interface ProvisioningConfig {
|
|
|
168
163
|
bare: boolean;
|
|
169
164
|
startupScriptIds?: string[];
|
|
170
165
|
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/pages/secrets-page.d.ts
|
|
173
166
|
interface Secret {
|
|
174
167
|
name: string;
|
|
175
168
|
createdAt: string;
|
|
@@ -213,8 +206,6 @@ interface SecretsPageProps {
|
|
|
213
206
|
};
|
|
214
207
|
}
|
|
215
208
|
export declare function SecretsPage({ apiClient, className, teamSecretsHint, title, description, createDescription, emptyDescription, deleteConsequence, variant }: SecretsPageProps): React$2.JSX.Element;
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region src/pages/startup-scripts-page.d.ts
|
|
218
209
|
type ScriptType = "bash" | "python" | "node" | "ruby" | "custom";
|
|
219
210
|
interface StartupScript {
|
|
220
211
|
id: string;
|
|
@@ -268,10 +259,7 @@ interface StartupScriptsPageProps {
|
|
|
268
259
|
className?: string;
|
|
269
260
|
}
|
|
270
261
|
export declare function StartupScriptsPage({ apiClient, className }: StartupScriptsPageProps): React$2.JSX.Element;
|
|
271
|
-
//#endregion
|
|
272
|
-
//#region src/lib/template-presets.d.ts
|
|
273
262
|
type TemplateCategory = "blockchain" | "ai-ml" | "frontend" | "infrastructure" | "general";
|
|
274
263
|
type TemplatePreset = Omit<ProvisioningConfig, "name" | "gitUrl" | "envVars" | "driver" | "startupScriptIds">;
|
|
275
264
|
export declare function getPresetForTemplate(id: string): TemplatePreset;
|
|
276
|
-
//#endregion
|
|
277
265
|
export type { AuthPageProps, BillingPageData, BillingPageProps, EnvironmentEntry, EnvironmentOption, ModelInfo, PlanTierInfo, PricingRates, PricingTier, ProductVariant, ProvisioningConfig, ResourceLimits, ScriptType, Secret, SecretsApiClient, SecretsPageProps, SocialProvider, SshAccessConfig, SshKeyOption, StartupScript, StartupScriptEntry, StartupScriptFormData, StartupScriptsApiClient, StartupScriptsPageProps, TemplateCategory, TemplatePreset };
|
package/dist/pages.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as cn$1 } from "./utils-
|
|
2
|
-
import { r as ShellHeader } from "./shell-header-
|
|
3
|
-
import { i as PricingPage, o as BillingDashboard, r as UsageChart, t as DashboardPageHeader } from "./page-layout-
|
|
1
|
+
import { t as cn$1 } from "./utils-BER_bdgE.js";
|
|
2
|
+
import { r as ShellHeader } from "./shell-header-CwqDzC4I.js";
|
|
3
|
+
import { i as PricingPage, o as BillingDashboard, r as UsageChart, t as DashboardPageHeader } from "./page-layout-CuOpvZys.js";
|
|
4
4
|
import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Skeleton, SkeletonCard, Tabs, TabsContent, TabsList, TabsTrigger } from "@tangle-network/ui/primitives";
|
|
5
5
|
import { Logo, TangleKnot } from "@tangle-network/brand";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +8,7 @@ import * as React$1 from "react";
|
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { AlertCircle, CheckCircle, ChevronDown, ChevronUp, Clock, Cpu, Eye, EyeOff, GripVertical, Key, Layers, Lock, MemoryStick, Pencil, Plus, Power, PowerOff, Terminal, Trash2, Upload } from "lucide-react";
|
|
10
10
|
import { cn, focusField, focusRing, ixControl, ixControlSoft, ixField } from "@tangle-network/ui/utils";
|
|
11
|
-
|
|
11
|
+
// src/pages/auth-page.tsx
|
|
12
12
|
const C = {
|
|
13
13
|
pageBg: "hsl(var(--background, 240 5% 97%))",
|
|
14
14
|
card: "hsl(var(--card, 0 0% 100%))",
|
|
@@ -312,8 +312,7 @@ function AuthPage({ product, tagline, mode = "signin", tangleAuthUrl = "/auth/ta
|
|
|
312
312
|
})
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
//#region src/pages/billing-page.tsx
|
|
315
|
+
// src/pages/billing-page.tsx
|
|
317
316
|
const defaultBillingData = {
|
|
318
317
|
subscription: null,
|
|
319
318
|
balance: {
|
|
@@ -596,8 +595,7 @@ function BillingPage({ variant = "sandbox", initialData, apiBasePath = "", onMan
|
|
|
596
595
|
})
|
|
597
596
|
});
|
|
598
597
|
}
|
|
599
|
-
|
|
600
|
-
//#region src/pages/env-importer.ts
|
|
598
|
+
// src/pages/env-importer.ts
|
|
601
599
|
const NORMALIZE_RE = /[^A-Z0-9_]/g;
|
|
602
600
|
/** Mirrors the on-keystroke normalization used by the single-secret input. */
|
|
603
601
|
function normalizeKey(rawKey) {
|
|
@@ -688,8 +686,7 @@ function parseEnvText(text) {
|
|
|
688
686
|
errors
|
|
689
687
|
};
|
|
690
688
|
}
|
|
691
|
-
|
|
692
|
-
//#region src/pages/secrets-page.tsx
|
|
689
|
+
// src/pages/secrets-page.tsx
|
|
693
690
|
/** Cap pasted/uploaded import sources so a pathological file cannot blow up the parser/UI. */
|
|
694
691
|
const MAX_IMPORT_FILE_BYTES = 262144;
|
|
695
692
|
const DEFAULT_DESCRIPTION = "Manage environment variables for your sandboxes.";
|
|
@@ -1482,8 +1479,7 @@ function SecretsPage({ apiClient, className, teamSecretsHint, title = "Environme
|
|
|
1482
1479
|
]
|
|
1483
1480
|
});
|
|
1484
1481
|
}
|
|
1485
|
-
|
|
1486
|
-
//#region src/pages/startup-scripts-page.tsx
|
|
1482
|
+
// src/pages/startup-scripts-page.tsx
|
|
1487
1483
|
const SCRIPT_TYPE_META = {
|
|
1488
1484
|
bash: {
|
|
1489
1485
|
label: "Bash",
|
|
@@ -2334,8 +2330,7 @@ function StartupScriptsPage({ apiClient, className }) {
|
|
|
2334
2330
|
]
|
|
2335
2331
|
});
|
|
2336
2332
|
}
|
|
2337
|
-
|
|
2338
|
-
//#region src/lib/template-presets.ts
|
|
2333
|
+
// src/lib/template-presets.ts
|
|
2339
2334
|
const BLOCKCHAIN_PATTERNS = [
|
|
2340
2335
|
"ethereum",
|
|
2341
2336
|
"solana",
|
|
@@ -2478,5 +2473,4 @@ function getPresetForTemplate(id) {
|
|
|
2478
2473
|
environment: id
|
|
2479
2474
|
};
|
|
2480
2475
|
}
|
|
2481
|
-
//#endregion
|
|
2482
2476
|
export { AuthPage, BillingPage, SecretsPage, StartupScriptsPage, getPresetForTemplate };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-782esTHO.js";
|
|
2
2
|
import { PageHeader } from "@tangle-network/ui/primitives";
|
|
3
3
|
import { Logo, TangleKnot as TangleKnot$1 } from "@tangle-network/brand";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/primitives/logo.tsx
|
|
6
6
|
/** Keep the Sandbox wordmark API while Brand owns the mark and layout. */
|
|
7
7
|
function Logo$1({ variant = "sandbox", size = "md", className, iconOnly = false }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(Logo, {
|
|
@@ -13,8 +13,7 @@ function Logo$1({ variant = "sandbox", size = "md", className, iconOnly = false
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
Logo$1.displayName = "Logo";
|
|
16
|
-
|
|
17
|
-
//#region src/primitives/heading.tsx
|
|
16
|
+
// src/primitives/heading.tsx
|
|
18
17
|
/** Compatibility name for the canonical nested (h2) page header. */
|
|
19
18
|
function SectionTitle(props) {
|
|
20
19
|
return /* @__PURE__ */ jsx(PageHeader, {
|
|
@@ -22,8 +21,7 @@ function SectionTitle(props) {
|
|
|
22
21
|
level: 2
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
//#region src/primitives/index.ts
|
|
24
|
+
// src/primitives/index.ts
|
|
27
25
|
var primitives_exports = /* @__PURE__ */ __exportAll({
|
|
28
26
|
Logo: () => Logo$1,
|
|
29
27
|
SectionTitle: () => SectionTitle,
|
|
@@ -31,5 +29,4 @@ var primitives_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
29
|
});
|
|
32
30
|
import * as import__tangle_network_ui_primitives from "@tangle-network/ui/primitives";
|
|
33
31
|
__reExport(primitives_exports, import__tangle_network_ui_primitives);
|
|
34
|
-
//#endregion
|
|
35
32
|
export { TangleKnot$1 as i, SectionTitle as n, Logo$1 as r, primitives_exports as t };
|
package/dist/primitives.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as LogoProps, i as Logo, n as SectionTitle, o as TangleKnot, r as SectionTitleProps, t as HeadingProps } from "./index-
|
|
1
|
+
import { a as LogoProps, i as Logo, n as SectionTitle, o as TangleKnot, r as SectionTitleProps, t as HeadingProps } from "./index-BAEvGqrn.js";
|
|
2
2
|
export * from "@tangle-network/ui/primitives";
|
|
3
3
|
export { type HeadingProps, Logo, type LogoProps, SectionTitle, type SectionTitleProps, TangleKnot };
|
package/dist/primitives.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { r as Logo, n as SectionTitle, i as TangleKnot } from "./primitives-CiwDp4-0.js";
|
|
2
2
|
export * from "@tangle-network/ui/primitives";
|
|
3
|
-
export { Logo, SectionTitle, TangleKnot };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
|
|
3
|
+
// src/integrations/provider-logo.tsx
|
|
4
4
|
/**
|
|
5
5
|
* Provider branding: resolve a connector/provider slug to a logo and render it
|
|
6
6
|
* with graceful fallbacks. Shared by the integrations catalog tiles and the
|
|
@@ -325,5 +325,4 @@ function ProviderIcon({ id, iconUrl, displayName, size = 24, className }) {
|
|
|
325
325
|
onError: () => setIndex((i) => i + 1)
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
//#endregion
|
|
329
328
|
export { normalizeProviderId as n, providerLogoCandidates as r, ProviderIcon as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -23,5 +23,4 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
23
23
|
return to;
|
|
24
24
|
};
|
|
25
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
26
|
-
//#endregion
|
|
27
26
|
export { __reExport as n, __exportAll as t };
|
package/dist/run.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ApprovalCard, ApprovalDiffSummary, ExpandedToolDetail, InlineThinkingItem, InlineToolItem, LiveDuration, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, TaskList, ToolCallFeed, parseToolEvent, showsTaskPriority, taskProgress, taskStatus };
|
|
1
|
+
export { ApprovalCard, ApprovalDiffSummary, ExpandedToolDetail, InlineThinkingItem, InlineToolItem, LiveDuration, RunGroup, RunPhaseList, RunRowShell, RunRowStatusDot, TaskList, ToolCallFeed, parseToolEvent, showsTaskPriority, taskProgress, taskStatus } from "@tangle-network/ui/run";
|
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 };
|
|
@@ -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 };
|