@tangle-network/sandbox-ui 0.137.1 → 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.
Files changed (82) hide show
  1. package/dist/{WorkflowGraph-BcuJ0kgt.js → WorkflowGraph-DXmu60At.js} +4 -7
  2. package/dist/assets.d.ts +0 -18
  3. package/dist/assets.js +9 -17
  4. package/dist/{auth-CWe17Hly.js → auth-BDpoZ_2f.js} +1 -2
  5. package/dist/auth.d.ts +1 -1
  6. package/dist/auth.js +1 -2
  7. package/dist/{chat-_aHUfqtH.js → chat-Cw13rqn9.js} +7 -13
  8. package/dist/chat.d.ts +1 -1
  9. package/dist/chat.js +1 -2
  10. package/dist/{connections-C5DxYxvz.js → connections-DymjzHe_.js} +1 -2
  11. package/dist/connections.d.ts +1 -1
  12. package/dist/connections.js +1 -2
  13. package/dist/connectors.d.ts +0 -10
  14. package/dist/connectors.js +5 -9
  15. package/dist/{dashboard-SFakZEtu.js → dashboard-ClKA3opr.js} +31 -55
  16. package/dist/dashboard.d.ts +3 -3
  17. package/dist/dashboard.js +3 -3
  18. package/dist/editor.js +1 -2
  19. package/dist/{embedded-app-view-CYb9hevq.js → embedded-app-view-DXsoPale.js} +5 -8
  20. package/dist/{embedded-app-view-B_vMTtJn.d.ts → embedded-app-view-Ta5GI4hx.d.ts} +0 -4
  21. package/dist/files.js +1 -2
  22. package/dist/hooks.d.ts +3 -7
  23. package/dist/hooks.js +4 -6
  24. package/dist/{index-QBCEflyf.d.ts → index-4KFqFK1f.d.ts} +0 -6
  25. package/dist/{index-C61CTrhx.d.ts → index-B1oEiBks.d.ts} +0 -36
  26. package/dist/{index-DsU8ts9f.d.ts → index-BAEvGqrn.d.ts} +0 -4
  27. package/dist/{index-DvmZLMT1.d.ts → index-BbfWVtZq.d.ts} +0 -2
  28. package/dist/{index-ClRHbsoX.d.ts → index-DLX35YAa.d.ts} +0 -2
  29. package/dist/{index-AVDzT8Jw.d.ts → index-DRDtTgb0.d.ts} +2 -54
  30. package/dist/{index-ByzdHyte.d.ts → index-T4-5mWTq.d.ts} +2 -24
  31. package/dist/{index-DGil6iqm.d.ts → index-y2OPUSoY.d.ts} +0 -4
  32. package/dist/index.d.ts +15 -15
  33. package/dist/index.js +15 -16
  34. package/dist/integrations.d.ts +0 -14
  35. package/dist/integrations.js +6 -11
  36. package/dist/markdown.js +1 -2
  37. package/dist/{model-brand-B57CV8Lg.d.ts → model-brand-ZwVS49Fq.d.ts} +0 -2
  38. package/dist/{model-brand-BSr9on8C.js → model-brand-bTcMjQtB.js} +34 -67
  39. package/dist/{motion-D4njYpys.js → motion-Bn7ESHrj.js} +1 -2
  40. package/dist/{node-output-fuk0NV0V.js → node-output-udnwhShN.js} +9 -16
  41. package/dist/openui.js +1 -2
  42. package/dist/{page-layout-2IRtfx51.js → page-layout-CuOpvZys.js} +5 -9
  43. package/dist/pages.d.ts +2 -14
  44. package/dist/pages.js +9 -15
  45. package/dist/{primitives-CLOVnjWz.js → primitives-CiwDp4-0.js} +4 -7
  46. package/dist/primitives.d.ts +1 -1
  47. package/dist/primitives.js +1 -2
  48. package/dist/{provider-logo-BGCziCbM.js → provider-logo-CPKRPHcS.js} +1 -2
  49. package/dist/{rolldown-runtime-BBjsoOtd.js → rolldown-runtime-782esTHO.js} +1 -2
  50. package/dist/run.js +1 -2
  51. package/dist/sdk-hooks.d.ts +1 -1
  52. package/dist/sdk-hooks.js +1 -1
  53. package/dist/{shell-header-CTh3oV_e.js → shell-header-CwqDzC4I.js} +2 -3
  54. package/dist/{sidecar-DgH_vQ6m.d.ts → sidecar-CNP4zXop.d.ts} +0 -2
  55. package/dist/stores.d.ts +0 -2
  56. package/dist/stores.js +1 -2
  57. package/dist/{terminal-X6r5pjgv.js → terminal-nUCznZRj.js} +3 -5
  58. package/dist/terminal.d.ts +1 -3
  59. package/dist/terminal.js +1 -2
  60. package/dist/{tree-data-DtoCNNBJ.js → tree-data-YXtcK6Ld.js} +2 -4
  61. package/dist/types.d.ts +1 -1
  62. package/dist/{usage-chart-BjM8ShvX.d.ts → usage-chart-BFpdkqNq.d.ts} +0 -6
  63. package/dist/{use-pty-session-B5Q_i9RI.js → use-pty-session-BHVQlSs-.js} +1 -2
  64. package/dist/{use-pty-session-DbAYO5uH.d.ts → use-pty-session-DSgtQyYX.d.ts} +0 -2
  65. package/dist/{use-sidecar-auth-CCTJcrq7.d.ts → use-sidecar-auth-CPevSSEj.d.ts} +0 -4
  66. package/dist/{use-sidecar-auth-DkdcufOz.js → use-sidecar-auth-DpG0aWQ3.js} +3 -6
  67. package/dist/utils-BER_bdgE.js +1 -0
  68. package/dist/utils.js +1 -2
  69. package/dist/vault-tree.d.ts +1 -1
  70. package/dist/vault-tree.js +1 -2
  71. package/dist/workbench/embedded-app.d.ts +1 -1
  72. package/dist/workbench/embedded-app.js +1 -2
  73. package/dist/{workbench-DPZ6LXqf.js → workbench-GDuy3rB5.js} +93 -176
  74. package/dist/workbench.d.ts +2 -2
  75. package/dist/workbench.js +2 -2
  76. package/dist/workflows.d.ts +1 -13
  77. package/dist/workflows.js +4 -5
  78. package/dist/{workspace-cjk0axyT.js → workspace-Cpgyw5N7.js} +21 -38
  79. package/dist/workspace.d.ts +1 -1
  80. package/dist/workspace.js +2 -2
  81. package/package.json +28 -28
  82. package/dist/utils-DzWbktWG.js +0 -2
