@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,10 +1,10 @@
1
- import { A as triggerNodeIndex, B as fmtTokens, C as COMPACT_NODE_SIZE, D as buildWorkflowGraph, I as shortModel, L as clampPreview, M as worstSeverity, O as isStructuralKind, R as fmtCost, S as statusBorder, _ as emptySlotLabel, a as NodeMark, b as problemSurface, c as RESTING_BORDER, d as STATUS_LABEL, g as edgeColor, h as StatusPill, j as wfEdgeId, l as RESTING_SHADOW, m as StatusFooter, n as classifyOutput, o as ProblemMarker, s as ProblemMessages, t as NodeOutputBody, u as STATUS_COLOR, v as kindAccent, x as problemTitle, y as problemBorder, z as fmtDuration } from "./node-output-fuk0NV0V.js";
1
+ import { A as triggerNodeIndex, B as fmtTokens, C as COMPACT_NODE_SIZE, D as buildWorkflowGraph, I as shortModel, L as clampPreview, M as worstSeverity, O as isStructuralKind, R as fmtCost, S as statusBorder, _ as emptySlotLabel, a as NodeMark, b as problemSurface, c as RESTING_BORDER, d as STATUS_LABEL, g as edgeColor, h as StatusPill, j as wfEdgeId, l as RESTING_SHADOW, m as StatusFooter, n as classifyOutput, o as ProblemMarker, s as ProblemMessages, t as NodeOutputBody, u as STATUS_COLOR, v as kindAccent, x as problemTitle, y as problemBorder, z as fmtDuration } from "./node-output-udnwhShN.js";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
4
4
  import { Expand, Maximize2, Minimize2, Plus, Shrink, X } from "lucide-react";
5
5
  import { Background, BaseEdge, Controls, EdgeLabelRenderer, Handle, MarkerType, MiniMap, Panel, Position, ReactFlow, ViewportPortal, getSmoothStepPath, getViewportForBounds, useEdgesState, useNodesState, useStore } from "@xyflow/react";
6
6
  import "@xyflow/react/dist/style.css";
7
- //#region src/workflows/flow-graph.ts
7
+ // src/workflows/flow-graph.ts
8
8
  /**
9
9
  * React Flow node/edge construction for the workflow graph. Kept separate from
10
10
  * the React-Flow-agnostic parsing in `model.ts` and from the component itself so
@@ -291,8 +291,7 @@ function clearOfNodeBoxes(point, boxes, direction, half) {
291
291
  if (down === null) return up;
292
292
  return Math.abs(up) <= Math.abs(down) ? up : down;
293
293
  }
294
- //#endregion
295
- //#region src/workflows/elk-layout.ts
294
+ // src/workflows/elk-layout.ts
296
295
  /** One ELK instance per page. `null` once loading failed, so a host without
297
296
  * the peer pays for one failed import, not one per render. */
298
297
  let elkInstance;
@@ -805,8 +804,7 @@ function fitScale(graph, aspect) {
805
804
  const { width, height } = bounds(graph);
806
805
  return Math.min(aspect / Math.max(width, 1), 1 / Math.max(height, 1));
807
806
  }
808
- //#endregion
809
- //#region src/workflows/WorkflowGraph.tsx
807
+ // src/workflows/WorkflowGraph.tsx
810
808
  /**
811
809
  * n8n-style node-graph view of a workflow, rendered from its YAML definition.
812
810
  * Used full-size on the workflow detail page and as a compact, non-interactive
@@ -2405,5 +2403,4 @@ function WorkflowGraph({ yaml, variant = "full", direction: directionProp, defau
2405
2403
  })
2406
2404
  });
2407
2405
  }
2408
- //#endregion
2409
2406
  export { WorkflowGraph };
package/dist/assets.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as React$1 from "react";
2
- //#region src/assets/types.d.ts
3
2
  interface BrandTokens {
4
3
  primaryColor: string;
5
4
  accentColor: string;
@@ -178,8 +177,6 @@ interface AssetSpec<F extends AssetFormat = AssetFormat> {
178
177
  createdAt: string;
179
178
  updatedAt: string;
180
179
  }
181
- //#endregion
182
- //#region src/assets/approval-queue.d.ts
183
180
  interface ApprovalQueueProps {
184
181
  assets: AssetSpec[];
185
182
  variantCounts?: Record<string, number>;
@@ -196,8 +193,6 @@ interface ApprovalQueueProps {
196
193
  className?: string;
197
194
  }
198
195
  export declare function ApprovalQueue({ assets, variantCounts, onApprove, onReject, onEdit, onSave, onRevisionRequest, onRenderRequest, onOpen, renderingIds, previewUrls, className }: ApprovalQueueProps): React$1.JSX.Element;
199
- //#endregion
200
- //#region src/assets/asset-card.d.ts
201
196
  interface AssetCardProps {
202
197
  spec: AssetSpec;
203
198
  variantCount?: number;
@@ -213,8 +208,6 @@ export declare function imageOnlyUrl(content: ImageContent): string | null;
213
208
  /** The still frame a video asset carries: its first image scene or image slide. */
