@workflow/web 4.1.0-beta.47 → 5.0.0-beta.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.
@@ -1,4 +1,4 @@
1
- import{r as l,j as e,w as z,v as B,M as F,L as q,S as G,x as J,O as Q,y as X,i as Y,z as _,A as ee,B as te}from"./index-BmZS3y7B.js";import{c as C,u as se,T as W,a as P,b as I,r as re,t as H,B as A,L as ne,d as R,e as oe,S as ae,f as ie}from"./mermaid-3ZIDBTTL-BFtRJrXs.js";var ce=(t,r,s,n,a,i,u,h)=>{let o=document.documentElement,c=["light","dark"];function d(f){(Array.isArray(t)?t:[t]).forEach(x=>{let k=x==="class",S=k&&i?a.map(b=>i[b]||b):a;k?(o.classList.remove(...S),o.classList.add(i&&i[f]?i[f]:f)):o.setAttribute(x,f)}),v(f)}function v(f){h&&c.includes(f)&&(o.style.colorScheme=f)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let f=localStorage.getItem(r)||s,x=u&&f==="system"?m():f;d(x)}catch{}},O=["light","dark"],K="(prefers-color-scheme: dark)",le=typeof window>"u",$=l.createContext(void 0),de={setTheme:t=>{},themes:[]},T=()=>{var t;return(t=l.useContext($))!=null?t:de},ue=t=>l.useContext($)?l.createElement(l.Fragment,null,t.children):l.createElement(me,{...t}),he=["light","dark"],me=({forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:i=he,defaultTheme:u=s?"system":"light",attribute:h="data-theme",value:o,children:c,nonce:d,scriptProps:v})=>{let[m,f]=l.useState(()=>pe(a,u)),[x,k]=l.useState(()=>m==="system"?E():m),S=o?Object.values(o):i,b=l.useCallback(p=>{let g=p;if(!g)return;p==="system"&&s&&(g=E());let j=o?o[g]:g,V=r?ge(d):null,w=document.documentElement,M=y=>{y==="class"?(w.classList.remove(...S),j&&w.classList.add(j)):y.startsWith("data-")&&(j?w.setAttribute(y,j):w.removeAttribute(y))};if(Array.isArray(h)?h.forEach(M):M(h),n){let y=O.includes(u)?u:null,U=O.includes(g)?g:y;w.style.colorScheme=U}V==null||V()},[d]),L=l.useCallback(p=>{let g=typeof p=="function"?p(m):p;f(g);try{localStorage.setItem(a,g)}catch{}},[m]),N=l.useCallback(p=>{let g=E(p);k(g),m==="system"&&s&&!t&&b("system")},[m,t]);l.useEffect(()=>{let p=window.matchMedia(K);return p.addListener(N),N(p),()=>p.removeListener(N)},[N]),l.useEffect(()=>{let p=g=>{g.key===a&&(g.newValue?f(g.newValue):L(u))};return window.addEventListener("storage",p),()=>window.removeEventListener("storage",p)},[L]),l.useEffect(()=>{b(t??m)},[t,m]);let D=l.useMemo(()=>({theme:m,setTheme:L,forcedTheme:t,resolvedTheme:m==="system"?x:m,themes:s?[...i,"system"]:i,systemTheme:s?x:void 0}),[m,L,t,x,s,i]);return l.createElement($.Provider,{value:D},l.createElement(fe,{forcedTheme:t,storageKey:a,attribute:h,enableSystem:s,enableColorScheme:n,defaultTheme:u,value:o,themes:i,nonce:d,scriptProps:v}),c)},fe=l.memo(({forcedTheme:t,storageKey:r,attribute:s,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:u,themes:h,nonce:o,scriptProps:c})=>{let d=JSON.stringify([s,r,i,t,h,u,n,a]).slice(1,-1);return l.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?o:"",dangerouslySetInnerHTML:{__html:`(${ce.toString()})(${d})`}})}),pe=(t,r)=>{if(le)return;let s;try{s=localStorage.getItem(t)||void 0}catch{}return s||r},ge=t=>{let r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},E=t=>(t||(t=window.matchMedia(K)),t.matches?"dark":"light");/**
1
+ import{r as l,j as e,w as z,v as B,M as F,L as q,S as G,x as J,O as Q,y as X,i as Y,z as _,A as ee,B as te}from"./index-BmZS3y7B.js";import{c as C,u as se,T as W,a as P,b as I,r as re,t as H,B as A,L as ne,d as R,e as oe,S as ae,f as ie}from"./mermaid-3ZIDBTTL-CsKo7Yup.js";var ce=(t,r,s,n,a,i,u,h)=>{let o=document.documentElement,c=["light","dark"];function d(f){(Array.isArray(t)?t:[t]).forEach(x=>{let k=x==="class",S=k&&i?a.map(b=>i[b]||b):a;k?(o.classList.remove(...S),o.classList.add(i&&i[f]?i[f]:f)):o.setAttribute(x,f)}),v(f)}function v(f){h&&c.includes(f)&&(o.style.colorScheme=f)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let f=localStorage.getItem(r)||s,x=u&&f==="system"?m():f;d(x)}catch{}},O=["light","dark"],K="(prefers-color-scheme: dark)",le=typeof window>"u",$=l.createContext(void 0),de={setTheme:t=>{},themes:[]},T=()=>{var t;return(t=l.useContext($))!=null?t:de},ue=t=>l.useContext($)?l.createElement(l.Fragment,null,t.children):l.createElement(me,{...t}),he=["light","dark"],me=({forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:s=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:i=he,defaultTheme:u=s?"system":"light",attribute:h="data-theme",value:o,children:c,nonce:d,scriptProps:v})=>{let[m,f]=l.useState(()=>pe(a,u)),[x,k]=l.useState(()=>m==="system"?E():m),S=o?Object.values(o):i,b=l.useCallback(p=>{let g=p;if(!g)return;p==="system"&&s&&(g=E());let j=o?o[g]:g,V=r?ge(d):null,w=document.documentElement,M=y=>{y==="class"?(w.classList.remove(...S),j&&w.classList.add(j)):y.startsWith("data-")&&(j?w.setAttribute(y,j):w.removeAttribute(y))};if(Array.isArray(h)?h.forEach(M):M(h),n){let y=O.includes(u)?u:null,U=O.includes(g)?g:y;w.style.colorScheme=U}V==null||V()},[d]),L=l.useCallback(p=>{let g=typeof p=="function"?p(m):p;f(g);try{localStorage.setItem(a,g)}catch{}},[m]),N=l.useCallback(p=>{let g=E(p);k(g),m==="system"&&s&&!t&&b("system")},[m,t]);l.useEffect(()=>{let p=window.matchMedia(K);return p.addListener(N),N(p),()=>p.removeListener(N)},[N]),l.useEffect(()=>{let p=g=>{g.key===a&&(g.newValue?f(g.newValue):L(u))};return window.addEventListener("storage",p),()=>window.removeEventListener("storage",p)},[L]),l.useEffect(()=>{b(t??m)},[t,m]);let D=l.useMemo(()=>({theme:m,setTheme:L,forcedTheme:t,resolvedTheme:m==="system"?x:m,themes:s?[...i,"system"]:i,systemTheme:s?x:void 0}),[m,L,t,x,s,i]);return l.createElement($.Provider,{value:D},l.createElement(fe,{forcedTheme:t,storageKey:a,attribute:h,enableSystem:s,enableColorScheme:n,defaultTheme:u,value:o,themes:i,nonce:d,scriptProps:v}),c)},fe=l.memo(({forcedTheme:t,storageKey:r,attribute:s,enableSystem:n,enableColorScheme:a,defaultTheme:i,value:u,themes:h,nonce:o,scriptProps:c})=>{let d=JSON.stringify([s,r,i,t,h,u,n,a]).slice(1,-1);return l.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?o:"",dangerouslySetInnerHTML:{__html:`(${ce.toString()})(${d})`}})}),pe=(t,r)=>{if(le)return;let s;try{s=localStorage.getItem(t)||void 0}catch{}return s||r},ge=t=>{let r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(r)},1)}},E=t=>(t||(t=window.matchMedia(K)),t.matches?"dark":"light");/**
2
2
  * @license lucide-react v0.575.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{j as t,r as a,f as Ut,C as Os,A as $s,B as Pr,z as Ws,w as Hs,G as Bs}from"./index-BmZS3y7B.js";import{O as rt,C as Fr,Q as st,B as ze,j as Kt,q as Or,U as $r,Z as Vs,S as Wr,R as Hr,p as zs,o as Us,X as Ks,N as Qe,V as qs,G as Gs,I as ue,u as ht,W as _e,Y as Zs,v as je,_ as yt,$ as Ys,t as Br,a0 as Xs,s as Js,a1 as It,w as qt,l as Qs,m as en,a2 as tn,a3 as rn,a4 as sn,r as nn,A as on,c as an,d as ln,a as Ae,a5 as cn,F as dn,e as un,b as ut,T as fn,K as mn,L as Tt,M as Rt,y as pn,a6 as hn}from"./workflow-graph-viewer-kC8rw29h.js";import{c as Nt,h as Ue,M as Q,Y as xn,N as ye,O as sr,U as vt,_ as gn,W as yn,X as Le,Z as vn,$ as wn,a0 as Vr,a1 as Pe,a2 as ve,a3 as G,a4 as bn,a5 as jn,a6 as At,a7 as ce,a8 as ft,a9 as wt,aa as We,ab as Se,ac as zr,ad as Xe,ae as Dt,af as kn,ag as Nn,ah as Cn,ai as En,aj as Sn,ak as In,al as Tn,am as He,an as me,ao as Ur,l as Be,F as Wt,ap as Rn,aq as An,ar as Gt,E as Ie,as as Dn,d as de,at as Kr,au as nr,av as or,aw as Mn,T as qr,a as Gr,b as Zr,ax as _n,u as Ln,ay as ar,az as Pn,t as De,L as Fn,aA as On}from"./mermaid-3ZIDBTTL-BFtRJrXs.js";import{decrypt as $n,importKey as Wn}from"./encryption-8OvC6eoJ.js";/**
1
+ import{j as t,r as a,f as Ut,C as Os,A as $s,B as Pr,z as Ws,w as Hs,G as Bs}from"./index-BmZS3y7B.js";import{O as rt,C as Fr,Q as st,B as ze,j as Kt,q as Or,U as $r,Z as Vs,S as Wr,R as Hr,p as zs,o as Us,X as Ks,N as Qe,V as qs,G as Gs,I as ue,u as ht,W as _e,Y as Zs,v as je,_ as yt,$ as Ys,t as Br,a0 as Xs,s as Js,a1 as It,w as qt,l as Qs,m as en,a2 as tn,a3 as rn,a4 as sn,r as nn,A as on,c as an,d as ln,a as Ae,a5 as cn,F as dn,e as un,b as ut,T as fn,K as mn,L as Tt,M as Rt,y as pn,a6 as hn}from"./workflow-graph-viewer-BmYB4k6X.js";import{c as Nt,h as Ue,M as Q,Y as xn,N as ye,O as sr,U as vt,_ as gn,W as yn,X as Le,Z as vn,$ as wn,a0 as Vr,a1 as Pe,a2 as ve,a3 as G,a4 as bn,a5 as jn,a6 as At,a7 as ce,a8 as ft,a9 as wt,aa as We,ab as Se,ac as zr,ad as Xe,ae as Dt,af as kn,ag as Nn,ah as Cn,ai as En,aj as Sn,ak as In,al as Tn,am as He,an as me,ao as Ur,l as Be,F as Wt,ap as Rn,aq as An,ar as Gt,E as Ie,as as Dn,d as de,at as Kr,au as nr,av as or,aw as Mn,T as qr,a as Gr,b as Zr,ax as _n,u as Ln,ay as ar,az as Pn,t as De,L as Fn,aA as On}from"./mermaid-3ZIDBTTL-CsKo7Yup.js";import{decrypt as $n,importKey as Wn}from"./encryption-8OvC6eoJ.js";/**
2
2
  * @license lucide-react v0.575.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- var Ld=Object.defineProperty;var Fd=(e,t,n)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var br=(e,t,n)=>Fd(e,typeof t!="symbol"?t+"":t,n);import{c as le,aB as os,d as ae,G as zd,aC as go,E as me,aD as Hd,aE as Bd,aF as Wd,aG as Vd,aH as Yd,aI as Gd,aJ as Xd,aK as Ud,aL as qd,T as Se,a as Ce,b as _e,aM as Kd,aN as Zd,aO as Qd,aP as Jd,aQ as ef,p as mo,n as Yr,v as ss,O as tf,B as Dn,t as Re,s as Li,P as Pt,q as ze,x as Fi,m as nf,H as rf}from"./mermaid-3ZIDBTTL-BFtRJrXs.js";import{r as x,j as h,f as zi,R as de,H as of,C as sf,a as Hi,I as af}from"./index-BmZS3y7B.js";function Bi(e,t){if(typeof t!="string")return null;const[n,r,...o]=t.split("//");if(n!==e||!r||o.length===0)return null;const s=o.join("//");let i=s.split("/").at(-1)??"",a="";if(r.startsWith("./"))a=r.split("/").at(-1)??"";else{const c=r.split("@").slice(0,-1).join("@")||r.split("@")[0];a=(c==null?void 0:c.split("/").at(-1))??""}return["default","__default"].includes(i)&&a&&(i=a),{shortName:i,moduleSpecifier:r,functionName:s}}function tS(e){return Bi("workflow",e)}function nS(e){return Bi("step",e)}/**
1
+ var Ld=Object.defineProperty;var Fd=(e,t,n)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var br=(e,t,n)=>Fd(e,typeof t!="symbol"?t+"":t,n);import{c as le,aB as os,d as ae,G as zd,aC as go,E as me,aD as Hd,aE as Bd,aF as Wd,aG as Vd,aH as Yd,aI as Gd,aJ as Xd,aK as Ud,aL as qd,T as Se,a as Ce,b as _e,aM as Kd,aN as Zd,aO as Qd,aP as Jd,aQ as ef,p as mo,n as Yr,v as ss,O as tf,B as Dn,t as Re,s as Li,P as Pt,q as ze,x as Fi,m as nf,H as rf}from"./mermaid-3ZIDBTTL-CsKo7Yup.js";import{r as x,j as h,f as zi,R as de,H as of,C as sf,a as Hi,I as af}from"./index-BmZS3y7B.js";function Bi(e,t){if(typeof t!="string")return null;const[n,r,...o]=t.split("//");if(n!==e||!r||o.length===0)return null;const s=o.join("//");let i=s.split("/").at(-1)??"",a="";if(r.startsWith("./"))a=r.split("/").at(-1)??"";else{const c=r.split("@").slice(0,-1).join("@")||r.split("@")[0];a=(c==null?void 0:c.split("/").at(-1))??""}return["default","__default"].includes(i)&&a&&(i=a),{shortName:i,moduleSpecifier:r,functionName:s}}function tS(e){return Bi("workflow",e)}function nS(e){return Bi("step",e)}/**
2
2
  * @license lucide-react v0.575.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -9176,7 +9176,7 @@ const app = express();
9176
9176
  app.all(
9177
9177
  "*",
9178
9178
  createRequestHandler({
9179
- build: () => import("./server-build-VXKZr6Mi.js").then((n) => n.z)
9179
+ build: () => import("./server-build-BxBXwQkv.js").then((n) => n.F)
9180
9180
  })
9181
9181
  );
9182
9182
  app.use(
@@ -1,5 +1,5 @@
1
- import { R, K as Ks, t as jsxRuntimeExports, w as Qe } from "./server-build-VXKZr6Mi.js";
2
- import { r as reactExports } from "./app-CnRXtjrV.js";
1
+ import { x as R, K as Ks, y as jsxRuntimeExports, z as Qe } from "./server-build-BxBXwQkv.js";
2
+ import { r as reactExports } from "./app-1J46XJy_.js";
3
3
  import "node:stream";
4
4
  import "util";
5
5
  import "crypto";
@@ -18,9 +18,6 @@ import "node:fs";
18
18
  import "node:child_process";
19
19
  import "node:util";
20
20
  import "node:timers/promises";
21
- import "fs";
22
- import "net";
23
- import "path";
24
21
  import "events";
25
22
  import "node:assert";
26
23
  import "node:net";
@@ -39,6 +36,9 @@ import "node:async_hooks";
39
36
  import "node:console";
40
37
  import "node:timers";
41
38
  import "node:dns";
39
+ import "path";
40
+ import "fs";
41
+ import "net";
42
42
  import "node:os";
43
43
  import "express";
44
44
  var L = ({ code: s, language: t, raw: e, className: n, ...d$1 }) => {
@@ -1,5 +1,5 @@
1
- import { B, D, E, a, b, c, H, L, M, P, Q, d, l, m, h, S, n, o, i, V, p, q, W, e, f, g, j, r, k, s, u, v } from "./server-build-VXKZr6Mi.js";
2
- import "./app-CnRXtjrV.js";
1
+ import { B, D, q, E, a, b, c, H, L, M, P, Q, d, R, l, m, n, h, S, o, p, i, V, t, w, W, e, f, g, j, r, k, s, u, v } from "./server-build-BxBXwQkv.js";
2
+ import "./app-1J46XJy_.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -19,9 +19,6 @@ import "node:fs";
19
19
  import "node:child_process";
20
20
  import "node:util";
21
21
  import "node:timers/promises";
22
- import "fs";
23
- import "net";
24
- import "path";
25
22
  import "events";
26
23
  import "node:assert";
27
24
  import "node:net";
@@ -40,10 +37,14 @@ import "node:async_hooks";
40
37
  import "node:console";
41
38
  import "node:timers";
42
39
  import "node:dns";
40
+ import "path";
41
+ import "fs";
42
+ import "net";
43
43
  import "node:os";
44
44
  export {
45
45
  B as BaseEventSchema,
46
- D as DEFAULT_TIMESTAMP_THRESHOLD_MS,
46
+ D as DEFAULT_TIMESTAMP_THRESHOLD_FUTURE_MS,
47
+ q as DEFAULT_TIMESTAMP_THRESHOLD_PAST_MS,
47
48
  E as EVENT_DATA_REF_FIELDS,
48
49
  a as EventSchema,
49
50
  b as EventTypeSchema,
@@ -54,16 +55,18 @@ export {
54
55
  P as PaginatedResponseSchema,
55
56
  Q as QueuePayloadSchema,
56
57
  d as QueuePrefix,
58
+ R as RunInputSchema,
57
59
  l as SPEC_VERSION_CURRENT,
58
60
  m as SPEC_VERSION_LEGACY,
61
+ n as SPEC_VERSION_SUPPORTS_CBOR_QUEUE_TRANSPORT,
59
62
  h as SerializedDataSchema,
60
63
  S as StepInvokePayloadSchema,
61
- n as StepSchema,
62
- o as StepStatusSchema,
64
+ o as StepSchema,
65
+ p as StepStatusSchema,
63
66
  i as StructuredErrorSchema,
64
67
  V as ValidQueueName,
65
- p as WaitSchema,
66
- q as WaitStatusSchema,
68
+ t as WaitSchema,
69
+ w as WaitStatusSchema,
67
70
  W as WorkflowInvokePayloadSchema,
68
71
  e as WorkflowRunBaseSchema,
69
72
  f as WorkflowRunSchema,
@@ -1,5 +1,5 @@
1
- import { N } from "./server-build-VXKZr6Mi.js";
2
- import "./app-CnRXtjrV.js";
1
+ import { N } from "./server-build-BxBXwQkv.js";
2
+ import "./app-1J46XJy_.js";
3
3
  import "stream";
4
4
  import "express";
5
5
  import "node:stream";
@@ -19,9 +19,6 @@ import "node:fs";
19
19
  import "node:child_process";
20
20
  import "node:util";
21
21
  import "node:timers/promises";
22
- import "fs";
23
- import "net";
24
- import "path";
25
22
  import "events";
26
23
  import "node:assert";
27
24
  import "node:net";
@@ -40,6 +37,9 @@ import "node:async_hooks";
40
37
  import "node:console";
41
38
  import "node:timers";
42
39
  import "node:dns";
40
+ import "path";
41
+ import "fs";
42
+ import "net";
43
43
  import "node:os";
44
44
  export {
45
45
  N as Mermaid