@workflow/web 5.0.0 → 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-jHPcOZmb.js → arrow-up-right-CCSP9ily.js} +1 -1
  3. package/build/client/assets/{highlighted-body-B3W2YXNL-CBBI0JQ-.js → highlighted-body-B3W2YXNL-QxC_q3zz.js} +1 -1
  4. package/build/client/assets/{home-BcIEUw9E.js → home-D3lvKrxA.js} +27 -25
  5. package/build/client/assets/{loader-circle-HeezuKOU.js → loader-circle-BV40-ex9.js} +1 -1
  6. package/build/client/assets/{manifest-a541ae9e.js → manifest-b2d18a63.js} +1 -1
  7. package/build/client/assets/{mermaid-3ZIDBTTL-ClcCzUqi.js → mermaid-3ZIDBTTL-DYqrMrvl.js} +283 -193
  8. package/build/client/assets/root-D51qsCcK.css +1 -0
  9. package/build/client/assets/{root-DLS5V7HU.js → root-cIgKV8UA.js} +6 -6
  10. package/build/client/assets/{run-detail-DWoMKBqC.js → run-detail-xT6TzcQH.js} +4 -4
  11. package/build/client/assets/{workflow-graph-viewer-syfKq6DB.js → workflow-graph-viewer-DDSZhqQ2.js} +19 -8
  12. package/build/client/assets/{zstd-browser-decoder-D2p6f8lN.js → zstd-browser-decoder-BbUG_G04.js} +1 -1
  13. package/build/server/assets/{app-CLF3fhv7.js → app-DtQP9zzZ.js} +1922 -831
  14. package/build/server/assets/{highlighted-body-B3W2YXNL-D21NaJQ0.js → highlighted-body-B3W2YXNL-0R2gvzDD.js} +1 -1
  15. package/build/server/assets/{index-DnTW8Yiv.js → index-HeFIWQE6.js} +1 -1
  16. package/build/server/assets/{index-y9xp70jn.js → index-xhDuD_-a.js} +63 -60
  17. package/build/server/assets/{mermaid-3ZIDBTTL-DlUUmZjL.js → mermaid-3ZIDBTTL-Bubx0Bc0.js} +1 -1
  18. package/build/server/assets/{token-DXiZgST4.js → token-Dp-Ryz8o.js} +1 -1
  19. package/build/server/assets/{token-util-BvEnPXwK.js → token-util-D-AD5yDZ.js} +1 -1
  20. package/build/server/assets/{wrapper-BsMfBV09.js → wrapper-ikjqnRtL.js} +9 -9
  21. package/build/server/assets/{zstd-browser-decoder-d2YJZBik.js → zstd-browser-decoder-uUOME713.js} +1 -1
  22. package/build/server/index.js +2 -2
  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-D2p6f8lN.js","assets/index-thGVuYbY.js","assets/highlighted-body-B3W2YXNL-CBBI0JQ-.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
@@ -15814,6 +15819,79 @@ compile(object({
15814
15819
  code: string$2().optional()
15815
15820
  // Populated with RunErrorCode values (USER_ERROR, RUNTIME_ERROR, etc.) for run_failed events
15816
15821
  }));
