@makaio/framework 1.0.0-dev-1783940945655 → 1.0.0-dev-1783975608971
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/{account-identity-BYfeWLe-.mjs → account-identity-CP4DC0DL.mjs} +1 -1
- package/dist/{adapter-nl_xz9dz.mjs → adapter-B9vVBwli.mjs} +1 -1
- package/dist/adapter-subsystem/index.d.mts +10 -0
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/authority-state-bootstrap-CEuKScnL.mjs +1 -0
- package/dist/bus/index.d.mts +31 -31
- package/dist/bus/index.mjs +1 -1
- package/dist/{canonical-model-CVRCW9h7.mjs → canonical-model-C31NaBJs.mjs} +1 -1
- package/dist/{client-BkpLM8Fx.mjs → client-CzPCSeyE.mjs} +1 -1
- package/dist/clients/index.d.mts +5 -5
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/extension/index.mjs +1 -1
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +221 -153
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +1 -1
- package/dist/contracts/native-session-supervisor/index.d.mts +2 -2
- package/dist/contracts/native-session-supervisor/index.mjs +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/shared/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/{detached-extension-handle-CTaQoolf.mjs → detached-extension-handle-vDK194QV.mjs} +1 -1
- package/dist/drizzle/0026_m_mrgvi7fq.sql +16 -0
- package/dist/drizzle/0027_m_mrgw0uzg.sql +1 -0
- package/dist/drizzle/0028_m_mrgx04i1.sql +1 -0
- package/dist/drizzle/0029_terminal-authority.sql +1 -0
- package/dist/drizzle/meta/_journal.json +28 -0
- package/dist/{extension-D4iKUUMG.mjs → extension-Cgg45Xk1.mjs} +1 -1
- package/dist/git/index.mjs +8 -8
- package/dist/{index-D5IEq4_E.d.mts → index-BH145jWk.d.mts} +9 -7
- package/dist/{index-BcejR1Jc.d.mts → index-BORQLrT7.d.mts} +1 -1
- package/dist/{index-CB2XTzvd.d.mts → index-Bbr5LEUc.d.mts} +1 -1
- package/dist/{index-5s_dN3cg2.d.mts → index-BmsPH78f2.d.mts} +33 -5
- package/dist/{index-BtL7ONuM.d.mts → index-C6LZOiDv.d.mts} +149 -1
- package/dist/{index-DlUPWOh4.d.mts → index-CCX4veeR.d.mts} +2859 -692
- package/dist/{index-DxatNFz7.d.mts → index-CMTNBuo6.d.mts} +16 -16
- package/dist/{index-CVs0Qxks.d.mts → index-CSxfU0tB.d.mts} +4 -4
- package/dist/{index-Cw3cjGAT.d.mts → index-ChSwb11f.d.mts} +7 -7
- package/dist/{index-Lp0T_V1W.d.mts → index-CidZvQ-c.d.mts} +3 -3
- package/dist/{index-p6dWV52m.d.mts → index-Cq6rXKae.d.mts} +379 -379
- package/dist/{index-DNc1yLQs.d.mts → index-DHGW7dFf.d.mts} +8 -8
- package/dist/{index-C9Q1E8Y-.d.mts → index-DMQlLz2W.d.mts} +34 -34
- package/dist/{index-iJP-l15K.d.mts → index-DXBiCH2y.d.mts} +27 -1
- package/dist/{index-CW6-0k3Z.d.mts → index-DlAfs3RD.d.mts} +105 -105
- package/dist/{index-sCOlgPyj.d.mts → index-DpZbaS7y.d.mts} +388 -388
- package/dist/{index-Do7Wgio_2.d.mts → index-MTvmxwiu2.d.mts} +1 -1
- package/dist/{index-BsEvzFey.d.mts → index-kqxUXYe7.d.mts} +6 -6
- 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/{lib-DymjnkAP.mjs → lib-DktBDEoY.mjs} +1 -1
- package/dist/{load-extensions-BtUrq2_t.mjs → load-extensions-nqL5WAKj.mjs} +1 -1
- package/dist/mcp-http-server/index.d.mts +27 -90
- package/dist/mcp-http-server/index.mjs +1 -1
- package/dist/{namespace-CfgtqUWS.d.mts → namespace-BoA6u44C.d.mts} +156 -156
- package/dist/{namespace-D3SQQgxa2.d.mts → namespace-CukqFYHf2.d.mts} +1 -1
- package/dist/{namespace-CQBSXm1U.d.mts → namespace-TLkZRkcU.d.mts} +20 -20
- package/dist/{namespace-CpyL93kW.d.mts → namespace-dgNmx9g3.d.mts} +27 -27
- package/dist/{namespace-CGgOLxiW2.d.mts → namespace-rO-C2Dgu2.d.mts} +2 -2
- package/dist/{native-session-supervisor-CdtVGWA9.mjs → native-session-supervisor-Bgz-Q1WH.mjs} +1 -1
- package/dist/package-BYpWkSuQ.mjs +1 -0
- package/dist/package-CsFFT9iR.mjs +7 -0
- package/dist/{package-CdBiknf3.d.mts → package-DG9GSY8M.d.mts} +52 -1
- package/dist/package.json +1 -1
- package/dist/{profile-D2m94ZYD.mjs → profile-BRi6K6am.mjs} +1 -1
- package/dist/rules/index.mjs +1 -1
- package/dist/runtime-node/extension-validation.mjs +1 -1
- package/dist/runtime-node/index.d.mts +4 -89
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/{schema-BnTOFCdU.d.mts → schema-CxN7d_MU.d.mts} +1 -1
- package/dist/{schemas--uwN5dfK2.d.mts → schemas-CIO03KSD2.d.mts} +11 -11
- package/dist/{schemas-n9Ff6_RX.mjs → schemas-DyJHJ8Pm.mjs} +1 -1
- package/dist/{schemas-C17AifUQ.d.mts → schemas-OaBqeEUT.d.mts} +156 -156
- package/dist/schemas-th_nuC5t.mjs +1 -0
- package/dist/semver-D3Y7uMEb.mjs +1 -0
- package/dist/service-base/index.d.mts +4 -3
- package/dist/service-base/index.mjs +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/execution-target/index.d.mts +1 -1
- package/dist/services/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +100 -100
- package/dist/services/index.mjs +1 -1
- package/dist/services/session/index.d.mts +5 -5
- 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/storage/schema.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +8 -8
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent/index.d.mts +2 -2
- package/dist/services/subagent/index.mjs +1 -1
- package/dist/services/subagent-template/index.d.mts +2 -2
- package/dist/services/subagent-template/namespace.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/{session-lRd8HZNZ.mjs → session-BxWogVkD.mjs} +1 -1
- package/dist/storage/drizzle/index.d.mts +8 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/tools/index.d.mts +1 -1
- package/dist/{tools-C8vqn1KY.mjs → tools-PC_L6g2m.mjs} +1 -1
- package/dist/{transition-Bfe8VVc1.d.mts → transition-CwUIm1hJ.d.mts} +8 -0
- package/dist/{types-q95p55BF.d.mts → types-DQsYUZwa.d.mts} +578 -267
- package/dist/ui-components/index.d.mts +4 -4
- package/dist/{version-C1-VD-XL.mjs → version-BbWrAPld.mjs} +1 -1
- package/dist/workflow-DFJYGjq_.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +670 -67
- 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/dist/workflow-worker-BEFjCccX.mjs +1 -0
- package/package.json +10 -9
- package/dist/loop-gate-handlers-0a3dIY8O.mjs +0 -1
- package/dist/package-0gVhAVkO.mjs +0 -7
- package/dist/package-BwvGaKwn.mjs +0 -1
- package/dist/schemas-D6lj9NMg.mjs +0 -1
- package/dist/semver-BccS1s9R.mjs +0 -1
- package/dist/workflow-CvVAZ89A.mjs +0 -1
- package/dist/workflow-worker-CudfEstp.mjs +0 -1
- /package/dist/{await-trigger-D623tvig.mjs → await-trigger-DP-fTQc4.mjs} +0 -0
- /package/dist/{descriptor-to-package-D5SWf6TL.mjs → descriptor-to-package-Rs-OjOQU.mjs} +0 -0
- /package/dist/{esm-oHhRYTEn.mjs → esm-C_WW4-pP.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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-DG9GSY8M.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";
|
|
5
5
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
6
|
-
import { JsonPatchOperation, JsonValue, WorkflowExecutionSchema, WorkflowListQuerySchema } from "@makaio/framework/contracts";
|
|
6
|
+
import { JsonPatchOperation, JsonValue, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
|
|
7
7
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
8
8
|
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
9
9
|
import * as _$_makaio_storage_drizzle0 from "@makaio/framework/storage/drizzle";
|
|
@@ -12,6 +12,15 @@ import * as _$drizzle_orm0 from "drizzle-orm";
|
|
|
12
12
|
import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
|
|
13
13
|
import { WorkflowExpressionContext } from "@makaio/framework/expression";
|
|
14
14
|
|
|
15
|
+
//#region subsystems/workflow-engine/src/workflow-execution-finalizer.d.ts
|
|
16
|
+
/** Runtime registration for one durable workflow success finalizer. */
|
|
17
|
+
interface WorkflowSuccessFinalizer {
|
|
18
|
+
/** Stable identity shared with durable finalization claims. */
|
|
19
|
+
readonly finalizerId: string;
|
|
20
|
+
/** Typed request subject receiving finalization claims. */
|
|
21
|
+
readonly finalizeSubject: ReturnType<typeof createWorkflowFinalizerNamespace>['subjects']['finalize'];
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
15
24
|
//#region subsystems/workflow-engine/src/storage/namespace.d.ts
|
|
16
25
|
/**
|
|
17
26
|
* Storage namespace for workflow persistence.
|
|
@@ -130,6 +139,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
130
139
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
131
140
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
132
141
|
}, z.core.$strict>], "kind">>;
|
|
142
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
133
143
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
134
144
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
135
145
|
kind: z.ZodLiteral<"path">;
|
|
@@ -246,6 +256,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
246
256
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
247
257
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
248
258
|
}, z.core.$strict>], "kind">>;
|
|
259
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
249
260
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
250
261
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
251
262
|
kind: z.ZodLiteral<"path">;
|
|
@@ -388,6 +399,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
388
399
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
389
400
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
390
401
|
}, z.core.$strict>], "kind">>;
|
|
402
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
391
403
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
392
404
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
393
405
|
kind: z.ZodLiteral<"path">;
|
|
@@ -423,9 +435,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
423
435
|
pending: "pending";
|
|
424
436
|
completed: "completed";
|
|
425
437
|
cancelled: "cancelled";
|
|
426
|
-
running: "running";
|
|
427
438
|
failed: "failed";
|
|
439
|
+
running: "running";
|
|
428
440
|
paused: "paused";
|
|
441
|
+
finalizing: "finalizing";
|
|
429
442
|
}>;
|
|
430
443
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
431
444
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -464,9 +477,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
464
477
|
pending: "pending";
|
|
465
478
|
completed: "completed";
|
|
466
479
|
cancelled: "cancelled";
|
|
467
|
-
running: "running";
|
|
468
480
|
failed: "failed";
|
|
481
|
+
running: "running";
|
|
469
482
|
paused: "paused";
|
|
483
|
+
finalizing: "finalizing";
|
|
470
484
|
}>;
|
|
471
485
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
472
486
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -512,9 +526,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
512
526
|
pending: "pending";
|
|
513
527
|
completed: "completed";
|
|
514
528
|
cancelled: "cancelled";
|
|
515
|
-
running: "running";
|
|
516
529
|
failed: "failed";
|
|
530
|
+
running: "running";
|
|
517
531
|
paused: "paused";
|
|
532
|
+
finalizing: "finalizing";
|
|
518
533
|
}>;
|
|
519
534
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
520
535
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -647,6 +662,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
647
662
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
648
663
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
649
664
|
}, z.core.$strict>], "kind">>;
|
|
665
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
650
666
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
651
667
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
652
668
|
kind: z.ZodLiteral<"path">;
|
|
@@ -733,6 +749,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
733
749
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
734
750
|
"exit-and-resume": "exit-and-resume";
|
|
735
751
|
}>>;
|
|
752
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
753
|
+
authority: "authority";
|
|
754
|
+
worker: "worker";
|
|
755
|
+
}>>;
|
|
736
756
|
}, z.core.$strip>;
|
|
737
757
|
initialState: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
738
758
|
executionLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -788,12 +808,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
788
808
|
frameId: z.ZodString;
|
|
789
809
|
nodeId: z.ZodString;
|
|
790
810
|
nodeType: z.ZodEnum<{
|
|
811
|
+
sequence: "sequence";
|
|
791
812
|
station: "station";
|
|
792
813
|
"delegate-agent": "delegate-agent";
|
|
793
814
|
"delegate-role": "delegate-role";
|
|
794
|
-
sequence: "sequence";
|
|
795
|
-
gate: "gate";
|
|
796
815
|
parallel: "parallel";
|
|
816
|
+
gate: "gate";
|
|
797
817
|
iterate: "iterate";
|
|
798
818
|
"iterate-chain": "iterate-chain";
|
|
799
819
|
loop: "loop";
|
|
@@ -833,12 +853,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
833
853
|
frameId: z.ZodString;
|
|
834
854
|
nodeId: z.ZodString;
|
|
835
855
|
nodeType: z.ZodEnum<{
|
|
856
|
+
sequence: "sequence";
|
|
836
857
|
station: "station";
|
|
837
858
|
"delegate-agent": "delegate-agent";
|
|
838
859
|
"delegate-role": "delegate-role";
|
|
839
|
-
sequence: "sequence";
|
|
840
|
-
gate: "gate";
|
|
841
860
|
parallel: "parallel";
|
|
861
|
+
gate: "gate";
|
|
842
862
|
iterate: "iterate";
|
|
843
863
|
"iterate-chain": "iterate-chain";
|
|
844
864
|
loop: "loop";
|
|
@@ -872,9 +892,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
872
892
|
pending: "pending";
|
|
873
893
|
completed: "completed";
|
|
874
894
|
cancelled: "cancelled";
|
|
875
|
-
running: "running";
|
|
876
895
|
failed: "failed";
|
|
896
|
+
running: "running";
|
|
877
897
|
paused: "paused";
|
|
898
|
+
finalizing: "finalizing";
|
|
878
899
|
}>>;
|
|
879
900
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
880
901
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -883,7 +904,134 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
883
904
|
response: z.ZodObject<{
|
|
884
905
|
success: z.ZodBoolean;
|
|
885
906
|
}, z.core.$strip>;
|
|
886
|
-
};
|
|
907
|
+
}; /** Atomically park an execution only while it remains running. */
|
|
908
|
+
pauseRunningExecution: _$_makaio_core0.LocalSubjectSchema<{
|
|
909
|
+
request: z.ZodObject<{
|
|
910
|
+
executionId: z.ZodString;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
response: z.ZodObject<{
|
|
913
|
+
paused: z.ZodBoolean;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
}>; /** Atomically claim the sole terminal transition for a running execution. */
|
|
916
|
+
claimFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
917
|
+
request: z.ZodObject<{
|
|
918
|
+
claim: z.ZodObject<{
|
|
919
|
+
executionId: z.ZodString;
|
|
920
|
+
workflowId: z.ZodString;
|
|
921
|
+
finalizerId: z.ZodString;
|
|
922
|
+
transitionKey: z.ZodString;
|
|
923
|
+
claimToken: z.ZodString;
|
|
924
|
+
intent: z.ZodObject<{
|
|
925
|
+
status: z.ZodEnum<{
|
|
926
|
+
completed: "completed";
|
|
927
|
+
cancelled: "cancelled";
|
|
928
|
+
failed: "failed";
|
|
929
|
+
}>;
|
|
930
|
+
completedAt: z.ZodNumber;
|
|
931
|
+
error: z.ZodOptional<z.ZodString>;
|
|
932
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, z.core.$strict>;
|
|
934
|
+
claimedAt: z.ZodNumber;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
}, z.core.$strip>;
|
|
937
|
+
response: z.ZodObject<{
|
|
938
|
+
claimed: z.ZodBoolean;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
}>; /** Recover unsettled claims owned by one finalizer after restart. */
|
|
941
|
+
listClaimedFinalizations: _$_makaio_core0.LocalSubjectSchema<{
|
|
942
|
+
request: z.ZodObject<{
|
|
943
|
+
finalizerId: z.ZodString;
|
|
944
|
+
}, z.core.$strip>;
|
|
945
|
+
response: z.ZodObject<{
|
|
946
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
947
|
+
executionId: z.ZodString;
|
|
948
|
+
workflowId: z.ZodString;
|
|
949
|
+
finalizerId: z.ZodString;
|
|
950
|
+
transitionKey: z.ZodString;
|
|
951
|
+
claimToken: z.ZodString;
|
|
952
|
+
intent: z.ZodObject<{
|
|
953
|
+
status: z.ZodEnum<{
|
|
954
|
+
completed: "completed";
|
|
955
|
+
cancelled: "cancelled";
|
|
956
|
+
failed: "failed";
|
|
957
|
+
}>;
|
|
958
|
+
completedAt: z.ZodNumber;
|
|
959
|
+
error: z.ZodOptional<z.ZodString>;
|
|
960
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strict>;
|
|
962
|
+
claimedAt: z.ZodNumber;
|
|
963
|
+
}, z.core.$strict>>;
|
|
964
|
+
}, z.core.$strip>;
|
|
965
|
+
}>; /** Recover settled terminal transitions whose lifecycle event was not durably marked published. */
|
|
966
|
+
listUnpublishedFinalizations: _$_makaio_core0.LocalSubjectSchema<{
|
|
967
|
+
request: z.ZodObject<{
|
|
968
|
+
finalizerId: z.ZodString;
|
|
969
|
+
}, z.core.$strip>;
|
|
970
|
+
response: z.ZodObject<{
|
|
971
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
972
|
+
executionId: z.ZodString;
|
|
973
|
+
workflowId: z.ZodString;
|
|
974
|
+
finalizerId: z.ZodString;
|
|
975
|
+
transitionKey: z.ZodString;
|
|
976
|
+
claimToken: z.ZodString;
|
|
977
|
+
intent: z.ZodObject<{
|
|
978
|
+
status: z.ZodEnum<{
|
|
979
|
+
completed: "completed";
|
|
980
|
+
cancelled: "cancelled";
|
|
981
|
+
failed: "failed";
|
|
982
|
+
}>;
|
|
983
|
+
completedAt: z.ZodNumber;
|
|
984
|
+
error: z.ZodOptional<z.ZodString>;
|
|
985
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
claimedAt: z.ZodNumber;
|
|
988
|
+
}, z.core.$strict>>;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
}>; /** Replay a settled terminal lifecycle event until its publication is durably recorded. */
|
|
991
|
+
publishFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
992
|
+
request: z.ZodObject<{
|
|
993
|
+
claim: z.ZodObject<{
|
|
994
|
+
executionId: z.ZodString;
|
|
995
|
+
workflowId: z.ZodString;
|
|
996
|
+
finalizerId: z.ZodString;
|
|
997
|
+
transitionKey: z.ZodString;
|
|
998
|
+
claimToken: z.ZodString;
|
|
999
|
+
intent: z.ZodObject<{
|
|
1000
|
+
status: z.ZodEnum<{
|
|
1001
|
+
completed: "completed";
|
|
1002
|
+
cancelled: "cancelled";
|
|
1003
|
+
failed: "failed";
|
|
1004
|
+
}>;
|
|
1005
|
+
completedAt: z.ZodNumber;
|
|
1006
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
}, z.core.$strict>;
|
|
1009
|
+
claimedAt: z.ZodNumber;
|
|
1010
|
+
}, z.core.$strict>;
|
|
1011
|
+
}, z.core.$strip>;
|
|
1012
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
1013
|
+
}>; /** Commit the claimed intended terminal state exactly once. */
|
|
1014
|
+
acknowledgeFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
1015
|
+
request: z.ZodObject<{
|
|
1016
|
+
executionId: z.ZodString;
|
|
1017
|
+
claimToken: z.ZodString;
|
|
1018
|
+
settledAt: z.ZodNumber;
|
|
1019
|
+
}, z.core.$strip>;
|
|
1020
|
+
response: z.ZodObject<{
|
|
1021
|
+
acknowledged: z.ZodBoolean;
|
|
1022
|
+
}, z.core.$strip>;
|
|
1023
|
+
}>; /** Permanently fail a claimed transition and terminalize the execution as failed. */
|
|
1024
|
+
failFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
1025
|
+
request: z.ZodObject<{
|
|
1026
|
+
executionId: z.ZodString;
|
|
1027
|
+
claimToken: z.ZodString;
|
|
1028
|
+
error: z.ZodString;
|
|
1029
|
+
settledAt: z.ZodNumber;
|
|
1030
|
+
}, z.core.$strip>;
|
|
1031
|
+
response: z.ZodObject<{
|
|
1032
|
+
failed: z.ZodBoolean;
|
|
1033
|
+
}, z.core.$strip>;
|
|
1034
|
+
}>;
|
|
887
1035
|
/**
|
|
888
1036
|
* Cancel a paused execution and all of its still-waiting gate instances in
|
|
889
1037
|
* one transaction.
|
|
@@ -941,9 +1089,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
941
1089
|
pending: "pending";
|
|
942
1090
|
completed: "completed";
|
|
943
1091
|
cancelled: "cancelled";
|
|
944
|
-
running: "running";
|
|
945
1092
|
failed: "failed";
|
|
1093
|
+
running: "running";
|
|
946
1094
|
paused: "paused";
|
|
1095
|
+
finalizing: "finalizing";
|
|
947
1096
|
}>>;
|
|
948
1097
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
949
1098
|
kind: z.ZodString;
|
|
@@ -964,9 +1113,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
964
1113
|
pending: "pending";
|
|
965
1114
|
completed: "completed";
|
|
966
1115
|
cancelled: "cancelled";
|
|
967
|
-
running: "running";
|
|
968
1116
|
failed: "failed";
|
|
1117
|
+
running: "running";
|
|
969
1118
|
paused: "paused";
|
|
1119
|
+
finalizing: "finalizing";
|
|
970
1120
|
}>;
|
|
971
1121
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
972
1122
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -1016,9 +1166,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1016
1166
|
pending: "pending";
|
|
1017
1167
|
completed: "completed";
|
|
1018
1168
|
cancelled: "cancelled";
|
|
1019
|
-
running: "running";
|
|
1020
1169
|
failed: "failed";
|
|
1170
|
+
running: "running";
|
|
1021
1171
|
paused: "paused";
|
|
1172
|
+
finalizing: "finalizing";
|
|
1022
1173
|
}>;
|
|
1023
1174
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
1024
1175
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -1060,12 +1211,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1060
1211
|
frameId: z.ZodString;
|
|
1061
1212
|
nodeId: z.ZodString;
|
|
1062
1213
|
nodeType: z.ZodEnum<{
|
|
1214
|
+
sequence: "sequence";
|
|
1063
1215
|
station: "station";
|
|
1064
1216
|
"delegate-agent": "delegate-agent";
|
|
1065
1217
|
"delegate-role": "delegate-role";
|
|
1066
|
-
sequence: "sequence";
|
|
1067
|
-
gate: "gate";
|
|
1068
1218
|
parallel: "parallel";
|
|
1219
|
+
gate: "gate";
|
|
1069
1220
|
iterate: "iterate";
|
|
1070
1221
|
"iterate-chain": "iterate-chain";
|
|
1071
1222
|
loop: "loop";
|
|
@@ -1076,8 +1227,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1076
1227
|
pending: "pending";
|
|
1077
1228
|
completed: "completed";
|
|
1078
1229
|
cancelled: "cancelled";
|
|
1079
|
-
running: "running";
|
|
1080
1230
|
failed: "failed";
|
|
1231
|
+
running: "running";
|
|
1081
1232
|
skipped: "skipped";
|
|
1082
1233
|
waiting: "waiting";
|
|
1083
1234
|
}>;
|
|
@@ -1106,12 +1257,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1106
1257
|
frameId: z.ZodString;
|
|
1107
1258
|
nodeId: z.ZodString;
|
|
1108
1259
|
nodeType: z.ZodEnum<{
|
|
1260
|
+
sequence: "sequence";
|
|
1109
1261
|
station: "station";
|
|
1110
1262
|
"delegate-agent": "delegate-agent";
|
|
1111
1263
|
"delegate-role": "delegate-role";
|
|
1112
|
-
sequence: "sequence";
|
|
1113
|
-
gate: "gate";
|
|
1114
1264
|
parallel: "parallel";
|
|
1265
|
+
gate: "gate";
|
|
1115
1266
|
iterate: "iterate";
|
|
1116
1267
|
"iterate-chain": "iterate-chain";
|
|
1117
1268
|
loop: "loop";
|
|
@@ -1122,8 +1273,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1122
1273
|
pending: "pending";
|
|
1123
1274
|
completed: "completed";
|
|
1124
1275
|
cancelled: "cancelled";
|
|
1125
|
-
running: "running";
|
|
1126
1276
|
failed: "failed";
|
|
1277
|
+
running: "running";
|
|
1127
1278
|
skipped: "skipped";
|
|
1128
1279
|
waiting: "waiting";
|
|
1129
1280
|
}>;
|
|
@@ -1149,12 +1300,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1149
1300
|
frameId: z.ZodString;
|
|
1150
1301
|
nodeId: z.ZodString;
|
|
1151
1302
|
nodeType: z.ZodEnum<{
|
|
1303
|
+
sequence: "sequence";
|
|
1152
1304
|
station: "station";
|
|
1153
1305
|
"delegate-agent": "delegate-agent";
|
|
1154
1306
|
"delegate-role": "delegate-role";
|
|
1155
|
-
sequence: "sequence";
|
|
1156
|
-
gate: "gate";
|
|
1157
1307
|
parallel: "parallel";
|
|
1308
|
+
gate: "gate";
|
|
1158
1309
|
iterate: "iterate";
|
|
1159
1310
|
"iterate-chain": "iterate-chain";
|
|
1160
1311
|
loop: "loop";
|
|
@@ -1165,8 +1316,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1165
1316
|
pending: "pending";
|
|
1166
1317
|
completed: "completed";
|
|
1167
1318
|
cancelled: "cancelled";
|
|
1168
|
-
running: "running";
|
|
1169
1319
|
failed: "failed";
|
|
1320
|
+
running: "running";
|
|
1170
1321
|
skipped: "skipped";
|
|
1171
1322
|
waiting: "waiting";
|
|
1172
1323
|
}>;
|
|
@@ -1433,8 +1584,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1433
1584
|
}>;
|
|
1434
1585
|
status: z.ZodEnum<{
|
|
1435
1586
|
completed: "completed";
|
|
1436
|
-
running: "running";
|
|
1437
1587
|
failed: "failed";
|
|
1588
|
+
running: "running";
|
|
1438
1589
|
skipped: "skipped";
|
|
1439
1590
|
}>;
|
|
1440
1591
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1469,8 +1620,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1469
1620
|
}>;
|
|
1470
1621
|
status: z.ZodEnum<{
|
|
1471
1622
|
completed: "completed";
|
|
1472
|
-
running: "running";
|
|
1473
1623
|
failed: "failed";
|
|
1624
|
+
running: "running";
|
|
1474
1625
|
skipped: "skipped";
|
|
1475
1626
|
}>;
|
|
1476
1627
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1632,6 +1783,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1632
1783
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
1633
1784
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1634
1785
|
}, z.core.$strict>], "kind">>;
|
|
1786
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
1635
1787
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
1636
1788
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1637
1789
|
kind: z.ZodLiteral<"path">;
|
|
@@ -1718,7 +1870,12 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1718
1870
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
1719
1871
|
"exit-and-resume": "exit-and-resume";
|
|
1720
1872
|
}>>;
|
|
1873
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
1874
|
+
authority: "authority";
|
|
1875
|
+
worker: "worker";
|
|
1876
|
+
}>>;
|
|
1721
1877
|
}, z.core.$strip>;
|
|
1878
|
+
initialState: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
1722
1879
|
}, z.core.$strip>;
|
|
1723
1880
|
response: z.ZodObject<{
|
|
1724
1881
|
executionId: z.ZodString;
|
|
@@ -1839,6 +1996,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1839
1996
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
1840
1997
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
1841
1998
|
}, z.core.$strict>], "kind">>;
|
|
1999
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
1842
2000
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
1843
2001
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1844
2002
|
kind: z.ZodLiteral<"path">;
|
|
@@ -1925,6 +2083,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1925
2083
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
1926
2084
|
"exit-and-resume": "exit-and-resume";
|
|
1927
2085
|
}>>;
|
|
2086
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
2087
|
+
authority: "authority";
|
|
2088
|
+
worker: "worker";
|
|
2089
|
+
}>>;
|
|
1928
2090
|
}, z.core.$strip>>;
|
|
1929
2091
|
}, z.core.$strip>;
|
|
1930
2092
|
}>; /** Initialize execution state snapshot at sequence 0. */
|
|
@@ -2054,6 +2216,25 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2054
2216
|
syncedAt?: string | undefined;
|
|
2055
2217
|
};
|
|
2056
2218
|
}>;
|
|
2219
|
+
successFinalizerId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2220
|
+
name: "success_finalizer_id";
|
|
2221
|
+
tableName: "workflow_definitions";
|
|
2222
|
+
dataType: "string";
|
|
2223
|
+
columnType: "SQLiteText";
|
|
2224
|
+
data: string;
|
|
2225
|
+
driverParam: string;
|
|
2226
|
+
notNull: false;
|
|
2227
|
+
hasDefault: false;
|
|
2228
|
+
isPrimaryKey: false;
|
|
2229
|
+
isAutoincrement: false;
|
|
2230
|
+
hasRuntimeDefault: false;
|
|
2231
|
+
enumValues: [string, ...string[]];
|
|
2232
|
+
baseColumn: never;
|
|
2233
|
+
identity: undefined;
|
|
2234
|
+
generated: undefined;
|
|
2235
|
+
}, {}, {
|
|
2236
|
+
length: number | undefined;
|
|
2237
|
+
}>;
|
|
2057
2238
|
executionHints: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2058
2239
|
name: string;
|
|
2059
2240
|
tableName: "workflow_definitions";
|
|
@@ -2596,14 +2777,14 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2596
2777
|
tableName: "workflow_executions";
|
|
2597
2778
|
dataType: "string";
|
|
2598
2779
|
columnType: "SQLiteText";
|
|
2599
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
2780
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
|
|
2600
2781
|
driverParam: string;
|
|
2601
2782
|
notNull: true;
|
|
2602
2783
|
hasDefault: false;
|
|
2603
2784
|
isPrimaryKey: false;
|
|
2604
2785
|
isAutoincrement: false;
|
|
2605
2786
|
hasRuntimeDefault: false;
|
|
2606
|
-
enumValues: ["pending", "running", "paused", "completed", "failed", "cancelled"];
|
|
2787
|
+
enumValues: ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"];
|
|
2607
2788
|
baseColumn: never;
|
|
2608
2789
|
identity: undefined;
|
|
2609
2790
|
generated: undefined;
|
|
@@ -2865,7 +3046,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2865
3046
|
tableName: "workflow_execution_frames";
|
|
2866
3047
|
dataType: "string";
|
|
2867
3048
|
columnType: "SQLiteText";
|
|
2868
|
-
data: "station" | "delegate-agent" | "delegate-role" | "
|
|
3049
|
+
data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
2869
3050
|
driverParam: string;
|
|
2870
3051
|
notNull: true;
|
|
2871
3052
|
hasDefault: false;
|
|
@@ -2878,7 +3059,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2878
3059
|
generated: undefined;
|
|
2879
3060
|
}, {}, {
|
|
2880
3061
|
length: number | undefined;
|
|
2881
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "
|
|
3062
|
+
$type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
2882
3063
|
}>;
|
|
2883
3064
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2884
3065
|
name: string;
|
|
@@ -2923,7 +3104,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2923
3104
|
tableName: "workflow_execution_frames";
|
|
2924
3105
|
dataType: "string";
|
|
2925
3106
|
columnType: "SQLiteText";
|
|
2926
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
3107
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
2927
3108
|
driverParam: string;
|
|
2928
3109
|
notNull: true;
|
|
2929
3110
|
hasDefault: true;
|
|
@@ -2936,7 +3117,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2936
3117
|
generated: undefined;
|
|
2937
3118
|
}, {}, {
|
|
2938
3119
|
length: number | undefined;
|
|
2939
|
-
$type: "pending" | "completed" | "cancelled" | "
|
|
3120
|
+
$type: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
2940
3121
|
}>;
|
|
2941
3122
|
attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2942
3123
|
name: string;
|
|
@@ -3434,7 +3615,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3434
3615
|
tableName: "workflow_step_spans";
|
|
3435
3616
|
dataType: "string";
|
|
3436
3617
|
columnType: "SQLiteText";
|
|
3437
|
-
data: "completed" | "
|
|
3618
|
+
data: "completed" | "failed" | "running" | "skipped";
|
|
3438
3619
|
driverParam: string;
|
|
3439
3620
|
notNull: true;
|
|
3440
3621
|
hasDefault: false;
|
|
@@ -3447,7 +3628,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3447
3628
|
generated: undefined;
|
|
3448
3629
|
}, {}, {
|
|
3449
3630
|
length: number | undefined;
|
|
3450
|
-
$type: "completed" | "
|
|
3631
|
+
$type: "completed" | "failed" | "running" | "skipped";
|
|
3451
3632
|
}>;
|
|
3452
3633
|
startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3453
3634
|
name: string;
|
|
@@ -3927,6 +4108,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3927
4108
|
externalId?: string | undefined;
|
|
3928
4109
|
syncedAt?: string | undefined;
|
|
3929
4110
|
} | undefined;
|
|
4111
|
+
successFinalizerId?: string | undefined;
|
|
3930
4112
|
executionHints?: {
|
|
3931
4113
|
[x: string]: _$_makaio_contracts0.JsonValue;
|
|
3932
4114
|
source?: {
|
|
@@ -4048,6 +4230,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4048
4230
|
externalId?: string | undefined;
|
|
4049
4231
|
syncedAt?: string | undefined;
|
|
4050
4232
|
} | undefined;
|
|
4233
|
+
successFinalizerId?: string | undefined;
|
|
4051
4234
|
executionHints?: {
|
|
4052
4235
|
[x: string]: _$_makaio_contracts0.JsonValue;
|
|
4053
4236
|
source?: {
|
|
@@ -4412,6 +4595,26 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4412
4595
|
length: number | undefined;
|
|
4413
4596
|
$type: "wait-in-process" | "exit-and-redispatch" | "exit-and-resume";
|
|
4414
4597
|
}>;
|
|
4598
|
+
terminalAuthority: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4599
|
+
name: "terminal_authority";
|
|
4600
|
+
tableName: "workflow_run_contexts";
|
|
4601
|
+
dataType: "string";
|
|
4602
|
+
columnType: "SQLiteText";
|
|
4603
|
+
data: "authority" | "worker" | undefined;
|
|
4604
|
+
driverParam: string;
|
|
4605
|
+
notNull: false;
|
|
4606
|
+
hasDefault: false;
|
|
4607
|
+
isPrimaryKey: false;
|
|
4608
|
+
isAutoincrement: false;
|
|
4609
|
+
hasRuntimeDefault: false;
|
|
4610
|
+
enumValues: [string, ...string[]];
|
|
4611
|
+
baseColumn: never;
|
|
4612
|
+
identity: undefined;
|
|
4613
|
+
generated: undefined;
|
|
4614
|
+
}, {}, {
|
|
4615
|
+
length: number | undefined;
|
|
4616
|
+
$type: "authority" | "worker" | undefined;
|
|
4617
|
+
}>;
|
|
4415
4618
|
};
|
|
4416
4619
|
dialect: "sqlite";
|
|
4417
4620
|
}>;
|
|
@@ -4481,14 +4684,14 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4481
4684
|
tableName: "worklog_summaries";
|
|
4482
4685
|
dataType: "string";
|
|
4483
4686
|
columnType: "SQLiteText";
|
|
4484
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
4687
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "paused" | "finalizing";
|
|
4485
4688
|
driverParam: string;
|
|
4486
4689
|
notNull: true;
|
|
4487
4690
|
hasDefault: false;
|
|
4488
4691
|
isPrimaryKey: false;
|
|
4489
4692
|
isAutoincrement: false;
|
|
4490
4693
|
hasRuntimeDefault: false;
|
|
4491
|
-
enumValues: ["pending", "running", "paused", "completed", "failed", "cancelled"];
|
|
4694
|
+
enumValues: ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"];
|
|
4492
4695
|
baseColumn: never;
|
|
4493
4696
|
identity: undefined;
|
|
4494
4697
|
generated: undefined;
|
|
@@ -4704,7 +4907,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4704
4907
|
tableName: "worklog_frame_entries";
|
|
4705
4908
|
dataType: "string";
|
|
4706
4909
|
columnType: "SQLiteText";
|
|
4707
|
-
data: "station" | "delegate-agent" | "delegate-role" | "
|
|
4910
|
+
data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
4708
4911
|
driverParam: string;
|
|
4709
4912
|
notNull: true;
|
|
4710
4913
|
hasDefault: false;
|
|
@@ -4717,7 +4920,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4717
4920
|
generated: undefined;
|
|
4718
4921
|
}, {}, {
|
|
4719
4922
|
length: number | undefined;
|
|
4720
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "
|
|
4923
|
+
$type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
4721
4924
|
}>;
|
|
4722
4925
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4723
4926
|
name: string;
|
|
@@ -4743,7 +4946,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4743
4946
|
tableName: "worklog_frame_entries";
|
|
4744
4947
|
dataType: "string";
|
|
4745
4948
|
columnType: "SQLiteText";
|
|
4746
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
4949
|
+
data: "pending" | "completed" | "cancelled" | "failed" | "running" | "skipped" | "waiting";
|
|
4747
4950
|
driverParam: string;
|
|
4748
4951
|
notNull: true;
|
|
4749
4952
|
hasDefault: false;
|
|
@@ -5444,6 +5647,226 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
5444
5647
|
};
|
|
5445
5648
|
dialect: "sqlite";
|
|
5446
5649
|
}>;
|
|
5650
|
+
workflowFinalizations: _$drizzle_orm_sqlite_core0.SQLiteTableWithColumns<{
|
|
5651
|
+
name: "workflow_finalizations";
|
|
5652
|
+
schema: undefined;
|
|
5653
|
+
columns: {
|
|
5654
|
+
executionId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5655
|
+
name: "execution_id";
|
|
5656
|
+
tableName: "workflow_finalizations";
|
|
5657
|
+
dataType: "string";
|
|
5658
|
+
columnType: "SQLiteText";
|
|
5659
|
+
data: string;
|
|
5660
|
+
driverParam: string;
|
|
5661
|
+
notNull: true;
|
|
5662
|
+
hasDefault: false;
|
|
5663
|
+
isPrimaryKey: true;
|
|
5664
|
+
isAutoincrement: false;
|
|
5665
|
+
hasRuntimeDefault: false;
|
|
5666
|
+
enumValues: [string, ...string[]];
|
|
5667
|
+
baseColumn: never;
|
|
5668
|
+
identity: undefined;
|
|
5669
|
+
generated: undefined;
|
|
5670
|
+
}, {}, {
|
|
5671
|
+
length: number | undefined;
|
|
5672
|
+
}>;
|
|
5673
|
+
workflowId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5674
|
+
name: "workflow_id";
|
|
5675
|
+
tableName: "workflow_finalizations";
|
|
5676
|
+
dataType: "string";
|
|
5677
|
+
columnType: "SQLiteText";
|
|
5678
|
+
data: string;
|
|
5679
|
+
driverParam: string;
|
|
5680
|
+
notNull: true;
|
|
5681
|
+
hasDefault: false;
|
|
5682
|
+
isPrimaryKey: false;
|
|
5683
|
+
isAutoincrement: false;
|
|
5684
|
+
hasRuntimeDefault: false;
|
|
5685
|
+
enumValues: [string, ...string[]];
|
|
5686
|
+
baseColumn: never;
|
|
5687
|
+
identity: undefined;
|
|
5688
|
+
generated: undefined;
|
|
5689
|
+
}, {}, {
|
|
5690
|
+
length: number | undefined;
|
|
5691
|
+
}>;
|
|
5692
|
+
finalizerId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5693
|
+
name: "finalizer_id";
|
|
5694
|
+
tableName: "workflow_finalizations";
|
|
5695
|
+
dataType: "string";
|
|
5696
|
+
columnType: "SQLiteText";
|
|
5697
|
+
data: string;
|
|
5698
|
+
driverParam: string;
|
|
5699
|
+
notNull: true;
|
|
5700
|
+
hasDefault: false;
|
|
5701
|
+
isPrimaryKey: false;
|
|
5702
|
+
isAutoincrement: false;
|
|
5703
|
+
hasRuntimeDefault: false;
|
|
5704
|
+
enumValues: [string, ...string[]];
|
|
5705
|
+
baseColumn: never;
|
|
5706
|
+
identity: undefined;
|
|
5707
|
+
generated: undefined;
|
|
5708
|
+
}, {}, {
|
|
5709
|
+
length: number | undefined;
|
|
5710
|
+
}>;
|
|
5711
|
+
transitionKey: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5712
|
+
name: "transition_key";
|
|
5713
|
+
tableName: "workflow_finalizations";
|
|
5714
|
+
dataType: "string";
|
|
5715
|
+
columnType: "SQLiteText";
|
|
5716
|
+
data: string;
|
|
5717
|
+
driverParam: string;
|
|
5718
|
+
notNull: true;
|
|
5719
|
+
hasDefault: false;
|
|
5720
|
+
isPrimaryKey: false;
|
|
5721
|
+
isAutoincrement: false;
|
|
5722
|
+
hasRuntimeDefault: false;
|
|
5723
|
+
enumValues: [string, ...string[]];
|
|
5724
|
+
baseColumn: never;
|
|
5725
|
+
identity: undefined;
|
|
5726
|
+
generated: undefined;
|
|
5727
|
+
}, {}, {
|
|
5728
|
+
length: number | undefined;
|
|
5729
|
+
}>;
|
|
5730
|
+
claimToken: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5731
|
+
name: "claim_token";
|
|
5732
|
+
tableName: "workflow_finalizations";
|
|
5733
|
+
dataType: "string";
|
|
5734
|
+
columnType: "SQLiteText";
|
|
5735
|
+
data: string;
|
|
5736
|
+
driverParam: string;
|
|
5737
|
+
notNull: true;
|
|
5738
|
+
hasDefault: false;
|
|
5739
|
+
isPrimaryKey: false;
|
|
5740
|
+
isAutoincrement: false;
|
|
5741
|
+
hasRuntimeDefault: false;
|
|
5742
|
+
enumValues: [string, ...string[]];
|
|
5743
|
+
baseColumn: never;
|
|
5744
|
+
identity: undefined;
|
|
5745
|
+
generated: undefined;
|
|
5746
|
+
}, {}, {
|
|
5747
|
+
length: number | undefined;
|
|
5748
|
+
}>;
|
|
5749
|
+
intent: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5750
|
+
name: string;
|
|
5751
|
+
tableName: "workflow_finalizations";
|
|
5752
|
+
dataType: "json";
|
|
5753
|
+
columnType: "SQLiteTextJson";
|
|
5754
|
+
data: {
|
|
5755
|
+
status: "completed" | "cancelled" | "failed";
|
|
5756
|
+
completedAt: number;
|
|
5757
|
+
error?: string | undefined;
|
|
5758
|
+
reason?: string | undefined;
|
|
5759
|
+
};
|
|
5760
|
+
driverParam: string;
|
|
5761
|
+
notNull: true;
|
|
5762
|
+
hasDefault: false;
|
|
5763
|
+
isPrimaryKey: false;
|
|
5764
|
+
isAutoincrement: false;
|
|
5765
|
+
hasRuntimeDefault: false;
|
|
5766
|
+
enumValues: undefined;
|
|
5767
|
+
baseColumn: never;
|
|
5768
|
+
identity: undefined;
|
|
5769
|
+
generated: undefined;
|
|
5770
|
+
}, {}, {
|
|
5771
|
+
$type: {
|
|
5772
|
+
status: "completed" | "cancelled" | "failed";
|
|
5773
|
+
completedAt: number;
|
|
5774
|
+
error?: string | undefined;
|
|
5775
|
+
reason?: string | undefined;
|
|
5776
|
+
};
|
|
5777
|
+
}>;
|
|
5778
|
+
state: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5779
|
+
name: "state";
|
|
5780
|
+
tableName: "workflow_finalizations";
|
|
5781
|
+
dataType: "string";
|
|
5782
|
+
columnType: "SQLiteText";
|
|
5783
|
+
data: "failed" | "acknowledged" | "claimed";
|
|
5784
|
+
driverParam: string;
|
|
5785
|
+
notNull: true;
|
|
5786
|
+
hasDefault: false;
|
|
5787
|
+
isPrimaryKey: false;
|
|
5788
|
+
isAutoincrement: false;
|
|
5789
|
+
hasRuntimeDefault: false;
|
|
5790
|
+
enumValues: ["claimed", "acknowledged", "failed"];
|
|
5791
|
+
baseColumn: never;
|
|
5792
|
+
identity: undefined;
|
|
5793
|
+
generated: undefined;
|
|
5794
|
+
}, {}, {
|
|
5795
|
+
length: number | undefined;
|
|
5796
|
+
}>;
|
|
5797
|
+
claimedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5798
|
+
name: string;
|
|
5799
|
+
tableName: "workflow_finalizations";
|
|
5800
|
+
dataType: "number";
|
|
5801
|
+
columnType: "SQLiteInteger";
|
|
5802
|
+
data: number;
|
|
5803
|
+
driverParam: number;
|
|
5804
|
+
notNull: true;
|
|
5805
|
+
hasDefault: false;
|
|
5806
|
+
isPrimaryKey: false;
|
|
5807
|
+
isAutoincrement: false;
|
|
5808
|
+
hasRuntimeDefault: false;
|
|
5809
|
+
enumValues: undefined;
|
|
5810
|
+
baseColumn: never;
|
|
5811
|
+
identity: undefined;
|
|
5812
|
+
generated: undefined;
|
|
5813
|
+
}, {}, {}>;
|
|
5814
|
+
settledAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5815
|
+
name: string;
|
|
5816
|
+
tableName: "workflow_finalizations";
|
|
5817
|
+
dataType: "number";
|
|
5818
|
+
columnType: "SQLiteInteger";
|
|
5819
|
+
data: number;
|
|
5820
|
+
driverParam: number;
|
|
5821
|
+
notNull: false;
|
|
5822
|
+
hasDefault: false;
|
|
5823
|
+
isPrimaryKey: false;
|
|
5824
|
+
isAutoincrement: false;
|
|
5825
|
+
hasRuntimeDefault: false;
|
|
5826
|
+
enumValues: undefined;
|
|
5827
|
+
baseColumn: never;
|
|
5828
|
+
identity: undefined;
|
|
5829
|
+
generated: undefined;
|
|
5830
|
+
}, {}, {}>;
|
|
5831
|
+
failure: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5832
|
+
name: "failure";
|
|
5833
|
+
tableName: "workflow_finalizations";
|
|
5834
|
+
dataType: "string";
|
|
5835
|
+
columnType: "SQLiteText";
|
|
5836
|
+
data: string;
|
|
5837
|
+
driverParam: string;
|
|
5838
|
+
notNull: false;
|
|
5839
|
+
hasDefault: false;
|
|
5840
|
+
isPrimaryKey: false;
|
|
5841
|
+
isAutoincrement: false;
|
|
5842
|
+
hasRuntimeDefault: false;
|
|
5843
|
+
enumValues: [string, ...string[]];
|
|
5844
|
+
baseColumn: never;
|
|
5845
|
+
identity: undefined;
|
|
5846
|
+
generated: undefined;
|
|
5847
|
+
}, {}, {
|
|
5848
|
+
length: number | undefined;
|
|
5849
|
+
}>;
|
|
5850
|
+
publishedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
5851
|
+
name: string;
|
|
5852
|
+
tableName: "workflow_finalizations";
|
|
5853
|
+
dataType: "number";
|
|
5854
|
+
columnType: "SQLiteInteger";
|
|
5855
|
+
data: number;
|
|
5856
|
+
driverParam: number;
|
|
5857
|
+
notNull: false;
|
|
5858
|
+
hasDefault: false;
|
|
5859
|
+
isPrimaryKey: false;
|
|
5860
|
+
isAutoincrement: false;
|
|
5861
|
+
hasRuntimeDefault: false;
|
|
5862
|
+
enumValues: undefined;
|
|
5863
|
+
baseColumn: never;
|
|
5864
|
+
identity: undefined;
|
|
5865
|
+
generated: undefined;
|
|
5866
|
+
}, {}, {}>;
|
|
5867
|
+
};
|
|
5868
|
+
dialect: "sqlite";
|
|
5869
|
+
}>;
|
|
5447
5870
|
};
|
|
5448
5871
|
}>;
|
|
5449
5872
|
declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"storage:workflow", {
|
|
@@ -5544,6 +5967,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5544
5967
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
5545
5968
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
5546
5969
|
}, z.core.$strict>], "kind">>;
|
|
5970
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
5547
5971
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
5548
5972
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5549
5973
|
kind: z.ZodLiteral<"path">;
|
|
@@ -5660,6 +6084,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5660
6084
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
5661
6085
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
5662
6086
|
}, z.core.$strict>], "kind">>;
|
|
6087
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
5663
6088
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
5664
6089
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5665
6090
|
kind: z.ZodLiteral<"path">;
|
|
@@ -5802,6 +6227,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5802
6227
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
5803
6228
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
5804
6229
|
}, z.core.$strict>], "kind">>;
|
|
6230
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
5805
6231
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
5806
6232
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5807
6233
|
kind: z.ZodLiteral<"path">;
|
|
@@ -5837,9 +6263,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5837
6263
|
pending: "pending";
|
|
5838
6264
|
completed: "completed";
|
|
5839
6265
|
cancelled: "cancelled";
|
|
5840
|
-
running: "running";
|
|
5841
6266
|
failed: "failed";
|
|
6267
|
+
running: "running";
|
|
5842
6268
|
paused: "paused";
|
|
6269
|
+
finalizing: "finalizing";
|
|
5843
6270
|
}>;
|
|
5844
6271
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
5845
6272
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -5878,9 +6305,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5878
6305
|
pending: "pending";
|
|
5879
6306
|
completed: "completed";
|
|
5880
6307
|
cancelled: "cancelled";
|
|
5881
|
-
running: "running";
|
|
5882
6308
|
failed: "failed";
|
|
6309
|
+
running: "running";
|
|
5883
6310
|
paused: "paused";
|
|
6311
|
+
finalizing: "finalizing";
|
|
5884
6312
|
}>;
|
|
5885
6313
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
5886
6314
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -5926,9 +6354,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
5926
6354
|
pending: "pending";
|
|
5927
6355
|
completed: "completed";
|
|
5928
6356
|
cancelled: "cancelled";
|
|
5929
|
-
running: "running";
|
|
5930
6357
|
failed: "failed";
|
|
6358
|
+
running: "running";
|
|
5931
6359
|
paused: "paused";
|
|
6360
|
+
finalizing: "finalizing";
|
|
5932
6361
|
}>;
|
|
5933
6362
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
5934
6363
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6061,6 +6490,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6061
6490
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
6062
6491
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
6063
6492
|
}, z.core.$strict>], "kind">>;
|
|
6493
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
6064
6494
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
6065
6495
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6066
6496
|
kind: z.ZodLiteral<"path">;
|
|
@@ -6147,6 +6577,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6147
6577
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
6148
6578
|
"exit-and-resume": "exit-and-resume";
|
|
6149
6579
|
}>>;
|
|
6580
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
6581
|
+
authority: "authority";
|
|
6582
|
+
worker: "worker";
|
|
6583
|
+
}>>;
|
|
6150
6584
|
}, z.core.$strip>;
|
|
6151
6585
|
initialState: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
6152
6586
|
executionLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -6202,12 +6636,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6202
6636
|
frameId: z.ZodString;
|
|
6203
6637
|
nodeId: z.ZodString;
|
|
6204
6638
|
nodeType: z.ZodEnum<{
|
|
6639
|
+
sequence: "sequence";
|
|
6205
6640
|
station: "station";
|
|
6206
6641
|
"delegate-agent": "delegate-agent";
|
|
6207
6642
|
"delegate-role": "delegate-role";
|
|
6208
|
-
sequence: "sequence";
|
|
6209
|
-
gate: "gate";
|
|
6210
6643
|
parallel: "parallel";
|
|
6644
|
+
gate: "gate";
|
|
6211
6645
|
iterate: "iterate";
|
|
6212
6646
|
"iterate-chain": "iterate-chain";
|
|
6213
6647
|
loop: "loop";
|
|
@@ -6247,12 +6681,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6247
6681
|
frameId: z.ZodString;
|
|
6248
6682
|
nodeId: z.ZodString;
|
|
6249
6683
|
nodeType: z.ZodEnum<{
|
|
6684
|
+
sequence: "sequence";
|
|
6250
6685
|
station: "station";
|
|
6251
6686
|
"delegate-agent": "delegate-agent";
|
|
6252
6687
|
"delegate-role": "delegate-role";
|
|
6253
|
-
sequence: "sequence";
|
|
6254
|
-
gate: "gate";
|
|
6255
6688
|
parallel: "parallel";
|
|
6689
|
+
gate: "gate";
|
|
6256
6690
|
iterate: "iterate";
|
|
6257
6691
|
"iterate-chain": "iterate-chain";
|
|
6258
6692
|
loop: "loop";
|
|
@@ -6286,9 +6720,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6286
6720
|
pending: "pending";
|
|
6287
6721
|
completed: "completed";
|
|
6288
6722
|
cancelled: "cancelled";
|
|
6289
|
-
running: "running";
|
|
6290
6723
|
failed: "failed";
|
|
6724
|
+
running: "running";
|
|
6291
6725
|
paused: "paused";
|
|
6726
|
+
finalizing: "finalizing";
|
|
6292
6727
|
}>>;
|
|
6293
6728
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6294
6729
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6297,7 +6732,134 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6297
6732
|
response: z.ZodObject<{
|
|
6298
6733
|
success: z.ZodBoolean;
|
|
6299
6734
|
}, z.core.$strip>;
|
|
6300
|
-
};
|
|
6735
|
+
}; /** Atomically park an execution only while it remains running. */
|
|
6736
|
+
pauseRunningExecution: _$_makaio_core0.LocalSubjectSchema<{
|
|
6737
|
+
request: z.ZodObject<{
|
|
6738
|
+
executionId: z.ZodString;
|
|
6739
|
+
}, z.core.$strip>;
|
|
6740
|
+
response: z.ZodObject<{
|
|
6741
|
+
paused: z.ZodBoolean;
|
|
6742
|
+
}, z.core.$strip>;
|
|
6743
|
+
}>; /** Atomically claim the sole terminal transition for a running execution. */
|
|
6744
|
+
claimFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
6745
|
+
request: z.ZodObject<{
|
|
6746
|
+
claim: z.ZodObject<{
|
|
6747
|
+
executionId: z.ZodString;
|
|
6748
|
+
workflowId: z.ZodString;
|
|
6749
|
+
finalizerId: z.ZodString;
|
|
6750
|
+
transitionKey: z.ZodString;
|
|
6751
|
+
claimToken: z.ZodString;
|
|
6752
|
+
intent: z.ZodObject<{
|
|
6753
|
+
status: z.ZodEnum<{
|
|
6754
|
+
completed: "completed";
|
|
6755
|
+
cancelled: "cancelled";
|
|
6756
|
+
failed: "failed";
|
|
6757
|
+
}>;
|
|
6758
|
+
completedAt: z.ZodNumber;
|
|
6759
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6760
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6761
|
+
}, z.core.$strict>;
|
|
6762
|
+
claimedAt: z.ZodNumber;
|
|
6763
|
+
}, z.core.$strict>;
|
|
6764
|
+
}, z.core.$strip>;
|
|
6765
|
+
response: z.ZodObject<{
|
|
6766
|
+
claimed: z.ZodBoolean;
|
|
6767
|
+
}, z.core.$strip>;
|
|
6768
|
+
}>; /** Recover unsettled claims owned by one finalizer after restart. */
|
|
6769
|
+
listClaimedFinalizations: _$_makaio_core0.LocalSubjectSchema<{
|
|
6770
|
+
request: z.ZodObject<{
|
|
6771
|
+
finalizerId: z.ZodString;
|
|
6772
|
+
}, z.core.$strip>;
|
|
6773
|
+
response: z.ZodObject<{
|
|
6774
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
6775
|
+
executionId: z.ZodString;
|
|
6776
|
+
workflowId: z.ZodString;
|
|
6777
|
+
finalizerId: z.ZodString;
|
|
6778
|
+
transitionKey: z.ZodString;
|
|
6779
|
+
claimToken: z.ZodString;
|
|
6780
|
+
intent: z.ZodObject<{
|
|
6781
|
+
status: z.ZodEnum<{
|
|
6782
|
+
completed: "completed";
|
|
6783
|
+
cancelled: "cancelled";
|
|
6784
|
+
failed: "failed";
|
|
6785
|
+
}>;
|
|
6786
|
+
completedAt: z.ZodNumber;
|
|
6787
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6788
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6789
|
+
}, z.core.$strict>;
|
|
6790
|
+
claimedAt: z.ZodNumber;
|
|
6791
|
+
}, z.core.$strict>>;
|
|
6792
|
+
}, z.core.$strip>;
|
|
6793
|
+
}>; /** Recover settled terminal transitions whose lifecycle event was not durably marked published. */
|
|
6794
|
+
listUnpublishedFinalizations: _$_makaio_core0.LocalSubjectSchema<{
|
|
6795
|
+
request: z.ZodObject<{
|
|
6796
|
+
finalizerId: z.ZodString;
|
|
6797
|
+
}, z.core.$strip>;
|
|
6798
|
+
response: z.ZodObject<{
|
|
6799
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
6800
|
+
executionId: z.ZodString;
|
|
6801
|
+
workflowId: z.ZodString;
|
|
6802
|
+
finalizerId: z.ZodString;
|
|
6803
|
+
transitionKey: z.ZodString;
|
|
6804
|
+
claimToken: z.ZodString;
|
|
6805
|
+
intent: z.ZodObject<{
|
|
6806
|
+
status: z.ZodEnum<{
|
|
6807
|
+
completed: "completed";
|
|
6808
|
+
cancelled: "cancelled";
|
|
6809
|
+
failed: "failed";
|
|
6810
|
+
}>;
|
|
6811
|
+
completedAt: z.ZodNumber;
|
|
6812
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6813
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6814
|
+
}, z.core.$strict>;
|
|
6815
|
+
claimedAt: z.ZodNumber;
|
|
6816
|
+
}, z.core.$strict>>;
|
|
6817
|
+
}, z.core.$strip>;
|
|
6818
|
+
}>; /** Replay a settled terminal lifecycle event until its publication is durably recorded. */
|
|
6819
|
+
publishFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
6820
|
+
request: z.ZodObject<{
|
|
6821
|
+
claim: z.ZodObject<{
|
|
6822
|
+
executionId: z.ZodString;
|
|
6823
|
+
workflowId: z.ZodString;
|
|
6824
|
+
finalizerId: z.ZodString;
|
|
6825
|
+
transitionKey: z.ZodString;
|
|
6826
|
+
claimToken: z.ZodString;
|
|
6827
|
+
intent: z.ZodObject<{
|
|
6828
|
+
status: z.ZodEnum<{
|
|
6829
|
+
completed: "completed";
|
|
6830
|
+
cancelled: "cancelled";
|
|
6831
|
+
failed: "failed";
|
|
6832
|
+
}>;
|
|
6833
|
+
completedAt: z.ZodNumber;
|
|
6834
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6835
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6836
|
+
}, z.core.$strict>;
|
|
6837
|
+
claimedAt: z.ZodNumber;
|
|
6838
|
+
}, z.core.$strict>;
|
|
6839
|
+
}, z.core.$strip>;
|
|
6840
|
+
response: z.ZodObject<{}, z.core.$strip>;
|
|
6841
|
+
}>; /** Commit the claimed intended terminal state exactly once. */
|
|
6842
|
+
acknowledgeFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
6843
|
+
request: z.ZodObject<{
|
|
6844
|
+
executionId: z.ZodString;
|
|
6845
|
+
claimToken: z.ZodString;
|
|
6846
|
+
settledAt: z.ZodNumber;
|
|
6847
|
+
}, z.core.$strip>;
|
|
6848
|
+
response: z.ZodObject<{
|
|
6849
|
+
acknowledged: z.ZodBoolean;
|
|
6850
|
+
}, z.core.$strip>;
|
|
6851
|
+
}>; /** Permanently fail a claimed transition and terminalize the execution as failed. */
|
|
6852
|
+
failFinalization: _$_makaio_core0.LocalSubjectSchema<{
|
|
6853
|
+
request: z.ZodObject<{
|
|
6854
|
+
executionId: z.ZodString;
|
|
6855
|
+
claimToken: z.ZodString;
|
|
6856
|
+
error: z.ZodString;
|
|
6857
|
+
settledAt: z.ZodNumber;
|
|
6858
|
+
}, z.core.$strip>;
|
|
6859
|
+
response: z.ZodObject<{
|
|
6860
|
+
failed: z.ZodBoolean;
|
|
6861
|
+
}, z.core.$strip>;
|
|
6862
|
+
}>;
|
|
6301
6863
|
/**
|
|
6302
6864
|
* Cancel a paused execution and all of its still-waiting gate instances in
|
|
6303
6865
|
* one transaction.
|
|
@@ -6355,9 +6917,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6355
6917
|
pending: "pending";
|
|
6356
6918
|
completed: "completed";
|
|
6357
6919
|
cancelled: "cancelled";
|
|
6358
|
-
running: "running";
|
|
6359
6920
|
failed: "failed";
|
|
6921
|
+
running: "running";
|
|
6360
6922
|
paused: "paused";
|
|
6923
|
+
finalizing: "finalizing";
|
|
6361
6924
|
}>>;
|
|
6362
6925
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
6363
6926
|
kind: z.ZodString;
|
|
@@ -6378,9 +6941,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6378
6941
|
pending: "pending";
|
|
6379
6942
|
completed: "completed";
|
|
6380
6943
|
cancelled: "cancelled";
|
|
6381
|
-
running: "running";
|
|
6382
6944
|
failed: "failed";
|
|
6945
|
+
running: "running";
|
|
6383
6946
|
paused: "paused";
|
|
6947
|
+
finalizing: "finalizing";
|
|
6384
6948
|
}>;
|
|
6385
6949
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6386
6950
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6430,9 +6994,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6430
6994
|
pending: "pending";
|
|
6431
6995
|
completed: "completed";
|
|
6432
6996
|
cancelled: "cancelled";
|
|
6433
|
-
running: "running";
|
|
6434
6997
|
failed: "failed";
|
|
6998
|
+
running: "running";
|
|
6435
6999
|
paused: "paused";
|
|
7000
|
+
finalizing: "finalizing";
|
|
6436
7001
|
}>;
|
|
6437
7002
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6438
7003
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6474,12 +7039,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6474
7039
|
frameId: z.ZodString;
|
|
6475
7040
|
nodeId: z.ZodString;
|
|
6476
7041
|
nodeType: z.ZodEnum<{
|
|
7042
|
+
sequence: "sequence";
|
|
6477
7043
|
station: "station";
|
|
6478
7044
|
"delegate-agent": "delegate-agent";
|
|
6479
7045
|
"delegate-role": "delegate-role";
|
|
6480
|
-
sequence: "sequence";
|
|
6481
|
-
gate: "gate";
|
|
6482
7046
|
parallel: "parallel";
|
|
7047
|
+
gate: "gate";
|
|
6483
7048
|
iterate: "iterate";
|
|
6484
7049
|
"iterate-chain": "iterate-chain";
|
|
6485
7050
|
loop: "loop";
|
|
@@ -6490,8 +7055,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6490
7055
|
pending: "pending";
|
|
6491
7056
|
completed: "completed";
|
|
6492
7057
|
cancelled: "cancelled";
|
|
6493
|
-
running: "running";
|
|
6494
7058
|
failed: "failed";
|
|
7059
|
+
running: "running";
|
|
6495
7060
|
skipped: "skipped";
|
|
6496
7061
|
waiting: "waiting";
|
|
6497
7062
|
}>;
|
|
@@ -6520,12 +7085,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6520
7085
|
frameId: z.ZodString;
|
|
6521
7086
|
nodeId: z.ZodString;
|
|
6522
7087
|
nodeType: z.ZodEnum<{
|
|
7088
|
+
sequence: "sequence";
|
|
6523
7089
|
station: "station";
|
|
6524
7090
|
"delegate-agent": "delegate-agent";
|
|
6525
7091
|
"delegate-role": "delegate-role";
|
|
6526
|
-
sequence: "sequence";
|
|
6527
|
-
gate: "gate";
|
|
6528
7092
|
parallel: "parallel";
|
|
7093
|
+
gate: "gate";
|
|
6529
7094
|
iterate: "iterate";
|
|
6530
7095
|
"iterate-chain": "iterate-chain";
|
|
6531
7096
|
loop: "loop";
|
|
@@ -6536,8 +7101,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6536
7101
|
pending: "pending";
|
|
6537
7102
|
completed: "completed";
|
|
6538
7103
|
cancelled: "cancelled";
|
|
6539
|
-
running: "running";
|
|
6540
7104
|
failed: "failed";
|
|
7105
|
+
running: "running";
|
|
6541
7106
|
skipped: "skipped";
|
|
6542
7107
|
waiting: "waiting";
|
|
6543
7108
|
}>;
|
|
@@ -6563,12 +7128,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6563
7128
|
frameId: z.ZodString;
|
|
6564
7129
|
nodeId: z.ZodString;
|
|
6565
7130
|
nodeType: z.ZodEnum<{
|
|
7131
|
+
sequence: "sequence";
|
|
6566
7132
|
station: "station";
|
|
6567
7133
|
"delegate-agent": "delegate-agent";
|
|
6568
7134
|
"delegate-role": "delegate-role";
|
|
6569
|
-
sequence: "sequence";
|
|
6570
|
-
gate: "gate";
|
|
6571
7135
|
parallel: "parallel";
|
|
7136
|
+
gate: "gate";
|
|
6572
7137
|
iterate: "iterate";
|
|
6573
7138
|
"iterate-chain": "iterate-chain";
|
|
6574
7139
|
loop: "loop";
|
|
@@ -6579,8 +7144,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6579
7144
|
pending: "pending";
|
|
6580
7145
|
completed: "completed";
|
|
6581
7146
|
cancelled: "cancelled";
|
|
6582
|
-
running: "running";
|
|
6583
7147
|
failed: "failed";
|
|
7148
|
+
running: "running";
|
|
6584
7149
|
skipped: "skipped";
|
|
6585
7150
|
waiting: "waiting";
|
|
6586
7151
|
}>;
|
|
@@ -6847,8 +7412,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6847
7412
|
}>;
|
|
6848
7413
|
status: z.ZodEnum<{
|
|
6849
7414
|
completed: "completed";
|
|
6850
|
-
running: "running";
|
|
6851
7415
|
failed: "failed";
|
|
7416
|
+
running: "running";
|
|
6852
7417
|
skipped: "skipped";
|
|
6853
7418
|
}>;
|
|
6854
7419
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6883,8 +7448,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6883
7448
|
}>;
|
|
6884
7449
|
status: z.ZodEnum<{
|
|
6885
7450
|
completed: "completed";
|
|
6886
|
-
running: "running";
|
|
6887
7451
|
failed: "failed";
|
|
7452
|
+
running: "running";
|
|
6888
7453
|
skipped: "skipped";
|
|
6889
7454
|
}>;
|
|
6890
7455
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7046,6 +7611,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7046
7611
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
7047
7612
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
7048
7613
|
}, z.core.$strict>], "kind">>;
|
|
7614
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
7049
7615
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
7050
7616
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7051
7617
|
kind: z.ZodLiteral<"path">;
|
|
@@ -7132,7 +7698,12 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7132
7698
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
7133
7699
|
"exit-and-resume": "exit-and-resume";
|
|
7134
7700
|
}>>;
|
|
7701
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
7702
|
+
authority: "authority";
|
|
7703
|
+
worker: "worker";
|
|
7704
|
+
}>>;
|
|
7135
7705
|
}, z.core.$strip>;
|
|
7706
|
+
initialState: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
7136
7707
|
}, z.core.$strip>;
|
|
7137
7708
|
response: z.ZodObject<{
|
|
7138
7709
|
executionId: z.ZodString;
|
|
@@ -7253,6 +7824,7 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7253
7824
|
syncedAt: z.ZodOptional<z.ZodString>;
|
|
7254
7825
|
metadata: z.ZodDefault<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
7255
7826
|
}, z.core.$strict>], "kind">>;
|
|
7827
|
+
successFinalizerId: z.ZodOptional<z.ZodString>;
|
|
7256
7828
|
executionHints: z.ZodOptional<z.ZodObject<{
|
|
7257
7829
|
source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7258
7830
|
kind: z.ZodLiteral<"path">;
|
|
@@ -7339,6 +7911,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7339
7911
|
"exit-and-redispatch": "exit-and-redispatch";
|
|
7340
7912
|
"exit-and-resume": "exit-and-resume";
|
|
7341
7913
|
}>>;
|
|
7914
|
+
terminalAuthority: z.ZodOptional<z.ZodEnum<{
|
|
7915
|
+
authority: "authority";
|
|
7916
|
+
worker: "worker";
|
|
7917
|
+
}>>;
|
|
7342
7918
|
}, z.core.$strip>>;
|
|
7343
7919
|
}, z.core.$strip>;
|
|
7344
7920
|
}>; /** Initialize execution state snapshot at sequence 0. */
|
|
@@ -7429,6 +8005,32 @@ declare function runShellStep(options: RunShellStepOptions): Promise<ShellStepOu
|
|
|
7429
8005
|
*/
|
|
7430
8006
|
declare function buildWorkflowExpressionContextFromResolvedInputs(resolvedInputs: Record<string, unknown>): WorkflowExpressionContext;
|
|
7431
8007
|
//#endregion
|
|
8008
|
+
//#region subsystems/workflow-engine/src/storage/finalization-schema.d.ts
|
|
8009
|
+
/** Durable lifecycle-finalizer claim and settlement record. */
|
|
8010
|
+
declare const workflowFinalizationsDual: _$_makaio_storage_drizzle0.DualTable<"workflow_finalizations", {
|
|
8011
|
+
executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>>;
|
|
8012
|
+
workflowId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"workflow_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"workflow_id", [string, ...string[]]>>>;
|
|
8013
|
+
finalizerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"finalizer_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"finalizer_id", [string, ...string[]]>>>;
|
|
8014
|
+
transitionKey: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"transition_key", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"transition_key", [string, ...string[]]>>>;
|
|
8015
|
+
claimToken: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"claim_token", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"claim_token", [string, ...string[]]>>>;
|
|
8016
|
+
intent: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, {
|
|
8017
|
+
status: "completed" | "cancelled" | "failed";
|
|
8018
|
+
completedAt: number;
|
|
8019
|
+
error?: string | undefined;
|
|
8020
|
+
reason?: string | undefined;
|
|
8021
|
+
}>>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgJsonbBuilderInitial<string>, {
|
|
8022
|
+
status: "completed" | "cancelled" | "failed";
|
|
8023
|
+
completedAt: number;
|
|
8024
|
+
error?: string | undefined;
|
|
8025
|
+
reason?: string | undefined;
|
|
8026
|
+
}>>>;
|
|
8027
|
+
state: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"state", ["claimed", "acknowledged", "failed"], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"state", ["claimed", "acknowledged", "failed"]>>>;
|
|
8028
|
+
claimedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>>;
|
|
8029
|
+
settledAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>;
|
|
8030
|
+
failure: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"failure", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"failure", [string, ...string[]]>>; /** Set only after the terminal lifecycle event has been emitted. */
|
|
8031
|
+
publishedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>;
|
|
8032
|
+
}>;
|
|
8033
|
+
//#endregion
|
|
7432
8034
|
//#region subsystems/workflow-engine/src/storage/schema.d.ts
|
|
7433
8035
|
/**
|
|
7434
8036
|
* Workflow definitions table.
|
|
@@ -7458,7 +8060,8 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
7458
8060
|
metadata: Record<string, unknown>;
|
|
7459
8061
|
externalId?: string | undefined;
|
|
7460
8062
|
syncedAt?: string | undefined;
|
|
7461
|
-
}>>;
|
|
8063
|
+
}>>; /** Definition-owned finalizer selected after successful execution. */
|
|
8064
|
+
successFinalizerId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"success_finalizer_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"success_finalizer_id", [string, ...string[]]>>;
|
|
7462
8065
|
/**
|
|
7463
8066
|
* Advisory execution hints for worker provisioning (JSON).
|
|
7464
8067
|
* Merged with per-call hints at execution start.
|
|
@@ -7641,7 +8244,7 @@ declare const workflowExecutionsDual: _$_makaio_storage_drizzle0.DualTable<"work
|
|
|
7641
8244
|
id: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"id", [string, ...string[]]>>>>; /** Workflow definition or ephemeral source execution identifier. */
|
|
7642
8245
|
workflowId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"workflow_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"workflow_id", [string, ...string[]]>>>; /** Coordinator session ID for this execution. */
|
|
7643
8246
|
coordinatorSessionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"coordinator_session_id", [string, ...string[]], number | undefined>, _$drizzle_orm_pg_core0.PgTextBuilderInitial<"coordinator_session_id", [string, ...string[]]>>; /** Current execution status. */
|
|
7644
|
-
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", ["pending", "running", "paused", "completed", "failed", "cancelled"], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", ["pending", "running", "paused", "completed", "failed", "cancelled"]>>>; /** Bound workflow input value (JSON). */
|
|
8247
|
+
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"]>>>; /** Bound workflow input value (JSON). */
|
|
7645
8248
|
inputs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, JsonValue>, _$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgJsonbBuilderInitial<string>, JsonValue>>; /** Error message if execution failed. */
|
|
7646
8249
|
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. */
|
|
7647
8250
|
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. */
|
|
@@ -7662,7 +8265,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
|
|
|
7662
8265
|
frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
|
|
7663
8266
|
stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
|
|
7664
8267
|
stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
|
|
7665
|
-
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "
|
|
8268
|
+
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "failed" | "running" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "failed" | "running" | "skipped">>>; /** Step start timestamp (epoch ms). */
|
|
7666
8269
|
startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
|
|
7667
8270
|
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
|
|
7668
8271
|
durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
|
|
@@ -7688,7 +8291,7 @@ declare const worklogSummariesDual: _$_makaio_storage_drizzle0.DualTable<"worklo
|
|
|
7688
8291
|
/**
|
|
7689
8292
|
* Current execution status. Kept in sync via event projection.
|
|
7690
8293
|
*/
|
|
7691
|
-
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", ["pending", "running", "paused", "completed", "failed", "cancelled"], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", ["pending", "running", "paused", "completed", "failed", "cancelled"]>>>; /** Epoch milliseconds when the execution started. */
|
|
8294
|
+
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", ["pending", "running", "paused", "finalizing", "completed", "failed", "cancelled"]>>>; /** Epoch milliseconds when the execution started. */
|
|
7692
8295
|
startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>>; /** Epoch milliseconds when the execution reached a terminal status. */
|
|
7693
8296
|
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. Present once execution completes. */
|
|
7694
8297
|
durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Aggregated input tokens across all station frames. */
|
|
@@ -7710,7 +8313,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
7710
8313
|
/** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
|
|
7711
8314
|
executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
|
|
7712
8315
|
nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
|
|
7713
|
-
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "
|
|
8316
|
+
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
|
|
7714
8317
|
/**
|
|
7715
8318
|
* Ordered path of frame IDs from the root frame to this frame (inclusive).
|
|
7716
8319
|
* Stored as a JSON array for tree correlation.
|
|
@@ -7811,4 +8414,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
|
|
|
7811
8414
|
value: JsonValue;
|
|
7812
8415
|
}>;
|
|
7813
8416
|
//#endregion
|
|
7814
|
-
export { WorkflowEngineService, WorkflowEngineToken, WorkflowExecutor, WorkflowStorageNamespace, WorkflowStorageSubjects, buildWorkflowExpressionContextFromResolvedInputs, createWorkflowEnginePackage, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runShellStep, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
|
|
8417
|
+
export { WorkflowEngineService, WorkflowEngineToken, WorkflowExecutor, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, buildWorkflowExpressionContextFromResolvedInputs, createWorkflowEnginePackage, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runShellStep, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
|