@@ -1,3 +1,3 @@
1
- import { A as SandboxArtifactTerminal, C as ChangesPane, D as ChangesPaneProps, E as ChangedFile, O as SandboxArtifact, S as PillTabsProps, T as ArtifactView, _ as DiffStats, a as PreviewView, b as PillTabItem, c as DiffViewProps, d as FileBreadcrumb, f as FileBreadcrumbProps, g as PanelHeaderProps, h as PanelHeader, i as resolveLanguage, k as SandboxArtifactPaneProps, l as CodeView, m as GitStatusBadge, n as CodeSurface, o as PreviewViewProps, p as DiffStatsBadge, r as CodeSurfaceProps, s as DiffView, t as BRAND_PRISM_THEME, u as CodeViewProps, v as buildUnifiedPatch, w as SandboxArtifactPane, x as PillTabs, y as computeDiffStats } from "./index-ByzdHyte.js";
2
- import { a as PreviewReadiness, i as PreviewAccess, n as EmbeddedAppView, r as EmbeddedAppViewProps, t as EmbeddedApp } from "./embedded-app-view-B_vMTtJn.js";
1
+ import { A as SandboxArtifactTerminal, C as ChangesPane, D as ChangesPaneProps, E as ChangedFile, O as SandboxArtifact, S as PillTabsProps, T as ArtifactView, _ as DiffStats, a as PreviewView, b as PillTabItem, c as DiffViewProps, d as FileBreadcrumb, f as FileBreadcrumbProps, g as PanelHeaderProps, h as PanelHeader, i as resolveLanguage, k as SandboxArtifactPaneProps, l as CodeView, m as GitStatusBadge, n as CodeSurface, o as PreviewViewProps, p as DiffStatsBadge, r as CodeSurfaceProps, s as DiffView, t as BRAND_PRISM_THEME, u as CodeViewProps, v as buildUnifiedPatch, w as SandboxArtifactPane, x as PillTabs, y as computeDiffStats } from "./index-T4-5mWTq.js";
2
+ import { a as PreviewReadiness, i as PreviewAccess, n as EmbeddedAppView, r as EmbeddedAppViewProps, t as EmbeddedApp } from "./embedded-app-view-Ta5GI4hx.js";
3
3
  export { type ArtifactView, BRAND_PRISM_THEME, type ChangedFile, ChangesPane, type ChangesPaneProps, CodeSurface, type CodeSurfaceProps, CodeView, type CodeViewProps, type DiffStats, DiffStatsBadge, DiffView, type DiffViewProps, type EmbeddedApp, EmbeddedAppView, type EmbeddedAppViewProps, FileBreadcrumb, type FileBreadcrumbProps, GitStatusBadge, PanelHeader, type PanelHeaderProps, type PillTabItem, PillTabs, type PillTabsProps, type PreviewAccess, type PreviewReadiness, PreviewView, type PreviewViewProps, type SandboxArtifact, SandboxArtifactPane, type SandboxArtifactPaneProps, type SandboxArtifactTerminal, buildUnifiedPatch, computeDiffStats, resolveLanguage };
package/dist/workbench.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as computeDiffStats, c as BRAND_PRISM_THEME, d as DiffStatsBadge, f as GitStatusBadge, i as buildUnifiedPatch, l as CodeSurface, m as PillTabs, n as SandboxArtifactPane, o as CodeView, p as PanelHeader, r as DiffView, s as FileBreadcrumb, t as ChangesPane, u as resolveLanguage } from "./workbench-DPZ6LXqf.js";
2
- import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-CYb9hevq.js";
1
+ import { a as computeDiffStats, c as BRAND_PRISM_THEME, d as DiffStatsBadge, f as GitStatusBadge, i as buildUnifiedPatch, l as CodeSurface, m as PillTabs, n as SandboxArtifactPane, o as CodeView, p as PanelHeader, r as DiffView, s as FileBreadcrumb, t as ChangesPane, u as resolveLanguage } from "./workbench-GDuy3rB5.js";
2
+ import { n as PreviewView, t as EmbeddedAppView } from "./embedded-app-view-DXsoPale.js";
3
3
  export { BRAND_PRISM_THEME, ChangesPane, CodeSurface, CodeView, DiffStatsBadge, DiffView, EmbeddedAppView, FileBreadcrumb, GitStatusBadge, PanelHeader, PillTabs, PreviewView, SandboxArtifactPane, buildUnifiedPatch, computeDiffStats, resolveLanguage };