15822
+ object({
15823
+ /**
15824
+ * Pagination cursor for events.list() — the snapshot was taken at
15825
+ * this point in the event log. On restore, only events AFTER this
15826
+ * cursor need to be fetched.
15827
+ */
15828
+ eventsCursor: string$2().nullable(),
15829
+ /** Timestamp when the snapshot was created */
15830
+ createdAt: date(),
15831
+ /**
15832
+ * Number of events the run had processed when the snapshot was taken.
15833
+ * Restores see only the delta after `eventsCursor`, so guards that need
15834
+ * the TOTAL log size (the server-supplied max-events ceiling) add this
15835
+ * to the delta. Optional for snapshots written before the field existed
15836
+ * (treated as 0 — the ceiling degrades to delta-only for those, exactly
15837
+ * the pre-field behavior).
15838
+ */
15839
+ eventCount: number$3().int().nonnegative().optional(),
15840
+ /**
15841
+ * Number of draws the run's seeded PRNG had consumed when the snapshot
15842
+ * was taken. On restore the runtime re-seeds from the run's BASE seed
15843
+ * and fast-forwards this many draws, so correlation-id generation
15844
+ * continues at the exact position full replay would have reached —
15845
+ * keeping ids identical across snapshot generations AND identical to a
15846
+ * no-snapshot run (which is what makes concurrent invocations restored
15847
+ * from different snapshots of the same run still collide on the world's
15848
+ * per-(runId, correlationId) dedup).
15849
+ */
15850
+ rngDraws: number$3().int().nonnegative().optional(),
15851
+ /**
15852
+ * Snapshot-portable token of the engine's host-serde capture root: the
15853
+ * container of pristine intrinsics/samples/symbols captured before any
15854
+ * user code ran, whose box lives inside the snapshot's memory image. A
15855
+ * restore re-adopts it by this token so serde initialization executes
15856
+ * no guest code after user code has run. Required to restore (format
15857
+ * version >= 2); snapshots without it are treated as a miss.
15858
+ */
15859
+ serdeRootPtr: number$3().int().optional(),
15860
+ /**
15861
+ * The monotonic correlation-id ULID factory's last output when the
15862
+ * snapshot was taken (undefined if the run had drawn none). The
15863
+ * factory's state lives host-side and does not survive into the memory
15864
+ * image; on restore the runtime continues the sequence from this value
15865
+ * (same-timestamp base32 increment), so a restored invocation emits
15866
+ * the exact ids a full replay would — keeping concurrent invocations
15867
+ * of the same run dedupable via per-(runId, correlationId) uniqueness.
15868
+ */
15869
+ lastUlid: string$2().optional(),
15870
+ /**
15871
+ * Exact engine build (quickjs-wasi package version) that captured the
15872
+ * heap image. The image's own QJSS header is identical across builds,
15873
+ * so restoring under a different build would pass deserialization and
15874
+ * execute as undefined behavior in the interpreter — a real hazard
15875
+ * during a rolling deploy that bumps quickjs-wasi, when live snapshots
15876
+ * from the old build meet instances running the new one. Readers MUST
15877
+ * treat a mismatch (or absence) as a clean miss.
15878
+ */
15879
+ engineVersion: string$2().optional(),
15880
+ /**
15881
+ * The deterministic replay clock's high-water mark (ms since epoch) at
15882
+ * capture. The clock lives host-side; without this a restored VM's
15883
+ * `Date.now()` regresses to the run-creation time until the first
15884
+ * delta event advances it, so restores initialize the clock to
15885
+ * `max(derived, clockMs)`.
15886
+ */
15887
+ clockMs: number$3().optional(),
15888
+ /**
15889
+ * Snapshot format tag. A reader that doesn't recognize the version
15890
+ * treats the snapshot as a clean miss (full replay) instead of handing
15891
+ * an incompatible heap to the WASM engine.
15892
+ */
15893
+ formatVersion: number$3().int().optional()
15894
+ });
15817
15895
  compile(string$2().ulid());
15818
15896
  compile(templateLiteral(["wrun_", ulid()]));
15819
15897
  const ve$2 = 0, At$1 = 1, Jt$1 = 2, zn = 4;
@@ -19250,6 +19328,13 @@ function requireMs() {
19250
19328
  var msExports = requireMs();
19251
19329
  const ms = /* @__PURE__ */ getDefaultExportFromCjs(msExports);
19252
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) {
19253
19338
  if (typeof param === "string") {
19254
19339
  const durationMs = ms(param);
19255
19340
  if (typeof durationMs !== "number" || durationMs < 0) {
@@ -20855,7 +20940,7 @@ async function hydrateResourceIOAsync(resource, key) {
20855
20940
  return { hydrateDataWithKey: hydrateDataWithKey3, deriveRunPayloadKeys: deriveRunPayloadKeys3 };
20856
20941
  }, true ? void 0 : void 0);
20857
20942
  const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
20858
- const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-D2p6f8lN.js");
20943
+ const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-BbUG_G04.js");
20859
20944
  return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
20860
20945
  }, true ? __vite__mapDeps([0,1]) : void 0);
20861
20946
  ensureZstdDecoderRegistered();
@@ -22192,47 +22277,201 @@ function CollapsibleContent({ children: children2, className }) {
22192
22277
  function Collapsible({ label, children: children2, disabled, defaultOpen, onOpenChange }) {
22193
22278
  return jsxRuntimeExports.jsxs(CollapsibleRoot, { disabled, defaultOpen, onOpenChange, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { children: label }), children2 != null && jsxRuntimeExports.jsx(CollapsibleContent, { children: children2 })] });
22194
22279
  }
