@tangle-network/sandbox-ui 0.14.0 → 0.15.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 (106) hide show
  1. package/dist/auth.d.ts +1 -74
  2. package/dist/auth.js +1 -4
  3. package/dist/chat.d.ts +1 -136
  4. package/dist/chat.js +2 -15
  5. package/dist/chunk-2BUPSB7O.js +0 -0
  6. package/dist/chunk-3J6FG3FJ.js +18 -0
  7. package/dist/chunk-76IQLPW2.js +206 -0
  8. package/dist/chunk-7ZA5SEK3.js +239 -0
  9. package/dist/chunk-AZ3AWMTM.js +8 -0
  10. package/dist/chunk-CMY7W45U.js +380 -0
  11. package/dist/chunk-EI44GEQ5.js +6 -0
  12. package/dist/chunk-ENMWGVDL.js +858 -0
  13. package/dist/{chunk-5OQ27N57.js → chunk-GPT7VKK6.js} +34 -38
  14. package/dist/chunk-HLZTKSGT.js +2652 -0
  15. package/dist/chunk-JBGKGLD7.js +16 -0
  16. package/dist/chunk-NJNME4J4.js +14 -0
  17. package/dist/chunk-QPAJR74X.js +20 -0
  18. package/dist/chunk-TK46XFLM.js +28 -0
  19. package/dist/chunk-WID73FPH.js +89 -0
  20. package/dist/chunk-YVXK4XRO.js +30 -0
  21. package/dist/dashboard.d.ts +450 -4
  22. package/dist/dashboard.js +20 -891
  23. package/dist/editor.d.ts +1 -120
  24. package/dist/editor.js +1 -5
  25. package/dist/files.d.ts +1 -129
  26. package/dist/files.js +2 -7
  27. package/dist/globals.css +2 -1265
  28. package/dist/hooks.d.ts +114 -11
  29. package/dist/hooks.js +17 -88
  30. package/dist/index.d.ts +24 -99
  31. package/dist/index.js +251 -256
  32. package/dist/markdown.d.ts +1 -29
  33. package/dist/markdown.js +2 -2
  34. package/dist/openui.d.ts +8 -115
  35. package/dist/openui.js +1 -6
  36. package/dist/pages.d.ts +13 -12
  37. package/dist/pages.js +91 -115
  38. package/dist/primitives.d.ts +14 -49
  39. package/dist/primitives.js +69 -77
  40. package/dist/run.d.ts +1 -14
  41. package/dist/run.js +2 -22
  42. package/dist/sdk-hooks.d.ts +3 -283
  43. package/dist/sdk-hooks.js +10 -14
  44. package/dist/stores.d.ts +2 -14
  45. package/dist/stores.js +11 -39
  46. package/dist/styles.css +2 -1265
  47. package/dist/template-card-DStb8boW.d.ts +183 -0
  48. package/dist/types.d.ts +11 -8
  49. package/dist/types.js +1 -0
  50. package/dist/utils.d.ts +1 -44
  51. package/dist/utils.js +6 -12
  52. package/dist/workspace.d.ts +5 -10
  53. package/dist/workspace.js +3 -19
  54. package/package.json +19 -54
  55. package/dist/active-sessions-store-CeOmXgv5.d.ts +0 -85
  56. package/dist/artifact-pane-Bh45Ssco.d.ts +0 -24
  57. package/dist/branding-DCi5VEik.d.ts +0 -13
  58. package/dist/button-CMQuQEW_.d.ts +0 -17
  59. package/dist/chat-container-f4yEs6KN.d.ts +0 -106
  60. package/dist/chunk-34A66VBG.js +0 -214
  61. package/dist/chunk-34I7UFSX.js +0 -92
  62. package/dist/chunk-36QY2W5G.js +0 -802
  63. package/dist/chunk-4CLN43XT.js +0 -45
  64. package/dist/chunk-54SQQMMM.js +0 -156
  65. package/dist/chunk-66EZOYZR.js +0 -102
  66. package/dist/chunk-BX6AQMUS.js +0 -183
  67. package/dist/chunk-DI3NZ5ZX.js +0 -192
  68. package/dist/chunk-DPGIXDAI.js +0 -220
  69. package/dist/chunk-DXMIEK4K.js +0 -1426
  70. package/dist/chunk-GSZA3TSY.js +0 -79
  71. package/dist/chunk-HB5Y37YU.js +0 -54
  72. package/dist/chunk-LQNEZDRM.js +0 -109
  73. package/dist/chunk-MA7YKRUP.js +0 -131
  74. package/dist/chunk-MKTSMWVD.js +0 -109
  75. package/dist/chunk-MQXABZTB.js +0 -1348
  76. package/dist/chunk-MT5FJ3ZT.js +0 -186
  77. package/dist/chunk-NKUPJC34.js +0 -2070
  78. package/dist/chunk-OEX7NZE3.js +0 -321
  79. package/dist/chunk-OKLQVY3Y.js +0 -139
  80. package/dist/chunk-Q56BYXQF.js +0 -61
  81. package/dist/chunk-QD4QE5P5.js +0 -40
  82. package/dist/chunk-QDH5GEGY.js +0 -630
  83. package/dist/chunk-QID2OOMG.js +0 -133
  84. package/dist/chunk-QMU2PWOU.js +0 -493
  85. package/dist/chunk-RQHJBTEU.js +0 -10
  86. package/dist/chunk-T7HMZEVO.js +0 -216
  87. package/dist/chunk-U6QTHMY6.js +0 -1290
  88. package/dist/chunk-US6JKJKH.js +0 -124
  89. package/dist/chunk-VX3XOUEB.js +0 -63
  90. package/dist/chunk-XLG757B6.js +0 -933
  91. package/dist/chunk-ZMNSRDMH.js +0 -127
  92. package/dist/chunk-ZNCEM5CD.js +0 -316
  93. package/dist/document-editor-pane-A70-EhdQ.d.ts +0 -124
  94. package/dist/document-editor-pane-TLPVRBBU.js +0 -11
  95. package/dist/expanded-tool-detail-Dh99mcbY.d.ts +0 -63
  96. package/dist/file-tabs-BLfxfmAH.d.ts +0 -51
  97. package/dist/parts-CyGkM6Fp.d.ts +0 -50
  98. package/dist/run-CtFZ6s-D.d.ts +0 -41
  99. package/dist/sidebar-drop-zone-tDBsuOH5.d.ts +0 -301
  100. package/dist/sidecar-CFU2W9j1.d.ts +0 -8
  101. package/dist/template-card-BAtvcAkU.d.ts +0 -18
  102. package/dist/tool-call-feed-Bs3MyQMT.d.ts +0 -68
  103. package/dist/tool-display-Ct9nFAzJ.d.ts +0 -32
  104. package/dist/usage-chart-CPTcNlGs.d.ts +0 -73
  105. package/dist/use-sandbox-metrics-DWc0k9Xm.d.ts +0 -153
  106. package/dist/variant-list-BrHYcBCk.d.ts +0 -540