214
209
  export declare function videoPosterUrl(content: VideoContent): string | null;
215
210
  export declare function AssetCard({ spec, variantCount, onApprove, onReject, onEdit, onOpen, className }: AssetCardProps): import("react").JSX.Element;
216
- //#endregion
217
- //#region src/assets/asset-editor.d.ts
218
211
  interface AssetEditorProps {
219
212
  spec: AssetSpec;
220
213
  previewUrl?: string;
@@ -225,14 +218,10 @@ interface AssetEditorProps {
225
218
  className?: string;
226
219
  }
227
220
  export declare function AssetEditor({ spec, previewUrl, isRendering, onSave, onRenderRequest, onRevisionRequest, className }: AssetEditorProps): React$1.JSX.Element;
228
- //#endregion
229
- //#region src/assets/labels.d.ts
230
221
  /** Reader-facing name for each asset format. */
231
222
  export declare const ASSET_FORMAT_LABEL: Record<AssetFormat, string>;
232
223
  /** Reader-facing name for each review status. */
233
224
  export declare const ASSET_STATUS_LABEL: Record<AssetStatus, string>;
234
- //#endregion
235
- //#region src/assets/preview/copy-preview.d.ts
236
225
  interface CopyPreviewProps {
237
226
  content: CopyContent;
238
227
  className?: string;
@@ -240,8 +229,6 @@ interface CopyPreviewProps {
240
229
  export declare const COPY_PLATFORM_LABEL: Record<CopyPlatform, string>;
241
230
  /** Copy as it will read: the channel and its length budget, the headline, the body and its hashtags. */
242
231
  export declare function CopyPreview({ content, className }: CopyPreviewProps): import("react").JSX.Element;
243
- //#endregion
244
- //#region src/assets/preview/email-preview.d.ts
245
232
  interface EmailPreviewProps {
246
233
  content: EmailContent;
247
234
  brand: BrandTokens;
@@ -267,8 +254,6 @@ export declare function emailPalette(brand: BrandTokens): {
267
254
  * preview line, then the body on the brand's page and in its typeface.
268
255
  */
269
256
  export declare function EmailPreview({ content, brand, previewUrl, className }: EmailPreviewProps): import("react").JSX.Element;
270
- //#endregion
271
- //#region src/assets/preview/image-preview.d.ts
272
257
  type ImageFormat = "feed" | "story" | "carousel";
273
258
  interface ImagePreviewProps {
274
259
  content: ImageContent;
@@ -277,8 +262,6 @@ interface ImagePreviewProps {
277
262
  className?: string;
278
263
  }
279
264
  export declare function ImagePreview({ content, brand, format, className }: ImagePreviewProps): React$1.JSX.Element;
280
- //#endregion
281
- //#region src/assets/preview/video-preview.d.ts
282
265
  interface VideoPreviewProps {
283
266
  content: VideoContent;
284
267
  brand: BrandTokens;
@@ -287,5 +270,4 @@ interface VideoPreviewProps {
287
270
  className?: string;
288
271
  }
289
272
  export declare function VideoPreview({ content, brand, onRenderRequest, isRendering, className }: VideoPreviewProps): import("react").JSX.Element;
290
- //#endregion
291
273
  export type { ApprovalQueueProps, AssetCardProps, AssetEditorProps, CopyPreviewProps, EmailPreviewProps, ImageFormat, ImagePreviewProps, VideoPreviewProps };
package/dist/assets.js CHANGED
@@ -1,10 +1,10 @@
1
- import { t as cn } from "./utils-DzWbktWG.js";
1
+ import { t as cn } from "./utils-BER_bdgE.js";
2
2
  import { Badge, Button, DatePicker, FilterField, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Textarea, Toolbar, localToday } 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 { Fragment as Fragment$1 } from "react";
6
6
  import { Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, Film, GitBranch, Loader2, Maximize2, MessageSquare, Pencil, Play, Save, Search, X } from "lucide-react";
7
- //#region src/assets/preview/image-preview.tsx
7
+ // src/assets/preview/image-preview.tsx
8
8
  const ASPECT = {
9
9
  feed: "aspect-square",
10
10
  story: "aspect-[9/16]",
@@ -117,8 +117,7 @@ function ImagePreview({ content, brand, format = "feed", className }) {
117
117
  })]
118
118
  });
119
119
  }
120
- //#endregion
121
- //#region src/assets/preview/email-preview.tsx
120
+ // src/assets/preview/email-preview.tsx
122
121
  /** sRGB relative luminance of a #rgb or #rrggbb colour; null for anything else. */
123
122
  function luminance(color) {
124
123
  const hex = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(color.trim())?.[1];
@@ -336,8 +335,7 @@ function EmailPreview({ content, brand, previewUrl, className }) {
336
335
  })]
337
336
  });
