@workflow/web 5.0.1 → 5.0.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 (25) hide show
  1. package/build/client/assets/app-Cruj5elv.css +1 -0
  2. package/build/client/assets/{arrow-up-right-CIRm41Zm.js → arrow-up-right-CCSP9ily.js} +1 -1
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-DQ3Je3B9.js → highlighted-body-B3W2YXNL-QxC_q3zz.js} +1 -1
  4. package/build/client/assets/{home-Dl1wTnFS.js → home-D3lvKrxA.js} +27 -25
  5. package/build/client/assets/{loader-circle-CD4z6T9x.js → loader-circle-BV40-ex9.js} +1 -1
  6. package/build/client/assets/{manifest-7d7b25b4.js → manifest-b2d18a63.js} +1 -1
  7. package/build/client/assets/{mermaid-3ZIDBTTL-fKP9rqOT.js → mermaid-3ZIDBTTL-DYqrMrvl.js} +210 -193
  8. package/build/client/assets/root-D51qsCcK.css +1 -0
  9. package/build/client/assets/{root-ESATuWiF.js → root-cIgKV8UA.js} +6 -6
  10. package/build/client/assets/{run-detail-ClvtUP5Y.js → run-detail-xT6TzcQH.js} +4 -4
  11. package/build/client/assets/{workflow-graph-viewer-DWfB9i-1.js → workflow-graph-viewer-DDSZhqQ2.js} +19 -8
  12. package/build/client/assets/{zstd-browser-decoder-Cg5apldO.js → zstd-browser-decoder-BbUG_G04.js} +1 -1
  13. package/build/server/assets/{app-DB1r_8VA.js → app-DtQP9zzZ.js} +882 -573
  14. package/build/server/assets/{highlighted-body-B3W2YXNL-CHWCmTRA.js → highlighted-body-B3W2YXNL-0R2gvzDD.js} +1 -1
  15. package/build/server/assets/{index-B2Fjee_4.js → index-HeFIWQE6.js} +1 -1
  16. package/build/server/assets/{index-CvPUU1wY.js → index-xhDuD_-a.js} +2 -2
  17. package/build/server/assets/{mermaid-3ZIDBTTL-CNO9LDDa.js → mermaid-3ZIDBTTL-Bubx0Bc0.js} +1 -1
  18. package/build/server/assets/{token-C2ZfbDqj.js → token-Dp-Ryz8o.js} +1 -1
  19. package/build/server/assets/{token-util-Df3UC21b.js → token-util-D-AD5yDZ.js} +1 -1
  20. package/build/server/assets/{wrapper-D66LMJdl.js → wrapper-ikjqnRtL.js} +2 -2
  21. package/build/server/assets/{zstd-browser-decoder-DF4c9PWF.js → zstd-browser-decoder-uUOME713.js} +1 -1
  22. package/build/server/index.js +1 -1
  23. package/package.json +8 -8
  24. package/build/client/assets/app-BIKwaF7E.css +0 -1
  25. package/build/client/assets/root-grl25rxS.css +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zstd-browser-decoder-Cg5apldO.js","assets/index-thGVuYbY.js","assets/highlighted-body-B3W2YXNL-DQ3Je3B9.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zstd-browser-decoder-BbUG_G04.js","assets/index-thGVuYbY.js","assets/highlighted-body-B3W2YXNL-QxC_q3zz.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -15724,6 +15724,11 @@ const HookResumeContextSchema = compile(object({
15724
15724
  // Named `runSpecVersion` to distinguish it from the hook's own `specVersion`.
15725
15725
  runSpecVersion: number$3().optional(),
15726
15726
  workflowCoreVersion: string$2().optional(),
15727
+ // Node.js version of the run's creating deployment, mirrored from
15728
+ // `executionContext.nodeVersion`. Decides whether a resume may write zstd
15729
+ // (which needs Node.js >= 22.15) or must use gzip. Absent on runs created
15730
+ // before the field existed and on non-Node runtimes, where writers use gzip.
15731
+ nodeVersion: string$2().optional(),
15727
15732
  traceCarrier: TraceCarrierSchema.optional(),
15728
15733
  // The run's published X25519 public key (base64), mirrored from the run
15729
15734
  // entity. Lets a resume seal (`encp`) its payload to the run without reading
@@ -19323,6 +19328,13 @@ function requireMs() {
19323
19328
  var msExports = requireMs();
19324
19329
  const ms = /* @__PURE__ */ getDefaultExportFromCjs(msExports);
19325
19330
  function parseDurationToDate(param) {
19331
+ const date2 = durationToDate(param);
19332
+ if (Number.isNaN(date2.getTime())) {
19333
+ throw new Error(typeof param === "object" ? "Invalid date: the Date object does not hold a valid time." : `Invalid duration: ${JSON.stringify(param)} ends past the latest time a Date can represent.`);
19334
+ }
19335
+ return date2;
19336
+ }
19337
+ function durationToDate(param) {
19326
19338
  if (typeof param === "string") {
19327
19339
  const durationMs = ms(param);
19328
19340
  if (typeof durationMs !== "number" || durationMs < 0) {
@@ -20928,7 +20940,7 @@ async function hydrateResourceIOAsync(resource, key) {
20928
20940
  return { hydrateDataWithKey: hydrateDataWithKey3, deriveRunPayloadKeys: deriveRunPayloadKeys3 };
20929
20941
  }, true ? void 0 : void 0);
20930
20942
  const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
20931
- const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-Cg5apldO.js");
20943
+ const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-BbUG_G04.js");
20932
20944
  return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
20933
20945
  }, true ? __vite__mapDeps([0,1]) : void 0);
20934
20946
  ensureZstdDecoderRegistered();
@@ -22265,47 +22277,201 @@ function CollapsibleContent({ children: children2, className }) {
22265
22277
  function Collapsible({ label, children: children2, disabled, defaultOpen, onOpenChange }) {
22266
22278
  return jsxRuntimeExports.jsxs(CollapsibleRoot, { disabled, defaultOpen, onOpenChange, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { children: label }), children2 != null && jsxRuntimeExports.jsx(CollapsibleContent, { children: children2 })] });
22267
22279
  }
22268
- const buttonVariants$1 = cva([
22269
- "outline-none m-0 border-0 align-baseline no-underline group/trigger",
22270
- "relative cursor-pointer select-none transform translate-z-0",
22271
- "inline-flex max-w-full items-center justify-center gap-x-1 whitespace-nowrap rounded-md font-medium",
22272
- "!text-gray-100",
22273
- "bg-gray-1000",
22280
+ function setRef(ref, value) {
22281
+ if (typeof ref === "function") {
22282
+ return ref(value);
22283
+ } else if (ref !== null && ref !== void 0) {
22284
+ ref.current = value;
22285
+ }
22286
+ }
22287
+ function composeRefs(...refs) {
22288
+ return (node2) => {
22289
+ let hasCleanup = false;
22290
+ const cleanups = refs.map((ref) => {
22291
+ const cleanup = setRef(ref, node2);
22292
+ if (!hasCleanup && typeof cleanup == "function") {
22293
+ hasCleanup = true;
22294
+ }
22295
+ return cleanup;
22296
+ });
22297
+ if (hasCleanup) {
22298
+ return () => {
22299
+ for (let i = 0; i < cleanups.length; i++) {
22300
+ const cleanup = cleanups[i];
22301
+ if (typeof cleanup == "function") {
22302
+ cleanup();
22303
+ } else {
22304
+ setRef(refs[i], null);
22305
+ }
22306
+ }
22307
+ };
22308
+ }
22309
+ };
22310
+ }
22311
+ function useComposedRefs(...refs) {
22312
+ return reactExports.useCallback(composeRefs(...refs), refs);
22313
+ }
22314
+ var Slot = reactExports.forwardRef((props, forwardedRef) => {
22315
+ const { children: children2, ...slotProps } = props;
22316
+ const childrenArray = reactExports.Children.toArray(children2);
22317
+ const slottable = childrenArray.find(isSlottable);
22318
+ if (slottable) {
22319
+ const newElement = slottable.props.children;
22320
+ const newChildren = childrenArray.map((child) => {
22321
+ if (child === slottable) {
22322
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
22323
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
22324
+ } else {
22325
+ return child;
22326
+ }
22327
+ });
22328
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
22329
+ }
22330
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: children2 });
22331
+ });
22332
+ Slot.displayName = "Slot";
22333
+ var SlotClone = reactExports.forwardRef((props, forwardedRef) => {
22334
+ const { children: children2, ...slotProps } = props;
22335
+ if (reactExports.isValidElement(children2)) {
22336
+ const childrenRef = getElementRef(children2);
22337
+ return reactExports.cloneElement(children2, {
22338
+ ...mergeProps(slotProps, children2.props),
22339
+ // @ts-ignore
22340
+ ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
22341
+ });
22342
+ }
22343
+ return reactExports.Children.count(children2) > 1 ? reactExports.Children.only(null) : null;
22344
+ });
22345
+ SlotClone.displayName = "SlotClone";
22346
+ var Slottable = ({ children: children2 }) => {
22347
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
22348
+ };
22349
+ function isSlottable(child) {
22350
+ return reactExports.isValidElement(child) && child.type === Slottable;
22351
+ }
22352
+ function mergeProps(slotProps, childProps) {
22353
+ const overrideProps = { ...childProps };
22354
+ for (const propName in childProps) {
22355
+ const slotPropValue = slotProps[propName];
22356
+ const childPropValue = childProps[propName];
22357
+ const isHandler = /^on[A-Z]/.test(propName);
22358
+ if (isHandler) {
22359
+ if (slotPropValue && childPropValue) {
22360
+ overrideProps[propName] = (...args) => {
22361
+ childPropValue(...args);
22362
+ slotPropValue(...args);
22363
+ };
22364
+ } else if (slotPropValue) {
22365
+ overrideProps[propName] = slotPropValue;
22366
+ }
22367
+ } else if (propName === "style") {
22368
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
22369
+ } else if (propName === "className") {
22370
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
22371
+ }
22372
+ }
22373
+ return { ...slotProps, ...overrideProps };
22374
+ }
22375
+ function getElementRef(element2) {
22376
+ var _a3, _b2;
22377
+ let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
22378
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
22379
+ if (mayWarn) {
22380
+ return element2.ref;
22381
+ }
22382
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
22383
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
22384
+ if (mayWarn) {
22385
+ return element2.props.ref;
22386
+ }
22387
+ return element2.props.ref || element2.ref;
22388
+ }
22389
+ var Root = Slot;
22390
+ const buttonVariants = cva([
22391
+ "group/trigger relative m-0 inline-flex max-w-full shrink-0 items-center justify-center gap-2",
22392
+ "cursor-pointer select-none whitespace-nowrap border-0 align-baseline font-medium no-underline outline-none",
22393
+ "transform translate-z-0",
22394
+ // Fill, text and border all come from --themed-*; the fallbacks below are
22395
+ // the inverted `default` variant, so it declares no colour tokens at all.
22396
+ "text-[var(--themed-fg,_var(--ds-background-100))]",
22397
+ "bg-[var(--themed-bg,_var(--ds-gray-1000))]",
22398
+ "shadow-[0_0_0_1px_var(--themed-border,_transparent)]",
22399
+ // Every variant declares --themed-hover-bg, so there is a single
22400
+ // `hover:bg-*` utility on the element and a call site that needs its own
22401
+ // hover fill replaces it in both themes at once.
22402
+ "hover:bg-[var(--themed-hover-bg)]",
22274
22403
  "transition-[border-color,background,color,transform,box-shadow] duration-150 ease-in-out",
22275
- // Geist invert hover: literal fallbacks (no token dep, so it resolves in any
22276
- // consuming app), darkened via ancestor theme class without a registered variant.
22277
- "hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_22%))]",
22278
- "[.dark-theme_&]:hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_80%))]",
22279
- "[[data-theme=dark]_&]:hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_80%))]",
22280
- // Geist focus ring as arbitrary properties (no bare `outline`/ambiguous
22281
- // arbitrary-color utilities, which differ between Tailwind v3 and v4).
22282
22404
  "focus-visible:[outline:2px_solid_var(--ds-focus-color)] focus-visible:[outline-offset:2px]",
22283
- // disabled styles
22284
- "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
22285
- "disabled:bg-gray-100 disabled:!text-gray-700 disabled:hover:bg-gray-100",
22286
- "aria-disabled:bg-gray-100 aria-disabled:text-gray-700 aria-disabled:hover:bg-gray-100"
22405
+ "[&_svg]:shrink-0",
22406
+ // Disabled buttons flatten to the gray-100 fill with a gray-400 border.
22407
+ "disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-700 disabled:[--themed-border:_var(--ds-gray-400)] disabled:hover:bg-gray-100",
22408
+ "aria-disabled:cursor-not-allowed aria-disabled:bg-gray-100 aria-disabled:text-gray-700 aria-disabled:[--themed-border:_var(--ds-gray-400)] aria-disabled:hover:bg-gray-100"
22287
22409
  ], {
22288
22410
  variants: {
22289
22411
  variant: {
22290
- default: "",
22291
- secondary: "border border-gray-alpha-400 [--themed-bg:_var(--ds-background-100)] [--themed-fg:_var(--ds-gray-1000)] [--themed-hover-bg:_var(--ds-gray-alpha-200)]",
22292
- ghost: "[--themed-bg:_transparent] [--themed-fg:_var(--ds-gray-1000)] [--themed-hover-bg:_var(--ds-gray-alpha-100)]"
22412
+ // No `--ds-*` token sits one step lighter/darker than the inverted
22413
+ // fill, so its hover colours are literal — and they have to flip with
22414
+ // the theme, because the fill itself does.
22415
+ default: [
22416
+ "[--themed-hover-bg:_hsl(0,_0%,_22%)]",
22417
+ "[.dark_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]",
22418
+ "[.dark-theme_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]",
22419
+ "[[data-theme=dark]_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]"
22420
+ ],
22421
+ secondary: [
22422
+ "[--themed-bg:_var(--ds-background-100)]",
22423
+ "[--themed-fg:_var(--ds-gray-1000)]",
22424
+ "[--themed-border:_var(--ds-gray-400)]",
22425
+ "[--themed-hover-bg:_var(--ds-gray-100)]",
22426
+ "[.dark_&]:[--themed-hover-bg:_var(--ds-gray-200)]",
22427
+ "[.dark-theme_&]:[--themed-hover-bg:_var(--ds-gray-200)]",
22428
+ "[[data-theme=dark]_&]:[--themed-hover-bg:_var(--ds-gray-200)]"
22429
+ ],
22430
+ // Tertiary is the one variant allowed to go borderless when disabled;
22431
+ // it drops to 50% opacity instead.
22432
+ tertiary: [
22433
+ "[--themed-bg:_transparent]",
22434
+ "[--themed-fg:_var(--ds-gray-1000)]",
22435
+ "[--themed-border:_transparent]",
22436
+ // The alpha token already flips with the theme.
22437
+ "[--themed-hover-bg:_var(--ds-gray-alpha-200)]",
22438
+ "disabled:bg-transparent disabled:opacity-50 disabled:shadow-none disabled:hover:bg-transparent",
22439
+ "aria-disabled:bg-transparent aria-disabled:opacity-50 aria-disabled:shadow-none aria-disabled:hover:bg-transparent"
22440
+ ]
22293
22441
  },
22442
+ // Radii are literal rather than `rounded-md`/`rounded-lg`: apps that
22443
+ // still carry a shadcn theme redefine the `--radius-*` scale, and these
22444
+ // corners should not move with it.
22294
22445
  size: {
22295
- default: "h-10 px-4 text-button-14",
22296
- sm: "h-8 px-3 text-button-14",
22297
- xs: "h-6 px-1.5 py-0.5 text-button-12 rounded-[4px]",
22298
- icon: "h-8 w-8"
22446
+ tiny: "h-6 gap-1 rounded-[4px] px-1.5 text-button-12 [&_svg]:size-3",
22447
+ small: "h-8 rounded-[6px] px-3 text-button-14 [&_svg]:size-4",
22448
+ medium: "h-9 rounded-[6px] px-4 text-button-14 [&_svg]:size-4",
22449
+ large: "h-10 rounded-[8px] px-5 text-button-16 [&_svg]:size-4"
22450
+ },
22451
+ // Icon-only buttons: square keeps the size's radius, circle is a pill.
22452
+ shape: {
22453
+ square: "aspect-square px-0",
22454
+ circle: "aspect-square rounded-full px-0"
22299
22455
  }
22300
22456
  },
22301
22457
  defaultVariants: {
22302
22458
  variant: "default",
22303
- size: "default"
22459
+ size: "medium"
22304
22460
  }
22305
22461
  });
22306
- function Button$1({ className, variant, size: size2, type = "button", ...props }) {
22307
- return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
22308
- }
22462
+ const Button = reactExports.forwardRef(({ className, variant, size: size2, shape, asChild = false, type, ...props }, ref) => {
22463
+ const Comp = asChild ? Slot : "button";
22464
+ return jsxRuntimeExports.jsx(Comp, {
22465
+ ref,
22466
+ // `type` only means anything on a real <button>; forwarding it to the
22467
+ // anchor (or whatever else) an `asChild` call site renders would be
22468
+ // invalid HTML.
22469
+ type: asChild ? type : type ?? "button",
22470
+ className: cn$4(buttonVariants({ variant, size: size2, shape, className })),
22471
+ ...props
22472
+ });
22473
+ });
22474
+ Button.displayName = "Button";
22309
22475
  function summarizeArrayBufferView(value) {
22310
22476
  const ta = value;
22311
22477
  const name2 = ta.constructor.name;
@@ -22515,7 +22681,7 @@ const RunClickContext = reactExports.createContext(void 0);
22515
22681
  function EncryptedInlineLabel() {
22516
22682
  const ctx = reactExports.useContext(DecryptClickContext);
22517
22683
  if (ctx) {
22518
- return jsxRuntimeExports.jsxs(Button$1, { size: "xs", className: "align-baseline gap-x-1", disabled: ctx.isDecrypting || ctx.isDecryptDisabled, title: ctx.isDecryptDisabled ? ctx.decryptDisabledReason : void 0, onClick: (e) => {
22684
+ return jsxRuntimeExports.jsxs(Button, { size: "tiny", className: "align-baseline", disabled: ctx.isDecrypting || ctx.isDecryptDisabled, title: ctx.isDecryptDisabled ? ctx.decryptDisabledReason : void 0, onClick: (e) => {
22519
22685
  e.stopPropagation();
22520
22686
  ctx.onDecrypt();
22521
22687
  }, children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] });
@@ -22959,7 +23125,7 @@ const encryptedPlaceholderPreview = `{
22959
23125
  }`;
22960
23126
  function EncryptedDataBlock() {
22961
23127
  const ctx = reactExports.useContext(DecryptClickContext);
22962
- return jsxRuntimeExports.jsxs("div", { className: "relative min-h-20 overflow-hidden rounded-md border border-gray-alpha-400 bg-background-100", children: [jsxRuntimeExports.jsx("pre", { "aria-hidden": "true", className: "pointer-events-none m-0 select-none p-3 font-mono text-label-12 text-gray-900 blur-[4px]", children: encryptedPlaceholderPreview }), jsxRuntimeExports.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: ctx ? jsxRuntimeExports.jsxs(Button$1, { onClick: ctx.onDecrypt, disabled: ctx.isDecrypting || ctx.isDecryptDisabled, title: ctx.isDecryptDisabled ? ctx.decryptDisabledReason : void 0, size: "xs", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] }) : jsxRuntimeExports.jsxs("span", { className: "inline-flex items-center gap-1 rounded border border-gray-alpha-400 bg-gray-100 px-1.5 py-0.5 text-button-12 font-medium text-gray-700", children: [jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), "Encrypted"] }) })] });
23128
+ return jsxRuntimeExports.jsxs("div", { className: "relative min-h-20 overflow-hidden rounded-md border border-gray-alpha-400 bg-background-100", children: [jsxRuntimeExports.jsx("pre", { "aria-hidden": "true", className: "pointer-events-none m-0 select-none p-3 font-mono text-label-12 text-gray-900 blur-[4px]", children: encryptedPlaceholderPreview }), jsxRuntimeExports.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: ctx ? jsxRuntimeExports.jsxs(Button, { onClick: ctx.onDecrypt, disabled: ctx.isDecrypting || ctx.isDecryptDisabled, title: ctx.isDecryptDisabled ? ctx.decryptDisabledReason : void 0, size: "tiny", children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] }) : jsxRuntimeExports.jsxs("span", { className: "inline-flex items-center gap-1 rounded border border-gray-alpha-400 bg-gray-100 px-1.5 py-0.5 text-button-12 font-medium text-gray-700", children: [jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), "Encrypted"] }) })] });
22963
23129
  }