@@ -1,36 +1,6 @@
1
- import {
2
- useActiveSessions,
3
- useNavbarSessions,
4
- useProjectActivity,
5
- useTotalRunningSessions
6
- } from "./chunk-OEX7NZE3.js";
7
- import {
8
- EmptyState,
9
- Input
10
- } from "./chunk-MA7YKRUP.js";
11
- import {
12
- ChatContainer
13
- } from "./chunk-XLG757B6.js";
14
- import {
15
- OpenUIArtifactRenderer
16
- } from "./chunk-ZNCEM5CD.js";
17
- import {
18
- FileArtifactPane,
19
- FileTree,
20
- filterFileTree
21
- } from "./chunk-QDH5GEGY.js";
22
- import {
23
- ArtifactPane
24
- } from "./chunk-HB5Y37YU.js";
25
- import {
26
- Markdown
27
- } from "./chunk-T7HMZEVO.js";
28
- import {
29
- Badge
30
- } from "./chunk-ZMNSRDMH.js";
31
1
  import {
32
2
  cn
33
- } from "./chunk-RQHJBTEU.js";
3
+ } from "./chunk-EI44GEQ5.js";
34
4
 
35
5
  // src/workspace/workspace-layout.tsx
36
6
  import {
@@ -487,9 +457,19 @@ function WorkspaceLayout({
487
457
  );
488
458
  }
489
459
 
460
+ // src/workspace/index.ts
461
+ import { ArtifactPane as ArtifactPane3 } from "@tangle-network/ui/primitives";
462
+
490
463
  // src/workspace/directory-pane.tsx
491
464
  import { useMemo as useMemo2, useState as useState2 } from "react";
492
465
  import { RefreshCw, Search, Upload } from "lucide-react";
466
+ import { ArtifactPane } from "@tangle-network/ui/primitives";
467
+ import {
468
+ FileTree,
469
+ filterFileTree
470
+ } from "@tangle-network/ui/files";
471
+ import { EmptyState } from "@tangle-network/ui/primitives";
472
+ import { Input } from "@tangle-network/ui/primitives";
493
473
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
494
474
  function countNodes(node) {
495
475
  if (node.type === "file") {
@@ -612,6 +592,9 @@ function DirectoryPane({
612
592
  );
613
593
  }
614
594
 
595
+ // src/workspace/runtime-pane.tsx
596
+ import { Binary, ShieldCheck, TerminalSquare } from "lucide-react";
597
+
615
598
  // src/workspace/status-banner.tsx
616
599
  import { Loader2, AlertCircle, CheckCircle, Wifi } from "lucide-react";
617
600
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -773,7 +756,6 @@ function TerminalPanel({
773
756
  }
774
757
 
775
758
  // src/workspace/runtime-pane.tsx
776
- import { Binary, ShieldCheck, TerminalSquare } from "lucide-react";
777
759
  import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
778
760
  function RuntimePane({
779
761
  title = "Runtime",
@@ -833,6 +815,7 @@ function RuntimePane({
833
815
  // src/workspace/session-sidebar.tsx
834
816
  import { useCallback, useMemo as useMemo3, useRef as useRef3, useState as useState3 } from "react";
835
817
  import { ArrowLeft, FolderTree, MessageSquareText, Plus, Search as Search2, Settings, Sparkles } from "lucide-react";
818
+ import { useNavbarSessions } from "@tangle-network/ui/stores";
836
819
  import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
837
820
  function statusDot(status) {
838
821
  switch (status) {
@@ -1155,6 +1138,11 @@ function SessionSidebar({
1155
1138
 
1156
1139
  // src/workspace/session-activity-monitor.tsx
1157
1140
  import { Activity, AlertCircle as AlertCircle2, LoaderCircle, MessageSquareText as MessageSquareText2 } from "lucide-react";
1141
+ import {
1142
+ useActiveSessions,
1143
+ useProjectActivity,
1144
+ useTotalRunningSessions
1145
+ } from "@tangle-network/ui/stores";
1158
1146
  import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
1159
1147
  function SessionStatusDot({ session }) {
1160
1148
  if (session.status === "error") {
@@ -1260,6 +1248,13 @@ import {
1260
1248
  LayoutPanelTop,
1261
1249
  X as X4
1262
1250
  } from "lucide-react";
1251
+ import { Badge } from "@tangle-network/ui/primitives";
1252
+ import { EmptyState as EmptyState2 } from "@tangle-network/ui/primitives";
1253
+ import { Markdown } from "@tangle-network/ui/markdown";
1254
+ import { ChatContainer } from "@tangle-network/ui/chat";
1255
+ import { FileArtifactPane } from "@tangle-network/ui/files";
1256
+ import { OpenUIArtifactRenderer } from "@tangle-network/ui/openui";
1257
+ import { ArtifactPane as ArtifactPane2 } from "@tangle-network/ui/primitives";
1263
1258
  import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1264
1259
  function getArtifactTabIcon(kind) {
1265
1260
  switch (kind) {
@@ -1348,7 +1343,7 @@ function renderArtifact(artifact) {
1348
1343
  );
1349
1344
  case "markdown":
1350
1345
  return /* @__PURE__ */ jsx9(
1351
- ArtifactPane,
1346
+ ArtifactPane2,
1352
1347
  {
1353
1348
  eyebrow: artifact.eyebrow ?? "Document",
1354
1349
  title: artifact.title,
@@ -1362,7 +1357,7 @@ function renderArtifact(artifact) {
1362
1357
  );
1363
1358
  case "openui":
1364
1359
  return /* @__PURE__ */ jsx9(
1365
- ArtifactPane,
1360
+ ArtifactPane2,
1366
1361
  {
1367
1362
  eyebrow: artifact.eyebrow ?? "Structured Artifact",
1368
1363
  title: artifact.title,
@@ -1376,7 +1371,7 @@ function renderArtifact(artifact) {
1376
1371
  );
1377
1372
  case "custom":
1378
1373
  return /* @__PURE__ */ jsx9(
1379
- ArtifactPane,
1374
+ ArtifactPane2,
1380
1375
  {
1381
1376
  eyebrow: artifact.eyebrow ?? "Artifact",
1382
1377
  title: artifact.title,
@@ -1480,7 +1475,7 @@ function SandboxWorkbench({
1480
1475
  ] })
1481
1476
  ] });
1482
1477
  const center = /* @__PURE__ */ jsx9(
1483
- ArtifactPane,
1478
+ ArtifactPane2,
1484
1479
  {
1485
1480
  eyebrow: session.eyebrow ?? "Agent Session",
1486
1481
  title: session.title ?? "Execution timeline",
@@ -1510,7 +1505,7 @@ function SandboxWorkbench({
1510
1505
  }
1511
1506
  ),
1512
1507
  /* @__PURE__ */ jsx9("div", { className: "min-h-0 flex-1 overflow-auto bg-background", children: activeArtifact ? renderArtifact(activeArtifact) : /* @__PURE__ */ jsx9("div", { className: "flex h-full items-center justify-center p-6", children: emptyArtifactState ?? /* @__PURE__ */ jsx9(
1513
- EmptyState,
1508
+ EmptyState2,
1514
1509
  {
1515
1510
  icon: /* @__PURE__ */ jsx9(Boxes, { className: "h-8 w-8" }),
1516
1511
  title: "No artifact selected",
@@ -2200,5 +2195,6 @@ export {
2200
2195
  AuditResults,
2201
2196
  TaskBoard,
2202
2197
  CalendarView,
2203
- ApprovalQueue
2198
+ ApprovalQueue,
2199
+ ArtifactPane3 as ArtifactPane
2204
2200
  };