338
337
  }
339
- //#endregion
340
- //#region src/assets/preview/copy-preview.tsx
338
+ // src/assets/preview/copy-preview.tsx
341
339
  const PLATFORM_LIMITS = {
342
340
  instagram: 2200,
343
341
  tiktok: 2200,
@@ -394,8 +392,7 @@ function CopyPreview({ content, className }) {
394
392
  ]
395
393
  });
396
394
  }
397
- //#endregion
398
- //#region src/assets/labels.ts
395
+ // src/assets/labels.ts
399
396
  /** Reader-facing name for each asset format. */
400
397
  const ASSET_FORMAT_LABEL = {
401
398
  email: "Email",
@@ -417,8 +414,7 @@ const ASSET_STATUS_LABEL = {
417
414
  scheduled: "Scheduled",
418
415
  published: "Published"
419
416
  };
420
- //#endregion
421
- //#region src/assets/asset-card.tsx
417
+ // src/assets/asset-card.tsx
422
418
  const STATUS_VARIANT = {
423
419
  draft: "secondary",
424
420
  pending_review: "outline",
@@ -649,8 +645,7 @@ function AssetCard({ spec, variantCount, onApprove, onReject, onEdit, onOpen, cl
649
645
  ]
650
646
  });
651
647
  }
652
- //#endregion
653
- //#region src/assets/preview/video-preview.tsx
648
+ // src/assets/preview/video-preview.tsx
654
649
  function VideoPreview({ content, brand, onRenderRequest, isRendering, className }) {
655
650
  if (content.renderedUrl) return /* @__PURE__ */ jsx("div", {
656
651
  className: cn("rounded overflow-hidden aspect-[9/16] bg-black", className),
@@ -739,8 +734,7 @@ function VideoPreview({ content, brand, onRenderRequest, isRendering, className
739
734
  ]
740
735
  });
741
736
  }
742
- //#endregion
743
- //#region src/assets/asset-editor.tsx
737
+ // src/assets/asset-editor.tsx
744
738
  function BrandPanel({ brand, onChange }) {
745
739
  const [open, setOpen] = React$1.useState(false);
746
740
  return /* @__PURE__ */ jsxs("div", {
@@ -1049,8 +1043,7 @@ function AssetEditor({ spec, previewUrl, isRendering, onSave, onRenderRequest, o
1049
1043
  })]
1050
1044
  });
1051
1045
  }