22964
23130
  const serializeForClipboard = (value) => {
22965
23131
  if (typeof value === "string")
@@ -22976,116 +23142,6 @@ const serializeForClipboard = (value) => {
22976
23142
  function CopyableDataBlock({ data }) {
22977
23143
  return jsxRuntimeExports.jsxs("div", { className: "relative overflow-x-auto rounded-md border border-gray-alpha-400 p-3", children: [jsxRuntimeExports.jsx(CopyButton, { copyText: serializeForClipboard(data), ariaLabel: "Copy data", className: "absolute right-2 top-2 z-10 flex h-6 w-6 items-center justify-center rounded-md border border-gray-alpha-400 !bg-background-100 p-0 text-gray-900 transition-transform transition-colors duration-100 hover:bg-gray-200 active:scale-95 active:bg-gray-300" }), jsxRuntimeExports.jsx(DataInspector, { data })] });
22978
23144
  }
22979
- function setRef(ref, value) {
22980
- if (typeof ref === "function") {
22981
- return ref(value);
22982
- } else if (ref !== null && ref !== void 0) {
22983
- ref.current = value;
22984
- }
22985
- }
22986
- function composeRefs(...refs) {
22987
- return (node2) => {
22988
- let hasCleanup = false;
22989
- const cleanups = refs.map((ref) => {
22990
- const cleanup = setRef(ref, node2);
22991
- if (!hasCleanup && typeof cleanup == "function") {
22992
- hasCleanup = true;
22993
- }
22994
- return cleanup;
22995
- });
22996
- if (hasCleanup) {
22997
- return () => {
22998
- for (let i = 0; i < cleanups.length; i++) {
22999
- const cleanup = cleanups[i];
23000
- if (typeof cleanup == "function") {
23001
- cleanup();
23002
- } else {
23003
- setRef(refs[i], null);
23004
- }
23005
- }
23006
- };
23007
- }
23008
- };
23009
- }
23010
- function useComposedRefs(...refs) {
23011
- return reactExports.useCallback(composeRefs(...refs), refs);
23012
- }
23013
- var Slot = reactExports.forwardRef((props, forwardedRef) => {
23014
- const { children: children2, ...slotProps } = props;
23015
- const childrenArray = reactExports.Children.toArray(children2);
23016
- const slottable = childrenArray.find(isSlottable);
23017
- if (slottable) {
23018
- const newElement = slottable.props.children;
23019
- const newChildren = childrenArray.map((child) => {
23020
- if (child === slottable) {
23021
- if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
23022
- return reactExports.isValidElement(newElement) ? newElement.props.children : null;
23023
- } else {
23024
- return child;
23025
- }
23026
- });
23027
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
23028
- }
23029
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: children2 });
23030
- });
23031
- Slot.displayName = "Slot";
23032
- var SlotClone = reactExports.forwardRef((props, forwardedRef) => {
23033
- const { children: children2, ...slotProps } = props;
23034
- if (reactExports.isValidElement(children2)) {
23035
- const childrenRef = getElementRef(children2);
23036
- return reactExports.cloneElement(children2, {
23037
- ...mergeProps(slotProps, children2.props),
23038
- // @ts-ignore
23039
- ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
23040
- });
23041
- }
23042
- return reactExports.Children.count(children2) > 1 ? reactExports.Children.only(null) : null;
23043
- });
23044
- SlotClone.displayName = "SlotClone";
23045
- var Slottable = ({ children: children2 }) => {
23046
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
23047
- };
23048
- function isSlottable(child) {
23049
- return reactExports.isValidElement(child) && child.type === Slottable;
23050
- }
23051
- function mergeProps(slotProps, childProps) {
23052
- const overrideProps = { ...childProps };
23053
- for (const propName in childProps) {
23054
- const slotPropValue = slotProps[propName];
23055
- const childPropValue = childProps[propName];
23056
- const isHandler = /^on[A-Z]/.test(propName);
23057
- if (isHandler) {
23058
- if (slotPropValue && childPropValue) {
23059
- overrideProps[propName] = (...args) => {
23060
- childPropValue(...args);
23061
- slotPropValue(...args);
23062
- };
23063
- } else if (slotPropValue) {
23064
- overrideProps[propName] = slotPropValue;
23065
- }
23066
- } else if (propName === "style") {
23067
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
23068
- } else if (propName === "className") {
23069
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
23070
- }
23071
- }
23072
- return { ...slotProps, ...overrideProps };
23073
- }
23074
- function getElementRef(element2) {
23075
- var _a3, _b2;
23076
- let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
23077
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
23078
- if (mayWarn) {
23079
- return element2.ref;
23080
- }
23081
- getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
23082
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
23083
- if (mayWarn) {
23084
- return element2.props.ref;
23085
- }
23086
- return element2.props.ref || element2.ref;
23087
- }
23088
- var Root = Slot;
23089
23145
  var debounce_1;