22195
- const buttonVariants$1 = cva([
22196
- "outline-none m-0 border-0 align-baseline no-underline group/trigger",
22197
- "relative cursor-pointer select-none transform translate-z-0",
22198
- "inline-flex max-w-full items-center justify-center gap-x-1 whitespace-nowrap rounded-md font-medium",
22199
- "!text-gray-100",
22200
- "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)]",
22201
22403
  "transition-[border-color,background,color,transform,box-shadow] duration-150 ease-in-out",
22202
- // Geist invert hover: literal fallbacks (no token dep, so it resolves in any
22203
- // consuming app), darkened via ancestor theme class without a registered variant.
22204
- "hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_22%))]",
22205
- "[.dark-theme_&]:hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_80%))]",
22206
- "[[data-theme=dark]_&]:hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_80%))]",
22207
- // Geist focus ring as arbitrary properties (no bare `outline`/ambiguous
22208
- // arbitrary-color utilities, which differ between Tailwind v3 and v4).
22209
22404
  "focus-visible:[outline:2px_solid_var(--ds-focus-color)] focus-visible:[outline-offset:2px]",
22210
- // disabled styles
22211
- "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
22212
- "disabled:bg-gray-100 disabled:!text-gray-700 disabled:hover:bg-gray-100",
22213
- "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"
22214
22409
  ], {
22215
22410
  variants: {
22216
22411
  variant: {
22217
- default: "",
22218
- 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)]",
22219
- 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
+ ]
22220
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.
22221
22445
  size: {
22222
- default: "h-10 px-4 text-button-14",
22223
- sm: "h-8 px-3 text-button-14",
22224
- xs: "h-6 px-1.5 py-0.5 text-button-12 rounded-[4px]",
22225
- 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"
22226
22455
  }
22227
22456
  },
22228
22457
  defaultVariants: {
22229
22458
  variant: "default",
22230
- size: "default"
22459
+ size: "medium"
22231
22460
  }
22232
22461
  });
22233
- function Button$1({ className, variant, size: size2, type = "button", ...props }) {
22234
- return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
22235
- }
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";
22236
22475
  function summarizeArrayBufferView(value) {
22237
22476
  const ta = value;
22238
22477
  const name2 = ta.constructor.name;
@@ -22442,7 +22681,7 @@ const RunClickContext = reactExports.createContext(void 0);
22442
22681
  function EncryptedInlineLabel() {
22443
22682
  const ctx = reactExports.useContext(DecryptClickContext);
22444
22683
  if (ctx) {
22445
- 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) => {
22446
22685
  e.stopPropagation();
22447
22686
  ctx.onDecrypt();
22448
22687
  }, children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] });
@@ -22886,7 +23125,7 @@ const encryptedPlaceholderPreview = `{
22886
23125
  }`;
22887
23126
  function EncryptedDataBlock() {
22888
23127
  const ctx = reactExports.useContext(DecryptClickContext);
22889
- 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"] }) })] });
22890
23129
  }
22891
23130
  const serializeForClipboard = (value) => {
22892
23131
  if (typeof value === "string")
@@ -22903,116 +23142,6 @@ const serializeForClipboard = (value) => {
22903
23142
  function CopyableDataBlock({ data }) {
22904
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 })] });
22905
23144
  }