@@ -1,10 +1,9 @@
1
- import { n as ModelBrandStack, o as modelBrandFor, t as ModelBrandIdentity } from "./model-brand-B57CV8Lg.js";
1
+ import { n as ModelBrandStack, o as modelBrandFor, t as ModelBrandIdentity } from "./model-brand-ZwVS49Fq.js";
2
2
  import { StatusTone } from "@tangle-network/ui/primitives";
3
3
  import { ReactElement } from "react";
4
4
  import { LucideIcon } from "lucide-react";
5
5
  import "@xyflow/react";
6
6
  import "@xyflow/react/dist/style.css";
7
- //#region src/workflows/model.d.ts
8
7
  /**
9
8
  * Turns a workflow YAML definition into a positioned node/edge graph for the
10
9
  * visualizer. Pure and React-Flow-agnostic so the parsing + layout is unit
@@ -335,8 +334,6 @@ interface BuildWorkflowGraphOptions {
335
334
  * picks the flow axis (default "LR"); `compact` collapses nodes to icon tiles;
336
335
  * `edges` replaces the inferred positional spine with a declared topology. */
337
336
  export declare function buildWorkflowGraph(yaml: string, options?: BuildWorkflowGraphOptions): WfGraph;
338
- //#endregion
339
- //#region src/workflows/WorkflowGraph.d.ts
340
337
  interface WorkflowGraphProps {
341
338
  /** Workflow YAML to render. */
342
339
  yaml: string;
@@ -508,11 +505,7 @@ interface WorkflowGraphProps {
508
505
  */
509
506
  problems?: readonly WfProblem[];
510
507
  }
511
- //#endregion
512
- //#region src/workflows/WorkflowGraphLazy.d.ts
513
508
  declare function WorkflowGraph(props: WorkflowGraphProps): import("react").JSX.Element;
514
- //#endregion
515
- //#region src/workflows/node-ui.d.ts
516
509
  export declare const STATUS_COLOR: Record<WfNodeStatus, string>;
517
510
  export declare const STATUS_LABEL: Record<WfNodeStatus, string>;
518
511
  /** @deprecated `StatusPill` now renders ui's StatusPill from `STATUS_TONE`;
@@ -553,8 +546,6 @@ export declare function NodeMark({ kind, provider, model, accent, tile }: {
553
546
  /** Edge length of the square the mark is centered in. */
554
547
  tile: number;
555
548
  }): import("react").JSX.Element;
556
- //#endregion
557
- //#region src/workflows/naming.d.ts
558
549
  /**
559
550
  * Human-facing naming for workflow nodes. A definition addresses things by
560
551
  * machine identifier — an action kind (`agent.run`), a hub action path
@@ -611,8 +602,6 @@ export declare function parseActionPath(path: string): ActionPathParts | null;
611
602
  * it is deliberately absent here. A path we can't split is shown verbatim.
612
603
  */
613
604
  export declare function actionPathLabel(path: string): string;
614
- //#endregion
615
- //#region src/workflows/node-output.d.ts
616
605
  /** The recovered shape of an output preview. */
