@workflow/web 5.0.0-beta.55 → 5.0.0-beta.57
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/{arrow-up-right-Cbiblmqd.js → arrow-up-right-XpJjI06G.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-DwU_jOoN.js → highlighted-body-B3W2YXNL-DA3N01jE.js} +1 -1
- package/build/client/assets/{home-5LIuLkPD.js → home-CLktiGIz.js} +3 -3
- package/build/client/assets/{loader-circle-DUHA29mm.js → loader-circle-Cj8CH5bR.js} +1 -1
- package/build/client/assets/{manifest-4d592c52.js → manifest-3ffb4984.js} +1 -1
- package/build/client/assets/{mermaid-3ZIDBTTL-NvETcKWB.js → mermaid-3ZIDBTTL-DG0Grjgm.js} +103 -7
- package/build/client/assets/{root-DBWIyKUW.js → root-3gE7cfR2.js} +3 -3
- package/build/client/assets/{run-detail-CBJBkl4-.js → run-detail-gOfjBB1S.js} +10 -3
- package/build/client/assets/{workflow-graph-viewer-B-jkpIk_.js → workflow-graph-viewer-Cg3Lr_h8.js} +1 -1
- package/build/client/assets/{zstd-browser-decoder-D3uoHeUt.js → zstd-browser-decoder-CEJ92wdJ.js} +1 -1
- package/build/server/assets/{app-BXpsg52W.js → app-CLgyAdH3.js} +1023 -395
- package/build/server/assets/{highlighted-body-B3W2YXNL-gkJfOpdp.js → highlighted-body-B3W2YXNL-B8wbEqnx.js} +1 -1
- package/build/server/assets/{index-BkN7taof.js → index-CD3sqsfS.js} +1 -1
- package/build/server/assets/index-qorbufop.js +179 -0
- package/build/server/assets/{mermaid-3ZIDBTTL-CPNY3RZj.js → mermaid-3ZIDBTTL-CDOlxgin.js} +1 -1
- package/build/server/assets/{token-TJVjFtpm.js → token-BfBe4cAY.js} +1 -1
- package/build/server/assets/{token-util-BMcpB3Iq.js → token-util-CYhmjL6g.js} +1 -1
- package/build/server/assets/{websocket-server-CTiYInap.js → websocket-server-DB4GPS66.js} +1 -1
- package/build/server/assets/{wrapper-DG37QKjD.js → wrapper-CUYQE5_Q.js} +3 -3
- package/build/server/assets/{ws-transport-ClaOEQbG.js → ws-transport-xTHJJcp4.js} +2 -2
- package/build/server/assets/{zstd-browser-decoder-BgChmidM.js → zstd-browser-decoder-CIXVj9sh.js} +1 -1
- package/build/server/index.js +3 -3
- package/package.json +7 -7
- package/build/server/assets/index-CPJXhpRN.js +0 -176
|
@@ -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-DG0Grjgm.js";
|
|
2
2
|
import { r as reactExports, j as jsxRuntimeExports } from "./index-thGVuYbY.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,7 +1,7 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, z as Link, R as ReactExports, f as reactDomExports, B as useSearchParams, A as useNavigate, C as useLocation, w as withComponentProps } from "./index-thGVuYbY.js";
|
|
2
|
-
import { R as ResolveHookModal, S as Send, r as requireShim, u as unwrapOrThrow, W as WorkflowWebAPIError, f as fetchHookToken, a as Skeleton, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, g as getErrorTitle, d as AlertDescription, e as getErrorMessage, h as CopyableText, D as DropdownMenu, i as DropdownMenuTrigger, E as Ellipsis, j as DropdownMenuContent, k as DropdownMenuItem, l as resumeHook, m as createCollection, n as hideOthers, o as ReactRemoveScroll, p as useDirection, q as ChevronUp, 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 bulkCancelRuns, 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-
|
|
3
|
-
import { c as createLucideIcon, h as useToast, e as cn, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, C as Check, l as Copy, b as TooltipContent, D as DEFAULT_PAGE_SIZE, B as Button, m as ChevronRight, n as fetchEvents, o as useCallbackRef, p as useComposedRefs, P as Primitive, A as Anchor, q as composeEventHandlers, s as useLayoutEffect2, v as Portal$2, w as useId, x as createPopperScope, y as DismissableLayer, z as createContextScope, E as createSlot, F as Content$1, G as useControllableState, H as Root2$1, V as VISUALLY_HIDDEN_STYLES, I as Arrow, J as ChevronDown, L as useComposedRefs$1, u as useServerConfig, M as BULK_CANCEL_MAX_RUN_IDS, t as toast, N as fetchRun, O as cva, U as Presence$1, W as createContext2, X as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-
|
|
4
|
-
import { L as LoaderCircle } from "./loader-circle-
|
|
2
|
+
import { R as ResolveHookModal, S as Send, r as requireShim, u as unwrapOrThrow, W as WorkflowWebAPIError, f as fetchHookToken, a as Skeleton, b as RelativeTime, A as Alert, C as CircleAlert, c as AlertTitle, g as getErrorTitle, d as AlertDescription, e as getErrorMessage, h as CopyableText, D as DropdownMenu, i as DropdownMenuTrigger, E as Ellipsis, j as DropdownMenuContent, k as DropdownMenuItem, l as resumeHook, m as createCollection, n as hideOthers, o as ReactRemoveScroll, p as useDirection, q as ChevronUp, 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 bulkCancelRuns, 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-Cg3Lr_h8.js";
|
|
3
|
+
import { c as createLucideIcon, h as useToast, e as cn, i as fetchRuns, j as fetchHooks, k as getPaginationDisplay, T as Tooltip, a as TooltipTrigger, C as Check, l as Copy, b as TooltipContent, D as DEFAULT_PAGE_SIZE, B as Button, m as ChevronRight, n as fetchEvents, o as useCallbackRef, p as useComposedRefs, P as Primitive, A as Anchor, q as composeEventHandlers, s as useLayoutEffect2, v as Portal$2, w as useId, x as createPopperScope, y as DismissableLayer, z as createContextScope, E as createSlot, F as Content$1, G as useControllableState, H as Root2$1, V as VISUALLY_HIDDEN_STYLES, I as Arrow, J as ChevronDown, L as useComposedRefs$1, u as useServerConfig, M as BULK_CANCEL_MAX_RUN_IDS, t as toast, N as fetchRun, O as cva, U as Presence$1, W as createContext2, X as fetchWorkflowsManifest } from "./mermaid-3ZIDBTTL-DG0Grjgm.js";
|
|
4
|
+
import { L as LoaderCircle } from "./loader-circle-Cj8CH5bR.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.575.0 - ISC
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-DmlDFlyx.js","imports":["/assets/index-thGVuYbY.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-DmlDFlyx.js","imports":["/assets/index-thGVuYbY.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-3gE7cfR2.js","imports":["/assets/index-thGVuYbY.js","/assets/mermaid-3ZIDBTTL-DG0Grjgm.js","/assets/loader-circle-Cj8CH5bR.js","/assets/arrow-up-right-XpJjI06G.js"],"css":["/assets/root-grl25rxS.css","/assets/mermaid-3ZIDBTTL-D8CjRQta.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-CLktiGIz.js","imports":["/assets/index-thGVuYbY.js","/assets/workflow-graph-viewer-Cg3Lr_h8.js","/assets/mermaid-3ZIDBTTL-DG0Grjgm.js","/assets/loader-circle-Cj8CH5bR.js"],"css":["/assets/workflow-graph-viewer-DnlNuQQH.css","/assets/mermaid-3ZIDBTTL-D8CjRQta.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-gOfjBB1S.js","imports":["/assets/index-thGVuYbY.js","/assets/workflow-graph-viewer-Cg3Lr_h8.js","/assets/mermaid-3ZIDBTTL-DG0Grjgm.js","/assets/arrow-up-right-XpJjI06G.js"],"css":["/assets/run-detail-CWoGxu_0.css","/assets/workflow-graph-viewer-DnlNuQQH.css","/assets/mermaid-3ZIDBTTL-D8CjRQta.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-3ffb4984.js","version":"3ffb4984"};
|
|
@@ -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-CEJ92wdJ.js","assets/index-thGVuYbY.js","assets/highlighted-body-B3W2YXNL-DA3N01jE.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);
|
|
@@ -14883,7 +14883,30 @@ const HookCreatedEventSchema = compile(BaseEventSchema.extend({
|
|
|
14883
14883
|
tokenRetentionUntil: date().optional(),
|
|
14884
14884
|
metadata: SerializedDataSchema.optional(),
|
|
14885
14885
|
isWebhook: boolean$2().optional(),
|
|
14886
|
-
isSystem: boolean$2().optional()
|
|
14886
|
+
isSystem: boolean$2().optional(),
|
|
14887
|
+
/**
|
|
14888
|
+
* `createHook({ experimental_force: true })`: when the token belongs to
|
|
14889
|
+
* another live run, the World takes it over — journaling
|
|
14890
|
+
* `hook_disposed{forceClaimedBy}` in that run's log and re-pointing the
|
|
14891
|
+
* token — instead of answering `hook_conflict`. Requires the
|
|
14892
|
+
* `hookForceClaim` capability.
|
|
14893
|
+
*/
|
|
14894
|
+
force: boolean$2().optional(),
|
|
14895
|
+
/**
|
|
14896
|
+
* World-written on a forced creation that did take a token over: the
|
|
14897
|
+
* run and hook it was taken from, plus what a queue message to that run
|
|
14898
|
+
* needs (`workflowName`, `deploymentId`, `runSpecVersion`). Absent when
|
|
14899
|
+
* the token was free. The wake-targeting fields are in the LOG, not only
|
|
14900
|
+
* on the hook entity, so a replay can republish the victim's wake from
|
|
14901
|
+
* the row alone; see `publishForceClaimVictimWake` in @workflow/core.
|
|
14902
|
+
*/
|
|
14903
|
+
forceClaimedFrom: object({
|
|
14904
|
+
runId: string$2(),
|
|
14905
|
+
hookId: string$2(),
|
|
14906
|
+
workflowName: string$2().optional(),
|
|
14907
|
+
deploymentId: string$2().optional(),
|
|
14908
|
+
runSpecVersion: number$3().optional()
|
|
14909
|
+
}).optional()
|
|
14887
14910
|
})
|
|
14888
14911
|
}));
|
|
14889
14912
|
const HookReceivedEventSchema = compile(BaseEventSchema.extend({
|
|
@@ -14898,7 +14921,14 @@ const HookDisposedEventSchema = compile(BaseEventSchema.extend({
|
|
|
14898
14921
|
eventType: literal("hook_disposed"),
|
|
14899
14922
|
correlationId: string$2(),
|
|
14900
14923
|
eventData: object({
|
|
14901
|
-
token: string$2().optional()
|
|
14924
|
+
token: string$2().optional(),
|
|
14925
|
+
/**
|
|
14926
|
+
* World-written: this disposal was not the run's own. Another run
|
|
14927
|
+
* took the hook's token with `experimental_force`, and this names
|
|
14928
|
+
* it. The hook consumer rejects the hook's awaiters with
|
|
14929
|
+
* `HookForceClaimedError` when it reads this row.
|
|
14930
|
+
*/
|
|
14931
|
+
forceClaimedBy: object({ runId: string$2(), hookId: string$2() }).optional()
|
|
14902
14932
|
}).optional()
|
|
14903
14933
|
}));
|
|
14904
14934
|
const HookConflictEventSchema = compile(BaseEventSchema.extend({
|
|
@@ -14908,7 +14938,18 @@ const HookConflictEventSchema = compile(BaseEventSchema.extend({
|
|
|
14908
14938
|
token: string$2(),
|
|
14909
14939
|
// TODO: Make this required once all persisted hook_conflict events and
|
|
14910
14940
|
// remote World implementations always include the active hook owner's run ID.
|
|
14911
|
-
conflictingRunId: string$2().optional()
|
|
14941
|
+
conflictingRunId: string$2().optional(),
|
|
14942
|
+
/**
|
|
14943
|
+
* Set when the creation asked for `force` and the World declined to take
|
|
14944
|
+
* the token over. `victim-spec-version`: the run holding the token was
|
|
14945
|
+
* started at a spec version below
|
|
14946
|
+
* `SPEC_VERSION_SUPPORTS_HOOK_FORCE_CLAIM`, so its runtime would not
|
|
14947
|
+
* understand the involuntary disposal — the forced hook gets the
|
|
14948
|
+
* ordinary `HookConflictError` it opted out of instead of stranding
|
|
14949
|
+
* that run. Absent on a conflict answered by a World that does not
|
|
14950
|
+
* implement forcing at all.
|
|
14951
|
+
*/
|
|
14952
|
+
forceRefusedReason: literal("victim-spec-version").optional()
|
|
14912
14953
|
})
|
|
14913
14954
|
}));
|
|
14914
14955
|
const NoopEventSchema = compile(BaseEventSchema.extend({
|
|
@@ -15675,6 +15716,13 @@ const HookResumeCapabilitiesSchema = compile(object({
|
|
|
15675
15716
|
// is engaged.
|
|
15676
15717
|
hookResumeDedupVersion: number$3()
|
|
15677
15718
|
}));
|
|
15719
|
+
const HookClaimedFromSchema = compile(object({
|
|
15720
|
+
runId: string$2(),
|
|
15721
|
+
hookId: string$2(),
|
|
15722
|
+
workflowName: string$2().optional(),
|
|
15723
|
+
deploymentId: string$2().optional(),
|
|
15724
|
+
runSpecVersion: number$3().optional()
|
|
15725
|
+
}));
|
|
15678
15726
|
compile(object({
|
|
15679
15727
|
runId: string$2(),
|
|
15680
15728
|
hookId: string$2(),
|
|
@@ -15702,7 +15750,12 @@ compile(object({
|
|
|
15702
15750
|
// `resumeHook()` gates its lazy path on this being present and
|
|
15703
15751
|
// current. Absent against an older/rolled-back server or when the kill switch
|
|
15704
15752
|
// is active.
|
|
15705
|
-
resumeCapabilities: HookResumeCapabilitiesSchema.optional()
|
|
15753
|
+
resumeCapabilities: HookResumeCapabilitiesSchema.optional(),
|
|
15754
|
+
// Set when this hook took its token from another run
|
|
15755
|
+
// (`experimental_force`). The wake-targeting fields are the victim run's,
|
|
15756
|
+
// so the claimer's runtime can publish the victim's wake without reading
|
|
15757
|
+
// a run it may not be able to reach; see `HookClaimedFromSchema`.
|
|
15758
|
+
claimedFrom: HookClaimedFromSchema.optional()
|
|
15706
15759
|
}));
|
|
15707
15760
|
const zodJsonSchema = lazy(() => {
|
|
15708
15761
|
return union([
|
|
@@ -19469,6 +19522,7 @@ function buildFramedDetails(hint, slug) {
|
|
|
19469
19522
|
}
|
|
19470
19523
|
const ERROR_SLUGS = {
|
|
19471
19524
|
HOOK_CONFLICT: "hook-conflict",
|
|
19525
|
+
HOOK_FORCE_CLAIMED: "hook-force-claimed",
|
|
19472
19526
|
RUNTIME_DECRYPTION_FAILED: "runtime-decryption-failed"
|
|
19473
19527
|
};
|
|
19474
19528
|
class WorkflowError extends Error {
|
|
@@ -19560,6 +19614,25 @@ class HookConflictError extends WorkflowError {
|
|
|
19560
19614
|
return isError(value) && value.name === "HookConflictError";
|
|
19561
19615
|
}
|
|
19562
19616
|
}
|
|
19617
|
+
class HookForceClaimedError extends WorkflowError {
|
|
19618
|
+
constructor(token, claimedByRunId, claimedByHookId) {
|
|
19619
|
+
super(`Hook token "${token}" was force-claimed by another workflow (run "${claimedByRunId}")`, { slug: ERROR_SLUGS.HOOK_FORCE_CLAIMED });
|
|
19620
|
+
__publicField(this, "token");
|
|
19621
|
+
/** The run that took the token. */
|
|
19622
|
+
__publicField(this, "claimedByRunId");
|
|
19623
|
+
/** The hook (in `claimedByRunId`) the token now belongs to. */
|
|
19624
|
+
__publicField(this, "claimedByHookId");
|
|
19625
|
+
this.name = "HookForceClaimedError";
|
|
19626
|
+
this.token = token;
|
|
19627
|
+
this.claimedByRunId = claimedByRunId;
|
|
19628
|
+
if (claimedByHookId !== void 0) {
|
|
19629
|
+
this.claimedByHookId = claimedByHookId;
|
|
19630
|
+
}
|
|
19631
|
+
}
|
|
19632
|
+
static is(value) {
|
|
19633
|
+
return isError(value) && value.name === "HookForceClaimedError";
|
|
19634
|
+
}
|
|
19635
|
+
}
|
|
19563
19636
|
class StreamError extends WorkflowWorldError {
|
|
19564
19637
|
constructor(message, options) {
|
|
19565
19638
|
super(message, {
|
|
@@ -19610,6 +19683,7 @@ const VERCEL_403_ERROR_MESSAGE = "Your current vercel account does not have acce
|
|
|
19610
19683
|
const FATAL_ERROR_KEY = Symbol.for("@workflow/errors//FatalError");
|
|
19611
19684
|
const RETRYABLE_ERROR_KEY = Symbol.for("@workflow/errors//RetryableError");
|
|
19612
19685
|
const HOOK_CONFLICT_ERROR_KEY = Symbol.for("@workflow/errors//HookConflictError");
|
|
19686
|
+
const HOOK_FORCE_CLAIMED_ERROR_KEY = Symbol.for("@workflow/errors//HookForceClaimedError");
|
|
19613
19687
|
const RUNTIME_DECRYPTION_ERROR_KEY = Symbol.for("@workflow/errors//RuntimeDecryptionError");
|
|
19614
19688
|
const STREAM_ERROR_KEY = Symbol.for("@workflow/errors//StreamError");
|
|
19615
19689
|
if (typeof globalThis !== "undefined") {
|
|
@@ -19637,6 +19711,14 @@ if (typeof globalThis !== "undefined") {
|
|
|
19637
19711
|
configurable: false
|
|
19638
19712
|
});
|
|
19639
19713
|
}
|
|
19714
|
+
if (!Object.hasOwn(globalThis, HOOK_FORCE_CLAIMED_ERROR_KEY)) {
|
|
19715
|
+
Object.defineProperty(globalThis, HOOK_FORCE_CLAIMED_ERROR_KEY, {
|
|
19716
|
+
value: HookForceClaimedError,
|
|
19717
|
+
writable: false,
|
|
19718
|
+
enumerable: false,
|
|
19719
|
+
configurable: false
|
|
19720
|
+
});
|
|
19721
|
+
}
|
|
19640
19722
|
if (!Object.hasOwn(globalThis, RUNTIME_DECRYPTION_ERROR_KEY)) {
|
|
19641
19723
|
Object.defineProperty(globalThis, RUNTIME_DECRYPTION_ERROR_KEY, {
|
|
19642
19724
|
value: RuntimeDecryptionError,
|
|
@@ -20459,6 +20541,7 @@ function getWebRevivers() {
|
|
|
20459
20541
|
// `packages/core/src/serialization/reducers/common.ts`) emits a tagged
|
|
20460
20542
|
// entry for each built-in Error subclass plus the workflow-specific
|
|
20461
20543
|
// `FatalError` / `RetryableError` / `HookConflictError` /
|
|
20544
|
+
// `HookForceClaimedError` /
|
|
20462
20545
|
// `RuntimeDecryptionError` and `AggregateError`. Without
|
|
20463
20546
|
// matching revivers here, `devalue.unflatten` throws "Unknown type X",
|
|
20464
20547
|
// which surfaces in the web o11y UI as "Failed to load resource
|
|
@@ -20517,6 +20600,19 @@ function getWebRevivers() {
|
|
|
20517
20600
|
error2.stack = value.stack;
|
|
20518
20601
|
return error2;
|
|
20519
20602
|
},
|
|
20603
|
+
HookForceClaimedError: (value) => {
|
|
20604
|
+
const opts = "cause" in value ? { cause: value.cause } : void 0;
|
|
20605
|
+
const error2 = new Error(value.message, opts);
|
|
20606
|
+
error2.name = "HookForceClaimedError";
|
|
20607
|
+
error2.token = value.token;
|
|
20608
|
+
error2.claimedByRunId = value.claimedByRunId;
|
|
20609
|
+
if (value.claimedByHookId !== void 0) {
|
|
20610
|
+
error2.claimedByHookId = value.claimedByHookId;
|
|
20611
|
+
}
|
|
20612
|
+
if (value.stack !== void 0)
|
|
20613
|
+
error2.stack = value.stack;
|
|
20614
|
+
return error2;
|
|
20615
|
+
},
|
|
20520
20616
|
RetryableError: (value) => {
|
|
20521
20617
|
const opts = "cause" in value ? { cause: value.cause } : void 0;
|
|
20522
20618
|
const error2 = new Error(value.message, opts);
|
|
@@ -20705,7 +20801,7 @@ async function hydrateResourceIOAsync(resource, key) {
|
|
|
20705
20801
|
return { hydrateDataWithKey: hydrateDataWithKey3, deriveRunPayloadKeys: deriveRunPayloadKeys3 };
|
|
20706
20802
|
}, true ? void 0 : void 0);
|
|
20707
20803
|
const { ensureZstdDecoderRegistered } = await __vitePreload(async () => {
|
|
20708
|
-
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-
|
|
20804
|
+
const { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 } = await import("./zstd-browser-decoder-CEJ92wdJ.js");
|
|
20709
20805
|
return { ensureZstdDecoderRegistered: ensureZstdDecoderRegistered2 };
|
|
20710
20806
|
}, true ? __vite__mapDeps([0,1]) : void 0);
|
|
20711
20807
|
ensureZstdDecoderRegistered();
|
|
@@ -48371,7 +48467,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
|
|
|
48371
48467
|
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 });
|
|
48372
48468
|
var Se = reactExports.createContext({ code: "" }), de = () => reactExports.useContext(Se);
|
|
48373
48469
|
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 }) });
|
|
48374
|
-
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-
|
|
48470
|
+
var cn$1 = /\n+$/, dn = reactExports.lazy(() => __vitePreload(() => import("./highlighted-body-B3W2YXNL-DA3N01jE.js"), true ? __vite__mapDeps([2,1]) : void 0).then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
|
|
48375
48471
|
let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
|
|
48376
48472
|
`).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
|
|
48377
48473
|
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 }) })] }) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, w as withComponentProps, v as withErrorBoundaryProps, M as Meta, L as Links, S as ScrollRestoration, x as Scripts, O as Outlet, y as useRouteError, i as isRouteErrorResponse, z as Link, A as useNavigate, B as useSearchParams } from "./index-thGVuYbY.js";
|
|
2
|
-
import { c as createLucideIcon, u as useServerConfig, T as Tooltip, a as TooltipTrigger, b as TooltipContent, d as runHealthCheck, t as toast, B as Button, e as cn, f as Toaster$1, S as ServerConfigProvider, g as TooltipProvider } from "./mermaid-3ZIDBTTL-
|
|
3
|
-
import { L as LoaderCircle } from "./loader-circle-
|
|
4
|
-
import { A as ArrowUpRight } from "./arrow-up-right-
|
|
2
|
+
import { c as createLucideIcon, u as useServerConfig, T as Tooltip, a as TooltipTrigger, b as TooltipContent, d as runHealthCheck, t as toast, B as Button, e as cn, f as Toaster$1, S as ServerConfigProvider, g as TooltipProvider } from "./mermaid-3ZIDBTTL-DG0Grjgm.js";
|
|
3
|
+
import { L as LoaderCircle } from "./loader-circle-Cj8CH5bR.js";
|
|
4
|
+
import { A as ArrowUpRight } from "./arrow-up-right-XpJjI06G.js";
|
|
5
5
|
var M = (e, i, s, u, m, a, l, h) => {
|
|
6
6
|
let d = document.documentElement, w = ["light", "dark"];
|
|
7
7
|
function p(n) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, D as ReactDOM, A as useNavigate, B as useSearchParams, z as Link, w as withComponentProps, G as useParams } from "./index-thGVuYbY.js";
|
|
2
|
-
import { C as CircleAlert, O as parseStepName, B as parseWorkflowName, Q as ErrorCard, U as format, Z as Zap, S as Send, R as ResolveHookModal, q as ChevronUp, X, N as ErrorBoundary, V as Circle, u as unwrapOrThrow, W as WorkflowWebAPIError, I as unwrapServerActionResult, Y as useEscapeKeydown, t as composeEventHandlers, _ as useCallbackRef, $ as useLayoutEffect2, s as useControllableState, a0 as useId, a1 as createContext2, v as Presence, x as createContextScope, n as hideOthers, o as ReactRemoveScroll, a2 as useFocusGuards, a3 as LAYOUT, a4 as wakeUpRun, l as resumeHook, A as Alert, c as AlertTitle, g as getErrorTitle, d as AlertDescription, e as getErrorMessage, a as Skeleton$1, a5 as RunActionsButtons, F as StatusBadge, h as CopyableText, b as RelativeTime, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, a6 as cancelRun, a7 as recreateRun } from "./workflow-graph-viewer-
|
|
3
|
-
import { c as createLucideIcon, Y as classifyEntityEvent, Z as TERMINAL_EVENT_CLASSES, $ as isSealedNoopEvent$1, a0 as cn, a1 as CopyableDataBlock, a2 as CollapsibleRoot, a3 as CollapsibleTrigger, a4 as CollapsibleContent, a5 as CopyButton, O as cva, a6 as RESERVED_ATTRIBUTE_KEY_PREFIX, a7 as Spinner, a8 as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent, a9 as ContextCardProvider, h as useToast, aa as Skeleton, ab as DecryptClickContext, ac as Yr, ad as isEncryptedMarker, ae as getEventDataRefFields, m as ChevronRight, af as TimestampTooltip, ag as formatDuration, C as Check, l as Copy, ah as DataInspector, ai as _r, aj as isHookLifecycleEventType, ak as isTerminalStepEventType, al as isWaitEventType, am as isStepEventType, an as RunClickContext, ao as StreamClickContext, ap as Collapsible, aq as isExpiredMarker, ar as isDoStreamStep, as as extractConversation, at as EncryptedDataBlock, au as hasEncryptedFields, av as useSidebarDataOptional, aw as isTerminalWorkflowRunStatus, ax as clsx, ay as useActiveSpan, az as useSidebarData, aA as IconButton, J as ChevronDown, aB as useRowWindow, aC as isSpanDimmedBySearch, aD as ROW_HEIGHT_PX, aE as getSpanDurationMs, aF as isSpanErrored, aG as isSpanCancelled, aH as formatDurationPrecise, aI as ActiveSpanProvider, aJ as useReducedMotion, aK as searchSpans, aL as computeRootBounds, aM as computeTimeMarkers, aN as clampViewportToRoot, aO as getHighResInMs, aP as scrollRowIntoView, aQ as TIMELINE_PADDING_PX, aR as Minimap, aS as Timeline, aT as TimelineHeader, aU as wheelZoomScaleFactor, aV as wheelDeltaToPixels, aW as SidebarDataProvider, aX as fetchHook, n as fetchEvents, aY as hydrateResourceIOAsync, N as fetchRun, aZ as fetchStep, a_ as hydrateResourceIO, a$ as fetchStreams, b0 as apiBase, b1 as Slot, L as useComposedRefs, b2 as Slottable, e as cn$1, b3 as buttonVariants, b4 as fetchEvent, b5 as fetchEventsByCorrelationId, b6 as isEncryptedData, b7 as hydrateData, b8 as decrypt, b9 as deriveRunPayloadKeys, ba as getWebRevivers, bb as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, bc as getEncryptionKeyForRun, t as toast, bd as StreamViewerSkeleton, be as Lock, bf as StreamViewer } from "./mermaid-3ZIDBTTL-
|
|
4
|
-
import { A as ArrowUpRight } from "./arrow-up-right-
|
|
2
|
+
import { C as CircleAlert, O as parseStepName, B as parseWorkflowName, Q as ErrorCard, U as format, Z as Zap, S as Send, R as ResolveHookModal, q as ChevronUp, X, N as ErrorBoundary, V as Circle, u as unwrapOrThrow, W as WorkflowWebAPIError, I as unwrapServerActionResult, Y as useEscapeKeydown, t as composeEventHandlers, _ as useCallbackRef, $ as useLayoutEffect2, s as useControllableState, a0 as useId, a1 as createContext2, v as Presence, x as createContextScope, n as hideOthers, o as ReactRemoveScroll, a2 as useFocusGuards, a3 as LAYOUT, a4 as wakeUpRun, l as resumeHook, A as Alert, c as AlertTitle, g as getErrorTitle, d as AlertDescription, e as getErrorMessage, a as Skeleton$1, a5 as RunActionsButtons, F as StatusBadge, h as CopyableText, b as RelativeTime, T as Tabs, K as TabsList, L as TabsTrigger, M as TabsContent, a6 as cancelRun, a7 as recreateRun } from "./workflow-graph-viewer-Cg3Lr_h8.js";
|
|
3
|
+
import { c as createLucideIcon, Y as classifyEntityEvent, Z as TERMINAL_EVENT_CLASSES, $ as isSealedNoopEvent$1, a0 as cn, a1 as CopyableDataBlock, a2 as CollapsibleRoot, a3 as CollapsibleTrigger, a4 as CollapsibleContent, a5 as CopyButton, O as cva, a6 as RESERVED_ATTRIBUTE_KEY_PREFIX, a7 as Spinner, a8 as TooltipProvider, T as Tooltip, a as TooltipTrigger, b as TooltipContent, a9 as ContextCardProvider, h as useToast, aa as Skeleton, ab as DecryptClickContext, ac as Yr, ad as isEncryptedMarker, ae as getEventDataRefFields, m as ChevronRight, af as TimestampTooltip, ag as formatDuration, C as Check, l as Copy, ah as DataInspector, ai as _r, aj as isHookLifecycleEventType, ak as isTerminalStepEventType, al as isWaitEventType, am as isStepEventType, an as RunClickContext, ao as StreamClickContext, ap as Collapsible, aq as isExpiredMarker, ar as isDoStreamStep, as as extractConversation, at as EncryptedDataBlock, au as hasEncryptedFields, av as useSidebarDataOptional, aw as isTerminalWorkflowRunStatus, ax as clsx, ay as useActiveSpan, az as useSidebarData, aA as IconButton, J as ChevronDown, aB as useRowWindow, aC as isSpanDimmedBySearch, aD as ROW_HEIGHT_PX, aE as getSpanDurationMs, aF as isSpanErrored, aG as isSpanCancelled, aH as formatDurationPrecise, aI as ActiveSpanProvider, aJ as useReducedMotion, aK as searchSpans, aL as computeRootBounds, aM as computeTimeMarkers, aN as clampViewportToRoot, aO as getHighResInMs, aP as scrollRowIntoView, aQ as TIMELINE_PADDING_PX, aR as Minimap, aS as Timeline, aT as TimelineHeader, aU as wheelZoomScaleFactor, aV as wheelDeltaToPixels, aW as SidebarDataProvider, aX as fetchHook, n as fetchEvents, aY as hydrateResourceIOAsync, N as fetchRun, aZ as fetchStep, a_ as hydrateResourceIO, a$ as fetchStreams, b0 as apiBase, b1 as Slot, L as useComposedRefs, b2 as Slottable, e as cn$1, b3 as buttonVariants, b4 as fetchEvent, b5 as fetchEventsByCorrelationId, b6 as isEncryptedData, b7 as hydrateData, b8 as decrypt, b9 as deriveRunPayloadKeys, ba as getWebRevivers, bb as LIVE_UPDATE_INTERVAL_MS$1, u as useServerConfig, bc as getEncryptionKeyForRun, t as toast, bd as StreamViewerSkeleton, be as Lock, bf as StreamViewer } from "./mermaid-3ZIDBTTL-DG0Grjgm.js";
|
|
4
|
+
import { A as ArrowUpRight } from "./arrow-up-right-XpJjI06G.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.575.0 - ISC
|
|
7
7
|
*
|
|
@@ -2206,6 +2206,7 @@ const attributeOrder = [
|
|
|
2206
2206
|
"attempt",
|
|
2207
2207
|
"token",
|
|
2208
2208
|
"tokenRetentionUntil",
|
|
2209
|
+
"claimedFrom",
|
|
2209
2210
|
"isWebhook",
|
|
2210
2211
|
"isSystem",
|
|
2211
2212
|
"receivedCount",
|
|
@@ -2254,6 +2255,7 @@ const attributeDisplayNames = {
|
|
|
2254
2255
|
runId: "Run ID",
|
|
2255
2256
|
token: "Token",
|
|
2256
2257
|
tokenRetentionUntil: "Minimum Retention Until",
|
|
2258
|
+
claimedFrom: "Token Taken From Run",
|
|
2257
2259
|
eventType: "Event Type",
|
|
2258
2260
|
errorCode: "Error Code",
|
|
2259
2261
|
correlationId: "Correlation ID",
|
|
@@ -2333,6 +2335,11 @@ const attributeToDisplayFn = {
|
|
|
2333
2335
|
// Hook details
|
|
2334
2336
|
token: (value) => String(value),
|
|
2335
2337
|
tokenRetentionUntil: timestampWithTooltipOrNull,
|
|
2338
|
+
// A force-claimed hook (`experimental_force`): the run whose token it took.
|
|
2339
|
+
claimedFrom: (value) => {
|
|
2340
|
+
const from = value;
|
|
2341
|
+
return typeof (from == null ? void 0 : from.runId) === "string" ? from.runId : null;
|
|
2342
|
+
},
|
|
2336
2343
|
isWebhook: (value) => String(value),
|
|
2337
2344
|
isSystem: (value) => String(value),
|
|
2338
2345
|
receivedCount: (value) => String(value),
|
package/build/client/assets/{workflow-graph-viewer-B-jkpIk_.js → workflow-graph-viewer-Cg3Lr_h8.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { c as createLucideIcon, J as ChevronDown, a0 as cn, e as cn$1, O as cva, bg as composeRefs, L as useComposedRefs, bh as useFloating, bi as offset, bj as shift, bk as limitShift, bl as flip, bm as size, bn as arrow, bo as hide, bp as autoUpdate, m as ChevronRight, C as Check, bq as VERCEL_403_ERROR_MESSAGE, br as bulkCancelRuns$1, bs as reenqueueRun$1, bt as wakeUpRun$1, bu as resumeHook$1, bv as fetchHookToken$1, bw as cancelRun$1, bx as recreateRun$1, T as Tooltip, a as TooltipTrigger, l as Copy, b as TooltipContent, z as createContextScope$1, p as useComposedRefs$1, E as createSlot, ag as formatDuration, B as Button, t as toast, w as useId$1, P as Primitive$1, q as composeEventHandlers$1, G as useControllableState$1, o as useCallbackRef$2, U as Presence$1 } from "./mermaid-3ZIDBTTL-
|
|
4
|
+
import { c as createLucideIcon, J as ChevronDown, a0 as cn, e as cn$1, O as cva, bg as composeRefs, L as useComposedRefs, bh as useFloating, bi as offset, bj as shift, bk as limitShift, bl as flip, bm as size, bn as arrow, bo as hide, bp as autoUpdate, m as ChevronRight, C as Check, bq as VERCEL_403_ERROR_MESSAGE, br as bulkCancelRuns$1, bs as reenqueueRun$1, bt as wakeUpRun$1, bu as resumeHook$1, bv as fetchHookToken$1, bw as cancelRun$1, bx as recreateRun$1, T as Tooltip, a as TooltipTrigger, l as Copy, b as TooltipContent, z as createContextScope$1, p as useComposedRefs$1, E as createSlot, ag as formatDuration, B as Button, t as toast, w as useId$1, P as Primitive$1, q as composeEventHandlers$1, G as useControllableState$1, o as useCallbackRef$2, U as Presence$1 } from "./mermaid-3ZIDBTTL-DG0Grjgm.js";
|
|
5
5
|
import { r as reactExports, j as jsxRuntimeExports, f as reactDomExports, R as ReactExports, H as React, D as ReactDOM, a as requireReact, I as getDefaultExportFromCjs } from "./index-thGVuYbY.js";
|
|
6
6
|
function parseName(tag, name) {
|
|
7
7
|
if (typeof name !== "string") {
|