22906
- function setRef(ref, value) {
22907
- if (typeof ref === "function") {
22908
- return ref(value);
22909
- } else if (ref !== null && ref !== void 0) {
22910
- ref.current = value;
22911
- }
22912
- }
22913
- function composeRefs(...refs) {
22914
- return (node2) => {
22915
- let hasCleanup = false;
22916
- const cleanups = refs.map((ref) => {
22917
- const cleanup = setRef(ref, node2);
22918
- if (!hasCleanup && typeof cleanup == "function") {
22919
- hasCleanup = true;
22920
- }
22921
- return cleanup;
22922
- });
22923
- if (hasCleanup) {
22924
- return () => {
22925
- for (let i = 0; i < cleanups.length; i++) {
22926
- const cleanup = cleanups[i];
22927
- if (typeof cleanup == "function") {
22928
- cleanup();
22929
- } else {
22930
- setRef(refs[i], null);
22931
- }
22932
- }
22933
- };
22934
- }
22935
- };
22936
- }
22937
- function useComposedRefs(...refs) {
22938
- return reactExports.useCallback(composeRefs(...refs), refs);
22939
- }
22940
- var Slot = reactExports.forwardRef((props, forwardedRef) => {
22941
- const { children: children2, ...slotProps } = props;
22942
- const childrenArray = reactExports.Children.toArray(children2);
22943
- const slottable = childrenArray.find(isSlottable);
22944
- if (slottable) {
22945
- const newElement = slottable.props.children;
22946
- const newChildren = childrenArray.map((child) => {
22947
- if (child === slottable) {
22948
- if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
22949
- return reactExports.isValidElement(newElement) ? newElement.props.children : null;
22950
- } else {
22951
- return child;
22952
- }
22953
- });
22954
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
22955
- }
22956
- return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: children2 });
22957
- });
22958
- Slot.displayName = "Slot";
22959
- var SlotClone = reactExports.forwardRef((props, forwardedRef) => {
22960
- const { children: children2, ...slotProps } = props;
22961
- if (reactExports.isValidElement(children2)) {
22962
- const childrenRef = getElementRef(children2);
22963
- return reactExports.cloneElement(children2, {
22964
- ...mergeProps(slotProps, children2.props),
22965
- // @ts-ignore
22966
- ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
22967
- });
22968
- }
22969
- return reactExports.Children.count(children2) > 1 ? reactExports.Children.only(null) : null;
22970
- });
22971
- SlotClone.displayName = "SlotClone";
22972
- var Slottable = ({ children: children2 }) => {
22973
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
22974
- };
22975
- function isSlottable(child) {
22976
- return reactExports.isValidElement(child) && child.type === Slottable;
22977
- }
22978
- function mergeProps(slotProps, childProps) {
22979
- const overrideProps = { ...childProps };
22980
- for (const propName in childProps) {
22981
- const slotPropValue = slotProps[propName];
22982
- const childPropValue = childProps[propName];
22983
- const isHandler = /^on[A-Z]/.test(propName);
22984
- if (isHandler) {
22985
- if (slotPropValue && childPropValue) {
22986
- overrideProps[propName] = (...args) => {
22987
- childPropValue(...args);
22988
- slotPropValue(...args);
22989
- };
22990
- } else if (slotPropValue) {
22991
- overrideProps[propName] = slotPropValue;
22992
- }
22993
- } else if (propName === "style") {
22994
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
22995
- } else if (propName === "className") {
22996
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
22997
- }
22998
- }
22999
- return { ...slotProps, ...overrideProps };
23000
- }
23001
- function getElementRef(element2) {
23002
- var _a3, _b2;
23003
- let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
23004
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
23005
- if (mayWarn) {
23006
- return element2.ref;
23007
- }
23008
- getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
23009
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
23010
- if (mayWarn) {
23011
- return element2.props.ref;
23012
- }
23013
- return element2.props.ref || element2.ref;
23014
- }
23015
- var Root = Slot;
23016
23145
  var debounce_1;
23017
23146
  var hasRequiredDebounce;
23018
23147
  function requireDebounce() {
@@ -48521,7 +48650,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
48521
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 });
48522
48651
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
48523
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 }) });
48524
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-CBBI0JQ-.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 }) => {
48525
48654
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
48526
48655
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
48527
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 }) })] }) });
@@ -50559,56 +50688,6 @@ function useServerConfig() {
50559
50688
  }
50560
50689
  return context;
50561
50690
  }
50562
- const DEFAULT_PAGE_SIZE = 10;
50563
- function cn(...inputs) {
50564
- return twMerge(clsx(inputs));
50565
- }
50566
- const LIVE_UPDATE_INTERVAL_MS = 5e3;
50567
- function getPaginationDisplay(currentPage, totalPages, hasMore) {
50568
- if (hasMore) {
50569
- return `Page ${currentPage} of ${totalPages}+`;
50570
- }
50571
- return `Page ${currentPage} of ${totalPages}`;
50572
- }
50573
- const buttonVariants = cva(
50574
- "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",
50575
- {
50576
- variants: {
50577
- variant: {
50578
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
50579
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
50580
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
50581
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
50582
- ghost: "hover:bg-accent hover:text-accent-foreground",
50583
- link: "text-primary underline-offset-4 hover:underline"
50584
- },
50585
- size: {
50586
- default: "h-10 px-4 py-2",
50587
- sm: "h-9 rounded-md px-3",
50588
- lg: "h-11 rounded-md px-8",
50589
- icon: "h-10 w-10"
50590
- }
50591
- },
50592
- defaultVariants: {
50593
- variant: "default",
50594
- size: "default"
50595
- }
50596
- }
50597
- );
50598
- const Button = reactExports.forwardRef(
50599
- ({ className, variant, size: size2, asChild = false, ...props }, ref) => {
50600
- const Comp = asChild ? Slot : "button";
50601
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
50602
- Comp,
50603
- {
50604
- className: cn(buttonVariants({ variant, size: size2, className })),
50605
- ref,
50606
- ...props
50607
- }
50608
- );
50609
- }
50610
- );
50611
- Button.displayName = "Button";
50612
50691
  let decoder;
50613
50692
  try {
50614
50693
  decoder = new TextDecoder();
@@ -52927,6 +53006,17 @@ async function runHealthCheck(worldEnv, options) {
52927
53006
  async function getEncryptionKeyForRun(worldEnv, runId) {
52928
53007
  return rpc("getEncryptionKeyForRun", { worldEnv, runId });
52929
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
+ }
52930
53020
  const mermaid3ZIDBTTL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52931
53021
  __proto__: null,
52932
53022
  Mermaid: Nt