@workflow/web 5.0.1 → 5.0.3

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 (27) 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-ychoyK1y.js} +1 -1
  3. package/build/client/assets/{entry.client-DmlDFlyx.js → entry.client-GbcnkvKL.js} +7 -45
  4. package/build/client/assets/{highlighted-body-B3W2YXNL-DQ3Je3B9.js → highlighted-body-B3W2YXNL-C53ps5L5.js} +2 -2
  5. package/build/client/assets/{home-Dl1wTnFS.js → home-C3xDSPLC.js} +28 -26
  6. package/build/client/assets/{index-thGVuYbY.js → index-CRmVVsbP.js} +769 -330
  7. package/build/client/assets/{loader-circle-CD4z6T9x.js → loader-circle-BaPqCMKN.js} +1 -1
  8. package/build/client/assets/{manifest-7d7b25b4.js → manifest-4e8be598.js} +1 -1
  9. package/build/client/assets/{mermaid-3ZIDBTTL-fKP9rqOT.js → mermaid-3ZIDBTTL-COEB4Hc6.js} +269 -243
  10. package/build/client/assets/root-D51qsCcK.css +1 -0
  11. package/build/client/assets/{root-ESATuWiF.js → root-DixDz_si.js} +7 -7
  12. package/build/client/assets/{run-detail-ClvtUP5Y.js → run-detail-CEQc0q3W.js} +5 -5
  13. package/build/client/assets/{workflow-graph-viewer-DWfB9i-1.js → workflow-graph-viewer-B9ovZj-2.js} +20 -9
  14. package/build/client/assets/{zstd-browser-decoder-Cg5apldO.js → zstd-browser-decoder-D9w7uXpQ.js} +2 -2
  15. package/build/server/assets/{app-DB1r_8VA.js → app-C8tzXy8V.js} +28751 -27924
  16. package/build/server/assets/{highlighted-body-B3W2YXNL-CHWCmTRA.js → highlighted-body-B3W2YXNL-B7OeHZjS.js} +6 -6
  17. package/build/server/assets/{index-CvPUU1wY.js → index-DB6rD0OI.js} +7 -7
  18. package/build/server/assets/{index-B2Fjee_4.js → index-oHATtR_7.js} +1 -1
  19. package/build/server/assets/{mermaid-3ZIDBTTL-CNO9LDDa.js → mermaid-3ZIDBTTL-h6E4ztpF.js} +6 -6
  20. package/build/server/assets/{token-util-Df3UC21b.js → token-util-BIJWXlXW.js} +1 -1
  21. package/build/server/assets/{token-C2ZfbDqj.js → token-zIvY_X5M.js} +1 -1
  22. package/build/server/assets/{wrapper-D66LMJdl.js → wrapper-DiM8LB2q.js} +7 -7
  23. package/build/server/assets/{zstd-browser-decoder-DF4c9PWF.js → zstd-browser-decoder-B2bHyQlS.js} +6 -6
  24. package/build/server/index.js +6 -6
  25. package/package.json +11 -11
  26. package/build/client/assets/app-BIKwaF7E.css +0 -1
  27. package/build/client/assets/root-grl25rxS.css +0 -1
@@ -1,9 +1,9 @@
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-D9w7uXpQ.js","assets/index-CRmVVsbP.js","assets/highlighted-body-B3W2YXNL-C53ps5L5.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);
5
5
  var _a2, _b;
6
- import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, H as React, D as ReactDOM, R as ReactExports, I as getDefaultExportFromCjs } from "./index-thGVuYbY.js";
6
+ import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, G as React, D as ReactDOM, R as ReactExports, H as getDefaultExportFromCjs } from "./index-CRmVVsbP.js";
7
7
  function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