617
606
  type OutputShape = {
618
607
  kind: "empty";
@@ -681,5 +670,4 @@ export declare function NodeOutputBody({ shape, rows, tone }: {
681
670
  rows?: number | "none";
682
671
  tone?: "default" | "error";
683
672
  }): ReactElement | null;
684
- //#endregion
685
673
  export { type ActionPathParts, type BuildWorkflowGraphOptions, type LeadCase, type ModelBrandIdentity, ModelBrandStack, StatusPill as NodeStatusPill, type OutputShape, type WfEdge, type WfEdgeKind, type WfEdgeSpec, type WfGraph, type WfNode, type WfNodeData, type WfNodeState, type WfNodeStatus, type WfNodeTone, type WfProblem, type WfProblemSeverity, WorkflowGraph as WorkflowGraphLazy, type WorkflowGraphProps, modelBrandFor };
package/dist/workflows.js CHANGED
@@ -1,8 +1,8 @@
1
- import { i as modelBrandFor, t as ModelBrandStack } from "./model-brand-BSr9on8C.js";
2
- import { A as triggerNodeIndex, D as buildWorkflowGraph, E as branchNodeId, F as parseActionPath, I as shortModel, N as actionPathLabel, P as humanizeIdentifier, T as actionNodeId, a as NodeMark, d as STATUS_LABEL, f as STATUS_PILL, h as StatusPill, i as KIND_ICON, k as triggerNodeId, n as classifyOutput, p as STATUS_TONE, r as condenseText, t as NodeOutputBody, u as STATUS_COLOR, w as TRIGGER_NODE_ID } from "./node-output-fuk0NV0V.js";
1
+ import { i as modelBrandFor, t as ModelBrandStack } from "./model-brand-bTcMjQtB.js";
2
+ import { A as triggerNodeIndex, D as buildWorkflowGraph, E as branchNodeId, F as parseActionPath, I as shortModel, N as actionPathLabel, P as humanizeIdentifier, T as actionNodeId, a as NodeMark, d as STATUS_LABEL, f as STATUS_PILL, h as StatusPill, i as KIND_ICON, k as triggerNodeId, n as classifyOutput, p as STATUS_TONE, r as condenseText, t as NodeOutputBody, u as STATUS_COLOR, w as TRIGGER_NODE_ID } from "./node-output-udnwhShN.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Component, Suspense, lazy, useMemo, useState } from "react";
5
- //#region src/workflows/WorkflowGraphLazy.tsx
5
+ // src/workflows/WorkflowGraphLazy.tsx
6
6
  /**
7
7
  * Lazy + error-isolated boundary for {@link WorkflowGraph}. React Flow (~50KB)
8
8
  * is only needed on the workflow detail page and on workflow proposal cards, so
@@ -30,7 +30,7 @@ function retryImport(factory, retries = 2, delayMs = 350) {
30
30
  });
31
31
  }
32
32
  function lazyWorkflowGraph() {
33
- return lazy(() => retryImport(() => import("./WorkflowGraph-BcuJ0kgt.js").then((m) => ({ default: m.WorkflowGraph }))));
33
+ return lazy(() => retryImport(() => import("./WorkflowGraph-DXmu60At.js").then((m) => ({ default: m.WorkflowGraph }))));
34
34
  }
35
35
  var GraphErrorBoundary = class extends Component {
36
36
  state = { hasError: false };
@@ -80,5 +80,4 @@ function WorkflowGraph(props) {
80
80
  })
81
81
  }, `${props.yaml}::${attempt}`);
82
82
  }
83
- //#endregion
84
83
  export { KIND_ICON, ModelBrandStack, NodeMark, NodeOutputBody, StatusPill as NodeStatusPill, STATUS_COLOR, STATUS_LABEL, STATUS_PILL, STATUS_TONE, TRIGGER_NODE_ID, WorkflowGraph as WorkflowGraphLazy, actionNodeId, actionPathLabel, branchNodeId, buildWorkflowGraph, classifyOutput, condenseText, humanizeIdentifier, modelBrandFor, parseActionPath, shortModel, triggerNodeId, triggerNodeIndex };
@@ -1,7 +1,7 @@
1
- import { t as cn$1 } from "./utils-DzWbktWG.js";
2
- import { r as ShellHeader } from "./shell-header-CTh3oV_e.js";
3
- import { t as MOTION_CONTROL } from "./motion-D4njYpys.js";
4
- import { i as VaultTree, n as filterFileNodes, t as fileTreeFromPaths } from "./tree-data-DtoCNNBJ.js";
1
+ import { t as cn$1 } from "./utils-BER_bdgE.js";
2
+ import { r as ShellHeader } from "./shell-header-CwqDzC4I.js";
3
+ import { t as MOTION_CONTROL } from "./motion-Bn7ESHrj.js";
4
+ import { i as VaultTree, n as filterFileNodes, t as fileTreeFromPaths } from "./tree-data-YXtcK6Ld.js";
5
5
  import { ArtifactPane, ArtifactPane as ArtifactPane$1, Button, EmptyState, Input, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@tangle-network/ui/primitives";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Markdown } from "@tangle-network/ui/markdown";
@@ -14,7 +14,7 @@ import { FileArtifactPane, FileTree, filterFileTree } from "@tangle-network/ui/f
14
14
  import { useNavbarSessions } from "@tangle-network/ui/stores";
15
15
  import { ChatContainer } from "@tangle-network/ui/chat";
16
16
  import { OpenUIArtifactRenderer } from "@tangle-network/ui/openui";
17
- //#region src/workspace/workspace-surface.tsx
17
+ // src/workspace/workspace-surface.tsx
18
18
  /**
19
19
  * The raised panel every workspace page sits in: an even gutter of recessed
20
20
  * backdrop on every side, then one rounded, bordered surface. `WorkspaceLayout`
@@ -75,8 +75,7 @@ function WorkspaceSurface({ title, headingLevel, actions, header, contentClassNa
75
75
  })
76
76
  });
77
77
  }
78
- //#endregion
79
- //#region src/workspace/workspace-layout.tsx
78
+ // src/workspace/workspace-layout.tsx
80
79
  /**
81
80
  * WorkspaceLayout — reusable sandbox shell with desktop resizable panels and
82
81
  * mobile overlay drawers.
@@ -693,8 +692,7 @@ function WorkspaceLayout({ left, leftHeader, center, centerHeader, centerFooter,
693
692
  ]
694
693
  }) });
695
694
  }
696
- //#endregion
697
- //#region src/workspace/directory-pane.tsx
695
+ // src/workspace/directory-pane.tsx
698
696
  function countNodes(node) {
699
697
  if (node.type === "file") return {
700
698
  files: 1,
@@ -789,8 +787,7 @@ function DirectoryPane({ root, selectedPath, onSelect, onRefresh, onUpload, titl
789
787
  }) : null
790
788
  });
791
789
  }
792
- //#endregion
793
- //#region src/workspace/status-banner.tsx
790
+ // src/workspace/status-banner.tsx
794
791
  /**
795
792
  * StatusBanner — inline notice for connection and provisioning states.
796
793
  */
@@ -863,8 +860,7 @@ function StatusBanner({ type, message, detail, onDismiss, className }) {
863
860
  })]
864
861
  });
865
862
  }
