@workflow/web 5.3.3 → 5.4.0
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.
- package/build/client/assets/app-Czi_mceE.css +1 -0
- package/build/client/assets/{arrow-up-right-AHTyWXU2.js → arrow-up-right-74VYxbbA.js} +1 -1
- package/build/client/assets/{highlighted-body-JLMTFACH-_kzpqYmW.js → highlighted-body-JLMTFACH-D51eQJbG.js} +1 -1
- package/build/client/assets/{home-DjUPTrY5.js → home-DLo3pUJ2.js} +16 -9
- package/build/client/assets/{manifest-9126df65.js → manifest-67b853ed.js} +1 -1
- package/build/client/assets/mermaid-WFAXDIZX-Bd_l_owX.css +1 -0
- package/build/client/assets/{mermaid-WFAXDIZX-CNo_0yWo.js → mermaid-WFAXDIZX-CCgeQ0jh.js} +833 -854
- package/build/client/assets/{root-Bh-E5He-.js → root-D8difEo9.js} +3 -4
- package/build/client/assets/root-d42YLYYg.css +1 -0
- package/build/client/assets/{run-detail-5dPVsaSm.js → run-detail-DcpR_rST.js} +119 -248
- package/build/client/assets/run-detail-DmVxTs86.css +1 -0
- package/build/client/assets/{run-usage-C_wyncgV.js → run-usage-0JrO5fG2.js} +4 -4
- package/build/client/assets/{run-usage-BEswHGKU.js → run-usage-CK_ia-7k.js} +24 -32
- package/build/client/assets/{skeleton-DE14mNQw.js → skeleton-B2Cf2UXN.js} +1 -1
- package/build/client/assets/{url-state-5GKQwo-f.js → url-state-n9DuWtVx.js} +52 -79
- package/build/client/assets/{zstd-browser-decoder-CbTMLAMd.js → zstd-browser-decoder-CqZHDp17.js} +1 -1
- package/build/server/assets/{app-C-e60j14.js → app-DLSid73Q.js} +1875 -1696
- package/build/server/assets/{highlighted-body-JLMTFACH-B7y0X_Kn.js → highlighted-body-JLMTFACH-CtQ_zvjG.js} +1 -1
- package/build/server/assets/{index-DRDsjR--.js → index-BI8sdTIq.js} +4 -4
- package/build/server/assets/{mermaid-WFAXDIZX-MsPxEM1Y.js → mermaid-WFAXDIZX-BlWV_MqD.js} +1 -1
- package/build/server/assets/{token-DXh0TnqB.js → token-BE7-D9Dt.js} +2 -2
- package/build/server/assets/{token-CKgyaeCJ.js → token-DOXFZxpM.js} +1 -1
- package/build/server/assets/{token-util-CCc0uYVy.js → token-util-DjnKfD7P.js} +2 -2
- package/build/server/assets/{token-util-DOHYMq7D.js → token-util-V29s95lj.js} +1 -1
- package/build/server/assets/{wrapper-BzLz38Oh.js → wrapper-DBwRVVUb.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-BSSEC3XP.js → zstd-browser-decoder-Crq3t_fM.js} +1 -1
- package/build/server/index.js +1 -1
- package/package.json +7 -7
- package/build/client/assets/app-CmaRLUwS.css +0 -1
- package/build/client/assets/mermaid-WFAXDIZX-F88p7PFX.css +0 -1
- package/build/client/assets/root-kJB77No4.css +0 -1
- package/build/client/assets/run-detail-CWoGxu_0.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zstd-browser-decoder-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zstd-browser-decoder-CqZHDp17.js","assets/index-BUQuaV5X.js","assets/highlighted-body-JLMTFACH-D51eQJbG.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as reactExports, j as jsxRuntimeExports, H as React2, g as reactDomExports, R as ReactExports, J as ReactDOM, I as getDefaultExportFromCjs } from "./index-BUQuaV5X.js";
|
|
3
3
|
var __defProp$h = Object.defineProperty;
|
|
4
4
|
var __name$h = (target, value) => __defProp$h(target, "name", { value, configurable: true });
|
|
@@ -192,11 +192,11 @@ function createSlot(ownerName) {
|
|
|
192
192
|
if (isSlottable(maybeSlottable)) {
|
|
193
193
|
hasSlottable = true;
|
|
194
194
|
const slottable = maybeSlottable;
|
|
195
|
-
let
|
|
196
|
-
while (isLazyComponent(
|
|
197
|
-
|
|
195
|
+
let child2 = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
196
|
+
while (isLazyComponent(child2) && typeof use === "function") {
|
|
197
|
+
child2 = use(child2._payload);
|
|
198
198
|
}
|
|
199
|
-
slottableElement = getSlottableElementFromSlottable(slottable,
|
|
199
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child2);
|
|
200
200
|
newChildren.push(slottableElement?.props?.children);
|
|
201
201
|
} else {
|
|
202
202
|
newChildren.push(maybeSlottable);
|
|
@@ -244,12 +244,12 @@ function createSlottable(ownerName) {
|
|
|
244
244
|
}
|
|
245
245
|
__name$e(createSlottable, "createSlottable");
|
|
246
246
|
var Slottable$1 = /* @__PURE__ */ createSlottable("Slottable");
|
|
247
|
-
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$e((slottable,
|
|
247
|
+
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$e((slottable, child2) => {
|
|
248
248
|
if ("child" in slottable.props) {
|
|
249
|
-
if (!reactExports.isValidElement(
|
|
250
|
-
return reactExports.cloneElement(
|
|
249
|
+
if (!reactExports.isValidElement(child2)) return null;
|
|
250
|
+
return reactExports.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
251
251
|
}
|
|
252
|
-
return reactExports.isValidElement(
|
|
252
|
+
return reactExports.isValidElement(child2) ? child2 : null;
|
|
253
253
|
}, "getSlottableElementFromSlottable");
|
|
254
254
|
function mergeProps(slotProps, childProps) {
|
|
255
255
|
const overrideProps = { ...childProps };
|
|
@@ -292,8 +292,8 @@ function getElementRef$1(element2) {
|
|
|
292
292
|
return element2.props.ref || element2.ref;
|
|
293
293
|
}
|
|
294
294
|
__name$e(getElementRef$1, "getElementRef");
|
|
295
|
-
function isSlottable(
|
|
296
|
-
return reactExports.isValidElement(
|
|
295
|
+
function isSlottable(child2) {
|
|
296
|
+
return reactExports.isValidElement(child2) && typeof child2.type === "function" && "__radixId" in child2.type && child2.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
297
297
|
}
|
|
298
298
|
__name$e(isSlottable, "isSlottable");
|
|
299
299
|
var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
@@ -732,7 +732,7 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
732
732
|
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
733
733
|
...scopeProps
|
|
734
734
|
} = props;
|
|
735
|
-
const [
|
|
735
|
+
const [container2, setContainer] = reactExports.useState(null);
|
|
736
736
|
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
737
737
|
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
738
738
|
const lastFocusedElementRef = reactExports.useRef(null);
|
|
@@ -744,10 +744,10 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
744
744
|
const isTargetInScope = reactExports.useCallback(
|
|
745
745
|
(target) => {
|
|
746
746
|
if (!target) return false;
|
|
747
|
-
if (
|
|
747
|
+
if (container2?.contains(target)) return true;
|
|
748
748
|
return Boolean(branchesRef.current?.some((branch) => branch.contains(target)));
|
|
749
749
|
},
|
|
750
|
-
[
|
|
750
|
+
[container2]
|
|
751
751
|
);
|
|
752
752
|
const focusScope = reactExports.useRef({
|
|
753
753
|
paused: false,
|
|
@@ -761,7 +761,7 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
761
761
|
reactExports.useEffect(() => {
|
|
762
762
|
if (trapped) {
|
|
763
763
|
let handleFocusIn2 = function(event) {
|
|
764
|
-
if (focusScope.paused || !
|
|
764
|
+
if (focusScope.paused || !container2) return;
|
|
765
765
|
const target = event.target;
|
|
766
766
|
if (isTargetInScope(target)) {
|
|
767
767
|
lastFocusedElementRef.current = target;
|
|
@@ -769,7 +769,7 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
769
769
|
focus(lastFocusedElementRef.current, { select: true });
|
|
770
770
|
}
|
|
771
771
|
}, handleFocusOut2 = function(event) {
|
|
772
|
-
if (focusScope.paused || !
|
|
772
|
+
if (focusScope.paused || !container2) return;
|
|
773
773
|
const relatedTarget = event.relatedTarget;
|
|
774
774
|
if (relatedTarget === null) return;
|
|
775
775
|
if (!isTargetInScope(relatedTarget)) {
|
|
@@ -779,7 +779,7 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
779
779
|
const focusedElement = document.activeElement;
|
|
780
780
|
if (focusedElement !== document.body) return;
|
|
781
781
|
for (const mutation of mutations) {
|
|
782
|
-
if (mutation.removedNodes.length > 0) focus(
|
|
782
|
+
if (mutation.removedNodes.length > 0) focus(container2);
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
__name$a(handleFocusIn2, "handleFocusIn");
|
|
@@ -788,47 +788,47 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
788
788
|
document.addEventListener("focusin", handleFocusIn2);
|
|
789
789
|
document.addEventListener("focusout", handleFocusOut2);
|
|
790
790
|
const mutationObserver = new MutationObserver(handleMutations2);
|
|
791
|
-
if (
|
|
791
|
+
if (container2) mutationObserver.observe(container2, { childList: true, subtree: true });
|
|
792
792
|
return () => {
|
|
793
793
|
document.removeEventListener("focusin", handleFocusIn2);
|
|
794
794
|
document.removeEventListener("focusout", handleFocusOut2);
|
|
795
795
|
mutationObserver.disconnect();
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
}, [trapped,
|
|
798
|
+
}, [trapped, container2, focusScope.paused, isTargetInScope]);
|
|
799
799
|
reactExports.useEffect(() => {
|
|
800
|
-
if (
|
|
800
|
+
if (container2) {
|
|
801
801
|
focusScopesStack.add(focusScope);
|
|
802
802
|
const previouslyFocusedElement = document.activeElement;
|
|
803
|
-
const hasFocusedCandidate =
|
|
803
|
+
const hasFocusedCandidate = container2.contains(previouslyFocusedElement);
|
|
804
804
|
if (!hasFocusedCandidate) {
|
|
805
805
|
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
container2.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
807
|
+
container2.dispatchEvent(mountEvent);
|
|
808
808
|
if (!mountEvent.defaultPrevented) {
|
|
809
|
-
focusFirst(removeLinks(getTabbableCandidates(
|
|
809
|
+
focusFirst(removeLinks(getTabbableCandidates(container2)), { select: true });
|
|
810
810
|
if (document.activeElement === previouslyFocusedElement) {
|
|
811
|
-
focus(
|
|
811
|
+
focus(container2);
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
return () => {
|
|
816
|
-
|
|
817
|
-
const ownerDocument =
|
|
816
|
+
container2.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
817
|
+
const ownerDocument = container2.ownerDocument;
|
|
818
818
|
const UnmountEvent = CustomEvent;
|
|
819
819
|
setTimeout(() => {
|
|
820
820
|
const unmountEvent = new UnmountEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
container2.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
822
|
+
container2.dispatchEvent(unmountEvent);
|
|
823
823
|
if (!unmountEvent.defaultPrevented) {
|
|
824
824
|
focus(previouslyFocusedElement ?? ownerDocument.body, { select: true });
|
|
825
825
|
}
|
|
826
|
-
|
|
826
|
+
container2.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
827
827
|
focusScopesStack.remove(focusScope);
|
|
828
828
|
}, 0);
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
|
-
}, [
|
|
831
|
+
}, [container2, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
|
|
832
832
|
const handleKeyDown = reactExports.useCallback(
|
|
833
833
|
(event) => {
|
|
834
834
|
if (!loop && !trapped) return;
|
|
@@ -836,11 +836,11 @@ var FocusScope = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
836
836
|
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
837
837
|
const focusedElement = document.activeElement;
|
|
838
838
|
if (isTabKey && focusedElement) {
|
|
839
|
-
const
|
|
840
|
-
const [first, last] = getTabbableEdges(
|
|
839
|
+
const container22 = event.currentTarget;
|
|
840
|
+
const [first, last] = getTabbableEdges(container22);
|
|
841
841
|
const hasTabbableElementsInside = first && last;
|
|
842
842
|
if (!hasTabbableElementsInside) {
|
|
843
|
-
if (focusedElement ===
|
|
843
|
+
if (focusedElement === container22) event.preventDefault();
|
|
844
844
|
} else {
|
|
845
845
|
if (!event.shiftKey && focusedElement === last) {
|
|
846
846
|
event.preventDefault();
|
|
@@ -894,17 +894,17 @@ function focusFirst(candidates, { select = false } = {}) {
|
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
__name$a(focusFirst, "focusFirst");
|
|
897
|
-
function getTabbableEdges(
|
|
898
|
-
const candidates = getTabbableCandidates(
|
|
899
|
-
const first = findVisible(candidates,
|
|
900
|
-
const last = findVisible(candidates.reverse(),
|
|
897
|
+
function getTabbableEdges(container2) {
|
|
898
|
+
const candidates = getTabbableCandidates(container2);
|
|
899
|
+
const first = findVisible(candidates, container2);
|
|
900
|
+
const last = findVisible(candidates.reverse(), container2);
|
|
901
901
|
return [first, last];
|
|
902
902
|
}
|
|
903
903
|
__name$a(getTabbableEdges, "getTabbableEdges");
|
|
904
|
-
function getTabbableCandidates(
|
|
904
|
+
function getTabbableCandidates(container2) {
|
|
905
905
|
const nodes = [];
|
|
906
|
-
const document2 =
|
|
907
|
-
const walker = document2.createTreeWalker(
|
|
906
|
+
const document2 = container2.ownerDocument;
|
|
907
|
+
const walker = document2.createTreeWalker(container2, NodeFilter.SHOW_ELEMENT, {
|
|
908
908
|
acceptNode: /* @__PURE__ */ __name$a((node2) => {
|
|
909
909
|
const isHiddenInput2 = node2.tagName === "INPUT" && node2.type === "hidden";
|
|
910
910
|
if (node2.disabled || node2.hidden || isHiddenInput2) {
|
|
@@ -919,10 +919,10 @@ function getTabbableCandidates(container) {
|
|
|
919
919
|
return nodes;
|
|
920
920
|
}
|
|
921
921
|
__name$a(getTabbableCandidates, "getTabbableCandidates");
|
|
922
|
-
function findVisible(elements,
|
|
923
|
-
const canUseCheckVisibility = typeof
|
|
922
|
+
function findVisible(elements, container2) {
|
|
923
|
+
const canUseCheckVisibility = typeof container2.checkVisibility === "function" && container2.checkVisibility({ checkVisibilityCSS: true });
|
|
924
924
|
for (const element2 of elements) {
|
|
925
|
-
const hidden = canUseCheckVisibility ? !element2.checkVisibility({ checkVisibilityCSS: true }) : isHidden(element2, { upTo:
|
|
925
|
+
const hidden = canUseCheckVisibility ? !element2.checkVisibility({ checkVisibilityCSS: true }) : isHidden(element2, { upTo: container2 });
|
|
926
926
|
if (!hidden) {
|
|
927
927
|
return element2;
|
|
928
928
|
}
|
|
@@ -3279,8 +3279,8 @@ var Portal = /* @__PURE__ */ reactExports.forwardRef(
|
|
|
3279
3279
|
const { container: containerProp, ...portalProps } = props;
|
|
3280
3280
|
const [mounted, setMounted] = reactExports.useState(false);
|
|
3281
3281
|
useLayoutEffect2(() => setMounted(true), []);
|
|
3282
|
-
const
|
|
3283
|
-
return
|
|
3282
|
+
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
3283
|
+
return container2 ? reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
3284
3284
|
}, "Portal")
|
|
3285
3285
|
);
|
|
3286
3286
|
var __defProp$4 = Object.defineProperty;
|
|
@@ -3295,10 +3295,10 @@ __name$4(useStateMachine, "useStateMachine");
|
|
|
3295
3295
|
var Presence = /* @__PURE__ */ __name$4((props) => {
|
|
3296
3296
|
const { present, children: children2 } = props;
|
|
3297
3297
|
const presence = usePresence(present);
|
|
3298
|
-
const
|
|
3299
|
-
const ref = useStableComposedRefs(presence.ref, getElementRef(
|
|
3298
|
+
const child2 = typeof children2 === "function" ? children2({ present: presence.isPresent }) : reactExports.Children.only(children2);
|
|
3299
|
+
const ref = useStableComposedRefs(presence.ref, getElementRef(child2));
|
|
3300
3300
|
const forceMount = typeof children2 === "function";
|
|
3301
|
-
return forceMount || presence.isPresent ? reactExports.cloneElement(
|
|
3301
|
+
return forceMount || presence.isPresent ? reactExports.cloneElement(child2, { ref }) : null;
|
|
3302
3302
|
}, "Presence");
|
|
3303
3303
|
function usePresence(present) {
|
|
3304
3304
|
const [node2, setNode] = reactExports.useState();
|
|
@@ -3812,9 +3812,9 @@ var [PortalProvider, usePortalContext] = createTooltipContext(PORTAL_NAME, {
|
|
|
3812
3812
|
forceMount: void 0
|
|
3813
3813
|
});
|
|
3814
3814
|
var TooltipPortal = /* @__PURE__ */ __name((props) => {
|
|
3815
|
-
const { __scopeTooltip, forceMount, children: children2, container } = props;
|
|
3815
|
+
const { __scopeTooltip, forceMount, children: children2, container: container2 } = props;
|
|
3816
3816
|
const context = useTooltipContext(PORTAL_NAME, __scopeTooltip);
|
|
3817
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(PortalProvider, { scope: __scopeTooltip, forceMount, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { asChild: true, container, children: children2 }) }) });
|
|
3817
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PortalProvider, { scope: __scopeTooltip, forceMount, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Portal, { asChild: true, container: container2, children: children2 }) }) });
|
|
3818
3818
|
}, "TooltipPortal");
|
|
3819
3819
|
var CONTENT_NAME = "TooltipContent";
|
|
3820
3820
|
var TooltipContent$1 = /* @__PURE__ */ reactExports.forwardRef(
|
|
@@ -4105,8 +4105,8 @@ function concatAriaDescribedby(...values) {
|
|
|
4105
4105
|
return ids.size > 0 ? Array.from(ids).join(" ") : void 0;
|
|
4106
4106
|
}
|
|
4107
4107
|
__name(concatAriaDescribedby, "concatAriaDescribedby");
|
|
4108
|
-
const mergeClasses = (...classes) => classes.filter((
|
|
4109
|
-
return Boolean(
|
|
4108
|
+
const mergeClasses = (...classes) => classes.filter((className2, index2, array2) => {
|
|
4109
|
+
return Boolean(className2) && className2.trim() !== "" && array2.indexOf(className2) === index2;
|
|
4110
4110
|
}).join(" ").trim();
|
|
4111
4111
|
const toKebabCase = (string2) => string2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4112
4112
|
const toCamelCase = (string2) => string2.replace(
|
|
@@ -4142,7 +4142,7 @@ const Icon = reactExports.forwardRef(
|
|
|
4142
4142
|
size: size2 = 24,
|
|
4143
4143
|
strokeWidth = 2,
|
|
4144
4144
|
absoluteStrokeWidth,
|
|
4145
|
-
className = "",
|
|
4145
|
+
className: className2 = "",
|
|
4146
4146
|
children: children2,
|
|
4147
4147
|
iconNode,
|
|
4148
4148
|
...rest
|
|
@@ -4155,7 +4155,7 @@ const Icon = reactExports.forwardRef(
|
|
|
4155
4155
|
height: size2,
|
|
4156
4156
|
stroke: color2,
|
|
4157
4157
|
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size2) : strokeWidth,
|
|
4158
|
-
className: mergeClasses("lucide",
|
|
4158
|
+
className: mergeClasses("lucide", className2),
|
|
4159
4159
|
...!children2 && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
4160
4160
|
...rest
|
|
4161
4161
|
},
|
|
@@ -4167,13 +4167,13 @@ const Icon = reactExports.forwardRef(
|
|
|
4167
4167
|
);
|
|
4168
4168
|
const createLucideIcon = (iconName, iconNode) => {
|
|
4169
4169
|
const Component = reactExports.forwardRef(
|
|
4170
|
-
({ className, ...props }, ref) => reactExports.createElement(Icon, {
|
|
4170
|
+
({ className: className2, ...props }, ref) => reactExports.createElement(Icon, {
|
|
4171
4171
|
ref,
|
|
4172
4172
|
iconNode,
|
|
4173
4173
|
className: mergeClasses(
|
|
4174
4174
|
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
4175
4175
|
`lucide-${iconName}`,
|
|
4176
|
-
|
|
4176
|
+
className2
|
|
4177
4177
|
),
|
|
4178
4178
|
...props
|
|
4179
4179
|
})
|
|
@@ -4256,11 +4256,11 @@ const createClassGroupUtils$1 = (config2) => {
|
|
|
4256
4256
|
conflictingClassGroups,
|
|
4257
4257
|
conflictingClassGroupModifiers
|
|
4258
4258
|
} = config2;
|
|
4259
|
-
const getClassGroupId = (
|
|
4260
|
-
if (
|
|
4261
|
-
return getGroupIdForArbitraryProperty$1(
|
|
4259
|
+
const getClassGroupId = (className2) => {
|
|
4260
|
+
if (className2.startsWith("[") && className2.endsWith("]")) {
|
|
4261
|
+
return getGroupIdForArbitraryProperty$1(className2);
|
|
4262
4262
|
}
|
|
4263
|
-
const classParts =
|
|
4263
|
+
const classParts = className2.split(CLASS_PART_SEPARATOR$1);
|
|
4264
4264
|
const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
|
|
4265
4265
|
return getGroupRecursive$1(classParts, startIndex, classMap);
|
|
4266
4266
|
};
|
|
@@ -4308,8 +4308,8 @@ const getGroupRecursive$1 = (classParts, startIndex, classPartObject) => {
|
|
|
4308
4308
|
}
|
|
4309
4309
|
return void 0;
|
|
4310
4310
|
};
|
|
4311
|
-
const getGroupIdForArbitraryProperty$1 = (
|
|
4312
|
-
const content2 =
|
|
4311
|
+
const getGroupIdForArbitraryProperty$1 = (className2) => className2.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
4312
|
+
const content2 = className2.slice(1, -1);
|
|
4313
4313
|
const colonIndex = content2.indexOf(":");
|
|
4314
4314
|
const property = content2.slice(0, colonIndex);
|
|
4315
4315
|
return property ? ARBITRARY_PROPERTY_PREFIX$1 + property : void 0;
|
|
@@ -4440,18 +4440,18 @@ const createParseClassName$1 = (config2) => {
|
|
|
4440
4440
|
prefix,
|
|
4441
4441
|
experimentalParseClassName
|
|
4442
4442
|
} = config2;
|
|
4443
|
-
let parseClassName = (
|
|
4443
|
+
let parseClassName = (className2) => {
|
|
4444
4444
|
const modifiers = [];
|
|
4445
4445
|
let bracketDepth = 0;
|
|
4446
4446
|
let parenDepth = 0;
|
|
4447
4447
|
let modifierStart = 0;
|
|
4448
4448
|
let postfixModifierPosition;
|
|
4449
|
-
const len =
|
|
4449
|
+
const len = className2.length;
|
|
4450
4450
|
for (let index2 = 0; index2 < len; index2++) {
|
|
4451
|
-
const currentCharacter =
|
|
4451
|
+
const currentCharacter = className2[index2];
|
|
4452
4452
|
if (bracketDepth === 0 && parenDepth === 0) {
|
|
4453
4453
|
if (currentCharacter === MODIFIER_SEPARATOR$1) {
|
|
4454
|
-
modifiers.push(
|
|
4454
|
+
modifiers.push(className2.slice(modifierStart, index2));
|
|
4455
4455
|
modifierStart = index2 + 1;
|
|
4456
4456
|
continue;
|
|
4457
4457
|
}
|
|
@@ -4465,7 +4465,7 @@ const createParseClassName$1 = (config2) => {
|
|
|
4465
4465
|
else if (currentCharacter === "(") parenDepth++;
|
|
4466
4466
|
else if (currentCharacter === ")") parenDepth--;
|
|
4467
4467
|
}
|
|
4468
|
-
const baseClassNameWithImportantModifier = modifiers.length === 0 ?
|
|
4468
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className2 : className2.slice(modifierStart);
|
|
4469
4469
|
let baseClassName = baseClassNameWithImportantModifier;
|
|
4470
4470
|
let hasImportantModifier = false;
|
|
4471
4471
|
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER$1)) {
|
|
@@ -4487,12 +4487,12 @@ const createParseClassName$1 = (config2) => {
|
|
|
4487
4487
|
if (prefix) {
|
|
4488
4488
|
const fullPrefix = prefix + MODIFIER_SEPARATOR$1;
|
|
4489
4489
|
const parseClassNameOriginal = parseClassName;
|
|
4490
|
-
parseClassName = (
|
|
4490
|
+
parseClassName = (className2) => className2.startsWith(fullPrefix) ? parseClassNameOriginal(className2.slice(fullPrefix.length)) : createResultObject$1(EMPTY_MODIFIERS$1, false, className2, void 0, true);
|
|
4491
4491
|
}
|
|
4492
4492
|
if (experimentalParseClassName) {
|
|
4493
4493
|
const parseClassNameOriginal = parseClassName;
|
|
4494
|
-
parseClassName = (
|
|
4495
|
-
className,
|
|
4494
|
+
parseClassName = (className2) => experimentalParseClassName({
|
|
4495
|
+
className: className2,
|
|
4496
4496
|
parseClassName: parseClassNameOriginal
|
|
4497
4497
|
});
|
|
4498
4498
|
}
|
|
@@ -4711,14 +4711,14 @@ const getIsArbitraryVariable$1 = (value, testLabel, shouldMatchNoLabel = false)
|
|
|
4711
4711
|
}
|
|
4712
4712
|
return false;
|
|
4713
4713
|
};
|
|
4714
|
-
const isLabelPosition$1 = (
|
|
4715
|
-
const isLabelImage$1 = (
|
|
4716
|
-
const isLabelSize$1 = (
|
|
4717
|
-
const isLabelLength$1 = (
|
|
4718
|
-
const isLabelNumber$1 = (
|
|
4719
|
-
const isLabelFamilyName$1 = (
|
|
4720
|
-
const isLabelWeight$1 = (
|
|
4721
|
-
const isLabelShadow$1 = (
|
|
4714
|
+
const isLabelPosition$1 = (label2) => label2 === "position" || label2 === "percentage";
|
|
4715
|
+
const isLabelImage$1 = (label2) => label2 === "image" || label2 === "url";
|
|
4716
|
+
const isLabelSize$1 = (label2) => label2 === "length" || label2 === "size" || label2 === "bg-size";
|
|
4717
|
+
const isLabelLength$1 = (label2) => label2 === "length";
|
|
4718
|
+
const isLabelNumber$1 = (label2) => label2 === "number";
|
|
4719
|
+
const isLabelFamilyName$1 = (label2) => label2 === "family-name";
|
|
4720
|
+
const isLabelWeight$1 = (label2) => label2 === "number" || label2 === "weight";
|
|
4721
|
+
const isLabelShadow$1 = (label2) => label2 === "shadow";
|
|
4722
4722
|
const getDefaultConfig$1 = () => {
|
|
4723
4723
|
const themeColor = fromTheme$1("color");
|
|
4724
4724
|
const themeFont = fromTheme$1("font");
|
|
@@ -11865,7 +11865,7 @@ const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468
|
|
|
11865
11865
|
function anchor(source) {
|
|
11866
11866
|
return new RegExp(`^${source}$`);
|
|
11867
11867
|
}
|
|
11868
|
-
const date$
|
|
11868
|
+
const date$2 = /* @__PURE__ */ anchor(dateSource);
|
|
11869
11869
|
function timeSource(args) {
|
|
11870
11870
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
11871
11871
|
const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : args.seconds ? `${hhmm}:[0-5]\\d(?:\\.\\d+)?` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -11883,13 +11883,13 @@ function datetime(args) {
|
|
|
11883
11883
|
return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
|
|
11884
11884
|
}
|
|
11885
11885
|
const anyString = /^[\s\S]{0,}$/;
|
|
11886
|
-
const string$
|
|
11886
|
+
const string$4 = (params) => {
|
|
11887
11887
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
11888
11888
|
return new RegExp(`^${regex}$`);
|
|
11889
11889
|
};
|
|
11890
11890
|
const integer = /^-?\d+$/;
|
|
11891
|
-
const number$
|
|
11892
|
-
const boolean$
|
|
11891
|
+
const number$5 = /^-?\d+(?:\.\d+)?$/;
|
|
11892
|
+
const boolean$4 = /^(?:true|false)$/i;
|
|
11893
11893
|
const _null$2 = /^null$/i;
|
|
11894
11894
|
const _undefined$2 = /^undefined$/i;
|
|
11895
11895
|
const lowercase = /^[^A-Z]*$/;
|
|
@@ -12617,7 +12617,7 @@ const $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, d
|
|
|
12617
12617
|
$ZodStringFormat.init(inst, def);
|
|
12618
12618
|
});
|
|
12619
12619
|
const $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
|
|
12620
|
-
def.pattern ?? (def.pattern = date$
|
|
12620
|
+
def.pattern ?? (def.pattern = date$2);
|
|
12621
12621
|
$ZodStringFormat.init(inst, def);
|
|
12622
12622
|
});
|
|
12623
12623
|
const $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
|
|
@@ -12779,7 +12779,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
|
|
|
12779
12779
|
});
|
|
12780
12780
|
const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
12781
12781
|
$ZodType.init(inst, def);
|
|
12782
|
-
inst._zod.pattern = number$
|
|
12782
|
+
inst._zod.pattern = number$5;
|
|
12783
12783
|
inst._zod.parse = (payload, _ctx) => {
|
|
12784
12784
|
if (def.coerce)
|
|
12785
12785
|
try {
|
|
@@ -12807,7 +12807,7 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst,
|
|
|
12807
12807
|
});
|
|
12808
12808
|
const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
12809
12809
|
$ZodType.init(inst, def);
|
|
12810
|
-
inst._zod.pattern = boolean$
|
|
12810
|
+
inst._zod.pattern = boolean$4;
|
|
12811
12811
|
inst._zod.parse = (payload, _ctx) => {
|
|
12812
12812
|
if (def.coerce)
|
|
12813
12813
|
try {
|
|
@@ -13633,7 +13633,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
13633
13633
|
if (keyResult instanceof Promise) {
|
|
13634
13634
|
throw new Error("Async schemas not supported in object keys currently");
|
|
13635
13635
|
}
|
|
13636
|
-
const checkNumericKey = typeof key === "string" && number$
|
|
13636
|
+
const checkNumericKey = typeof key === "string" && number$5.test(key) && keyResult.issues.length;
|
|
13637
13637
|
if (checkNumericKey) {
|
|
13638
13638
|
const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
|
|
13639
13639
|
if (retryResult instanceof Promise) {
|
|
@@ -13989,9 +13989,9 @@ function leafPattern(schema) {
|
|
|
13989
13989
|
if (minimum !== void 0 && maximum !== void 0 && minimum > maximum)
|
|
13990
13990
|
return "(?!)";
|
|
13991
13991
|
if (minimum !== void 0 || maximum !== void 0)
|
|
13992
|
-
return string$
|
|
13992
|
+
return string$4({ minimum, maximum }).source;
|
|
13993
13993
|
const own2 = schema._zod.pattern;
|
|
13994
|
-
return (isInt && own2 === number$
|
|
13994
|
+
return (isInt && own2 === number$5 ? integer : own2)?.source;
|
|
13995
13995
|
}
|
|
13996
13996
|
function partPattern(schema) {
|
|
13997
13997
|
const def = schema._zod.def;
|
|
@@ -14129,9 +14129,9 @@ function isRecursive(inst, stack, resolve) {
|
|
|
14129
14129
|
return PROVEN;
|
|
14130
14130
|
stack.add(inst);
|
|
14131
14131
|
let result = NONE;
|
|
14132
|
-
const check = (
|
|
14133
|
-
if (result !== PROVEN &&
|
|
14134
|
-
const answer = isRecursive(
|
|
14132
|
+
const check = (child2) => {
|
|
14133
|
+
if (result !== PROVEN && child2?._zod) {
|
|
14134
|
+
const answer = isRecursive(child2, stack);
|
|
14135
14135
|
if (answer > result)
|
|
14136
14136
|
result = answer;
|
|
14137
14137
|
}
|
|
@@ -14142,9 +14142,9 @@ function isRecursive(inst, stack, resolve) {
|
|
|
14142
14142
|
const desc = Object.getOwnPropertyDescriptor(sh, key);
|
|
14143
14143
|
if (!desc.enumerable)
|
|
14144
14144
|
continue;
|
|
14145
|
-
const
|
|
14146
|
-
if (
|
|
14147
|
-
answer =
|
|
14145
|
+
const child2 = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack) : NONE;
|
|
14146
|
+
if (child2 > answer)
|
|
14147
|
+
answer = child2;
|
|
14148
14148
|
}
|
|
14149
14149
|
return answer;
|
|
14150
14150
|
};
|
|
@@ -16021,7 +16021,7 @@ function stringifyKeyNames(bySchema, json, visited) {
|
|
|
16021
16021
|
return rest;
|
|
16022
16022
|
rest.type = "string";
|
|
16023
16023
|
if (!values)
|
|
16024
|
-
rest.pattern = (types2.includes("number") ? number$
|
|
16024
|
+
rest.pattern = (types2.includes("number") ? number$5 : integer).source;
|
|
16025
16025
|
return rest;
|
|
16026
16026
|
}
|
|
16027
16027
|
const pendingRecords = /* @__PURE__ */ new WeakMap();
|
|
@@ -16566,7 +16566,7 @@ const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
16566
16566
|
return this.check(/* @__PURE__ */ _isoDuration(ZodISODuration, params));
|
|
16567
16567
|
}
|
|
16568
16568
|
});
|
|
16569
|
-
function string$
|
|
16569
|
+
function string$3(params) {
|
|
16570
16570
|
return /* @__PURE__ */ _string(ZodString, params);
|
|
16571
16571
|
}
|
|
16572
16572
|
const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
@@ -16738,7 +16738,7 @@ const ZodNumber = /* @__PURE__ */ $constructor(
|
|
|
16738
16738
|
}
|
|
16739
16739
|
})
|
|
16740
16740
|
);
|
|
16741
|
-
function number$
|
|
16741
|
+
function number$4(params) {
|
|
16742
16742
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
16743
16743
|
}
|
|
16744
16744
|
const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
|
|
@@ -16753,7 +16753,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
16753
16753
|
ZodType.init(inst, def);
|
|
16754
16754
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json);
|
|
16755
16755
|
});
|
|
16756
|
-
function boolean$
|
|
16756
|
+
function boolean$3(params) {
|
|
16757
16757
|
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
16758
16758
|
}
|
|
16759
16759
|
const ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
|
|
@@ -16949,7 +16949,7 @@ function record(keyType, valueType, params) {
|
|
|
16949
16949
|
if (!valueType || !valueType._zod) {
|
|
16950
16950
|
return new ZodRecord({
|
|
16951
16951
|
type: "record",
|
|
16952
|
-
keyType: string$
|
|
16952
|
+
keyType: string$3(),
|
|
16953
16953
|
valueType: keyType,
|
|
16954
16954
|
...normalizeParams(valueType)
|
|
16955
16955
|
});
|
|
@@ -17267,10 +17267,10 @@ function preprocess$1(fn2, schema) {
|
|
|
17267
17267
|
out: schema
|
|
17268
17268
|
});
|
|
17269
17269
|
}
|
|
17270
|
-
function number$
|
|
17270
|
+
function number$3(params) {
|
|
17271
17271
|
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
17272
17272
|
}
|
|
17273
|
-
function date(params) {
|
|
17273
|
+
function date$1(params) {
|
|
17274
17274
|
return /* @__PURE__ */ _coercedDate(ZodDate, params);
|
|
17275
17275
|
}
|
|
17276
17276
|
const RESERVED_ATTRIBUTE_KEY_PREFIX = "$";
|
|
@@ -17305,10 +17305,10 @@ function validateAttributeBatchConstraints(changes, context = {}) {
|
|
|
17305
17305
|
}
|
|
17306
17306
|
}
|
|
17307
17307
|
const textEncoder = new TextEncoder();
|
|
17308
|
-
const AttributeKeySchema = string$
|
|
17308
|
+
const AttributeKeySchema = string$3().min(1, { error: "Attribute key must not be empty" }).max(ATTRIBUTE_KEY_MAX_LENGTH, {
|
|
17309
17309
|
error: `Attribute key exceeds limit ${ATTRIBUTE_KEY_MAX_LENGTH}`
|
|
17310
17310
|
});
|
|
17311
|
-
const AttributeValueSchema = string$
|
|
17311
|
+
const AttributeValueSchema = string$3().refine((value) => textEncoder.encode(value).length <= ATTRIBUTE_VALUE_MAX_BYTES, {
|
|
17312
17312
|
error: `Attribute value exceeds limit ${ATTRIBUTE_VALUE_MAX_BYTES} UTF-8 bytes`
|
|
17313
17313
|
}).nullable();
|
|
17314
17314
|
const AttributeChangeSchema = object({
|
|
@@ -17396,21 +17396,21 @@ const SerializedDataSchema = union([
|
|
|
17396
17396
|
]);
|
|
17397
17397
|
const StartHookSchema = object({
|
|
17398
17398
|
/** The start Hook's token. Non-empty. */
|
|
17399
|
-
token: string$
|
|
17399
|
+
token: string$3().min(1),
|
|
17400
17400
|
/**
|
|
17401
17401
|
* The start Hook's id, {@link startHookId}`(runId)`. Set by the World on
|
|
17402
17402
|
* what it returns (`run.startHook` and the stored
|
|
17403
17403
|
* `run_created.eventData.startHook`); ignored on requests, since the id is
|
|
17404
17404
|
* derived from the run's.
|
|
17405
17405
|
*/
|
|
17406
|
-
hookId: string$
|
|
17406
|
+
hookId: string$3().optional(),
|
|
17407
17407
|
/**
|
|
17408
17408
|
* The start Hook's minimum retention, like `createHook()`'s
|
|
17409
17409
|
* `tokenRetentionUntil`: once the run has ended, the Hook keeps its token
|
|
17410
17410
|
* until this time has passed. Disposing the Hook frees the token earlier.
|
|
17411
17411
|
* Requires `capabilities.hookRetention`.
|
|
17412
17412
|
*/
|
|
17413
|
-
tokenRetentionUntil: date().optional(),
|
|
17413
|
+
tokenRetentionUntil: date$1().optional(),
|
|
17414
17414
|
/**
|
|
17415
17415
|
* The start Hook's metadata, serialized like `createHook({ metadata })`'s
|
|
17416
17416
|
* (the same bytes `hook_created.eventData.metadata` carries).
|
|
@@ -17528,77 +17528,77 @@ const ChildEntityCreationEventTypeSchema = EventTypeSchema.extract([
|
|
|
17528
17528
|
ChildEntityCreationEventTypeSchema.options;
|
|
17529
17529
|
const BaseEventSchema = object({
|
|
17530
17530
|
eventType: EventTypeSchema,
|
|
17531
|
-
correlationId: string$
|
|
17532
|
-
specVersion: number$
|
|
17531
|
+
correlationId: string$3().optional(),
|
|
17532
|
+
specVersion: number$4().optional()
|
|
17533
17533
|
});
|
|
17534
17534
|
const stepLatencyTelemetryFields = {
|
|
17535
17535
|
// Time-to-first-step: milliseconds from run creation until the run's first
|
|
17536
17536
|
// step body began executing, minus time spent committing hook_created
|
|
17537
17537
|
// events. Only reported when nothing else (hooks received, waits,
|
|
17538
17538
|
// attributes, other steps) happened before the first step.
|
|
17539
|
-
ttfs: number$
|
|
17539
|
+
ttfs: number$4().optional(),
|
|
17540
17540
|
// Step-to-step overhead: milliseconds between the previous step's terminal
|
|
17541
17541
|
// event and this step's body beginning to execute. Only reported when the
|
|
17542
17542
|
// two steps ran back-to-back (the previous event-log entry is a
|
|
17543
17543
|
// step_completed/step_failed).
|
|
17544
|
-
stso: number$
|
|
17544
|
+
stso: number$4().optional(),
|
|
17545
17545
|
// Progress counters taken when the STSO gap began. Only present alongside
|
|
17546
17546
|
// stso.
|
|
17547
|
-
stepCount: number$
|
|
17548
|
-
eventCount: number$
|
|
17547
|
+
stepCount: number$4().int().positive().optional(),
|
|
17548
|
+
eventCount: number$4().int().positive().optional(),
|
|
17549
17549
|
// Run-started-to-first-step: milliseconds from the `run_started` response
|
|
17550
17550
|
// landing (or, under turbo, the local run synthesis instant) until this
|
|
17551
17551
|
// step's start POST was issued. A sub-window of ttfs. Only reported
|
|
17552
17552
|
// alongside the same eligibility as ttfs.
|
|
17553
|
-
rsfs: number$
|
|
17553
|
+
rsfs: number$4().optional(),
|
|
17554
17554
|
// Synchronous workflow-function replay duration of only the FINAL replay
|
|
17555
17555
|
// pass within the rsfs window (the pass that scheduled the first step),
|
|
17556
17556
|
// excluding awaited network I/O. Not accumulated across earlier
|
|
17557
17557
|
// pre-first-step passes, so it is not "the replay portion of rsfs". Only
|
|
17558
17558
|
// present alongside rsfs, and only for the run's first step.
|
|
17559
|
-
finalSchedulingReplay: number$
|
|
17559
|
+
finalSchedulingReplay: number$4().optional(),
|
|
17560
17560
|
// Names of the runtime's optional startup-latency optimizations that were
|
|
17561
17561
|
// active for this measurement (e.g. 'turbo', 'lazyStepStart',
|
|
17562
17562
|
// 'optimisticStart'), so latency metrics can be segmented by them.
|
|
17563
|
-
optimizations: array(string$
|
|
17563
|
+
optimizations: array(string$3()).optional()
|
|
17564
17564
|
};
|
|
17565
17565
|
const StepCompletedEventSchema = BaseEventSchema.extend({
|
|
17566
17566
|
eventType: literal("step_completed"),
|
|
17567
|
-
correlationId: string$
|
|
17567
|
+
correlationId: string$3(),
|
|
17568
17568
|
eventData: object({
|
|
17569
|
-
stepName: string$
|
|
17569
|
+
stepName: string$3().optional(),
|
|
17570
17570
|
// Carried so a backend that keys payload refs by workflow name can build
|
|
17571
17571
|
// the key without an extra run lookup on this hot per-step write.
|
|
17572
17572
|
// Optional: older runtimes omit it and the backend falls back to a read.
|
|
17573
|
-
workflowName: string$
|
|
17573
|
+
workflowName: string$3().optional(),
|
|
17574
17574
|
result: SerializedDataSchema,
|
|
17575
17575
|
...stepLatencyTelemetryFields
|
|
17576
17576
|
})
|
|
17577
17577
|
});
|
|
17578
17578
|
const StepFailedEventSchema = BaseEventSchema.extend({
|
|
17579
17579
|
eventType: literal("step_failed"),
|
|
17580
|
-
correlationId: string$
|
|
17580
|
+
correlationId: string$3(),
|
|
17581
17581
|
eventData: object({
|
|
17582
|
-
stepName: string$
|
|
17582
|
+
stepName: string$3().optional(),
|
|
17583
17583
|
// The thrown value, serialized via the workflow serialization pipeline.
|
|
17584
17584
|
// Can be any JavaScript value (string, number, object, Error, etc.)
|
|
17585
17585
|
error: SerializedDataSchema,
|
|
17586
17586
|
/** The attempt that failed (spec >= 9). */
|
|
17587
|
-
attempt: number$
|
|
17587
|
+
attempt: number$4().int().positive().optional(),
|
|
17588
17588
|
...stepLatencyTelemetryFields
|
|
17589
17589
|
})
|
|
17590
17590
|
});
|
|
17591
17591
|
const StepRetryingEventSchema = BaseEventSchema.extend({
|
|
17592
17592
|
eventType: literal("step_retrying"),
|
|
17593
|
-
correlationId: string$
|
|
17593
|
+
correlationId: string$3(),
|
|
17594
17594
|
eventData: object({
|
|
17595
|
-
stepName: string$
|
|
17595
|
+
stepName: string$3().optional(),
|
|
17596
17596
|
// The thrown value, serialized via the workflow serialization pipeline.
|
|
17597
17597
|
// Can be any JavaScript value (string, number, object, Error, etc.)
|
|
17598
17598
|
error: SerializedDataSchema,
|
|
17599
|
-
retryAfter: date().optional(),
|
|
17599
|
+
retryAfter: date$1().optional(),
|
|
17600
17600
|
/** The attempt that failed (spec >= 9). */
|
|
17601
|
-
attempt: number$
|
|
17601
|
+
attempt: number$4().int().positive().optional(),
|
|
17602
17602
|
/**
|
|
17603
17603
|
* Queue message id of the orchestrator delivery that wrote this event
|
|
17604
17604
|
* (spec >= 9): set only when an inline step's failed attempt moves its
|
|
@@ -17606,18 +17606,18 @@ const StepRetryingEventSchema = BaseEventSchema.extend({
|
|
|
17606
17606
|
* enqueues the step's message again, and only while this is the step's
|
|
17607
17607
|
* last event. Absent when the step's own message wrote it.
|
|
17608
17608
|
*/
|
|
17609
|
-
creatorMessageId: string$
|
|
17609
|
+
creatorMessageId: string$3().optional()
|
|
17610
17610
|
})
|
|
17611
17611
|
});
|
|
17612
17612
|
const StepStartedEventSchema = BaseEventSchema.extend({
|
|
17613
17613
|
eventType: literal("step_started"),
|
|
17614
|
-
correlationId: string$
|
|
17614
|
+
correlationId: string$3(),
|
|
17615
17615
|
eventData: object({
|
|
17616
|
-
stepName: string$
|
|
17617
|
-
attempt: number$
|
|
17616
|
+
stepName: string$3().optional(),
|
|
17617
|
+
attempt: number$4().optional(),
|
|
17618
17618
|
// Carried on the lazy-start path (where `input` is present) so the
|
|
17619
17619
|
// backend can build the payload ref key without re-reading the run.
|
|
17620
|
-
workflowName: string$
|
|
17620
|
+
workflowName: string$3().optional(),
|
|
17621
17621
|
// Lazy-start: the dehydrated step input, present only when this
|
|
17622
17622
|
// step_started is also responsible for creating the step. On a
|
|
17623
17623
|
// single-orchestrator run (spec >= 9) an inline step has no
|
|
@@ -17629,7 +17629,7 @@ const StepStartedEventSchema = BaseEventSchema.extend({
|
|
|
17629
17629
|
* `step_created.eventData.inline` (spec >= 9): always `true`, since
|
|
17630
17630
|
* only an inline step is created by its start.
|
|
17631
17631
|
*/
|
|
17632
|
-
inline: boolean$
|
|
17632
|
+
inline: boolean$3().optional(),
|
|
17633
17633
|
// Inline step ownership: the queue message ID of the invocation whose
|
|
17634
17634
|
// handler is executing this step's body inline. Stamped on the lazy
|
|
17635
17635
|
// step_started (and re-stamped on an owner-recovery bare start) so
|
|
@@ -17642,15 +17642,15 @@ const StepStartedEventSchema = BaseEventSchema.extend({
|
|
|
17642
17642
|
// message) clears it. Absent on eager steps and from older runtimes.
|
|
17643
17643
|
// Requires the queue's messageId to be stable across redeliveries of
|
|
17644
17644
|
// one message (see the Queue.createQueueHandler meta contract).
|
|
17645
|
-
ownerMessageId: string$
|
|
17645
|
+
ownerMessageId: string$3().optional()
|
|
17646
17646
|
}).optional()
|
|
17647
17647
|
});
|
|
17648
17648
|
const StepCreatedEventSchema = BaseEventSchema.extend({
|
|
17649
17649
|
eventType: literal("step_created"),
|
|
17650
|
-
correlationId: string$
|
|
17650
|
+
correlationId: string$3(),
|
|
17651
17651
|
eventData: object({
|
|
17652
|
-
stepName: string$
|
|
17653
|
-
workflowName: string$
|
|
17652
|
+
stepName: string$3(),
|
|
17653
|
+
workflowName: string$3().optional(),
|
|
17654
17654
|
input: SerializedDataSchema,
|
|
17655
17655
|
/**
|
|
17656
17656
|
* The step's execution mode, fixed at creation (spec >= 9). `true`: the
|
|
@@ -17659,25 +17659,25 @@ const StepCreatedEventSchema = BaseEventSchema.extend({
|
|
|
17659
17659
|
* (or absent): the step was handed to the queue, and only its queue
|
|
17660
17660
|
* message's invocation ever runs the body.
|
|
17661
17661
|
*/
|
|
17662
|
-
inline: boolean$
|
|
17662
|
+
inline: boolean$3().optional(),
|
|
17663
17663
|
/**
|
|
17664
17664
|
* Queue message id of the orchestrator delivery that wrote this event
|
|
17665
17665
|
* (spec >= 9). A background step is enqueued again only by a
|
|
17666
17666
|
* redelivery of this same message, and only while the step has no
|
|
17667
17667
|
* `step_started`.
|
|
17668
17668
|
*/
|
|
17669
|
-
creatorMessageId: string$
|
|
17669
|
+
creatorMessageId: string$3().optional()
|
|
17670
17670
|
})
|
|
17671
17671
|
});
|
|
17672
17672
|
const HookCreatedEventSchema = BaseEventSchema.extend({
|
|
17673
17673
|
eventType: literal("hook_created"),
|
|
17674
|
-
correlationId: string$
|
|
17674
|
+
correlationId: string$3(),
|
|
17675
17675
|
eventData: object({
|
|
17676
|
-
token: string$
|
|
17677
|
-
tokenRetentionUntil: date().optional(),
|
|
17676
|
+
token: string$3(),
|
|
17677
|
+
tokenRetentionUntil: date$1().optional(),
|
|
17678
17678
|
metadata: SerializedDataSchema.optional(),
|
|
17679
|
-
isWebhook: boolean$
|
|
17680
|
-
isSystem: boolean$
|
|
17679
|
+
isWebhook: boolean$3().optional(),
|
|
17680
|
+
isSystem: boolean$3().optional(),
|
|
17681
17681
|
/**
|
|
17682
17682
|
* `createHook({ experimental_force: true })`: when the token belongs to
|
|
17683
17683
|
* another live run, the World takes it over — journaling
|
|
@@ -17685,7 +17685,7 @@ const HookCreatedEventSchema = BaseEventSchema.extend({
|
|
|
17685
17685
|
* token — instead of answering `hook_conflict`. Requires the
|
|
17686
17686
|
* `hookForceClaim` capability.
|
|
17687
17687
|
*/
|
|
17688
|
-
force: boolean$
|
|
17688
|
+
force: boolean$3().optional(),
|
|
17689
17689
|
/**
|
|
17690
17690
|
* World-written on a forced creation that did take a token over: the
|
|
17691
17691
|
* run and hook it was taken from, plus what a queue message to that run
|
|
@@ -17695,49 +17695,49 @@ const HookCreatedEventSchema = BaseEventSchema.extend({
|
|
|
17695
17695
|
* the row alone; see `publishForceClaimVictimWake` in @workflow/core.
|
|
17696
17696
|
*/
|
|
17697
17697
|
forceClaimedFrom: object({
|
|
17698
|
-
runId: string$
|
|
17699
|
-
hookId: string$
|
|
17700
|
-
workflowName: string$
|
|
17701
|
-
deploymentId: string$
|
|
17702
|
-
runSpecVersion: number$
|
|
17698
|
+
runId: string$3(),
|
|
17699
|
+
hookId: string$3(),
|
|
17700
|
+
workflowName: string$3().optional(),
|
|
17701
|
+
deploymentId: string$3().optional(),
|
|
17702
|
+
runSpecVersion: number$4().optional()
|
|
17703
17703
|
}).optional()
|
|
17704
17704
|
})
|
|
17705
17705
|
});
|
|
17706
17706
|
const HookReceivedEventSchema = BaseEventSchema.extend({
|
|
17707
17707
|
eventType: literal("hook_received"),
|
|
17708
|
-
correlationId: string$
|
|
17708
|
+
correlationId: string$3(),
|
|
17709
17709
|
eventData: object({
|
|
17710
|
-
token: string$
|
|
17710
|
+
token: string$3().optional(),
|
|
17711
17711
|
// The target run's workflow name, sent by `resumeHook()` on a spec 9 run
|
|
17712
17712
|
// so a backend that keys payload refs by workflow name can build the key
|
|
17713
17713
|
// without reading the run first (as on `step_completed`). Optional:
|
|
17714
17714
|
// older runtimes and older runs omit it.
|
|
17715
|
-
workflowName: string$
|
|
17715
|
+
workflowName: string$3().optional(),
|
|
17716
17716
|
payload: SerializedDataSchema
|
|
17717
17717
|
})
|
|
17718
17718
|
});
|
|
17719
17719
|
const HookDisposedEventSchema = BaseEventSchema.extend({
|
|
17720
17720
|
eventType: literal("hook_disposed"),
|
|
17721
|
-
correlationId: string$
|
|
17721
|
+
correlationId: string$3(),
|
|
17722
17722
|
eventData: object({
|
|
17723
|
-
token: string$
|
|
17723
|
+
token: string$3().optional(),
|
|
17724
17724
|
/**
|
|
17725
17725
|
* World-written: this disposal was not the run's own. Another run
|
|
17726
17726
|
* took the hook's token with `experimental_force`, and this names
|
|
17727
17727
|
* it. The hook consumer rejects the hook's awaiters with
|
|
17728
17728
|
* `HookForceClaimedError` when it reads this row.
|
|
17729
17729
|
*/
|
|
17730
|
-
forceClaimedBy: object({ runId: string$
|
|
17730
|
+
forceClaimedBy: object({ runId: string$3(), hookId: string$3() }).optional()
|
|
17731
17731
|
}).optional()
|
|
17732
17732
|
});
|
|
17733
17733
|
const HookConflictEventSchema = BaseEventSchema.extend({
|
|
17734
17734
|
eventType: literal("hook_conflict"),
|
|
17735
|
-
correlationId: string$
|
|
17735
|
+
correlationId: string$3(),
|
|
17736
17736
|
eventData: object({
|
|
17737
|
-
token: string$
|
|
17737
|
+
token: string$3(),
|
|
17738
17738
|
// TODO: Make this required once all persisted hook_conflict events and
|
|
17739
17739
|
// remote World implementations always include the active hook owner's run ID.
|
|
17740
|
-
conflictingRunId: string$
|
|
17740
|
+
conflictingRunId: string$3().optional(),
|
|
17741
17741
|
/**
|
|
17742
17742
|
* Set when the creation asked for `force` and the World declined to take
|
|
17743
17743
|
* the token over. `victim-spec-version`: the run holding the token was
|
|
@@ -17755,66 +17755,66 @@ const HookConflictEventSchema = BaseEventSchema.extend({
|
|
|
17755
17755
|
const NoopEventSchema = BaseEventSchema.extend({
|
|
17756
17756
|
eventType: literal("noop"),
|
|
17757
17757
|
eventData: object({
|
|
17758
|
-
sealed: boolean$
|
|
17758
|
+
sealed: boolean$3().optional()
|
|
17759
17759
|
}).passthrough().optional()
|
|
17760
17760
|
});
|
|
17761
17761
|
const WaitCreatedEventSchema = BaseEventSchema.extend({
|
|
17762
17762
|
eventType: literal("wait_created"),
|
|
17763
|
-
correlationId: string$
|
|
17763
|
+
correlationId: string$3(),
|
|
17764
17764
|
eventData: object({
|
|
17765
|
-
resumeAt: date(),
|
|
17765
|
+
resumeAt: date$1(),
|
|
17766
17766
|
/**
|
|
17767
17767
|
* Queue message id of the orchestrator delivery that wrote this event
|
|
17768
17768
|
* (spec >= 9). Only that delivery, or a redelivery of the same message,
|
|
17769
17769
|
* schedules the wait's timer.
|
|
17770
17770
|
*/
|
|
17771
|
-
creatorMessageId: string$
|
|
17771
|
+
creatorMessageId: string$3().optional()
|
|
17772
17772
|
})
|
|
17773
17773
|
});
|
|
17774
17774
|
const WaitCompletedEventSchema = BaseEventSchema.extend({
|
|
17775
17775
|
eventType: literal("wait_completed"),
|
|
17776
|
-
correlationId: string$
|
|
17776
|
+
correlationId: string$3(),
|
|
17777
17777
|
eventData: object({
|
|
17778
|
-
resumeAt: date().optional()
|
|
17778
|
+
resumeAt: date$1().optional()
|
|
17779
17779
|
}).optional()
|
|
17780
17780
|
});
|
|
17781
17781
|
const RateCallSchema = object({
|
|
17782
17782
|
/** The key whose rate is limited. Shared by every run of the project. */
|
|
17783
|
-
key: string$
|
|
17783
|
+
key: string$3(),
|
|
17784
17784
|
/** How many calls the key admits per `periodMs`. */
|
|
17785
|
-
limit: number$
|
|
17786
|
-
periodMs: number$
|
|
17785
|
+
limit: number$4(),
|
|
17786
|
+
periodMs: number$4(),
|
|
17787
17787
|
/** The call's deadline: past it, the call fails instead of waiting. */
|
|
17788
|
-
expiresAt: date(),
|
|
17788
|
+
expiresAt: date$1(),
|
|
17789
17789
|
/**
|
|
17790
17790
|
* How many calls may go at once on an idle key, at least 1, saving up at
|
|
17791
17791
|
* most 24 hours of the rate. Absent for no burst. Recorded, so a call
|
|
17792
17792
|
* reserved again keeps it.
|
|
17793
17793
|
*/
|
|
17794
|
-
burst: number$
|
|
17794
|
+
burst: number$4().int().positive().optional()
|
|
17795
17795
|
});
|
|
17796
17796
|
const RateCreatedEventSchema = BaseEventSchema.extend({
|
|
17797
17797
|
eventType: literal("rate_created"),
|
|
17798
|
-
correlationId: string$
|
|
17798
|
+
correlationId: string$3(),
|
|
17799
17799
|
eventData: RateCallSchema.extend({
|
|
17800
17800
|
/**
|
|
17801
17801
|
* The reserved slot. Set by the World on the committed event, never by
|
|
17802
17802
|
* the runtime's request: the run waits until then.
|
|
17803
17803
|
*/
|
|
17804
|
-
acquireAt: date().optional(),
|
|
17804
|
+
acquireAt: date$1().optional(),
|
|
17805
17805
|
/**
|
|
17806
17806
|
* Queue message id of the orchestrator delivery that wrote this event.
|
|
17807
17807
|
* As for `wait_created`, only that delivery, or a redelivery of the same
|
|
17808
17808
|
* message, schedules the wait's timer; the World keeps it on the
|
|
17809
17809
|
* committed event.
|
|
17810
17810
|
*/
|
|
17811
|
-
creatorMessageId: string$
|
|
17811
|
+
creatorMessageId: string$3().optional(),
|
|
17812
17812
|
/**
|
|
17813
17813
|
* Set by the World on a `rate_created` it reserved again after a late
|
|
17814
17814
|
* wake: how many times the call was woken past its grace. It sets the
|
|
17815
17815
|
* grace the call's next wake is judged with. Never set by the runtime.
|
|
17816
17816
|
*/
|
|
17817
|
-
lateWakes: number$
|
|
17817
|
+
lateWakes: number$4().int().nonnegative().optional(),
|
|
17818
17818
|
/**
|
|
17819
17819
|
* The request's opt-in to a key in the reserved `$` namespace
|
|
17820
17820
|
* (`RESERVED_RATE_LIMIT_KEY_PREFIX`), for Workflow SDK libraries. Checked
|
|
@@ -17825,28 +17825,28 @@ const RateCreatedEventSchema = BaseEventSchema.extend({
|
|
|
17825
17825
|
});
|
|
17826
17826
|
const RateAcquiredEventSchema = BaseEventSchema.extend({
|
|
17827
17827
|
eventType: literal("rate_acquired"),
|
|
17828
|
-
correlationId: string$
|
|
17828
|
+
correlationId: string$3(),
|
|
17829
17829
|
eventData: RateCallSchema.partial().extend({
|
|
17830
17830
|
/** The slot the call went ahead at (set by the World). */
|
|
17831
|
-
acquireAt: date().optional(),
|
|
17831
|
+
acquireAt: date$1().optional(),
|
|
17832
17832
|
/**
|
|
17833
17833
|
* After a wait: the log slot of the call's own `rate_created`. The World
|
|
17834
17834
|
* reads that event back and commits its `acquireAt`, never one the
|
|
17835
17835
|
* request carries. Absent when the World committed `rate_acquired` in
|
|
17836
17836
|
* place of the `rate_created`.
|
|
17837
17837
|
*/
|
|
17838
|
-
createdSlot: number$
|
|
17838
|
+
createdSlot: number$4().int().positive().optional()
|
|
17839
17839
|
})
|
|
17840
17840
|
});
|
|
17841
17841
|
const RateFailedEventSchema = BaseEventSchema.extend({
|
|
17842
17842
|
eventType: literal("rate_failed"),
|
|
17843
|
-
correlationId: string$
|
|
17843
|
+
correlationId: string$3(),
|
|
17844
17844
|
eventData: RateCallSchema.extend({
|
|
17845
17845
|
reason: literal("max_wait"),
|
|
17846
17846
|
/** The slot the call would have had. */
|
|
17847
|
-
acquireAt: date().optional(),
|
|
17847
|
+
acquireAt: date$1().optional(),
|
|
17848
17848
|
/** As on `rate_created`: late wakes before the call failed. */
|
|
17849
|
-
lateWakes: number$
|
|
17849
|
+
lateWakes: number$4().int().nonnegative().optional()
|
|
17850
17850
|
})
|
|
17851
17851
|
});
|
|
17852
17852
|
const AttributeWriterSchema = discriminatedUnion("type", [
|
|
@@ -17855,13 +17855,13 @@ const AttributeWriterSchema = discriminatedUnion("type", [
|
|
|
17855
17855
|
}),
|
|
17856
17856
|
object({
|
|
17857
17857
|
type: literal("step"),
|
|
17858
|
-
stepId: string$
|
|
17859
|
-
attempt: number$
|
|
17858
|
+
stepId: string$3(),
|
|
17859
|
+
attempt: number$4()
|
|
17860
17860
|
})
|
|
17861
17861
|
]);
|
|
17862
17862
|
const AttrSetEventSchema = BaseEventSchema.extend({
|
|
17863
17863
|
eventType: literal("attr_set"),
|
|
17864
|
-
correlationId: string$
|
|
17864
|
+
correlationId: string$3().optional(),
|
|
17865
17865
|
eventData: object({
|
|
17866
17866
|
changes: AttributeChangesSchema,
|
|
17867
17867
|
writer: AttributeWriterSchema,
|
|
@@ -17871,11 +17871,11 @@ const AttrSetEventSchema = BaseEventSchema.extend({
|
|
|
17871
17871
|
const RunCreatedEventSchema = BaseEventSchema.extend({
|
|
17872
17872
|
eventType: literal("run_created"),
|
|
17873
17873
|
eventData: object({
|
|
17874
|
-
deploymentId: string$
|
|
17875
|
-
workflowName: string$
|
|
17874
|
+
deploymentId: string$3(),
|
|
17875
|
+
workflowName: string$3(),
|
|
17876
17876
|
input: SerializedDataSchema,
|
|
17877
|
-
executionContext: record(string$
|
|
17878
|
-
attributes: record(string$
|
|
17877
|
+
executionContext: record(string$3(), any()).optional(),
|
|
17878
|
+
attributes: record(string$3(), string$3()).optional(),
|
|
17879
17879
|
allowReservedAttributes: literal(true).optional(),
|
|
17880
17880
|
/**
|
|
17881
17881
|
* A dynamic run's serialized workflow VM code. The World materializes it
|
|
@@ -17887,14 +17887,14 @@ const RunCreatedEventSchema = BaseEventSchema.extend({
|
|
|
17887
17887
|
* Ref for dynamic workflow code uploaded before this write. Worlds must
|
|
17888
17888
|
* validate it against the caller and run before attaching it.
|
|
17889
17889
|
*/
|
|
17890
|
-
dynamicWorkflowCodeRef: string$
|
|
17890
|
+
dynamicWorkflowCodeRef: string$3().optional(),
|
|
17891
17891
|
/**
|
|
17892
17892
|
* The run's X25519 public key (base64), stamped by SDKs that support
|
|
17893
17893
|
* sealed (`encp`) envelopes. Persisted onto the run entity so that
|
|
17894
17894
|
* cross-run writers can seal payloads to this run without holding its
|
|
17895
17895
|
* symmetric key. Not secret. See `WorkflowRunBaseSchema`.
|
|
17896
17896
|
*/
|
|
17897
|
-
encryptionPublicKey: string$
|
|
17897
|
+
encryptionPublicKey: string$3().optional(),
|
|
17898
17898
|
/**
|
|
17899
17899
|
* Create the run's start Hook (id `startHookId(runId)`) for this token
|
|
17900
17900
|
* atomically with the run's creation. Only sent to Worlds that declare
|
|
@@ -17915,10 +17915,10 @@ const RunStartedEventSchema = BaseEventSchema.extend({
|
|
|
17915
17915
|
eventType: literal("run_started"),
|
|
17916
17916
|
eventData: object({
|
|
17917
17917
|
input: SerializedDataSchema.optional(),
|
|
17918
|
-
deploymentId: string$
|
|
17919
|
-
workflowName: string$
|
|
17920
|
-
executionContext: record(string$
|
|
17921
|
-
attributes: record(string$
|
|
17918
|
+
deploymentId: string$3().optional(),
|
|
17919
|
+
workflowName: string$3().optional(),
|
|
17920
|
+
executionContext: record(string$3(), any()).optional(),
|
|
17921
|
+
attributes: record(string$3(), string$3()).optional(),
|
|
17922
17922
|
allowReservedAttributes: literal(true).optional(),
|
|
17923
17923
|
/**
|
|
17924
17924
|
* Mirrors `run_created.eventData.encryptionPublicKey`. Carried here for
|
|
@@ -17926,10 +17926,10 @@ const RunStartedEventSchema = BaseEventSchema.extend({
|
|
|
17926
17926
|
* server creates the run from this event instead, and without the key
|
|
17927
17927
|
* the run would silently lose its ability to receive sealed writes.
|
|
17928
17928
|
*/
|
|
17929
|
-
encryptionPublicKey: string$
|
|
17929
|
+
encryptionPublicKey: string$3().optional(),
|
|
17930
17930
|
/** Dynamic code carried for resilient run creation. */
|
|
17931
17931
|
dynamicWorkflowCode: SerializedDataSchema.optional(),
|
|
17932
|
-
dynamicWorkflowCodeRef: string$
|
|
17932
|
+
dynamicWorkflowCodeRef: string$3().optional(),
|
|
17933
17933
|
/**
|
|
17934
17934
|
* Mirrors `run_created.eventData.startHook` for the queued copy of an
|
|
17935
17935
|
* atomic start. Either write may admit the candidate, and both must
|
|
@@ -17957,7 +17957,7 @@ const RunFailedEventSchema = BaseEventSchema.extend({
|
|
|
17957
17957
|
// for routing and classification. Kept as plaintext metadata so
|
|
17958
17958
|
// observability tools can filter/categorize without needing to decrypt
|
|
17959
17959
|
// the full error payload.
|
|
17960
|
-
errorCode: string$
|
|
17960
|
+
errorCode: string$3().optional()
|
|
17961
17961
|
})
|
|
17962
17962
|
});
|
|
17963
17963
|
const RunCancelledEventSchema = BaseEventSchema.extend({
|
|
@@ -17966,7 +17966,7 @@ const RunCancelledEventSchema = BaseEventSchema.extend({
|
|
|
17966
17966
|
// Optional free-text reason for the cancellation. Kept as small
|
|
17967
17967
|
// plaintext metadata (like run_failed's errorCode) so it survives
|
|
17968
17968
|
// resolveData: 'none' and can be displayed without decryption.
|
|
17969
|
-
cancelReason: string$
|
|
17969
|
+
cancelReason: string$3().max(512).optional()
|
|
17970
17970
|
}).optional()
|
|
17971
17971
|
});
|
|
17972
17972
|
discriminatedUnion("eventType", [
|
|
@@ -18026,11 +18026,11 @@ const AllEventsSchema = discriminatedUnion("eventType", [
|
|
|
18026
18026
|
// World-only: sealed-log filler for an abandoned slot
|
|
18027
18027
|
]);
|
|
18028
18028
|
AllEventsSchema.and(object({
|
|
18029
|
-
runId: string$
|
|
18030
|
-
eventId: string$
|
|
18031
|
-
createdAt: date(),
|
|
18032
|
-
occurredAt: date().optional(),
|
|
18033
|
-
specVersion: number$
|
|
18029
|
+
runId: string$3(),
|
|
18030
|
+
eventId: string$3(),
|
|
18031
|
+
createdAt: date$1(),
|
|
18032
|
+
occurredAt: date$1().optional(),
|
|
18033
|
+
specVersion: number$4().optional(),
|
|
18034
18034
|
/**
|
|
18035
18035
|
* Lazy hook resume idempotency key, persisted on `hook_received` events so
|
|
18036
18036
|
* the queue consumer can detect that the producer's concurrent direct write
|
|
@@ -18038,7 +18038,7 @@ AllEventsSchema.and(object({
|
|
|
18038
18038
|
* Mirrors {@link CreateEventParams.resumeId}; absent on all other events and
|
|
18039
18039
|
* on legacy (non-lazy) resumes.
|
|
18040
18040
|
*/
|
|
18041
|
-
resumeId: string$
|
|
18041
|
+
resumeId: string$3().optional()
|
|
18042
18042
|
}));
|
|
18043
18043
|
const WorkflowRunStatusSchema = _enum([
|
|
18044
18044
|
"pending",
|
|
@@ -18057,9 +18057,9 @@ function isTerminalWorkflowRunStatus(status) {
|
|
|
18057
18057
|
return TERMINAL_WORKFLOW_RUN_STATUSES.includes(status);
|
|
18058
18058
|
}
|
|
18059
18059
|
const WorkflowRunBaseSchema = object({
|
|
18060
|
-
runId: string$
|
|
18060
|
+
runId: string$3(),
|
|
18061
18061
|
status: WorkflowRunStatusSchema,
|
|
18062
|
-
deploymentId: string$
|
|
18062
|
+
deploymentId: string$3(),
|
|
18063
18063
|
/**
|
|
18064
18064
|
* The machine-readable name of the workflow function.
|
|
18065
18065
|
*
|
|
@@ -18080,10 +18080,10 @@ const WorkflowRunBaseSchema = object({
|
|
|
18080
18080
|
* // parsed.moduleSpecifier → "./src/workflows/order"
|
|
18081
18081
|
* ```
|
|
18082
18082
|
*/
|
|
18083
|
-
workflowName: string$
|
|
18083
|
+
workflowName: string$3(),
|
|
18084
18084
|
// Optional in database for backward compatibility, defaults to 1 (legacy) when reading
|
|
18085
|
-
specVersion: number$
|
|
18086
|
-
executionContext: record(string$
|
|
18085
|
+
specVersion: number$4().optional(),
|
|
18086
|
+
executionContext: record(string$3(), any()).optional(),
|
|
18087
18087
|
input: SerializedDataSchema.optional(),
|
|
18088
18088
|
output: SerializedDataSchema.optional(),
|
|
18089
18089
|
/**
|
|
@@ -18106,7 +18106,7 @@ const WorkflowRunBaseSchema = object({
|
|
|
18106
18106
|
* run_failed event. Kept as plaintext metadata for routing and filtering
|
|
18107
18107
|
* without needing to decrypt the full error payload.
|
|
18108
18108
|
*/
|
|
18109
|
-
errorCode: string$
|
|
18109
|
+
errorCode: string$3().optional(),
|
|
18110
18110
|
/**
|
|
18111
18111
|
* Plaintext string-string metadata attached to the run via
|
|
18112
18112
|
* `setAttributes()` (or, in the future, materialized
|
|
@@ -18124,7 +18124,7 @@ const WorkflowRunBaseSchema = object({
|
|
|
18124
18124
|
* the direct-mutation MVP path with an event-sourced model. See
|
|
18125
18125
|
* the attributes-mvp changelog entry.
|
|
18126
18126
|
*/
|
|
18127
|
-
attributes: record(string$
|
|
18127
|
+
attributes: record(string$3(), string$3()).default({}),
|
|
18128
18128
|
/**
|
|
18129
18129
|
* The run's X25519 public key, base64-encoded (~44 chars).
|
|
18130
18130
|
*
|
|
@@ -18144,7 +18144,7 @@ const WorkflowRunBaseSchema = object({
|
|
|
18144
18144
|
* key. Absent on runs created by older SDKs, and on worlds that do not
|
|
18145
18145
|
* implement `getEncryptionKeyForRun` (encryption disabled).
|
|
18146
18146
|
*/
|
|
18147
|
-
encryptionPublicKey: string$
|
|
18147
|
+
encryptionPublicKey: string$3().optional(),
|
|
18148
18148
|
/**
|
|
18149
18149
|
* The start Hook this run was admitted with through `start({ experimental_hook })`,
|
|
18150
18150
|
* echoed by a World that admitted it (see `start-hook.ts`), with its
|
|
@@ -18153,11 +18153,11 @@ const WorkflowRunBaseSchema = object({
|
|
|
18153
18153
|
* run is re-run: a re-run is a new run by intent.
|
|
18154
18154
|
*/
|
|
18155
18155
|
startHook: StartHookSchema.optional(),
|
|
18156
|
-
expiredAt: date().optional(),
|
|
18157
|
-
startedAt: date().optional(),
|
|
18158
|
-
completedAt: date().optional(),
|
|
18159
|
-
createdAt: date(),
|
|
18160
|
-
updatedAt: date()
|
|
18156
|
+
expiredAt: date$1().optional(),
|
|
18157
|
+
startedAt: date$1().optional(),
|
|
18158
|
+
completedAt: date$1().optional(),
|
|
18159
|
+
createdAt: date$1(),
|
|
18160
|
+
updatedAt: date$1()
|
|
18161
18161
|
});
|
|
18162
18162
|
discriminatedUnion("status", [
|
|
18163
18163
|
// Non-final states
|
|
@@ -18172,90 +18172,90 @@ discriminatedUnion("status", [
|
|
|
18172
18172
|
status: literal("cancelled"),
|
|
18173
18173
|
output: _undefined().optional(),
|
|
18174
18174
|
error: _undefined().optional(),
|
|
18175
|
-
completedAt: date()
|
|
18175
|
+
completedAt: date$1()
|
|
18176
18176
|
}),
|
|
18177
18177
|
// Completed state - output can be v1 or v2 format
|
|
18178
18178
|
WorkflowRunBaseSchema.extend({
|
|
18179
18179
|
status: literal("completed"),
|
|
18180
18180
|
output: SerializedDataSchema.optional(),
|
|
18181
18181
|
error: _undefined().optional(),
|
|
18182
|
-
completedAt: date()
|
|
18182
|
+
completedAt: date$1()
|
|
18183
18183
|
}),
|
|
18184
18184
|
// Failed state
|
|
18185
18185
|
WorkflowRunBaseSchema.extend({
|
|
18186
18186
|
status: literal("failed"),
|
|
18187
18187
|
output: _undefined().optional(),
|
|
18188
18188
|
error: SerializedDataSchema.optional(),
|
|
18189
|
-
completedAt: date()
|
|
18189
|
+
completedAt: date$1()
|
|
18190
18190
|
})
|
|
18191
18191
|
]);
|
|
18192
18192
|
const BULK_CANCEL_MAX_RUN_IDS = 500;
|
|
18193
18193
|
object({
|
|
18194
|
-
runIds: array(string$
|
|
18194
|
+
runIds: array(string$3()).min(1).max(BULK_CANCEL_MAX_RUN_IDS).refine((ids) => new Set(ids).size === ids.length, {
|
|
18195
18195
|
message: "runIds must not contain duplicates"
|
|
18196
18196
|
}),
|
|
18197
|
-
cancelReason: string$
|
|
18197
|
+
cancelReason: string$3().max(512).optional()
|
|
18198
18198
|
});
|
|
18199
18199
|
const BulkCancelWorkflowRunResultSchema = discriminatedUnion("outcome", [
|
|
18200
|
-
object({ runId: string$
|
|
18201
|
-
object({ runId: string$
|
|
18200
|
+
object({ runId: string$3(), outcome: literal("cancelled") }),
|
|
18201
|
+
object({ runId: string$3(), outcome: literal("already_cancelled") }),
|
|
18202
18202
|
object({
|
|
18203
|
-
runId: string$
|
|
18203
|
+
runId: string$3(),
|
|
18204
18204
|
outcome: literal("not_cancellable"),
|
|
18205
|
-
status: string$
|
|
18205
|
+
status: string$3()
|
|
18206
18206
|
}),
|
|
18207
|
-
object({ runId: string$
|
|
18207
|
+
object({ runId: string$3(), outcome: literal("not_found") }),
|
|
18208
18208
|
object({
|
|
18209
|
-
runId: string$
|
|
18209
|
+
runId: string$3(),
|
|
18210
18210
|
outcome: literal("failed"),
|
|
18211
|
-
code: string$
|
|
18212
|
-
retryable: boolean$
|
|
18211
|
+
code: string$3(),
|
|
18212
|
+
retryable: boolean$3()
|
|
18213
18213
|
})
|
|
18214
18214
|
]);
|
|
18215
18215
|
object({
|
|
18216
18216
|
summary: object({
|
|
18217
|
-
requested: number$
|
|
18218
|
-
cancelled: number$
|
|
18219
|
-
alreadyCancelled: number$
|
|
18220
|
-
notCancellable: number$
|
|
18221
|
-
notFound: number$
|
|
18222
|
-
failed: number$
|
|
18217
|
+
requested: number$4(),
|
|
18218
|
+
cancelled: number$4(),
|
|
18219
|
+
alreadyCancelled: number$4(),
|
|
18220
|
+
notCancellable: number$4(),
|
|
18221
|
+
notFound: number$4(),
|
|
18222
|
+
failed: number$4()
|
|
18223
18223
|
}),
|
|
18224
18224
|
results: array(BulkCancelWorkflowRunResultSchema)
|
|
18225
18225
|
});
|
|
18226
18226
|
const DELETE_RUNS_DATA_MAX_RUN_IDS = 100;
|
|
18227
18227
|
object({
|
|
18228
|
-
runIds: array(string$
|
|
18228
|
+
runIds: array(string$3()).min(1).max(DELETE_RUNS_DATA_MAX_RUN_IDS).refine((ids) => new Set(ids).size === ids.length, {
|
|
18229
18229
|
message: "runIds must not contain duplicates"
|
|
18230
18230
|
})
|
|
18231
18231
|
});
|
|
18232
18232
|
const DeleteRunDataResultSchema = discriminatedUnion("outcome", [
|
|
18233
|
-
object({ runId: string$
|
|
18234
|
-
object({ runId: string$
|
|
18233
|
+
object({ runId: string$3(), outcome: literal("deleted") }),
|
|
18234
|
+
object({ runId: string$3(), outcome: literal("already_deleted") }),
|
|
18235
18235
|
object({
|
|
18236
|
-
runId: string$
|
|
18236
|
+
runId: string$3(),
|
|
18237
18237
|
outcome: literal("skipped"),
|
|
18238
|
-
reason: string$
|
|
18239
|
-
status: string$
|
|
18238
|
+
reason: string$3(),
|
|
18239
|
+
status: string$3()
|
|
18240
18240
|
}),
|
|
18241
|
-
object({ runId: string$
|
|
18242
|
-
object({ runId: string$
|
|
18241
|
+
object({ runId: string$3(), outcome: literal("not_created") }),
|
|
18242
|
+
object({ runId: string$3(), outcome: literal("not_found") }),
|
|
18243
18243
|
object({
|
|
18244
|
-
runId: string$
|
|
18244
|
+
runId: string$3(),
|
|
18245
18245
|
outcome: literal("failed"),
|
|
18246
|
-
code: string$
|
|
18247
|
-
retryable: boolean$
|
|
18246
|
+
code: string$3(),
|
|
18247
|
+
retryable: boolean$3()
|
|
18248
18248
|
})
|
|
18249
18249
|
]);
|
|
18250
18250
|
object({
|
|
18251
18251
|
summary: object({
|
|
18252
|
-
requested: number$
|
|
18253
|
-
deleted: number$
|
|
18254
|
-
alreadyDeleted: number$
|
|
18255
|
-
skipped: number$
|
|
18256
|
-
notCreated: number$
|
|
18257
|
-
notFound: number$
|
|
18258
|
-
failed: number$
|
|
18252
|
+
requested: number$4(),
|
|
18253
|
+
deleted: number$4(),
|
|
18254
|
+
alreadyDeleted: number$4(),
|
|
18255
|
+
skipped: number$4(),
|
|
18256
|
+
notCreated: number$4(),
|
|
18257
|
+
notFound: number$4(),
|
|
18258
|
+
failed: number$4()
|
|
18259
18259
|
}),
|
|
18260
18260
|
results: array(DeleteRunDataResultSchema)
|
|
18261
18261
|
});
|
|
@@ -18267,8 +18267,8 @@ const StepStatusSchema = _enum([
|
|
|
18267
18267
|
"cancelled"
|
|
18268
18268
|
]);
|
|
18269
18269
|
object({
|
|
18270
|
-
runId: string$
|
|
18271
|
-
stepId: string$
|
|
18270
|
+
runId: string$3(),
|
|
18271
|
+
stepId: string$3(),
|
|
18272
18272
|
/**
|
|
18273
18273
|
* The machine-readable name of the step function.
|
|
18274
18274
|
*
|
|
@@ -18289,7 +18289,7 @@ object({
|
|
|
18289
18289
|
* // parsed.moduleSpecifier → "./src/workflows/order"
|
|
18290
18290
|
* ```
|
|
18291
18291
|
*/
|
|
18292
|
-
stepName: string$
|
|
18292
|
+
stepName: string$3(),
|
|
18293
18293
|
status: StepStatusSchema,
|
|
18294
18294
|
input: SerializedDataSchema.optional(),
|
|
18295
18295
|
output: SerializedDataSchema.optional(),
|
|
@@ -18304,18 +18304,18 @@ object({
|
|
|
18304
18304
|
* view the error without going through the decryption + hydration pipeline.
|
|
18305
18305
|
*/
|
|
18306
18306
|
error: SerializedDataSchema.optional(),
|
|
18307
|
-
attempt: number$
|
|
18307
|
+
attempt: number$4(),
|
|
18308
18308
|
/**
|
|
18309
18309
|
* When the step first started executing. Set by the first step_started event
|
|
18310
18310
|
* and not updated on subsequent retries.
|
|
18311
18311
|
*/
|
|
18312
|
-
startedAt: date().optional(),
|
|
18313
|
-
completedAt: date().optional(),
|
|
18314
|
-
createdAt: date(),
|
|
18315
|
-
updatedAt: date(),
|
|
18316
|
-
retryAfter: date().optional(),
|
|
18312
|
+
startedAt: date$1().optional(),
|
|
18313
|
+
completedAt: date$1().optional(),
|
|
18314
|
+
createdAt: date$1(),
|
|
18315
|
+
updatedAt: date$1(),
|
|
18316
|
+
retryAfter: date$1().optional(),
|
|
18317
18317
|
// Optional in database for backwards compatibility, defaults to 1 (legacy) when reading
|
|
18318
|
-
specVersion: number$
|
|
18318
|
+
specVersion: number$4().optional()
|
|
18319
18319
|
});
|
|
18320
18320
|
const TerminalStepStatusSchema = StepStatusSchema.extract([
|
|
18321
18321
|
"completed",
|
|
@@ -18325,14 +18325,14 @@ const TerminalStepStatusSchema = StepStatusSchema.extract([
|
|
|
18325
18325
|
TerminalStepStatusSchema.options;
|
|
18326
18326
|
const WaitStatusSchema = _enum(["waiting", "completed"]);
|
|
18327
18327
|
object({
|
|
18328
|
-
waitId: string$
|
|
18329
|
-
runId: string$
|
|
18328
|
+
waitId: string$3(),
|
|
18329
|
+
runId: string$3(),
|
|
18330
18330
|
status: WaitStatusSchema,
|
|
18331
|
-
resumeAt: date().optional(),
|
|
18332
|
-
completedAt: date().optional(),
|
|
18333
|
-
createdAt: date(),
|
|
18334
|
-
updatedAt: date(),
|
|
18335
|
-
specVersion: number$
|
|
18331
|
+
resumeAt: date$1().optional(),
|
|
18332
|
+
completedAt: date$1().optional(),
|
|
18333
|
+
createdAt: date$1(),
|
|
18334
|
+
updatedAt: date$1(),
|
|
18335
|
+
specVersion: number$4().optional()
|
|
18336
18336
|
});
|
|
18337
18337
|
const NAIVE_DATETIME = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d+)?$/;
|
|
18338
18338
|
const UTCDateSchema = preprocess$1((value) => {
|
|
@@ -18340,17 +18340,17 @@ const UTCDateSchema = preprocess$1((value) => {
|
|
|
18340
18340
|
return `${value.replace(" ", "T")}Z`;
|
|
18341
18341
|
}
|
|
18342
18342
|
return value;
|
|
18343
|
-
}, date());
|
|
18343
|
+
}, date$1());
|
|
18344
18344
|
const NullableDateSchema = UTCDateSchema.nullable().optional();
|
|
18345
|
-
const NullableStringSchema = string$
|
|
18346
|
-
const NullableBooleanSchema = boolean$
|
|
18345
|
+
const NullableStringSchema = string$3().nullable().optional();
|
|
18346
|
+
const NullableBooleanSchema = boolean$3().nullable().optional();
|
|
18347
18347
|
object({
|
|
18348
|
-
runId: string$
|
|
18348
|
+
runId: string$3(),
|
|
18349
18349
|
status: WorkflowRunStatusSchema,
|
|
18350
|
-
deploymentId: string$
|
|
18351
|
-
workflowName: string$
|
|
18352
|
-
specVersion: number$
|
|
18353
|
-
attributes: record(string$
|
|
18350
|
+
deploymentId: string$3(),
|
|
18351
|
+
workflowName: string$3(),
|
|
18352
|
+
specVersion: number$3().optional(),
|
|
18353
|
+
attributes: record(string$3(), string$3()).default({}),
|
|
18354
18354
|
createdAt: UTCDateSchema,
|
|
18355
18355
|
updatedAt: UTCDateSchema,
|
|
18356
18356
|
startedAt: NullableDateSchema,
|
|
@@ -18360,11 +18360,11 @@ object({
|
|
|
18360
18360
|
workflowEncryptionEnabled: NullableBooleanSchema
|
|
18361
18361
|
});
|
|
18362
18362
|
object({
|
|
18363
|
-
runId: string$
|
|
18364
|
-
stepId: string$
|
|
18363
|
+
runId: string$3(),
|
|
18364
|
+
stepId: string$3(),
|
|
18365
18365
|
stepName: NullableStringSchema,
|
|
18366
18366
|
status: StepStatusSchema,
|
|
18367
|
-
attempt: number$
|
|
18367
|
+
attempt: number$4().optional(),
|
|
18368
18368
|
createdAt: UTCDateSchema,
|
|
18369
18369
|
updatedAt: UTCDateSchema,
|
|
18370
18370
|
startedAt: NullableDateSchema,
|
|
@@ -18377,15 +18377,15 @@ object({
|
|
|
18377
18377
|
computeInstanceId: NullableStringSchema
|
|
18378
18378
|
});
|
|
18379
18379
|
object({
|
|
18380
|
-
runId: string$
|
|
18381
|
-
eventId: string$
|
|
18380
|
+
runId: string$3(),
|
|
18381
|
+
eventId: string$3(),
|
|
18382
18382
|
eventType: EventTypeSchema,
|
|
18383
18383
|
correlationId: NullableStringSchema,
|
|
18384
18384
|
entityId: NullableStringSchema,
|
|
18385
18385
|
stepName: NullableStringSchema,
|
|
18386
|
-
workflowName: string$
|
|
18387
|
-
deploymentId: string$
|
|
18388
|
-
specVersion: number$
|
|
18386
|
+
workflowName: string$3(),
|
|
18387
|
+
deploymentId: string$3(),
|
|
18388
|
+
specVersion: number$3().optional(),
|
|
18389
18389
|
runCreatedAt: UTCDateSchema,
|
|
18390
18390
|
createdAt: UTCDateSchema,
|
|
18391
18391
|
region: NullableStringSchema,
|
|
@@ -18402,8 +18402,8 @@ object({
|
|
|
18402
18402
|
workflowEncryptionEnabled: NullableBooleanSchema
|
|
18403
18403
|
});
|
|
18404
18404
|
object({
|
|
18405
|
-
runId: string$
|
|
18406
|
-
hookId: string$
|
|
18405
|
+
runId: string$3(),
|
|
18406
|
+
hookId: string$3(),
|
|
18407
18407
|
status: _enum(["created", "received", "disposed", "conflict"]),
|
|
18408
18408
|
createdAt: UTCDateSchema,
|
|
18409
18409
|
updatedAt: UTCDateSchema,
|
|
@@ -18415,8 +18415,8 @@ object({
|
|
|
18415
18415
|
workflowEncryptionEnabled: NullableBooleanSchema
|
|
18416
18416
|
});
|
|
18417
18417
|
object({
|
|
18418
|
-
runId: string$
|
|
18419
|
-
waitId: string$
|
|
18418
|
+
runId: string$3(),
|
|
18419
|
+
waitId: string$3(),
|
|
18420
18420
|
status: WaitStatusSchema,
|
|
18421
18421
|
resumeAt: NullableDateSchema,
|
|
18422
18422
|
createdAt: UTCDateSchema,
|
|
@@ -18426,13 +18426,13 @@ object({
|
|
|
18426
18426
|
workflowEncryptionEnabled: NullableBooleanSchema
|
|
18427
18427
|
});
|
|
18428
18428
|
object({
|
|
18429
|
-
key: string$
|
|
18430
|
-
runCount: number$
|
|
18429
|
+
key: string$3(),
|
|
18430
|
+
runCount: number$3(),
|
|
18431
18431
|
firstSeenAt: UTCDateSchema,
|
|
18432
18432
|
lastSeenAt: UTCDateSchema
|
|
18433
18433
|
});
|
|
18434
|
-
const flag = boolean$
|
|
18435
|
-
const activeFlag = object({ active: boolean$
|
|
18434
|
+
const flag = boolean$3().optional().catch(void 0);
|
|
18435
|
+
const activeFlag = object({ active: boolean$3() }).optional().catch(void 0);
|
|
18436
18436
|
object({
|
|
18437
18437
|
invoke: flag,
|
|
18438
18438
|
hookRetention: activeFlag,
|
|
@@ -18451,23 +18451,23 @@ object({
|
|
|
18451
18451
|
const WarnedEnvValuesKey = /* @__PURE__ */ Symbol.for("@workflow/world//warnedEnvValues/v1");
|
|
18452
18452
|
const globalStore = globalThis;
|
|
18453
18453
|
globalStore[WarnedEnvValuesKey] ??= /* @__PURE__ */ new Set();
|
|
18454
|
-
string$
|
|
18455
|
-
string$
|
|
18456
|
-
string$
|
|
18457
|
-
string$
|
|
18458
|
-
const TraceCarrierSchema = record(string$
|
|
18454
|
+
string$3().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_workflow_$/, "Must match __wkf_workflow_ or __{namespace}_wkf_workflow_");
|
|
18455
|
+
string$3().regex(/^__(?:[a-z][a-z0-9]*_)?wkf_workflow_.+$/, "Must be a valid queue name with a recognized prefix");
|
|
18456
|
+
string$3().regex(/^[a-z][a-z0-9]*$/, "Must be lowercase alphanumeric, starting with a letter");
|
|
18457
|
+
string$3().brand().describe("A stored queue message ID");
|
|
18458
|
+
const TraceCarrierSchema = record(string$3(), string$3());
|
|
18459
18459
|
const RunInputSchema = object({
|
|
18460
18460
|
input: unknown$1(),
|
|
18461
|
-
deploymentId: string$
|
|
18462
|
-
workflowName: string$
|
|
18463
|
-
specVersion: number$
|
|
18464
|
-
executionContext: record(string$
|
|
18461
|
+
deploymentId: string$3(),
|
|
18462
|
+
workflowName: string$3(),
|
|
18463
|
+
specVersion: number$4(),
|
|
18464
|
+
executionContext: record(string$3(), any()).optional(),
|
|
18465
18465
|
/** Dynamic workflow code carried for resilient run creation. */
|
|
18466
18466
|
dynamicWorkflowCode: SerializedDataSchema.optional(),
|
|
18467
18467
|
/** Ref for deferred dynamic workflow code; mutually exclusive with bytes. */
|
|
18468
|
-
dynamicWorkflowCodeRef: string$
|
|
18468
|
+
dynamicWorkflowCodeRef: string$3().optional(),
|
|
18469
18469
|
/** Initial plaintext run attributes, for resilient run creation. */
|
|
18470
|
-
attributes: record(string$
|
|
18470
|
+
attributes: record(string$3(), string$3()).optional(),
|
|
18471
18471
|
/**
|
|
18472
18472
|
* Permits reserved `$`-prefixed keys in `attributes`, mirrored from the
|
|
18473
18473
|
* `start()` option so resilient run creation validates the same way as
|
|
@@ -18478,7 +18478,7 @@ const RunInputSchema = object({
|
|
|
18478
18478
|
* The run's X25519 public key, mirrored from `run_created` so a run the
|
|
18479
18479
|
* resilient-start path creates can still receive sealed writes.
|
|
18480
18480
|
*/
|
|
18481
|
-
encryptionPublicKey: string$
|
|
18481
|
+
encryptionPublicKey: string$3().optional(),
|
|
18482
18482
|
/**
|
|
18483
18483
|
* The atomic start Hook request, mirrored from `run_created` so the
|
|
18484
18484
|
* queued copy of the candidate can admit (or be refused) on its own.
|
|
@@ -18504,7 +18504,7 @@ const RunInputSchema = object({
|
|
|
18504
18504
|
* for older SDKs. Consumers must treat it as advisory and skip the check
|
|
18505
18505
|
* when it is missing.
|
|
18506
18506
|
*/
|
|
18507
|
-
environment: string$
|
|
18507
|
+
environment: string$3().optional()
|
|
18508
18508
|
}).refine((value) => value.dynamicWorkflowCode === void 0 || value.dynamicWorkflowCodeRef === void 0, {
|
|
18509
18509
|
path: ["dynamicWorkflowCodeRef"],
|
|
18510
18510
|
message: "dynamicWorkflowCode and dynamicWorkflowCodeRef are mutually exclusive"
|
|
@@ -18524,26 +18524,26 @@ const StepDispatchInputSchema = object({
|
|
|
18524
18524
|
});
|
|
18525
18525
|
const RunDispatchContextSchema = object({
|
|
18526
18526
|
/** The deployment the run is pinned to (`WorkflowRun.deploymentId`). */
|
|
18527
|
-
deploymentId: string$
|
|
18527
|
+
deploymentId: string$3(),
|
|
18528
18528
|
/** The run's spec version (`WorkflowRun.specVersion`). */
|
|
18529
|
-
specVersion: number$
|
|
18529
|
+
specVersion: number$4(),
|
|
18530
18530
|
/** The run's start time as epoch ms (`WorkflowRun.startedAt`). Numeric so
|
|
18531
18531
|
* it survives both queue transports without Date revival concerns. */
|
|
18532
|
-
startedAt: number$
|
|
18532
|
+
startedAt: number$4().optional(),
|
|
18533
18533
|
/** The run's lineage root (its `$rootRunId` attribute, or its own id). */
|
|
18534
|
-
rootRunId: string$
|
|
18534
|
+
rootRunId: string$3().optional()
|
|
18535
18535
|
});
|
|
18536
18536
|
const HookResumeInputSchema = object({
|
|
18537
18537
|
/** Stable idempotency key minted once per `resumeHook()` call. */
|
|
18538
|
-
resumeId: string$
|
|
18538
|
+
resumeId: string$3(),
|
|
18539
18539
|
/** The hook being resumed. */
|
|
18540
|
-
hookId: string$
|
|
18540
|
+
hookId: string$3(),
|
|
18541
18541
|
/**
|
|
18542
18542
|
* The hook's token, written into the `hook_received` event's `eventData` so
|
|
18543
18543
|
* the consumer's re-ensured event carries the same token the producer
|
|
18544
18544
|
* would. Replay validates `eventData.token` against the `createHook` token.
|
|
18545
18545
|
*/
|
|
18546
|
-
token: string$
|
|
18546
|
+
token: string$3(),
|
|
18547
18547
|
/** The serialized resume payload, reused verbatim from the direct write. */
|
|
18548
18548
|
payload: unknown$1(),
|
|
18549
18549
|
/**
|
|
@@ -18554,7 +18554,7 @@ const HookResumeInputSchema = object({
|
|
|
18554
18554
|
* `(runId, resumeId)` constraint, required because the v4 payload ref is not
|
|
18555
18555
|
* content-stable server-side.
|
|
18556
18556
|
*/
|
|
18557
|
-
payloadDigest: string$
|
|
18557
|
+
payloadDigest: string$3(),
|
|
18558
18558
|
/**
|
|
18559
18559
|
* The deployment the run is pinned to, from the producer's resume context.
|
|
18560
18560
|
* Lets the consumer detect a misrouted delivery with a cheap ambient
|
|
@@ -18564,30 +18564,30 @@ const HookResumeInputSchema = object({
|
|
|
18564
18564
|
* messages from older producers omit it and skip the pre-write
|
|
18565
18565
|
* check (the authoritative guard before replay still protects them).
|
|
18566
18566
|
*/
|
|
18567
|
-
deploymentId: string$
|
|
18567
|
+
deploymentId: string$3().optional()
|
|
18568
18568
|
});
|
|
18569
18569
|
const HookResumeTimingSchema = object({
|
|
18570
18570
|
/** Epoch ms at entry into `resumeHook()`: the start of the TTR window. */
|
|
18571
|
-
resumeRequestedAtMs: number$
|
|
18571
|
+
resumeRequestedAtMs: number$4(),
|
|
18572
18572
|
/** Epoch ms immediately before the queue publish was requested. */
|
|
18573
|
-
queuePublishRequestedAtMs: number$
|
|
18573
|
+
queuePublishRequestedAtMs: number$4(),
|
|
18574
18574
|
/**
|
|
18575
18575
|
* Which `resumeHook()` dispatch path ran. Current producers always report
|
|
18576
18576
|
* `sequential` (durable write, then wake); older producers may report
|
|
18577
18577
|
* `lazy` or `parallel`.
|
|
18578
18578
|
*/
|
|
18579
|
-
strategy: string$
|
|
18579
|
+
strategy: string$3().optional(),
|
|
18580
18580
|
/** Epoch ms the final consumer's queue handler was entered. */
|
|
18581
|
-
consumerStartedAtMs: number$
|
|
18581
|
+
consumerStartedAtMs: number$4().optional(),
|
|
18582
18582
|
/** Epoch ms this invocation's first replay pass began. */
|
|
18583
|
-
replayStartedAtMs: number$
|
|
18583
|
+
replayStartedAtMs: number$4().optional(),
|
|
18584
18584
|
/** Epoch ms replay first encountered a durable step after the resume. */
|
|
18585
|
-
nextStepEncounteredAtMs: number$
|
|
18585
|
+
nextStepEncounteredAtMs: number$4().optional(),
|
|
18586
18586
|
/** How the consumer initialized replay state: see `ResumeSetupSource`. */
|
|
18587
|
-
setupSource: string$
|
|
18587
|
+
setupSource: string$3().optional()
|
|
18588
18588
|
});
|
|
18589
18589
|
const WorkflowInvokePayloadSchema = object({
|
|
18590
|
-
runId: string$
|
|
18590
|
+
runId: string$3(),
|
|
18591
18591
|
/**
|
|
18592
18592
|
* The run's persisted spec version (`WorkflowRun.specVersion`), which picks
|
|
18593
18593
|
* the orchestrator that drives it. A routing hint only: a message without
|
|
@@ -18595,7 +18595,7 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18595
18595
|
* itself) is routed off the run instead, and a step message's
|
|
18596
18596
|
* `runContext` or a first delivery's `runInput` carries the same value.
|
|
18597
18597
|
*/
|
|
18598
|
-
runSpecVersion: number$
|
|
18598
|
+
runSpecVersion: number$4().int().optional().catch(void 0),
|
|
18599
18599
|
/**
|
|
18600
18600
|
* Set on a message a World sent to resume a run after it lost its queue
|
|
18601
18601
|
* (`reenqueueActiveRuns` with `queueLost`, world-local after a restart):
|
|
@@ -18609,10 +18609,10 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18609
18609
|
/** Process this input and return the handler's result as response data. */
|
|
18610
18610
|
invoke: literal(true).optional(),
|
|
18611
18611
|
/** Identifies one input across retries, separately from the queue delivery ID. */
|
|
18612
|
-
requestId: string$
|
|
18612
|
+
requestId: string$3().optional(),
|
|
18613
18613
|
input: unknown$1().optional(),
|
|
18614
18614
|
traceCarrier: TraceCarrierSchema.optional(),
|
|
18615
|
-
requestedAt: date().optional(),
|
|
18615
|
+
requestedAt: date$1().optional(),
|
|
18616
18616
|
/**
|
|
18617
18617
|
* Consecutive replay divergences in this recovery chain and latest position
|
|
18618
18618
|
* (spec <= 8 runs: a spec 9 orchestrator recovers within its delivery and
|
|
@@ -18628,9 +18628,9 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18628
18628
|
* restarts the history from `eventId`.
|
|
18629
18629
|
*/
|
|
18630
18630
|
replayDivergence: object({
|
|
18631
|
-
eventId: string$
|
|
18632
|
-
count: number$
|
|
18633
|
-
eventIds: array(string$
|
|
18631
|
+
eventId: string$3(),
|
|
18632
|
+
count: number$4().int().positive(),
|
|
18633
|
+
eventIds: array(string$3()).optional().catch(void 0)
|
|
18634
18634
|
}).optional(),
|
|
18635
18635
|
/**
|
|
18636
18636
|
* Re-invocations so far in this chain of stale-snapshot (precondition)
|
|
@@ -18639,11 +18639,11 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18639
18639
|
* every fresh enqueue, so without this a permanently fenced run would cycle
|
|
18640
18640
|
* forever instead of failing.
|
|
18641
18641
|
*/
|
|
18642
|
-
preconditionReinvocations: number$
|
|
18642
|
+
preconditionReinvocations: number$4().int().positive().optional(),
|
|
18643
18643
|
/** Number of times this message has been re-enqueued due to server errors (5xx) */
|
|
18644
|
-
serverErrorRetryCount: number$
|
|
18644
|
+
serverErrorRetryCount: number$4().int().optional(),
|
|
18645
18645
|
/** Number of times this message has been re-routed after a deployment mismatch */
|
|
18646
|
-
deploymentMismatchRetryCount: number$
|
|
18646
|
+
deploymentMismatchRetryCount: number$4().int().nonnegative().optional(),
|
|
18647
18647
|
/**
|
|
18648
18648
|
* The wait this message is the delayed continuation for, and which attempt
|
|
18649
18649
|
* in that wait's chain it is.
|
|
@@ -18672,8 +18672,8 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18672
18672
|
* that one wait rather than killing the run.
|
|
18673
18673
|
*/
|
|
18674
18674
|
waitContinuation: object({
|
|
18675
|
-
correlationId: string$
|
|
18676
|
-
attempt: number$
|
|
18675
|
+
correlationId: string$3(),
|
|
18676
|
+
attempt: number$4().int().nonnegative(),
|
|
18677
18677
|
/**
|
|
18678
18678
|
* The wait's `resumeAt` (epoch ms), set only on an intermediate hop
|
|
18679
18679
|
* of a spec 9 wait longer than one queue delay: a timer sent to fire
|
|
@@ -18681,7 +18681,7 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18681
18681
|
* {@link isIntermediateWaitHop}). Absent on a final hop, the timer
|
|
18682
18682
|
* due when the wait is.
|
|
18683
18683
|
*/
|
|
18684
|
-
resumeAtMs: number$
|
|
18684
|
+
resumeAtMs: number$4().optional(),
|
|
18685
18685
|
/**
|
|
18686
18686
|
* The deadline (epoch ms) of this intermediate hop, set beside
|
|
18687
18687
|
* `resumeAtMs`. Hops are anchored on the wait's deadline, and each
|
|
@@ -18689,7 +18689,7 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18689
18689
|
* the one after it: one it could not compute from its own clock
|
|
18690
18690
|
* when it was delivered a little early.
|
|
18691
18691
|
*/
|
|
18692
|
-
hopAtMs: number$
|
|
18692
|
+
hopAtMs: number$4().optional()
|
|
18693
18693
|
}).optional().catch(void 0),
|
|
18694
18694
|
/**
|
|
18695
18695
|
* Waits the orchestrator completes on this delivery whatever their
|
|
@@ -18702,12 +18702,12 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18702
18702
|
* there). `.catch(undefined)` so a malformed value degrades to "no waits
|
|
18703
18703
|
* named" rather than failing the parse.
|
|
18704
18704
|
*/
|
|
18705
|
-
completeWaits: array(string$
|
|
18705
|
+
completeWaits: array(string$3()).optional().catch(void 0),
|
|
18706
18706
|
/** Step ID for inline step execution in combined handler. If provided, the flow execution
|
|
18707
18707
|
* will jump directly to execute the step with the given ID before doing an event replay. */
|
|
18708
|
-
stepId: string$
|
|
18708
|
+
stepId: string$3().optional(),
|
|
18709
18709
|
/** Step name, sent alongside stepId to avoid loading the event log to resolve the name. */
|
|
18710
|
-
stepName: string$
|
|
18710
|
+
stepName: string$3().optional(),
|
|
18711
18711
|
/**
|
|
18712
18712
|
* The attempt this step message starts with (spec >= 9). Absent means 1.
|
|
18713
18713
|
* Set above 1 when a step that ran inline in the orchestrator failed with
|
|
@@ -18715,7 +18715,7 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18715
18715
|
* `stepAttempt` is above 1 counts as a retry, so its handler reads the
|
|
18716
18716
|
* log before running the body.
|
|
18717
18717
|
*/
|
|
18718
|
-
stepAttempt: number$
|
|
18718
|
+
stepAttempt: number$4().int().positive().optional(),
|
|
18719
18719
|
/**
|
|
18720
18720
|
* Set on a step message the orchestrator sent again (spec >= 9): a
|
|
18721
18721
|
* re-send of a step whose message a delivery that died may never have
|
|
@@ -18726,13 +18726,13 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18726
18726
|
* can be older than the step's progress, so the step may already have
|
|
18727
18727
|
* an outcome.
|
|
18728
18728
|
*/
|
|
18729
|
-
stepResent: boolean$
|
|
18729
|
+
stepResent: boolean$3().optional(),
|
|
18730
18730
|
/**
|
|
18731
18731
|
* Event id of the step's `step_created` (spec >= 9). The step handler
|
|
18732
18732
|
* reads the step's input from that event when the message does not carry
|
|
18733
18733
|
* it in {@link WorkflowInvokePayloadSchema.shape.stepInput}.
|
|
18734
18734
|
*/
|
|
18735
|
-
stepCreatedEventId: string$
|
|
18735
|
+
stepCreatedEventId: string$3().optional(),
|
|
18736
18736
|
/**
|
|
18737
18737
|
* When the step's `step_created` was committed, as epoch milliseconds
|
|
18738
18738
|
* (spec >= 9): the `createdAt` the World answered it with. The step
|
|
@@ -18741,7 +18741,7 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18741
18741
|
* telemetry. Absent on retry messages and from older runtimes.
|
|
18742
18742
|
* `.catch(undefined)` so a malformed value only drops the telemetry.
|
|
18743
18743
|
*/
|
|
18744
|
-
stepCreatedAt: number$
|
|
18744
|
+
stepCreatedAt: number$4().optional().catch(void 0),
|
|
18745
18745
|
/** Run creation data, only present on the first queue delivery from start() */
|
|
18746
18746
|
runInput: RunInputSchema.optional(),
|
|
18747
18747
|
/**
|
|
@@ -18785,11 +18785,11 @@ const WorkflowInvokePayloadSchema = object({
|
|
|
18785
18785
|
* older producers, and `.catch(undefined)` so a malformed value never fails
|
|
18786
18786
|
* the payload's parse.
|
|
18787
18787
|
*/
|
|
18788
|
-
wakeEventId: string$
|
|
18788
|
+
wakeEventId: string$3().optional().catch(void 0)
|
|
18789
18789
|
});
|
|
18790
18790
|
const HealthCheckPayloadSchema = object({
|
|
18791
18791
|
__healthCheck: literal(true),
|
|
18792
|
-
correlationId: string$
|
|
18792
|
+
correlationId: string$3(),
|
|
18793
18793
|
/**
|
|
18794
18794
|
* The run id the caller is about to create, when the probe is being used to
|
|
18795
18795
|
* prepare a cross-deployment `start()`.
|
|
@@ -18807,36 +18807,36 @@ const HealthCheckPayloadSchema = object({
|
|
|
18807
18807
|
* `run_started` for a run that does not exist yet (404) and retries the
|
|
18808
18808
|
* delivery, so the probe never answers.
|
|
18809
18809
|
*/
|
|
18810
|
-
probeRunId: string$
|
|
18810
|
+
probeRunId: string$3().optional(),
|
|
18811
18811
|
/**
|
|
18812
18812
|
* Legacy spelling of {@link probeRunId}, sent by 5.x callers released
|
|
18813
18813
|
* before the rename. Accepted so those callers still get a public key
|
|
18814
18814
|
* back from this deployment; never sent.
|
|
18815
18815
|
*/
|
|
18816
|
-
runId: string$
|
|
18816
|
+
runId: string$3().optional()
|
|
18817
18817
|
});
|
|
18818
18818
|
union([
|
|
18819
18819
|
HealthCheckPayloadSchema,
|
|
18820
18820
|
WorkflowInvokePayloadSchema
|
|
18821
18821
|
]);
|
|
18822
18822
|
const HookResumeContextSchema = object({
|
|
18823
|
-
deploymentId: string$
|
|
18824
|
-
workflowName: string$
|
|
18823
|
+
deploymentId: string$3(),
|
|
18824
|
+
workflowName: string$3(),
|
|
18825
18825
|
// Named `runSpecVersion` to distinguish it from the hook's own `specVersion`.
|
|
18826
|
-
runSpecVersion: number$
|
|
18827
|
-
workflowCoreVersion: string$
|
|
18826
|
+
runSpecVersion: number$4().optional(),
|
|
18827
|
+
workflowCoreVersion: string$3().optional(),
|
|
18828
18828
|
// Node.js version of the run's creating deployment, mirrored from
|
|
18829
18829
|
// `executionContext.nodeVersion`. Decides whether a resume may write zstd
|
|
18830
18830
|
// (which needs Node.js >= 22.15) or must use gzip. Absent on runs created
|
|
18831
18831
|
// before the field existed and on non-Node runtimes, where writers use gzip.
|
|
18832
|
-
nodeVersion: string$
|
|
18832
|
+
nodeVersion: string$3().optional(),
|
|
18833
18833
|
traceCarrier: TraceCarrierSchema.optional(),
|
|
18834
18834
|
// The run's published X25519 public key (base64), mirrored from the run
|
|
18835
18835
|
// entity. Lets a resume seal (`encp`) its payload to the run without reading
|
|
18836
18836
|
// the run or fetching its symmetric key. Absent on runs created before
|
|
18837
18837
|
// sealed envelopes and on projects with encryption disabled, where the
|
|
18838
18838
|
// resume falls back to the symmetric per-run key.
|
|
18839
|
-
encryptionPublicKey: string$
|
|
18839
|
+
encryptionPublicKey: string$3().optional(),
|
|
18840
18840
|
// Feature marker: the version of the lazy-hook-resume consumer protocol the
|
|
18841
18841
|
// run's creating deployment supports. Present (>= 1) means that deployment's
|
|
18842
18842
|
// `@workflow/core` re-ensures the `hook_received` event from a queue
|
|
@@ -18847,38 +18847,38 @@ const HookResumeContextSchema = object({
|
|
|
18847
18847
|
// run is pinned to its creating deployment, this marker is a reliable
|
|
18848
18848
|
// per-run attestation, unlike inferring support from a version compare
|
|
18849
18849
|
// against a predicted release cutoff.
|
|
18850
|
-
hookResumeInputVersion: number$
|
|
18850
|
+
hookResumeInputVersion: number$4().optional()
|
|
18851
18851
|
});
|
|
18852
18852
|
const HookResumeCapabilitiesSchema = object({
|
|
18853
18853
|
// Present (>= HOOK_RESUME_DEDUP_VERSION) when the live backend enforces the
|
|
18854
18854
|
// `(runId, resumeId)` dedup constraint AND no server-side kill switch is
|
|
18855
18855
|
// active. Absent against an older/rolled-back server or when the kill switch
|
|
18856
18856
|
// is engaged.
|
|
18857
|
-
hookResumeDedupVersion: number$
|
|
18857
|
+
hookResumeDedupVersion: number$4()
|
|
18858
18858
|
});
|
|
18859
18859
|
const HookClaimedFromSchema = object({
|
|
18860
|
-
runId: string$
|
|
18861
|
-
hookId: string$
|
|
18862
|
-
workflowName: string$
|
|
18863
|
-
deploymentId: string$
|
|
18864
|
-
runSpecVersion: number$
|
|
18860
|
+
runId: string$3(),
|
|
18861
|
+
hookId: string$3(),
|
|
18862
|
+
workflowName: string$3().optional(),
|
|
18863
|
+
deploymentId: string$3().optional(),
|
|
18864
|
+
runSpecVersion: number$4().optional()
|
|
18865
18865
|
});
|
|
18866
18866
|
object({
|
|
18867
|
-
runId: string$
|
|
18868
|
-
hookId: string$
|
|
18869
|
-
token: string$
|
|
18870
|
-
ownerId: string$
|
|
18871
|
-
projectId: string$
|
|
18872
|
-
environment: string$
|
|
18867
|
+
runId: string$3(),
|
|
18868
|
+
hookId: string$3(),
|
|
18869
|
+
token: string$3(),
|
|
18870
|
+
ownerId: string$3(),
|
|
18871
|
+
projectId: string$3(),
|
|
18872
|
+
environment: string$3(),
|
|
18873
18873
|
metadata: SerializedDataSchema.optional(),
|
|
18874
|
-
createdAt: date(),
|
|
18874
|
+
createdAt: date$1(),
|
|
18875
18875
|
// Optional in database for backward compatibility, defaults to 1 (legacy) when reading
|
|
18876
|
-
specVersion: number$
|
|
18877
|
-
isWebhook: boolean$
|
|
18878
|
-
isSystem: boolean$
|
|
18876
|
+
specVersion: number$4().optional(),
|
|
18877
|
+
isWebhook: boolean$3().optional(),
|
|
18878
|
+
isSystem: boolean$3().optional(),
|
|
18879
18879
|
// Earliest time the token can become available after the owning run ends.
|
|
18880
18880
|
// An active run keeps the token beyond this deadline.
|
|
18881
|
-
tokenRetentionUntil: date().optional(),
|
|
18881
|
+
tokenRetentionUntil: date$1().optional(),
|
|
18882
18882
|
// Present when the server stored it (new hooks) or synthesized it from the
|
|
18883
18883
|
// run (old hooks). Absent only against an old server, where the resume path
|
|
18884
18884
|
// falls back to `runs.get`.
|
|
@@ -18899,25 +18899,25 @@ object({
|
|
|
18899
18899
|
});
|
|
18900
18900
|
const zodJsonSchema = lazy(() => {
|
|
18901
18901
|
return union([
|
|
18902
|
-
string$
|
|
18903
|
-
number$
|
|
18904
|
-
boolean$
|
|
18902
|
+
string$3(),
|
|
18903
|
+
number$4(),
|
|
18904
|
+
boolean$3(),
|
|
18905
18905
|
_null(),
|
|
18906
18906
|
array(zodJsonSchema),
|
|
18907
|
-
record(string$
|
|
18907
|
+
record(string$3(), zodJsonSchema)
|
|
18908
18908
|
]);
|
|
18909
18909
|
});
|
|
18910
18910
|
object({
|
|
18911
|
-
currentLookbackDays: number$
|
|
18912
|
-
maxLookbackDays: number$
|
|
18913
|
-
currentWindowStart: date(),
|
|
18914
|
-
maxWindowStart: date(),
|
|
18915
|
-
upgradeAvailable: boolean$
|
|
18911
|
+
currentLookbackDays: number$4(),
|
|
18912
|
+
maxLookbackDays: number$4(),
|
|
18913
|
+
currentWindowStart: date$1(),
|
|
18914
|
+
maxWindowStart: date$1(),
|
|
18915
|
+
upgradeAvailable: boolean$3()
|
|
18916
18916
|
});
|
|
18917
18917
|
object({
|
|
18918
|
-
message: string$
|
|
18919
|
-
stack: string$
|
|
18920
|
-
code: string$
|
|
18918
|
+
message: string$3(),
|
|
18919
|
+
stack: string$3().optional(),
|
|
18920
|
+
code: string$3().optional()
|
|
18921
18921
|
// Populated with RunErrorCode values (USER_ERROR, RUNTIME_ERROR, etc.) for run_failed events
|
|
18922
18922
|
});
|
|
18923
18923
|
const EVENT_ID_BODY_LENGTH = 26;
|
|
@@ -18960,9 +18960,9 @@ object({
|
|
|
18960
18960
|
* this point in the event log. On restore, only events AFTER this
|
|
18961
18961
|
* cursor need to be fetched.
|
|
18962
18962
|
*/
|
|
18963
|
-
eventsCursor: string$
|
|
18963
|
+
eventsCursor: string$3().nullable(),
|
|
18964
18964
|
/** Timestamp when the snapshot was created */
|
|
18965
|
-
createdAt: date(),
|
|
18965
|
+
createdAt: date$1(),
|
|
18966
18966
|
/**
|
|
18967
18967
|
* Number of events the run had processed when the snapshot was taken.
|
|
18968
18968
|
* Restores see only the delta after `eventsCursor`, so guards that need
|
|
@@ -18971,7 +18971,7 @@ object({
|
|
|
18971
18971
|
* (treated as 0 — the ceiling degrades to delta-only for those, exactly
|
|
18972
18972
|
* the pre-field behavior).
|
|
18973
18973
|
*/
|
|
18974
|
-
eventCount: number$
|
|
18974
|
+
eventCount: number$4().int().nonnegative().optional(),
|
|
18975
18975
|
/**
|
|
18976
18976
|
* Number of draws the run's seeded PRNG had consumed when the snapshot
|
|
18977
18977
|
* was taken. On restore the runtime re-seeds from the run's BASE seed
|
|
@@ -18982,7 +18982,7 @@ object({
|
|
|
18982
18982
|
* from different snapshots of the same run still collide on the world's
|
|
18983
18983
|
* per-(runId, correlationId) dedup).
|
|
18984
18984
|
*/
|
|
18985
|
-
rngDraws: number$
|
|
18985
|
+
rngDraws: number$4().int().nonnegative().optional(),
|
|
18986
18986
|
/**
|
|
18987
18987
|
* Snapshot-portable token of the engine's host-serde capture root: the
|
|
18988
18988
|
* container of pristine intrinsics/samples/symbols captured before any
|
|
@@ -18991,7 +18991,7 @@ object({
|
|
|
18991
18991
|
* no guest code after user code has run. Required to restore (format
|
|
18992
18992
|
* version >= 2); snapshots without it are treated as a miss.
|
|
18993
18993
|
*/
|
|
18994
|
-
serdeRootPtr: number$
|
|
18994
|
+
serdeRootPtr: number$4().int().optional(),
|
|
18995
18995
|
/**
|
|
18996
18996
|
* The monotonic correlation-id ULID factory's last output when the
|
|
18997
18997
|
* snapshot was taken (undefined if the run had drawn none). The
|
|
@@ -19001,7 +19001,7 @@ object({
|
|
|
19001
19001
|
* the exact ids a full replay would — keeping concurrent invocations
|
|
19002
19002
|
* of the same run dedupable via per-(runId, correlationId) uniqueness.
|
|
19003
19003
|
*/
|
|
19004
|
-
lastUlid: string$
|
|
19004
|
+
lastUlid: string$3().optional(),
|
|
19005
19005
|
/**
|
|
19006
19006
|
* Exact engine build (quickjs-wasi package version) that captured the
|
|
19007
19007
|
* heap image. The image's own QJSS header is identical across builds,
|
|
@@ -19011,7 +19011,7 @@ object({
|
|
|
19011
19011
|
* from the old build meet instances running the new one. Readers MUST
|
|
19012
19012
|
* treat a mismatch (or absence) as a clean miss.
|
|
19013
19013
|
*/
|
|
19014
|
-
engineVersion: string$
|
|
19014
|
+
engineVersion: string$3().optional(),
|
|
19015
19015
|
/**
|
|
19016
19016
|
* The deterministic replay clock's high-water mark (ms since epoch) at
|
|
19017
19017
|
* capture. The clock lives host-side; without this a restored VM's
|
|
@@ -19019,15 +19019,15 @@ object({
|
|
|
19019
19019
|
* delta event advances it, so restores initialize the clock to
|
|
19020
19020
|
* `max(derived, clockMs)`.
|
|
19021
19021
|
*/
|
|
19022
|
-
clockMs: number$
|
|
19022
|
+
clockMs: number$4().optional(),
|
|
19023
19023
|
/**
|
|
19024
19024
|
* Snapshot format tag. A reader that doesn't recognize the version
|
|
19025
19025
|
* treats the snapshot as a clean miss (full replay) instead of handing
|
|
19026
19026
|
* an incompatible heap to the WASM engine.
|
|
19027
19027
|
*/
|
|
19028
|
-
formatVersion: number$
|
|
19028
|
+
formatVersion: number$4().int().optional()
|
|
19029
19029
|
});
|
|
19030
|
-
string$
|
|
19030
|
+
string$3().ulid();
|
|
19031
19031
|
templateLiteral(["wrun_", ulid()]);
|
|
19032
19032
|
const scriptRel = "modulepreload";
|
|
19033
19033
|
const assetsURL = function(dep) {
|
|
@@ -19986,11 +19986,11 @@ function base64UrlToBytes(value) {
|
|
|
19986
19986
|
return new Uint8Array(bytes);
|
|
19987
19987
|
}
|
|
19988
19988
|
async function deriveContentKey(sharedSecret, ephemeralPublicKey, recipientPublicKey, usages) {
|
|
19989
|
-
const
|
|
19990
|
-
const info = new Uint8Array(
|
|
19991
|
-
info.set(
|
|
19992
|
-
info.set(ephemeralPublicKey,
|
|
19993
|
-
info.set(recipientPublicKey,
|
|
19989
|
+
const label2 = infoEncoder.encode(CONTENT_KEY_INFO);
|
|
19990
|
+
const info = new Uint8Array(label2.length + ephemeralPublicKey.length + recipientPublicKey.length);
|
|
19991
|
+
info.set(label2, 0);
|
|
19992
|
+
info.set(ephemeralPublicKey, label2.length);
|
|
19993
|
+
info.set(recipientPublicKey, label2.length + ephemeralPublicKey.length);
|
|
19994
19994
|
const hkdfKey = await globalThis.crypto.subtle.importKey("raw", sharedSecret, "HKDF", false, ["deriveBits"]);
|
|
19995
19995
|
const contentKeyBits = await globalThis.crypto.subtle.deriveBits({ name: "HKDF", hash: "SHA-256", salt: new Uint8Array(32), info }, hkdfKey, CONTENT_KEY_LENGTH * 8);
|
|
19996
19996
|
return globalThis.crypto.subtle.importKey(
|
|
@@ -20541,20 +20541,20 @@ function isFrozenState(value, depth = 0, leaves) {
|
|
|
20541
20541
|
return false;
|
|
20542
20542
|
}
|
|
20543
20543
|
const children2 = Array.isArray(value) ? value : Object.keys(value).map((key) => value[key]);
|
|
20544
|
-
for (const
|
|
20545
|
-
if (
|
|
20546
|
-
if (typeof
|
|
20544
|
+
for (const child2 of children2) {
|
|
20545
|
+
if (child2 === null || typeof child2 !== "object") {
|
|
20546
|
+
if (typeof child2 === "function" || typeof child2 === "symbol")
|
|
20547
20547
|
return false;
|
|
20548
20548
|
continue;
|
|
20549
20549
|
}
|
|
20550
|
-
if (frozenState.has(
|
|
20550
|
+
if (frozenState.has(child2))
|
|
20551
20551
|
continue;
|
|
20552
|
-
if (isTrustedLeaf(
|
|
20553
|
-
if (!holdsOnlyState(
|
|
20552
|
+
if (isTrustedLeaf(child2)) {
|
|
20553
|
+
if (!holdsOnlyState(child2, depth + 1, leaves))
|
|
20554
20554
|
return false;
|
|
20555
20555
|
continue;
|
|
20556
20556
|
}
|
|
20557
|
-
if (!isFrozenState(
|
|
20557
|
+
if (!isFrozenState(child2, depth + 1, leaves))
|
|
20558
20558
|
return false;
|
|
20559
20559
|
}
|
|
20560
20560
|
frozenState.add(value);
|
|
@@ -20629,17 +20629,17 @@ class StateContext {
|
|
|
20629
20629
|
* uncommitted output, which a reader of the log might not find.
|
|
20630
20630
|
*/
|
|
20631
20631
|
forStep() {
|
|
20632
|
-
const
|
|
20633
|
-
|
|
20634
|
-
|
|
20635
|
-
|
|
20636
|
-
|
|
20637
|
-
|
|
20638
|
-
|
|
20639
|
-
|
|
20640
|
-
|
|
20641
|
-
Object.assign(
|
|
20642
|
-
return
|
|
20632
|
+
const child2 = new StateContext();
|
|
20633
|
+
child2.parent = this;
|
|
20634
|
+
child2.registrations = this.registrations;
|
|
20635
|
+
child2.sources = this.sources;
|
|
20636
|
+
child2.strings = this.strings;
|
|
20637
|
+
child2.recentInputs = [...this.recentInputs];
|
|
20638
|
+
child2.standalone = this.standalone;
|
|
20639
|
+
child2.writesSourceRefs = this.writesSourceRefs;
|
|
20640
|
+
child2.writesRecords = this.writesRecords;
|
|
20641
|
+
Object.assign(child2.stats, this.stats);
|
|
20642
|
+
return child2;
|
|
20643
20643
|
}
|
|
20644
20644
|
version(id) {
|
|
20645
20645
|
return this.versions.get(id) ?? this.parent?.version(id);
|
|
@@ -20719,9 +20719,9 @@ class StateContext {
|
|
|
20719
20719
|
if (isTrustedLeaf(value))
|
|
20720
20720
|
return;
|
|
20721
20721
|
const children2 = Array.isArray(value) ? value : Object.keys(value).map((key) => value[key]);
|
|
20722
|
-
for (const
|
|
20723
|
-
if (
|
|
20724
|
-
this.inside.add(
|
|
20722
|
+
for (const child2 of children2)
|
|
20723
|
+
if (child2 !== null && typeof child2 === "object" && !this.isKnown(child2))
|
|
20724
|
+
this.inside.add(child2);
|
|
20725
20725
|
}
|
|
20726
20726
|
/** A version this context can write a reference to. */
|
|
20727
20727
|
isKnown(value) {
|
|
@@ -20761,8 +20761,8 @@ class StateContext {
|
|
|
20761
20761
|
if (isTrustedLeaf(node2))
|
|
20762
20762
|
continue;
|
|
20763
20763
|
if (Array.isArray(node2))
|
|
20764
|
-
for (const
|
|
20765
|
-
stack.push(
|
|
20764
|
+
for (const child2 of node2)
|
|
20765
|
+
stack.push(child2);
|
|
20766
20766
|
else
|
|
20767
20767
|
for (const key of Object.keys(node2))
|
|
20768
20768
|
stack.push(node2[key]);
|
|
@@ -20819,8 +20819,8 @@ class StateContext {
|
|
|
20819
20819
|
if (known || isTrustedLeaf(node2))
|
|
20820
20820
|
continue;
|
|
20821
20821
|
if (Array.isArray(node2))
|
|
20822
|
-
for (const
|
|
20823
|
-
stack.push(
|
|
20822
|
+
for (const child2 of node2)
|
|
20823
|
+
stack.push(child2);
|
|
20824
20824
|
else
|
|
20825
20825
|
for (const key of Object.keys(node2))
|
|
20826
20826
|
stack.push(node2[key]);
|
|
@@ -21008,9 +21008,9 @@ class StateContext {
|
|
|
21008
21008
|
read.set(v2, atDepth);
|
|
21009
21009
|
}
|
|
21010
21010
|
let node2;
|
|
21011
|
-
const visit2 = (key,
|
|
21011
|
+
const visit2 = (key, child2) => {
|
|
21012
21012
|
path2.push(key);
|
|
21013
|
-
const found = walk(
|
|
21013
|
+
const found = walk(child2, pathBytes + 1 + (typeof key === "number" ? String(key).length : jsonLength(key)));
|
|
21014
21014
|
path2.pop();
|
|
21015
21015
|
if (found === void 0)
|
|
21016
21016
|
return;
|
|
@@ -21112,8 +21112,8 @@ class StateContext {
|
|
|
21112
21112
|
seen2.set(v2, depth);
|
|
21113
21113
|
if (--budget < 0)
|
|
21114
21114
|
return true;
|
|
21115
|
-
for (const
|
|
21116
|
-
if (scan(
|
|
21115
|
+
for (const child2 of childrenOf(v2))
|
|
21116
|
+
if (scan(child2, depth + 1))
|
|
21117
21117
|
return true;
|
|
21118
21118
|
return false;
|
|
21119
21119
|
};
|
|
@@ -21429,8 +21429,8 @@ class ClassInstanceRef {
|
|
|
21429
21429
|
classId;
|
|
21430
21430
|
data;
|
|
21431
21431
|
__type = CLASS_INSTANCE_REF_TYPE;
|
|
21432
|
-
constructor(
|
|
21433
|
-
this.className =
|
|
21432
|
+
constructor(className2, classId, data) {
|
|
21433
|
+
this.className = className2;
|
|
21434
21434
|
this.classId = classId;
|
|
21435
21435
|
this.data = data;
|
|
21436
21436
|
}
|
|
@@ -21480,11 +21480,11 @@ const extractClassName = (classId) => {
|
|
|
21480
21480
|
return parts[parts.length - 1] || classId;
|
|
21481
21481
|
};
|
|
21482
21482
|
const serializedInstanceToRef = (value) => {
|
|
21483
|
-
const
|
|
21484
|
-
if (
|
|
21483
|
+
const className2 = extractClassName(value.classId);
|
|
21484
|
+
if (className2 === "Run" && value.data !== null && typeof value.data === "object" && "runId" in value.data && typeof value.data.runId === "string") {
|
|
21485
21485
|
return serializedRunToRunRef(value.data);
|
|
21486
21486
|
}
|
|
21487
|
-
return new ClassInstanceRef(
|
|
21487
|
+
return new ClassInstanceRef(className2, value.classId, value.data);
|
|
21488
21488
|
};
|
|
21489
21489
|
const serializedClassToString = (value) => {
|
|
21490
21490
|
return `<class:${extractClassName(value.classId)}>`;
|
|
@@ -21936,11 +21936,11 @@ function getWebRevivers() {
|
|
|
21936
21936
|
if (isRunRef(runRef)) {
|
|
21937
21937
|
return runRef;
|
|
21938
21938
|
}
|
|
21939
|
-
const
|
|
21939
|
+
const className2 = extractClassName(value.classId);
|
|
21940
21940
|
const data = value.data;
|
|
21941
21941
|
const props = data && typeof data === "object" ? { ...data } : { value: data };
|
|
21942
|
-
const ctor = { [
|
|
21943
|
-
} }[
|
|
21942
|
+
const ctor = { [className2]: function() {
|
|
21943
|
+
} }[className2];
|
|
21944
21944
|
const obj = Object.create(ctor.prototype);
|
|
21945
21945
|
Object.assign(obj, props);
|
|
21946
21946
|
return obj;
|
|
@@ -22023,7 +22023,7 @@ async function hydrateResourceIOAsync(resource, key, extraRevivers) {
|
|
|
22023
22023
|
return { hydrateDataWithKey: hydrateDataWithKey3, deriveRunPayloadKeys: deriveRunPayloadKeys3 };
|
|
22024
22024
|
}, true ? void 0 : void 0);
|
|
22025
22025
|
const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
|
|
22026
|
-
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-
|
|
22026
|
+
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-CqZHDp17.js");
|
|
22027
22027
|
return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
|
|
22028
22028
|
}, true ? __vite__mapDeps([0,1]) : void 0);
|
|
22029
22029
|
ensureZstdDecoderRegistered();
|
|
@@ -22169,6 +22169,67 @@ function extractConversation(stepInput) {
|
|
|
22169
22169
|
}
|
|
22170
22170
|
return firstArg;
|
|
22171
22171
|
}
|
|
22172
|
+
const SPAN_COLORS = {
|
|
22173
|
+
run: {
|
|
22174
|
+
icon: "text-blue-900",
|
|
22175
|
+
bar: "border-blue-500 bg-blue-200",
|
|
22176
|
+
line: "--ds-blue-400"
|
|
22177
|
+
},
|
|
22178
|
+
step: {
|
|
22179
|
+
icon: "text-green-900",
|
|
22180
|
+
bar: "border-green-500 bg-green-200",
|
|
22181
|
+
line: "--ds-green-400"
|
|
22182
|
+
},
|
|
22183
|
+
hook: {
|
|
22184
|
+
icon: "text-gray-900",
|
|
22185
|
+
bar: "border-gray-500 bg-gray-200",
|
|
22186
|
+
line: "--ds-gray-400"
|
|
22187
|
+
},
|
|
22188
|
+
sleep: {
|
|
22189
|
+
icon: "text-gray-900",
|
|
22190
|
+
bar: "border-gray-500 bg-gray-400",
|
|
22191
|
+
line: "--ds-gray-400"
|
|
22192
|
+
},
|
|
22193
|
+
failed: {
|
|
22194
|
+
icon: "text-red-800",
|
|
22195
|
+
bar: "border-red-500 bg-red-200",
|
|
22196
|
+
line: "--ds-red-400"
|
|
22197
|
+
},
|
|
22198
|
+
cancelled: {
|
|
22199
|
+
icon: "text-gray-700",
|
|
22200
|
+
bar: "border-gray-700 bg-gray-500",
|
|
22201
|
+
line: "--ds-gray-600"
|
|
22202
|
+
},
|
|
22203
|
+
retrying: {
|
|
22204
|
+
icon: "text-amber-800",
|
|
22205
|
+
bar: "border-amber-500 bg-amber-200",
|
|
22206
|
+
line: "--ds-amber-400"
|
|
22207
|
+
}
|
|
22208
|
+
};
|
|
22209
|
+
const RESOURCE_TONE = {
|
|
22210
|
+
run: "run",
|
|
22211
|
+
step: "step",
|
|
22212
|
+
sleep: "sleep"
|
|
22213
|
+
};
|
|
22214
|
+
const STATE_TONE = {
|
|
22215
|
+
failed: "failed",
|
|
22216
|
+
cancelled: "cancelled",
|
|
22217
|
+
retrying: "retrying",
|
|
22218
|
+
pending: "hook"
|
|
22219
|
+
};
|
|
22220
|
+
function getSpanColors(resource, state = "") {
|
|
22221
|
+
return SPAN_COLORS[STATE_TONE[state] ?? RESOURCE_TONE[resource] ?? "hook"];
|
|
22222
|
+
}
|
|
22223
|
+
const STATUS_DOT = {
|
|
22224
|
+
queued: "bg-gray-500",
|
|
22225
|
+
pending: "bg-gray-500",
|
|
22226
|
+
cancelled: "bg-gray-500",
|
|
22227
|
+
running: "bg-geist-warning",
|
|
22228
|
+
retrying: "bg-geist-warning",
|
|
22229
|
+
succeeded: "bg-geist-cyan",
|
|
22230
|
+
completed: "bg-geist-cyan",
|
|
22231
|
+
failed: "bg-geist-error"
|
|
22232
|
+
};
|
|
22172
22233
|
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
22173
22234
|
const cx = clsx;
|
|
22174
22235
|
const cva = (base, config2) => (props) => {
|
|
@@ -22217,7 +22278,7 @@ function useCollapsibleContext(part) {
|
|
|
22217
22278
|
}
|
|
22218
22279
|
return context;
|
|
22219
22280
|
}
|
|
22220
|
-
function CollapsibleRoot({ children: children2, variant = "section", disabled = false, defaultOpen = false, onOpenChange, className }) {
|
|
22281
|
+
function CollapsibleRoot({ children: children2, variant = "section", disabled = false, defaultOpen = false, onOpenChange, className: className2 }) {
|
|
22221
22282
|
const [open2, setOpen] = reactExports.useState(defaultOpen);
|
|
22222
22283
|
const handleToggle = (event) => {
|
|
22223
22284
|
if (event.target !== event.currentTarget)
|
|
@@ -22226,29 +22287,29 @@ function CollapsibleRoot({ children: children2, variant = "section", disabled =
|
|
|
22226
22287
|
setOpen(next2);
|
|
22227
22288
|
onOpenChange?.(next2);
|
|
22228
22289
|
};
|
|
22229
|
-
const details = jsxRuntimeExports.jsx("details", { "data-slot": "collapsible", "data-state": open2 ? "open" : "closed", open: open2, onToggle: disabled ? void 0 : handleToggle, className: cn$2(variant === "card" ? "group/card border-gray-alpha-400 last:border-b" : "group",
|
|
22290
|
+
const details = jsxRuntimeExports.jsx("details", { "data-slot": "collapsible", "data-state": open2 ? "open" : "closed", open: open2, onToggle: disabled ? void 0 : handleToggle, className: cn$2(variant === "card" ? "group/card border-gray-alpha-400 last:border-b" : "group", className2), children: jsxRuntimeExports.jsx(CollapsibleContext.Provider, { value: { variant, disabled }, children: children2 }) });
|
|
22230
22291
|
if (variant === "card") {
|
|
22231
22292
|
return details;
|
|
22232
22293
|
}
|
|
22233
22294
|
return jsxRuntimeExports.jsx("section", { className: "-mx-4 border-t border-gray-alpha-400 px-4 py-2", children: details });
|
|
22234
22295
|
}
|
|
22235
|
-
function CollapsibleTrigger({ children: children2, className }) {
|
|
22296
|
+
function CollapsibleTrigger({ children: children2, className: className2 }) {
|
|
22236
22297
|
const { variant, disabled } = useCollapsibleContext("Trigger");
|
|
22237
22298
|
if (variant === "card") {
|
|
22238
|
-
return jsxRuntimeExports.jsxs("summary", { "data-slot": "collapsible-trigger", className: cn$2("flex cursor-pointer list-none items-center gap-1.5 border-t border-gray-alpha-400 bg-background-200 px-3 py-4 hover:bg-gray-100 [&::-webkit-details-marker]:hidden",
|
|
22299
|
+
return jsxRuntimeExports.jsxs("summary", { "data-slot": "collapsible-trigger", className: cn$2("flex cursor-pointer list-none items-center gap-1.5 border-t border-gray-alpha-400 bg-background-200 px-3 py-4 hover:bg-gray-100 [&::-webkit-details-marker]:hidden", "focus-visible:[outline:var(--ds-focus-ring-outline,2px_solid_var(--ds-focus-color))] focus-visible:-outline-offset-2", className2), children: [jsxRuntimeExports.jsx(ChevronRight, { size: 14, className: "shrink-0 text-gray-1000 transition-transform duration-200 ease-in-out group-open/card:rotate-90 motion-reduce:transition-none" }), children2] });
|
|
22239
22300
|
}
|
|
22240
22301
|
const row = "flex h-9 items-center gap-2 -mx-2 px-2 text-heading-14 font-medium list-none [&::-webkit-details-marker]:hidden";
|
|
22241
22302
|
if (disabled) {
|
|
22242
|
-
return jsxRuntimeExports.jsx("summary", { "data-slot": "collapsible-trigger", className: cn$2(row, "pointer-events-none text-gray-700",
|
|
22303
|
+
return jsxRuntimeExports.jsx("summary", { "data-slot": "collapsible-trigger", className: cn$2(row, "pointer-events-none text-gray-700", className2), children: jsxRuntimeExports.jsx("span", { className: "min-w-0 flex-1", children: children2 }) });
|
|
22243
22304
|
}
|
|
22244
|
-
return jsxRuntimeExports.jsxs("summary", { "data-slot": "collapsible-trigger", className: cn$2(row, "
|
|
22305
|
+
return jsxRuntimeExports.jsxs("summary", { "data-slot": "collapsible-trigger", className: cn$2(row, "cursor-pointer rounded hover:bg-gray-alpha-100 outline-none focus-visible:shadow-[var(--ds-focus-ring)]", className2), children: [jsxRuntimeExports.jsx(ChevronRight, { size: 14, className: "shrink-0 text-gray-1000 transition-transform duration-200 ease-in-out group-open:rotate-90 motion-reduce:transition-none" }), jsxRuntimeExports.jsx("span", { className: "min-w-0 flex-1", children: children2 })] });
|
|
22245
22306
|
}
|
|
22246
|
-
function CollapsibleContent({ children: children2, className }) {
|
|
22307
|
+
function CollapsibleContent({ children: children2, className: className2 }) {
|
|
22247
22308
|
const { variant } = useCollapsibleContext("Content");
|
|
22248
|
-
return jsxRuntimeExports.jsx("div", { "data-slot": "collapsible-content", className: cn$2(variant === "section" && "mt-2 mb-3",
|
|
22309
|
+
return jsxRuntimeExports.jsx("div", { "data-slot": "collapsible-content", className: cn$2(variant === "section" && "mt-2 mb-3", className2), children: children2 });
|
|
22249
22310
|
}
|
|
22250
|
-
function Collapsible({ label, children: children2, disabled, defaultOpen, onOpenChange, actions }) {
|
|
22251
|
-
return jsxRuntimeExports.jsxs(CollapsibleRoot, { disabled, defaultOpen, onOpenChange, className: actions ? "relative" : void 0, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { children:
|
|
22311
|
+
function Collapsible({ label: label2, children: children2, disabled, defaultOpen, onOpenChange, actions }) {
|
|
22312
|
+
return jsxRuntimeExports.jsxs(CollapsibleRoot, { disabled, defaultOpen, onOpenChange, className: actions ? "relative" : void 0, children: [jsxRuntimeExports.jsx(CollapsibleTrigger, { children: label2 }), actions ? jsxRuntimeExports.jsx("div", { className: "absolute top-0 right-0 flex h-9 items-center gap-1", children: actions }) : null, children2 != null && jsxRuntimeExports.jsx(CollapsibleContent, { children: children2 })] });
|
|
22252
22313
|
}
|
|
22253
22314
|
function __insertCSS(code2) {
|
|
22254
22315
|
if (typeof document == "undefined") return;
|
|
@@ -22273,11 +22334,11 @@ const getAsset = (type) => {
|
|
|
22273
22334
|
}
|
|
22274
22335
|
};
|
|
22275
22336
|
const bars = Array(12).fill(0);
|
|
22276
|
-
const Loader = ({ visible, className }) => {
|
|
22337
|
+
const Loader = ({ visible, className: className2 }) => {
|
|
22277
22338
|
return /* @__PURE__ */ ReactExports.createElement("div", {
|
|
22278
22339
|
className: [
|
|
22279
22340
|
"sonner-loading-wrapper",
|
|
22280
|
-
|
|
22341
|
+
className2
|
|
22281
22342
|
].filter(Boolean).join(" "),
|
|
22282
22343
|
"data-visible": visible
|
|
22283
22344
|
}, /* @__PURE__ */ ReactExports.createElement("div", {
|
|
@@ -22703,7 +22764,7 @@ function getDefaultSwipeDirections(position2) {
|
|
|
22703
22764
|
}
|
|
22704
22765
|
const Toast = (props) => {
|
|
22705
22766
|
var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;
|
|
22706
|
-
const { invert: ToasterInvert, toast: toast2, unstyled, interacting, setHeights, visibleToasts, heights, index: index2, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style: style2, cancelButtonStyle, actionButtonStyle, className = "", descriptionClassName = "", duration: durationFromToaster, position: position2, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = "Close toast" } = props;
|
|
22767
|
+
const { invert: ToasterInvert, toast: toast2, unstyled, interacting, setHeights, visibleToasts, heights, index: index2, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style: style2, cancelButtonStyle, actionButtonStyle, className: className2 = "", descriptionClassName = "", duration: durationFromToaster, position: position2, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = "Close toast" } = props;
|
|
22707
22768
|
const [swipeDirection, setSwipeDirection] = ReactExports.useState(null);
|
|
22708
22769
|
const [swipeOutDirection, setSwipeOutDirection] = ReactExports.useState(null);
|
|
22709
22770
|
const [mounted, setMounted] = ReactExports.useState(false);
|
|
@@ -22904,7 +22965,7 @@ const Toast = (props) => {
|
|
|
22904
22965
|
return /* @__PURE__ */ ReactExports.createElement("li", {
|
|
22905
22966
|
tabIndex: 0,
|
|
22906
22967
|
ref: toastRef,
|
|
22907
|
-
className: cn$1(
|
|
22968
|
+
className: cn$1(className2, toastClassname, classNames == null ? void 0 : classNames.toast, toast2 == null ? void 0 : (_toast_classNames = toast2.classNames) == null ? void 0 : _toast_classNames.toast, classNames == null ? void 0 : classNames[toastTypeKey], toast2 == null ? void 0 : (_toast_classNames1 = toast2.classNames) == null ? void 0 : _toast_classNames1[toastTypeKey]),
|
|
22908
22969
|
"data-sonner-toast": "",
|
|
22909
22970
|
"data-rich-colors": (_toast_richColors = toast2.richColors) != null ? _toast_richColors : defaultRichColors,
|
|
22910
22971
|
"data-styled": !Boolean(toast2.jsx || toast2.unstyled || unstyled),
|
|
@@ -23124,7 +23185,7 @@ const Toaster = /* @__PURE__ */ ReactExports.forwardRef(function Toaster2(props,
|
|
|
23124
23185
|
const { id, invert, position: position2 = "bottom-right", hotkey = [
|
|
23125
23186
|
"altKey",
|
|
23126
23187
|
"KeyT"
|
|
23127
|
-
], expand, closeButton, className, offset: offset2, mobileOffset, theme = "light", richColors, duration: duration2, style: style2, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions, dir = getDocumentDirection(), gap = GAP, icons, customAriaLabel, containerAriaLabel = "Notifications" } = props;
|
|
23188
|
+
], expand, closeButton, className: className2, offset: offset2, mobileOffset, theme = "light", richColors, duration: duration2, style: style2, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions, dir = getDocumentDirection(), gap = GAP, icons, customAriaLabel, containerAriaLabel = "Notifications" } = props;
|
|
23128
23189
|
const [toasts, setToasts] = ReactExports.useState([]);
|
|
23129
23190
|
const filteredToasts = ReactExports.useMemo(() => {
|
|
23130
23191
|
if (id) {
|
|
@@ -23292,7 +23353,7 @@ const Toaster = /* @__PURE__ */ ReactExports.forwardRef(function Toaster2(props,
|
|
|
23292
23353
|
dir: dir === "auto" ? getDocumentDirection() : dir,
|
|
23293
23354
|
tabIndex: -1,
|
|
23294
23355
|
ref: listRef,
|
|
23295
|
-
className,
|
|
23356
|
+
className: className2,
|
|
23296
23357
|
"data-sonner-toaster": true,
|
|
23297
23358
|
"data-sonner-theme": actualTheme,
|
|
23298
23359
|
"data-y-position": y2,
|
|
@@ -23401,7 +23462,7 @@ const iconButtonVariants = cva([
|
|
|
23401
23462
|
size: "tiny"
|
|
23402
23463
|
}
|
|
23403
23464
|
});
|
|
23404
|
-
const IconButton = reactExports.forwardRef(({ className, variant, size: size2, type = "button", ...props }, ref) => jsxRuntimeExports.jsx("button", { ref, type, className: cn$2(iconButtonVariants({ variant, size: size2, className })), ...props }));
|
|
23465
|
+
const IconButton = reactExports.forwardRef(({ className: className2, variant, size: size2, type = "button", ...props }, ref) => jsxRuntimeExports.jsx("button", { ref, type, className: cn$2(iconButtonVariants({ variant, size: size2, className: className2 })), ...props }));
|
|
23405
23466
|
IconButton.displayName = "IconButton";
|
|
23406
23467
|
const copyButtonVariants = cva("", {
|
|
23407
23468
|
variants: {
|
|
@@ -23415,7 +23476,7 @@ const copyButtonVariants = cva("", {
|
|
|
23415
23476
|
}
|
|
23416
23477
|
});
|
|
23417
23478
|
const icon = "[grid-area:1/1] transition-[opacity,scale] duration-200 ease-in-out";
|
|
23418
|
-
const CopyButton = reactExports.forwardRef(({ textToCopy, size: size2, onClick, className, ...props }, ref) => {
|
|
23479
|
+
const CopyButton = reactExports.forwardRef(({ textToCopy, size: size2, onClick, className: className2, ...props }, ref) => {
|
|
23419
23480
|
const toast2 = useToast();
|
|
23420
23481
|
const [copied, setCopied] = reactExports.useState(false);
|
|
23421
23482
|
const timeoutRef = reactExports.useRef(void 0);
|
|
@@ -23429,7 +23490,7 @@ const CopyButton = reactExports.forwardRef(({ textToCopy, size: size2, onClick,
|
|
|
23429
23490
|
timeoutRef.current = setTimeout(() => setCopied(false), 1e3);
|
|
23430
23491
|
}).catch(() => toast2.error("Failed to copy to clipboard"));
|
|
23431
23492
|
};
|
|
23432
|
-
return jsxRuntimeExports.jsxs(IconButton, { ref, onClick: copy, className: cn$2(copyButtonVariants({ size: size2 }),
|
|
23493
|
+
return jsxRuntimeExports.jsxs(IconButton, { ref, onClick: copy, className: cn$2(copyButtonVariants({ size: size2 }), className2), ...props, children: [jsxRuntimeExports.jsxs("span", { className: "grid", children: [jsxRuntimeExports.jsx(Check, { className: cn$2(icon, copied ? "scale-100 opacity-100" : "scale-50 opacity-0") }), jsxRuntimeExports.jsx(Copy, { className: cn$2(icon, copied ? "scale-50 opacity-0" : "scale-100 opacity-100") })] }), jsxRuntimeExports.jsx("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })] });
|
|
23433
23494
|
});
|
|
23434
23495
|
CopyButton.displayName = "CopyButton";
|
|
23435
23496
|
const sizeConfig = {
|
|
@@ -23447,7 +23508,7 @@ const sizeConfig = {
|
|
|
23447
23508
|
},
|
|
23448
23509
|
lg: {
|
|
23449
23510
|
angleIncrement: 30,
|
|
23450
|
-
lineDimensions: "h-
|
|
23511
|
+
lineDimensions: "h-0.5 w-[5px]",
|
|
23451
23512
|
delays: [
|
|
23452
23513
|
-1100,
|
|
23453
23514
|
-1e3,
|
|
@@ -23573,9 +23634,9 @@ const spinnerVariants = cva("relative inline-block aspect-square transform-gpu t
|
|
|
23573
23634
|
}
|
|
23574
23635
|
}
|
|
23575
23636
|
});
|
|
23576
|
-
function Spinner({ size: size2 = "lg", className, ...props }) {
|
|
23637
|
+
function Spinner({ size: size2 = "lg", className: className2, ...props }) {
|
|
23577
23638
|
const { angleIncrement, lineDimensions, delays, duration: duration2 } = sizeConfig[size2];
|
|
23578
|
-
return jsxRuntimeExports.jsxs("span", { role: "status", "aria-label": "Loading", className: cn$2(spinnerVariants({ size: size2 }),
|
|
23639
|
+
return jsxRuntimeExports.jsxs("span", { role: "status", "aria-label": "Loading", className: cn$2(spinnerVariants({ size: size2 }), className2), ...props, children: [delays.map((delay, index2) => jsxRuntimeExports.jsx("span", { "aria-hidden": "true", className: cn$2("absolute top-1/2 left-1/2 origin-center rounded-full bg-current will-change-transform", lineDimensions), style: {
|
|
23579
23640
|
animation: `spinner-opacity ${duration2}ms linear infinite`,
|
|
23580
23641
|
animationDelay: `${delay}ms`,
|
|
23581
23642
|
// Centring lives in the transform rather than translate
|
|
@@ -23657,17 +23718,17 @@ const SPINNER_SIZE = {
|
|
|
23657
23718
|
function ButtonContent({ size: size2, iconOnly, loading, prefix, suffix, children: children2 }) {
|
|
23658
23719
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [loading || prefix != null ? jsxRuntimeExports.jsx("span", { "data-button-slot": "prefix", "aria-hidden": loading || void 0, className: "mr-[3px] flex min-w-5 shrink-0 items-center justify-center", children: loading ? jsxRuntimeExports.jsx(Spinner, { size: SPINNER_SIZE[size2] }) : prefix }) : null, jsxRuntimeExports.jsx("span", { className: cn$2("px-1.5", iconOnly ? "inline-flex shrink-0 items-center justify-center" : "truncate"), children: children2 }), suffix != null ? jsxRuntimeExports.jsx("span", { "data-button-slot": "suffix", className: "mr-0.5 ml-1 flex shrink-0 items-center justify-center", children: suffix }) : null] });
|
|
23659
23720
|
}
|
|
23660
|
-
const Button = reactExports.forwardRef(({ className, variant, size: size2, shape, asChild = false, loading = false, prefix, suffix, disabled, type, children: children2, ...props }, ref) => {
|
|
23661
|
-
const content2 = (
|
|
23721
|
+
const Button = reactExports.forwardRef(({ className: className2, variant, size: size2, shape, asChild = false, loading = false, prefix, suffix, disabled, type, children: children2, ...props }, ref) => {
|
|
23722
|
+
const content2 = (label2) => jsxRuntimeExports.jsx(ButtonContent, { size: size2 ?? "medium", iconOnly: shape != null, loading, prefix, suffix, children: label2 });
|
|
23662
23723
|
const shared = {
|
|
23663
23724
|
ref,
|
|
23664
|
-
className: cn$2(buttonVariants({ variant, size: size2, shape }),
|
|
23725
|
+
className: cn$2(buttonVariants({ variant, size: size2, shape }), className2),
|
|
23665
23726
|
"aria-busy": loading || void 0,
|
|
23666
23727
|
...props
|
|
23667
23728
|
};
|
|
23668
23729
|
if (asChild) {
|
|
23669
|
-
const
|
|
23670
|
-
return jsxRuntimeExports.jsx(Slot, { ...shared, "aria-disabled": disabled || loading || void 0, children: reactExports.cloneElement(
|
|
23730
|
+
const child2 = reactExports.Children.only(children2);
|
|
23731
|
+
return jsxRuntimeExports.jsx(Slot, { ...shared, "aria-disabled": disabled || loading || void 0, children: reactExports.cloneElement(child2, void 0, content2(child2.props.children)) });
|
|
23671
23732
|
}
|
|
23672
23733
|
return jsxRuntimeExports.jsx("button", { ...shared, type: type ?? "button", disabled: disabled || loading, children: content2(children2) });
|
|
23673
23734
|
});
|
|
@@ -23694,92 +23755,50 @@ function formatArrayBufferViewForDisplay(value) {
|
|
|
23694
23755
|
return { text: summarizeArrayBufferView(value) };
|
|
23695
23756
|
}
|
|
23696
23757
|
}
|
|
23697
|
-
const
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
|
|
23708
|
-
|
|
23709
|
-
|
|
23710
|
-
|
|
23711
|
-
|
|
23712
|
-
|
|
23713
|
-
|
|
23714
|
-
|
|
23715
|
-
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
|
-
|
|
23721
|
-
|
|
23722
|
-
|
|
23723
|
-
|
|
23724
|
-
|
|
23725
|
-
|
|
23726
|
-
|
|
23727
|
-
|
|
23728
|
-
|
|
23729
|
-
|
|
23730
|
-
|
|
23731
|
-
|
|
23732
|
-
|
|
23733
|
-
|
|
23734
|
-
|
|
23735
|
-
|
|
23736
|
-
|
|
23737
|
-
|
|
23738
|
-
|
|
23739
|
-
|
|
23740
|
-
|
|
23741
|
-
}
|
|
23742
|
-
.${CLS.clickableLabel} { cursor: pointer; }
|
|
23743
|
-
.${CLS.punctuation} { color: var(--ds-gray-1000); }
|
|
23744
|
-
.${CLS.className} { font-style: italic; color: var(--ds-gray-900); margin-right: 1ch; }
|
|
23745
|
-
.${CLS.string} { color: var(--ds-green-900); }
|
|
23746
|
-
.${CLS.number} { color: var(--ds-blue-900); }
|
|
23747
|
-
.${CLS.boolean} { color: var(--ds-amber-900); }
|
|
23748
|
-
.${CLS.null}, .${CLS.undefined} { color: var(--ds-gray-900); }
|
|
23749
|
-
.${CLS.date} { color: var(--ds-pink-900); }
|
|
23750
|
-
.${CLS.regexp} { color: var(--ds-purple-900); }
|
|
23751
|
-
.${CLS.container} > .${CLS.child} > .${CLS.expandIcon},
|
|
23752
|
-
.${CLS.container} > .${CLS.child} > .${CLS.collapseIcon} { margin-left: -1.5ch; }
|
|
23753
|
-
.${CLS.expandIcon}, .${CLS.collapseIcon} {
|
|
23754
|
-
appearance: none;
|
|
23755
|
-
background: none;
|
|
23756
|
-
border: 0;
|
|
23757
|
-
padding: 0;
|
|
23758
|
-
font: inherit;
|
|
23759
|
-
vertical-align: baseline;
|
|
23760
|
-
cursor: pointer;
|
|
23761
|
-
display: inline-block;
|
|
23762
|
-
margin-right: 0ch;
|
|
23763
|
-
margin-left: -1.5ch;
|
|
23764
|
-
color: var(--ds-gray-500);
|
|
23765
|
-
user-select: none;
|
|
23766
|
-
outline: none;
|
|
23767
|
-
}
|
|
23768
|
-
.${CLS.expandIcon}::after {
|
|
23769
|
-
content: '\\25B8';
|
|
23770
|
-
margin-right: 0.5ch;
|
|
23771
|
-
transform: translateY(-0.5px);
|
|
23772
|
-
display: block;
|
|
23773
|
-
}
|
|
23774
|
-
.${CLS.collapseIcon}::after { content: '\\25BE'; margin-right: 0.5ch; }
|
|
23775
|
-
.${CLS.expandIcon}:hover, .${CLS.collapseIcon}:hover,
|
|
23776
|
-
.${CLS.child}:has(> .${CLS.clickableLabel}:hover) > .${CLS.expandIcon},
|
|
23777
|
-
.${CLS.child}:has(> .${CLS.clickableLabel}:hover) > .${CLS.collapseIcon} {
|
|
23778
|
-
color: var(--ds-gray-1000);
|
|
23779
|
-
}
|
|
23780
|
-
.${CLS.collapsedContent} { color: var(--ds-gray-900); }
|
|
23781
|
-
.${CLS.collapsedContent}::after { content: '...'; }
|
|
23782
|
-
`;
|
|
23758
|
+
const container = "_container_y7aza_1";
|
|
23759
|
+
const child = "_child_y7aza_13";
|
|
23760
|
+
const childFields = "_childFields_y7aza_28";
|
|
23761
|
+
const label = "_label_y7aza_33";
|
|
23762
|
+
const clickableLabel = "_clickableLabel_y7aza_34";
|
|
23763
|
+
const punctuation = "_punctuation_y7aza_42";
|
|
23764
|
+
const className = "_className_y7aza_45";
|
|
23765
|
+
const string$2 = "_string_y7aza_50";
|
|
23766
|
+
const number$2 = "_number_y7aza_53";
|
|
23767
|
+
const boolean$2 = "_boolean_y7aza_56";
|
|
23768
|
+
const date = "_date_y7aza_63";
|
|
23769
|
+
const regexp = "_regexp_y7aza_66";
|
|
23770
|
+
const expandIcon = "_expandIcon_y7aza_69";
|
|
23771
|
+
const collapseIcon = "_collapseIcon_y7aza_70";
|
|
23772
|
+
const collapsedContent = "_collapsedContent_y7aza_105";
|
|
23773
|
+
const styles$1 = {
|
|
23774
|
+
container,
|
|
23775
|
+
child,
|
|
23776
|
+
childFields,
|
|
23777
|
+
label,
|
|
23778
|
+
clickableLabel,
|
|
23779
|
+
punctuation,
|
|
23780
|
+
className,
|
|
23781
|
+
string: string$2,
|
|
23782
|
+
number: number$2,
|
|
23783
|
+
boolean: boolean$2,
|
|
23784
|
+
"null": "_null_y7aza_59",
|
|
23785
|
+
"undefined": "_undefined_y7aza_60",
|
|
23786
|
+
date,
|
|
23787
|
+
regexp,
|
|
23788
|
+
expandIcon,
|
|
23789
|
+
collapseIcon,
|
|
23790
|
+
collapsedContent
|
|
23791
|
+
};
|
|
23792
|
+
const TOOLTIP_DELAY_MS = 400;
|
|
23793
|
+
function TooltipProvider({ delayDuration = TOOLTIP_DELAY_MS, skipDelayDuration = 0, ...props }) {
|
|
23794
|
+
return jsxRuntimeExports.jsx(TooltipProvider$1, { delayDuration, skipDelayDuration, ...props });
|
|
23795
|
+
}
|
|
23796
|
+
function Tooltip(props) {
|
|
23797
|
+
return jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsx(Tooltip$1, { ...props }) });
|
|
23798
|
+
}
|
|
23799
|
+
const TooltipTrigger = TooltipTrigger$1;
|
|
23800
|
+
const TooltipContent = reactExports.forwardRef(({ className: className2, sideOffset, showArrow = true, children: children2, ...props }, ref) => jsxRuntimeExports.jsx(TooltipPortal, { children: jsxRuntimeExports.jsxs(TooltipContent$1, { ref, sideOffset: sideOffset ?? (showArrow ? 4 : 10), className: cn$2("invert-theme z-[var(--ds-z-tooltip)] flex max-w-[250px] select-none items-center gap-1 rounded-lg bg-background-100 px-2 py-1.5 text-center font-normal text-[13px] leading-[1.3] text-balance text-gray-1000 break-words whitespace-pre-line has-[kbd]:pr-1.5", "transition-opacity duration-100 ease-in starting:opacity-0", className2), ...props, children: [children2, showArrow ? jsxRuntimeExports.jsx(TooltipArrow, { width: 14, height: 6, asChild: true, children: jsxRuntimeExports.jsx("svg", { "aria-hidden": "true", viewBox: "0 0 14 6", xmlns: "http://www.w3.org/2000/svg", className: "-translate-y-[0.6px]", children: jsxRuntimeExports.jsx("path", { className: "fill-background-100", d: "M13.8284 0H0.17157C0.702003 0 1.21071 0.210714 1.58578 0.585787L5.58578 4.58579C6.36683 5.36684 7.63316 5.36683 8.41421 4.58579L12.4142 0.585786C12.7893 0.210714 13.298 0 13.8284 0Z" }) }) }) : null] }) }));
|
|
23801
|
+
TooltipContent.displayName = TooltipContent$1.displayName;
|
|
23783
23802
|
const BYTES_DISPLAY_TYPE = "__workflow_bytes_display__";
|
|
23784
23803
|
function deserializeChunkText(text2) {
|
|
23785
23804
|
try {
|
|
@@ -23811,10 +23830,10 @@ const RunClickContext = reactExports.createContext(void 0);
|
|
|
23811
23830
|
function EncryptedInlineLabel() {
|
|
23812
23831
|
const ctx = reactExports.useContext(DecryptClickContext);
|
|
23813
23832
|
if (ctx) {
|
|
23814
|
-
return jsxRuntimeExports.jsx(Button, { size: "small", className: "align-baseline", loading: ctx.isDecrypting, disabled: ctx.isDecryptDisabled, prefix: jsxRuntimeExports.jsx(Lock, {}),
|
|
23833
|
+
return jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { children: jsxRuntimeExports.jsx(Button, { size: "small", className: "align-baseline", loading: ctx.isDecrypting, disabled: ctx.isDecryptDisabled, prefix: jsxRuntimeExports.jsx(Lock, {}), onClick: (e) => {
|
|
23815
23834
|
e.stopPropagation();
|
|
23816
23835
|
ctx.onDecrypt();
|
|
23817
|
-
}, children: "Decrypt" });
|
|
23836
|
+
}, children: "Decrypt" }) }) }), ctx.isDecryptDisabled && ctx.decryptDisabledReason ? jsxRuntimeExports.jsx(TooltipContent, { children: ctx.decryptDisabledReason }) : null] });
|
|
23818
23837
|
}
|
|
23819
23838
|
return jsxRuntimeExports.jsxs("span", { className: "text-gray-600 italic", children: [jsxRuntimeExports.jsx(Lock, { className: "-mt-px mr-[3px] inline h-3 w-3 align-middle" }), "Encrypted"] });
|
|
23820
23839
|
}
|
|
@@ -23823,23 +23842,23 @@ function StreamRefInline({ streamRef }) {
|
|
|
23823
23842
|
return jsxRuntimeExports.jsxs("button", { type: "button", className: "inline-flex cursor-pointer items-center gap-1 rounded border border-blue-300 bg-blue-100 px-1.5 py-0.5 font-mono text-[10px] text-blue-900 underline decoration-transparent transition-colors hover:bg-blue-200", onClick: (e) => {
|
|
23824
23843
|
e.stopPropagation();
|
|
23825
23844
|
onStreamClick?.(streamRef.streamId);
|
|
23826
|
-
},
|
|
23845
|
+
}, children: [jsxRuntimeExports.jsx(Radio, { className: "size-3 shrink-0", "aria-hidden": true }), jsxRuntimeExports.jsx("span", { children: streamRef.streamId })] });
|
|
23827
23846
|
}
|
|
23828
23847
|
function RunRefInline({ runRef }) {
|
|
23829
23848
|
const onRunClick = reactExports.useContext(RunClickContext);
|
|
23830
23849
|
return jsxRuntimeExports.jsx("button", { type: "button", className: "inline-flex cursor-pointer items-center gap-1 rounded border border-purple-300 bg-purple-100 px-1.5 py-0.5 font-mono text-[10px] text-purple-900 underline decoration-transparent transition-colors hover:bg-purple-200", onClick: (e) => {
|
|
23831
23850
|
e.stopPropagation();
|
|
23832
23851
|
onRunClick?.(runRef.runId);
|
|
23833
|
-
},
|
|
23852
|
+
}, children: jsxRuntimeExports.jsx("span", { children: runRef.runId }) });
|
|
23834
23853
|
}
|
|
23835
23854
|
function DecodedBytesChunk({ decodedText, source }) {
|
|
23836
23855
|
const [selectedView, setSelectedView] = reactExports.useState("decoded");
|
|
23837
23856
|
const parsed = parseChunkData(decodedText);
|
|
23838
|
-
return jsxRuntimeExports.jsxs("div", { className: "min-w-0", children: [selectedView === "decoded" ? jsxRuntimeExports.jsx("div", { className: "min-w-0", children: typeof parsed === "string" ? jsxRuntimeExports.jsx("span", { className: "whitespace-pre-wrap break-words text-gray-1000", children: deserializeChunkText(parsed) }) : jsxRuntimeExports.jsx(DataInspector, { data: parsed, expandLevel: 1 }) }) : jsxRuntimeExports.jsx(DecodedBytesInspector, { decodedText, source }), jsxRuntimeExports.jsx("div", { className: "mt-2 flex", children: jsxRuntimeExports.jsxs("div", { className: "inline-flex overflow-hidden rounded border border-gray-400",
|
|
23857
|
+
return jsxRuntimeExports.jsxs("div", { className: "min-w-0", children: [selectedView === "decoded" ? jsxRuntimeExports.jsx("div", { className: "min-w-0", children: typeof parsed === "string" ? jsxRuntimeExports.jsx("span", { className: "whitespace-pre-wrap break-words text-gray-1000", children: deserializeChunkText(parsed) }) : jsxRuntimeExports.jsx(DataInspector, { data: parsed, expandLevel: 1 }) }) : jsxRuntimeExports.jsx(DecodedBytesInspector, { decodedText, source }), jsxRuntimeExports.jsx("div", { className: "mt-2 flex", children: jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsxs("div", { className: "inline-flex overflow-hidden rounded border border-gray-400", children: [jsxRuntimeExports.jsx("button", { type: "button", className: cn$2("h-5 px-1.5 font-medium text-[10px] text-gray-900", selectedView === "decoded" ? "bg-gray-200" : "bg-gray-100"), onClick: () => setSelectedView("decoded"), "aria-pressed": selectedView === "decoded", "aria-label": "Show decoded text", children: "Decoded" }), jsxRuntimeExports.jsx("button", { type: "button", className: cn$2("h-5 border-gray-400 border-l px-1.5 font-medium text-[10px] text-gray-900", selectedView === "bytes" ? "bg-gray-200" : "bg-gray-100"), onClick: () => setSelectedView("bytes"), "aria-pressed": selectedView === "bytes", "aria-label": "Show raw bytes summary", children: "Bytes" })] }) }), jsxRuntimeExports.jsx(TooltipContent, { children: `${source.type} decoded as ${source.encoding.toUpperCase()}` })] }) })] });
|
|
23839
23858
|
}
|
|
23840
23859
|
function DecodedBytesInspector({ decodedText, source }) {
|
|
23841
23860
|
const [expanded, setExpanded] = reactExports.useState(false);
|
|
23842
|
-
return jsxRuntimeExports.jsxs("div", { className: "font-mono", children: [jsxRuntimeExports.jsxs("button", { type: "button", className: "flex max-w-full items-start gap-1 text-left text-gray-1000", onClick: () => setExpanded((value) => !value),
|
|
23861
|
+
return jsxRuntimeExports.jsxs("div", { className: "font-mono", children: [jsxRuntimeExports.jsxs("button", { type: "button", className: "flex max-w-full items-start gap-1 text-left text-gray-1000", onClick: () => setExpanded((value) => !value), children: [jsxRuntimeExports.jsx("span", { className: "flex h-[1lh] shrink-0 items-center text-gray-700", children: expanded ? jsxRuntimeExports.jsx(ChevronDown, { className: "size-3", "aria-hidden": true }) : jsxRuntimeExports.jsx(ChevronRight, { className: "size-3", "aria-hidden": true }) }), jsxRuntimeExports.jsx("span", { className: "min-w-0 break-words", children: source.rawSummary })] }), expanded && jsxRuntimeExports.jsxs("div", { className: "mt-1 pl-5", children: [jsxRuntimeExports.jsx("span", { className: "text-gray-700", children: "decoded: " }), jsxRuntimeExports.jsx("span", { className: "whitespace-pre-wrap break-words text-green-900", children: JSON.stringify(decodedText) })] })] });
|
|
23843
23862
|
}
|
|
23844
23863
|
function BytesDisplayValue({ display }) {
|
|
23845
23864
|
if (display.decodedFrom) {
|
|
@@ -23928,42 +23947,42 @@ function describeContainer(value) {
|
|
|
23928
23947
|
}
|
|
23929
23948
|
function describePrimitive(value) {
|
|
23930
23949
|
if (value === null)
|
|
23931
|
-
return { text: "null", cls:
|
|
23950
|
+
return { text: "null", cls: styles$1.null };
|
|
23932
23951
|
if (value === void 0)
|
|
23933
|
-
return { text: "undefined", cls:
|
|
23952
|
+
return { text: "undefined", cls: styles$1.undefined };
|
|
23934
23953
|
if (typeof value === "string" || value instanceof String) {
|
|
23935
|
-
return { text: `"${String(value)}"`, cls:
|
|
23954
|
+
return { text: `"${String(value)}"`, cls: styles$1.string };
|
|
23936
23955
|
}
|
|
23937
23956
|
if (typeof value === "boolean" || value instanceof Boolean) {
|
|
23938
|
-
return { text: String(value), cls:
|
|
23957
|
+
return { text: String(value), cls: styles$1.boolean };
|
|
23939
23958
|
}
|
|
23940
23959
|
if (typeof value === "number" || value instanceof Number) {
|
|
23941
|
-
return { text: String(value), cls:
|
|
23960
|
+
return { text: String(value), cls: styles$1.number };
|
|
23942
23961
|
}
|
|
23943
23962
|
if (typeof value === "bigint") {
|
|
23944
|
-
return { text: `${value.toString()}n`, cls:
|
|
23963
|
+
return { text: `${value.toString()}n`, cls: styles$1.number };
|
|
23945
23964
|
}
|
|
23946
|
-
return { text: String(value), cls:
|
|
23965
|
+
return { text: String(value), cls: styles$1.punctuation };
|
|
23947
23966
|
}
|
|
23948
23967
|
function Label({ field, clickable }) {
|
|
23949
23968
|
if (field === void 0)
|
|
23950
23969
|
return null;
|
|
23951
|
-
return jsxRuntimeExports.jsx("span", { className: clickable ?
|
|
23970
|
+
return jsxRuntimeExports.jsx("span", { className: clickable ? styles$1.clickableLabel : styles$1.label, children: `${formatField(field)}:` });
|
|
23952
23971
|
}
|
|
23953
23972
|
function Comma({ isLast }) {
|
|
23954
23973
|
if (isLast)
|
|
23955
23974
|
return null;
|
|
23956
|
-
return jsxRuntimeExports.jsx("span", { className:
|
|
23975
|
+
return jsxRuntimeExports.jsx("span", { className: styles$1.punctuation, children: "," });
|
|
23957
23976
|
}
|
|
23958
23977
|
function LeafRow({ field, isLast, children: children2 }) {
|
|
23959
|
-
return jsxRuntimeExports.jsxs("div", { className:
|
|
23978
|
+
return jsxRuntimeExports.jsxs("div", { className: styles$1.child, role: "treeitem", tabIndex: -1, children: [jsxRuntimeExports.jsx(Label, { field }), children2, jsxRuntimeExports.jsx(Comma, { isLast })] });
|
|
23960
23979
|
}
|
|
23961
23980
|
function PrimitiveValue({ field, value, isLast }) {
|
|
23962
23981
|
const { text: text2, cls } = describePrimitive(value);
|
|
23963
23982
|
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx("span", { className: cls, children: text2 }) });
|
|
23964
23983
|
}
|
|
23965
23984
|
function EmptyContainer({ field, prefix, open: open2, close, isLast }) {
|
|
23966
|
-
return jsxRuntimeExports.jsxs("div", { className:
|
|
23985
|
+
return jsxRuntimeExports.jsxs("div", { className: styles$1.child, role: "treeitem", tabIndex: -1, children: [jsxRuntimeExports.jsx(Label, { field }), prefix ? jsxRuntimeExports.jsx("span", { className: styles$1.className, children: prefix }) : null, jsxRuntimeExports.jsx("span", { className: styles$1.punctuation, children: open2 }), jsxRuntimeExports.jsx("span", { className: styles$1.punctuation, children: close }), jsxRuntimeExports.jsx(Comma, { isLast })] });
|
|
23967
23986
|
}
|
|
23968
23987
|
function focusExpander(button, outerRef) {
|
|
23969
23988
|
const previous2 = outerRef.current?.querySelector('[data-json-expander][tabindex="0"]');
|
|
@@ -24026,7 +24045,7 @@ function ExpandableContainer({ field, entries, open: open2, close, prefix, ctx,
|
|
|
24026
24045
|
}
|
|
24027
24046
|
};
|
|
24028
24047
|
const lastIndex = entries.length - 1;
|
|
24029
|
-
return jsxRuntimeExports.jsxs("div", { className:
|
|
24048
|
+
return jsxRuntimeExports.jsxs("div", { className: styles$1.child, role: "treeitem", "aria-expanded": expanded, "aria-controls": expanded ? contentsId : void 0, "data-json-expander": true, ref: rowRef, tabIndex: level === 0 ? 0 : -1, onClick, onKeyDown, children: [jsxRuntimeExports.jsx("span", { className: expanded ? styles$1.collapseIcon : styles$1.expandIcon, "aria-hidden": "true" }), field !== void 0 && jsxRuntimeExports.jsx("span", { className: styles$1.clickableLabel, children: `${formatField(field)}:` }), prefix ? jsxRuntimeExports.jsx("span", { className: styles$1.className, children: prefix }) : null, jsxRuntimeExports.jsx("span", { className: styles$1.punctuation, children: open2 }), expanded ? jsxRuntimeExports.jsx("ul", { id: contentsId, className: styles$1.childFields, role: "group", children: entries.map(([childField, childValue, entryKey], index2) => jsxRuntimeExports.jsx(DataRender, { field: childField, value: childValue, isLast: index2 === lastIndex, ctx: { ...ctx, level: level + 1 } }, entryKey ?? childField ?? index2)) }) : jsxRuntimeExports.jsx("span", { className: styles$1.collapsedContent, "aria-hidden": "true" }), jsxRuntimeExports.jsx("span", { className: styles$1.punctuation, children: close }), jsxRuntimeExports.jsx(Comma, { isLast })] });
|
|
24030
24049
|
}
|
|
24031
24050
|
function DataRender({ field, value, isLast, ctx }) {
|
|
24032
24051
|
if (isBytesDisplay(value)) {
|
|
@@ -24042,32 +24061,32 @@ function DataRender({ field, value, isLast, ctx }) {
|
|
|
24042
24061
|
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx(RunRefInline, { runRef: value }) });
|
|
24043
24062
|
}
|
|
24044
24063
|
if (value instanceof Date) {
|
|
24045
|
-
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx("span", { className:
|
|
24064
|
+
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx("span", { className: styles$1.date, children: value.toISOString() }) });
|
|
24046
24065
|
}
|
|
24047
24066
|
if (value instanceof RegExp) {
|
|
24048
|
-
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx("span", { className:
|
|
24067
|
+
return jsxRuntimeExports.jsx(LeafRow, { field, isLast, children: jsxRuntimeExports.jsx("span", { className: styles$1.regexp, children: value.toString() }) });
|
|
24049
24068
|
}
|
|
24050
24069
|
if (isClassInstanceRef(value)) {
|
|
24051
24070
|
return jsxRuntimeExports.jsx(ClassInstanceNode, { field, instance: value, isLast, ctx });
|
|
24052
24071
|
}
|
|
24053
|
-
const
|
|
24054
|
-
if (
|
|
24055
|
-
return jsxRuntimeExports.jsx(ExpandableContainer, { field, entries:
|
|
24072
|
+
const container2 = describeContainer(value);
|
|
24073
|
+
if (container2) {
|
|
24074
|
+
return jsxRuntimeExports.jsx(ExpandableContainer, { field, entries: container2.entries, open: container2.open, close: container2.close, prefix: container2.prefix, ctx, isLast });
|
|
24056
24075
|
}
|
|
24057
24076
|
return jsxRuntimeExports.jsx(PrimitiveValue, { field, value, isLast, ctx });
|
|
24058
24077
|
}
|
|
24059
24078
|
function ClassInstanceNode({ field, instance, isLast, ctx }) {
|
|
24060
|
-
const
|
|
24061
|
-
if (
|
|
24062
|
-
return jsxRuntimeExports.jsx(ExpandableContainer, { field, entries:
|
|
24079
|
+
const container2 = describeContainer(instance.data);
|
|
24080
|
+
if (container2) {
|
|
24081
|
+
return jsxRuntimeExports.jsx(ExpandableContainer, { field, entries: container2.entries, open: container2.open, close: container2.close, prefix: instance.className, ctx, isLast });
|
|
24063
24082
|
}
|
|
24064
24083
|
const { text: text2, cls } = describePrimitive(instance.data);
|
|
24065
|
-
return jsxRuntimeExports.jsxs(LeafRow, { field, isLast, children: [jsxRuntimeExports.jsx("span", { className:
|
|
24084
|
+
return jsxRuntimeExports.jsxs(LeafRow, { field, isLast, children: [jsxRuntimeExports.jsx("span", { className: styles$1.className, children: instance.className }), jsxRuntimeExports.jsx("span", { className: cls, children: text2 })] });
|
|
24066
24085
|
}
|
|
24067
24086
|
function JsonTree({ data, name: name2, expandLevel }) {
|
|
24068
24087
|
const outerRef = reactExports.useRef(null);
|
|
24069
24088
|
const shouldExpand = reactExports.useMemo(() => (level) => level < expandLevel, [expandLevel]);
|
|
24070
|
-
return jsxRuntimeExports.jsx("div", { ref: outerRef, className:
|
|
24089
|
+
return jsxRuntimeExports.jsx("div", { ref: outerRef, className: styles$1.container, role: "tree", "aria-label": "JSON view", children: jsxRuntimeExports.jsx(DataRender, { field: name2, value: data, isLast: true, ctx: { level: 0, shouldExpand, outerRef } }) });
|
|
24071
24090
|
}
|
|
24072
24091
|
function makeOpaqueRef(ref) {
|
|
24073
24092
|
const opaque = /* @__PURE__ */ Object.create(null);
|
|
@@ -24123,7 +24142,7 @@ function collapseRefs(data) {
|
|
|
24123
24142
|
function DataInspector({ data, expandLevel = 2, name: name2, onStreamClick, onRunClick, onDecrypt, isDecrypting = false, isDecryptDisabled = false, decryptDisabledReason }) {
|
|
24124
24143
|
const collapsedData = reactExports.useMemo(() => collapseRefs(data), [data]);
|
|
24125
24144
|
const stableData = useStableInspectorData(collapsedData);
|
|
24126
|
-
let content2 = jsxRuntimeExports.
|
|
24145
|
+
let content2 = jsxRuntimeExports.jsx(JsonTree, { data: stableData, name: name2, expandLevel });
|
|
24127
24146
|
if (onStreamClick) {
|
|
24128
24147
|
content2 = jsxRuntimeExports.jsx(StreamClickContext.Provider, { value: onStreamClick, children: content2 });
|
|
24129
24148
|
}
|
|
@@ -24252,7 +24271,7 @@ const encryptedPlaceholderPreview = `{
|
|
|
24252
24271
|
}`;
|
|
24253
24272
|
function EncryptedDataBlock() {
|
|
24254
24273
|
const ctx = reactExports.useContext(DecryptClickContext);
|
|
24255
|
-
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
|
|
24274
|
+
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 text-label-12-mono text-gray-900 blur-[4px]", children: encryptedPlaceholderPreview }), jsxRuntimeExports.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: ctx ? jsxRuntimeExports.jsxs(Tooltip, { children: [jsxRuntimeExports.jsx(TooltipTrigger, { asChild: true, children: jsxRuntimeExports.jsx("span", { children: jsxRuntimeExports.jsx(Button, { onClick: ctx.onDecrypt, loading: ctx.isDecrypting, disabled: ctx.isDecryptDisabled, size: "small", prefix: jsxRuntimeExports.jsx(Lock, {}), children: "Decrypt" }) }) }), ctx.isDecryptDisabled && ctx.decryptDisabledReason ? jsxRuntimeExports.jsx(TooltipContent, { children: ctx.decryptDisabledReason }) : null] }) : 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"] }) })] });
|
|
24256
24275
|
}
|
|
24257
24276
|
const serializeForClipboard = (value) => {
|
|
24258
24277
|
if (typeof value === "string")
|
|
@@ -24269,13 +24288,8 @@ const serializeForClipboard = (value) => {
|
|
|
24269
24288
|
function CopyableDataBlock({ data }) {
|
|
24270
24289
|
return jsxRuntimeExports.jsxs("div", { className: "relative overflow-x-auto rounded-md border border-gray-alpha-400 p-3", children: [jsxRuntimeExports.jsx(CopyButton, { textToCopy: serializeForClipboard(data), "aria-label": "Copy data", className: "absolute right-2 top-2 z-10 border border-gray-alpha-400 bg-background-100 enabled:hover:bg-gray-200" }), jsxRuntimeExports.jsx(DataInspector, { data })] });
|
|
24271
24290
|
}
|
|
24272
|
-
|
|
24273
|
-
|
|
24274
|
-
const TooltipTrigger = TooltipTrigger$1;
|
|
24275
|
-
const TooltipContent = reactExports.forwardRef(({ className, sideOffset = 8, showArrow = true, children: children2, ...props }, ref) => jsxRuntimeExports.jsx(TooltipPortal, { children: jsxRuntimeExports.jsxs(TooltipContent$1, { ref, sideOffset, className: cn$2("z-[99999] flex items-center gap-1 rounded-[10px] bg-gray-1000 px-2 py-1.5 !text-label-13 text-background-100 shadow-md select-none", className), ...props, children: [children2, showArrow ? jsxRuntimeExports.jsx(TooltipArrow, { width: 11, height: 5, className: "fill-gray-1000" }) : null] }) }));
|
|
24276
|
-
TooltipContent.displayName = TooltipContent$1.displayName;
|
|
24277
|
-
function Skeleton({ className, style: style2, ...props }) {
|
|
24278
|
-
return jsxRuntimeExports.jsx("div", { ...props, className: cn$2("rounded-md bg-gray-200", className), style: style2 });
|
|
24291
|
+
function Skeleton({ className: className2, style: style2, ...props }) {
|
|
24292
|
+
return jsxRuntimeExports.jsx("div", { ...props, className: cn$2("rounded-md bg-gray-200", className2), style: style2 });
|
|
24279
24293
|
}
|
|
24280
24294
|
const ATTR_FILTER_REGEX = /(?:^|\s)(?<pair>(?<key>[\w.]+):(?<value>\S*))/g;
|
|
24281
24295
|
function parseSpanSearchQuery(rawQuery) {
|
|
@@ -24429,6 +24443,13 @@ function isSpanCancelled(span) {
|
|
|
24429
24443
|
const workflowStatus = span.attributes.data?.status;
|
|
24430
24444
|
return workflowStatus === "cancelled";
|
|
24431
24445
|
}
|
|
24446
|
+
function getSpanState(span) {
|
|
24447
|
+
if (isSpanErrored(span))
|
|
24448
|
+
return "failed";
|
|
24449
|
+
if (isSpanCancelled(span))
|
|
24450
|
+
return "cancelled";
|
|
24451
|
+
return void 0;
|
|
24452
|
+
}
|
|
24432
24453
|
function clampViewportToRoot(next2, rootStart, rootEnd, minDurationMs) {
|
|
24433
24454
|
const rootDuration = Math.max(rootEnd - rootStart, minDurationMs);
|
|
24434
24455
|
const duration2 = Math.min(rootDuration, Math.max(minDurationMs, next2.end - next2.start));
|
|
@@ -24555,32 +24576,6 @@ function computeSpanDelta(anchor2, hovered, viewStart, viewEnd) {
|
|
|
24555
24576
|
hoveredOffscreen: hoveredStart > viewEnd ? "right" : hoveredEnd < viewStart ? "left" : null
|
|
24556
24577
|
};
|
|
24557
24578
|
}
|
|
24558
|
-
const RESOURCE_CLASS_NAMES = {
|
|
24559
|
-
run: {
|
|
24560
|
-
className: "border-blue-500 bg-blue-200",
|
|
24561
|
-
errorClassName: "border-red-500 bg-red-200"
|
|
24562
|
-
},
|
|
24563
|
-
step: {
|
|
24564
|
-
className: "border-green-500 bg-green-200",
|
|
24565
|
-
errorClassName: "border-red-500 bg-red-200"
|
|
24566
|
-
},
|
|
24567
|
-
// Passive spans (hooks) stay gray; matches event-list icons and the minimap.
|
|
24568
|
-
hook: {
|
|
24569
|
-
className: "border-gray-500 bg-gray-200",
|
|
24570
|
-
errorClassName: "border-red-500 bg-red-200"
|
|
24571
|
-
},
|
|
24572
|
-
sleep: {
|
|
24573
|
-
className: "border-purple-500 bg-purple-200",
|
|
24574
|
-
errorClassName: "border-red-500 bg-red-200"
|
|
24575
|
-
},
|
|
24576
|
-
default: {
|
|
24577
|
-
className: "border-gray-500 bg-gray-200",
|
|
24578
|
-
errorClassName: "border-red-500 bg-red-200"
|
|
24579
|
-
}
|
|
24580
|
-
};
|
|
24581
|
-
function getResourceClassNames(resource) {
|
|
24582
|
-
return RESOURCE_CLASS_NAMES[resource] ?? RESOURCE_CLASS_NAMES.default;
|
|
24583
|
-
}
|
|
24584
24579
|
function clampFraction(value) {
|
|
24585
24580
|
return Math.max(0, Math.min(1, value));
|
|
24586
24581
|
}
|
|
@@ -25082,7 +25077,7 @@ function ContextCardProvider({ children: children2, portalTarget }) {
|
|
|
25082
25077
|
distanceFromLast,
|
|
25083
25078
|
lastOrigin
|
|
25084
25079
|
]);
|
|
25085
|
-
return jsxRuntimeExports.jsxs(ContextCardContext.Provider, { value: contextValue, children: [children2, isMounted ? reactDomExports.createPortal(jsxRuntimeExports.jsx("div", { className: "w-full h-full inset-0 fixed pointer-events-none z-[100000]", ref, children: jsxRuntimeExports.jsx("div", { className: cn$2("min-w-max transition-
|
|
25080
|
+
return jsxRuntimeExports.jsxs(ContextCardContext.Provider, { value: contextValue, children: [children2, isMounted ? reactDomExports.createPortal(jsxRuntimeExports.jsx("div", { className: "w-full h-full inset-0 fixed pointer-events-none z-[100000]", ref, children: jsxRuntimeExports.jsx("div", { className: cn$2("min-w-max transition-opacity duration-150 ease-[easing-function:cubic-bezier(0.3,_0.57,_0.07,_0.95)] motion-reduce:!transition-none", visible ? "opacity-100" : "opacity-0"), children: jsxRuntimeExports.jsxs("div", { className: cn$2("absolute bg-background-100 bg-clip-padding rounded-[6px] overflow-visible pointer-events-none z-[1000000] shadow-[var(--ds-shadow-tooltip),0_0_0_1px_var(--ds-background-100)] w-fit", skipTransition ? "!transition-none" : "transition-[transform,width,height] duration-[250ms] ease-[easing-function:cubic-bezier(0.29,0.31,0.05,0.96)] will-change-[transform,width,height] motion-reduce:!transition-none"), "data-skip-transition": skipTransition, style: {
|
|
25086
25081
|
transform: `translate(${activeBounds.x}px,${activeBounds.y}px)`,
|
|
25087
25082
|
width: activeBounds.width,
|
|
25088
25083
|
height: activeBounds.height
|
|
@@ -25097,9 +25092,15 @@ function ContextCardProvider({ children: children2, portalTarget }) {
|
|
|
25097
25092
|
} : {
|
|
25098
25093
|
top: `calc(50% + ${activeBounds.arrowOffset.y}px)`
|
|
25099
25094
|
}
|
|
25100
|
-
}, "data-skip-transition": skipTransition, "data-side": activeBounds.side, children: jsxRuntimeExports.jsxs("svg", { width: "14", height: "7", viewBox: "0 0 14 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [jsxRuntimeExports.jsx("g", { clipPath: "url(#context-card-tip-clip)", children: jsxRuntimeExports.jsx("path", {
|
|
25095
|
+
}, "data-skip-transition": skipTransition, "data-side": activeBounds.side, children: jsxRuntimeExports.jsxs("svg", { width: "14", height: "7", viewBox: "0 0 14 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [jsxRuntimeExports.jsx("g", { clipPath: "url(#context-card-tip-clip)", children: jsxRuntimeExports.jsx("path", {
|
|
25096
|
+
d: "M15 -0.5V0.5H12.9834L12.8184 0.508789C12.4377 0.550822 12.0853 0.738056 11.8359 1.03418L8.53027 4.95996C7.73114 5.90893 6.26886 5.90892 5.46973 4.95996L2.16406 1.03418C1.87905 0.695733 1.45907 0.5 1.0166 0.5H-1V-0.5H15Z",
|
|
25097
|
+
fill: "var(--ds-background-100)",
|
|
25098
|
+
// No token sits at the card edge's apparent colour,
|
|
25099
|
+
// so the tip stroke is set per theme.
|
|
25100
|
+
className: "fill-background-100 stroke-[#dbdbdb] dark:stroke-[#252525]"
|
|
25101
|
+
}) }), jsxRuntimeExports.jsx("defs", { children: jsxRuntimeExports.jsx("clipPath", { id: "context-card-tip-clip", children: jsxRuntimeExports.jsx("rect", { width: "14", height: "7", fill: "white", className: "fill-background-100" }) }) })] }) }), jsxRuntimeExports.jsx("div", { ref: portalRef })] }) }) }), resolvedPortalTarget ?? document.body) : null] });
|
|
25101
25102
|
}
|
|
25102
|
-
function ContextCardTrigger({ content: content2, children: children2, side = "right", align = "center", sideOffset = 16, alignOffset = 0, ignoreCardPointerEvents = false, noPadding, asChild, className, hide: hide2, inactiveTimeoutMs = INACTIVE_TIMEOUT_MS }) {
|
|
25103
|
+
function ContextCardTrigger({ content: content2, children: children2, side = "right", align = "center", sideOffset = 16, alignOffset = 0, ignoreCardPointerEvents = false, noPadding, asChild, className: className2, hide: hide2, inactiveTimeoutMs = INACTIVE_TIMEOUT_MS }) {
|
|
25103
25104
|
const triggerRef = reactExports.useRef(null);
|
|
25104
25105
|
const contentRef = reactExports.useRef(null);
|
|
25105
25106
|
const [contentMeasureRef, contentMeasureBounds] = j$2();
|
|
@@ -25332,7 +25333,7 @@ function ContextCardTrigger({ content: content2, children: children2, side = "ri
|
|
|
25332
25333
|
}
|
|
25333
25334
|
}
|
|
25334
25335
|
const Comp = asChild ? Slot : "div";
|
|
25335
|
-
return jsxRuntimeExports.jsxs(Comp, { className: cn$2("inline-flex cursor-pointer flex-[0_1_auto] overflow-hidden",
|
|
25336
|
+
return jsxRuntimeExports.jsxs(Comp, { className: cn$2("inline-flex cursor-pointer flex-[0_1_auto] overflow-hidden", className2), onMouseEnter, onMouseLeave, onClick: handleClick, ref: triggerRef, children: [jsxRuntimeExports.jsx(Slottable$1, { children: children2 }), portalRef?.current && (localHover || persisting) ? reactDomExports.createPortal(jsxRuntimeExports.jsx("div", { className: cn$2("absolute top-0 p-3 left-0 max-w-max transition-[transform,width,height] duration-[250ms] ease-[easing-function:cubic-bezier(0.29,0.31,0.05,0.96)] will-change-[transform,width,height] motion-reduce:!transition-none", skipTransition && "!transition-none", noPadding && "p-0", rootVisible && visible && !ignoreCardPointerEvents ? "pointer-events-auto" : "pointer-events-none"), ref: contentRef, children: jsxRuntimeExports.jsx("div", { className: cn$2("min-w-max transition-all duration-150 ease-[easing-function:cubic-bezier(0.3,_0.57,_0.07,_0.95)] will-change-[transform,width,height] motion-reduce:!transition-none", skipTransition ? "!transition-none" : "transition-[transform,width,height] duration-[250ms] ease-[easing-function:cubic-bezier(0.29,0.31,0.05,0.96)] will-change-[transform,width,height] motion-reduce:!transition-none", visible ? "opacity-100" : "opacity-0"), ref: contentMeasureRef, children: content2 }) }, id), portalRef.current) : null] });
|
|
25336
25337
|
}
|
|
25337
25338
|
const TIME_UNITS = [
|
|
25338
25339
|
{ unit: "year", ms: 31536e6 },
|
|
@@ -25497,7 +25498,7 @@ function StreamViewerSkeleton() {
|
|
|
25497
25498
|
}
|
|
25498
25499
|
const ChunkRow = ReactExports.memo(function ChunkRow2({ chunk }) {
|
|
25499
25500
|
const image2 = chunk.value instanceof Uint8Array && getStreamImageType(chunk.value) ? chunk.value : null;
|
|
25500
|
-
return jsxRuntimeExports.jsxs("div", { className: "flex w-full items-start gap-1 border-b border-gray-alpha-400 px-3 py-2", children: [jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1", children: image2 ? jsxRuntimeExports.jsx(StreamImagePreview, { data: image2 }) : typeof chunk.value === "string" ? jsxRuntimeExports.jsx("span", { className: "whitespace-pre-wrap break-words text-label-12
|
|
25501
|
+
return jsxRuntimeExports.jsxs("div", { className: "flex w-full items-start gap-1 border-b border-gray-alpha-400 px-3 py-2", children: [jsxRuntimeExports.jsx("div", { className: "min-w-0 flex-1", children: image2 ? jsxRuntimeExports.jsx(StreamImagePreview, { data: image2 }) : typeof chunk.value === "string" ? jsxRuntimeExports.jsx("span", { className: "whitespace-pre-wrap break-words text-label-12-mono text-gray-1000", children: chunk.value }) : jsxRuntimeExports.jsx(DataInspector, { data: chunk.value, expandLevel: 1 }) }), !image2 && jsxRuntimeExports.jsx(CopyButton, { textToCopy: serializeForClipboard(chunk.value), "aria-label": "Copy chunk", className: "-mr-1" })] });
|
|
25501
25502
|
});
|
|
25502
25503
|
function StreamViewer({ streamId: _streamId, chunks, isLive, error: error2, isLoading, onScrollEnd }) {
|
|
25503
25504
|
const virtuosoRef = reactExports.useRef(null);
|
|
@@ -25514,7 +25515,7 @@ function StreamViewer({ streamId: _streamId, chunks, isLive, error: error2, isLo
|
|
|
25514
25515
|
if (isLoading && chunks.length === 0) {
|
|
25515
25516
|
return jsxRuntimeExports.jsx(StreamViewerSkeleton, {});
|
|
25516
25517
|
}
|
|
25517
|
-
return jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden bg-background-100", children: [jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center gap-1.5 border-b border-gray-alpha-400 px-3", children: isLive && jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("span", { className:
|
|
25518
|
+
return jsxRuntimeExports.jsxs("div", { className: "flex h-full w-full flex-col overflow-hidden bg-background-100", children: [jsxRuntimeExports.jsx("div", { className: "flex h-10 min-h-10 items-center gap-1.5 border-b border-gray-alpha-400 px-3", children: isLive && jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("span", { className: `inline-block h-2 w-2 rounded-full ${STATUS_DOT.running}` }), jsxRuntimeExports.jsx("span", { className: "text-label-12 text-gray-900", children: "Live" })] }) }), jsxRuntimeExports.jsx("div", { className: "flex-1 min-h-0", children: error2 ? jsxRuntimeExports.jsxs("div", { className: "border-b border-red-400 bg-red-100 px-3 py-2 text-label-12 text-red-900", children: [jsxRuntimeExports.jsx("div", { children: "Error reading stream:" }), jsxRuntimeExports.jsx("div", { children: error2 })] }) : chunks.length === 0 ? jsxRuntimeExports.jsx("div", { className: "flex h-10 items-center border-b border-gray-alpha-400 bg-background-200 px-3 text-label-12 text-gray-900", children: isLive ? "Waiting for stream data…" : "Stream is empty" }) : jsxRuntimeExports.jsx(es$1, { ref: virtuosoRef, totalCount: chunks.length, overscan: 10, endReached: () => onScrollEnd?.(), itemContent: (index2) => jsxRuntimeExports.jsx("div", { className: "w-full", children: jsxRuntimeExports.jsx(ChunkRow, { chunk: chunks[index2] }) }), className: "min-h-0 flex-1" }) })] });
|
|
25518
25519
|
}
|
|
25519
25520
|
const SidebarDataContext = reactExports.createContext(null);
|
|
25520
25521
|
SidebarDataContext.displayName = "SidebarDataContext";
|
|
@@ -25677,8 +25678,8 @@ function visitParents(tree, test, visitor, reverse) {
|
|
|
25677
25678
|
offset2 = (reverse ? nodeAsParent.children.length : -1) + step;
|
|
25678
25679
|
grandparents = parents.concat(nodeAsParent);
|
|
25679
25680
|
while (offset2 > -1 && offset2 < nodeAsParent.children.length) {
|
|
25680
|
-
const
|
|
25681
|
-
subresult = factory(
|
|
25681
|
+
const child2 = nodeAsParent.children[offset2];
|
|
25682
|
+
subresult = factory(child2, offset2, grandparents)();
|
|
25682
25683
|
if (subresult[0] === EXIT) {
|
|
25683
25684
|
return subresult;
|
|
25684
25685
|
}
|
|
@@ -25852,9 +25853,9 @@ function transformUrl(url, allowedPrefixes, defaultOrigin, allowDataImages = fal
|
|
|
25852
25853
|
}
|
|
25853
25854
|
function stripNullChildren(node2) {
|
|
25854
25855
|
if ("children" in node2 && Array.isArray(node2.children)) {
|
|
25855
|
-
node2.children = node2.children.filter((
|
|
25856
|
-
for (const
|
|
25857
|
-
stripNullChildren(
|
|
25856
|
+
node2.children = node2.children.filter((child2) => child2 != null);
|
|
25857
|
+
for (const child2 of node2.children) {
|
|
25858
|
+
stripNullChildren(child2);
|
|
25858
25859
|
}
|
|
25859
25860
|
}
|
|
25860
25861
|
}
|
|
@@ -27469,11 +27470,11 @@ function createH(schema, defaultTagName, caseSensitive) {
|
|
|
27469
27470
|
let node2;
|
|
27470
27471
|
if (selector === null || selector === void 0) {
|
|
27471
27472
|
node2 = { type: "root", children: [] };
|
|
27472
|
-
const
|
|
27473
|
+
const child2 = (
|
|
27473
27474
|
/** @type {Child} */
|
|
27474
27475
|
properties2
|
|
27475
27476
|
);
|
|
27476
|
-
children2.unshift(
|
|
27477
|
+
children2.unshift(child2);
|
|
27477
27478
|
} else {
|
|
27478
27479
|
node2 = parseSelector(selector, defaultTagName);
|
|
27479
27480
|
const lower = node2.tagName.toLowerCase();
|
|
@@ -27487,8 +27488,8 @@ function createH(schema, defaultTagName, caseSensitive) {
|
|
|
27487
27488
|
}
|
|
27488
27489
|
}
|
|
27489
27490
|
}
|
|
27490
|
-
for (const
|
|
27491
|
-
addChild(node2.children,
|
|
27491
|
+
for (const child2 of children2) {
|
|
27492
|
+
addChild(node2.children, child2);
|
|
27492
27493
|
}
|
|
27493
27494
|
if (node2.type === "element" && node2.tagName === "template") {
|
|
27494
27495
|
node2.content = { type: "root", children: node2.children };
|
|
@@ -27575,8 +27576,8 @@ function addChild(nodes, value) {
|
|
|
27575
27576
|
else if (typeof value === "number" || typeof value === "string") {
|
|
27576
27577
|
nodes.push({ type: "text", value: String(value) });
|
|
27577
27578
|
} else if (Array.isArray(value)) {
|
|
27578
|
-
for (const
|
|
27579
|
-
addChild(nodes,
|
|
27579
|
+
for (const child2 of value) {
|
|
27580
|
+
addChild(nodes, child2);
|
|
27580
27581
|
}
|
|
27581
27582
|
} else if (typeof value === "object" && "type" in value) {
|
|
27582
27583
|
if (value.type === "root") {
|
|
@@ -29201,9 +29202,9 @@ function all$2(children2, parentNode, schema) {
|
|
|
29201
29202
|
const results = [];
|
|
29202
29203
|
if (children2) {
|
|
29203
29204
|
while (++index2 < children2.length) {
|
|
29204
|
-
const
|
|
29205
|
-
|
|
29206
|
-
results.push(
|
|
29205
|
+
const child2 = one$2(children2[index2], schema);
|
|
29206
|
+
child2.parentNode = parentNode;
|
|
29207
|
+
results.push(child2);
|
|
29207
29208
|
}
|
|
29208
29209
|
}
|
|
29209
29210
|
return results;
|
|
@@ -34316,9 +34317,9 @@ class Parser {
|
|
|
34316
34317
|
}
|
|
34317
34318
|
/** @protected */
|
|
34318
34319
|
_adoptNodes(donor, recipient) {
|
|
34319
|
-
for (let
|
|
34320
|
-
this.treeAdapter.detachNode(
|
|
34321
|
-
this.treeAdapter.appendChild(recipient,
|
|
34320
|
+
for (let child2 = this.treeAdapter.getFirstChild(donor); child2; child2 = this.treeAdapter.getFirstChild(donor)) {
|
|
34321
|
+
this.treeAdapter.detachNode(child2);
|
|
34322
|
+
this.treeAdapter.appendChild(recipient, child2);
|
|
34322
34323
|
}
|
|
34323
34324
|
}
|
|
34324
34325
|
/** @protected */
|
|
@@ -38053,19 +38054,19 @@ function findUrl(_2, protocol, domain2, path2, match) {
|
|
|
38053
38054
|
}
|
|
38054
38055
|
return result;
|
|
38055
38056
|
}
|
|
38056
|
-
function findEmail(_2, atext,
|
|
38057
|
+
function findEmail(_2, atext, label2, match) {
|
|
38057
38058
|
if (
|
|
38058
38059
|
// Not an expected previous character.
|
|
38059
38060
|
!previous$1(match, true) || // Label ends in not allowed character.
|
|
38060
|
-
/[-\d_]$/.test(
|
|
38061
|
+
/[-\d_]$/.test(label2)
|
|
38061
38062
|
) {
|
|
38062
38063
|
return false;
|
|
38063
38064
|
}
|
|
38064
38065
|
return {
|
|
38065
38066
|
type: "link",
|
|
38066
38067
|
title: null,
|
|
38067
|
-
url: "mailto:" + atext + "@" +
|
|
38068
|
-
children: [{ type: "text", value: atext + "@" +
|
|
38068
|
+
url: "mailto:" + atext + "@" + label2,
|
|
38069
|
+
children: [{ type: "text", value: atext + "@" + label2 }]
|
|
38069
38070
|
};
|
|
38070
38071
|
}
|
|
38071
38072
|
function isCorrectDomain(domain2) {
|
|
@@ -38118,25 +38119,25 @@ function enterFootnoteDefinition(token) {
|
|
|
38118
38119
|
);
|
|
38119
38120
|
}
|
|
38120
38121
|
function exitFootnoteCallString(token) {
|
|
38121
|
-
const
|
|
38122
|
+
const label2 = this.resume();
|
|
38122
38123
|
const node2 = this.stack[this.stack.length - 1];
|
|
38123
38124
|
ok(node2.type === "footnoteReference");
|
|
38124
38125
|
node2.identifier = normalizeIdentifier(
|
|
38125
38126
|
this.sliceSerialize(token)
|
|
38126
38127
|
).toLowerCase();
|
|
38127
|
-
node2.label =
|
|
38128
|
+
node2.label = label2;
|
|
38128
38129
|
}
|
|
38129
38130
|
function exitFootnoteCall(token) {
|
|
38130
38131
|
this.exit(token);
|
|
38131
38132
|
}
|
|
38132
38133
|
function exitFootnoteDefinitionLabelString(token) {
|
|
38133
|
-
const
|
|
38134
|
+
const label2 = this.resume();
|
|
38134
38135
|
const node2 = this.stack[this.stack.length - 1];
|
|
38135
38136
|
ok(node2.type === "footnoteDefinition");
|
|
38136
38137
|
node2.identifier = normalizeIdentifier(
|
|
38137
38138
|
this.sliceSerialize(token)
|
|
38138
38139
|
).toLowerCase();
|
|
38139
|
-
node2.label =
|
|
38140
|
+
node2.label = label2;
|
|
38140
38141
|
}
|
|
38141
38142
|
function exitFootnoteDefinition(token) {
|
|
38142
38143
|
this.exit(token);
|
|
@@ -39193,8 +39194,8 @@ function root$2(node2, _2, state, info) {
|
|
|
39193
39194
|
const hasPhrasing = node2.children.some(function(d2) {
|
|
39194
39195
|
return phrasing(d2);
|
|
39195
39196
|
});
|
|
39196
|
-
const
|
|
39197
|
-
return
|
|
39197
|
+
const container2 = hasPhrasing ? state.containerPhrasing : state.containerFlow;
|
|
39198
|
+
return container2.call(state, node2, info);
|
|
39198
39199
|
}
|
|
39199
39200
|
function checkStrong(state) {
|
|
39200
39201
|
const marker = state.options.strong || "*";
|
|
@@ -42429,7 +42430,7 @@ function resolveToLabelEnd(events, context) {
|
|
|
42429
42430
|
...events[events.length - 1][1].end
|
|
42430
42431
|
}
|
|
42431
42432
|
};
|
|
42432
|
-
const
|
|
42433
|
+
const label2 = {
|
|
42433
42434
|
type: "label",
|
|
42434
42435
|
start: {
|
|
42435
42436
|
...events[open2][1].start
|
|
@@ -42447,11 +42448,11 @@ function resolveToLabelEnd(events, context) {
|
|
|
42447
42448
|
...events[close - 2][1].start
|
|
42448
42449
|
}
|
|
42449
42450
|
};
|
|
42450
|
-
media = [["enter", group, context], ["enter",
|
|
42451
|
+
media = [["enter", group, context], ["enter", label2, context]];
|
|
42451
42452
|
media = push(media, events.slice(open2 + 1, open2 + offset2 + 3));
|
|
42452
42453
|
media = push(media, [["enter", text2, context]]);
|
|
42453
42454
|
media = push(media, resolveAll(context.parser.constructs.insideSpan.null, events.slice(open2 + offset2 + 4, close - 3), context));
|
|
42454
|
-
media = push(media, [["exit", text2, context], events[close - 2], events[close - 1], ["exit",
|
|
42455
|
+
media = push(media, [["exit", text2, context], events[close - 2], events[close - 1], ["exit", label2, context]]);
|
|
42455
42456
|
media = push(media, events.slice(close + 1));
|
|
42456
42457
|
media = push(media, [["exit", group, context]]);
|
|
42457
42458
|
splice(events, open2, events.length, media);
|
|
@@ -44415,11 +44416,11 @@ const createClassGroupUtils = (config2) => {
|
|
|
44415
44416
|
conflictingClassGroups,
|
|
44416
44417
|
conflictingClassGroupModifiers
|
|
44417
44418
|
} = config2;
|
|
44418
|
-
const getClassGroupId = (
|
|
44419
|
-
if (
|
|
44420
|
-
return getGroupIdForArbitraryProperty(
|
|
44419
|
+
const getClassGroupId = (className2) => {
|
|
44420
|
+
if (className2.startsWith("[") && className2.endsWith("]")) {
|
|
44421
|
+
return getGroupIdForArbitraryProperty(className2);
|
|
44421
44422
|
}
|
|
44422
|
-
const classParts =
|
|
44423
|
+
const classParts = className2.split(CLASS_PART_SEPARATOR);
|
|
44423
44424
|
const startIndex = classParts[0] === "" && classParts.length > 1 ? 1 : 0;
|
|
44424
44425
|
return getGroupRecursive(classParts, startIndex, classMap);
|
|
44425
44426
|
};
|
|
@@ -44467,8 +44468,8 @@ const getGroupRecursive = (classParts, startIndex, classPartObject) => {
|
|
|
44467
44468
|
}
|
|
44468
44469
|
return void 0;
|
|
44469
44470
|
};
|
|
44470
|
-
const getGroupIdForArbitraryProperty = (
|
|
44471
|
-
const content2 =
|
|
44471
|
+
const getGroupIdForArbitraryProperty = (className2) => className2.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
44472
|
+
const content2 = className2.slice(1, -1);
|
|
44472
44473
|
const colonIndex = content2.indexOf(":");
|
|
44473
44474
|
const property = content2.slice(0, colonIndex);
|
|
44474
44475
|
return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
|
|
@@ -44599,18 +44600,18 @@ const createParseClassName = (config2) => {
|
|
|
44599
44600
|
prefix,
|
|
44600
44601
|
experimentalParseClassName
|
|
44601
44602
|
} = config2;
|
|
44602
|
-
let parseClassName = (
|
|
44603
|
+
let parseClassName = (className2) => {
|
|
44603
44604
|
const modifiers = [];
|
|
44604
44605
|
let bracketDepth = 0;
|
|
44605
44606
|
let parenDepth = 0;
|
|
44606
44607
|
let modifierStart = 0;
|
|
44607
44608
|
let postfixModifierPosition;
|
|
44608
|
-
const len =
|
|
44609
|
+
const len = className2.length;
|
|
44609
44610
|
for (let index2 = 0; index2 < len; index2++) {
|
|
44610
|
-
const currentCharacter =
|
|
44611
|
+
const currentCharacter = className2[index2];
|
|
44611
44612
|
if (bracketDepth === 0 && parenDepth === 0) {
|
|
44612
44613
|
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
44613
|
-
modifiers.push(
|
|
44614
|
+
modifiers.push(className2.slice(modifierStart, index2));
|
|
44614
44615
|
modifierStart = index2 + 1;
|
|
44615
44616
|
continue;
|
|
44616
44617
|
}
|
|
@@ -44624,7 +44625,7 @@ const createParseClassName = (config2) => {
|
|
|
44624
44625
|
else if (currentCharacter === "(") parenDepth++;
|
|
44625
44626
|
else if (currentCharacter === ")") parenDepth--;
|
|
44626
44627
|
}
|
|
44627
|
-
const baseClassNameWithImportantModifier = modifiers.length === 0 ?
|
|
44628
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className2 : className2.slice(modifierStart);
|
|
44628
44629
|
let baseClassName = baseClassNameWithImportantModifier;
|
|
44629
44630
|
let hasImportantModifier = false;
|
|
44630
44631
|
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
|
|
@@ -44646,12 +44647,12 @@ const createParseClassName = (config2) => {
|
|
|
44646
44647
|
if (prefix) {
|
|
44647
44648
|
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
44648
44649
|
const parseClassNameOriginal = parseClassName;
|
|
44649
|
-
parseClassName = (
|
|
44650
|
+
parseClassName = (className2) => className2.startsWith(fullPrefix) ? parseClassNameOriginal(className2.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className2, void 0, true);
|
|
44650
44651
|
}
|
|
44651
44652
|
if (experimentalParseClassName) {
|
|
44652
44653
|
const parseClassNameOriginal = parseClassName;
|
|
44653
|
-
parseClassName = (
|
|
44654
|
-
className,
|
|
44654
|
+
parseClassName = (className2) => experimentalParseClassName({
|
|
44655
|
+
className: className2,
|
|
44655
44656
|
parseClassName: parseClassNameOriginal
|
|
44656
44657
|
});
|
|
44657
44658
|
}
|
|
@@ -44895,14 +44896,14 @@ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) =>
|
|
|
44895
44896
|
}
|
|
44896
44897
|
return false;
|
|
44897
44898
|
};
|
|
44898
|
-
const isLabelPosition = (
|
|
44899
|
-
const isLabelImage = (
|
|
44900
|
-
const isLabelSize = (
|
|
44901
|
-
const isLabelLength = (
|
|
44902
|
-
const isLabelNumber = (
|
|
44903
|
-
const isLabelFamilyName = (
|
|
44904
|
-
const isLabelWeight = (
|
|
44905
|
-
const isLabelShadow = (
|
|
44899
|
+
const isLabelPosition = (label2) => label2 === "position" || label2 === "percentage";
|
|
44900
|
+
const isLabelImage = (label2) => label2 === "image" || label2 === "url";
|
|
44901
|
+
const isLabelSize = (label2) => label2 === "length" || label2 === "size" || label2 === "bg-size";
|
|
44902
|
+
const isLabelLength = (label2) => label2 === "length";
|
|
44903
|
+
const isLabelNumber = (label2) => label2 === "number";
|
|
44904
|
+
const isLabelFamilyName = (label2) => label2 === "family-name";
|
|
44905
|
+
const isLabelWeight = (label2) => label2 === "number" || label2 === "weight";
|
|
44906
|
+
const isLabelShadow = (label2) => label2 === "shadow";
|
|
44906
44907
|
const getDefaultConfig = () => {
|
|
44907
44908
|
const themeColor = fromTheme("color");
|
|
44908
44909
|
const themeFont = fromTheme("font");
|
|
@@ -48141,8 +48142,8 @@ function element(state, node2, key) {
|
|
|
48141
48142
|
const props = createElementProps(state, node2);
|
|
48142
48143
|
let children2 = createChildren(state, node2);
|
|
48143
48144
|
if (tableElements.has(node2.tagName)) {
|
|
48144
|
-
children2 = children2.filter(function(
|
|
48145
|
-
return typeof
|
|
48145
|
+
children2 = children2.filter(function(child2) {
|
|
48146
|
+
return typeof child2 === "string" ? !whitespace(child2) : true;
|
|
48146
48147
|
});
|
|
48147
48148
|
}
|
|
48148
48149
|
addNode(state, props, type, node2);
|
|
@@ -48308,17 +48309,17 @@ function createChildren(state, node2) {
|
|
|
48308
48309
|
let index2 = -1;
|
|
48309
48310
|
const countsByName = state.passKeys ? /* @__PURE__ */ new Map() : emptyMap;
|
|
48310
48311
|
while (++index2 < node2.children.length) {
|
|
48311
|
-
const
|
|
48312
|
+
const child2 = node2.children[index2];
|
|
48312
48313
|
let key;
|
|
48313
48314
|
if (state.passKeys) {
|
|
48314
|
-
const name2 =
|
|
48315
|
+
const name2 = child2.type === "element" ? child2.tagName : child2.type === "mdxJsxFlowElement" || child2.type === "mdxJsxTextElement" ? child2.name : void 0;
|
|
48315
48316
|
if (name2) {
|
|
48316
48317
|
const count2 = countsByName.get(name2) || 0;
|
|
48317
48318
|
key = name2 + "-" + count2;
|
|
48318
48319
|
countsByName.set(name2, count2 + 1);
|
|
48319
48320
|
}
|
|
48320
48321
|
}
|
|
48321
|
-
const result = one(state,
|
|
48322
|
+
const result = one(state, child2, key);
|
|
48322
48323
|
if (result !== void 0) children2.push(result);
|
|
48323
48324
|
}
|
|
48324
48325
|
return children2;
|
|
@@ -49696,9 +49697,9 @@ function compiler(options) {
|
|
|
49696
49697
|
node2.value = data2.replace(/(\r?\n|\r)$/g, "");
|
|
49697
49698
|
}
|
|
49698
49699
|
function onexitdefinitionlabelstring(token) {
|
|
49699
|
-
const
|
|
49700
|
+
const label2 = this.resume();
|
|
49700
49701
|
const node2 = this.stack[this.stack.length - 1];
|
|
49701
|
-
node2.label =
|
|
49702
|
+
node2.label = label2;
|
|
49702
49703
|
node2.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
49703
49704
|
}
|
|
49704
49705
|
function onexitdefinitiontitlestring() {
|
|
@@ -49842,9 +49843,9 @@ function compiler(options) {
|
|
|
49842
49843
|
this.data.referenceType = "collapsed";
|
|
49843
49844
|
}
|
|
49844
49845
|
function onexitreferencestring(token) {
|
|
49845
|
-
const
|
|
49846
|
+
const label2 = this.resume();
|
|
49846
49847
|
const node2 = this.stack[this.stack.length - 1];
|
|
49847
|
-
node2.label =
|
|
49848
|
+
node2.label = label2;
|
|
49848
49849
|
node2.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
49849
49850
|
this.data.referenceType = "full";
|
|
49850
49851
|
}
|
|
@@ -50306,14 +50307,14 @@ function listItem(state, node2, parent) {
|
|
|
50306
50307
|
}
|
|
50307
50308
|
let index2 = -1;
|
|
50308
50309
|
while (++index2 < results.length) {
|
|
50309
|
-
const
|
|
50310
|
-
if (loose || index2 !== 0 ||
|
|
50310
|
+
const child2 = results[index2];
|
|
50311
|
+
if (loose || index2 !== 0 || child2.type !== "element" || child2.tagName !== "p") {
|
|
50311
50312
|
children2.push({ type: "text", value: "\n" });
|
|
50312
50313
|
}
|
|
50313
|
-
if (
|
|
50314
|
-
children2.push(...
|
|
50314
|
+
if (child2.type === "element" && child2.tagName === "p" && !loose) {
|
|
50315
|
+
children2.push(...child2.children);
|
|
50315
50316
|
} else {
|
|
50316
|
-
children2.push(
|
|
50317
|
+
children2.push(child2);
|
|
50317
50318
|
}
|
|
50318
50319
|
}
|
|
50319
50320
|
const tail = results[results.length - 1];
|
|
@@ -50348,8 +50349,8 @@ function list(state, node2) {
|
|
|
50348
50349
|
properties2.start = node2.start;
|
|
50349
50350
|
}
|
|
50350
50351
|
while (++index2 < results.length) {
|
|
50351
|
-
const
|
|
50352
|
-
if (
|
|
50352
|
+
const child2 = results[index2];
|
|
50353
|
+
if (child2.type === "element" && child2.tagName === "li" && child2.properties && Array.isArray(child2.properties.className) && child2.properties.className.includes("task-list-item")) {
|
|
50353
50354
|
properties2.className = ["contains-task-list"];
|
|
50354
50355
|
break;
|
|
50355
50356
|
}
|
|
@@ -53977,7 +53978,7 @@ var Ts = (e) => {
|
|
|
53977
53978
|
for (; t > 0 && e[t - 1] === `
|
|
53978
53979
|
`; ) t--;
|
|
53979
53980
|
return e.slice(0, t);
|
|
53980
|
-
}, Ps = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-JLMTFACH-
|
|
53981
|
+
}, Ps = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-JLMTFACH-D51eQJbG.js"), true ? __vite__mapDeps([2,1]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r2 = false, startLine: s2, lineNumbers: a3, ...i }) => {
|
|
53981
53982
|
let l = w(), { codeBlockMaxHeight: c2 } = reactExports.useContext(R), d2 = reactExports.useMemo(() => Ts(e), [e]), p2 = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
|
|
53982
53983
|
`).map((b2) => [{ content: b2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
|
|
53983
53984
|
return jsxRuntimeExports.jsx(Lt.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(It, { dir: "ltr", isIncomplete: r2, language: t, children: [jsxRuntimeExports.jsx(Dt, { language: t }), o ? jsxRuntimeExports.jsx("div", { className: l("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: jsxRuntimeExports.jsx("div", { className: l("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: o }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(In, { className: n, language: t, lineNumbers: a3, maxHeight: c2, result: p2, startLine: s2, ...i }), children: jsxRuntimeExports.jsx(Ps, { className: n, code: d2, isIncomplete: r2, language: t, lineNumbers: a3, maxHeight: c2, raw: p2, startLine: s2, ...i }) })] }) });
|
|
@@ -55339,21 +55340,21 @@ function cullCollidingMarkers(projected, pixelWidth) {
|
|
|
55339
55340
|
}
|
|
55340
55341
|
return kept;
|
|
55341
55342
|
}
|
|
55342
|
-
function MarkerTick({ className }) {
|
|
55343
|
-
return jsxRuntimeExports.jsx("span", { className: cn$2("block w-[3px] rounded-full bg-gray-1000",
|
|
55343
|
+
function MarkerTick({ className: className2 }) {
|
|
55344
|
+
return jsxRuntimeExports.jsx("span", { className: cn$2("block w-[3px] rounded-full bg-gray-1000", className2) });
|
|
55344
55345
|
}
|
|
55345
55346
|
function MarkerLayer({ markers }) {
|
|
55346
55347
|
return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: markers.map((m2, index2) => jsxRuntimeExports.jsx("span", { className: "pointer-events-auto absolute top-0 bottom-0 z-10 flex w-8 -translate-x-1/2 items-center justify-center", style: { left: `clamp(8px, ${m2.leftPct}%, calc(100% - 8px))` }, children: jsxRuntimeExports.jsx(TimestampTooltip, { date: m2.timeMs, prefix: MARKER_KIND_PREFIX[m2.kind], children: jsxRuntimeExports.jsx("span", { className: "flex h-6 w-8 items-center justify-center", children: jsxRuntimeExports.jsx(MarkerTick, { className: "h-3" }) }) }) }, `${m2.timeMs}-${index2}`)) });
|
|
55347
55348
|
}
|
|
55348
55349
|
function OffscreenMarkerIndicator({ direction, count: count2, targetMs, onReveal }) {
|
|
55349
55350
|
const Chevron = direction === "right" ? ArrowRight : ArrowLeft;
|
|
55350
|
-
const
|
|
55351
|
+
const label2 = `${count2} marker${count2 === 1 ? "" : "s"} ${direction === "right" ? "ahead" : "behind"}`;
|
|
55351
55352
|
const chevron = jsxRuntimeExports.jsx("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center", children: jsxRuntimeExports.jsx(Chevron, { className: "size-3 text-gray-900" }) });
|
|
55352
55353
|
const tick = jsxRuntimeExports.jsx(MarkerTick, { className: "h-3.5 shrink-0" });
|
|
55353
|
-
return jsxRuntimeExports.jsx("button", { type: "button", "aria-label":
|
|
55354
|
+
return jsxRuntimeExports.jsx("button", { type: "button", "aria-label": label2, onClick: (e) => {
|
|
55354
55355
|
e.stopPropagation();
|
|
55355
55356
|
onReveal?.(targetMs);
|
|
55356
|
-
}, className: cn$2("pointer-events-auto absolute top-1/2 z-20 flex h-6 -translate-y-1/2 cursor-pointer items-center rounded-
|
|
55357
|
+
}, className: cn$2("pointer-events-auto absolute top-1/2 z-20 flex h-6 -translate-y-1/2 cursor-pointer items-center rounded-sm border border-gray-alpha-400 bg-background-100 hover:bg-gray-100", direction === "right" ? "right-0 pl-1.5" : "left-0 pr-1.5"), children: direction === "left" ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [chevron, tick] }) : jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [tick, chevron] }) });
|
|
55357
55358
|
}
|
|
55358
55359
|
const runningStripes = "_runningStripes_1ii0z_1";
|
|
55359
55360
|
const pendingStripes = "_pendingStripes_1ii0z_2";
|
|
@@ -55364,23 +55365,9 @@ const styles = {
|
|
|
55364
55365
|
const TINY_BAR_BOX_SIZE_PX = 24;
|
|
55365
55366
|
const TINY_BAR_WIDTH_PX = 4;
|
|
55366
55367
|
const TIMELINE_PADDING_PX = 16;
|
|
55367
|
-
const SEGMENT_CLASSES = {
|
|
55368
|
-
queued: "bg-gray-400 border border-gray-500",
|
|
55369
|
-
pending: "bg-gray-200 border border-gray-500",
|
|
55370
|
-
retrying: "bg-gray-400 border border-gray-500",
|
|
55371
|
-
waiting: "bg-gray-200 border border-gray-500",
|
|
55372
|
-
running: "bg-blue-200 border border-blue-500",
|
|
55373
|
-
completed: "bg-blue-200 border border-blue-500",
|
|
55374
|
-
cancelled: "bg-gray-500 border border-gray-700",
|
|
55375
|
-
failed: "bg-red-200 border border-red-500",
|
|
55376
|
-
succeeded: "bg-green-200 border border-green-500",
|
|
55377
|
-
sleeping: "bg-gray-400 border border-gray-500",
|
|
55378
|
-
received: "bg-blue-200 border border-blue-500"
|
|
55379
|
-
};
|
|
55380
55368
|
const STRIPED_SEGMENT_STATUSES = /* @__PURE__ */ new Set([
|
|
55381
55369
|
"pending",
|
|
55382
|
-
"running"
|
|
55383
|
-
"received"
|
|
55370
|
+
"running"
|
|
55384
55371
|
]);
|
|
55385
55372
|
function AnimatedStripes({ status }) {
|
|
55386
55373
|
return jsxRuntimeExports.jsx("div", { "aria-hidden": true, className: status === "pending" ? styles.pendingStripes : styles.runningStripes });
|
|
@@ -55447,26 +55434,26 @@ function projectSegments(segments, spanStartMs, spanDurationMs, geometry) {
|
|
|
55447
55434
|
];
|
|
55448
55435
|
});
|
|
55449
55436
|
}
|
|
55450
|
-
function estimateLabelWidthPx(
|
|
55451
|
-
return
|
|
55437
|
+
function estimateLabelWidthPx(label2) {
|
|
55438
|
+
return label2.length * 6 + 12;
|
|
55452
55439
|
}
|
|
55453
|
-
function DurationLabel({ label, className }) {
|
|
55454
|
-
return jsxRuntimeExports.jsx("span", { className: cn$2("pointer-events-none absolute inset-0 flex items-center justify-start overflow-hidden px-1 text-[10px] font-mono font-medium leading-none whitespace-nowrap text-left text-gray-1000 tabular-nums opacity-0 group-hover/timeline-row:opacity-100",
|
|
55440
|
+
function DurationLabel({ label: label2, className: className2 }) {
|
|
55441
|
+
return jsxRuntimeExports.jsx("span", { className: cn$2("pointer-events-none absolute inset-0 flex items-center justify-start overflow-hidden px-1 text-[10px] font-mono font-medium leading-none whitespace-nowrap text-left text-gray-1000 tabular-nums opacity-0 group-hover/timeline-row:opacity-100", className2), children: label2 });
|
|
55455
55442
|
}
|
|
55456
55443
|
function BoundaryArrow({ direction }) {
|
|
55457
55444
|
const Icon2 = direction === "right" ? ArrowRight : ArrowLeft;
|
|
55458
|
-
return jsxRuntimeExports.jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-
|
|
55445
|
+
return jsxRuntimeExports.jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-sm", children: jsxRuntimeExports.jsx(Icon2, { className: "size-3 text-gray-900" }) });
|
|
55459
55446
|
}
|
|
55460
|
-
function PlainBar({ className, label }) {
|
|
55461
|
-
return jsxRuntimeExports.jsx("div", { className: cn$2("relative h-6 w-full min-w-1 rounded-
|
|
55447
|
+
function PlainBar({ className: className2, label: label2 }) {
|
|
55448
|
+
return jsxRuntimeExports.jsx("div", { className: cn$2("relative h-6 w-full min-w-1 rounded-sm border", className2), children: label2 ? jsxRuntimeExports.jsx(DurationLabel, { label: label2 }) : null });
|
|
55462
55449
|
}
|
|
55463
|
-
function LeadInConnector({ leftPct, widthPct, label }) {
|
|
55450
|
+
function LeadInConnector({ leftPct, widthPct, label: label2 }) {
|
|
55464
55451
|
return jsxRuntimeExports.jsxs("div", { className: "absolute top-1/2 h-6 -translate-y-1/2", style: {
|
|
55465
55452
|
left: `calc(${leftPct}% + 0.5px)`,
|
|
55466
55453
|
width: `calc(${widthPct}% - 1px)`
|
|
55467
|
-
}, children: [jsxRuntimeExports.jsx("div", { className: "absolute left-0 top-1/2 h-4 w-px -translate-y-1/2 bg-gray-500" }), jsxRuntimeExports.jsx("div", { className: "absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-gray-500" }),
|
|
55454
|
+
}, children: [jsxRuntimeExports.jsx("div", { className: "absolute left-0 top-1/2 h-4 w-px -translate-y-1/2 bg-gray-500" }), jsxRuntimeExports.jsx("div", { className: "absolute inset-x-0 top-1/2 h-px -translate-y-1/2 bg-gray-500" }), label2 ? jsxRuntimeExports.jsx(DurationLabel, { label: label2 }) : null] });
|
|
55468
55455
|
}
|
|
55469
|
-
function SegmentBar({ segments, showLabels = true }) {
|
|
55456
|
+
function SegmentBar({ resource, segments, showLabels = true }) {
|
|
55470
55457
|
return jsxRuntimeExports.jsx("div", { className: "relative h-6 w-full", children: segments.map((seg, i) => {
|
|
55471
55458
|
if (seg.status === "queued") {
|
|
55472
55459
|
const leadInLabel = formatDurationPrecise(seg.fullDurationMs);
|
|
@@ -55476,13 +55463,13 @@ function SegmentBar({ segments, showLabels = true }) {
|
|
|
55476
55463
|
left: `calc(${seg.leftPct + seg.widthPct}% - 1.5px)`
|
|
55477
55464
|
} }) : null] }, i);
|
|
55478
55465
|
}
|
|
55479
|
-
const
|
|
55480
|
-
const showLabel = showLabels && seg.pixelWidth >= Math.max(40, estimateLabelWidthPx(
|
|
55481
|
-
return jsxRuntimeExports.jsxs("div", { className: cn$2("absolute h-full min-w-px overflow-hidden rounded-
|
|
55466
|
+
const label2 = formatDurationPrecise(seg.fullDurationMs);
|
|
55467
|
+
const showLabel = showLabels && seg.pixelWidth >= Math.max(40, estimateLabelWidthPx(label2));
|
|
55468
|
+
return jsxRuntimeExports.jsxs("div", { className: cn$2("absolute h-full min-w-px overflow-hidden rounded-sm border", getSpanColors(resource, seg.status).bar), style: {
|
|
55482
55469
|
// 1px gap between adjacent segments, distributed equally.
|
|
55483
55470
|
left: `calc(${seg.leftPct}% + 0.5px)`,
|
|
55484
55471
|
width: `calc(${seg.widthPct}% - 1px)`
|
|
55485
|
-
}, children: [STRIPED_SEGMENT_STATUSES.has(seg.status) ? jsxRuntimeExports.jsx(AnimatedStripes, { status: seg.status }) : null, showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label }) : null] }, i);
|
|
55472
|
+
}, children: [STRIPED_SEGMENT_STATUSES.has(seg.status) ? jsxRuntimeExports.jsx(AnimatedStripes, { status: seg.status }) : null, showLabel ? jsxRuntimeExports.jsx(DurationLabel, { label: label2 }) : null] }, i);
|
|
55486
55473
|
}) });
|
|
55487
55474
|
}
|
|
55488
55475
|
const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, viewDuration, containerWidth, isSelected, isDimmed, onSelect, onRevealTime }) {
|
|
@@ -55496,16 +55483,13 @@ const TimelineBar = reactExports.memo(function TimelineBar2({ span, viewStart, v
|
|
|
55496
55483
|
const markers = reactExports.useMemo(() => geometry.mode.kind === "full" ? cullCollidingMarkers(projectMarkers(baseMarkers, geometry.visibleStartMs, geometry.visibleEndMs), geometry.visiblePixelWidth) : [], [geometry, baseMarkers]);
|
|
55497
55484
|
const offscreen = reactExports.useMemo(() => geometry.mode.kind === "full" ? computeOffscreenMarkers(baseMarkers, geometry.visibleStartMs, geometry.visibleEndMs) : { left: null, right: null }, [geometry, baseMarkers]);
|
|
55498
55485
|
const hasMarkers = markers.length > 0 || offscreen.left !== null || offscreen.right !== null;
|
|
55499
|
-
const
|
|
55500
|
-
const isCancelled = isSpanCancelled(span);
|
|
55501
|
-
const colors = getResourceClassNames(span.resource);
|
|
55502
|
-
const fallbackClassName = isErrored ? colors.errorClassName ?? "border-red-500 bg-red-200" : isCancelled ? "border-gray-700 bg-gray-500" : colors.className;
|
|
55486
|
+
const fallbackClassName = getSpanColors(span.resource, getSpanState(span)).bar;
|
|
55503
55487
|
const totalLabel = formatDurationPrecise(totalDurationMs);
|
|
55504
55488
|
const showTotalLabel = geometry.visiblePixelWidth >= Math.max(40, estimateLabelWidthPx(totalLabel));
|
|
55505
55489
|
const handleClick = reactExports.useCallback(() => {
|
|
55506
55490
|
onSelect(span.spanId);
|
|
55507
55491
|
}, [onSelect, span.spanId]);
|
|
55508
|
-
return jsxRuntimeExports.jsx("div", { role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, className: cn$2("group/timeline-row h-10 relative flex items-center hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:hover:bg-gray-200 transition-opacity", isDimmed && "opacity-35"), onClick: handleClick, children: jsxRuntimeExports.jsxs("div", { className: "absolute inset-x-4 inset-y-0", children: [jsxRuntimeExports.jsx("div", { className: "absolute top-1/2 h-6 -translate-y-1/2 overflow-hidden rounded-
|
|
55492
|
+
return jsxRuntimeExports.jsx("div", { role: "treeitem", "aria-selected": isSelected, "aria-expanded": isSelected, "aria-level": 1, className: cn$2("group/timeline-row h-10 relative flex items-center hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:hover:bg-gray-200 transition-opacity", isDimmed && "opacity-35"), onClick: handleClick, children: jsxRuntimeExports.jsxs("div", { className: "absolute inset-x-4 inset-y-0", children: [jsxRuntimeExports.jsx("div", { className: "absolute top-1/2 h-6 -translate-y-1/2 overflow-hidden rounded-sm", style: getBarPositionStyle(geometry), children: geometry.mode.kind === "arrow" ? jsxRuntimeExports.jsx(BoundaryArrow, { direction: geometry.mode.direction }) : geometry.mode.kind === "tiny" ? jsxRuntimeExports.jsx("div", { className: cn$2("h-6 rounded-sm border", fallbackClassName) }) : segments.length > 0 ? jsxRuntimeExports.jsx(SegmentBar, { resource: span.resource, segments, showLabels: !hasMarkers }) : jsxRuntimeExports.jsx(PlainBar, { className: fallbackClassName, label: showTotalLabel ? totalLabel : null }) }), hasMarkers ? jsxRuntimeExports.jsxs("div", { className: "pointer-events-none absolute top-1/2 h-6 -translate-y-1/2", style: getBarPositionStyle(geometry), children: [markers.length > 0 ? jsxRuntimeExports.jsx(MarkerLayer, { markers }) : null, offscreen.left ? jsxRuntimeExports.jsx(OffscreenMarkerIndicator, { direction: "left", count: offscreen.left.count, targetMs: offscreen.left.nearestMs, onReveal: onRevealTime }) : null, offscreen.right ? jsxRuntimeExports.jsx(OffscreenMarkerIndicator, { direction: "right", count: offscreen.right.count, targetMs: offscreen.right.nearestMs, onReveal: onRevealTime }) : null, showTotalLabel ? jsxRuntimeExports.jsx(DurationLabel, {
|
|
55509
55493
|
label: totalLabel,
|
|
55510
55494
|
// Shift clear of the left edge indicator so it isn't covered.
|
|
55511
55495
|
className: offscreen.left ? "pl-10" : void 0
|
|
@@ -55523,8 +55507,8 @@ const DeltaMeasureLine = reactExports.memo(function DeltaMeasureLine2({ delta, a
|
|
|
55523
55507
|
const hoveredX = delta.hoveredFrac * timelineWidth + arrowClearance;
|
|
55524
55508
|
const startX = Math.min(guideX, hoveredX);
|
|
55525
55509
|
const endX = Math.max(guideX, hoveredX);
|
|
55526
|
-
const
|
|
55527
|
-
const labelWidthPx = estimateLabelWidthPx(
|
|
55510
|
+
const label2 = formatDurationPrecise(delta.deltaMs);
|
|
55511
|
+
const labelWidthPx = estimateLabelWidthPx(label2);
|
|
55528
55512
|
const labelPlacement = endX - startX >= labelWidthPx ? { left: (startX + endX) / 2, translate: "-translate-x-1/2" } : endX + 4 + labelWidthPx <= timelineWidth ? { left: endX + 4, translate: "" } : { left: startX - 4, translate: "-translate-x-full" };
|
|
55529
55513
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx("div", { className: "absolute h-px w-1 bg-amber-800", style: {
|
|
55530
55514
|
left: Math.min(anchorX, guideX),
|
|
@@ -55533,7 +55517,7 @@ const DeltaMeasureLine = reactExports.memo(function DeltaMeasureLine2({ delta, a
|
|
|
55533
55517
|
left: guideX,
|
|
55534
55518
|
top: guideTop,
|
|
55535
55519
|
height: guideBottom - guideTop
|
|
55536
|
-
} }), jsxRuntimeExports.jsx("div", { className: "absolute h-px bg-amber-800", style: { left: startX, width: Math.max(endX - startX, 1), top: lineY } }), jsxRuntimeExports.jsx("span", { className: cn$2("absolute -translate-y-1/2 font-mono text-[10px] font-medium leading-none tabular-nums whitespace-nowrap rounded-xs bg-background-100 px-1 py-0.5 text-amber-800", labelPlacement.translate), style: { left: labelPlacement.left, top: lineY }, children:
|
|
55520
|
+
} }), jsxRuntimeExports.jsx("div", { className: "absolute h-px bg-amber-800", style: { left: startX, width: Math.max(endX - startX, 1), top: lineY } }), jsxRuntimeExports.jsx("span", { className: cn$2("absolute -translate-y-1/2 font-mono text-[10px] font-medium leading-none tabular-nums whitespace-nowrap rounded-xs bg-background-100 px-1 py-0.5 text-amber-800", labelPlacement.translate), style: { left: labelPlacement.left, top: lineY }, children: label2 })] });
|
|
55537
55521
|
});
|
|
55538
55522
|
function TimelineHeader({ markers, hoverInfo }) {
|
|
55539
55523
|
return jsxRuntimeExports.jsx("div", { className: "relative bg-background-100 border-b border-gray-alpha-400 h-10 min-h-10 flex items-end px-4 pb-1", children: jsxRuntimeExports.jsxs("div", { className: "relative h-full flex-1", children: [markers.map((m2) => jsxRuntimeExports.jsx("span", { className: "absolute bottom-1 text-label-12-mono text-gray-900 whitespace-nowrap", style: { left: `${m2.position * 100}%` }, children: m2.label }, String(m2.value))), hoverInfo && jsxRuntimeExports.jsx("span", { className: "absolute top-1 pointer-events-none z-10 font-mono text-[11px] leading-4 text-gray-1000 whitespace-nowrap bg-background-100 border border-gray-alpha-400 rounded px-1 -translate-x-1/2", style: { left: `${hoverInfo.fraction * 100}%` }, children: hoverInfo.label })] }) });
|
|
@@ -55589,21 +55573,13 @@ const MIN_LINE_WIDTH_PX = 2;
|
|
|
55589
55573
|
const CLICK_DRAG_THRESHOLD_PX = 3;
|
|
55590
55574
|
const MIN_BRUSH_WIDTH_PX = 6;
|
|
55591
55575
|
const KEYBOARD_PAN_FRACTION = 0.1;
|
|
55592
|
-
const RESOURCE_LINE_TOKENS = {
|
|
55593
|
-
run: "--ds-blue-400",
|
|
55594
|
-
step: "--ds-green-400",
|
|
55595
|
-
hook: "--ds-gray-400",
|
|
55596
|
-
sleep: "--ds-gray-400"
|
|
55597
|
-
};
|
|
55598
|
-
const DEFAULT_LINE_TOKEN = "--ds-gray-400";
|
|
55599
|
-
const ERROR_LINE_TOKEN = "--ds-red-400";
|
|
55600
55576
|
function computeDensityLayout(spans, rootStartMs, rootDurationMs, contentWidth, contentHeight) {
|
|
55601
55577
|
const count2 = spans.length;
|
|
55602
55578
|
const lineHeight = Math.max(MIN_LINE_HEIGHT_PX, Math.min(MAX_LINE_HEIGHT_PX, contentHeight / count2));
|
|
55603
55579
|
const rowStep = count2 > 1 ? Math.min((contentHeight - lineHeight) / (count2 - 1), lineHeight + 1) : 0;
|
|
55604
55580
|
const rectsByToken = /* @__PURE__ */ new Map();
|
|
55605
55581
|
spans.forEach((span, index2) => {
|
|
55606
|
-
const token =
|
|
55582
|
+
const token = getSpanColors(span.resource, getSpanState(span)).line;
|
|
55607
55583
|
const startMs = getHighResInMs(span.startTime);
|
|
55608
55584
|
const endMs = getHighResInMs(span.endTime);
|
|
55609
55585
|
const x2 = TIMELINE_PADDING_PX + (startMs - rootStartMs) / rootDurationMs * contentWidth;
|
|
@@ -55657,9 +55633,9 @@ const Minimap = reactExports.memo(function Minimap2({ spans, root: root2, viewpo
|
|
|
55657
55633
|
const clamp2 = reactExports.useCallback((next2) => clampViewportToRoot(next2, rootStartMs, rootEndMs, minViewportMs), [rootStartMs, rootEndMs, minViewportMs]);
|
|
55658
55634
|
reactExports.useLayoutEffect(() => {
|
|
55659
55635
|
const canvas = canvasRef.current;
|
|
55660
|
-
const
|
|
55636
|
+
const container2 = containerRef.current;
|
|
55661
55637
|
const ctx = canvas?.getContext("2d");
|
|
55662
|
-
if (!canvas || !
|
|
55638
|
+
if (!canvas || !container2 || !ctx)
|
|
55663
55639
|
return;
|
|
55664
55640
|
const draw = () => {
|
|
55665
55641
|
const width = canvas.clientWidth;
|
|
@@ -55674,7 +55650,7 @@ const Minimap = reactExports.memo(function Minimap2({ spans, root: root2, viewpo
|
|
|
55674
55650
|
if (spans.length === 0 || rootDurationMs <= 0)
|
|
55675
55651
|
return;
|
|
55676
55652
|
const { lineHeight, rectsByToken } = computeDensityLayout(spans, rootStartMs, rootDurationMs, contentWidth, height - CANVAS_PAD_Y_PX * 2);
|
|
55677
|
-
const style2 = getComputedStyle(
|
|
55653
|
+
const style2 = getComputedStyle(container2);
|
|
55678
55654
|
const drawToken = (token) => {
|
|
55679
55655
|
const rects = rectsByToken.get(token);
|
|
55680
55656
|
if (!rects)
|
|
@@ -55690,14 +55666,14 @@ const Minimap = reactExports.memo(function Minimap2({ spans, root: root2, viewpo
|
|
|
55690
55666
|
ctx.fill();
|
|
55691
55667
|
};
|
|
55692
55668
|
for (const token of rectsByToken.keys()) {
|
|
55693
|
-
if (token !==
|
|
55669
|
+
if (token !== SPAN_COLORS.failed.line)
|
|
55694
55670
|
drawToken(token);
|
|
55695
55671
|
}
|
|
55696
|
-
drawToken(
|
|
55672
|
+
drawToken(SPAN_COLORS.failed.line);
|
|
55697
55673
|
};
|
|
55698
55674
|
draw();
|
|
55699
55675
|
const observer = new ResizeObserver(draw);
|
|
55700
|
-
observer.observe(
|
|
55676
|
+
observer.observe(container2);
|
|
55701
55677
|
return () => observer.disconnect();
|
|
55702
55678
|
}, [spans, rootStartMs, rootDurationMs, dpr, themeVersion]);
|
|
55703
55679
|
const pointerFrame = reactExports.useCallback((e) => {
|
|
@@ -55867,131 +55843,134 @@ const mermaidWFAXDIZX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
55867
55843
|
Mermaid: co
|
|
55868
55844
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
55869
55845
|
export {
|
|
55870
|
-
|
|
55871
|
-
|
|
55846
|
+
TERMINAL_EVENT_CLASSES as $,
|
|
55847
|
+
createContextScope as A,
|
|
55872
55848
|
Button as B,
|
|
55873
55849
|
ChevronRight as C,
|
|
55874
|
-
|
|
55875
|
-
|
|
55876
|
-
|
|
55877
|
-
|
|
55878
|
-
|
|
55850
|
+
PopperAnchor as D,
|
|
55851
|
+
composeEventHandlers as E,
|
|
55852
|
+
Portal as F,
|
|
55853
|
+
Presence as G,
|
|
55854
|
+
FocusScope as H,
|
|
55879
55855
|
In as I,
|
|
55880
|
-
|
|
55881
|
-
|
|
55882
|
-
|
|
55883
|
-
|
|
55884
|
-
|
|
55885
|
-
|
|
55856
|
+
DismissableLayer as J,
|
|
55857
|
+
PopperContent as K,
|
|
55858
|
+
useCallbackRef as L,
|
|
55859
|
+
createSlot as M,
|
|
55860
|
+
ChevronDown as N,
|
|
55861
|
+
useSize as O,
|
|
55886
55862
|
Primitive as P,
|
|
55887
|
-
|
|
55863
|
+
BULK_CANCEL_MAX_RUN_IDS as Q,
|
|
55888
55864
|
R,
|
|
55889
55865
|
Spinner as S,
|
|
55890
55866
|
Tooltip as T,
|
|
55891
|
-
|
|
55867
|
+
STATUS_DOT as U,
|
|
55892
55868
|
VISUALLY_HIDDEN_STYLES as V,
|
|
55893
55869
|
Wc as W,
|
|
55894
|
-
|
|
55895
|
-
|
|
55896
|
-
|
|
55870
|
+
cva as X,
|
|
55871
|
+
isSlotEventId as Y,
|
|
55872
|
+
classifyEntityEvent as Z,
|
|
55897
55873
|
__vitePreload as _,
|
|
55898
55874
|
cn$2 as a,
|
|
55899
|
-
|
|
55900
|
-
|
|
55901
|
-
|
|
55902
|
-
|
|
55903
|
-
|
|
55904
|
-
|
|
55905
|
-
|
|
55906
|
-
|
|
55907
|
-
|
|
55908
|
-
|
|
55909
|
-
|
|
55910
|
-
|
|
55911
|
-
|
|
55912
|
-
|
|
55913
|
-
|
|
55914
|
-
|
|
55915
|
-
|
|
55916
|
-
|
|
55917
|
-
|
|
55918
|
-
|
|
55919
|
-
|
|
55920
|
-
|
|
55921
|
-
|
|
55922
|
-
|
|
55923
|
-
|
|
55924
|
-
|
|
55925
|
-
|
|
55926
|
-
|
|
55927
|
-
|
|
55928
|
-
|
|
55929
|
-
|
|
55930
|
-
|
|
55931
|
-
|
|
55932
|
-
|
|
55933
|
-
|
|
55934
|
-
|
|
55935
|
-
|
|
55936
|
-
|
|
55937
|
-
|
|
55938
|
-
|
|
55939
|
-
|
|
55940
|
-
|
|
55941
|
-
|
|
55942
|
-
|
|
55943
|
-
|
|
55944
|
-
|
|
55945
|
-
|
|
55946
|
-
|
|
55947
|
-
|
|
55948
|
-
|
|
55949
|
-
|
|
55950
|
-
|
|
55951
|
-
|
|
55952
|
-
|
|
55953
|
-
|
|
55954
|
-
|
|
55955
|
-
|
|
55956
|
-
|
|
55957
|
-
|
|
55958
|
-
|
|
55959
|
-
|
|
55960
|
-
|
|
55961
|
-
|
|
55962
|
-
|
|
55875
|
+
decrypt as a$,
|
|
55876
|
+
isSealedNoopEvent as a0,
|
|
55877
|
+
isStepEventType as a1,
|
|
55878
|
+
isWaitEventType as a2,
|
|
55879
|
+
isHookLifecycleEventType as a3,
|
|
55880
|
+
isEncryptedMarker as a4,
|
|
55881
|
+
isTerminalStepEventType as a5,
|
|
55882
|
+
isRunCreationEvent as a6,
|
|
55883
|
+
CopyButton as a7,
|
|
55884
|
+
CopyableDataBlock as a8,
|
|
55885
|
+
CollapsibleRoot as a9,
|
|
55886
|
+
useSidebarData as aA,
|
|
55887
|
+
ActiveSpanProvider as aB,
|
|
55888
|
+
useReducedMotion as aC,
|
|
55889
|
+
searchSpans as aD,
|
|
55890
|
+
computeRootBounds as aE,
|
|
55891
|
+
computeTimeMarkers as aF,
|
|
55892
|
+
clampViewportToRoot as aG,
|
|
55893
|
+
getHighResInMs as aH,
|
|
55894
|
+
scrollRowIntoView as aI,
|
|
55895
|
+
TIMELINE_PADDING_PX as aJ,
|
|
55896
|
+
Minimap as aK,
|
|
55897
|
+
Timeline as aL,
|
|
55898
|
+
TimelineHeader as aM,
|
|
55899
|
+
wheelZoomScaleFactor as aN,
|
|
55900
|
+
wheelDeltaToPixels as aO,
|
|
55901
|
+
SidebarDataProvider as aP,
|
|
55902
|
+
hydrateResourceIOAsync as aQ,
|
|
55903
|
+
createStateResolver as aR,
|
|
55904
|
+
deriveRunPayloadKeys as aS,
|
|
55905
|
+
decodePayloadWithKey as aT,
|
|
55906
|
+
stateSourceId as aU,
|
|
55907
|
+
getWebRevivers as aV,
|
|
55908
|
+
hydrateResourceIO as aW,
|
|
55909
|
+
buttonVariants as aX,
|
|
55910
|
+
Slot as aY,
|
|
55911
|
+
isEncryptedData as aZ,
|
|
55912
|
+
hydrateData as a_,
|
|
55913
|
+
CollapsibleTrigger as aa,
|
|
55914
|
+
CollapsibleContent as ab,
|
|
55915
|
+
RESERVED_ATTRIBUTE_KEY_PREFIX as ac,
|
|
55916
|
+
IconButton as ad,
|
|
55917
|
+
Lock as ae,
|
|
55918
|
+
getEventDataRefFields as af,
|
|
55919
|
+
Collapsible as ag,
|
|
55920
|
+
Skeleton as ah,
|
|
55921
|
+
DecryptClickContext as ai,
|
|
55922
|
+
DataInspector as aj,
|
|
55923
|
+
serializeForClipboard as ak,
|
|
55924
|
+
TooltipProvider as al,
|
|
55925
|
+
TimestampTooltip as am,
|
|
55926
|
+
ContextCardProvider as an,
|
|
55927
|
+
es$1 as ao,
|
|
55928
|
+
Ui as ap,
|
|
55929
|
+
RunClickContext as aq,
|
|
55930
|
+
StreamClickContext as ar,
|
|
55931
|
+
isExpiredMarker as as,
|
|
55932
|
+
isDoStreamStep as at,
|
|
55933
|
+
extractConversation as au,
|
|
55934
|
+
EncryptedDataBlock as av,
|
|
55935
|
+
hasEncryptedFields as aw,
|
|
55936
|
+
useSidebarDataOptional as ax,
|
|
55937
|
+
isTerminalWorkflowRunStatus as ay,
|
|
55938
|
+
useActiveSpan as az,
|
|
55963
55939
|
ROW_HEIGHT_PX as b,
|
|
55964
|
-
|
|
55965
|
-
|
|
55966
|
-
|
|
55967
|
-
|
|
55968
|
-
|
|
55969
|
-
|
|
55970
|
-
|
|
55971
|
-
|
|
55972
|
-
|
|
55940
|
+
getStreamImageType as b0,
|
|
55941
|
+
SerializationFormat as b1,
|
|
55942
|
+
StreamViewerSkeleton as b2,
|
|
55943
|
+
StreamViewer as b3,
|
|
55944
|
+
startHookId as b4,
|
|
55945
|
+
dispatchDiscreteCustomEvent as b5,
|
|
55946
|
+
useFocusScopeBranch as b6,
|
|
55947
|
+
useFocusScopeBranchRegistry as b7,
|
|
55948
|
+
FocusScopeBranchProvider as b8,
|
|
55949
|
+
VERCEL_403_ERROR_MESSAGE as b9,
|
|
55950
|
+
formatDuration as ba,
|
|
55951
|
+
useDismissableLayerSurface as bb,
|
|
55973
55952
|
createLucideIcon as c,
|
|
55974
|
-
|
|
55975
|
-
|
|
55976
|
-
|
|
55977
|
-
|
|
55978
|
-
|
|
55953
|
+
TOOLTIP_DELAY_MS as d,
|
|
55954
|
+
TooltipTrigger as e,
|
|
55955
|
+
TooltipContent as f,
|
|
55956
|
+
getSpanColors as g,
|
|
55957
|
+
getSpanDurationMs as h,
|
|
55979
55958
|
isSpanDimmedBySearch as i,
|
|
55980
|
-
|
|
55981
|
-
|
|
55982
|
-
|
|
55983
|
-
|
|
55984
|
-
|
|
55985
|
-
|
|
55986
|
-
|
|
55987
|
-
|
|
55959
|
+
isSpanErrored as j,
|
|
55960
|
+
isSpanCancelled as k,
|
|
55961
|
+
formatDurationPrecise as l,
|
|
55962
|
+
Toaster as m,
|
|
55963
|
+
TooltipProvider$1 as n,
|
|
55964
|
+
useToast as o,
|
|
55965
|
+
Check as p,
|
|
55966
|
+
Copy as q,
|
|
55988
55967
|
registerZstdDecoder as r,
|
|
55989
|
-
|
|
55968
|
+
useComposedRefs as s,
|
|
55990
55969
|
toast as t,
|
|
55991
55970
|
useRowWindow as u,
|
|
55992
|
-
|
|
55993
|
-
|
|
55994
|
-
|
|
55995
|
-
|
|
55996
|
-
|
|
55971
|
+
useLayoutEffect2 as v,
|
|
55972
|
+
useControllableState as w,
|
|
55973
|
+
useId as x,
|
|
55974
|
+
Popper as y,
|
|
55975
|
+
createPopperScope as z
|
|
55997
55976
|
};
|