8
8
  return function handleEvent(event) {
9
9
  originalEventHandler == null ? void 0 : originalEventHandler(event);
@@ -14716,13 +14716,13 @@ const EventTypeSchema = compile(_enum([
14716
14716
  // meaning; replay skips it (see EventsConsumer). Never user-creatable.
14717
14717
  "noop"
14718
14718
  ]));
14719
- const RunEventTypeSchema = compile(EventTypeSchema.extract([
14719
+ const RunEventTypeSchema = EventTypeSchema.extract([
14720
14720
  "run_created",
14721
14721
  "run_started",
14722
14722
  "run_completed",
14723
14723
  "run_failed",
14724
14724
  "run_cancelled"
14725
- ]));
14725
+ ]);
14726
14726
  RunEventTypeSchema.options;
14727
14727
  const TerminalRunEventTypeSchema = compile(EventTypeSchema.extract([
14728
14728
  "run_completed",
@@ -14730,43 +14730,52 @@ const TerminalRunEventTypeSchema = compile(EventTypeSchema.extract([
14730
14730
  "run_cancelled"
14731
14731
  ]));
14732
14732
  TerminalRunEventTypeSchema.options;
14733
- const StepEventTypeSchema = compile(EventTypeSchema.extract([
14733
+ const StepEventTypeSchema = EventTypeSchema.extract([
14734
14734
  "step_created",
14735
14735
  "step_completed",
14736
14736
  "step_failed",
14737
14737
  "step_retrying",
14738
14738
  "step_started"
14739
- ]));
14739
+ ]);
14740
14740
  const STEP_EVENT_TYPES = StepEventTypeSchema.options;
14741
14741
  function isStepEventType(eventType) {
14742
14742
  return STEP_EVENT_TYPES.includes(eventType);
14743
14743
  }
14744
- const TerminalStepEventTypeSchema = compile(EventTypeSchema.extract(["step_completed", "step_failed"]));
14744
+ const TerminalStepEventTypeSchema = EventTypeSchema.extract([
14745
+ "step_completed",
14746
+ "step_failed"
14747
+ ]);
14745
14748
  const TERMINAL_STEP_EVENT_TYPES = TerminalStepEventTypeSchema.options;
14746
14749
  function isTerminalStepEventType(eventType) {
14747
14750
  return TERMINAL_STEP_EVENT_TYPES.includes(eventType);
14748
14751
  }
14749
- const HookLifecycleEventTypeSchema = compile(EventTypeSchema.extract([
14752
+ const HookLifecycleEventTypeSchema = EventTypeSchema.extract([
14750
14753
  "hook_created",
14751
14754
  "hook_received",
14752
14755
  "hook_disposed"
14753
- ]));
14756
+ ]);
14754
14757
  const HOOK_LIFECYCLE_EVENT_TYPES = HookLifecycleEventTypeSchema.options;
14755
14758
  function isHookLifecycleEventType(eventType) {
14756
14759
  return HOOK_LIFECYCLE_EVENT_TYPES.includes(eventType);
14757
14760
  }
14758
- const HookEventRequiringExistenceTypeSchema = compile(EventTypeSchema.extract(["hook_disposed", "hook_received"]));
14761
+ const HookEventRequiringExistenceTypeSchema = EventTypeSchema.extract([
14762
+ "hook_disposed",
14763
+ "hook_received"
14764
+ ]);
14759
14765
  HookEventRequiringExistenceTypeSchema.options;
14760
- const WaitEventTypeSchema = compile(EventTypeSchema.extract(["wait_created", "wait_completed"]));
14766
+ const WaitEventTypeSchema = EventTypeSchema.extract([
14767
+ "wait_created",
14768
+ "wait_completed"
14769
+ ]);
14761
14770
  const WAIT_EVENT_TYPES = WaitEventTypeSchema.options;
14762
14771
  function isWaitEventType(eventType) {
14763
14772
  return WAIT_EVENT_TYPES.includes(eventType);
14764
14773
  }
14765
- const ChildEntityCreationEventTypeSchema = compile(EventTypeSchema.extract([
14774
+ const ChildEntityCreationEventTypeSchema = EventTypeSchema.extract([
14766
14775
  "step_created",
14767
14776
  "hook_created",
14768
14777
  "wait_created"
14769
- ]));
14778
+ ]);
14770
14779
  ChildEntityCreationEventTypeSchema.options;
14771
14780
  const BaseEventSchema = compile(object({
14772
14781
  eventType: EventTypeSchema,
@@ -14804,7 +14813,7 @@ const stepLatencyTelemetryFields = {
14804
14813
  // 'optimisticStart'), so latency metrics can be segmented by them.
14805
14814
  optimizations: array(string$2()).optional()
14806
14815
  };
14807
- const StepCompletedEventSchema = compile(BaseEventSchema.extend({
14816
+ const StepCompletedEventSchema = BaseEventSchema.extend({
14808
14817
  eventType: literal("step_completed"),
14809
14818
  correlationId: string$2(),
14810
14819
  eventData: object({
@@ -14816,8 +14825,8 @@ const StepCompletedEventSchema = compile(BaseEventSchema.extend({
14816
14825
  result: SerializedDataSchema,
14817
14826
  ...stepLatencyTelemetryFields
14818
14827
  })
14819
- }));
14820
- const StepFailedEventSchema = compile(BaseEventSchema.extend({
14828
+ });
14829
+ const StepFailedEventSchema = BaseEventSchema.extend({
14821
14830
  eventType: literal("step_failed"),
14822
14831
  correlationId: string$2(),
14823
14832
  eventData: object({
@@ -14827,8 +14836,8 @@ const StepFailedEventSchema = compile(BaseEventSchema.extend({
14827
14836
  error: SerializedDataSchema,
14828
14837
  ...stepLatencyTelemetryFields
14829
14838
  })
14830
- }));
14831
- const StepRetryingEventSchema = compile(BaseEventSchema.extend({
14839
+ });
14840
+ const StepRetryingEventSchema = BaseEventSchema.extend({
14832
14841
  eventType: literal("step_retrying"),
14833
14842
  correlationId: string$2(),
14834
14843
  eventData: object({
@@ -14838,8 +14847,8 @@ const StepRetryingEventSchema = compile(BaseEventSchema.extend({
14838
14847
  error: SerializedDataSchema,
14839
14848
  retryAfter: date().optional()
14840
14849
  })
14841
- }));
14842
- const StepStartedEventSchema = compile(BaseEventSchema.extend({
14850
+ });
14851
+ const StepStartedEventSchema = BaseEventSchema.extend({
14843
14852
  eventType: literal("step_started"),
14844
14853
  correlationId: string$2(),
14845
14854
  eventData: object({
@@ -14865,8 +14874,8 @@ const StepStartedEventSchema = compile(BaseEventSchema.extend({
14865
14874
  // one message (see the Queue.createQueueHandler meta contract).
14866
14875
  ownerMessageId: string$2().optional()
14867
14876
  }).optional()
14868
- }));
14869
- const StepCreatedEventSchema = compile(BaseEventSchema.extend({
14877
+ });
14878
+ const StepCreatedEventSchema = BaseEventSchema.extend({
14870
14879
  eventType: literal("step_created"),
14871
14880
  correlationId: string$2(),
14872
14881
  eventData: object({
@@ -14874,7 +14883,7 @@ const StepCreatedEventSchema = compile(BaseEventSchema.extend({
14874
14883
  workflowName: string$2().optional(),
14875
14884
  input: SerializedDataSchema
14876
14885
  })
14877
- }));
14886
+ });
14878
14887
  const HookCreatedEventSchema = compile(BaseEventSchema.extend({
14879
14888
  eventType: literal("hook_created"),
14880
14889
  correlationId: string$2(),
@@ -14909,15 +14918,15 @@ const HookCreatedEventSchema = compile(BaseEventSchema.extend({
14909
14918
  }).optional()
14910
14919
  })
14911
14920
  }));
14912
- const HookReceivedEventSchema = compile(BaseEventSchema.extend({
14921
+ const HookReceivedEventSchema = BaseEventSchema.extend({
14913
14922
  eventType: literal("hook_received"),
14914
14923
  correlationId: string$2(),
14915
14924
  eventData: object({
14916
14925
  token: string$2().optional(),
14917
14926
  payload: SerializedDataSchema
14918
14927
  })
14919
- }));
14920
- const HookDisposedEventSchema = compile(BaseEventSchema.extend({
14928
+ });
14929
+ const HookDisposedEventSchema = BaseEventSchema.extend({
14921
14930
  eventType: literal("hook_disposed"),
14922
14931
  correlationId: string$2(),
14923
14932
  eventData: object({
@@ -14930,8 +14939,8 @@ const HookDisposedEventSchema = compile(BaseEventSchema.extend({
14930
14939
  */
14931
14940
  forceClaimedBy: object({ runId: string$2(), hookId: string$2() }).optional()
14932
14941
  }).optional()
14933
- }));
14934
- const HookConflictEventSchema = compile(BaseEventSchema.extend({
14942
+ });
14943
+ const HookConflictEventSchema = BaseEventSchema.extend({
14935
14944
  eventType: literal("hook_conflict"),
14936
14945
  correlationId: string$2(),
14937
14946
  eventData: object({
@@ -14951,28 +14960,28 @@ const HookConflictEventSchema = compile(BaseEventSchema.extend({
14951
14960
  */
14952
14961
  forceRefusedReason: literal("victim-spec-version").optional()
14953
14962
  })
14954
- }));
14955
- const NoopEventSchema = compile(BaseEventSchema.extend({
14963
+ });
14964
+ const NoopEventSchema = BaseEventSchema.extend({
14956
14965
  eventType: literal("noop"),
14957
14966
  eventData: object({
14958
14967
  sealed: boolean$2().optional()
14959
14968
  }).passthrough().optional()
14960
- }));
14961
- const WaitCreatedEventSchema = compile(BaseEventSchema.extend({
14969
+ });
14970
+ const WaitCreatedEventSchema = BaseEventSchema.extend({
14962
14971
  eventType: literal("wait_created"),
14963
14972
  correlationId: string$2(),
14964
14973
  eventData: object({
14965
14974
  resumeAt: date()
14966
14975
  })
14967
- }));
14968
- const WaitCompletedEventSchema = compile(BaseEventSchema.extend({
14976
+ });
14977
+ const WaitCompletedEventSchema = BaseEventSchema.extend({
14969
14978
  eventType: literal("wait_completed"),
14970
14979
  correlationId: string$2(),
14971
14980
  eventData: object({
14972
14981
  resumeAt: date().optional()
14973
14982
  }).optional()
14974
- }));
14975
- const AttributeWriterSchema = compile(discriminatedUnion("type", [
14983
+ });
14984
+ const AttributeWriterSchema = discriminatedUnion("type", [
14976
14985
  object({
14977
14986
  type: literal("workflow")
14978
14987
  }),
@@ -14981,8 +14990,8 @@ const AttributeWriterSchema = compile(discriminatedUnion("type", [
14981
14990
  stepId: string$2(),
14982
14991
  attempt: number$3()
14983
14992
  })
14984
- ]));
14985
- const AttrSetEventSchema = compile(BaseEventSchema.extend({
14993
+ ]);
14994
+ const AttrSetEventSchema = BaseEventSchema.extend({
14986
14995
  eventType: literal("attr_set"),
14987
14996
  correlationId: string$2().optional(),
14988
14997
  eventData: object({
@@ -14990,8 +14999,8 @@ const AttrSetEventSchema = compile(BaseEventSchema.extend({
14990
14999
  writer: AttributeWriterSchema,
14991
15000
  allowReservedAttributes: literal(true).optional()
14992
15001
  })
14993
- }));
14994
- const RunCreatedEventSchema = compile(BaseEventSchema.extend({
15002
+ });
15003
+ const RunCreatedEventSchema = BaseEventSchema.extend({
14995
15004
  eventType: literal("run_created"),
14996
15005
  eventData: object({
14997
15006
  deploymentId: string$2(),
@@ -15022,8 +15031,8 @@ const RunCreatedEventSchema = compile(BaseEventSchema.extend({
15022
15031
  path: ["dynamicWorkflowCodeRef"],
15023
15032
  message: "dynamicWorkflowCode and dynamicWorkflowCodeRef are mutually exclusive"
15024
15033
  })
15025
- }));
15026
- const RunStartedEventSchema = compile(BaseEventSchema.extend({
15034
+ });
15035
+ const RunStartedEventSchema = BaseEventSchema.extend({
15027
15036
  eventType: literal("run_started"),
15028
15037
  eventData: object({
15029
15038
  input: SerializedDataSchema.optional(),
@@ -15046,14 +15055,14 @@ const RunStartedEventSchema = compile(BaseEventSchema.extend({
15046
15055
  path: ["dynamicWorkflowCodeRef"],
15047
15056
  message: "dynamicWorkflowCode and dynamicWorkflowCodeRef are mutually exclusive"
15048
15057
  }).optional()
15049
- }));
15050
- const RunCompletedEventSchema = compile(BaseEventSchema.extend({
15058
+ });
15059
+ const RunCompletedEventSchema = BaseEventSchema.extend({
15051
15060
  eventType: literal("run_completed"),
15052
15061
  eventData: object({
15053
15062
  output: SerializedDataSchema.optional()
15054
15063
  })
15055
- }));
15056
- const RunFailedEventSchema = compile(BaseEventSchema.extend({
15064
+ });
15065
+ const RunFailedEventSchema = BaseEventSchema.extend({
15057
15066
  eventType: literal("run_failed"),
15058
15067
  eventData: object({
15059
15068
  // The thrown value, serialized via the workflow serialization pipeline.
@@ -15065,8 +15074,8 @@ const RunFailedEventSchema = compile(BaseEventSchema.extend({
15065
15074
  // the full error payload.
15066
15075
  errorCode: string$2().optional()
15067
15076
  })
15068
- }));
15069
- const RunCancelledEventSchema = compile(BaseEventSchema.extend({
15077
+ });
15078
+ const RunCancelledEventSchema = BaseEventSchema.extend({
15070
15079
  eventType: literal("run_cancelled"),
15071
15080
  eventData: object({
15072
15081
  // Optional free-text reason for the cancellation. Kept as small
@@ -15074,7 +15083,7 @@ const RunCancelledEventSchema = compile(BaseEventSchema.extend({
15074
15083
  // resolveData: 'none' and can be displayed without decryption.
15075
15084
  cancelReason: string$2().max(512).optional()
15076
15085
  }).optional()
15077
- }));
15086
+ });
15078
15087
  compile(discriminatedUnion("eventType", [
15079
15088
  // Run lifecycle events
15080
15089
  RunCreatedEventSchema,
@@ -15097,7 +15106,7 @@ compile(discriminatedUnion("eventType", [
15097
15106
  WaitCreatedEventSchema,
15098
15107
  WaitCompletedEventSchema
15099
15108
  ]));
15100
- const AllEventsSchema = compile(discriminatedUnion("eventType", [
15109
+ const AllEventsSchema = discriminatedUnion("eventType", [
15101
15110
  // Run lifecycle events
15102
15111
  RunCreatedEventSchema,
15103
15112
  RunStartedEventSchema,
@@ -15122,7 +15131,7 @@ const AllEventsSchema = compile(discriminatedUnion("eventType", [
15122
15131
  WaitCompletedEventSchema,
15123
15132
  NoopEventSchema
15124
15133
  // World-only: sealed-log filler for an abandoned slot
15125
- ]));
15134
+ ]);
15126
15135
  compile(AllEventsSchema.and(object({
15127
15136
  runId: string$2(),
15128
15137
  eventId: string$2(),
@@ -15724,6 +15733,11 @@ const HookResumeContextSchema = compile(object({
15724
15733
  // Named `runSpecVersion` to distinguish it from the hook's own `specVersion`.
15725
15734
  runSpecVersion: number$3().optional(),
15726
15735
  workflowCoreVersion: string$2().optional(),
15736
+ // Node.js version of the run's creating deployment, mirrored from
15737
+ // `executionContext.nodeVersion`. Decides whether a resume may write zstd
15738
+ // (which needs Node.js >= 22.15) or must use gzip. Absent on runs created
15739
+ // before the field existed and on non-Node runtimes, where writers use gzip.
15740
+ nodeVersion: string$2().optional(),
15727
15741
  traceCarrier: TraceCarrierSchema.optional(),
15728
15742
  // The run's published X25519 public key (base64), mirrored from the run
15729
15743
  // entity. Lets a resume seal (`encp`) its payload to the run without reading
@@ -19323,6 +19337,13 @@ function requireMs() {
19323
19337
  var msExports = requireMs();
19324
19338
  const ms = /* @__PURE__ */ getDefaultExportFromCjs(msExports);
19325
19339
  function parseDurationToDate(param) {
19340
+ const date2 = durationToDate(param);
19341
+ if (Number.isNaN(date2.getTime())) {
19342
+ 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.`);
19343
+ }
19344
+ return date2;
19345
+ }
19346
+ function durationToDate(param) {
19326
19347
  if (typeof param === "string") {
19327
19348
  const durationMs = ms(param);
19328
19349
  if (typeof durationMs !== "number" || durationMs < 0) {
@@ -20928,7 +20949,7 @@ async function hydrateResourceIOAsync(resource, key) {
20928
20949
  return { hydrateDataWithKey: hydrateDataWithKey3, deriveRunPayloadKeys: deriveRunPayloadKeys3 };
20929
20950
  }, true ? void 0 : void 0);
20930
20951
  const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
20931
- const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-Cg5apldO.js");
20952
+ const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-D9w7uXpQ.js");
20932
20953
  return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
20933
20954
  }, true ? __vite__mapDeps([0,1]) : void 0);
20934
20955
  ensureZstdDecoderRegistered();
@@ -22265,47 +22286,201 @@ function CollapsibleContent({ children: children2, className }) {
22265
22286
  function Collapsible({ label, children: children2, disabled, defaultOpen, onOpenChange }) {
22266
22287
  return jsxRuntimeExports.jsxs(CollapsibleRoot, { disabled, defaultOpen, onOpenChange, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { children: label }), children2 != null && jsxRuntimeExports.jsx(CollapsibleContent, { children: children2 })] });
22267
22288
  }
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",
22289
+ function setRef(ref, value) {
22290
+ if (typeof ref === "function") {
22291
+ return ref(value);
22292
+ } else if (ref !== null && ref !== void 0) {
22293
+ ref.current = value;
22294
+ }
22295
+ }
22296
+ function composeRefs(...refs) {
22297
+ return (node2) => {
22298
+ let hasCleanup = false;
22299
+ const cleanups = refs.map((ref) => {
22300
+ const cleanup = setRef(ref, node2);
22301
+ if (!hasCleanup && typeof cleanup == "function") {
22302
+ hasCleanup = true;
22303
+ }
22304
+ return cleanup;
22305
+ });
22306
+ if (hasCleanup) {
22307
+ return () => {
22308
+ for (let i = 0; i < cleanups.length; i++) {
22309
+ const cleanup = cleanups[i];
22310
+ if (typeof cleanup == "function") {
22311
+ cleanup();
22312
+ } else {
22313
+ setRef(refs[i], null);
22314
+ }
22315
+ }
22316
+ };
22317
+ }
22318
+ };
22319
+ }
22320
+ function useComposedRefs(...refs) {
22321
+ return reactExports.useCallback(composeRefs(...refs), refs);
22322
+ }
22323
+ var Slot = reactExports.forwardRef((props, forwardedRef) => {
22324
+ const { children: children2, ...slotProps } = props;
22325
+ const childrenArray = reactExports.Children.toArray(children2);
22326
+ const slottable = childrenArray.find(isSlottable);
22327
+ if (slottable) {
22328
+ const newElement = slottable.props.children;
22329
+ const newChildren = childrenArray.map((child) => {
22330
+ if (child === slottable) {
22331
+ if (reactExports.Children.count(newElement) > 1) return reactExports.Children.only(null);
22332
+ return reactExports.isValidElement(newElement) ? newElement.props.children : null;
22333
+ } else {
22334
+ return child;
22335
+ }
22336
+ });
22337
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: reactExports.isValidElement(newElement) ? reactExports.cloneElement(newElement, void 0, newChildren) : null });
22338
+ }
22339
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: children2 });
22340
+ });
22341
+ Slot.displayName = "Slot";
22342
+ var SlotClone = reactExports.forwardRef((props, forwardedRef) => {
22343
+ const { children: children2, ...slotProps } = props;
22344
+ if (reactExports.isValidElement(children2)) {
22345
+ const childrenRef = getElementRef(children2);
22346
+ return reactExports.cloneElement(children2, {
22347
+ ...mergeProps(slotProps, children2.props),
22348
+ // @ts-ignore
22349
+ ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
22350
+ });
22351
+ }
22352
+ return reactExports.Children.count(children2) > 1 ? reactExports.Children.only(null) : null;
22353
+ });
22354
+ SlotClone.displayName = "SlotClone";
22355
+ var Slottable = ({ children: children2 }) => {
22356
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
22357
+ };
22358
+ function isSlottable(child) {
22359
+ return reactExports.isValidElement(child) && child.type === Slottable;
22360
+ }
22361
+ function mergeProps(slotProps, childProps) {
22362
+ const overrideProps = { ...childProps };
22363
+ for (const propName in childProps) {
22364
+ const slotPropValue = slotProps[propName];
22365
+ const childPropValue = childProps[propName];
22366
+ const isHandler = /^on[A-Z]/.test(propName);
22367
+ if (isHandler) {
22368
+ if (slotPropValue && childPropValue) {
22369
+ overrideProps[propName] = (...args) => {
22370
+ childPropValue(...args);
22371
+ slotPropValue(...args);
22372
+ };
22373
+ } else if (slotPropValue) {
22374
+ overrideProps[propName] = slotPropValue;
22375
+ }
22376
+ } else if (propName === "style") {
22377
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
22378
+ } else if (propName === "className") {
22379
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
22380
+ }
22381
+ }
22382
+ return { ...slotProps, ...overrideProps };
22383
+ }
22384
+ function getElementRef(element2) {
22385
+ var _a3, _b2;
22386
+ let getter = (_a3 = Object.getOwnPropertyDescriptor(element2.props, "ref")) == null ? void 0 : _a3.get;
22387
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
22388
+ if (mayWarn) {
22389
+ return element2.ref;
22390
+ }
22391
+ getter = (_b2 = Object.getOwnPropertyDescriptor(element2, "ref")) == null ? void 0 : _b2.get;
22392
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
22393
+ if (mayWarn) {
22394
+ return element2.props.ref;
22395
+ }
22396
+ return element2.props.ref || element2.ref;
22397
+ }
22398
+ var Root = Slot;
22399
+ const buttonVariants = cva([
22400
+ "group/trigger relative m-0 inline-flex max-w-full shrink-0 items-center justify-center gap-2",
22401
+ "cursor-pointer select-none whitespace-nowrap border-0 align-baseline font-medium no-underline outline-none",
22402
+ "transform translate-z-0",
22403
+ // Fill, text and border all come from --themed-*; the fallbacks below are
22404
+ // the inverted `default` variant, so it declares no colour tokens at all.
22405
+ "text-[var(--themed-fg,_var(--ds-background-100))]",
22406
+ "bg-[var(--themed-bg,_var(--ds-gray-1000))]",
22407
+ "shadow-[0_0_0_1px_var(--themed-border,_transparent)]",
22408
+ // Every variant declares --themed-hover-bg, so there is a single
22409
+ // `hover:bg-*` utility on the element and a call site that needs its own
22410
+ // hover fill replaces it in both themes at once.
22411
+ "hover:bg-[var(--themed-hover-bg)]",
22274
22412
  "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
22413
  "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"
22414
+ "[&_svg]:shrink-0",
22415
+ // Disabled buttons flatten to the gray-100 fill with a gray-400 border.
22416
+ "disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-700 disabled:[--themed-border:_var(--ds-gray-400)] disabled:hover:bg-gray-100",
22417
+ "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
22418
  ], {
22288
22419
  variants: {
22289
22420
  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)]"
22421
+ // No `--ds-*` token sits one step lighter/darker than the inverted
22422
+ // fill, so its hover colours are literal — and they have to flip with
22423
+ // the theme, because the fill itself does.
22424
+ default: [
22425
+ "[--themed-hover-bg:_hsl(0,_0%,_22%)]",
22426
+ "[.dark_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]",
22427
+ "[.dark-theme_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]",
22428
+ "[[data-theme=dark]_&]:[--themed-hover-bg:_hsl(0,_0%,_80%)]"
22429
+ ],
22430
+ secondary: [
22431
+ "[--themed-bg:_var(--ds-background-100)]",
22432
+ "[--themed-fg:_var(--ds-gray-1000)]",
22433
+ "[--themed-border:_var(--ds-gray-400)]",
22434
+ "[--themed-hover-bg:_var(--ds-gray-100)]",
22435
+ "[.dark_&]:[--themed-hover-bg:_var(--ds-gray-200)]",
22436
+ "[.dark-theme_&]:[--themed-hover-bg:_var(--ds-gray-200)]",
22437
+ "[[data-theme=dark]_&]:[--themed-hover-bg:_var(--ds-gray-200)]"
22438
+ ],
22439
+ // Tertiary is the one variant allowed to go borderless when disabled;
22440
+ // it drops to 50% opacity instead.
22441
+ tertiary: [
22442
+ "[--themed-bg:_transparent]",
22443
+ "[--themed-fg:_var(--ds-gray-1000)]",
22444
+ "[--themed-border:_transparent]",
22445
+ // The alpha token already flips with the theme.
22446
+ "[--themed-hover-bg:_var(--ds-gray-alpha-200)]",
22447
+ "disabled:bg-transparent disabled:opacity-50 disabled:shadow-none disabled:hover:bg-transparent",
22448
+ "aria-disabled:bg-transparent aria-disabled:opacity-50 aria-disabled:shadow-none aria-disabled:hover:bg-transparent"
22449
+ ]
22293
22450
  },
22451
+ // Radii are literal rather than `rounded-md`/`rounded-lg`: apps that
22452
+ // still carry a shadcn theme redefine the `--radius-*` scale, and these
22453
+ // corners should not move with it.
22294
22454
  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"
22455
+ tiny: "h-6 gap-1 rounded-[4px] px-1.5 text-button-12 [&_svg]:size-3",
22456
+ small: "h-8 rounded-[6px] px-3 text-button-14 [&_svg]:size-4",
22457
+ medium: "h-9 rounded-[6px] px-4 text-button-14 [&_svg]:size-4",
22458
+ large: "h-10 rounded-[8px] px-5 text-button-16 [&_svg]:size-4"
22459
+ },
22460
+ // Icon-only buttons: square keeps the size's radius, circle is a pill.
22461
+ shape: {
22462
+ square: "aspect-square px-0",
22463
+ circle: "aspect-square rounded-full px-0"
22299
22464
  }
22300
22465
  },
22301
22466
  defaultVariants: {
22302
22467
  variant: "default",
22303
- size: "default"
22468
+ size: "medium"
22304
22469
  }
22305
22470
  });
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
- }
22471
+ const Button = reactExports.forwardRef(({ className, variant, size: size2, shape, asChild = false, type, ...props }, ref) => {
22472
+ const Comp = asChild ? Slot : "button";
22473
+ return jsxRuntimeExports.jsx(Comp, {
22474
+ ref,
22475
+ // `type` only means anything on a real <button>; forwarding it to the
22476
+ // anchor (or whatever else) an `asChild` call site renders would be
22477
+ // invalid HTML.
22478
+ type: asChild ? type : type ?? "button",
22479
+ className: cn$4(buttonVariants({ variant, size: size2, shape, className })),
22480
+ ...props
22481
+ });
22482
+ });
22483
+ Button.displayName = "Button";
22309
22484
  function summarizeArrayBufferView(value) {
22310
22485
  const ta = value;
22311
22486
  const name2 = ta.constructor.name;
@@ -22515,7 +22690,7 @@ const RunClickContext = reactExports.createContext(void 0);
22515
22690
  function EncryptedInlineLabel() {
22516
22691
  const ctx = reactExports.useContext(DecryptClickContext);
22517
22692
  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) => {
22693
+ return jsxRuntimeExports.jsxs(Button, { size: "tiny", className: "align-baseline", disabled: ctx.isDecrypting || ctx.isDecryptDisabled, title: ctx.isDecryptDisabled ? ctx.decryptDisabledReason : void 0, onClick: (e) => {
22519
22694
  e.stopPropagation();
22520
22695
  ctx.onDecrypt();
22521
22696
  }, children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] });
@@ -22959,7 +23134,7 @@ const encryptedPlaceholderPreview = `{
22959
23134
  }`;
22960
23135
  function EncryptedDataBlock() {
22961
23136
  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"] }) })] });
23137
+ 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
23138
  }
22964
23139
  const serializeForClipboard = (value) => {
22965
23140
  if (typeof value === "string")
@@ -22976,116 +23151,6 @@ const serializeForClipboard = (value) => {
22976
23151
  function CopyableDataBlock({ data }) {
22977
23152
  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
23153
  }
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
23154
  var debounce_1;
23090
23155
  var hasRequiredDebounce;
23091
23156
  function requireDebounce() {
@@ -48594,7 +48659,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
48594
48659
  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
48660
  var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
48596
48661
  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 }) => {
48662
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-C53ps5L5.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
48663
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
48599
48664
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
48600
48665
  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 +50697,6 @@ function useServerConfig() {
50632
50697
  }
50633
50698
  return context;
50634
50699
  }
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
50700
  let decoder;
50686
50701
  try {
50687
50702
  decoder = new TextDecoder();
@@ -53000,6 +53015,17 @@ async function runHealthCheck(worldEnv, options) {
53000
53015
  async function getEncryptionKeyForRun(worldEnv, runId) {
53001
53016
  return rpc("getEncryptionKeyForRun", { worldEnv, runId });
53002
53017
  }
53018
+ const DEFAULT_PAGE_SIZE = 10;
53019
+ function cn(...inputs) {
53020
+ return twMerge(clsx(inputs));
53021
+ }
53022
+ const LIVE_UPDATE_INTERVAL_MS = 5e3;
53023
+ function getPaginationDisplay(currentPage, totalPages, hasMore) {
53024
+ if (hasMore) {
53025
+ return `Page ${currentPage} of ${totalPages}+`;
53026
+ }
53027
+ return `Page ${currentPage} of ${totalPages}`;
53028
+ }
53003
53029
  const mermaid3ZIDBTTL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
53004
53030
  __proto__: null,
53005
53031
  Mermaid: Nt