866
- //#endregion
867
- //#region src/workspace/status-bar.tsx
863
+ // src/workspace/status-bar.tsx
868
864
  /**
869
865
  * StatusBar — compact bottom bar: connection state, file/artifact context
870
866
  * badges, credits. The active model lives in the input box, not here.
@@ -929,8 +925,7 @@ function StatusBar({ credits, contextBadges = [], onRemoveBadge, status = "conne
929
925
  ]
930
926
  });
931
927
  }
932
- //#endregion
933
- //#region src/workspace/terminal-panel.tsx
928
+ // src/workspace/terminal-panel.tsx
934
929
  /**
935
930
  * Terminal — read-only terminal output panel.
936
931
  *
@@ -1017,8 +1012,7 @@ function TerminalPanel({ lines, title = "Terminal", isCollapsed = false, onToggl
1017
1012
  })]
1018
1013
  });
1019
1014
  }
1020
- //#endregion
1021
- //#region src/workspace/runtime-pane.tsx
1015
+ // src/workspace/runtime-pane.tsx
1022
1016
  /**
1023
1017
  * RuntimePane — shared operating surface for sandbox session state, terminal
1024
1018
  * output, audit results, and runtime metadata.
@@ -1093,8 +1087,7 @@ function RuntimePane({ title = "Runtime", subtitle = "Session state, execution o
1093
1087
  ]
1094
1088
  });
1095
1089
  }
1096
- //#endregion
1097
- //#region src/lib/format-relative-age.ts
1090
+ // src/lib/format-relative-age.ts
1098
1091
  const MINUTE = 6e4;
1099
1092
  const HOUR = 60 * MINUTE;
1100
1093
  const DAY = 24 * HOUR;
@@ -1120,8 +1113,7 @@ function formatRelativeAge(date, now = Date.now()) {
1120
1113
  if (elapsed < YEAR) return `${Math.floor(elapsed / MONTH)}mo`;
1121
1114
  return `${Math.floor(elapsed / YEAR)}y`;
1122
1115
  }
1123
- //#endregion
1124
- //#region src/workspace/session-optimistic.ts
1116
+ // src/workspace/session-optimistic.ts
1125
1117
  /**
1126
1118
  * Optimistic session/thread list: reflect a just-created / renamed / deleted
1127
1119
  * item in the sidebar INSTANTLY, before the server loader round-trips.
@@ -1199,8 +1191,7 @@ function useOptimisticSessionItems(items, options = {}) {
1199
1191
  }
1200
1192
  };
1201
1193
  }
1202
- //#endregion
1203
- //#region src/workspace/session-sidebar.tsx
1194
+ // src/workspace/session-sidebar.tsx
1204
1195
  const NO_CONTROLLER = {
1205
1196
  add: () => {},
1206
1197
  update: () => {},
@@ -1602,8 +1593,7 @@ function SessionSidebar({ title, subtitle, projectId = null, items, currentItemI
1602
1593
  ]
1603
1594
  });
1604
1595
  }
1605
- //#endregion
1606
- //#region src/workspace/shell-revalidation.ts
1596
+ // src/workspace/shell-revalidation.ts
1607
1597
  /**
1608
1598
  * Build a `shouldRevalidate` function for the shell route under `appPathPrefix`.
1609
1599
  * Use this when the app mounts under a non-default prefix; otherwise prefer the
@@ -1629,8 +1619,7 @@ function createShellShouldRevalidate(options = {}) {
1629
1619
  * For a non-`/app` prefix, use {@link createShellShouldRevalidate}.
1630
1620
  */
1631
1621
  const shellShouldRevalidate = createShellShouldRevalidate();
1632
- //#endregion
1633
- //#region src/workspace/workspace-artifact-view.tsx
1622
+ // src/workspace/workspace-artifact-view.tsx
1634
1623
  /** The shared technical renderer for workspace files and generated artifacts. */
1635
1624
  function WorkspaceArtifactView({ artifact, hideTitleBlock }) {
1636
1625
  switch (artifact.kind) {
@@ -1695,8 +1684,7 @@ function WorkspaceArtifactView({ artifact, hideTitleBlock }) {
1695
1684
  });
1696
1685
  }
1697
1686
  }
1698
- //#endregion
1699
- //#region src/workspace/sandbox-workbench.tsx
1687
+ // src/workspace/sandbox-workbench.tsx
1700
1688
  function getArtifactTabIcon(kind) {
1701
1689
  switch (kind) {
1702
1690
  case "file": return FileCode2;
@@ -1985,8 +1973,7 @@ function SandboxWorkbench({ title, subtitle, status, centerHeader: centerHeaderP
1985
1973
  className: cn$1("p-2", className)
1986
1974
  });
1987
1975
  }
1988
- //#endregion
1989
- //#region src/workspace/task-board.tsx
1976
+ // src/workspace/task-board.tsx
1990
1977
  const INTERACTIVE_SELECTOR = "button, a, input, textarea, select, [role=\"button\"], [role=\"link\"]";
1991
1978
  function TaskBoard({ items, columns, className, onMoveItem, onClickItem, renderItemMeta, renderColumnAction, renderBadge, columnEmptyState, header, renderColumnBody, renderItemWrapper }) {
1992
1979
  const grouped = useMemo(() => {
@@ -2071,8 +2058,7 @@ function TaskBoard({ items, columns, className, onMoveItem, onClickItem, renderI
2071
2058
  })]
2072
2059
  });
2073
2060
  }
2074
- //#endregion
2075
- //#region src/workspace/calendar-view.tsx
2061
+ // src/workspace/calendar-view.tsx
2076
2062
  function toDateKey(d) {
2077
2063
  return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
2078
2064
  }
@@ -2305,8 +2291,7 @@ function CalendarView({ events, className, month: controlledMonth, year: control
2305
2291
  })]
2306
2292
  });
2307
2293
  }
2308
- //#endregion
2309
- //#region src/workspace/approval-queue.tsx
2294
+ // src/workspace/approval-queue.tsx
2310
2295
  /**
2311
2296
  * ApprovalQueue — review queue for agent-proposed actions.
2312
2297
  *
@@ -2514,8 +2499,7 @@ function ApprovalQueue({ items, className, onApprove, onReject, renderItemDetail
2514
2499
  })
2515
2500
  });
2516
2501
  }
2517
- //#endregion
2518
- //#region src/workspace/workspace-files-pane.tsx
2502
+ // src/workspace/workspace-files-pane.tsx
2519
2503
  function indexNodes(nodes) {
2520
2504
  const index = /* @__PURE__ */ new Map();