1052
- //#endregion
1053
- //#region src/assets/approval-queue.tsx
1046
+ // src/assets/approval-queue.tsx
1054
1047
  const FORMAT_OPTIONS = [
1055
1048
  {
1056
1049
  value: "all",
@@ -1273,5 +1266,4 @@ function ApprovalQueue({ assets, variantCounts = {}, onApprove, onReject, onEdit
1273
1266
  })]
1274
1267
  });
1275
1268
  }
1276
- //#endregion
1277
1269
  export { ASSET_FORMAT_LABEL, ASSET_STATUS_LABEL, ApprovalQueue, AssetCard, AssetEditor, COPY_PLATFORM_LABEL, CopyPreview, EmailPreview, ImagePreview, VideoPreview, emailPalette, imageOnlyUrl, videoPosterUrl };
@@ -2,7 +2,7 @@ import { Button } from "@tangle-network/ui/primitives";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cn } from "@tangle-network/ui/utils";
4
4
  import { AuthHeader, GitHubLoginButton, LoginLayout, UserMenu } from "@tangle-network/ui/auth";
5
- //#region src/auth/tangle-login-button.tsx
5
+ // src/auth/tangle-login-button.tsx
6
6
  function TangleMark({ className }) {
7
7
  return /* @__PURE__ */ jsx("svg", {
8
8
  className,
@@ -33,5 +33,4 @@ function TangleLoginButton({ authUrl = "/auth/tangle", variant = "default", clas
33
33
  children: [/* @__PURE__ */ jsx(TangleMark, { className: "h-5 w-5" }), children ?? "Sign in with Tangle"]
34
34
  });
35
35
  }
36
- //#endregion
37
36
  export { TangleLoginButton as a, UserMenu as i, GitHubLoginButton as n, LoginLayout as r, AuthHeader as t };
package/dist/auth.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as LoginLayout, c as UserMenu, d as TangleLoginButtonProps, i as GitHubLoginButtonProps, l as UserMenuProps, n as AuthHeaderProps, o as LoginLayoutProps, r as GitHubLoginButton, s as SessionUser, t as AuthHeader, u as TangleLoginButton } from "./index-DvmZLMT1.js";
1
+ import { a as LoginLayout, c as UserMenu, d as TangleLoginButtonProps, i as GitHubLoginButtonProps, l as UserMenuProps, n as AuthHeaderProps, o as LoginLayoutProps, r as GitHubLoginButton, s as SessionUser, t as AuthHeader, u as TangleLoginButton } from "./index-BbfWVtZq.js";
2
2
  export { AuthHeader, type AuthHeaderProps, GitHubLoginButton, type GitHubLoginButtonProps, LoginLayout, type LoginLayoutProps, type SessionUser, TangleLoginButton, type TangleLoginButtonProps, UserMenu, type UserMenuProps };
package/dist/auth.js CHANGED
@@ -1,2 +1 @@
1
- import { a as TangleLoginButton, i as UserMenu, n as GitHubLoginButton, r as LoginLayout, t as AuthHeader } from "./auth-CWe17Hly.js";
2
- export { AuthHeader, GitHubLoginButton, LoginLayout, TangleLoginButton, UserMenu };
1
+ export { t as AuthHeader, n as GitHubLoginButton, r as LoginLayout, a as TangleLoginButton, i as UserMenu } from "./auth-BDpoZ_2f.js";
@@ -1,4 +1,4 @@
1
- import { t as cn$1 } from "./utils-DzWbktWG.js";
1
+ import { t as cn$1 } from "./utils-BER_bdgE.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React$1 from "react";
4
4
  import { createPortal } from "react-dom";
@@ -7,7 +7,7 @@ import { focusField, focusRing } from "@tangle-network/ui/utils";
7
7
  import { AgentTimeline, ChatContainer as ChatContainer$1, ChatMessage, ChatMessage as ChatMessage$1, MessageAuthor, MessageList, TRANSCRIPT_TEXT, ThinkingIndicator, UserMessage, isViewerMessage } from "@tangle-network/ui/chat";
8
8
  import { modelProvider, reasoningLadder, snapHarnessToModel } from "@tangle-network/agent-interface";
9
9
  import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
10
- //#region src/chat/reasoning-level-picker.tsx
10
+ // src/chat/reasoning-level-picker.tsx
11
11
  /** Ordered ascending intensity (excludes "auto"), straight from the canonical ladder. */
12
12
  const REASONING_LADDER = reasoningLadder;
13
13
  /**
@@ -141,8 +141,7 @@ function ReasoningLevelPicker({ value, onChange, disabled, className, triggerCla
141
141
  }, option.value))
142
142
  }) })] });
143
143
  }
144
- //#endregion
145
- //#region src/lib/use-click-outside.ts
144
+ // src/lib/use-click-outside.ts
146
145
  /**
147
146
  * Returns a ref; calls `onOutside` when a mousedown lands outside that element
148
147
  * and outside every element in `extras`. For self-contained popovers/menus
@@ -165,8 +164,7 @@ function useClickOutside(onOutside, extras) {
165
164
  }, [onOutside]);
166
165
  return ref;
167
166
  }
168
- //#endregion
169
- //#region src/chat/anchored-popover.tsx
167
+ // src/chat/anchored-popover.tsx
170
168
  /**
171
169
  * Body-portaled popover for the self-contained (non-Radix) pickers. Composer
172
170
  * control strips scroll horizontally and sit under overlapping siblings, so an
@@ -224,8 +222,7 @@ const AnchoredPopover = React$1.forwardRef(function AnchoredPopover({ anchorRef,
224
222
  children
225
223
  }), document.body);
226
224
  });
227
- //#endregion
228
- //#region src/chat/informative-lock.tsx
225
+ // src/chat/informative-lock.tsx
229
226
  /**
230
227
  * Interactive locked-control shell shared by session-bound pickers. It keeps
231
228
  * the pinned selection visible while explaining how to switch in a new chat.
@@ -299,8 +296,7 @@ function InformativeLock({ children, ariaLabel, lockTitle, lockBody, newChatLabe
299
296
  })]
300
297
  });
301
298
  }
302
- //#endregion
303
- //#region src/chat/agent-profile-picker.tsx
299
+ // src/chat/agent-profile-picker.tsx
304
300
  function profileSubtitle(profile) {
305
301
  if (profile.description) return profile.description;
306
302
  const count = profile.capabilities?.length ?? 0;
@@ -595,8 +591,7 @@ function ProfileForm({ capabilities, initial, saving, error, onCancel, onSave })
595
591
  ]
596
592
  });
597
593
  }
598
- //#endregion
599
- //#region src/chat/artifact-agent-dock.tsx
594
+ // src/chat/artifact-agent-dock.tsx
600
595
  function defaultScopeLabel(scope) {
601
596
  if (scope.label) return scope.label;
602
597
  switch (scope.kind) {
@@ -867,5 +862,4 @@ function ArtifactAgentDock({ scope, open, onOpenChange, transport, defaultPrompt
867
862
  ]
868
863
  });
869
864
  }
870
- //#endregion
871
865
  export { MessageList as a, UserMessage as c, modelProvider as d, snapHarnessToModel as f, ReasoningLevelPicker as g, HARNESS_REASONING_OPTIONS as h, MessageAuthor as i, isViewerMessage as l, DEFAULT_REASONING_LEVEL_OPTIONS as m, ChatContainer$1 as n, TRANSCRIPT_TEXT as o, AgentProfilePicker as p, ChatMessage$1 as r, ThinkingIndicator as s, AgentTimeline as t, ArtifactAgentDock as u };
package/dist/chat.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ArtifactDockMessage, B as AgentProfilePickerProps, C as ThinkingIndicatorProps, D as ArtifactAgentDock, E as isViewerMessage, F as snapHarnessToModel, G as ReasoningLevelPicker, H as HARNESS_REASONING_OPTIONS, I as AgentProfileCapability, K as ReasoningLevelPickerProps, L as AgentProfileDraft, M as ArtifactKind, N as ArtifactScope, O as ArtifactAgentDockProps, P as modelProvider, R as AgentProfileOption, S as ThinkingIndicator, T as UserMessageProps, U as ReasoningLevel, V as DEFAULT_REASONING_LEVEL_OPTIONS, W as ReasoningLevelOption, _ as MessageAuthorProps, a as AgentTimelineMessageItem, b as MessageRole, c as AgentTimelineTone, d as ChatAuthor, f as ChatContainer, g as MessageAuthor, h as ChatMessageProps, i as AgentTimelineItem, j as ArtifactDockStreamEvent, k as ArtifactAgentDockTransport, l as AgentTimelineToolGroupItem, m as ChatMessage, n as AgentTimelineArtifactItem, o as AgentTimelineProps, p as ChatContainerProps, r as AgentTimelineCustomItem, s as AgentTimelineStatusItem, t as AgentTimeline, u as AgentTimelineToolItem, v as MessageList, w as UserMessage, x as TRANSCRIPT_TEXT, y as MessageListProps, z as AgentProfilePicker } from "./index-QBCEflyf.js";
1
+ import { A as ArtifactDockMessage, B as AgentProfilePickerProps, C as ThinkingIndicatorProps, D as ArtifactAgentDock, E as isViewerMessage, F as snapHarnessToModel, G as ReasoningLevelPicker, H as HARNESS_REASONING_OPTIONS, I as AgentProfileCapability, K as ReasoningLevelPickerProps, L as AgentProfileDraft, M as ArtifactKind, N as ArtifactScope, O as ArtifactAgentDockProps, P as modelProvider, R as AgentProfileOption, S as ThinkingIndicator, T as UserMessageProps, U as ReasoningLevel, V as DEFAULT_REASONING_LEVEL_OPTIONS, W as ReasoningLevelOption, _ as MessageAuthorProps, a as AgentTimelineMessageItem, b as MessageRole, c as AgentTimelineTone, d as ChatAuthor, f as ChatContainer, g as MessageAuthor, h as ChatMessageProps, i as AgentTimelineItem, j as ArtifactDockStreamEvent, k as ArtifactAgentDockTransport, l as AgentTimelineToolGroupItem, m as ChatMessage, n as AgentTimelineArtifactItem, o as AgentTimelineProps, p as ChatContainerProps, r as AgentTimelineCustomItem, s as AgentTimelineStatusItem, t as AgentTimeline, u as AgentTimelineToolItem, v as MessageList, w as UserMessage, x as TRANSCRIPT_TEXT, y as MessageListProps, z as AgentProfilePicker } from "./index-4KFqFK1f.js";
2
2
  export { type AgentProfileCapability, type AgentProfileDraft, type AgentProfileOption, AgentProfilePicker, type AgentProfilePickerProps, AgentTimeline, type AgentTimelineArtifactItem, type AgentTimelineCustomItem, type AgentTimelineItem, type AgentTimelineMessageItem, type AgentTimelineProps, type AgentTimelineStatusItem, type AgentTimelineTone, type AgentTimelineToolGroupItem, type AgentTimelineToolItem, ArtifactAgentDock, type ArtifactAgentDockProps, type ArtifactAgentDockTransport, type ArtifactDockMessage, type ArtifactDockStreamEvent, type ArtifactKind, type ArtifactScope, type ChatAuthor, ChatContainer, type ChatContainerProps, ChatMessage, type ChatMessageProps, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, MessageAuthor, type MessageAuthorProps, MessageList, type MessageListProps, type MessageRole, type ReasoningLevel, type ReasoningLevelOption, ReasoningLevelPicker, type ReasoningLevelPickerProps, TRANSCRIPT_TEXT, ThinkingIndicator, type ThinkingIndicatorProps, UserMessage, type UserMessageProps, isViewerMessage, modelProvider, snapHarnessToModel };
package/dist/chat.js CHANGED
@@ -1,2 +1 @@
1
- import { a as MessageList, c as UserMessage, d as modelProvider, f as snapHarnessToModel, g as ReasoningLevelPicker, h as HARNESS_REASONING_OPTIONS, i as MessageAuthor, l as isViewerMessage, m as DEFAULT_REASONING_LEVEL_OPTIONS, n as ChatContainer, o as TRANSCRIPT_TEXT, p as AgentProfilePicker, r as ChatMessage, s as ThinkingIndicator, t as AgentTimeline, u as ArtifactAgentDock } from "./chat-_aHUfqtH.js";
2
- export { AgentProfilePicker, AgentTimeline, ArtifactAgentDock, ChatContainer, ChatMessage, DEFAULT_REASONING_LEVEL_OPTIONS, HARNESS_REASONING_OPTIONS, MessageAuthor, MessageList, ReasoningLevelPicker, TRANSCRIPT_TEXT, ThinkingIndicator, UserMessage, isViewerMessage, modelProvider, snapHarnessToModel };
1
+ export { p as AgentProfilePicker, t as AgentTimeline, u as ArtifactAgentDock, n as ChatContainer, r as ChatMessage, m as DEFAULT_REASONING_LEVEL_OPTIONS, h as HARNESS_REASONING_OPTIONS, i as MessageAuthor, a as MessageList, g as ReasoningLevelPicker, o as TRANSCRIPT_TEXT, s as ThinkingIndicator, c as UserMessage, l as isViewerMessage, d as modelProvider, f as snapHarnessToModel } from "./chat-Cw13rqn9.js";
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React$1 from "react";
4
4
  import { AlertCircle, CheckCircle2, Loader2, MessageSquare, ShieldCheck } from "lucide-react";
5
5
  import { cn } from "@tangle-network/ui/utils";
6
- //#region src/connections/agent-messaging-connection.tsx
6
+ // src/connections/agent-messaging-connection.tsx
7
7
  function AgentStatus({ enrollment }) {
8
8
  switch (enrollment.status) {
9
9
  case "checking": return /* @__PURE__ */ jsx("span", { children: "Checking access…" });
@@ -176,5 +176,4 @@ function AgentMessagingConnection({ enrollment, route, onEnroll, onOpenMessages,
176
176
  ]
177
177
  });