23090
23146
  var hasRequiredDebounce;
23091
23147
  function requireDebounce() {
@@ -48594,7 +48650,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
48594
48650
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
48595
48651
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
48596
48652
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
48597
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-DQ3Je3B9.js"), true ? __vite__mapDeps([2,1]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
48653
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-QxC_q3zz.js"), true ? __vite__mapDeps([2,1]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
48598
48654
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
48599
48655
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
48600
48656
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -50632,56 +50688,6 @@ function useServerConfig() {
50632
50688
  }
50633
50689
  return context;
50634
50690
  }
50635
- const DEFAULT_PAGE_SIZE = 10;
50636
- function cn(...inputs) {
50637
- return twMerge(clsx(inputs));
50638
- }
50639
- const LIVE_UPDATE_INTERVAL_MS = 5e3;
50640
- function getPaginationDisplay(currentPage, totalPages, hasMore) {
50641
- if (hasMore) {
50642
- return `Page ${currentPage} of ${totalPages}+`;
50643
- }
50644
- return `Page ${currentPage} of ${totalPages}`;
50645
- }
50646
- const buttonVariants = cva(
50647
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
50648
- {
50649
- variants: {
50650
- variant: {
50651
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
50652
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
50653
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
50654
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
50655
- ghost: "hover:bg-accent hover:text-accent-foreground",
50656
- link: "text-primary underline-offset-4 hover:underline"
50657
- },
50658
- size: {
50659
- default: "h-10 px-4 py-2",
50660
- sm: "h-9 rounded-md px-3",
50661
- lg: "h-11 rounded-md px-8",
50662
- icon: "h-10 w-10"
50663
- }
50664
- },
50665
- defaultVariants: {
50666
- variant: "default",
50667
- size: "default"
50668
- }
50669
- }
50670
- );
50671
- const Button = reactExports.forwardRef(
50672
- ({ className, variant, size: size2, asChild = false, ...props }, ref) => {
50673
- const Comp = asChild ? Slot : "button";
50674
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
50675
- Comp,
50676
- {
50677
- className: cn(buttonVariants({ variant, size: size2, className })),
50678
- ref,
50679
- ...props
50680
- }
50681
- );
50682
- }
50683
- );
50684
- Button.displayName = "Button";
50685
50691
  let decoder;
50686
50692
  try {
50687
50693
  decoder = new TextDecoder();
@@ -53000,6 +53006,17 @@ async function runHealthCheck(worldEnv, options) {
53000
53006
  async function getEncryptionKeyForRun(worldEnv, runId) {
53001
53007
  return rpc("getEncryptionKeyForRun", { worldEnv, runId });
53002
53008
  }
53009
+ const DEFAULT_PAGE_SIZE = 10;
53010
+ function cn(...inputs) {
53011
+ return twMerge(clsx(inputs));
53012
+ }
53013
+ const LIVE_UPDATE_INTERVAL_MS = 5e3;
53014
+ function getPaginationDisplay(currentPage, totalPages, hasMore) {
53015
+ if (hasMore) {
53016
+ return `Page ${currentPage} of ${totalPages}+`;
53017
+ }
53018
+ return `Page ${currentPage} of ${totalPages}`;
53019
+ }
53003
53020
  const mermaid3ZIDBTTL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
53004
53021
  __proto__: null,
53005
53022
  Mermaid: Nt