2521
2505
  const visit = (node) => {
@@ -2687,5 +2671,4 @@ function WorkspaceFilesPane({ root, paths, selectedPath, onSelect, preview, onBa
2687
2671
  })]
2688
2672
  });
2689
2673
  }
2690
- //#endregion
2691
2674
  export { WorkspaceSurfaceTitle as C, WorkspaceSurfaceFrame as S, StatusBar as _, TaskBoard as a, WorkspaceLayout as b, createShellShouldRevalidate as c, SESSION_CREATED_EVENT as d, dispatchSessionCreated as f, TerminalPanel as g, RuntimePane as h, CalendarView as i, shellShouldRevalidate as l, formatRelativeAge as m, WorkspaceFilesPane as n, SandboxWorkbench as o, useOptimisticSessionItems as p, ApprovalQueue as r, WorkspaceArtifactView as s, ArtifactPane$1 as t, SessionSidebar as u, StatusBanner as v, WorkspaceSurface as x, DirectoryPane as y };
@@ -1,2 +1,2 @@
1
- import { $ as StatusBar, A as createShellShouldRevalidate, B as SessionSidebarVariant, C as SandboxWorkbenchLayoutOptions, D as SandboxWorkbenchSessionProps, E as SandboxWorkbenchProps, F as SessionSidebarFilter, G as dispatchSessionCreated, H as SessionCreatedDetail, I as SessionSidebarGroupBy, J as RuntimePaneProps, K as useOptimisticSessionItems, L as SessionSidebarItem, M as formatRelativeAge, N as SessionSidebar, O as ShellShouldRevalidateArgs, P as SessionSidebarBadge, Q as ContextBadge, R as SessionSidebarLink, S as SandboxWorkbenchFileArtifact, T as SandboxWorkbenchOpenUIArtifact, U as SessionOptimisticController, V as SESSION_CREATED_EVENT, W as UseOptimisticSessionItemsOptions, X as TerminalPanel, Y as TerminalLine, Z as TerminalProps, _ as TaskBoardItem, _t as WorkspaceSurfaceTitle, a as WorkspaceFilesPane, at as DirectoryPaneProps, b as SandboxWorkbenchArtifact, bt as WorkspaceLayoutProps, c as ApprovalConfidenceStat, ct as ShellHeader, d as ApprovalQueueProps, dt as WorkspacePaneHeaderProps, et as StatusBarProps, f as CalendarEvent, ft as WorkspaceSurface, g as TaskBoardColumn, gt as WorkspaceSurfaceProps, h as TaskBoard, ht as WorkspaceSurfaceHeadingLevel, i as WorkspaceArtifactViewProps, it as DirectoryPane, j as shellShouldRevalidate, k as ShellShouldRevalidateOptions, l as ApprovalItem, lt as ShellHeaderProps, m as CalendarViewProps, mt as WorkspaceSurfaceFrameProps, n as ArtifactPaneProps, nt as StatusBanner, o as WorkspaceFilesPaneProps, ot as SHELL_HEADER_HEIGHT, p as CalendarView, pt as WorkspaceSurfaceFrame, q as RuntimePane, r as WorkspaceArtifactView, rt as StatusBannerProps, s as WorkspaceFilesPreview, st as SHELL_INSET_GUTTER, t as ArtifactPane, tt as BannerType, u as ApprovalQueue, ut as WorkspacePaneHeader, v as TaskBoardProps, vt as WorkspaceSurfaceTitleProps, w as SandboxWorkbenchMarkdownArtifact, x as SandboxWorkbenchCustomArtifact, y as SandboxWorkbench, yt as WorkspaceLayout, z as SessionSidebarProps } from "./index-C61CTrhx.js";
1
+ import { $ as StatusBar, A as createShellShouldRevalidate, B as SessionSidebarVariant, C as SandboxWorkbenchLayoutOptions, D as SandboxWorkbenchSessionProps, E as SandboxWorkbenchProps, F as SessionSidebarFilter, G as dispatchSessionCreated, H as SessionCreatedDetail, I as SessionSidebarGroupBy, J as RuntimePaneProps, K as useOptimisticSessionItems, L as SessionSidebarItem, M as formatRelativeAge, N as SessionSidebar, O as ShellShouldRevalidateArgs, P as SessionSidebarBadge, Q as ContextBadge, R as SessionSidebarLink, S as SandboxWorkbenchFileArtifact, T as SandboxWorkbenchOpenUIArtifact, U as SessionOptimisticController, V as SESSION_CREATED_EVENT, W as UseOptimisticSessionItemsOptions, X as TerminalPanel, Y as TerminalLine, Z as TerminalProps, _ as TaskBoardItem, _t as WorkspaceSurfaceTitle, a as WorkspaceFilesPane, at as DirectoryPaneProps, b as SandboxWorkbenchArtifact, bt as WorkspaceLayoutProps, c as ApprovalConfidenceStat, ct as ShellHeader, d as ApprovalQueueProps, dt as WorkspacePaneHeaderProps, et as StatusBarProps, f as CalendarEvent, ft as WorkspaceSurface, g as TaskBoardColumn, gt as WorkspaceSurfaceProps, h as TaskBoard, ht as WorkspaceSurfaceHeadingLevel, i as WorkspaceArtifactViewProps, it as DirectoryPane, j as shellShouldRevalidate, k as ShellShouldRevalidateOptions, l as ApprovalItem, lt as ShellHeaderProps, m as CalendarViewProps, mt as WorkspaceSurfaceFrameProps, n as ArtifactPaneProps, nt as StatusBanner, o as WorkspaceFilesPaneProps, ot as SHELL_HEADER_HEIGHT, p as CalendarView, pt as WorkspaceSurfaceFrame, q as RuntimePane, r as WorkspaceArtifactView, rt as StatusBannerProps, s as WorkspaceFilesPreview, st as SHELL_INSET_GUTTER, t as ArtifactPane, tt as BannerType, u as ApprovalQueue, ut as WorkspacePaneHeader, v as TaskBoardProps, vt as WorkspaceSurfaceTitleProps, w as SandboxWorkbenchMarkdownArtifact, x as SandboxWorkbenchCustomArtifact, y as SandboxWorkbench, yt as WorkspaceLayout, z as SessionSidebarProps } from "./index-B1oEiBks.js";
2
2
  export { type ApprovalConfidenceStat, type ApprovalItem, ApprovalQueue, type ApprovalQueueProps, ArtifactPane, type ArtifactPaneProps, type BannerType, type CalendarEvent, CalendarView, type CalendarViewProps, type ContextBadge, DirectoryPane, type DirectoryPaneProps, RuntimePane, type RuntimePaneProps, SESSION_CREATED_EVENT, SHELL_HEADER_HEIGHT, SHELL_INSET_GUTTER, SandboxWorkbench, type SandboxWorkbenchArtifact, type SandboxWorkbenchCustomArtifact, type SandboxWorkbenchFileArtifact, type SandboxWorkbenchLayoutOptions, type SandboxWorkbenchMarkdownArtifact, type SandboxWorkbenchOpenUIArtifact, type SandboxWorkbenchProps, type SandboxWorkbenchSessionProps, type SessionCreatedDetail, type SessionOptimisticController, SessionSidebar, type SessionSidebarBadge, type SessionSidebarFilter, type SessionSidebarGroupBy, type SessionSidebarItem, type SessionSidebarLink, type SessionSidebarProps, type SessionSidebarVariant, ShellHeader, type ShellHeaderProps, type ShellShouldRevalidateArgs, type ShellShouldRevalidateOptions, StatusBanner, type StatusBannerProps, StatusBar, type StatusBarProps, TaskBoard, type TaskBoardColumn, type TaskBoardItem, type TaskBoardProps, type TerminalLine, TerminalPanel, type TerminalProps, type UseOptimisticSessionItemsOptions, WorkspaceArtifactView, type WorkspaceArtifactViewProps, WorkspaceFilesPane, type WorkspaceFilesPaneProps, type WorkspaceFilesPreview, WorkspaceLayout, type WorkspaceLayoutProps, WorkspacePaneHeader, type WorkspacePaneHeaderProps, WorkspaceSurface, WorkspaceSurfaceFrame, type WorkspaceSurfaceFrameProps, type WorkspaceSurfaceHeadingLevel, type WorkspaceSurfaceProps, WorkspaceSurfaceTitle, type WorkspaceSurfaceTitleProps, createShellShouldRevalidate, dispatchSessionCreated, formatRelativeAge, shellShouldRevalidate, useOptimisticSessionItems };