178
178
  }
179
- //#endregion
180
179
  export { AgentMessagingConnection as t };
@@ -1,2 +1,2 @@
1
- import { a as SharedMessagingRouteViewState, i as AgentTargetSummary, n as AgentMessagingConnection, r as AgentMessagingConnectionProps, t as AgentEnrollmentViewState } from "./index-ClRHbsoX.js";
1
+ import { a as SharedMessagingRouteViewState, i as AgentTargetSummary, n as AgentMessagingConnection, r as AgentMessagingConnectionProps, t as AgentEnrollmentViewState } from "./index-DLX35YAa.js";
2
2
  export { type AgentEnrollmentViewState, AgentMessagingConnection, type AgentMessagingConnectionProps, type AgentTargetSummary, type SharedMessagingRouteViewState };
@@ -1,2 +1 @@
1
- import { t as AgentMessagingConnection } from "./connections-C5DxYxvz.js";
2
- export { AgentMessagingConnection };
1
+ export { t as AgentMessagingConnection } from "./connections-DymjzHe_.js";
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/connectors/types.d.ts
3
2
  /** One invokable action a connector exposes (the platform's hub tool shape, decoupled from any client). */
4
3
  interface ConnectorAction {
5
4
  path: string;
@@ -21,8 +20,6 @@ interface ConnectorCatalogEntry {
21
20
  triggerCount?: number | null;
22
21
  connected?: boolean;
23
22
  }
24
- //#endregion
25
- //#region src/connectors/action-list.d.ts
26
23
  interface ConnectorActionListProps {
27
24
  actions: ConnectorAction[];
28
25
  /** Connector display title; a leading "<title>: " prefix is stripped from action titles. */
@@ -39,8 +36,6 @@ interface ConnectorActionListProps {
39
36
  * presentational — the host supplies the actions and the assistant hook.
40
37
  */
41
38
  export declare function ConnectorActionList({ actions, providerTitle, onBuildWithAssistant, maybeTruncated, className }: ConnectorActionListProps): import("react").JSX.Element;
42
- //#endregion
43
- //#region src/connectors/catalog-list.d.ts
44
39
  interface ConnectorCatalogListProps {
45
40
  entries: ConnectorCatalogEntry[];
46
41
  /** Resolve the href for a connector's detail surface (rendered on each row's <a>). */
@@ -59,16 +54,12 @@ interface ConnectorCatalogListProps {
59
54
  * data fetching stay with the host — this list is for discovery.
60
55
  */
61
56
  export declare function ConnectorCatalogList({ entries, getConnectorHref, onOpenConnector, renderIcon, onRequestIntegration, className }: ConnectorCatalogListProps): import("react").JSX.Element;
62
- //#endregion
63
- //#region src/connectors/schema-table.d.ts
64
57
  interface SchemaTableProps {
65
58
  schema: unknown;
66
59
  /** Toggle/table caption, e.g. "Input" or "Output". */
67
60
  label: string;
68
61
  }
69
62
  export declare function SchemaTable({ schema, label }: SchemaTableProps): import("react").JSX.Element;
70
- //#endregion
71
- //#region src/connectors/integration-step-yaml.d.ts
72
63
  /**
73
64
  * Mechanical `integration.invoke` step-YAML stub for a hub action, derived
74
65
  * entirely from the action's JSON input schema: the step shape the workflow
@@ -79,5 +70,4 @@ export declare function SchemaTable({ schema, label }: SchemaTableProps): import
79
70
  /** The `- integration.invoke:` step block for an action, ready to paste into a
80
71
  * workflow's `do:` list. */
81
72
  export declare function integrationStepYaml(path: string, inputSchema: unknown): string;
82
- //#endregion
83
73
  export type { ConnectorAction, ConnectorActionListProps, ConnectorCatalogEntry, ConnectorCatalogListProps, SchemaTableProps };
@@ -1,10 +1,10 @@
1
- import { t as cn$1 } from "./utils-DzWbktWG.js";
1
+ import { t as cn$1 } from "./utils-BER_bdgE.js";
2
2
  import { Badge, Button, EmptyState, Input } from "@tangle-network/ui/primitives";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { useEffect, useMemo, useRef, useState } from "react";
5
5
  import { Blocks, Check, ChevronDown, ChevronRight, Copy, Search } from "lucide-react";
6
6
  import { focusField } from "@tangle-network/ui/utils";
7
- //#region src/connectors/integration-step-yaml.ts
7
+ // src/connectors/integration-step-yaml.ts
8
8
  function asSchemaObject(value) {
9
9
  return typeof value === "object" && value !== null ? value : null;
10
10
  }
@@ -74,8 +74,7 @@ function integrationStepYaml(path, inputSchema) {
74
74
  ...fields.length === 0 ? [" input: {}"] : [" input:", ...fields.map(([name, propSchema]) => ` ${yamlKey(name)}: ${placeholderFor(propSchema)}`)]
75
75
  ].join("\n")}\n`;
76
76
  }
77
- //#endregion
78
- //#region src/connectors/schema-table.tsx
77
+ // src/connectors/schema-table.tsx
79
78
  /** Nested rows beyond this depth collapse to their parent's `object` type —
80
79
  * deeper shapes are readable in the raw-JSON view. */
81
80
  const MAX_DEPTH = 3;
@@ -203,8 +202,7 @@ function SchemaTable({ schema, label }) {
203
202
  })
204
203
  })] });
205
204
  }
206
- //#endregion
207
- //#region src/connectors/action-list.tsx
205
+ // src/connectors/action-list.tsx
208
206
  const RISK_BADGES = {
209
207
  read: {
210
208
  label: "read",
@@ -434,8 +432,7 @@ function ConnectorActionList({ actions, providerTitle, onBuildWithAssistant, may
434
432
  })]
435
433
  });
436
434
  }
437
- //#endregion
438
- //#region src/connectors/catalog-list.tsx
435
+ // src/connectors/catalog-list.tsx
439
436
  function optionsFor(entries, pick) {
440
437
  const map = /* @__PURE__ */ new Map();
441
438
  for (const entry of entries) {
@@ -631,5 +628,4 @@ function ConnectorCatalogList({ entries, getConnectorHref, onOpenConnector, rend
631
628
  })]
632
629
  });
633
630
  }
634
- //#endregion
635
631
  export { ConnectorActionList, ConnectorCatalogList, SchemaTable, integrationStepYaml };