@makaio/framework 1.0.0-dev-1783477169057 → 1.0.0-dev-1783687982716
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/dist/.makaio-build.json +2 -2
- package/dist/adapter-CA8rPIUz.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +142 -168
- package/dist/adapters/index.mjs +6 -6
- package/dist/bus/index.d.mts +22 -22
- package/dist/bus/index.mjs +1 -1
- package/dist/client-DaR4mzqn.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +255 -203
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DePb3ke-.d.mts → definition-s9PIua2B.d.mts} +1 -1
- package/dist/drizzle/0024_external_settlement_fingerprint.sql +1 -0
- package/dist/drizzle/0025_external_registration_frame.sql +1 -0
- package/dist/drizzle/meta/_journal.json +14 -0
- package/dist/{index-Dv4oGVZK.d.mts → index-B4ZddkPI.d.mts} +413 -336
- package/dist/{index-BX1MxwFr.d.mts → index-B9d_8_V2.d.mts} +21 -21
- package/dist/{index-BeouVICp.d.mts → index-BUrNl0QJ.d.mts} +4 -4
- package/dist/{index-2fK9iSHI.d.mts → index-BWIkf5oJ.d.mts} +6 -6
- package/dist/{index-Bl42SCEI.d.mts → index-Bc82MC0z.d.mts} +4 -4
- package/dist/{index-CQQcnpev.d.mts → index-CAhKyxfm.d.mts} +437 -57
- package/dist/{index-B3fjN5HX.d.mts → index-CmHdpW0E.d.mts} +7 -7
- package/dist/{index-CA-AJbq6.d.mts → index-D4gn93gL.d.mts} +16 -16
- package/dist/{index-B-6DtLLz.d.mts → index-D7rWAEY0.d.mts} +1 -1
- package/dist/{index-j_X5xefv2.d.mts → index-D94cDExW2.d.mts} +11 -11
- package/dist/{index-DScUb-hF.d.mts → index-DLDQDXhD.d.mts} +2 -2
- package/dist/{index-uM4KZopE.d.mts → index-DNfNwGu6.d.mts} +8 -8
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-CwFSL4xI.d.mts → index-DTkGyKKA.d.mts} +180 -21
- package/dist/{index-BjO4Zkap.d.mts → index-DsLpP5ek.d.mts} +1 -1
- package/dist/{index-DMz-2ACU.d.mts → index-WHUV7neB.d.mts} +105 -105
- package/dist/{index-BcwOnvUh.d.mts → index-mU2lnU7O.d.mts} +6 -6
- package/dist/{index-C_xQM96Y.d.mts → index-oePgeOph.d.mts} +473 -389
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/loop-gate-handlers-o2B5FPdF.mjs +1 -0
- package/dist/{namespace-TPbegIMi.d.mts → namespace-B9V9R3AY.d.mts} +25 -25
- package/dist/{namespace-Boh42UoL.d.mts → namespace-BGIeqwfU.d.mts} +24 -0
- package/dist/{namespace-COEUMuHL.d.mts → namespace-BLER-Qom.d.mts} +154 -154
- package/dist/{namespace-OLAh9wHU.d.mts → namespace-Dm454cNM.d.mts} +9 -9
- package/dist/{namespace-D94HrTtq.d.mts → namespace-d_0I6P7N.d.mts} +6 -6
- package/dist/node/transports/index.d.mts +25 -3
- package/dist/node/transports/index.mjs +1 -1
- package/dist/package-Co_GO3UD.mjs +7 -0
- package/dist/{package-B6mEMD8r.d.mts → package-DmVZxufT.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CDBn9MTz.d.mts → schemas-B_t6oOK-.d.mts} +154 -154
- package/dist/{schemas-D512XweP.d.mts → schemas-CJ2JvA7d.d.mts} +3 -3
- package/dist/{schemas-DOV4UouN2.d.mts → schemas-CNUk34qC2.d.mts} +2 -2
- package/dist/schemas-CVo8qAK-.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +94 -94
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/session-CX6QDhi2.mjs +76 -0
- package/dist/session-DBfQkgdy.mjs +1 -0
- package/dist/{tool-approval-service-BNXgr-az.mjs → tool-approval-service-DEiMKTv9.mjs} +1 -1
- package/dist/{tools-BaO4GYj0.mjs → tools-CGFZkB7F.mjs} +1 -1
- package/dist/{transition-Bbjlwv5K.d.mts → transition-OzGXyy3p.d.mts} +1 -1
- package/dist/{types-D7W0ntGr.d.mts → types-1a2D10yb.d.mts} +28 -3
- package/dist/{types-BNW5n6qm.d.mts → types-BMS6yfLS.d.mts} +1 -1
- package/dist/{types-jruUn6oW.d.mts → types-BSilhlYE.d.mts} +260 -246
- package/dist/{types-CNkx2awa.d.mts → types-BWduCvRU.d.mts} +1 -1
- package/dist/workflow-C3dgVwTY.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +295 -27
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/adapter-Lx6K7yQS.mjs +0 -1
- package/dist/client-l1Rq5p6X.mjs +0 -1
- package/dist/loop-gate-handlers-Bjmat-K3.mjs +0 -1
- package/dist/package-BQn_RTo7.mjs +0 -1
- package/dist/schemas-CkOigLAT.mjs +0 -1
- package/dist/session-CoGaTin6.mjs +0 -69
- package/dist/session-Dp7z5N1d.mjs +0 -1
- package/dist/workflow-C1z7I5CI.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as LogImportMode, t as LogImporterInfo } from "./index-
|
|
1
|
+
import { r as LogImportMode, t as LogImporterInfo } from "./index-D7rWAEY0.mjs";
|
|
2
2
|
import * as _$_makaio_bus_core0 from "@makaio/framework/bus";
|
|
3
3
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
4
4
|
import { LogImportOrchestrator, LogImporter } from "@makaio/framework/adapters";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,g as t,w as n}from"./artifact-CGjnoyCC.mjs";import{i as r,r as i,t as a}from"./json-value-DmU8ibo_.mjs";import{a as o}from"./visibility-Cb62p9bv.mjs";import"./credential-ref-YWQQENEo.mjs";import{t as s}from"./provider-context-CqMgPOWF.mjs";import{a as c,o as l}from"./schemas-CuG17U3L.mjs";import{z as u}from"zod";import{createBusNamespace as d,getFullSubjectForSubjectDefinition as f,observability as p}from"@makaio/framework/core";const m=u.enum([`wait-in-process`,`exit-and-redispatch`,`exit-and-resume`]),ee=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`path`),path:u.string().min(1)}).strict(),u.object({kind:u.literal(`source`),filename:u.string().min(1),source:u.string()}).strict()]),h=u.object({source:ee.optional(),requirements:u.object({isolation:u.enum([`local`,`container`,`remote`]).optional(),capabilities:u.array(u.string()).optional()}).catchall(r).optional(),providers:u.record(u.string(),r).optional()}).catchall(r),g=u.object({kind:u.string().min(1),id:u.string().min(1)});function te(e){return`${re(e.kind)}:${re(e.id)}`}function ne(e){let t=ie(e);if(t<1)throw Error(`Invalid artifact ref key: ${e}`);let n=ae(e.slice(t+1));if(n.length===0)throw Error(`Invalid artifact ref key (empty id): ${e}`);return{kind:ae(e.slice(0,t)),id:n}}function re(e){return e.replace(/\\/g,`\\\\`).replace(/:/g,`\\:`)}function ie(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if(t){t=!1;continue}if(r===`\\`){t=!0;continue}if(r===`:`)return n}return-1}function ae(e){let t=``,n=!1;for(let r of e){if(n){if(r!==`\\`&&r!==`:`)throw Error(`Invalid artifact ref key component: ${e}`);t+=r,n=!1;continue}if(r===`\\`){n=!0;continue}t+=r}if(n)throw Error(`Invalid artifact ref key component: ${e}`);return t}const _=u.union([u.string(),u.number(),u.boolean(),u.null()]),oe=u.union([_,u.object({$in:u.array(_)}).strict(),u.object({$ne:_}).strict(),u.object({$exists:u.boolean()}).strict(),u.object({$startsWith:u.string()}).strict(),u.object({$endsWith:u.string()}).strict()]),se=u.record(u.string(),oe),ce=u.object({type:u.literal(`bus-event`),subject:u.string(),filter:se.optional(),filterExpression:u.string().optional()}),v=u.object({type:u.literal(`extension`),extensionType:u.string().regex(/^[a-z0-9-]+:[a-z0-9._-]+$/),config:a.optional()}),y=u.discriminatedUnion(`type`,[u.object({type:u.literal(`manual`)}),u.object({type:u.literal(`cron`),schedule:u.string(),timezone:u.string().optional()}),u.object({type:u.literal(`webhook`),event:u.string(),branch:u.string().optional(),repo:u.string().optional()}),v,ce]),b=u.discriminatedUnion(`type`,[u.object({type:u.literal(`global`)}).strict(),u.object({type:u.literal(`workspace`),id:u.string().min(1)}).strict(),u.object({type:u.literal(`session`),id:u.string().min(1)}).strict(),u.object({type:u.literal(`external`),kind:u.string().min(1),id:u.string().min(1)}).strict()]),x=u.string().min(1),S=u.object({kind:u.string().min(1),schemaVersion:u.string().min(1),scope:n,resolve:u.string().min(1).optional(),create:u.string().min(1).optional(),statusPath:u.string().min(1).optional()}),le=u.object({kind:u.string().min(1),schemaVersion:u.string().min(1),scope:n,dataExpression:u.string().optional()}),ue=u.object({file:u.string().min(1),line:u.number().int().positive().optional(),column:u.number().int().positive().optional()}),C=u.enum([`station`,`delegate-agent`,`delegate-role`,`parallel`,`gate`,`iterate`,`iterate-chain`,`loop`,`sequence`]),de=u.enum([`all-settled`,`fail-fast`]),w=u.object({id:u.string().min(1),when:x.optional(),skip:x.optional(),writes:u.array(le).optional()}),T=u.lazy(()=>u.discriminatedUnion(`type`,[D,fe,pe,me,he,ge,_e,ye,E])),E=w.extend({type:u.literal(`sequence`),nodes:u.lazy(()=>u.array(T))}),D=w.extend({type:u.literal(`station`),prompt:u.string().min(1),role:u.string().min(1).optional(),outputSchema:i.optional(),timeoutMs:u.number().int().positive().optional(),completion:c.optional()}),fe=w.extend({type:u.literal(`delegate-agent`),agentId:u.string().min(1),inputExpression:u.string().optional(),outputSchema:i.optional()}),pe=w.extend({type:u.literal(`delegate-role`),role:u.string().min(1),prompt:u.string().min(1),outputSchema:i.optional(),timeoutMs:u.number().int().positive().optional(),completion:c.optional()}),me=w.extend({type:u.literal(`parallel`),mode:de.optional(),branches:u.record(u.string().min(1),u.lazy(()=>E))}),he=w.extend({type:u.literal(`gate`),prompt:u.string().min(1),title:u.string().optional(),autoAction:u.enum([`approve`,`reject`]),timeoutMs:u.number().int().positive().nullable(),resumeSchema:i.optional()}),ge=w.extend({type:u.literal(`iterate`),collection:u.string().min(1),body:u.lazy(()=>E),concurrency:u.number().int().nonnegative().optional()}),_e=w.extend({type:u.literal(`iterate-chain`),collection:u.string().min(1),body:u.lazy(()=>E)}),ve=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`pass`)}).strict(),u.object({kind:u.literal(`loop`)}).strict(),u.object({kind:u.literal(`escalate`),reason:u.string().min(1)}).strict()]),ye=w.extend({type:u.literal(`loop`),maxRounds:u.number().int().positive(),body:u.lazy(()=>E),gate:u.object({handler:u.string().min(1),input:u.string().min(1).optional(),config:r.optional(),escalation:u.object({title:u.string().optional(),prompt:u.string().min(1),resumeSchema:i.optional(),autoAction:u.enum([`approve`,`reject`]).default(`reject`),timeoutMs:u.number().int().positive().nullable().default(null)}).strict().optional()}).strict()}),be=u.object({factoryId:u.string().min(1),preview:u.array(u.lazy(()=>T)).optional(),sourceLocation:ue.optional()}),xe=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`editor`)}).strict(),u.object({kind:u.literal(`extension`),extension:u.string().min(1),externalId:u.string().min(1).optional(),syncedAt:u.string().datetime().optional(),metadata:a.default({})}).strict()]),Se=u.object({schema:i,initial:r.optional()}),O=u.object({id:u.string().min(1),name:u.string().optional(),description:u.string().optional(),inputSchema:i.optional(),configSchema:i.optional(),outputSchema:i.optional(),state:Se.optional(),artifact:S.optional(),root:E,triggers:u.array(y).optional(),scope:b.default({type:`global`}),canvasLayout:u.record(u.string(),r).optional(),source:xe.optional(),executionHints:h.optional()}),k=u.enum([`pending`,`running`,`paused`,`completed`,`failed`,`cancelled`]),A=u.object({id:u.string(),workflowId:u.string(),coordinatorSessionId:u.string().optional(),status:k,inputs:r,config:a.optional(),startedAt:u.number(),completedAt:u.number().optional(),error:u.string().optional(),reason:u.string().optional(),triggerPayload:a.optional(),scope:b,artifactRef:g.optional()}),j=u.object({frameId:u.string(),nodeId:u.string(),nodeType:C,path:u.array(u.string()),parentFrameId:u.string().optional(),status:u.enum([`pending`,`running`,`waiting`,`completed`,`failed`,`skipped`,`cancelled`]),attempt:u.number().int().nonnegative().default(0),iteration:u.number().int().nonnegative().optional(),branchKey:u.string().optional(),output:r.optional(),error:u.string().optional(),startedAt:u.number().optional(),completedAt:u.number().optional()}),M=u.enum([`waiting`,`resumed`,`rejected`,`timed-out`,`cancelled`]),N=u.object({executionId:u.string(),nodeId:u.string(),frameId:u.string(),schema:i,prompt:u.string().optional(),status:M,autoAction:u.enum([`approve`,`reject`]),timeoutMs:u.number().int().positive().nullable(),resumeData:r.optional(),reason:u.string().optional(),createdAt:u.number(),resolvedAt:u.number().optional()}),P=u.object({adapterName:u.string().min(1),model:u.string().optional(),reasoningEffort:o.optional(),harnessId:u.string().optional(),systemPrompt:u.string().optional(),contextMode:l.optional(),providerContext:s.optional(),completion:c.optional()}),Ce=P,we=u.object({scope:b.optional()}),Te=u.object({startedAt:u.number(),id:u.string()}),Ee=1,De=500,Oe=50,ke=u.object({workflowId:u.string().min(1).optional(),scope:b.optional(),status:k.optional(),artifactRef:g.optional(),limit:u.number().int().min(1).max(500).default(50),cursor:Te.optional()}).refine(e=>e.workflowId!==void 0||e.scope!==void 0||e.artifactRef!==void 0,{message:`Either workflowId, scope, or artifactRef is required.`}),Ae=200,je=100,Me=10,Ne=u.object({refs:u.array(g).min(1).max(200),limitPerRef:u.number().int().min(1).max(100).default(10)}),Pe=u.object({executionId:u.string().min(1).optional(),status:M.optional(),limit:u.number().int().min(1).max(500).default(50)}).refine(e=>e.executionId!==void 0||e.status!==void 0,{message:`Either executionId or status is required.`}),F=u.enum([`station`,`delegate-agent`,`delegate-role`,`gate`]),Fe=u.enum([`station`]),Ie=u.object({input:u.number().int().nonnegative(),output:u.number().int().nonnegative(),cached:u.number().int().nonnegative().optional()}),Le=u.object({duration:u.number().nonnegative(),tokenUsage:Ie.optional(),estimatedCost:u.number().nonnegative().optional(),toolCalls:u.number().int().nonnegative().optional()}),Re=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`none`)}).strict(),u.object({kind:u.literal(`hmac`),secret:u.string().min(1)}).strict()]),ze=u.object({cwd:u.string().min(1),env:u.record(u.string(),u.string()).optional()}),Be=u.object({executionId:u.string().min(1),stepId:u.string().min(1),reason:u.string().optional()});function Ve(e){let t=e.indexOf(`.`);if(t<=0||t===e.length-1)throw Error(`Invalid step cancel subject: ${e}`);return{subject:e.slice(t+1),$meta:{namespace:e.slice(0,t),isRequest:!1,payload:{},local:!1,channel:!1}}}const He=u.object({executionId:u.string().min(1),reason:u.string().optional()});function Ue(e){let t=e.indexOf(`.`);if(t<=0||t===e.length-1)throw Error(`Invalid workflow cancel subject: ${e}`);return{subject:e.slice(t+1),$meta:{namespace:e.slice(0,t),isRequest:!1,payload:{},local:!1,channel:!1}}}const We=u.object({stepId:u.string().min(1),executionId:u.string().min(1),workflowId:u.string().min(1),coordinatorSessionId:u.string().min(1),stepType:Fe,stepDefinition:D,resolvedInputs:a,busUrl:u.string().optional(),busAuth:Re.default({kind:`none`}),platformDefaults:ze,cancelSubject:u.string().min(1)}).superRefine((e,t)=>{e.stepType!==e.stepDefinition.type&&t.addIssue({code:`custom`,path:[`stepDefinition`,`type`],message:`stepDefinition.type must match stepType (${e.stepType})`})}),Ge=`Workflow cancelled`,Ke=u.object({status:u.enum([`completed`,`failed`]),output:r.optional(),error:u.string().optional(),telemetry:Le}),qe=u.enum([`running`,`completed`,`failed`,`skipped`]),I=u.object({executionId:u.string().min(1),frameId:u.string().min(1),stepId:u.string().min(1),stepType:F,status:qe,startedAt:u.number().optional(),completedAt:u.number().optional(),durationMs:u.number().nonnegative().optional(),inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),estimatedCost:u.number().nonnegative().optional(),toolCallCount:u.number().int().nonnegative().optional(),input:u.string().optional(),output:u.string().optional()}),Je=u.enum([`triggered-by`,`feedback-loop`,`rerun-of`]),L=u.object({sourceExecutionId:u.string().min(1),targetExecutionId:u.string().min(1),linkType:Je,metadata:u.record(u.string(),u.unknown()).optional()}),Ye=u.object({sourceExecutionId:u.string().min(1).optional(),targetExecutionId:u.string().min(1).optional()}).refine(e=>e.sourceExecutionId!==void 0||e.targetExecutionId!==void 0,{message:`Either sourceExecutionId or targetExecutionId is required.`}),Xe={RUN_CONTEXT_NOT_FOUND:`WORKFLOW_RUN_CONTEXT_NOT_FOUND`,SNAPSHOT_UNAVAILABLE:`WORKFLOW_SNAPSHOT_UNAVAILABLE`,SOURCE_MISMATCH:`WORKFLOW_SOURCE_MISMATCH`,NOT_EXECUTABLE:`WORKFLOW_NOT_EXECUTABLE`,HANDLER_UNAVAILABLE:`WORKFLOW_HANDLER_UNAVAILABLE`};var Ze=class extends Error{code;constructor(e,t){super(t),this.code=e,this.name=`WorkflowError`}};const R=u.string().refine(e=>e===``||e.startsWith(`/`),{message:`JSON Patch paths must be empty or start with "/".`}),Qe=u.object({op:u.enum([`add`,`replace`,`test`]),path:R,value:r}).strict(),$e=u.object({op:u.literal(`remove`),path:R}).strict(),et=u.object({op:u.enum([`move`,`copy`]),path:R,from:R}).strict(),z=u.discriminatedUnion(`op`,[Qe,$e,et]),tt=u.object({type:u.literal(`artifact-query`),query:t,select:u.enum([`latest`,`all`]),optional:u.boolean().optional()}),nt=u.object({type:u.literal(`bus-request`),subject:u.string().min(1),payload:u.record(u.string(),u.unknown()).optional(),optional:u.boolean().optional()}),rt=u.discriminatedUnion(`type`,[tt,nt]),it=u.object({type:u.literal(`artifact`),kind:u.string().min(1),schemaVersion:u.string().min(1),scope:n,metadata:u.record(u.string(),u.unknown()).optional()}),at=u.object({type:u.literal(`bus-event`),subject:u.string().min(1),payload:u.record(u.string(),u.unknown()).optional()}),ot=u.discriminatedUnion(`type`,[it,at]),st=u.object({content:u.string(),metadata:u.record(u.string(),u.unknown()).optional()}),ct=u.object({sources:u.record(u.string(),st)}),lt=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`none`)}).strict(),u.object({kind:u.literal(`hmac`),secret:u.string().min(1)}).strict()]),B=u.discriminatedUnion(`kind`,[u.object({kind:u.literal(`path`),path:u.string().min(1)}).strict(),u.object({kind:u.literal(`source`),filename:u.string().min(1),source:u.string()}).strict(),u.object({kind:u.literal(`definition`),workflowId:u.string().min(1)}).strict()]),ut=u.object({source:B,definition:O.optional(),executionId:u.string().min(1),workflowId:u.string().min(1),triggerPayload:a.default({}),inputs:r.default({}),config:a.optional(),artifactRef:g.optional(),scope:b.default({type:`global`}),busUrl:u.string().optional(),busAuth:lt.default({kind:`none`}),context:u.object({repoPath:u.string().min(1),makaioHome:u.string().min(1),os:u.enum([`darwin`,`linux`,`win32`]),arch:u.string().min(1),worktree:u.string().optional()}),env:u.record(u.string(),u.string()).default({}),coordinatorSessionId:u.string().min(1),executionHints:h.optional(),cancelSubject:u.string().min(1),suspensionStrategy:m.default(`wait-in-process`)}),V=u.object({executionId:u.string().min(1),workflowId:u.string().min(1)}),dt=u.discriminatedUnion(`status`,[V.extend({status:u.literal(`completed`),artifact:e.optional()}).strict(),V.extend({status:u.literal(`failed`),error:u.string().min(1)}).strict(),V.extend({status:u.literal(`cancelled`),reason:u.string().min(1).optional()}).strict(),V.extend({status:u.literal(`paused`),pausedAtGateId:u.string().min(1),pausedAtFrameId:u.string().min(1)}).strict()]),ft=u.object({name:u.string().min(1),importPath:u.string().min(1)}),pt=u.object({packages:u.array(ft).default([])}),mt=u.object({executionId:u.string().min(1),workflowId:u.string().min(1),source:B,definitionSnapshot:O.optional(),workerManifest:pt.default({packages:[]}),inputs:r.default({}),config:a.optional(),scope:b.default({type:`global`}),triggerPayload:a.default({}),artifactRef:g.optional(),coordinatorSessionId:u.string().min(1),executionHints:h.optional(),dispatchMetadata:a.optional(),cancelSubject:u.string().min(1),context:u.object({repoPath:u.string().min(1),makaioHome:u.string().min(1),os:u.enum([`darwin`,`linux`,`win32`]),arch:u.string().min(1),worktree:u.string().optional()}),env:u.record(u.string(),u.string()).default({}),createdAt:u.number(),suspensionStrategy:m.default(`wait-in-process`)}).superRefine((e,t)=>{e.source.kind===`definition`&&e.definitionSnapshot===void 0&&t.addIssue({code:u.ZodIssueCode.custom,path:[`definitionSnapshot`],message:`definitionSnapshot is required when source.kind is "definition"`})}),H=u.object({executionId:u.string().min(1),workflowId:u.string().min(1),workflowName:u.string().optional(),status:u.enum([`pending`,`running`,`paused`,`completed`,`failed`,`cancelled`]),startedAt:u.number(),completedAt:u.number().optional(),durationMs:u.number().nonnegative().optional(),totalInputTokens:u.number().int().nonnegative().optional(),totalOutputTokens:u.number().int().nonnegative().optional(),totalEstimatedCost:u.number().nonnegative().optional(),error:u.string().optional(),failedNodeId:u.string().optional()}),ht=u.object({executionId:u.string().min(1),frameId:u.string().min(1),nodeId:u.string().min(1),nodeType:C,path:u.array(u.string()),status:u.enum([`pending`,`running`,`waiting`,`completed`,`failed`,`skipped`,`cancelled`]),attempt:u.number().int().nonnegative(),iteration:u.number().int().nonnegative().optional(),branchKey:u.string().optional(),startedAt:u.number().optional(),completedAt:u.number().optional(),durationMs:u.number().nonnegative().optional(),inputTokens:u.number().int().nonnegative().optional(),outputTokens:u.number().int().nonnegative().optional(),estimatedCost:u.number().nonnegative().optional(),error:u.string().optional()}),gt=u.object({executionId:u.string().min(1),frameId:u.string().min(1),nodeId:u.string().min(1),artifact:S,revision:u.string().min(1).optional(),writtenAt:u.number()}),_t=u.object({executionId:u.string().min(1),nodeId:u.string().min(1),frameId:u.string().min(1),status:u.enum([`waiting`,`resumed`,`rejected`,`timed-out`,`cancelled`]),prompt:u.string().optional(),openedAt:u.number(),resolvedAt:u.number().optional(),resumeData:r.optional()}),vt=u.object({executionId:u.string().min(1),inputTokens:u.number().int().nonnegative(),outputTokens:u.number().int().nonnegative(),cachedTokens:u.number().int().nonnegative().optional(),estimatedCost:u.number().nonnegative(),byModel:u.record(u.string(),u.object({inputTokens:u.number().int().nonnegative(),outputTokens:u.number().int().nonnegative(),estimatedCost:u.number().nonnegative()})).optional()}),yt=u.object({total:u.number().int().nonnegative(),byStatus:u.object({pending:u.number().int().nonnegative(),running:u.number().int().nonnegative(),paused:u.number().int().nonnegative(),completed:u.number().int().nonnegative(),failed:u.number().int().nonnegative(),cancelled:u.number().int().nonnegative()}),totalDurationMs:u.number().nonnegative(),totalInputTokens:u.number().int().nonnegative(),totalOutputTokens:u.number().int().nonnegative(),totalEstimatedCost:u.number().nonnegative()}),bt=u.object({executionId:u.string().min(1),frameId:u.string().min(1),factoryId:u.string().min(1),materializedNodeIds:u.array(u.string().min(1)),factoryInput:i.optional(),materializedAt:u.number()}),xt=`wfx-ext-`,St=u.object({frameId:u.string().min(1).optional(),nodeId:u.string().min(1),nodeType:F,path:u.array(u.string().min(1)).optional(),attempt:u.number().int().nonnegative().default(0),iteration:u.number().int().nonnegative().optional(),branchKey:u.string().min(1).optional(),startedAt:u.number().int().nonnegative().optional()}).strict(),Ct=u.object({frameId:u.string().min(1),nodeId:u.string().min(1),nodeType:F,path:u.array(u.string().min(1)),attempt:u.number().int().nonnegative().default(0),iteration:u.number().int().nonnegative().optional(),branchKey:u.string().min(1).optional(),startedAt:u.number().int().nonnegative(),durationMs:u.number().int().nonnegative().optional()}).strict(),wt=u.object({executionId:u.string().startsWith(xt,{message:`executionId must use the wfx-ext- prefix`}).optional(),name:u.string().min(1),startedAt:u.number().int().nonnegative().optional(),scope:b.optional(),artifactRef:g.optional(),input:r.optional(),triggerPayload:a.optional(),frame:St.optional()}).superRefine((e,t)=>{e.executionId!==void 0&&e.startedAt===void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`startedAt is required when executionId is supplied`,path:[`startedAt`]})}),Tt=u.object({executionId:u.string().min(1),status:u.enum([`completed`,`failed`,`cancelled`]),error:u.string().min(1).optional(),reason:u.string().min(1).optional(),completedAt:u.number().nonnegative().overwrite(e=>Math.trunc(e)).optional(),frame:Ct.optional()}).superRefine((e,t)=>{if(e.status===`failed`&&e.error===void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`status 'failed' requires a non-empty 'error' message`,path:[`error`]}),e.status===`cancelled`&&e.reason===void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`status 'cancelled' requires a non-empty 'reason' string`,path:[`reason`]}),e.status===`completed`&&e.error!==void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`status 'completed' must not carry an 'error'`,path:[`error`]}),e.status===`completed`&&e.reason!==void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`status 'completed' must not carry a 'reason'`,path:[`reason`]}),e.frame!==void 0&&e.completedAt===void 0&&t.addIssue({code:u.ZodIssueCode.custom,message:`completedAt is required when frame metadata is supplied`,path:[`completedAt`]}),e.frame!==void 0&&e.completedAt!==void 0){let n=e.completedAt-e.frame.startedAt;n<0&&t.addIssue({code:u.ZodIssueCode.custom,message:`completedAt must not precede frame.startedAt`,path:[`completedAt`]}),e.frame.durationMs!==void 0&&e.frame.durationMs!==n&&t.addIssue({code:u.ZodIssueCode.custom,message:`frame.durationMs must equal completedAt - frame.startedAt`,path:[`frame`,`durationMs`]})}}),Et=u.object({message:u.string().min(1),details:u.string().min(1).optional(),kind:u.string().min(1).optional(),metadata:r.optional()}).strict(),U=u.object({executionId:u.string(),stepId:u.string(),stepType:u.enum([`station`,`delegate-agent`,`delegate-role`,`gate`])}),W=U.extend({stepType:u.literal(`gate`)}),Dt=u.discriminatedUnion(`source`,[W.extend({frameId:u.string(),action:u.enum([`approve`,`reject`]),source:u.literal(`user`),reason:u.string().optional()}),W.extend({frameId:u.string(),action:u.enum([`approve`,`reject`]),source:u.literal(`timeout`)}),W.extend({frameId:u.string(),source:u.literal(`cancelled`)})]),Ot=W.extend({workflowId:u.string(),workflowName:u.string(),title:u.string(),message:u.string(),autoAction:u.enum([`approve`,`reject`]),timeoutMs:u.number().nullable(),openedAt:u.number()}),kt={getDefinition:{request:u.object({id:u.string()}),response:u.object({workflow:O.nullable()})},setDefinition:{request:u.object({workflow:O}),response:u.object({id:u.string()})},deleteDefinition:{request:u.object({id:u.string()}),response:u.object({deleted:u.boolean()})},listDefinitions:{request:we,response:u.object({workflows:u.array(O)})},"definition.created":O,"definition.updated":O,"definition.deleted":u.object({id:u.string()}),start:{request:u.object({workflowId:u.string(),input:r.optional(),config:r.optional(),artifactRef:g.optional(),scope:b.optional(),executionHints:h.optional(),parentSessionId:u.string().optional(),triggerPayload:a.optional()}),response:u.object({executionId:u.string()})},rerun:{request:u.object({executionId:u.string().min(1),mode:u.enum([`snapshot`,`current`]),input:r.optional(),config:r.optional(),artifactRef:g.optional(),scope:b.optional(),executionHints:h.optional(),parentSessionId:u.string().optional(),triggerPayload:a.optional(),reason:u.string().min(1).optional()}),response:u.object({executionId:u.string()})},cancel:{request:u.object({executionId:u.string(),reason:u.string().optional()}),response:u.object({cancelled:u.boolean()})},getExecution:{request:u.object({executionId:u.string()}),response:u.object({execution:A.nullable()})},listExecutions:{request:ke,response:u.object({executions:u.array(A)})},listExecutionsByArtifactRefs:{request:Ne,response:u.object({executionsByRef:u.record(u.string(),u.array(A))})},listSpans:{request:u.object({executionId:u.string()}),response:u.object({spans:u.array(I)})},listGateInstances:{request:Pe,response:u.object({gates:u.array(N)})},setExecutionLink:{request:u.object({link:L}),response:u.object({id:u.string()})},listExecutionLinks:{request:Ye,response:u.object({links:u.array(L)})},listFrames:{request:u.object({executionId:u.string().min(1)}),response:u.object({frames:u.array(j)})},listTriggerTypes:{request:u.object({}),response:u.object({triggerTypes:u.array(u.object({type:u.string(),displayName:u.string(),icon:u.string(),category:u.string(),description:u.string().optional(),configJsonSchema:i,outputJsonSchema:i,source:u.string()}))})},runFile:{request:u.object({filePath:u.string().min(1),triggerPayload:a.optional(),scope:b.optional()}),response:u.object({executionId:u.string()})},registerExternalExecution:{request:wt,response:u.object({executionId:u.string(),frameId:u.string().optional()})},completeExternalExecution:{request:Tt,response:u.object({success:u.boolean()})},resolveRole:{request:u.object({roleId:u.string().min(1)}),response:P},resolveAgent:{request:u.object({agentId:u.string().min(1)}),response:Ce},getRunContext:{request:u.object({executionId:u.string().min(1)}),response:mt},"execution.started":u.object({executionId:u.string(),workflowId:u.string(),coordinatorSessionId:u.string().optional(),startedAt:u.number().nonnegative().optional(),artifactRef:g.optional()}),"execution.completed":u.object({executionId:u.string(),workflowId:u.string(),totalDuration:u.number(),completedAt:u.number().nonnegative().optional()}),"execution.failed":u.object({executionId:u.string(),workflowId:u.string(),error:u.string(),failedStepId:u.string().optional(),completedAt:u.number().nonnegative().optional()}),"execution.cancelled":u.object({executionId:u.string(),workflowId:u.string(),reason:u.string().optional(),completedAt:u.number().nonnegative().optional()}),"execution.progress":u.object({executionId:u.string().min(1),workflowId:u.string().min(1),frameId:u.string().min(1),nodeId:u.string().min(1),progress:Et,emittedAt:u.number().int().nonnegative()}),"execution.paused":p.schema(u.object({executionId:u.string(),workflowId:u.string(),pausedAtGateId:u.string().min(1),pausedAtFrameId:u.string().min(1)}),{traceAll:!0}),"step.beforeStart":U,"step.started":U.extend({sessionId:u.string().optional(),subagentId:u.string().optional()}),"step.completed":U.extend({result:r.optional(),duration:u.number()}),"step.failed":U.extend({error:u.string()}),"step.skipped":U.extend({reason:u.string().optional(),condition:u.string().optional()}),"gate.requested":Ot,"gate.awaitApproval":{request:Ot,response:u.object({action:u.enum([`approve`,`reject`]),source:u.enum([`user`,`timeout`]),reason:u.string().optional()})},"gate.respond":{request:u.object({executionId:u.string(),gateId:u.string(),action:u.enum([`approve`,`reject`]),frameId:u.string().optional(),resumeData:r,reason:u.string().optional()}),response:u.object({accepted:u.boolean()})},"gate.resolved":Dt,"frame.started":u.object({executionId:u.string(),frameId:u.string(),nodeId:u.string(),nodeType:C,path:u.array(u.string()),parentFrameId:u.string().optional(),startedAt:u.number().nonnegative().optional()}),"frame.completed":u.object({executionId:u.string(),frameId:u.string(),nodeId:u.string(),output:r.optional(),duration:u.number().nonnegative().optional(),completedAt:u.number().nonnegative().optional()}),"frame.failed":u.object({executionId:u.string(),frameId:u.string(),nodeId:u.string(),error:u.string(),duration:u.number().nonnegative().optional(),completedAt:u.number().nonnegative().optional()}),"frame.sessionLinked":u.object({executionId:p.attribute(u.string(),`makaio.execution.id`),frameId:p.attribute(u.string(),`makaio.frame.id`),sessionId:p.attribute(u.string(),`makaio.session.id`)}).strict(),"gate.suspended":u.object({executionId:u.string(),frameId:u.string(),nodeId:u.string(),schema:i,prompt:u.string().optional(),title:u.string().optional(),autoAction:u.enum([`approve`,`reject`]),timeoutMs:u.number().nullable(),openedAt:u.number()}),"gate.resumed":u.object({executionId:u.string(),frameId:u.string(),nodeId:u.string(),resumeData:r}),"dynamic.materialized":u.object({executionId:u.string(),frameId:u.string(),factoryId:u.string().min(1),materializedNodes:u.number().int().nonnegative()}),"artifact.updated":u.object({executionId:u.string(),frameId:u.string(),artifactRef:u.object({kind:u.string().min(1),id:u.string().min(1)}),paths:u.array(u.string()),operation:u.string().min(1),revision:u.string().min(1).optional()}),"worklog.get":{request:u.object({executionId:u.string().min(1)}),response:u.object({summary:H.nullable()})},"worklog.frame.get":{request:u.object({frameId:u.string().min(1)}),response:u.object({frame:ht.nullable()})},"worklog.list":{request:u.object({workflowId:u.string().min(1).optional(),status:k.optional(),limit:u.number().int().positive().optional(),offset:u.number().int().nonnegative().optional()}),response:u.object({items:u.array(H),total:u.number().int().nonnegative()})},"worklog.stats":{request:u.object({workflowId:u.string().min(1).optional(),since:u.number().int().nonnegative().optional(),until:u.number().int().nonnegative().optional()}),response:u.object({stats:yt})},"worklog.changed":u.object({executionId:u.string().min(1)}),"state.get":{request:u.object({executionId:u.string().min(1)}),response:u.object({executionId:u.string().min(1),sequence:u.number().int().nonnegative(),value:r})},"state.patch":{request:u.object({executionId:u.string().min(1),expectedSequence:u.number().int().nonnegative(),patch:u.array(z),nextValue:r}),response:u.object({executionId:u.string().min(1),sequence:u.number().int().positive(),value:r})},"state.updated":u.object({executionId:u.string().min(1),sequence:u.number().int().positive(),patch:u.array(z),value:r,updatedAt:u.number().int().positive()})},At=d(`workflow`,kt),jt=At.subjects;function Mt(e,t){G(e,t,void 0,0,[],`root`,void 0,void 0)}function G(e,t,n,r,i,a,o,s){let c={parent:n,depth:r,ancestors:i,relationship:a,...o!==void 0&&{index:o},...s!==void 0&&{branchKey:s}};if(t.enter?.(e,c)===!1)return;let l=[...i,e.id],u=r+1;switch(e.type){case`sequence`:{let n=e;for(let r=0;r<n.nodes.length;r++)G(n.nodes[r],t,e,u,l,`sequence-child`,r,void 0);break}case`parallel`:{let n=e;for(let[r,i]of Object.entries(n.branches))G(i,t,e,u,l,`parallel-branch`,void 0,r);break}case`iterate`:G(e.body,t,e,u,l,`iterate-body`,void 0,void 0);break;case`iterate-chain`:G(e.body,t,e,u,l,`iterate-chain-body`,void 0,void 0);break;case`loop`:G(e.body,t,e,u,l,`loop-body`,void 0,void 0);break}t.leave?.(e,c)}function Nt(e){switch(e){case`station`:case`delegate-agent`:case`delegate-role`:case`gate`:return`leaf`;case`parallel`:case`iterate`:case`iterate-chain`:case`loop`:return`control`;case`sequence`:return`structural`}}function Pt(e,t,n){return e===`parallel-branch`&&t!==void 0?[{kind:`branch`,key:t}]:e===`sequence-child`&&n!==void 0?[{kind:`index`,value:n}]:e===`iterate-body`||e===`iterate-chain-body`||e===`loop-body`?[{kind:`body`}]:[]}function Ft(e){return e.replace(/\\/g,`\\\\`).replace(/\//g,`\\/`)}function It(e){return e.map(e=>{switch(e.kind){case`node`:return`n:${Ft(e.id)}`;case`branch`:return`b:${Ft(e.key)}`;case`index`:return`i:${e.value}`;case`body`:return`body`}}).join(`/`)}function Lt(e){let t=[],n=[],r=new Map,i=[],a=[],o=[];return Mt(e.root,{enter(e,s){let c=Pt(s.relationship,s.branchKey,s.index),l={kind:`node`,id:e.id};i.push(...c,l),o.push(c.length+1);let u=[...i],d=It(u),f=a.at(-1);if(t.push({key:d,nodeId:e.id,type:e.type,role:Nt(e.type),path:u,parentKey:f,...s.branchKey!==void 0&&{branchKey:s.branchKey}}),f!==void 0&&s.parent!==void 0)switch(s.parent.type){case`sequence`:{n.push({sourceKey:f,targetKey:d,kind:`contains`});let e=r.get(f);e!==void 0&&n.push({sourceKey:e,targetKey:d,kind:`sequence`}),r.set(f,d);break}case`parallel`:n.push({sourceKey:f,targetKey:d,kind:`branch`});break;case`iterate`:case`iterate-chain`:case`loop`:n.push({sourceKey:f,targetKey:d,kind:`body`});break;default:n.push({sourceKey:f,targetKey:d,kind:`contains`});break}a.push(d)},leave(){let e=o.pop()??0;i.splice(i.length-e,e),a.pop()}}),{nodes:t,edges:n}}function K(e){return q(e.body.nodes,e.id)}function q(e,t){for(let n of e){if(n.type===`loop`)return`Nested loop '${n.id}' found inside loop '${t}' — V1 does not support nested loops`;if(n.type===`sequence`){let e=q(n.nodes,t);if(e)return e}if(n.type===`parallel`)for(let e of Object.values(n.branches)){let n=q(e.nodes,t);if(n)return n}if(n.type===`iterate`||n.type===`iterate-chain`){let e=n.body,r=q(e.nodes,t);if(r)return r}}}const J=new WeakMap,Rt=new WeakMap;function Y(e){let{$schema:t,...n}=u.toJSONSchema(e);return n}function X(e,t,n){let r=J.get(e);if(r!==void 0&&t.set(e.id,r),e.type===`sequence`)for(let r of e.nodes)X(r,t,n);else if(e.type===`parallel`)for(let r of Object.values(e.branches))X(r,t,n);else if(e.type===`iterate`)X(e.body,t,n);else if(e.type===`iterate-chain`)X(e.body,t,n);else if(e.type===`loop`){if(n!==void 0){let t=Rt.get(e);t!==void 0&&n.set(e.gate.handler,t)}X(e.body,t,n)}}function zt(e,t,n){let r={id:e,type:`station`,prompt:e,...n?.when!==void 0&&{when:n.when},...n?.skip!==void 0&&{skip:n.skip}};return J.set(r,t),r}function Bt(e,t,n){return{id:e,type:`delegate-agent`,agentId:t.agentId,...t.inputExpression!==void 0&&{inputExpression:t.inputExpression},...t.outputSchema!==void 0&&{outputSchema:t.outputSchema},...n?.when!==void 0&&{when:n.when},...n?.skip!==void 0&&{skip:n.skip}}}function Vt(e,t,n){return{id:e,type:`delegate-role`,role:t,prompt:n?.prompt??e,...n?.when!==void 0&&{when:n.when},...n?.skip!==void 0&&{skip:n.skip},...n?.outputSchema!==void 0&&{outputSchema:n.outputSchema},...n?.timeoutMs!==void 0&&{timeoutMs:n.timeoutMs},...n?.completion!==void 0&&{completion:n.completion}}}function Ht(e,t){return{id:e,type:`gate`,prompt:t.prompt,autoAction:t.autoAction,timeoutMs:t.timeoutMs,...t.title!==void 0&&{title:t.title},...t.resume!==void 0&&{resumeSchema:Y(t.resume)}}}function Ut(e,t,n){let r=`${e}__item`,i={id:r,type:`station`,prompt:r},a={id:e,type:`iterate`,collection:n.collection,body:{id:`${e}__body`,type:`sequence`,nodes:[i]},...n.concurrency!==void 0&&{concurrency:n.concurrency},...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}};return J.set(i,t),a}function Wt(e,t,n){return{id:e,type:`iterate-chain`,collection:n.collection,body:{id:`${e}__body`,type:`sequence`,nodes:t},...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}}}function Gt(e,t,n){let r={id:e,type:`loop`,maxRounds:n.maxRounds,body:{id:`${e}__body`,type:`sequence`,nodes:t},gate:Kt(n),...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}},i=K(r);if(i!==void 0)throw Error(i);return Rt.set(r,n.gate.evaluate),r}function Kt(e){let t=e.gate.escalation;return{handler:e.gate.handler,...e.gate.input!==void 0&&{input:e.gate.input},...e.gate.config!==void 0&&{config:e.gate.config},...t!==void 0&&{escalation:{prompt:t.prompt,autoAction:t.autoAction??`reject`,timeoutMs:t.timeoutMs??null,...t.title!==void 0&&{title:t.title},...t.resumeSchema!==void 0&&{resumeSchema:t.resumeSchema}}}}}function qt(e){return{type:`bus-event`,subject:f(e.subject),...e.filter!==void 0&&{filter:e.filter},...e.filterExpression!==void 0&&{filterExpression:e.filterExpression}}}function Jt(){return{type:`manual`}}function Yt(e){return{type:`cron`,schedule:e.schedule,...e.timezone!==void 0&&{timezone:e.timezone}}}function Xt(e){return{type:`webhook`,event:e.event,...e.branch!==void 0&&{branch:e.branch},...e.repo!==void 0&&{repo:e.repo}}}function Zt(e){return{type:`extension`,extensionType:e.extensionType,...e.config!==void 0&&{config:e.config}}}function Z(e,t){if(e.has(t))throw Error(`Duplicate step ID: ${t}`);e.add(t)}function Q(e,t){if(Z(e,t.id),t.type===`sequence`)for(let n of t.nodes)Q(e,n);else if(t.type===`parallel`)for(let n of Object.values(t.branches))Q(e,n);else (t.type===`iterate`||t.type===`iterate-chain`||t.type===`loop`)&&Q(e,t.body)}function Qt(e,t,n,r,i){let a={};return t.forEach((t,o)=>{if(t.id.length===0)throw Error(`parallel branch at index ${o} has an empty ID`);let s=t.id,c=`${e}__${s}`;Q(n,t),Z(n,c),X(t,r,i),a[s]={id:c,type:`sequence`,nodes:[t]}}),a}function $t(e,t,n,r,i){let a=`${e}__body`,o=`${e}__item`;Z(r,a),Z(r,o),i.set(o,t);let s={id:o,type:`station`,prompt:o};return{id:e,type:`iterate`,collection:n.collection,body:{id:a,type:`sequence`,nodes:[s]},...n.concurrency!==void 0&&{concurrency:n.concurrency},...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}}}function en(e,t,n){return t.resume!==void 0&&(n[e]=t.resume),{id:e,type:`gate`,prompt:t.prompt,autoAction:t.autoAction,timeoutMs:t.timeoutMs,...t.title!==void 0&&{title:t.title},...t.resume!==void 0&&{resumeSchema:Y(t.resume)}}}function tn(e,t,n,r,i,a){let o=`${e}__body`;Z(r,o);for(let e of t)Q(r,e),X(e,i,a);return{id:e,type:`iterate-chain`,collection:n.collection,body:{id:o,type:`sequence`,nodes:t},...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}}}function nn(e,t,n,r,i,a){let o=`${e}__body`;Z(r,o);for(let e of t)Q(r,e),X(e,i,a);let s={id:e,type:`loop`,maxRounds:n.maxRounds,body:{id:o,type:`sequence`,nodes:t},gate:Kt(n),...n.when!==void 0&&{when:n.when},...n.skip!==void 0&&{skip:n.skip}},c=K(s);if(c!==void 0)throw Error(c);return a.set(n.gate.handler,n.gate.evaluate),s}function rn(e,t){e.input=n=>(t.zodSchemas.input=n,t.definition.inputSchema=Y(n),e),e.config=n=>(t.zodSchemas.config=n,t.definition.configSchema=Y(n),e),e.output=n=>(t.zodSchemas.output=n,t.definition.outputSchema=Y(n),e),e.artifact=n=>(n.schema!==void 0&&(t.zodSchemas.artifact=n.schema),t.definition.artifact={kind:n.kind,schemaVersion:n.schemaVersion,scope:n.scope,...n.resolve!==void 0&&{resolve:n.resolve},...n.create!==void 0&&{create:n.create},...n.statusPath!==void 0&&{statusPath:n.statusPath}},e),e.state=e=>(t.definition.state={schema:e.schema,...e.initial!==void 0&&{initial:e.initial}},$(t))}function an(e,t){let{rootNodes:n,runtimeHandlers:r,runtimeLoopGates:i,registeredIds:a,zodGates:o}=t;e.station=(t,i,o)=>(Z(a,t),n.push({id:t,type:`station`,prompt:t,...o?.when!==void 0&&{when:o.when},...o?.skip!==void 0&&{skip:o.skip}}),r.set(t,i),e),e.delegateToAgent=(t,r,i)=>{Z(a,t);let o={id:t,type:`delegate-agent`,agentId:r.agentId,...r.inputExpression!==void 0&&{inputExpression:r.inputExpression},...r.outputSchema!==void 0&&{outputSchema:r.outputSchema},...i?.when!==void 0&&{when:i.when},...i?.skip!==void 0&&{skip:i.skip}};return n.push(o),e},e.delegateToRole=(t,r,i)=>(Z(a,t),n.push({id:t,type:`delegate-role`,role:r,prompt:i?.prompt??t,...i?.when!==void 0&&{when:i.when},...i?.skip!==void 0&&{skip:i.skip},...i?.outputSchema!==void 0&&{outputSchema:i.outputSchema},...i?.timeoutMs!==void 0&&{timeoutMs:i.timeoutMs},...i?.completion!==void 0&&{completion:i.completion}}),e),e.parallel=(t,o,s)=>(Z(a,t),n.push({id:t,type:`parallel`,mode:o.mode??`all-settled`,branches:Qt(t,s,a,r,i),...o.when!==void 0&&{when:o.when},...o.skip!==void 0&&{skip:o.skip}}),e),e.gate=(t,r)=>(Z(a,t),n.push(en(t,r,o)),e),e.iterate=(t,i,o)=>(Z(a,t),n.push($t(t,i,o,a,r)),e),e.iterateChain=(t,o,s)=>(Z(a,t),n.push(tn(t,o,s,a,r,i)),e),e.loop=(t,o,s)=>(Z(a,t),n.push(nn(t,o,s,a,r,i)),e),e.addNode=e=>on(e,a,r,i,n)}function on(e,t,n,r,i){Q(t,e),X(e,n,r),i.push(e)}function $(e){let t={id:e.definition.id,definition:e.definition,runtimeHandlers:e.runtimeHandlers,runtimeFactories:e.runtimeFactories,runtimeLoopGates:e.runtimeLoopGates,source:void 0,get zodSchemas(){return e.zodSchemas},addTrigger(t){return e.triggers.push(t),$(e)}};return rn(t,e),an(t,e),t}function sn(e,t){let n=[],r=new Map,i=new Map,a=new Set,o={},s={gates:o},c=new Map,l=t?.triggers?[...t.triggers]:[];return $({rootNodes:n,runtimeHandlers:r,runtimeFactories:c,runtimeLoopGates:i,registeredIds:a,zodGates:o,zodSchemas:s,definition:{id:e,...t?.name!==void 0&&{name:t.name},...t?.description!==void 0&&{description:t.description},root:{id:`${e}__root`,type:`sequence`,nodes:n},triggers:l,scope:{type:`global`}},triggers:l})}function cn(e){if(e.workflows.length===0)throw Error(`defineWorkflowBundle: workflows must not be empty`);return{workflows:Object.freeze([...e.workflows])}}const ln=u.enum([`artifact.created`,`artifact.revised`,`artifact.status.changed`]),un=u.record(u.string(),r),dn=u.object({type:u.string().min(1),input:u.record(u.string(),r).optional(),executionHints:h.optional()}),fn=u.object({id:u.string().min(1),description:u.string().optional(),on:ln,when:un.optional(),action:dn,enabled:u.boolean().default(!0)});export{st as $,w as $t,St as A,k as At,pt as B,fe as Bt,At as C,je as Ct,Tt as D,Ee as Dt,jt as E,De as Et,ht as F,S as Ft,B as G,j as Gt,dt as H,be as Ht,_t as I,le as It,at as J,M as Jt,it as K,N as Kt,yt as L,x as Lt,gt as M,v as Mt,bt as N,Pe as Nt,xt as O,Te as Ot,H as P,ve as Pt,rt as Q,ye as Qt,vt as R,xe as Rt,Mt as S,Me as St,kt as T,Oe as Tt,lt as U,A as Ut,ft as V,pe as Vt,ut as W,b as Wt,ct as X,ge as Xt,nt as Y,_e as Yt,ot as Z,we as Zt,Gt as _,Fe as _t,cn as a,P as an,Je as at,K as b,Ue as bt,Yt as c,Se as cn,Be as ct,Xt as d,g as dn,Re as dt,T as en,z as et,Bt as f,ne as fn,ze as ft,Wt as g,m as gn,He as gt,Ut as h,ee as hn,Ge as ht,fn as i,Ce as in,L as it,wt as j,Ne as jt,Ct as k,ke as kt,Zt as l,D as ln,We as lt,Ht as m,h as mn,Ie as mt,un as n,de as nn,Xe as nt,sn as o,E as on,I as ot,Vt as p,te as pn,Le as pt,tt as q,he as qt,ln as r,me as rn,Ye as rt,qt as s,ue as sn,qe as st,dn as t,C as tn,Ze as tt,Jt as u,y as un,Ke as ut,zt as v,F as vt,Et as w,Ae as wt,Lt as x,ce as xt,Y as y,Ve as yt,mt as z,O as zt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as WorkflowExecutor, i as WorkflowEngineService, n as createWorkflowEnginePackage, o as registerDrizzleWorkflowStorage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-
|
|
1
|
+
import { a as WorkflowExecutor, i as WorkflowEngineService, n as createWorkflowEnginePackage, o as registerDrizzleWorkflowStorage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-DmVZxufT.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
4
4
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
@@ -750,7 +750,121 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
750
750
|
id: z.ZodString;
|
|
751
751
|
executionId: z.ZodString;
|
|
752
752
|
}, z.core.$strip>;
|
|
753
|
-
};
|
|
753
|
+
}; /** Atomically persist an external execution and its initial WorkLog rows. */
|
|
754
|
+
setExternalExecutionStart: _$_makaio_core0.LocalSubjectSchema<{
|
|
755
|
+
request: z.ZodObject<{
|
|
756
|
+
execution: z.ZodObject<{
|
|
757
|
+
id: z.ZodString;
|
|
758
|
+
workflowId: z.ZodString;
|
|
759
|
+
coordinatorSessionId: z.ZodOptional<z.ZodString>;
|
|
760
|
+
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
761
|
+
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
762
|
+
startedAt: z.ZodNumber;
|
|
763
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
error: z.ZodOptional<z.ZodString>;
|
|
765
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
766
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
767
|
+
scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
768
|
+
type: z.ZodLiteral<"global">;
|
|
769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
770
|
+
type: z.ZodLiteral<"workspace">;
|
|
771
|
+
id: z.ZodString;
|
|
772
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
773
|
+
type: z.ZodLiteral<"session">;
|
|
774
|
+
id: z.ZodString;
|
|
775
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
776
|
+
type: z.ZodLiteral<"external">;
|
|
777
|
+
kind: z.ZodString;
|
|
778
|
+
id: z.ZodString;
|
|
779
|
+
}, z.core.$strict>], "type">;
|
|
780
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
kind: z.ZodString;
|
|
782
|
+
id: z.ZodString;
|
|
783
|
+
}, z.core.$strip>>;
|
|
784
|
+
status: z.ZodLiteral<"running">;
|
|
785
|
+
}, z.core.$strip>;
|
|
786
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
787
|
+
executionId: z.ZodString;
|
|
788
|
+
frameId: z.ZodString;
|
|
789
|
+
nodeId: z.ZodString;
|
|
790
|
+
nodeType: z.ZodEnum<{
|
|
791
|
+
station: "station";
|
|
792
|
+
"delegate-agent": "delegate-agent";
|
|
793
|
+
"delegate-role": "delegate-role";
|
|
794
|
+
sequence: "sequence";
|
|
795
|
+
parallel: "parallel";
|
|
796
|
+
gate: "gate";
|
|
797
|
+
iterate: "iterate";
|
|
798
|
+
"iterate-chain": "iterate-chain";
|
|
799
|
+
loop: "loop";
|
|
800
|
+
}>;
|
|
801
|
+
path: z.ZodArray<z.ZodString>;
|
|
802
|
+
attempt: z.ZodNumber;
|
|
803
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
805
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
806
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
807
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
808
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
809
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
810
|
+
error: z.ZodOptional<z.ZodString>;
|
|
811
|
+
status: z.ZodLiteral<"running">;
|
|
812
|
+
startedAt: z.ZodNumber;
|
|
813
|
+
}, z.core.$strip>>;
|
|
814
|
+
}, z.core.$strip>;
|
|
815
|
+
response: z.ZodObject<{
|
|
816
|
+
executionId: z.ZodString;
|
|
817
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
}>; /** Atomically settle an external execution and its WorkLog projection. */
|
|
820
|
+
settleExternalExecution: _$_makaio_core0.LocalSubjectSchema<{
|
|
821
|
+
request: z.ZodObject<{
|
|
822
|
+
executionId: z.ZodString;
|
|
823
|
+
status: z.ZodEnum<{
|
|
824
|
+
completed: "completed";
|
|
825
|
+
cancelled: "cancelled";
|
|
826
|
+
failed: "failed";
|
|
827
|
+
}>;
|
|
828
|
+
error: z.ZodOptional<z.ZodString>;
|
|
829
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
830
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
831
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
832
|
+
executionId: z.ZodString;
|
|
833
|
+
frameId: z.ZodString;
|
|
834
|
+
nodeId: z.ZodString;
|
|
835
|
+
nodeType: z.ZodEnum<{
|
|
836
|
+
station: "station";
|
|
837
|
+
"delegate-agent": "delegate-agent";
|
|
838
|
+
"delegate-role": "delegate-role";
|
|
839
|
+
sequence: "sequence";
|
|
840
|
+
parallel: "parallel";
|
|
841
|
+
gate: "gate";
|
|
842
|
+
iterate: "iterate";
|
|
843
|
+
"iterate-chain": "iterate-chain";
|
|
844
|
+
loop: "loop";
|
|
845
|
+
}>;
|
|
846
|
+
path: z.ZodArray<z.ZodString>;
|
|
847
|
+
attempt: z.ZodNumber;
|
|
848
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
849
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
850
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
852
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
error: z.ZodOptional<z.ZodString>;
|
|
854
|
+
status: z.ZodEnum<{
|
|
855
|
+
completed: "completed";
|
|
856
|
+
cancelled: "cancelled";
|
|
857
|
+
failed: "failed";
|
|
858
|
+
}>;
|
|
859
|
+
startedAt: z.ZodNumber;
|
|
860
|
+
completedAt: z.ZodNumber;
|
|
861
|
+
durationMs: z.ZodNumber;
|
|
862
|
+
}, z.core.$strip>>;
|
|
863
|
+
}, z.core.$strip>;
|
|
864
|
+
response: z.ZodObject<{
|
|
865
|
+
success: z.ZodBoolean;
|
|
866
|
+
}, z.core.$strip>;
|
|
867
|
+
}>;
|
|
754
868
|
updateExecution: {
|
|
755
869
|
request: z.ZodObject<{
|
|
756
870
|
executionId: z.ZodString;
|
|
@@ -964,8 +1078,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
964
1078
|
cancelled: "cancelled";
|
|
965
1079
|
running: "running";
|
|
966
1080
|
failed: "failed";
|
|
967
|
-
waiting: "waiting";
|
|
968
1081
|
skipped: "skipped";
|
|
1082
|
+
waiting: "waiting";
|
|
969
1083
|
}>;
|
|
970
1084
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
971
1085
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1010,8 +1124,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1010
1124
|
cancelled: "cancelled";
|
|
1011
1125
|
running: "running";
|
|
1012
1126
|
failed: "failed";
|
|
1013
|
-
waiting: "waiting";
|
|
1014
1127
|
skipped: "skipped";
|
|
1128
|
+
waiting: "waiting";
|
|
1015
1129
|
}>;
|
|
1016
1130
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
1017
1131
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1053,8 +1167,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1053
1167
|
cancelled: "cancelled";
|
|
1054
1168
|
running: "running";
|
|
1055
1169
|
failed: "failed";
|
|
1056
|
-
waiting: "waiting";
|
|
1057
1170
|
skipped: "skipped";
|
|
1171
|
+
waiting: "waiting";
|
|
1058
1172
|
}>;
|
|
1059
1173
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
1060
1174
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1081,8 +1195,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1081
1195
|
status: z.ZodEnum<{
|
|
1082
1196
|
cancelled: "cancelled";
|
|
1083
1197
|
rejected: "rejected";
|
|
1084
|
-
waiting: "waiting";
|
|
1085
1198
|
resumed: "resumed";
|
|
1199
|
+
waiting: "waiting";
|
|
1086
1200
|
"timed-out": "timed-out";
|
|
1087
1201
|
}>;
|
|
1088
1202
|
autoAction: z.ZodEnum<{
|
|
@@ -1213,8 +1327,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1213
1327
|
status: z.ZodEnum<{
|
|
1214
1328
|
cancelled: "cancelled";
|
|
1215
1329
|
rejected: "rejected";
|
|
1216
|
-
waiting: "waiting";
|
|
1217
1330
|
resumed: "resumed";
|
|
1331
|
+
waiting: "waiting";
|
|
1218
1332
|
"timed-out": "timed-out";
|
|
1219
1333
|
}>;
|
|
1220
1334
|
autoAction: z.ZodEnum<{
|
|
@@ -1238,8 +1352,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1238
1352
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1239
1353
|
cancelled: "cancelled";
|
|
1240
1354
|
rejected: "rejected";
|
|
1241
|
-
waiting: "waiting";
|
|
1242
1355
|
resumed: "resumed";
|
|
1356
|
+
waiting: "waiting";
|
|
1243
1357
|
"timed-out": "timed-out";
|
|
1244
1358
|
}>>;
|
|
1245
1359
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1254,8 +1368,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1254
1368
|
status: z.ZodEnum<{
|
|
1255
1369
|
cancelled: "cancelled";
|
|
1256
1370
|
rejected: "rejected";
|
|
1257
|
-
waiting: "waiting";
|
|
1258
1371
|
resumed: "resumed";
|
|
1372
|
+
waiting: "waiting";
|
|
1259
1373
|
"timed-out": "timed-out";
|
|
1260
1374
|
}>;
|
|
1261
1375
|
autoAction: z.ZodEnum<{
|
|
@@ -1289,8 +1403,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1289
1403
|
status: z.ZodEnum<{
|
|
1290
1404
|
cancelled: "cancelled";
|
|
1291
1405
|
rejected: "rejected";
|
|
1292
|
-
waiting: "waiting";
|
|
1293
1406
|
resumed: "resumed";
|
|
1407
|
+
waiting: "waiting";
|
|
1294
1408
|
"timed-out": "timed-out";
|
|
1295
1409
|
}>;
|
|
1296
1410
|
autoAction: z.ZodEnum<{
|
|
@@ -2587,6 +2701,44 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2587
2701
|
identity: undefined;
|
|
2588
2702
|
generated: undefined;
|
|
2589
2703
|
}, {}, {}>;
|
|
2704
|
+
externalSettlementFingerprint: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2705
|
+
name: "external_settlement_fingerprint";
|
|
2706
|
+
tableName: "workflow_executions";
|
|
2707
|
+
dataType: "string";
|
|
2708
|
+
columnType: "SQLiteText";
|
|
2709
|
+
data: string;
|
|
2710
|
+
driverParam: string;
|
|
2711
|
+
notNull: false;
|
|
2712
|
+
hasDefault: false;
|
|
2713
|
+
isPrimaryKey: false;
|
|
2714
|
+
isAutoincrement: false;
|
|
2715
|
+
hasRuntimeDefault: false;
|
|
2716
|
+
enumValues: [string, ...string[]];
|
|
2717
|
+
baseColumn: never;
|
|
2718
|
+
identity: undefined;
|
|
2719
|
+
generated: undefined;
|
|
2720
|
+
}, {}, {
|
|
2721
|
+
length: number | undefined;
|
|
2722
|
+
}>;
|
|
2723
|
+
externalRegistrationFrameId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2724
|
+
name: "external_registration_frame_id";
|
|
2725
|
+
tableName: "workflow_executions";
|
|
2726
|
+
dataType: "string";
|
|
2727
|
+
columnType: "SQLiteText";
|
|
2728
|
+
data: string;
|
|
2729
|
+
driverParam: string;
|
|
2730
|
+
notNull: false;
|
|
2731
|
+
hasDefault: false;
|
|
2732
|
+
isPrimaryKey: false;
|
|
2733
|
+
isAutoincrement: false;
|
|
2734
|
+
hasRuntimeDefault: false;
|
|
2735
|
+
enumValues: [string, ...string[]];
|
|
2736
|
+
baseColumn: never;
|
|
2737
|
+
identity: undefined;
|
|
2738
|
+
generated: undefined;
|
|
2739
|
+
}, {}, {
|
|
2740
|
+
length: number | undefined;
|
|
2741
|
+
}>;
|
|
2590
2742
|
triggerPayload: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2591
2743
|
name: string;
|
|
2592
2744
|
tableName: "workflow_executions";
|
|
@@ -2771,7 +2923,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2771
2923
|
tableName: "workflow_execution_frames";
|
|
2772
2924
|
dataType: "string";
|
|
2773
2925
|
columnType: "SQLiteText";
|
|
2774
|
-
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "
|
|
2926
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
2775
2927
|
driverParam: string;
|
|
2776
2928
|
notNull: true;
|
|
2777
2929
|
hasDefault: true;
|
|
@@ -2784,7 +2936,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2784
2936
|
generated: undefined;
|
|
2785
2937
|
}, {}, {
|
|
2786
2938
|
length: number | undefined;
|
|
2787
|
-
$type: "pending" | "completed" | "cancelled" | "running" | "failed" | "
|
|
2939
|
+
$type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
2788
2940
|
}>;
|
|
2789
2941
|
attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2790
2942
|
name: string;
|
|
@@ -3054,7 +3206,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3054
3206
|
tableName: "workflow_gate_instances";
|
|
3055
3207
|
dataType: "string";
|
|
3056
3208
|
columnType: "SQLiteText";
|
|
3057
|
-
data: "cancelled" | "rejected" | "
|
|
3209
|
+
data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
3058
3210
|
driverParam: string;
|
|
3059
3211
|
notNull: true;
|
|
3060
3212
|
hasDefault: true;
|
|
@@ -3067,7 +3219,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3067
3219
|
generated: undefined;
|
|
3068
3220
|
}, {}, {
|
|
3069
3221
|
length: number | undefined;
|
|
3070
|
-
$type: "cancelled" | "rejected" | "
|
|
3222
|
+
$type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
3071
3223
|
}>;
|
|
3072
3224
|
autoAction: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3073
3225
|
name: "auto_action";
|
|
@@ -4591,7 +4743,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4591
4743
|
tableName: "worklog_frame_entries";
|
|
4592
4744
|
dataType: "string";
|
|
4593
4745
|
columnType: "SQLiteText";
|
|
4594
|
-
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "
|
|
4746
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
4595
4747
|
driverParam: string;
|
|
4596
4748
|
notNull: true;
|
|
4597
4749
|
hasDefault: false;
|
|
@@ -5025,7 +5177,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5025
5177
|
tableName: "worklog_gate_events";
|
|
5026
5178
|
dataType: "string";
|
|
5027
5179
|
columnType: "SQLiteText";
|
|
5028
|
-
data: "cancelled" | "rejected" | "
|
|
5180
|
+
data: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
5029
5181
|
driverParam: string;
|
|
5030
5182
|
notNull: true;
|
|
5031
5183
|
hasDefault: false;
|
|
@@ -5038,7 +5190,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5038
5190
|
generated: undefined;
|
|
5039
5191
|
}, {}, {
|
|
5040
5192
|
length: number | undefined;
|
|
5041
|
-
$type: "cancelled" | "rejected" | "
|
|
5193
|
+
$type: "cancelled" | "rejected" | "resumed" | "waiting" | "timed-out";
|
|
5042
5194
|
}>;
|
|
5043
5195
|
prompt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5044
5196
|
name: "prompt";
|
|
@@ -6012,7 +6164,121 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6012
6164
|
id: z.ZodString;
|
|
6013
6165
|
executionId: z.ZodString;
|
|
6014
6166
|
}, z.core.$strip>;
|
|
6015
|
-
};
|
|
6167
|
+
}; /** Atomically persist an external execution and its initial WorkLog rows. */
|
|
6168
|
+
setExternalExecutionStart: _$_makaio_core0.LocalSubjectSchema<{
|
|
6169
|
+
request: z.ZodObject<{
|
|
6170
|
+
execution: z.ZodObject<{
|
|
6171
|
+
id: z.ZodString;
|
|
6172
|
+
workflowId: z.ZodString;
|
|
6173
|
+
coordinatorSessionId: z.ZodOptional<z.ZodString>;
|
|
6174
|
+
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6175
|
+
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
6176
|
+
startedAt: z.ZodNumber;
|
|
6177
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
6178
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6179
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6180
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
6181
|
+
scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6182
|
+
type: z.ZodLiteral<"global">;
|
|
6183
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6184
|
+
type: z.ZodLiteral<"workspace">;
|
|
6185
|
+
id: z.ZodString;
|
|
6186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6187
|
+
type: z.ZodLiteral<"session">;
|
|
6188
|
+
id: z.ZodString;
|
|
6189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6190
|
+
type: z.ZodLiteral<"external">;
|
|
6191
|
+
kind: z.ZodString;
|
|
6192
|
+
id: z.ZodString;
|
|
6193
|
+
}, z.core.$strict>], "type">;
|
|
6194
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
6195
|
+
kind: z.ZodString;
|
|
6196
|
+
id: z.ZodString;
|
|
6197
|
+
}, z.core.$strip>>;
|
|
6198
|
+
status: z.ZodLiteral<"running">;
|
|
6199
|
+
}, z.core.$strip>;
|
|
6200
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
6201
|
+
executionId: z.ZodString;
|
|
6202
|
+
frameId: z.ZodString;
|
|
6203
|
+
nodeId: z.ZodString;
|
|
6204
|
+
nodeType: z.ZodEnum<{
|
|
6205
|
+
station: "station";
|
|
6206
|
+
"delegate-agent": "delegate-agent";
|
|
6207
|
+
"delegate-role": "delegate-role";
|
|
6208
|
+
sequence: "sequence";
|
|
6209
|
+
parallel: "parallel";
|
|
6210
|
+
gate: "gate";
|
|
6211
|
+
iterate: "iterate";
|
|
6212
|
+
"iterate-chain": "iterate-chain";
|
|
6213
|
+
loop: "loop";
|
|
6214
|
+
}>;
|
|
6215
|
+
path: z.ZodArray<z.ZodString>;
|
|
6216
|
+
attempt: z.ZodNumber;
|
|
6217
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
6218
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
6219
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
6220
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
6221
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
6222
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
6223
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
6224
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6225
|
+
status: z.ZodLiteral<"running">;
|
|
6226
|
+
startedAt: z.ZodNumber;
|
|
6227
|
+
}, z.core.$strip>>;
|
|
6228
|
+
}, z.core.$strip>;
|
|
6229
|
+
response: z.ZodObject<{
|
|
6230
|
+
executionId: z.ZodString;
|
|
6231
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
6232
|
+
}, z.core.$strip>;
|
|
6233
|
+
}>; /** Atomically settle an external execution and its WorkLog projection. */
|
|
6234
|
+
settleExternalExecution: _$_makaio_core0.LocalSubjectSchema<{
|
|
6235
|
+
request: z.ZodObject<{
|
|
6236
|
+
executionId: z.ZodString;
|
|
6237
|
+
status: z.ZodEnum<{
|
|
6238
|
+
completed: "completed";
|
|
6239
|
+
cancelled: "cancelled";
|
|
6240
|
+
failed: "failed";
|
|
6241
|
+
}>;
|
|
6242
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6243
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6244
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
6245
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
6246
|
+
executionId: z.ZodString;
|
|
6247
|
+
frameId: z.ZodString;
|
|
6248
|
+
nodeId: z.ZodString;
|
|
6249
|
+
nodeType: z.ZodEnum<{
|
|
6250
|
+
station: "station";
|
|
6251
|
+
"delegate-agent": "delegate-agent";
|
|
6252
|
+
"delegate-role": "delegate-role";
|
|
6253
|
+
sequence: "sequence";
|
|
6254
|
+
parallel: "parallel";
|
|
6255
|
+
gate: "gate";
|
|
6256
|
+
iterate: "iterate";
|
|
6257
|
+
"iterate-chain": "iterate-chain";
|
|
6258
|
+
loop: "loop";
|
|
6259
|
+
}>;
|
|
6260
|
+
path: z.ZodArray<z.ZodString>;
|
|
6261
|
+
attempt: z.ZodNumber;
|
|
6262
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
6263
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
6264
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
6265
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
6266
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
6267
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6268
|
+
status: z.ZodEnum<{
|
|
6269
|
+
completed: "completed";
|
|
6270
|
+
cancelled: "cancelled";
|
|
6271
|
+
failed: "failed";
|
|
6272
|
+
}>;
|
|
6273
|
+
startedAt: z.ZodNumber;
|
|
6274
|
+
completedAt: z.ZodNumber;
|
|
6275
|
+
durationMs: z.ZodNumber;
|
|
6276
|
+
}, z.core.$strip>>;
|
|
6277
|
+
}, z.core.$strip>;
|
|
6278
|
+
response: z.ZodObject<{
|
|
6279
|
+
success: z.ZodBoolean;
|
|
6280
|
+
}, z.core.$strip>;
|
|
6281
|
+
}>;
|
|
6016
6282
|
updateExecution: {
|
|
6017
6283
|
request: z.ZodObject<{
|
|
6018
6284
|
executionId: z.ZodString;
|
|
@@ -6226,8 +6492,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6226
6492
|
cancelled: "cancelled";
|
|
6227
6493
|
running: "running";
|
|
6228
6494
|
failed: "failed";
|
|
6229
|
-
waiting: "waiting";
|
|
6230
6495
|
skipped: "skipped";
|
|
6496
|
+
waiting: "waiting";
|
|
6231
6497
|
}>;
|
|
6232
6498
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
6233
6499
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6272,8 +6538,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6272
6538
|
cancelled: "cancelled";
|
|
6273
6539
|
running: "running";
|
|
6274
6540
|
failed: "failed";
|
|
6275
|
-
waiting: "waiting";
|
|
6276
6541
|
skipped: "skipped";
|
|
6542
|
+
waiting: "waiting";
|
|
6277
6543
|
}>;
|
|
6278
6544
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
6279
6545
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6315,8 +6581,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6315
6581
|
cancelled: "cancelled";
|
|
6316
6582
|
running: "running";
|
|
6317
6583
|
failed: "failed";
|
|
6318
|
-
waiting: "waiting";
|
|
6319
6584
|
skipped: "skipped";
|
|
6585
|
+
waiting: "waiting";
|
|
6320
6586
|
}>;
|
|
6321
6587
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
6322
6588
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6343,8 +6609,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6343
6609
|
status: z.ZodEnum<{
|
|
6344
6610
|
cancelled: "cancelled";
|
|
6345
6611
|
rejected: "rejected";
|
|
6346
|
-
waiting: "waiting";
|
|
6347
6612
|
resumed: "resumed";
|
|
6613
|
+
waiting: "waiting";
|
|
6348
6614
|
"timed-out": "timed-out";
|
|
6349
6615
|
}>;
|
|
6350
6616
|
autoAction: z.ZodEnum<{
|
|
@@ -6475,8 +6741,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6475
6741
|
status: z.ZodEnum<{
|
|
6476
6742
|
cancelled: "cancelled";
|
|
6477
6743
|
rejected: "rejected";
|
|
6478
|
-
waiting: "waiting";
|
|
6479
6744
|
resumed: "resumed";
|
|
6745
|
+
waiting: "waiting";
|
|
6480
6746
|
"timed-out": "timed-out";
|
|
6481
6747
|
}>;
|
|
6482
6748
|
autoAction: z.ZodEnum<{
|
|
@@ -6500,8 +6766,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6500
6766
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6501
6767
|
cancelled: "cancelled";
|
|
6502
6768
|
rejected: "rejected";
|
|
6503
|
-
waiting: "waiting";
|
|
6504
6769
|
resumed: "resumed";
|
|
6770
|
+
waiting: "waiting";
|
|
6505
6771
|
"timed-out": "timed-out";
|
|
6506
6772
|
}>>;
|
|
6507
6773
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6516,8 +6782,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6516
6782
|
status: z.ZodEnum<{
|
|
6517
6783
|
cancelled: "cancelled";
|
|
6518
6784
|
rejected: "rejected";
|
|
6519
|
-
waiting: "waiting";
|
|
6520
6785
|
resumed: "resumed";
|
|
6786
|
+
waiting: "waiting";
|
|
6521
6787
|
"timed-out": "timed-out";
|
|
6522
6788
|
}>;
|
|
6523
6789
|
autoAction: z.ZodEnum<{
|
|
@@ -6551,8 +6817,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6551
6817
|
status: z.ZodEnum<{
|
|
6552
6818
|
cancelled: "cancelled";
|
|
6553
6819
|
rejected: "rejected";
|
|
6554
|
-
waiting: "waiting";
|
|
6555
6820
|
resumed: "resumed";
|
|
6821
|
+
waiting: "waiting";
|
|
6556
6822
|
"timed-out": "timed-out";
|
|
6557
6823
|
}>;
|
|
6558
6824
|
autoAction: z.ZodEnum<{
|
|
@@ -7380,7 +7646,9 @@ declare const workflowExecutionsDual: _$_makaio_storage_drizzle0.DualTable<"work
|
|
|
7380
7646
|
error: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"error", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"error", [string, ...string[]]>>; /** Cancellation reason if execution was cancelled. */
|
|
7381
7647
|
reason: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"reason", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"reason", [string, ...string[]]>>; /** Execution start timestamp. */
|
|
7382
7648
|
startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>>; /** Execution completion timestamp. */
|
|
7383
|
-
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /**
|
|
7649
|
+
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Canonical identity of an authoritative external settlement, when present. */
|
|
7650
|
+
externalSettlementFingerprint: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"external_settlement_fingerprint", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"external_settlement_fingerprint", [string, ...string[]]>>; /** Frame durably bound by external registration; null means registration had no frame. */
|
|
7651
|
+
externalRegistrationFrameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"external_registration_frame_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"external_registration_frame_id", [string, ...string[]]>>; /** Trigger payload from the firing trigger (JSON object). */
|
|
7384
7652
|
triggerPayload: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, Record<string, JsonValue>>, _$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgJsonbBuilderInitial<string>, Record<string, JsonValue>>>; /** Artifact kind the execution is bound to (flat for indexed filtering). */
|
|
7385
7653
|
artifactKind: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"artifact_kind", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"artifact_kind", [string, ...string[]]>>; /** Artifact identifier within its kind. */
|
|
7386
7654
|
artifactId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"artifact_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"artifact_id", [string, ...string[]]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,F as t,G as n,N as r,S as i,T as a,V as o,Y as s,j as c,v as l}from"../loop-gate-handlers-
|
|
1
|
+
import{C as e,F as t,G as n,N as r,S as i,T as a,V as o,Y as s,j as c,v as l}from"../loop-gate-handlers-o2B5FPdF.mjs";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../package-Co_GO3UD.mjs";import{JsonValueSchema as y,WorkflowFrameStateSchema as b}from"@makaio/framework/contracts";const x=new Set([...b.shape.status.options]);function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C(e){if(!S(e))return!1;for(let t of Object.values(e))if(!S(t)||typeof t.status!=`string`||!x.has(t.status)||`result`in t&&t.result!==void 0&&!y.safeParse(t.result).success)return!1;return!0}function w(e){let t={trigger:S(e.trigger)?e.trigger:{},steps:C(e.steps)?e.steps:{},inputs:y.safeParse(e.inputs).success?e.inputs:{}};return`item`in e&&(t.item=e.item),typeof e.index==`number`&&(t.index=e.index),t}export{f as WorkflowEngineService,v as WorkflowEngineToken,u as WorkflowExecutor,i as WorkflowStorageNamespace,e as WorkflowStorageSubjects,w as buildWorkflowExpressionContextFromResolvedInputs,m as createWorkflowEnginePackage,_ as getWorkflowState,d as initializeWorkflowState,p as patchWorkflowState,h as registerDrizzleWorkflowStorage,l as runShellStep,a as workflowDefinitionsDual,g as workflowEnginePackage,c as workflowExecutionStateDual,r as workflowExecutionStateEventsDual,t as workflowExecutionsDual,o as workflowStepSpansDual,n as worklogFrameEntriesDual,s as worklogSummariesDual};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-
|
|
1
|
+
import { n as createWorkflowEnginePackage, r as workflowEnginePackage, t as WorkflowEngineToken } from "../package-DmVZxufT.mjs";
|
|
2
2
|
export { WorkflowEngineToken, createWorkflowEnginePackage, workflowEnginePackage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"../package-
|
|
1
|
+
import{n as e,r as t,t as n}from"../package-Co_GO3UD.mjs";export{n as WorkflowEngineToken,e as createWorkflowEnginePackage,t as workflowEnginePackage};
|