package/dist/workspace.js CHANGED
@@ -1,3 +1,3 @@
1
- import { i as WorkspacePaneHeader, n as SHELL_INSET_GUTTER, r as ShellHeader, t as SHELL_HEADER_HEIGHT } from "./shell-header-CTh3oV_e.js";
2
- import { C as WorkspaceSurfaceTitle, S as WorkspaceSurfaceFrame, _ as StatusBar, a as TaskBoard, b as WorkspaceLayout, c as createShellShouldRevalidate, d as SESSION_CREATED_EVENT, f as dispatchSessionCreated, g as TerminalPanel, h as RuntimePane, i as CalendarView, l as shellShouldRevalidate, m as formatRelativeAge, n as WorkspaceFilesPane, o as SandboxWorkbench, p as useOptimisticSessionItems, r as ApprovalQueue, s as WorkspaceArtifactView, t as ArtifactPane, u as SessionSidebar, v as StatusBanner, x as WorkspaceSurface, y as DirectoryPane } from "./workspace-cjk0axyT.js";
1
+ import { i as WorkspacePaneHeader, n as SHELL_INSET_GUTTER, r as ShellHeader, t as SHELL_HEADER_HEIGHT } from "./shell-header-CwqDzC4I.js";
2
+ import { C as WorkspaceSurfaceTitle, S as WorkspaceSurfaceFrame, _ as StatusBar, a as TaskBoard, b as WorkspaceLayout, c as createShellShouldRevalidate, d as SESSION_CREATED_EVENT, f as dispatchSessionCreated, g as TerminalPanel, h as RuntimePane, i as CalendarView, l as shellShouldRevalidate, m as formatRelativeAge, n as WorkspaceFilesPane, o as SandboxWorkbench, p as useOptimisticSessionItems, r as ApprovalQueue, s as WorkspaceArtifactView, t as ArtifactPane, u as SessionSidebar, v as StatusBanner, x as WorkspaceSurface, y as DirectoryPane } from "./workspace-Cpgyw5N7.js";
3
3
  export { ApprovalQueue, ArtifactPane, CalendarView, DirectoryPane, RuntimePane, SESSION_CREATED_EVENT, SHELL_HEADER_HEIGHT, SHELL_INSET_GUTTER, SandboxWorkbench, SessionSidebar, ShellHeader, StatusBanner, StatusBar, TaskBoard, TerminalPanel, WorkspaceArtifactView, WorkspaceFilesPane, WorkspaceLayout, WorkspacePaneHeader, WorkspaceSurface, WorkspaceSurfaceFrame, WorkspaceSurfaceTitle, createShellShouldRevalidate, dispatchSessionCreated, formatRelativeAge, shellShouldRevalidate, useOptimisticSessionItems };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox-ui",
