@makaio/framework 1.0.0-dev-1783282710723 → 1.0.0-dev-1783439621927
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-Lx6K7yQS.mjs +1 -0
- package/dist/adapter-subsystem/index.mjs +1 -1
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +229 -41
- package/dist/adapters/index.mjs +6 -6
- package/dist/adapters/node.d.mts +1 -1
- package/dist/adapters/node.mjs +1 -1
- package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-ODRyDBzu.d.mts} +79 -3
- package/dist/bus/index.mjs +1 -1
- package/dist/client-n0OJiTt1.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +2 -2
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
- package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -1
- package/dist/contracts/artifact/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/config/index.d.mts +6 -6
- 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 +375 -197
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/provider/index.d.mts +1 -1
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DFcxkf2i.d.mts → definition-DpkfJi8v.d.mts} +1 -1
- package/dist/drizzle/0021_m_mr8e1j84.sql +3 -0
- package/dist/drizzle/0022_m_mr8i4ky3.sql +43 -0
- package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
- package/dist/drizzle/meta/_journal.json +21 -0
- package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
- package/dist/handlers-B74FvKlA.mjs +57 -0
- package/dist/hooks/index.d.mts +27 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
- package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
- package/dist/{index-Bh6lHiW4.d.mts → index-B5Uczo3R.d.mts} +40 -40
- package/dist/{index-CL2T6LVv.d.mts → index-BIZeIA5k.d.mts} +8 -8
- package/dist/{index-gAFwNiJT.d.mts → index-BvTd61i5.d.mts} +212 -26
- package/dist/{index-Y2r0Zvcm.d.mts → index-BvjLe_w9.d.mts} +12 -12
- package/dist/{index-2fK9iSHI.d.mts → index-BwGfdbI0.d.mts} +9 -9
- package/dist/{index-CaOWqztb.d.mts → index-C8k2f_E0.d.mts} +1 -1
- package/dist/{index-DEzdNQum.d.mts → index-CYHWOXUm.d.mts} +1 -1
- package/dist/{index-9b2_jXxq.d.mts → index-CwHP8Jxs.d.mts} +514 -96
- package/dist/{index-D6aAzr32.d.mts → index-Cyi7y_aG.d.mts} +20 -20
- package/dist/{index-DdBRlm7m.d.mts → index-D7Fu3375.d.mts} +401 -21
- package/dist/{index-CfIW5biI.d.mts → index-D7rWAEY0.d.mts} +1 -0
- package/dist/{index-CTEsbp9H.d.mts → index-DFK3tpEY.d.mts} +83 -5
- package/dist/{index-Dg-y1mrq.d.mts → index-DS6kxiFl.d.mts} +28 -28
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-GD-i3DW7.d.mts → index-DmJ-OpTD.d.mts} +1275 -224
- package/dist/{index-DLy-tc0L.d.mts → index-Dtb2cVJz.d.mts} +260 -47
- package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
- 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-Ba55od_d.mjs → lib-BOmKyjWD.mjs} +1 -1
- package/dist/{lib-CM_BUxN8.mjs → lib-DLZYp5z3.mjs} +1 -1
- package/dist/{loop-gate-handlers-BLoGCWMQ.mjs → loop-gate-handlers-Bjmat-K3.mjs} +1 -1
- package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
- package/dist/{namespace-CfvtDD_U.d.mts → namespace-BLER-Qom.d.mts} +2 -2
- package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
- package/dist/{namespace-j7vFsmYL.d.mts → namespace-C74bbsdZ.d.mts} +2 -2
- package/dist/{namespace-B4cV_pk3.d.mts → namespace-CGxFYDlK.d.mts} +32 -32
- package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
- package/dist/{namespace-KMxsPJwm.d.mts → namespace-D4Uf5Mw_.d.mts} +432 -18
- package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
- package/dist/{namespace-DXW-voCe.d.mts → namespace-DRXQyBe0.d.mts} +204 -24
- package/dist/{namespace-DGAWYjbO.d.mts → namespace-JFzrlNs4.d.mts} +27 -27
- package/dist/namespace-dFBD2ZmS.mjs +1 -0
- package/dist/node/transports/index.mjs +1 -1
- package/dist/orchestrator-shared-ChygCvR1.mjs +1 -0
- package/dist/{orchestrator-shared-ChOdIgh6.d.mts → orchestrator-shared-DFLb1otg.d.mts} +9 -3
- package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
- package/dist/package-BQn_RTo7.mjs +1 -0
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- package/dist/schema-7aKBGB7S.mjs +1 -0
- package/dist/{schema-D1HrnvT7.d.mts → schema-B9goOieO.d.mts} +50 -1
- package/dist/{schema-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
- package/dist/{schemas-D-9zNyAM2.d.mts → schemas-9S9Y9PHT2.d.mts} +7 -7
- package/dist/{schemas-CoFCV42v.d.mts → schemas-B_t6oOK-.d.mts} +2 -2
- package/dist/{schemas-lnE9YoG7.d.mts → schemas-CW6YsPT4.d.mts} +3 -3
- package/dist/schemas-CkOigLAT.mjs +1 -0
- package/dist/{schemas-BemsLc_V.d.mts → schemas-CurUbHy4.d.mts} +4 -4
- package/dist/{schemas-DMCGXlKa.d.mts → schemas-DXeGCbJ9.d.mts} +4 -4
- package/dist/schemas-DZGnr9Tl.mjs +1 -0
- package/dist/{schemas-DWfo0wp4.d.mts → schemas-DnmbwE_V.d.mts} +7 -7
- package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
- package/dist/services/adapter-runtime/index.d.mts +4 -4
- package/dist/services/adapter-runtime/index.mjs +1 -1
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +2 -2
- package/dist/services/adapter-runtime/schemas.mjs +1 -1
- 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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/git/namespace.d.mts +2 -2
- package/dist/services/git/schemas.d.mts +2 -2
- package/dist/services/harness/index.d.mts +4 -4
- package/dist/services/harness/index.mjs +1 -1
- package/dist/services/index.d.mts +129 -53
- 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 +86 -6
- package/dist/services/log-import/index.mjs +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/log-import.mjs +1 -1
- package/dist/services/log-import/namespace.d.mts +54 -0
- package/dist/services/log-import/namespace.mjs +1 -1
- package/dist/services/log-import/schemas.d.mts +44 -0
- package/dist/services/log-import/schemas.mjs +1 -1
- package/dist/services/preferences/index.d.mts +2 -2
- package/dist/services/preferences/schemas.d.mts +1 -1
- package/dist/services/preferences/storage-namespace.d.mts +2 -2
- package/dist/services/session/handlers/index.d.mts +1 -1
- package/dist/services/session/handlers/index.mjs +1 -1
- package/dist/services/session/index.d.mts +9 -9
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/messages/namespace.mjs +1 -1
- package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
- package/dist/services/session/orchestrator-testing/index.mjs +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.mjs +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/session/storage/schema.mjs +1 -1
- package/dist/services/session/testing/index.mjs +10 -4
- package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
- package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
- package/dist/services/session/turns/namespace.d.mts +1 -1
- package/dist/services/session/turns/namespace.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +7 -7
- 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/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/services/tray-menu/index.d.mts +2 -2
- package/dist/services/tray-menu/namespace.d.mts +1 -1
- package/dist/services/tray-menu/schemas.d.mts +1 -1
- package/dist/services/turn/index.d.mts +1 -1
- package/dist/services/turn/namespace.d.mts +1 -1
- package/dist/services/turn/schemas.d.mts +89 -0
- package/dist/services/turn/schemas.mjs +1 -1
- package/dist/session-CZUrp7gC.mjs +69 -0
- package/dist/session-Dp7z5N1d.mjs +1 -0
- package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
- package/dist/storage/drizzle/index.d.mts +1 -1
- package/dist/storage/drizzle/index.mjs +1 -1
- package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-BvRF22by.d.mts} +10 -10
- package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-BIbUSuqg.mjs} +1 -1
- package/dist/tools-Yz8XyiwA.mjs +1 -0
- package/dist/{transition-DnXibkhX.d.mts → transition-DYorNHZu.d.mts} +1 -1
- package/dist/{types-Dur8EtpR.d.mts → types-9XCB1aPK.d.mts} +562 -107
- package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
- package/dist/{types-BslClRkH.d.mts → types-BWduCvRU.d.mts} +22 -1
- package/dist/{types-Cse8s_cD.d.mts → types-N_BOtTqt.d.mts} +29 -18
- package/dist/ui-components/index.mjs +1 -1
- package/dist/ui-kernel/index.d.mts +4 -4
- package/dist/ui-kernel/pages/namespace.d.mts +4 -4
- package/dist/ui-kernel/pages/schemas.d.mts +1 -1
- package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
- package/dist/workflow-engine/index.d.mts +45 -45
- 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-DaQqmKOJ.mjs +0 -1
- package/dist/client-BcfR-LJC.mjs +0 -1
- package/dist/handlers-BAycjV02.mjs +0 -41
- package/dist/namespace-C-piH3w4.mjs +0 -1
- package/dist/orchestrator-shared-Cxk3x8Vs.mjs +0 -1
- package/dist/package-B1AXe-oz.mjs +0 -1
- package/dist/schema-D6WAI8OL.mjs +0 -1
- package/dist/schemas-ArqQTC0Q.mjs +0 -1
- package/dist/schemas-uID59wR8.mjs +0 -1
- package/dist/session-0nWT4st6.mjs +0 -39
- package/dist/session-DH-ja8Ka.mjs +0 -1
- package/dist/tools-DFOsOboy.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as ArtifactRevision$1 } from "./index-
|
|
1
|
+
import { It as ArtifactRevision$1 } from "./index-DS6kxiFl.mjs";
|
|
2
2
|
import { i as JsonValue$1, t as JsonObjectContractSchema } from "./json-value-DtIkQN7g.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
@@ -177,8 +177,8 @@ declare const WorkflowNodeTypeSchema: z.ZodEnum<{
|
|
|
177
177
|
"delegate-agent": "delegate-agent";
|
|
178
178
|
"delegate-role": "delegate-role";
|
|
179
179
|
sequence: "sequence";
|
|
180
|
-
parallel: "parallel";
|
|
181
180
|
gate: "gate";
|
|
181
|
+
parallel: "parallel";
|
|
182
182
|
iterate: "iterate";
|
|
183
183
|
"iterate-chain": "iterate-chain";
|
|
184
184
|
loop: "loop";
|
|
@@ -845,9 +845,9 @@ declare const ExecutionStatusSchema$1: z.ZodEnum<{
|
|
|
845
845
|
pending: "pending";
|
|
846
846
|
completed: "completed";
|
|
847
847
|
cancelled: "cancelled";
|
|
848
|
+
running: "running";
|
|
848
849
|
failed: "failed";
|
|
849
850
|
paused: "paused";
|
|
850
|
-
running: "running";
|
|
851
851
|
}>;
|
|
852
852
|
type ExecutionStatus = z.infer<typeof ExecutionStatusSchema$1>;
|
|
853
853
|
/**
|
|
@@ -861,9 +861,9 @@ declare const WorkflowExecutionSchema$1: z.ZodObject<{
|
|
|
861
861
|
pending: "pending";
|
|
862
862
|
completed: "completed";
|
|
863
863
|
cancelled: "cancelled";
|
|
864
|
+
running: "running";
|
|
864
865
|
failed: "failed";
|
|
865
866
|
paused: "paused";
|
|
866
|
-
running: "running";
|
|
867
867
|
}>;
|
|
868
868
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
869
869
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -906,8 +906,8 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
|
|
|
906
906
|
"delegate-agent": "delegate-agent";
|
|
907
907
|
"delegate-role": "delegate-role";
|
|
908
908
|
sequence: "sequence";
|
|
909
|
-
parallel: "parallel";
|
|
910
909
|
gate: "gate";
|
|
910
|
+
parallel: "parallel";
|
|
911
911
|
iterate: "iterate";
|
|
912
912
|
"iterate-chain": "iterate-chain";
|
|
913
913
|
loop: "loop";
|
|
@@ -918,8 +918,8 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
|
|
|
918
918
|
pending: "pending";
|
|
919
919
|
completed: "completed";
|
|
920
920
|
cancelled: "cancelled";
|
|
921
|
-
failed: "failed";
|
|
922
921
|
running: "running";
|
|
922
|
+
failed: "failed";
|
|
923
923
|
waiting: "waiting";
|
|
924
924
|
skipped: "skipped";
|
|
925
925
|
}>;
|
|
@@ -1118,9 +1118,9 @@ declare const ExecutionListQuerySchema$1: z.ZodObject<{
|
|
|
1118
1118
|
pending: "pending";
|
|
1119
1119
|
completed: "completed";
|
|
1120
1120
|
cancelled: "cancelled";
|
|
1121
|
+
running: "running";
|
|
1121
1122
|
failed: "failed";
|
|
1122
1123
|
paused: "paused";
|
|
1123
|
-
running: "running";
|
|
1124
1124
|
}>>;
|
|
1125
1125
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
1126
1126
|
kind: z.ZodString;
|
|
@@ -1472,8 +1472,8 @@ interface IStepRunner {
|
|
|
1472
1472
|
*/
|
|
1473
1473
|
declare const SpanStatusSchema: z.ZodEnum<{
|
|
1474
1474
|
completed: "completed";
|
|
1475
|
-
failed: "failed";
|
|
1476
1475
|
running: "running";
|
|
1476
|
+
failed: "failed";
|
|
1477
1477
|
skipped: "skipped";
|
|
1478
1478
|
}>;
|
|
1479
1479
|
type SpanStatus = z.infer<typeof SpanStatusSchema>;
|
|
@@ -1497,8 +1497,8 @@ declare const SpanRecordSchema$1: z.ZodObject<{
|
|
|
1497
1497
|
}>;
|
|
1498
1498
|
status: z.ZodEnum<{
|
|
1499
1499
|
completed: "completed";
|
|
1500
|
-
failed: "failed";
|
|
1501
1500
|
running: "running";
|
|
1501
|
+
failed: "failed";
|
|
1502
1502
|
skipped: "skipped";
|
|
1503
1503
|
}>;
|
|
1504
1504
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2564,9 +2564,9 @@ declare const WorkflowSchemas: {
|
|
|
2564
2564
|
pending: "pending";
|
|
2565
2565
|
completed: "completed";
|
|
2566
2566
|
cancelled: "cancelled";
|
|
2567
|
+
running: "running";
|
|
2567
2568
|
failed: "failed";
|
|
2568
2569
|
paused: "paused";
|
|
2569
|
-
running: "running";
|
|
2570
2570
|
}>;
|
|
2571
2571
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
2572
2572
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -2621,9 +2621,9 @@ declare const WorkflowSchemas: {
|
|
|
2621
2621
|
pending: "pending";
|
|
2622
2622
|
completed: "completed";
|
|
2623
2623
|
cancelled: "cancelled";
|
|
2624
|
+
running: "running";
|
|
2624
2625
|
failed: "failed";
|
|
2625
2626
|
paused: "paused";
|
|
2626
|
-
running: "running";
|
|
2627
2627
|
}>>;
|
|
2628
2628
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
2629
2629
|
kind: z.ZodString;
|
|
@@ -2644,9 +2644,9 @@ declare const WorkflowSchemas: {
|
|
|
2644
2644
|
pending: "pending";
|
|
2645
2645
|
completed: "completed";
|
|
2646
2646
|
cancelled: "cancelled";
|
|
2647
|
+
running: "running";
|
|
2647
2648
|
failed: "failed";
|
|
2648
2649
|
paused: "paused";
|
|
2649
|
-
running: "running";
|
|
2650
2650
|
}>;
|
|
2651
2651
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
2652
2652
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -2700,9 +2700,9 @@ declare const WorkflowSchemas: {
|
|
|
2700
2700
|
pending: "pending";
|
|
2701
2701
|
completed: "completed";
|
|
2702
2702
|
cancelled: "cancelled";
|
|
2703
|
+
running: "running";
|
|
2703
2704
|
failed: "failed";
|
|
2704
2705
|
paused: "paused";
|
|
2705
|
-
running: "running";
|
|
2706
2706
|
}>;
|
|
2707
2707
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
2708
2708
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -2754,8 +2754,8 @@ declare const WorkflowSchemas: {
|
|
|
2754
2754
|
}>;
|
|
2755
2755
|
status: z.ZodEnum<{
|
|
2756
2756
|
completed: "completed";
|
|
2757
|
-
failed: "failed";
|
|
2758
2757
|
running: "running";
|
|
2758
|
+
failed: "failed";
|
|
2759
2759
|
skipped: "skipped";
|
|
2760
2760
|
}>;
|
|
2761
2761
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2885,8 +2885,8 @@ declare const WorkflowSchemas: {
|
|
|
2885
2885
|
"delegate-agent": "delegate-agent";
|
|
2886
2886
|
"delegate-role": "delegate-role";
|
|
2887
2887
|
sequence: "sequence";
|
|
2888
|
-
parallel: "parallel";
|
|
2889
2888
|
gate: "gate";
|
|
2889
|
+
parallel: "parallel";
|
|
2890
2890
|
iterate: "iterate";
|
|
2891
2891
|
"iterate-chain": "iterate-chain";
|
|
2892
2892
|
loop: "loop";
|
|
@@ -2897,8 +2897,8 @@ declare const WorkflowSchemas: {
|
|
|
2897
2897
|
pending: "pending";
|
|
2898
2898
|
completed: "completed";
|
|
2899
2899
|
cancelled: "cancelled";
|
|
2900
|
-
failed: "failed";
|
|
2901
2900
|
running: "running";
|
|
2901
|
+
failed: "failed";
|
|
2902
2902
|
waiting: "waiting";
|
|
2903
2903
|
skipped: "skipped";
|
|
2904
2904
|
}>;
|
|
@@ -2959,6 +2959,77 @@ declare const WorkflowSchemas: {
|
|
|
2959
2959
|
executionId: z.ZodString;
|
|
2960
2960
|
}, z.core.$strip>;
|
|
2961
2961
|
};
|
|
2962
|
+
/**
|
|
2963
|
+
* Register an external execution that is not driven by the workflow engine.
|
|
2964
|
+
*
|
|
2965
|
+
* Creates a minimal `workflow_executions` row so that subsequent lifecycle
|
|
2966
|
+
* events (`execution.started`, `frame.*`, `execution.completed/failed`)
|
|
2967
|
+
* satisfy the foreign-key constraints on WorkLog projection tables.
|
|
2968
|
+
*
|
|
2969
|
+
* External executions are not associated with a persisted workflow definition
|
|
2970
|
+
* and do not create coordinator sessions, run-context snapshots, or
|
|
2971
|
+
* runtime state. They exist solely to provide a legitimate parent row for
|
|
2972
|
+
* telemetry projections.
|
|
2973
|
+
*
|
|
2974
|
+
* After registration the caller is responsible for emitting the standard
|
|
2975
|
+
* execution and frame lifecycle events on the bus. The WorkLog projection
|
|
2976
|
+
* consumes them exactly as it does for engine-driven executions.
|
|
2977
|
+
*/
|
|
2978
|
+
registerExternalExecution: {
|
|
2979
|
+
request: z.ZodObject<{
|
|
2980
|
+
name: z.ZodString;
|
|
2981
|
+
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2982
|
+
type: z.ZodLiteral<"global">;
|
|
2983
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2984
|
+
type: z.ZodLiteral<"workspace">;
|
|
2985
|
+
id: z.ZodString;
|
|
2986
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2987
|
+
type: z.ZodLiteral<"session">;
|
|
2988
|
+
id: z.ZodString;
|
|
2989
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"external">;
|
|
2991
|
+
kind: z.ZodString;
|
|
2992
|
+
id: z.ZodString;
|
|
2993
|
+
}, z.core.$strict>], "type">>;
|
|
2994
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
2995
|
+
kind: z.ZodString;
|
|
2996
|
+
id: z.ZodString;
|
|
2997
|
+
}, z.core.$strip>>;
|
|
2998
|
+
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
2999
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
3000
|
+
}, z.core.$strip>;
|
|
3001
|
+
response: z.ZodObject<{
|
|
3002
|
+
executionId: z.ZodString;
|
|
3003
|
+
}, z.core.$strip>;
|
|
3004
|
+
};
|
|
3005
|
+
/**
|
|
3006
|
+
* Complete an external execution by updating its terminal status.
|
|
3007
|
+
*
|
|
3008
|
+
* Callers should also emit the corresponding lifecycle event
|
|
3009
|
+
* (`execution.completed`, `execution.failed`, or `execution.cancelled`)
|
|
3010
|
+
* so that WorkLog projections update the summary row.
|
|
3011
|
+
*
|
|
3012
|
+
* Cross-field invariants (enforced by schema refinement):
|
|
3013
|
+
* - `'failed'` requires a non-empty `error` string.
|
|
3014
|
+
* - `'cancelled'` requires a non-empty `reason` string.
|
|
3015
|
+
* - `'completed'` must not carry `error` or `reason`.
|
|
3016
|
+
*/
|
|
3017
|
+
completeExternalExecution: {
|
|
3018
|
+
request: z.ZodObject<{
|
|
3019
|
+
executionId: z.ZodString;
|
|
3020
|
+
status: z.ZodEnum<{
|
|
3021
|
+
completed: "completed";
|
|
3022
|
+
cancelled: "cancelled";
|
|
3023
|
+
failed: "failed";
|
|
3024
|
+
}>;
|
|
3025
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3027
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
3028
|
+
}, z.core.$strip>;
|
|
3029
|
+
response: z.ZodObject<{
|
|
3030
|
+
success: z.ZodBoolean;
|
|
3031
|
+
}, z.core.$strip>;
|
|
3032
|
+
};
|
|
2962
3033
|
/**
|
|
2963
3034
|
* Resolve a named role to its full adapter configuration.
|
|
2964
3035
|
* Called by the workflow executor when an agent step specifies `role`.
|
|
@@ -3477,8 +3548,8 @@ declare const WorkflowSchemas: {
|
|
|
3477
3548
|
"delegate-agent": "delegate-agent";
|
|
3478
3549
|
"delegate-role": "delegate-role";
|
|
3479
3550
|
sequence: "sequence";
|
|
3480
|
-
parallel: "parallel";
|
|
3481
3551
|
gate: "gate";
|
|
3552
|
+
parallel: "parallel";
|
|
3482
3553
|
iterate: "iterate";
|
|
3483
3554
|
"iterate-chain": "iterate-chain";
|
|
3484
3555
|
loop: "loop";
|
|
@@ -3602,9 +3673,9 @@ declare const WorkflowSchemas: {
|
|
|
3602
3673
|
pending: "pending";
|
|
3603
3674
|
completed: "completed";
|
|
3604
3675
|
cancelled: "cancelled";
|
|
3676
|
+
running: "running";
|
|
3605
3677
|
failed: "failed";
|
|
3606
3678
|
paused: "paused";
|
|
3607
|
-
running: "running";
|
|
3608
3679
|
}>;
|
|
3609
3680
|
startedAt: z.ZodNumber;
|
|
3610
3681
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3630,9 +3701,9 @@ declare const WorkflowSchemas: {
|
|
|
3630
3701
|
pending: "pending";
|
|
3631
3702
|
completed: "completed";
|
|
3632
3703
|
cancelled: "cancelled";
|
|
3704
|
+
running: "running";
|
|
3633
3705
|
failed: "failed";
|
|
3634
3706
|
paused: "paused";
|
|
3635
|
-
running: "running";
|
|
3636
3707
|
}>>;
|
|
3637
3708
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3638
3709
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3646,9 +3717,9 @@ declare const WorkflowSchemas: {
|
|
|
3646
3717
|
pending: "pending";
|
|
3647
3718
|
completed: "completed";
|
|
3648
3719
|
cancelled: "cancelled";
|
|
3720
|
+
running: "running";
|
|
3649
3721
|
failed: "failed";
|
|
3650
3722
|
paused: "paused";
|
|
3651
|
-
running: "running";
|
|
3652
3723
|
}>;
|
|
3653
3724
|
startedAt: z.ZodNumber;
|
|
3654
3725
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4482,9 +4553,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4482
4553
|
pending: "pending";
|
|
4483
4554
|
completed: "completed";
|
|
4484
4555
|
cancelled: "cancelled";
|
|
4556
|
+
running: "running";
|
|
4485
4557
|
failed: "failed";
|
|
4486
4558
|
paused: "paused";
|
|
4487
|
-
running: "running";
|
|
4488
4559
|
}>;
|
|
4489
4560
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
4490
4561
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -4539,9 +4610,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4539
4610
|
pending: "pending";
|
|
4540
4611
|
completed: "completed";
|
|
4541
4612
|
cancelled: "cancelled";
|
|
4613
|
+
running: "running";
|
|
4542
4614
|
failed: "failed";
|
|
4543
4615
|
paused: "paused";
|
|
4544
|
-
running: "running";
|
|
4545
4616
|
}>>;
|
|
4546
4617
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
4547
4618
|
kind: z.ZodString;
|
|
@@ -4562,9 +4633,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4562
4633
|
pending: "pending";
|
|
4563
4634
|
completed: "completed";
|
|
4564
4635
|
cancelled: "cancelled";
|
|
4636
|
+
running: "running";
|
|
4565
4637
|
failed: "failed";
|
|
4566
4638
|
paused: "paused";
|
|
4567
|
-
running: "running";
|
|
4568
4639
|
}>;
|
|
4569
4640
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
4570
4641
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -4618,9 +4689,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4618
4689
|
pending: "pending";
|
|
4619
4690
|
completed: "completed";
|
|
4620
4691
|
cancelled: "cancelled";
|
|
4692
|
+
running: "running";
|
|
4621
4693
|
failed: "failed";
|
|
4622
4694
|
paused: "paused";
|
|
4623
|
-
running: "running";
|
|
4624
4695
|
}>;
|
|
4625
4696
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
4626
4697
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -4672,8 +4743,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4672
4743
|
}>;
|
|
4673
4744
|
status: z.ZodEnum<{
|
|
4674
4745
|
completed: "completed";
|
|
4675
|
-
failed: "failed";
|
|
4676
4746
|
running: "running";
|
|
4747
|
+
failed: "failed";
|
|
4677
4748
|
skipped: "skipped";
|
|
4678
4749
|
}>;
|
|
4679
4750
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4803,8 +4874,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4803
4874
|
"delegate-agent": "delegate-agent";
|
|
4804
4875
|
"delegate-role": "delegate-role";
|
|
4805
4876
|
sequence: "sequence";
|
|
4806
|
-
parallel: "parallel";
|
|
4807
4877
|
gate: "gate";
|
|
4878
|
+
parallel: "parallel";
|
|
4808
4879
|
iterate: "iterate";
|
|
4809
4880
|
"iterate-chain": "iterate-chain";
|
|
4810
4881
|
loop: "loop";
|
|
@@ -4815,8 +4886,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4815
4886
|
pending: "pending";
|
|
4816
4887
|
completed: "completed";
|
|
4817
4888
|
cancelled: "cancelled";
|
|
4818
|
-
failed: "failed";
|
|
4819
4889
|
running: "running";
|
|
4890
|
+
failed: "failed";
|
|
4820
4891
|
waiting: "waiting";
|
|
4821
4892
|
skipped: "skipped";
|
|
4822
4893
|
}>;
|
|
@@ -4877,6 +4948,77 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4877
4948
|
executionId: z.ZodString;
|
|
4878
4949
|
}, z.core.$strip>;
|
|
4879
4950
|
};
|
|
4951
|
+
/**
|
|
4952
|
+
* Register an external execution that is not driven by the workflow engine.
|
|
4953
|
+
*
|
|
4954
|
+
* Creates a minimal `workflow_executions` row so that subsequent lifecycle
|
|
4955
|
+
* events (`execution.started`, `frame.*`, `execution.completed/failed`)
|
|
4956
|
+
* satisfy the foreign-key constraints on WorkLog projection tables.
|
|
4957
|
+
*
|
|
4958
|
+
* External executions are not associated with a persisted workflow definition
|
|
4959
|
+
* and do not create coordinator sessions, run-context snapshots, or
|
|
4960
|
+
* runtime state. They exist solely to provide a legitimate parent row for
|
|
4961
|
+
* telemetry projections.
|
|
4962
|
+
*
|
|
4963
|
+
* After registration the caller is responsible for emitting the standard
|
|
4964
|
+
* execution and frame lifecycle events on the bus. The WorkLog projection
|
|
4965
|
+
* consumes them exactly as it does for engine-driven executions.
|
|
4966
|
+
*/
|
|
4967
|
+
registerExternalExecution: {
|
|
4968
|
+
request: z.ZodObject<{
|
|
4969
|
+
name: z.ZodString;
|
|
4970
|
+
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4971
|
+
type: z.ZodLiteral<"global">;
|
|
4972
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4973
|
+
type: z.ZodLiteral<"workspace">;
|
|
4974
|
+
id: z.ZodString;
|
|
4975
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4976
|
+
type: z.ZodLiteral<"session">;
|
|
4977
|
+
id: z.ZodString;
|
|
4978
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4979
|
+
type: z.ZodLiteral<"external">;
|
|
4980
|
+
kind: z.ZodString;
|
|
4981
|
+
id: z.ZodString;
|
|
4982
|
+
}, z.core.$strict>], "type">>;
|
|
4983
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
4984
|
+
kind: z.ZodString;
|
|
4985
|
+
id: z.ZodString;
|
|
4986
|
+
}, z.core.$strip>>;
|
|
4987
|
+
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
4988
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
4989
|
+
}, z.core.$strip>;
|
|
4990
|
+
response: z.ZodObject<{
|
|
4991
|
+
executionId: z.ZodString;
|
|
4992
|
+
}, z.core.$strip>;
|
|
4993
|
+
};
|
|
4994
|
+
/**
|
|
4995
|
+
* Complete an external execution by updating its terminal status.
|
|
4996
|
+
*
|
|
4997
|
+
* Callers should also emit the corresponding lifecycle event
|
|
4998
|
+
* (`execution.completed`, `execution.failed`, or `execution.cancelled`)
|
|
4999
|
+
* so that WorkLog projections update the summary row.
|
|
5000
|
+
*
|
|
5001
|
+
* Cross-field invariants (enforced by schema refinement):
|
|
5002
|
+
* - `'failed'` requires a non-empty `error` string.
|
|
5003
|
+
* - `'cancelled'` requires a non-empty `reason` string.
|
|
5004
|
+
* - `'completed'` must not carry `error` or `reason`.
|
|
5005
|
+
*/
|
|
5006
|
+
completeExternalExecution: {
|
|
5007
|
+
request: z.ZodObject<{
|
|
5008
|
+
executionId: z.ZodString;
|
|
5009
|
+
status: z.ZodEnum<{
|
|
5010
|
+
completed: "completed";
|
|
5011
|
+
cancelled: "cancelled";
|
|
5012
|
+
failed: "failed";
|
|
5013
|
+
}>;
|
|
5014
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5015
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5016
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
5017
|
+
}, z.core.$strip>;
|
|
5018
|
+
response: z.ZodObject<{
|
|
5019
|
+
success: z.ZodBoolean;
|
|
5020
|
+
}, z.core.$strip>;
|
|
5021
|
+
};
|
|
4880
5022
|
/**
|
|
4881
5023
|
* Resolve a named role to its full adapter configuration.
|
|
4882
5024
|
* Called by the workflow executor when an agent step specifies `role`.
|
|
@@ -5395,8 +5537,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5395
5537
|
"delegate-agent": "delegate-agent";
|
|
5396
5538
|
"delegate-role": "delegate-role";
|
|
5397
5539
|
sequence: "sequence";
|
|
5398
|
-
parallel: "parallel";
|
|
5399
5540
|
gate: "gate";
|
|
5541
|
+
parallel: "parallel";
|
|
5400
5542
|
iterate: "iterate";
|
|
5401
5543
|
"iterate-chain": "iterate-chain";
|
|
5402
5544
|
loop: "loop";
|
|
@@ -5520,9 +5662,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5520
5662
|
pending: "pending";
|
|
5521
5663
|
completed: "completed";
|
|
5522
5664
|
cancelled: "cancelled";
|
|
5665
|
+
running: "running";
|
|
5523
5666
|
failed: "failed";
|
|
5524
5667
|
paused: "paused";
|
|
5525
|
-
running: "running";
|
|
5526
5668
|
}>;
|
|
5527
5669
|
startedAt: z.ZodNumber;
|
|
5528
5670
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5548,9 +5690,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5548
5690
|
pending: "pending";
|
|
5549
5691
|
completed: "completed";
|
|
5550
5692
|
cancelled: "cancelled";
|
|
5693
|
+
running: "running";
|
|
5551
5694
|
failed: "failed";
|
|
5552
5695
|
paused: "paused";
|
|
5553
|
-
running: "running";
|
|
5554
5696
|
}>>;
|
|
5555
5697
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
5556
5698
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5564,9 +5706,9 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5564
5706
|
pending: "pending";
|
|
5565
5707
|
completed: "completed";
|
|
5566
5708
|
cancelled: "cancelled";
|
|
5709
|
+
running: "running";
|
|
5567
5710
|
failed: "failed";
|
|
5568
5711
|
paused: "paused";
|
|
5569
|
-
running: "running";
|
|
5570
5712
|
}>;
|
|
5571
5713
|
startedAt: z.ZodNumber;
|
|
5572
5714
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6400,9 +6542,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6400
6542
|
pending: "pending";
|
|
6401
6543
|
completed: "completed";
|
|
6402
6544
|
cancelled: "cancelled";
|
|
6545
|
+
running: "running";
|
|
6403
6546
|
failed: "failed";
|
|
6404
6547
|
paused: "paused";
|
|
6405
|
-
running: "running";
|
|
6406
6548
|
}>;
|
|
6407
6549
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6408
6550
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6457,9 +6599,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6457
6599
|
pending: "pending";
|
|
6458
6600
|
completed: "completed";
|
|
6459
6601
|
cancelled: "cancelled";
|
|
6602
|
+
running: "running";
|
|
6460
6603
|
failed: "failed";
|
|
6461
6604
|
paused: "paused";
|
|
6462
|
-
running: "running";
|
|
6463
6605
|
}>>;
|
|
6464
6606
|
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
6465
6607
|
kind: z.ZodString;
|
|
@@ -6480,9 +6622,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6480
6622
|
pending: "pending";
|
|
6481
6623
|
completed: "completed";
|
|
6482
6624
|
cancelled: "cancelled";
|
|
6625
|
+
running: "running";
|
|
6483
6626
|
failed: "failed";
|
|
6484
6627
|
paused: "paused";
|
|
6485
|
-
running: "running";
|
|
6486
6628
|
}>;
|
|
6487
6629
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6488
6630
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6536,9 +6678,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6536
6678
|
pending: "pending";
|
|
6537
6679
|
completed: "completed";
|
|
6538
6680
|
cancelled: "cancelled";
|
|
6681
|
+
running: "running";
|
|
6539
6682
|
failed: "failed";
|
|
6540
6683
|
paused: "paused";
|
|
6541
|
-
running: "running";
|
|
6542
6684
|
}>;
|
|
6543
6685
|
inputs: z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>;
|
|
6544
6686
|
config: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
@@ -6590,8 +6732,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6590
6732
|
}>;
|
|
6591
6733
|
status: z.ZodEnum<{
|
|
6592
6734
|
completed: "completed";
|
|
6593
|
-
failed: "failed";
|
|
6594
6735
|
running: "running";
|
|
6736
|
+
failed: "failed";
|
|
6595
6737
|
skipped: "skipped";
|
|
6596
6738
|
}>;
|
|
6597
6739
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6721,8 +6863,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6721
6863
|
"delegate-agent": "delegate-agent";
|
|
6722
6864
|
"delegate-role": "delegate-role";
|
|
6723
6865
|
sequence: "sequence";
|
|
6724
|
-
parallel: "parallel";
|
|
6725
6866
|
gate: "gate";
|
|
6867
|
+
parallel: "parallel";
|
|
6726
6868
|
iterate: "iterate";
|
|
6727
6869
|
"iterate-chain": "iterate-chain";
|
|
6728
6870
|
loop: "loop";
|
|
@@ -6733,8 +6875,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6733
6875
|
pending: "pending";
|
|
6734
6876
|
completed: "completed";
|
|
6735
6877
|
cancelled: "cancelled";
|
|
6736
|
-
failed: "failed";
|
|
6737
6878
|
running: "running";
|
|
6879
|
+
failed: "failed";
|
|
6738
6880
|
waiting: "waiting";
|
|
6739
6881
|
skipped: "skipped";
|
|
6740
6882
|
}>;
|
|
@@ -6795,6 +6937,77 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6795
6937
|
executionId: z.ZodString;
|
|
6796
6938
|
}, z.core.$strip>;
|
|
6797
6939
|
};
|
|
6940
|
+
/**
|
|
6941
|
+
* Register an external execution that is not driven by the workflow engine.
|
|
6942
|
+
*
|
|
6943
|
+
* Creates a minimal `workflow_executions` row so that subsequent lifecycle
|
|
6944
|
+
* events (`execution.started`, `frame.*`, `execution.completed/failed`)
|
|
6945
|
+
* satisfy the foreign-key constraints on WorkLog projection tables.
|
|
6946
|
+
*
|
|
6947
|
+
* External executions are not associated with a persisted workflow definition
|
|
6948
|
+
* and do not create coordinator sessions, run-context snapshots, or
|
|
6949
|
+
* runtime state. They exist solely to provide a legitimate parent row for
|
|
6950
|
+
* telemetry projections.
|
|
6951
|
+
*
|
|
6952
|
+
* After registration the caller is responsible for emitting the standard
|
|
6953
|
+
* execution and frame lifecycle events on the bus. The WorkLog projection
|
|
6954
|
+
* consumes them exactly as it does for engine-driven executions.
|
|
6955
|
+
*/
|
|
6956
|
+
registerExternalExecution: {
|
|
6957
|
+
request: z.ZodObject<{
|
|
6958
|
+
name: z.ZodString;
|
|
6959
|
+
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6960
|
+
type: z.ZodLiteral<"global">;
|
|
6961
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6962
|
+
type: z.ZodLiteral<"workspace">;
|
|
6963
|
+
id: z.ZodString;
|
|
6964
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6965
|
+
type: z.ZodLiteral<"session">;
|
|
6966
|
+
id: z.ZodString;
|
|
6967
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6968
|
+
type: z.ZodLiteral<"external">;
|
|
6969
|
+
kind: z.ZodString;
|
|
6970
|
+
id: z.ZodString;
|
|
6971
|
+
}, z.core.$strict>], "type">>;
|
|
6972
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
6973
|
+
kind: z.ZodString;
|
|
6974
|
+
id: z.ZodString;
|
|
6975
|
+
}, z.core.$strip>>;
|
|
6976
|
+
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
6977
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
6978
|
+
}, z.core.$strip>;
|
|
6979
|
+
response: z.ZodObject<{
|
|
6980
|
+
executionId: z.ZodString;
|
|
6981
|
+
}, z.core.$strip>;
|
|
6982
|
+
};
|
|
6983
|
+
/**
|
|
6984
|
+
* Complete an external execution by updating its terminal status.
|
|
6985
|
+
*
|
|
6986
|
+
* Callers should also emit the corresponding lifecycle event
|
|
6987
|
+
* (`execution.completed`, `execution.failed`, or `execution.cancelled`)
|
|
6988
|
+
* so that WorkLog projections update the summary row.
|
|
6989
|
+
*
|
|
6990
|
+
* Cross-field invariants (enforced by schema refinement):
|
|
6991
|
+
* - `'failed'` requires a non-empty `error` string.
|
|
6992
|
+
* - `'cancelled'` requires a non-empty `reason` string.
|
|
6993
|
+
* - `'completed'` must not carry `error` or `reason`.
|
|
6994
|
+
*/
|
|
6995
|
+
completeExternalExecution: {
|
|
6996
|
+
request: z.ZodObject<{
|
|
6997
|
+
executionId: z.ZodString;
|
|
6998
|
+
status: z.ZodEnum<{
|
|
6999
|
+
completed: "completed";
|
|
7000
|
+
cancelled: "cancelled";
|
|
7001
|
+
failed: "failed";
|
|
7002
|
+
}>;
|
|
7003
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7004
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7005
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
7006
|
+
}, z.core.$strip>;
|
|
7007
|
+
response: z.ZodObject<{
|
|
7008
|
+
success: z.ZodBoolean;
|
|
7009
|
+
}, z.core.$strip>;
|
|
7010
|
+
};
|
|
6798
7011
|
/**
|
|
6799
7012
|
* Resolve a named role to its full adapter configuration.
|
|
6800
7013
|
* Called by the workflow executor when an agent step specifies `role`.
|
|
@@ -7313,8 +7526,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7313
7526
|
"delegate-agent": "delegate-agent";
|
|
7314
7527
|
"delegate-role": "delegate-role";
|
|
7315
7528
|
sequence: "sequence";
|
|
7316
|
-
parallel: "parallel";
|
|
7317
7529
|
gate: "gate";
|
|
7530
|
+
parallel: "parallel";
|
|
7318
7531
|
iterate: "iterate";
|
|
7319
7532
|
"iterate-chain": "iterate-chain";
|
|
7320
7533
|
loop: "loop";
|
|
@@ -7438,9 +7651,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7438
7651
|
pending: "pending";
|
|
7439
7652
|
completed: "completed";
|
|
7440
7653
|
cancelled: "cancelled";
|
|
7654
|
+
running: "running";
|
|
7441
7655
|
failed: "failed";
|
|
7442
7656
|
paused: "paused";
|
|
7443
|
-
running: "running";
|
|
7444
7657
|
}>;
|
|
7445
7658
|
startedAt: z.ZodNumber;
|
|
7446
7659
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7466,9 +7679,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7466
7679
|
pending: "pending";
|
|
7467
7680
|
completed: "completed";
|
|
7468
7681
|
cancelled: "cancelled";
|
|
7682
|
+
running: "running";
|
|
7469
7683
|
failed: "failed";
|
|
7470
7684
|
paused: "paused";
|
|
7471
|
-
running: "running";
|
|
7472
7685
|
}>>;
|
|
7473
7686
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
7474
7687
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7482,9 +7695,9 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7482
7695
|
pending: "pending";
|
|
7483
7696
|
completed: "completed";
|
|
7484
7697
|
cancelled: "cancelled";
|
|
7698
|
+
running: "running";
|
|
7485
7699
|
failed: "failed";
|
|
7486
7700
|
paused: "paused";
|
|
7487
|
-
running: "running";
|
|
7488
7701
|
}>;
|
|
7489
7702
|
startedAt: z.ZodNumber;
|
|
7490
7703
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8494,9 +8707,9 @@ declare const WorkLogExecutionSummarySchema: z.ZodObject<{
|
|
|
8494
8707
|
pending: "pending";
|
|
8495
8708
|
completed: "completed";
|
|
8496
8709
|
cancelled: "cancelled";
|
|
8710
|
+
running: "running";
|
|
8497
8711
|
failed: "failed";
|
|
8498
8712
|
paused: "paused";
|
|
8499
|
-
running: "running";
|
|
8500
8713
|
}>;
|
|
8501
8714
|
startedAt: z.ZodNumber;
|
|
8502
8715
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8531,8 +8744,8 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
8531
8744
|
pending: "pending";
|
|
8532
8745
|
completed: "completed";
|
|
8533
8746
|
cancelled: "cancelled";
|
|
8534
|
-
failed: "failed";
|
|
8535
8747
|
running: "running";
|
|
8748
|
+
failed: "failed";
|
|
8536
8749
|
waiting: "waiting";
|
|
8537
8750
|
skipped: "skipped";
|
|
8538
8751
|
}>;
|
|
@@ -8675,11 +8888,11 @@ type ContextMode = z.infer<typeof ContextModeSchema$1>;
|
|
|
8675
8888
|
declare const SubagentStatusSchema: z.ZodEnum<{
|
|
8676
8889
|
completed: "completed";
|
|
8677
8890
|
cancelled: "cancelled";
|
|
8678
|
-
failed: "failed";
|
|
8679
8891
|
running: "running";
|
|
8680
8892
|
spawning: "spawning";
|
|
8681
8893
|
waiting_input: "waiting_input";
|
|
8682
8894
|
hung: "hung";
|
|
8895
|
+
failed: "failed";
|
|
8683
8896
|
}>;
|
|
8684
8897
|
type SubagentStatus$1 = z.infer<typeof SubagentStatusSchema>;
|
|
8685
8898
|
/**
|
|
@@ -8868,8 +9081,8 @@ declare const AwaitSubagentResponseSchema: z.ZodObject<{
|
|
|
8868
9081
|
status: z.ZodEnum<{
|
|
8869
9082
|
completed: "completed";
|
|
8870
9083
|
cancelled: "cancelled";
|
|
8871
|
-
failed: "failed";
|
|
8872
9084
|
waiting_input: "waiting_input";
|
|
9085
|
+
failed: "failed";
|
|
8873
9086
|
timeout: "timeout";
|
|
8874
9087
|
}>;
|
|
8875
9088
|
result: z.ZodOptional<z.ZodString>;
|
|
@@ -8972,11 +9185,11 @@ declare const ListSubagentsBySessionResponseSchema: z.ZodObject<{
|
|
|
8972
9185
|
status: z.ZodEnum<{
|
|
8973
9186
|
completed: "completed";
|
|
8974
9187
|
cancelled: "cancelled";
|
|
8975
|
-
failed: "failed";
|
|
8976
9188
|
running: "running";
|
|
8977
9189
|
spawning: "spawning";
|
|
8978
9190
|
waiting_input: "waiting_input";
|
|
8979
9191
|
hung: "hung";
|
|
9192
|
+
failed: "failed";
|
|
8980
9193
|
}>;
|
|
8981
9194
|
}, z.core.$strip>>;
|
|
8982
9195
|
}, z.core.$strip>;
|