@workflow/web 5.0.0-beta.7 → 5.0.0-beta.8
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/{highlighted-body-B3W2YXNL-Cq4feDhL.js → highlighted-body-B3W2YXNL-WHMd9MPa.js} +1 -1
- package/build/client/assets/{home-B-DWbULo.js → home-Cai0GqMt.js} +8 -16
- package/build/client/assets/{manifest-21016363.js → manifest-127f70fe.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-PK-k2mDG.js → mermaid-3ZIDBTTL-TNUP6Q3m.js} +170 -119
- package/build/client/assets/root-COvK3yNk.css +1 -0
- package/build/client/assets/{root-DDT0W3fG.js → root-ORTTXEp6.js} +1 -1
- package/build/client/assets/{run-detail-COyTZwjr.js → run-detail-DNZJxxPM.js} +952 -896
- package/build/client/assets/server-build-DzzvWTSG.css +1 -0
- package/build/client/assets/{workflow-graph-viewer-CVUKAMV1.js → workflow-graph-viewer-DKqOOMnz.js} +50 -41
- package/build/server/assets/{app-CASBD2Jz.js → app-BxqFvIap.js} +1 -1
- package/build/server/assets/{highlighted-body-B3W2YXNL-DtYGrm0G.js → highlighted-body-B3W2YXNL-BuIiME1D.js} +2 -2
- package/build/server/assets/index-CdMzuwNr.js +89 -0
- package/build/server/assets/{mermaid-3ZIDBTTL-D37Y2lwn.js → mermaid-3ZIDBTTL-TSh7T1Pv.js} +2 -2
- package/build/server/assets/{server-build-BZS28Q46.js → server-build-fc5Vuxba.js} +1776 -1494
- package/build/server/assets/{token-98GkKm4t.js → token--89oCxEK.js} +2 -2
- package/build/server/assets/{token-util-CHxt50WW.js → token-util-N0DDbkKZ.js} +2 -2
- package/build/server/index.js +1 -1
- package/package.json +7 -7
- package/build/client/assets/root-B527kgKt.css +0 -1
- package/build/client/assets/server-build-BUmla00D.css +0 -1
- package/build/server/assets/index-B_Gtun0B.js +0 -80
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R, K as Ks, Q as Qe } from "./mermaid-3ZIDBTTL-
|
|
1
|
+
import { R, K as Ks, Q as Qe } from "./mermaid-3ZIDBTTL-TNUP6Q3m.js";
|
|
2
2
|
import { r as reactExports, j as jsxRuntimeExports } from "./index-BsV8i_Jn.js";
|
|
3
3
|
var L = ({ code: s, language: t, raw: e, className: n, ...d$1 }) => {
|
|
4
4
|
let { shikiTheme: l } = reactExports.useContext(R), o = Ks(), [m, i] = reactExports.useState(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, D as ReactDOM, j as jsxRuntimeExports, A as Link, f as reactDomExports, C as useSearchParams, B as useNavigate, G as useLocation, w as withComponentProps } from "./index-BsV8i_Jn.js";
|
|
2
|
-
import { R as ResolveHookModal, S as Send, a as Skeleton, u as unwrapOrThrow, W as WorkflowWebAPIError, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, d as AlertDescription, g as getErrorMessage, e as CopyableText, D as DropdownMenu, f as DropdownMenuTrigger, E as Ellipsis, h as DropdownMenuContent, i as DropdownMenuItem, j as ChevronRight, r as resumeHook, k as createCollection, l as hideOthers, m as ReactRemoveScroll, n as useDirection, o as ChevronDown, p as Check, X,
|
|
3
|
-
import { g as useLayoutEffect2, P as Primitive, c as createLucideIcon, h as useToast, d as cn, D as DEFAULT_PAGE_SIZE, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, B as Button, b as TooltipContent, l as fetchEvents, m as useCallbackRef, n as useComposedRefs, A as Anchor, o as composeEventHandlers, p as useId, q as createPopperScope, s as DismissableLayer, v as createContextScope, w as createSlot, C as Content$1, x as useControllableState, y as Root2$1, V as VISUALLY_HIDDEN_STYLES, z as Arrow, E as useComposedRefs$1, u as useServerConfig, t as toast, L as LoaderCircle, F as fetchRun, G as cva, H as Presence$1, I as createContext2, J as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-
|
|
2
|
+
import { R as ResolveHookModal, S as Send, a as Skeleton, u as unwrapOrThrow, W as WorkflowWebAPIError, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, d as AlertDescription, g as getErrorMessage, e as CopyableText, D as DropdownMenu, f as DropdownMenuTrigger, E as Ellipsis, h as DropdownMenuContent, i as DropdownMenuItem, j as ChevronRight, r as resumeHook, k as createCollection, l as hideOthers, m as ReactRemoveScroll, n as useDirection, o as ChevronDown, p as ChevronUp, q as Check, X, s as useControllableState$1, P as Primitive$1, t as composeEventHandlers$1, v as Presence, w as useSize, x as createContextScope$1, y as cancelRun, z as reenqueueRun, B as parseWorkflowName, F as StatusBadge, Z as Zap, G as CircleX, H as RunActionsDropdownItems, I as unwrapServerActionResult, J as WorkflowGraphViewer, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, N as ErrorBoundary } from "./workflow-graph-viewer-DKqOOMnz.js";
|
|
3
|
+
import { g as useLayoutEffect2, P as Primitive, c as createLucideIcon, h as useToast, d as cn, D as DEFAULT_PAGE_SIZE, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, B as Button, b as TooltipContent, l as fetchEvents, m as useCallbackRef, n as useComposedRefs, A as Anchor, o as composeEventHandlers, p as useId, q as createPopperScope, s as DismissableLayer, v as createContextScope, w as createSlot, C as Content$1, x as useControllableState, y as Root2$1, V as VISUALLY_HIDDEN_STYLES, z as Arrow, E as useComposedRefs$1, u as useServerConfig, t as toast, L as LoaderCircle, F as fetchRun, G as cva, H as Presence$1, I as createContext2, J as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-TNUP6Q3m.js";
|
|
4
4
|
import "./index-Byi8AWfe.js";
|
|
5
5
|
var PORTAL_NAME$2 = "Portal";
|
|
6
6
|
var Portal$2 = reactExports.forwardRef((props, forwardedRef) => {
|
|
@@ -18,44 +18,36 @@ Portal$2.displayName = PORTAL_NAME$2;
|
|
|
18
18
|
* This source code is licensed under the ISC license.
|
|
19
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
20
20
|
*/
|
|
21
|
-
const __iconNode$
|
|
21
|
+
const __iconNode$6 = [
|
|
22
22
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
23
23
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
24
24
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
25
25
|
["path", { d: "M15 10V6.5a2.5 2.5 0 0 1 5 0V10", key: "ag13bf" }],
|
|
26
26
|
["path", { d: "M15 14h5l-5 6h5", key: "ur5jdg" }]
|
|
27
27
|
];
|
|
28
|
-
const ArrowDownAZ = createLucideIcon("arrow-down-a-z", __iconNode$
|
|
28
|
+
const ArrowDownAZ = createLucideIcon("arrow-down-a-z", __iconNode$6);
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v0.575.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
const __iconNode$
|
|
35
|
+
const __iconNode$5 = [
|
|
36
36
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
37
37
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
38
38
|
["path", { d: "M20 8h-5", key: "1vsyxs" }],
|
|
39
39
|
["path", { d: "M15 10V6.5a2.5 2.5 0 0 1 5 0V10", key: "ag13bf" }],
|
|
40
40
|
["path", { d: "M15 14h5l-5 6h5", key: "ur5jdg" }]
|
|
41
41
|
];
|
|
42
|
-
const ArrowUpAZ = createLucideIcon("arrow-up-a-z", __iconNode$
|
|
43
|
-
/**
|
|
44
|
-
* @license lucide-react v0.575.0 - ISC
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the ISC license.
|
|
47
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/
|
|
49
|
-
const __iconNode$5 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
50
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$5);
|
|
42
|
+
const ArrowUpAZ = createLucideIcon("arrow-up-a-z", __iconNode$5);
|
|
51
43
|
/**
|
|
52
44
|
* @license lucide-react v0.575.0 - ISC
|
|
53
45
|
*
|
|
54
46
|
* This source code is licensed under the ISC license.
|
|
55
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
48
|
*/
|
|
57
|
-
const __iconNode$4 = [["path", { d: "
|
|
58
|
-
const
|
|
49
|
+
const __iconNode$4 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
50
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$4);
|
|
59
51
|
/**
|
|
60
52
|
* @license lucide-react v0.575.0 - ISC
|
|
61
53
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-DtOpLtMQ.js","imports":["/assets/index-BsV8i_Jn.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-DtOpLtMQ.js","imports":["/assets/index-BsV8i_Jn.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-ORTTXEp6.js","imports":["/assets/index-BsV8i_Jn.js","/assets/mermaid-3ZIDBTTL-TNUP6Q3m.js"],"css":["/assets/root-COvK3yNk.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/home":{"id":"routes/home","parentId":"root","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/home-Cai0GqMt.js","imports":["/assets/index-BsV8i_Jn.js","/assets/workflow-graph-viewer-DKqOOMnz.js","/assets/mermaid-3ZIDBTTL-TNUP6Q3m.js","/assets/index-Byi8AWfe.js"],"css":["/assets/workflow-graph-viewer-DnlNuQQH.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/run-detail":{"id":"routes/run-detail","parentId":"root","path":"run/:runId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/run-detail-DNZJxxPM.js","imports":["/assets/index-BsV8i_Jn.js","/assets/workflow-graph-viewer-DKqOOMnz.js","/assets/mermaid-3ZIDBTTL-TNUP6Q3m.js","/assets/encryption-C69WMRfh.js","/assets/index-Byi8AWfe.js"],"css":["/assets/workflow-graph-viewer-DnlNuQQH.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/api.rpc":{"id":"routes/api.rpc","parentId":"root","path":"api/rpc","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/api.rpc-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.stream.$streamId":{"id":"routes/api.stream.$streamId","parentId":"root","path":"api/stream/:streamId","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/api.stream._streamId-l0sNRNKZ.js","imports":[],"css":[]}},"url":"/assets/manifest-127f70fe.js","version":"127f70fe"};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-C69WMRfh.js","assets/index-Byi8AWfe.js","assets/index-BsV8i_Jn.js","assets/highlighted-body-B3W2YXNL-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/encryption-C69WMRfh.js","assets/index-Byi8AWfe.js","assets/index-BsV8i_Jn.js","assets/highlighted-body-B3W2YXNL-WHMd9MPa.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -15311,6 +15311,10 @@ function _instanceof(cls, params = {}) {
|
|
|
15311
15311
|
function date(params) {
|
|
15312
15312
|
return /* @__PURE__ */ _coercedDate(ZodDate, params);
|
|
15313
15313
|
}
|
|
15314
|
+
object({
|
|
15315
|
+
key: string$2(),
|
|
15316
|
+
value: union([string$2(), _null()])
|
|
15317
|
+
});
|
|
15314
15318
|
const BinarySerializedDataSchema = _instanceof(Uint8Array);
|
|
15315
15319
|
const LegacySerializedDataSchemaV1 = any();
|
|
15316
15320
|
const SerializedDataSchema = union([
|
|
@@ -15634,7 +15638,7 @@ const WorkflowRunBaseSchema = object({
|
|
|
15634
15638
|
// Optional in database for backwards compatibility, defaults to 1 (legacy) when reading
|
|
15635
15639
|
specVersion: number$2().optional(),
|
|
15636
15640
|
executionContext: record(string$2(), any()).optional(),
|
|
15637
|
-
input: SerializedDataSchema,
|
|
15641
|
+
input: SerializedDataSchema.optional(),
|
|
15638
15642
|
output: SerializedDataSchema.optional(),
|
|
15639
15643
|
/**
|
|
15640
15644
|
* The thrown value from a run_failed event, serialized via the workflow
|
|
@@ -15650,6 +15654,24 @@ const WorkflowRunBaseSchema = object({
|
|
|
15650
15654
|
* without needing to decrypt the full error payload.
|
|
15651
15655
|
*/
|
|
15652
15656
|
errorCode: string$2().optional(),
|
|
15657
|
+
/**
|
|
15658
|
+
* Plaintext string-string metadata attached to the run via
|
|
15659
|
+
* `experimental_setAttributes()` (or, in the future, materialized
|
|
15660
|
+
* from `attr_set` events). Stored unencrypted alongside other
|
|
15661
|
+
* plaintext fields so observability surfaces can read it without
|
|
15662
|
+
* going through the decryption pipeline.
|
|
15663
|
+
*
|
|
15664
|
+
* Defaults to `{}` after schema parsing so consumers always receive
|
|
15665
|
+
* a record regardless of world. World adapters need not initialize
|
|
15666
|
+
* the field on disk — `world-local` JSON files written before this
|
|
15667
|
+
* field existed, and rows from any other adapter that omits the
|
|
15668
|
+
* column, both read as `{}` after Zod parses them.
|
|
15669
|
+
*
|
|
15670
|
+
* EXPERIMENTAL (MVP): the full Workflow Attributes feature replaces
|
|
15671
|
+
* the direct-mutation MVP path with an event-sourced model — see
|
|
15672
|
+
* the attributes-mvp changelog entry.
|
|
15673
|
+
*/
|
|
15674
|
+
attributes: record(string$2(), string$2()).default({}),
|
|
15653
15675
|
expiredAt: date().optional(),
|
|
15654
15676
|
startedAt: date().optional(),
|
|
15655
15677
|
completedAt: date().optional(),
|
|
@@ -15734,7 +15756,7 @@ object({
|
|
|
15734
15756
|
*/
|
|
15735
15757
|
stepName: string$2(),
|
|
15736
15758
|
status: StepStatusSchema,
|
|
15737
|
-
input: SerializedDataSchema,
|
|
15759
|
+
input: SerializedDataSchema.optional(),
|
|
15738
15760
|
output: SerializedDataSchema.optional(),
|
|
15739
15761
|
/**
|
|
15740
15762
|
* The thrown value from a step_retrying or step_failed event, serialized
|
|
@@ -17000,6 +17022,80 @@ const geistTheme = {
|
|
|
17000
17022
|
};
|
|
17001
17023
|
const inspectorThemeLight = geistTheme;
|
|
17002
17024
|
const inspectorThemeDark = geistTheme;
|
|
17025
|
+
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
17026
|
+
const cx = clsx;
|
|
17027
|
+
const cva = (base, config2) => (props) => {
|
|
17028
|
+
var _config_compoundVariants;
|
|
17029
|
+
if ((config2 === null || config2 === void 0 ? void 0 : config2.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
17030
|
+
const { variants, defaultVariants } = config2;
|
|
17031
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
17032
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
17033
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
17034
|
+
if (variantProp === null) return null;
|
|
17035
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
17036
|
+
return variants[variant][variantKey];
|
|
17037
|
+
});
|
|
17038
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
17039
|
+
let [key, value] = param;
|
|
17040
|
+
if (value === void 0) {
|
|
17041
|
+
return acc;
|
|
17042
|
+
}
|
|
17043
|
+
acc[key] = value;
|
|
17044
|
+
return acc;
|
|
17045
|
+
}, {});
|
|
17046
|
+
const getCompoundVariantClassNames = config2 === null || config2 === void 0 ? void 0 : (_config_compoundVariants = config2.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
17047
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
17048
|
+
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
17049
|
+
let [key, value] = param2;
|
|
17050
|
+
return Array.isArray(value) ? value.includes({
|
|
17051
|
+
...defaultVariants,
|
|
17052
|
+
...propsWithoutUndefined
|
|
17053
|
+
}[key]) : {
|
|
17054
|
+
...defaultVariants,
|
|
17055
|
+
...propsWithoutUndefined
|
|
17056
|
+
}[key] === value;
|
|
17057
|
+
}) ? [
|
|
17058
|
+
...acc,
|
|
17059
|
+
cvClass,
|
|
17060
|
+
cvClassName
|
|
17061
|
+
] : acc;
|
|
17062
|
+
}, []);
|
|
17063
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
17064
|
+
};
|
|
17065
|
+
const buttonVariants$1 = cva([
|
|
17066
|
+
"outline-none m-0 border-0 align-baseline no-underline group/trigger",
|
|
17067
|
+
"relative cursor-pointer select-none transform translate-z-0",
|
|
17068
|
+
"inline-flex max-w-full items-center justify-center gap-x-1 whitespace-nowrap rounded-md font-medium",
|
|
17069
|
+
"!text-gray-100",
|
|
17070
|
+
"bg-gray-1000",
|
|
17071
|
+
"transition-[border-color,background,color,transform,box-shadow] duration-150 ease-in-out",
|
|
17072
|
+
"hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_22%))] dark-theme:hover:bg-[var(--themed-hover-bg,_hsl(0,_0%,_80%))]",
|
|
17073
|
+
// disabled styles
|
|
17074
|
+
"disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
|
|
17075
|
+
"disabled:bg-gray-100 disabled:!text-gray-700 disabled:hover:bg-gray-100",
|
|
17076
|
+
"aria-disabled:bg-gray-100 aria-disabled:text-gray-700 aria-disabled:hover:bg-gray-100"
|
|
17077
|
+
], {
|
|
17078
|
+
variants: {
|
|
17079
|
+
variant: {
|
|
17080
|
+
default: "",
|
|
17081
|
+
secondary: "border border-gray-alpha-400 [--themed-bg:_var(--ds-background-100)] [--themed-fg:_var(--ds-gray-1000)] [--themed-hover-bg:_var(--ds-gray-alpha-200)]",
|
|
17082
|
+
ghost: "[--themed-bg:_transparent] [--themed-fg:_var(--ds-gray-1000)] [--themed-hover-bg:_var(--ds-gray-alpha-100)]"
|
|
17083
|
+
},
|
|
17084
|
+
size: {
|
|
17085
|
+
default: "h-10 px-4 text-[14px]",
|
|
17086
|
+
sm: "h-8 px-3 text-[14px]",
|
|
17087
|
+
xs: "h-6 px-1.5 py-0.5 text-button-12",
|
|
17088
|
+
icon: "h-8 w-8"
|
|
17089
|
+
}
|
|
17090
|
+
},
|
|
17091
|
+
defaultVariants: {
|
|
17092
|
+
variant: "default",
|
|
17093
|
+
size: "default"
|
|
17094
|
+
}
|
|
17095
|
+
});
|
|
17096
|
+
function Button$1({ className, variant, size: size2, type = "button", ...props }) {
|
|
17097
|
+
return jsxRuntimeExports.jsx("button", { type, className: cn$4(buttonVariants$1({ variant, size: size2, className })), ...props });
|
|
17098
|
+
}
|
|
17003
17099
|
const STREAM_REF_TYPE = "__workflow_stream_ref__";
|
|
17004
17100
|
const CLASS_INSTANCE_REF_TYPE = "__workflow_class_instance_ref__";
|
|
17005
17101
|
const RUN_REF_TYPE = "__workflow_run_ref__";
|
|
@@ -17049,16 +17145,10 @@ const RunClickContext = reactExports.createContext(void 0);
|
|
|
17049
17145
|
function EncryptedInlineLabel() {
|
|
17050
17146
|
const ctx = reactExports.useContext(DecryptClickContext);
|
|
17051
17147
|
if (ctx) {
|
|
17052
|
-
return jsxRuntimeExports.jsxs(
|
|
17053
|
-
backgroundColor: "var(--ds-gray-100)",
|
|
17054
|
-
color: "var(--ds-gray-700)",
|
|
17055
|
-
border: "1px solid var(--ds-gray-400)",
|
|
17056
|
-
fontStyle: "italic",
|
|
17057
|
-
opacity: ctx.isDecrypting ? 0.6 : 1
|
|
17058
|
-
}, disabled: ctx.isDecrypting, onClick: (e) => {
|
|
17148
|
+
return jsxRuntimeExports.jsxs(Button$1, { size: "xs", className: "align-baseline gap-x-1", disabled: ctx.isDecrypting, onClick: (e) => {
|
|
17059
17149
|
e.stopPropagation();
|
|
17060
17150
|
ctx.onDecrypt();
|
|
17061
|
-
},
|
|
17151
|
+
}, children: [ctx.isDecrypting ? jsxRuntimeExports.jsx(Spinner, { size: 10 }) : jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3" }), jsxRuntimeExports.jsx("span", { children: "Decrypt" })] });
|
|
17062
17152
|
}
|
|
17063
17153
|
return jsxRuntimeExports.jsxs("span", { style: { color: "var(--ds-gray-600)", fontStyle: "italic" }, children: [jsxRuntimeExports.jsx(Lock, { className: "h-3 w-3", style: {
|
|
17064
17154
|
display: "inline",
|
|
@@ -17304,6 +17394,9 @@ function isDeepEqual(a2, b2, seen2 = /* @__PURE__ */ new WeakMap()) {
|
|
|
17304
17394
|
}
|
|
17305
17395
|
return true;
|
|
17306
17396
|
}
|
|
17397
|
+
function Skeleton$1({ className, style: style2, ...props }) {
|
|
17398
|
+
return jsxRuntimeExports.jsx("div", { ...props, className: cn$4("rounded-md", className), style: { backgroundColor: "var(--ds-gray-200)", ...style2 } });
|
|
17399
|
+
}
|
|
17307
17400
|
function __insertCSS(code2) {
|
|
17308
17401
|
if (typeof document == "undefined") return;
|
|
17309
17402
|
let head = document.head || document.getElementsByTagName("head")[0];
|
|
@@ -18393,9 +18486,6 @@ const ToastContext = reactExports.createContext(defaultAdapter);
|
|
|
18393
18486
|
function useToast() {
|
|
18394
18487
|
return reactExports.useContext(ToastContext);
|
|
18395
18488
|
}
|
|
18396
|
-
function Skeleton$1({ className, style: style2, ...props }) {
|
|
18397
|
-
return jsxRuntimeExports.jsx("div", { ...props, className: cn$4("rounded-md", className), style: { backgroundColor: "var(--ds-gray-200)", ...style2 } });
|
|
18398
|
-
}
|
|
18399
18489
|
const convert = (
|
|
18400
18490
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
18401
18491
|
/**
|
|
@@ -43158,7 +43248,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
43158
43248
|
var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
|
|
43159
43249
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
43160
43250
|
var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
|
|
43161
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-
|
|
43251
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-WHMd9MPa.js"), true ? __vite__mapDeps([3,2]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
43162
43252
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
43163
43253
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
43164
43254
|
return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
|
|
@@ -43922,6 +44012,14 @@ var Nt = ({ chart: e, className: t, config: o, fullscreen: n = false, showContro
|
|
|
43922
44012
|
let T2 = l || d2;
|
|
43923
44013
|
return jsxRuntimeExports.jsx("div", { className: f("size-full", t), "data-streamdown": "mermaid", ref: w2, children: jsxRuntimeExports.jsx(So, { className: f(n ? "size-full overflow-hidden" : "overflow-hidden", t), fullscreen: n, maxZoom: 3, minZoom: 0.5, showControls: s2, zoomStep: 0.1, children: jsxRuntimeExports.jsx("div", { "aria-label": "Mermaid chart", className: f("flex justify-center", n ? "size-full items-center" : null), dangerouslySetInnerHTML: { __html: T2 }, role: "img" }) }) });
|
|
43924
44014
|
};
|
|
44015
|
+
const SidebarDataContext = reactExports.createContext(null);
|
|
44016
|
+
SidebarDataContext.displayName = "SidebarDataContext";
|
|
44017
|
+
function SidebarDataProvider({ value, children: children2 }) {
|
|
44018
|
+
return jsxRuntimeExports.jsx(SidebarDataContext.Provider, { value, children: children2 });
|
|
44019
|
+
}
|
|
44020
|
+
function useSidebarDataOptional() {
|
|
44021
|
+
return reactExports.useContext(SidebarDataContext);
|
|
44022
|
+
}
|
|
43925
44023
|
const MAP_HEIGHT = 56;
|
|
43926
44024
|
const TIMELINE_PADDING = 8;
|
|
43927
44025
|
const ROW_PADDING = 2;
|
|
@@ -45151,14 +45249,6 @@ reactExports.memo(function MiniMap({ timelineRef, rows, scale }) {
|
|
|
45151
45249
|
height: MAP_HEIGHT - 4
|
|
45152
45250
|
} })] });
|
|
45153
45251
|
});
|
|
45154
|
-
const SidebarDataContext = reactExports.createContext(null);
|
|
45155
|
-
SidebarDataContext.displayName = "SidebarDataContext";
|
|
45156
|
-
function SidebarDataProvider({ value, children: children2 }) {
|
|
45157
|
-
return jsxRuntimeExports.jsx(SidebarDataContext.Provider, { value, children: children2 });
|
|
45158
|
-
}
|
|
45159
|
-
function useSidebarDataOptional() {
|
|
45160
|
-
return reactExports.useContext(SidebarDataContext);
|
|
45161
|
-
}
|
|
45162
45252
|
const ChunkRow = ReactExports.memo(function ChunkRow2({ chunk, index: index2 }) {
|
|
45163
45253
|
return jsxRuntimeExports.jsx("div", { className: "text-[11px] rounded-md border p-3", style: {
|
|
45164
45254
|
borderColor: "var(--ds-gray-300)",
|
|
@@ -45879,46 +45969,6 @@ function getElementRef(element2) {
|
|
|
45879
45969
|
}
|
|
45880
45970
|
return element2.props.ref || element2.ref;
|
|
45881
45971
|
}
|
|
45882
|
-
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
45883
|
-
const cx = clsx;
|
|
45884
|
-
const cva = (base, config2) => (props) => {
|
|
45885
|
-
var _config_compoundVariants;
|
|
45886
|
-
if ((config2 === null || config2 === void 0 ? void 0 : config2.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
45887
|
-
const { variants, defaultVariants } = config2;
|
|
45888
|
-
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
45889
|
-
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
45890
|
-
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
45891
|
-
if (variantProp === null) return null;
|
|
45892
|
-
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
45893
|
-
return variants[variant][variantKey];
|
|
45894
|
-
});
|
|
45895
|
-
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
45896
|
-
let [key, value] = param;
|
|
45897
|
-
if (value === void 0) {
|
|
45898
|
-
return acc;
|
|
45899
|
-
}
|
|
45900
|
-
acc[key] = value;
|
|
45901
|
-
return acc;
|
|
45902
|
-
}, {});
|
|
45903
|
-
const getCompoundVariantClassNames = config2 === null || config2 === void 0 ? void 0 : (_config_compoundVariants = config2.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
45904
|
-
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
45905
|
-
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
45906
|
-
let [key, value] = param2;
|
|
45907
|
-
return Array.isArray(value) ? value.includes({
|
|
45908
|
-
...defaultVariants,
|
|
45909
|
-
...propsWithoutUndefined
|
|
45910
|
-
}[key]) : {
|
|
45911
|
-
...defaultVariants,
|
|
45912
|
-
...propsWithoutUndefined
|
|
45913
|
-
}[key] === value;
|
|
45914
|
-
}) ? [
|
|
45915
|
-
...acc,
|
|
45916
|
-
cvClass,
|
|
45917
|
-
cvClassName
|
|
45918
|
-
] : acc;
|
|
45919
|
-
}, []);
|
|
45920
|
-
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
45921
|
-
};
|
|
45922
45972
|
const buttonVariants = cva(
|
|
45923
45973
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
45924
45974
|
{
|
|
@@ -48264,7 +48314,7 @@ const mermaid3ZIDBTTL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
48264
48314
|
Mermaid: Nt
|
|
48265
48315
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48266
48316
|
export {
|
|
48267
|
-
|
|
48317
|
+
Button$1 as $,
|
|
48268
48318
|
Anchor as A,
|
|
48269
48319
|
Button as B,
|
|
48270
48320
|
Content as C,
|
|
@@ -48278,70 +48328,71 @@ export {
|
|
|
48278
48328
|
Ks as K,
|
|
48279
48329
|
LoaderCircle as L,
|
|
48280
48330
|
Spinner as M,
|
|
48281
|
-
|
|
48282
|
-
|
|
48331
|
+
cn$4 as N,
|
|
48332
|
+
Skeleton$1 as O,
|
|
48283
48333
|
Primitive as P,
|
|
48284
48334
|
Qe as Q,
|
|
48285
48335
|
R,
|
|
48286
48336
|
ServerConfigProvider as S,
|
|
48287
48337
|
Tooltip as T,
|
|
48288
|
-
|
|
48338
|
+
DecryptClickContext as U,
|
|
48289
48339
|
VISUALLY_HIDDEN_STYLES as V,
|
|
48290
|
-
|
|
48291
|
-
|
|
48340
|
+
isEncryptedMarker as W,
|
|
48341
|
+
formatDuration as X,
|
|
48292
48342
|
Yr as Y,
|
|
48293
|
-
|
|
48343
|
+
DataInspector as Z,
|
|
48294
48344
|
_r as _,
|
|
48295
48345
|
TooltipTrigger as a,
|
|
48296
|
-
|
|
48297
|
-
|
|
48298
|
-
|
|
48299
|
-
|
|
48300
|
-
|
|
48301
|
-
|
|
48302
|
-
|
|
48303
|
-
|
|
48304
|
-
|
|
48305
|
-
|
|
48306
|
-
|
|
48307
|
-
|
|
48308
|
-
|
|
48309
|
-
|
|
48310
|
-
|
|
48311
|
-
|
|
48312
|
-
|
|
48313
|
-
|
|
48314
|
-
|
|
48315
|
-
|
|
48316
|
-
|
|
48317
|
-
|
|
48318
|
-
|
|
48319
|
-
|
|
48320
|
-
|
|
48321
|
-
|
|
48322
|
-
|
|
48323
|
-
|
|
48324
|
-
|
|
48325
|
-
|
|
48326
|
-
|
|
48327
|
-
|
|
48328
|
-
|
|
48329
|
-
|
|
48330
|
-
|
|
48331
|
-
|
|
48332
|
-
|
|
48333
|
-
|
|
48334
|
-
|
|
48335
|
-
|
|
48336
|
-
|
|
48337
|
-
|
|
48338
|
-
|
|
48339
|
-
|
|
48340
|
-
|
|
48341
|
-
|
|
48342
|
-
|
|
48343
|
-
|
|
48344
|
-
|
|
48346
|
+
Lock as a0,
|
|
48347
|
+
RunClickContext as a1,
|
|
48348
|
+
StreamClickContext as a2,
|
|
48349
|
+
isExpiredMarker as a3,
|
|
48350
|
+
isDoStreamStep as a4,
|
|
48351
|
+
extractConversation as a5,
|
|
48352
|
+
hasEncryptedFields as a6,
|
|
48353
|
+
EVENT_DATA_REF_FIELDS as a7,
|
|
48354
|
+
useSidebarDataOptional as a8,
|
|
48355
|
+
clsx as a9,
|
|
48356
|
+
useFloating as aA,
|
|
48357
|
+
offset as aB,
|
|
48358
|
+
shift as aC,
|
|
48359
|
+
limitShift as aD,
|
|
48360
|
+
flip as aE,
|
|
48361
|
+
size as aF,
|
|
48362
|
+
arrow as aG,
|
|
48363
|
+
hide as aH,
|
|
48364
|
+
autoUpdate as aI,
|
|
48365
|
+
cancelRun as aJ,
|
|
48366
|
+
reenqueueRun as aK,
|
|
48367
|
+
wakeUpRun as aL,
|
|
48368
|
+
resumeHook as aM,
|
|
48369
|
+
recreateRun as aN,
|
|
48370
|
+
getSpanDurationMs as aa,
|
|
48371
|
+
getHighResInMs as ab,
|
|
48372
|
+
ActiveSpanProvider as ac,
|
|
48373
|
+
useActiveSpan as ad,
|
|
48374
|
+
computeRootBounds as ae,
|
|
48375
|
+
computeTimeMarkers as af,
|
|
48376
|
+
TIMELINE_PADDING_PX as ag,
|
|
48377
|
+
Timeline as ah,
|
|
48378
|
+
TimelineHeader as ai,
|
|
48379
|
+
SidebarDataProvider as aj,
|
|
48380
|
+
hydrateResourceIOWithKey as ak,
|
|
48381
|
+
hydrateResourceIO as al,
|
|
48382
|
+
fetchHook as am,
|
|
48383
|
+
fetchStep as an,
|
|
48384
|
+
fetchStreams as ao,
|
|
48385
|
+
Slot as ap,
|
|
48386
|
+
Slottable as aq,
|
|
48387
|
+
buttonVariants as ar,
|
|
48388
|
+
isEncryptedData as as,
|
|
48389
|
+
hydrateData as at,
|
|
48390
|
+
getWebRevivers as au,
|
|
48391
|
+
LIVE_UPDATE_INTERVAL_MS as av,
|
|
48392
|
+
fetchEvent as aw,
|
|
48393
|
+
getEncryptionKeyForRun as ax,
|
|
48394
|
+
StreamViewer as ay,
|
|
48395
|
+
composeRefs as az,
|
|
48345
48396
|
TooltipContent as b,
|
|
48346
48397
|
createLucideIcon as c,
|
|
48347
48398
|
cn as d,
|