3
- "version": "0.137.1",
3
+ "version": "0.137.2",
4
4
  "license": "MIT",
5
5
  "description": "Unified UI component library for Tangle Sandbox — primitives, chat, dashboard, terminal, editor, and workspace components",
6
6
  "repository": {
@@ -203,16 +203,16 @@
203
203
  }
204
204
  },
205
205
  "dependencies": {
206
- "@lobehub/icons-static-svg": "^1.95.1",
207
- "@pierre/diffs": "^1.5.1",
206
+ "@lobehub/icons-static-svg": "^1.98.0",
207
+ "@pierre/diffs": "^1.6.1",
208
208
  "@radix-ui/react-dialog": "^1.3.1",
209
209
  "@radix-ui/react-dropdown-menu": "^2.2.1",
210
210
  "@radix-ui/react-select": "^2.4.1",
211
211
  "@tangle-network/ui": "11.42.0",
212
212
  "diff": "^9.0.0",
213
- "eventsource-parser": "4.1.1",
214
- "lucide-react": "^1.48.0",
215
- "nanostores": "^1.5.4",
213
+ "eventsource-parser": "4.1.2",
214
+ "lucide-react": "^1.61.0",
215
+ "nanostores": "^1.5.5",
216
216
  "tailwindcss-animate": "^1.0.7",
217
217
  "yaml": "^2.9.1"
218
218
  },
@@ -222,25 +222,25 @@
222
222
  "@fontsource/inter": "5.3.0",
223
223
  "@fontsource/manrope": "5.3.0",
224
224
  "@fontsource/outfit": "5.3.0",
225
- "@hocuspocus/provider": "^4.7.0",
225
+ "@hocuspocus/provider": "^4.7.1",
226
226
  "@nanostores/react": "^1.1.0",
227
- "@storybook/react": "^10.6.0",
228
- "@storybook/react-vite": "^10.6.0",
227
+ "@storybook/react": "^10.6.3",
228
+ "@storybook/react-vite": "^10.6.3",
229
229
  "@tailwindcss/postcss": "^4.3.3",
230
- "@tangle-network/agent-interface": "5.2.0",
230
+ "@tangle-network/agent-interface": "5.7.1",
231
231
  "@tangle-network/brand": "1.26.2",
232
232
  "@tangle-network/ui": "11.42.0",
233
- "@tanstack/react-query": "^5.104.0",
233
+ "@tanstack/react-query": "^5.104.5",
234
234
  "@testing-library/dom": "^10.4.2",
235
235
  "@testing-library/jest-dom": "^7.0.1",
236
236
  "@testing-library/react": "^16.3.3",
237
- "@testing-library/user-event": "^14.6.7",
238
- "@tiptap/core": "^3.31.3",
239
- "@tiptap/extension-collaboration": "^3.31.3",
240
- "@tiptap/extension-collaboration-caret": "^3.31.3",
241
- "@tiptap/react": "^3.31.3",
242
- "@tiptap/starter-kit": "^3.31.3",
243
- "@tiptap/y-tiptap": "^3.0.9",
237
+ "@testing-library/user-event": "^14.6.8",
238
+ "@tiptap/core": "^3.32.0",
239
+ "@tiptap/extension-collaboration": "^3.32.0",
240
+ "@tiptap/extension-collaboration-caret": "^3.32.0",
241
+ "@tiptap/react": "^3.32.0",
242
+ "@tiptap/starter-kit": "^3.32.0",
243
+ "@tiptap/y-tiptap": "^3.0.10",
244
244
  "@types/react": "^19.3.0",
245
245
  "@types/react-dom": "^19.3.0",
246
246
  "@xterm/addon-fit": "^0.11.0",
@@ -250,19 +250,19 @@
250
250
  "@xterm/xterm": "^6.0.0",
251
251
  "@xyflow/react": "^12.12.0",
252
252
  "elkjs": "0.12.0",
253
- "jsdom": "^30.1.1",
253
+ "jsdom": "^30.1.3",
254
254
  "pdfjs-dist": "^6.4.299",
255
- "playwright": "^1.63.0",
256
- "postcss": "^8.5.28",
257
- "react": "^19.3.0",
258
- "react-dom": "^19.3.0",
259
- "react-syntax-highlighter": "^16.1.1",
260
- "storybook": "^10.6.0",
255
+ "playwright": "^1.64.1",
256
+ "postcss": "^8.5.31",
257
+ "react": "^19.3.1",
258
+ "react-dom": "^19.3.1",
259
+ "react-syntax-highlighter": "^16.1.2",
260
+ "storybook": "^10.6.3",
261
261
  "tailwindcss": "^4.3.3",
262
- "tsdown": "^0.23.0",
262
+ "tsdown": "0.23.1",
263
263
  "typescript": "^7.0.2",
264
- "vite": "^8.3.1",
265
- "vitest": "^5.0.2",
264
+ "vite": "^8.3.5",
265
+ "vitest": "^5.0.5",
266
266
  "yjs": "^13.6.33"
267
267
  },
268
268
  "scripts": {
@@ -1,2 +0,0 @@
1
- import { cn as cn$1 } from "@tangle-network/ui/utils";
2
- export { cn$1 as t };