@makaio/framework 1.0.0-dev-1783477169057 → 1.0.0-dev-1783687982716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.makaio-build.json +2 -2
- package/dist/adapter-CA8rPIUz.mjs +1 -0
- package/dist/adapters/config/index.d.mts +1 -1
- package/dist/adapters/index.d.mts +142 -168
- package/dist/adapters/index.mjs +6 -6
- package/dist/bus/index.d.mts +22 -22
- package/dist/bus/index.mjs +1 -1
- package/dist/client-DaR4mzqn.mjs +1 -0
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/adapter/index.mjs +1 -1
- package/dist/contracts/artifact/index.d.mts +1 -1
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/client/index.d.mts +2 -2
- package/dist/contracts/client/index.mjs +1 -1
- package/dist/contracts/extension/index.d.mts +2 -2
- package/dist/contracts/facet/index.d.mts +1 -1
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +255 -203
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +3 -3
- package/dist/contracts/session/index.mjs +1 -1
- package/dist/contracts/skill/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/workflow/index.d.mts +3 -3
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{definition-DePb3ke-.d.mts → definition-s9PIua2B.d.mts} +1 -1
- package/dist/drizzle/0024_external_settlement_fingerprint.sql +1 -0
- package/dist/drizzle/0025_external_registration_frame.sql +1 -0
- package/dist/drizzle/meta/_journal.json +14 -0
- package/dist/{index-Dv4oGVZK.d.mts → index-B4ZddkPI.d.mts} +413 -336
- package/dist/{index-BX1MxwFr.d.mts → index-B9d_8_V2.d.mts} +21 -21
- package/dist/{index-BeouVICp.d.mts → index-BUrNl0QJ.d.mts} +4 -4
- package/dist/{index-2fK9iSHI.d.mts → index-BWIkf5oJ.d.mts} +6 -6
- package/dist/{index-Bl42SCEI.d.mts → index-Bc82MC0z.d.mts} +4 -4
- package/dist/{index-CQQcnpev.d.mts → index-CAhKyxfm.d.mts} +437 -57
- package/dist/{index-B3fjN5HX.d.mts → index-CmHdpW0E.d.mts} +7 -7
- package/dist/{index-CA-AJbq6.d.mts → index-D4gn93gL.d.mts} +16 -16
- package/dist/{index-B-6DtLLz.d.mts → index-D7rWAEY0.d.mts} +1 -1
- package/dist/{index-j_X5xefv2.d.mts → index-D94cDExW2.d.mts} +11 -11
- package/dist/{index-DScUb-hF.d.mts → index-DLDQDXhD.d.mts} +2 -2
- package/dist/{index-uM4KZopE.d.mts → index-DNfNwGu6.d.mts} +8 -8
- package/dist/{index-BMbmoarE.d.mts → index-DTBQOCar.d.mts} +16 -16
- package/dist/{index-CwFSL4xI.d.mts → index-DTkGyKKA.d.mts} +180 -21
- package/dist/{index-BjO4Zkap.d.mts → index-DsLpP5ek.d.mts} +1 -1
- package/dist/{index-DMz-2ACU.d.mts → index-WHUV7neB.d.mts} +105 -105
- package/dist/{index-BcwOnvUh.d.mts → index-mU2lnU7O.d.mts} +6 -6
- package/dist/{index-C_xQM96Y.d.mts → index-oePgeOph.d.mts} +473 -389
- package/dist/kernel/extension/index.d.mts +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/observability/index.d.mts +1 -1
- package/dist/loop-gate-handlers-o2B5FPdF.mjs +1 -0
- package/dist/{namespace-TPbegIMi.d.mts → namespace-B9V9R3AY.d.mts} +25 -25
- package/dist/{namespace-Boh42UoL.d.mts → namespace-BGIeqwfU.d.mts} +24 -0
- package/dist/{namespace-COEUMuHL.d.mts → namespace-BLER-Qom.d.mts} +154 -154
- package/dist/{namespace-OLAh9wHU.d.mts → namespace-Dm454cNM.d.mts} +9 -9
- package/dist/{namespace-D94HrTtq.d.mts → namespace-d_0I6P7N.d.mts} +6 -6
- package/dist/node/transports/index.d.mts +25 -3
- package/dist/node/transports/index.mjs +1 -1
- package/dist/package-Co_GO3UD.mjs +7 -0
- package/dist/{package-B6mEMD8r.d.mts → package-DmVZxufT.d.mts} +1 -1
- package/dist/package.json +1 -1
- package/dist/{schemas-CDBn9MTz.d.mts → schemas-B_t6oOK-.d.mts} +154 -154
- package/dist/{schemas-D512XweP.d.mts → schemas-CJ2JvA7d.d.mts} +3 -3
- package/dist/{schemas-DOV4UouN2.d.mts → schemas-CNUk34qC2.d.mts} +2 -2
- package/dist/schemas-CVo8qAK-.mjs +1 -0
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/index.d.mts +2 -2
- package/dist/services/agent-runtime/namespace.d.mts +1 -1
- package/dist/services/agent-runtime/schemas.d.mts +1 -1
- package/dist/services/context-rules/index.d.mts +3 -3
- package/dist/services/execution-target/index.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +94 -94
- package/dist/services/index.mjs +1 -1
- package/dist/services/log-import/browser.d.mts +2 -2
- package/dist/services/log-import/index.d.mts +2 -2
- package/dist/services/log-import/log-import.d.mts +1 -1
- package/dist/services/log-import/namespace.d.mts +2 -2
- package/dist/services/log-import/schemas.d.mts +1 -1
- package/dist/services/session/index.d.mts +4 -4
- package/dist/services/session/index.mjs +1 -1
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/session/session-events/namespace.d.mts +1 -1
- package/dist/services/session/storage/namespace.d.mts +1 -1
- package/dist/services/session/testing/index.mjs +1 -1
- package/dist/services/session-editor/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +2 -2
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/services/tool-approval/index.mjs +1 -1
- package/dist/services/tools/index.mjs +1 -1
- package/dist/session-CX6QDhi2.mjs +76 -0
- package/dist/session-DBfQkgdy.mjs +1 -0
- package/dist/{tool-approval-service-BNXgr-az.mjs → tool-approval-service-DEiMKTv9.mjs} +1 -1
- package/dist/{tools-BaO4GYj0.mjs → tools-CGFZkB7F.mjs} +1 -1
- package/dist/{transition-Bbjlwv5K.d.mts → transition-OzGXyy3p.d.mts} +1 -1
- package/dist/{types-D7W0ntGr.d.mts → types-1a2D10yb.d.mts} +28 -3
- package/dist/{types-BNW5n6qm.d.mts → types-BMS6yfLS.d.mts} +1 -1
- package/dist/{types-jruUn6oW.d.mts → types-BSilhlYE.d.mts} +260 -246
- package/dist/{types-CNkx2awa.d.mts → types-BWduCvRU.d.mts} +1 -1
- package/dist/workflow-C3dgVwTY.mjs +1 -0
- package/dist/workflow-engine/index.d.mts +295 -27
- package/dist/workflow-engine/index.mjs +1 -1
- package/dist/workflow-engine/package.d.mts +1 -1
- package/dist/workflow-engine/package.mjs +1 -1
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/dist/adapter-Lx6K7yQS.mjs +0 -1
- package/dist/client-l1Rq5p6X.mjs +0 -1
- package/dist/loop-gate-handlers-Bjmat-K3.mjs +0 -1
- package/dist/package-BQn_RTo7.mjs +0 -1
- package/dist/schemas-CkOigLAT.mjs +0 -1
- package/dist/session-CoGaTin6.mjs +0 -69
- package/dist/session-Dp7z5N1d.mjs +0 -1
- package/dist/workflow-C1z7I5CI.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as ArtifactRevision$1 } from "./index-
|
|
1
|
+
import { It as ArtifactRevision$1 } from "./index-B9d_8_V2.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";
|
|
@@ -920,8 +920,8 @@ declare const WorkflowFrameStateSchema$1: z.ZodObject<{
|
|
|
920
920
|
cancelled: "cancelled";
|
|
921
921
|
running: "running";
|
|
922
922
|
failed: "failed";
|
|
923
|
-
waiting: "waiting";
|
|
924
923
|
skipped: "skipped";
|
|
924
|
+
waiting: "waiting";
|
|
925
925
|
}>;
|
|
926
926
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
927
927
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -936,8 +936,8 @@ type WorkflowFrameState$1 = z.infer<typeof WorkflowFrameStateSchema$1>;
|
|
|
936
936
|
declare const WorkflowGateStatusSchema: z.ZodEnum<{
|
|
937
937
|
cancelled: "cancelled";
|
|
938
938
|
rejected: "rejected";
|
|
939
|
-
waiting: "waiting";
|
|
940
939
|
resumed: "resumed";
|
|
940
|
+
waiting: "waiting";
|
|
941
941
|
"timed-out": "timed-out";
|
|
942
942
|
}>;
|
|
943
943
|
type WorkflowGateStatus = z.infer<typeof WorkflowGateStatusSchema>;
|
|
@@ -957,8 +957,8 @@ declare const WorkflowGateInstanceSchema$1: z.ZodObject<{
|
|
|
957
957
|
status: z.ZodEnum<{
|
|
958
958
|
cancelled: "cancelled";
|
|
959
959
|
rejected: "rejected";
|
|
960
|
-
waiting: "waiting";
|
|
961
960
|
resumed: "resumed";
|
|
961
|
+
waiting: "waiting";
|
|
962
962
|
"timed-out": "timed-out";
|
|
963
963
|
}>;
|
|
964
964
|
autoAction: z.ZodEnum<{
|
|
@@ -1169,8 +1169,8 @@ declare const GateInstanceListQuerySchema$1: z.ZodObject<{
|
|
|
1169
1169
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1170
1170
|
cancelled: "cancelled";
|
|
1171
1171
|
rejected: "rejected";
|
|
1172
|
-
waiting: "waiting";
|
|
1173
1172
|
resumed: "resumed";
|
|
1173
|
+
waiting: "waiting";
|
|
1174
1174
|
"timed-out": "timed-out";
|
|
1175
1175
|
}>>;
|
|
1176
1176
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1236,13 +1236,13 @@ interface IWorkflowTriggerTypeRegistry$1 {
|
|
|
1236
1236
|
* excluded — they emit lifecycle events only as parent frames, not as runner
|
|
1237
1237
|
* targets. `gate` is included because gate resolution events are observable.
|
|
1238
1238
|
*/
|
|
1239
|
-
declare const WorkflowStepTypeSchema: z.ZodEnum<{
|
|
1239
|
+
declare const WorkflowStepTypeSchema$1: z.ZodEnum<{
|
|
1240
1240
|
station: "station";
|
|
1241
1241
|
"delegate-agent": "delegate-agent";
|
|
1242
1242
|
"delegate-role": "delegate-role";
|
|
1243
1243
|
gate: "gate";
|
|
1244
1244
|
}>;
|
|
1245
|
-
type WorkflowStepType = z.infer<typeof WorkflowStepTypeSchema>;
|
|
1245
|
+
type WorkflowStepType = z.infer<typeof WorkflowStepTypeSchema$1>;
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Node types that are dispatchable to a {@link IStepRunner}.
|
|
1248
1248
|
* Gates and delegation nodes are coordination steps handled by the orchestrator,
|
|
@@ -2785,8 +2785,8 @@ declare const WorkflowSchemas: {
|
|
|
2785
2785
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2786
2786
|
cancelled: "cancelled";
|
|
2787
2787
|
rejected: "rejected";
|
|
2788
|
-
waiting: "waiting";
|
|
2789
2788
|
resumed: "resumed";
|
|
2789
|
+
waiting: "waiting";
|
|
2790
2790
|
"timed-out": "timed-out";
|
|
2791
2791
|
}>>;
|
|
2792
2792
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2801,8 +2801,8 @@ declare const WorkflowSchemas: {
|
|
|
2801
2801
|
status: z.ZodEnum<{
|
|
2802
2802
|
cancelled: "cancelled";
|
|
2803
2803
|
rejected: "rejected";
|
|
2804
|
-
waiting: "waiting";
|
|
2805
2804
|
resumed: "resumed";
|
|
2805
|
+
waiting: "waiting";
|
|
2806
2806
|
"timed-out": "timed-out";
|
|
2807
2807
|
}>;
|
|
2808
2808
|
autoAction: z.ZodEnum<{
|
|
@@ -2899,8 +2899,8 @@ declare const WorkflowSchemas: {
|
|
|
2899
2899
|
cancelled: "cancelled";
|
|
2900
2900
|
running: "running";
|
|
2901
2901
|
failed: "failed";
|
|
2902
|
-
waiting: "waiting";
|
|
2903
2902
|
skipped: "skipped";
|
|
2903
|
+
waiting: "waiting";
|
|
2904
2904
|
}>;
|
|
2905
2905
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
2906
2906
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2962,22 +2962,24 @@ declare const WorkflowSchemas: {
|
|
|
2962
2962
|
/**
|
|
2963
2963
|
* Register an external execution that is not driven by the workflow engine.
|
|
2964
2964
|
*
|
|
2965
|
-
*
|
|
2966
|
-
*
|
|
2967
|
-
*
|
|
2965
|
+
* Atomically creates the `workflow_executions` row, its running WorkLog
|
|
2966
|
+
* summary, and the optional initial frame. A caller-supplied external ID
|
|
2967
|
+
* makes an identical registration replay idempotent; conflicting replays are
|
|
2968
|
+
* rejected without overwriting durable state.
|
|
2968
2969
|
*
|
|
2969
2970
|
* External executions are not associated with a persisted workflow definition
|
|
2970
2971
|
* and do not create coordinator sessions, run-context snapshots, or
|
|
2971
|
-
* runtime state.
|
|
2972
|
-
* telemetry projections.
|
|
2972
|
+
* runtime state.
|
|
2973
2973
|
*
|
|
2974
|
-
*
|
|
2975
|
-
*
|
|
2976
|
-
*
|
|
2974
|
+
* Standard execution and frame lifecycle events remain useful as advisory
|
|
2975
|
+
* signals for other consumers, but WorkLog durability does not depend on
|
|
2976
|
+
* those events.
|
|
2977
2977
|
*/
|
|
2978
2978
|
registerExternalExecution: {
|
|
2979
2979
|
request: z.ZodObject<{
|
|
2980
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
2980
2981
|
name: z.ZodString;
|
|
2982
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2981
2983
|
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2982
2984
|
type: z.ZodLiteral<"global">;
|
|
2983
2985
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2997,17 +2999,33 @@ declare const WorkflowSchemas: {
|
|
|
2997
2999
|
}, z.core.$strip>>;
|
|
2998
3000
|
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
2999
3001
|
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
3002
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
3003
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
nodeId: z.ZodString;
|
|
3005
|
+
nodeType: z.ZodEnum<{
|
|
3006
|
+
station: "station";
|
|
3007
|
+
"delegate-agent": "delegate-agent";
|
|
3008
|
+
"delegate-role": "delegate-role";
|
|
3009
|
+
gate: "gate";
|
|
3010
|
+
}>;
|
|
3011
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3012
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
3013
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
3014
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
3015
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3016
|
+
}, z.core.$strict>>;
|
|
3000
3017
|
}, z.core.$strip>;
|
|
3001
3018
|
response: z.ZodObject<{
|
|
3002
3019
|
executionId: z.ZodString;
|
|
3020
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
3003
3021
|
}, z.core.$strip>;
|
|
3004
3022
|
};
|
|
3005
3023
|
/**
|
|
3006
|
-
* Complete an external execution
|
|
3024
|
+
* Complete an external execution and its WorkLog projection atomically.
|
|
3007
3025
|
*
|
|
3008
|
-
*
|
|
3009
|
-
*
|
|
3010
|
-
*
|
|
3026
|
+
* Identical terminal replays succeed. Conflicting execution status, metadata,
|
|
3027
|
+
* or frame identity fails without overwriting the existing settlement.
|
|
3028
|
+
* Lifecycle events may still be emitted for advisory consumers.
|
|
3011
3029
|
*
|
|
3012
3030
|
* Cross-field invariants (enforced by schema refinement):
|
|
3013
3031
|
* - `'failed'` requires a non-empty `error` string.
|
|
@@ -3025,6 +3043,22 @@ declare const WorkflowSchemas: {
|
|
|
3025
3043
|
error: z.ZodOptional<z.ZodString>;
|
|
3026
3044
|
reason: z.ZodOptional<z.ZodString>;
|
|
3027
3045
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
3046
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
3047
|
+
frameId: z.ZodString;
|
|
3048
|
+
nodeId: z.ZodString;
|
|
3049
|
+
nodeType: z.ZodEnum<{
|
|
3050
|
+
station: "station";
|
|
3051
|
+
"delegate-agent": "delegate-agent";
|
|
3052
|
+
"delegate-role": "delegate-role";
|
|
3053
|
+
gate: "gate";
|
|
3054
|
+
}>;
|
|
3055
|
+
path: z.ZodArray<z.ZodString>;
|
|
3056
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
3057
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
3058
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
3059
|
+
startedAt: z.ZodNumber;
|
|
3060
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3061
|
+
}, z.core.$strict>>;
|
|
3028
3062
|
}, z.core.$strip>;
|
|
3029
3063
|
response: z.ZodObject<{
|
|
3030
3064
|
success: z.ZodBoolean;
|
|
@@ -3688,6 +3722,55 @@ declare const WorkflowSchemas: {
|
|
|
3688
3722
|
}, z.core.$strip>>;
|
|
3689
3723
|
}, z.core.$strip>;
|
|
3690
3724
|
};
|
|
3725
|
+
/**
|
|
3726
|
+
* Retrieve one projected WorkLog frame entry by frame identifier (RPC).
|
|
3727
|
+
*
|
|
3728
|
+
* This narrow lookup lets repair and audit consumers verify durable frame
|
|
3729
|
+
* state without loading the execution's runtime frame tree.
|
|
3730
|
+
*/
|
|
3731
|
+
'worklog.frame.get': {
|
|
3732
|
+
request: z.ZodObject<{
|
|
3733
|
+
frameId: z.ZodString;
|
|
3734
|
+
}, z.core.$strip>;
|
|
3735
|
+
response: z.ZodObject<{
|
|
3736
|
+
frame: z.ZodNullable<z.ZodObject<{
|
|
3737
|
+
executionId: z.ZodString;
|
|
3738
|
+
frameId: z.ZodString;
|
|
3739
|
+
nodeId: z.ZodString;
|
|
3740
|
+
nodeType: z.ZodEnum<{
|
|
3741
|
+
station: "station";
|
|
3742
|
+
"delegate-agent": "delegate-agent";
|
|
3743
|
+
"delegate-role": "delegate-role";
|
|
3744
|
+
sequence: "sequence";
|
|
3745
|
+
parallel: "parallel";
|
|
3746
|
+
gate: "gate";
|
|
3747
|
+
iterate: "iterate";
|
|
3748
|
+
"iterate-chain": "iterate-chain";
|
|
3749
|
+
loop: "loop";
|
|
3750
|
+
}>;
|
|
3751
|
+
path: z.ZodArray<z.ZodString>;
|
|
3752
|
+
status: z.ZodEnum<{
|
|
3753
|
+
pending: "pending";
|
|
3754
|
+
completed: "completed";
|
|
3755
|
+
cancelled: "cancelled";
|
|
3756
|
+
running: "running";
|
|
3757
|
+
failed: "failed";
|
|
3758
|
+
skipped: "skipped";
|
|
3759
|
+
waiting: "waiting";
|
|
3760
|
+
}>;
|
|
3761
|
+
attempt: z.ZodNumber;
|
|
3762
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
3763
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
3764
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
3765
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
3766
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
3767
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3768
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
3769
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
3770
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3771
|
+
}, z.core.$strip>>;
|
|
3772
|
+
}, z.core.$strip>;
|
|
3773
|
+
};
|
|
3691
3774
|
/**
|
|
3692
3775
|
* List WorkLog execution summaries with optional filtering (RPC).
|
|
3693
3776
|
*
|
|
@@ -4774,8 +4857,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4774
4857
|
status: z.ZodOptional<z.ZodEnum<{
|
|
4775
4858
|
cancelled: "cancelled";
|
|
4776
4859
|
rejected: "rejected";
|
|
4777
|
-
waiting: "waiting";
|
|
4778
4860
|
resumed: "resumed";
|
|
4861
|
+
waiting: "waiting";
|
|
4779
4862
|
"timed-out": "timed-out";
|
|
4780
4863
|
}>>;
|
|
4781
4864
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4790,8 +4873,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4790
4873
|
status: z.ZodEnum<{
|
|
4791
4874
|
cancelled: "cancelled";
|
|
4792
4875
|
rejected: "rejected";
|
|
4793
|
-
waiting: "waiting";
|
|
4794
4876
|
resumed: "resumed";
|
|
4877
|
+
waiting: "waiting";
|
|
4795
4878
|
"timed-out": "timed-out";
|
|
4796
4879
|
}>;
|
|
4797
4880
|
autoAction: z.ZodEnum<{
|
|
@@ -4888,8 +4971,8 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4888
4971
|
cancelled: "cancelled";
|
|
4889
4972
|
running: "running";
|
|
4890
4973
|
failed: "failed";
|
|
4891
|
-
waiting: "waiting";
|
|
4892
4974
|
skipped: "skipped";
|
|
4975
|
+
waiting: "waiting";
|
|
4893
4976
|
}>;
|
|
4894
4977
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
4895
4978
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4951,22 +5034,24 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4951
5034
|
/**
|
|
4952
5035
|
* Register an external execution that is not driven by the workflow engine.
|
|
4953
5036
|
*
|
|
4954
|
-
*
|
|
4955
|
-
*
|
|
4956
|
-
*
|
|
5037
|
+
* Atomically creates the `workflow_executions` row, its running WorkLog
|
|
5038
|
+
* summary, and the optional initial frame. A caller-supplied external ID
|
|
5039
|
+
* makes an identical registration replay idempotent; conflicting replays are
|
|
5040
|
+
* rejected without overwriting durable state.
|
|
4957
5041
|
*
|
|
4958
5042
|
* External executions are not associated with a persisted workflow definition
|
|
4959
5043
|
* and do not create coordinator sessions, run-context snapshots, or
|
|
4960
|
-
* runtime state.
|
|
4961
|
-
* telemetry projections.
|
|
5044
|
+
* runtime state.
|
|
4962
5045
|
*
|
|
4963
|
-
*
|
|
4964
|
-
*
|
|
4965
|
-
*
|
|
5046
|
+
* Standard execution and frame lifecycle events remain useful as advisory
|
|
5047
|
+
* signals for other consumers, but WorkLog durability does not depend on
|
|
5048
|
+
* those events.
|
|
4966
5049
|
*/
|
|
4967
5050
|
registerExternalExecution: {
|
|
4968
5051
|
request: z.ZodObject<{
|
|
5052
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
4969
5053
|
name: z.ZodString;
|
|
5054
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
4970
5055
|
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4971
5056
|
type: z.ZodLiteral<"global">;
|
|
4972
5057
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4986,17 +5071,33 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
4986
5071
|
}, z.core.$strip>>;
|
|
4987
5072
|
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
4988
5073
|
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
5074
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
5075
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
5076
|
+
nodeId: z.ZodString;
|
|
5077
|
+
nodeType: z.ZodEnum<{
|
|
5078
|
+
station: "station";
|
|
5079
|
+
"delegate-agent": "delegate-agent";
|
|
5080
|
+
"delegate-role": "delegate-role";
|
|
5081
|
+
gate: "gate";
|
|
5082
|
+
}>;
|
|
5083
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5084
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
5085
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
5086
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
5087
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
5088
|
+
}, z.core.$strict>>;
|
|
4989
5089
|
}, z.core.$strip>;
|
|
4990
5090
|
response: z.ZodObject<{
|
|
4991
5091
|
executionId: z.ZodString;
|
|
5092
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
4992
5093
|
}, z.core.$strip>;
|
|
4993
5094
|
};
|
|
4994
5095
|
/**
|
|
4995
|
-
* Complete an external execution
|
|
5096
|
+
* Complete an external execution and its WorkLog projection atomically.
|
|
4996
5097
|
*
|
|
4997
|
-
*
|
|
4998
|
-
*
|
|
4999
|
-
*
|
|
5098
|
+
* Identical terminal replays succeed. Conflicting execution status, metadata,
|
|
5099
|
+
* or frame identity fails without overwriting the existing settlement.
|
|
5100
|
+
* Lifecycle events may still be emitted for advisory consumers.
|
|
5000
5101
|
*
|
|
5001
5102
|
* Cross-field invariants (enforced by schema refinement):
|
|
5002
5103
|
* - `'failed'` requires a non-empty `error` string.
|
|
@@ -5014,6 +5115,22 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5014
5115
|
error: z.ZodOptional<z.ZodString>;
|
|
5015
5116
|
reason: z.ZodOptional<z.ZodString>;
|
|
5016
5117
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
5118
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
5119
|
+
frameId: z.ZodString;
|
|
5120
|
+
nodeId: z.ZodString;
|
|
5121
|
+
nodeType: z.ZodEnum<{
|
|
5122
|
+
station: "station";
|
|
5123
|
+
"delegate-agent": "delegate-agent";
|
|
5124
|
+
"delegate-role": "delegate-role";
|
|
5125
|
+
gate: "gate";
|
|
5126
|
+
}>;
|
|
5127
|
+
path: z.ZodArray<z.ZodString>;
|
|
5128
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
5129
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
5130
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
5131
|
+
startedAt: z.ZodNumber;
|
|
5132
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5133
|
+
}, z.core.$strict>>;
|
|
5017
5134
|
}, z.core.$strip>;
|
|
5018
5135
|
response: z.ZodObject<{
|
|
5019
5136
|
success: z.ZodBoolean;
|
|
@@ -5677,6 +5794,55 @@ declare const WorkflowNamespace$1: _$_makaio_core0.BusNamespaceDefinition<"workf
|
|
|
5677
5794
|
}, z.core.$strip>>;
|
|
5678
5795
|
}, z.core.$strip>;
|
|
5679
5796
|
};
|
|
5797
|
+
/**
|
|
5798
|
+
* Retrieve one projected WorkLog frame entry by frame identifier (RPC).
|
|
5799
|
+
*
|
|
5800
|
+
* This narrow lookup lets repair and audit consumers verify durable frame
|
|
5801
|
+
* state without loading the execution's runtime frame tree.
|
|
5802
|
+
*/
|
|
5803
|
+
'worklog.frame.get': {
|
|
5804
|
+
request: z.ZodObject<{
|
|
5805
|
+
frameId: z.ZodString;
|
|
5806
|
+
}, z.core.$strip>;
|
|
5807
|
+
response: z.ZodObject<{
|
|
5808
|
+
frame: z.ZodNullable<z.ZodObject<{
|
|
5809
|
+
executionId: z.ZodString;
|
|
5810
|
+
frameId: z.ZodString;
|
|
5811
|
+
nodeId: z.ZodString;
|
|
5812
|
+
nodeType: z.ZodEnum<{
|
|
5813
|
+
station: "station";
|
|
5814
|
+
"delegate-agent": "delegate-agent";
|
|
5815
|
+
"delegate-role": "delegate-role";
|
|
5816
|
+
sequence: "sequence";
|
|
5817
|
+
parallel: "parallel";
|
|
5818
|
+
gate: "gate";
|
|
5819
|
+
iterate: "iterate";
|
|
5820
|
+
"iterate-chain": "iterate-chain";
|
|
5821
|
+
loop: "loop";
|
|
5822
|
+
}>;
|
|
5823
|
+
path: z.ZodArray<z.ZodString>;
|
|
5824
|
+
status: z.ZodEnum<{
|
|
5825
|
+
pending: "pending";
|
|
5826
|
+
completed: "completed";
|
|
5827
|
+
cancelled: "cancelled";
|
|
5828
|
+
running: "running";
|
|
5829
|
+
failed: "failed";
|
|
5830
|
+
skipped: "skipped";
|
|
5831
|
+
waiting: "waiting";
|
|
5832
|
+
}>;
|
|
5833
|
+
attempt: z.ZodNumber;
|
|
5834
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
5835
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
5836
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
5837
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
5838
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
5839
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5840
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5841
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
5842
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5843
|
+
}, z.core.$strip>>;
|
|
5844
|
+
}, z.core.$strip>;
|
|
5845
|
+
};
|
|
5680
5846
|
/**
|
|
5681
5847
|
* List WorkLog execution summaries with optional filtering (RPC).
|
|
5682
5848
|
*
|
|
@@ -6763,8 +6929,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6763
6929
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6764
6930
|
cancelled: "cancelled";
|
|
6765
6931
|
rejected: "rejected";
|
|
6766
|
-
waiting: "waiting";
|
|
6767
6932
|
resumed: "resumed";
|
|
6933
|
+
waiting: "waiting";
|
|
6768
6934
|
"timed-out": "timed-out";
|
|
6769
6935
|
}>>;
|
|
6770
6936
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6779,8 +6945,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6779
6945
|
status: z.ZodEnum<{
|
|
6780
6946
|
cancelled: "cancelled";
|
|
6781
6947
|
rejected: "rejected";
|
|
6782
|
-
waiting: "waiting";
|
|
6783
6948
|
resumed: "resumed";
|
|
6949
|
+
waiting: "waiting";
|
|
6784
6950
|
"timed-out": "timed-out";
|
|
6785
6951
|
}>;
|
|
6786
6952
|
autoAction: z.ZodEnum<{
|
|
@@ -6877,8 +7043,8 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6877
7043
|
cancelled: "cancelled";
|
|
6878
7044
|
running: "running";
|
|
6879
7045
|
failed: "failed";
|
|
6880
|
-
waiting: "waiting";
|
|
6881
7046
|
skipped: "skipped";
|
|
7047
|
+
waiting: "waiting";
|
|
6882
7048
|
}>;
|
|
6883
7049
|
attempt: z.ZodDefault<z.ZodNumber>;
|
|
6884
7050
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6940,22 +7106,24 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6940
7106
|
/**
|
|
6941
7107
|
* Register an external execution that is not driven by the workflow engine.
|
|
6942
7108
|
*
|
|
6943
|
-
*
|
|
6944
|
-
*
|
|
6945
|
-
*
|
|
7109
|
+
* Atomically creates the `workflow_executions` row, its running WorkLog
|
|
7110
|
+
* summary, and the optional initial frame. A caller-supplied external ID
|
|
7111
|
+
* makes an identical registration replay idempotent; conflicting replays are
|
|
7112
|
+
* rejected without overwriting durable state.
|
|
6946
7113
|
*
|
|
6947
7114
|
* External executions are not associated with a persisted workflow definition
|
|
6948
7115
|
* and do not create coordinator sessions, run-context snapshots, or
|
|
6949
|
-
* runtime state.
|
|
6950
|
-
* telemetry projections.
|
|
7116
|
+
* runtime state.
|
|
6951
7117
|
*
|
|
6952
|
-
*
|
|
6953
|
-
*
|
|
6954
|
-
*
|
|
7118
|
+
* Standard execution and frame lifecycle events remain useful as advisory
|
|
7119
|
+
* signals for other consumers, but WorkLog durability does not depend on
|
|
7120
|
+
* those events.
|
|
6955
7121
|
*/
|
|
6956
7122
|
registerExternalExecution: {
|
|
6957
7123
|
request: z.ZodObject<{
|
|
7124
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
6958
7125
|
name: z.ZodString;
|
|
7126
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
6959
7127
|
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6960
7128
|
type: z.ZodLiteral<"global">;
|
|
6961
7129
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -6975,17 +7143,33 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
6975
7143
|
}, z.core.$strip>>;
|
|
6976
7144
|
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
6977
7145
|
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
7146
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
7147
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
7148
|
+
nodeId: z.ZodString;
|
|
7149
|
+
nodeType: z.ZodEnum<{
|
|
7150
|
+
station: "station";
|
|
7151
|
+
"delegate-agent": "delegate-agent";
|
|
7152
|
+
"delegate-role": "delegate-role";
|
|
7153
|
+
gate: "gate";
|
|
7154
|
+
}>;
|
|
7155
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7156
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
7157
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
7158
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
7159
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
7160
|
+
}, z.core.$strict>>;
|
|
6978
7161
|
}, z.core.$strip>;
|
|
6979
7162
|
response: z.ZodObject<{
|
|
6980
7163
|
executionId: z.ZodString;
|
|
7164
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
6981
7165
|
}, z.core.$strip>;
|
|
6982
7166
|
};
|
|
6983
7167
|
/**
|
|
6984
|
-
* Complete an external execution
|
|
7168
|
+
* Complete an external execution and its WorkLog projection atomically.
|
|
6985
7169
|
*
|
|
6986
|
-
*
|
|
6987
|
-
*
|
|
6988
|
-
*
|
|
7170
|
+
* Identical terminal replays succeed. Conflicting execution status, metadata,
|
|
7171
|
+
* or frame identity fails without overwriting the existing settlement.
|
|
7172
|
+
* Lifecycle events may still be emitted for advisory consumers.
|
|
6989
7173
|
*
|
|
6990
7174
|
* Cross-field invariants (enforced by schema refinement):
|
|
6991
7175
|
* - `'failed'` requires a non-empty `error` string.
|
|
@@ -7003,6 +7187,22 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7003
7187
|
error: z.ZodOptional<z.ZodString>;
|
|
7004
7188
|
reason: z.ZodOptional<z.ZodString>;
|
|
7005
7189
|
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
7190
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
7191
|
+
frameId: z.ZodString;
|
|
7192
|
+
nodeId: z.ZodString;
|
|
7193
|
+
nodeType: z.ZodEnum<{
|
|
7194
|
+
station: "station";
|
|
7195
|
+
"delegate-agent": "delegate-agent";
|
|
7196
|
+
"delegate-role": "delegate-role";
|
|
7197
|
+
gate: "gate";
|
|
7198
|
+
}>;
|
|
7199
|
+
path: z.ZodArray<z.ZodString>;
|
|
7200
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
7201
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
7202
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
7203
|
+
startedAt: z.ZodNumber;
|
|
7204
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7205
|
+
}, z.core.$strict>>;
|
|
7006
7206
|
}, z.core.$strip>;
|
|
7007
7207
|
response: z.ZodObject<{
|
|
7008
7208
|
success: z.ZodBoolean;
|
|
@@ -7666,6 +7866,55 @@ declare const WorkflowSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fl
|
|
|
7666
7866
|
}, z.core.$strip>>;
|
|
7667
7867
|
}, z.core.$strip>;
|
|
7668
7868
|
};
|
|
7869
|
+
/**
|
|
7870
|
+
* Retrieve one projected WorkLog frame entry by frame identifier (RPC).
|
|
7871
|
+
*
|
|
7872
|
+
* This narrow lookup lets repair and audit consumers verify durable frame
|
|
7873
|
+
* state without loading the execution's runtime frame tree.
|
|
7874
|
+
*/
|
|
7875
|
+
'worklog.frame.get': {
|
|
7876
|
+
request: z.ZodObject<{
|
|
7877
|
+
frameId: z.ZodString;
|
|
7878
|
+
}, z.core.$strip>;
|
|
7879
|
+
response: z.ZodObject<{
|
|
7880
|
+
frame: z.ZodNullable<z.ZodObject<{
|
|
7881
|
+
executionId: z.ZodString;
|
|
7882
|
+
frameId: z.ZodString;
|
|
7883
|
+
nodeId: z.ZodString;
|
|
7884
|
+
nodeType: z.ZodEnum<{
|
|
7885
|
+
station: "station";
|
|
7886
|
+
"delegate-agent": "delegate-agent";
|
|
7887
|
+
"delegate-role": "delegate-role";
|
|
7888
|
+
sequence: "sequence";
|
|
7889
|
+
parallel: "parallel";
|
|
7890
|
+
gate: "gate";
|
|
7891
|
+
iterate: "iterate";
|
|
7892
|
+
"iterate-chain": "iterate-chain";
|
|
7893
|
+
loop: "loop";
|
|
7894
|
+
}>;
|
|
7895
|
+
path: z.ZodArray<z.ZodString>;
|
|
7896
|
+
status: z.ZodEnum<{
|
|
7897
|
+
pending: "pending";
|
|
7898
|
+
completed: "completed";
|
|
7899
|
+
cancelled: "cancelled";
|
|
7900
|
+
running: "running";
|
|
7901
|
+
failed: "failed";
|
|
7902
|
+
skipped: "skipped";
|
|
7903
|
+
waiting: "waiting";
|
|
7904
|
+
}>;
|
|
7905
|
+
attempt: z.ZodNumber;
|
|
7906
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
7907
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
7908
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
7909
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
7910
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
7911
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7912
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
7913
|
+
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
7914
|
+
error: z.ZodOptional<z.ZodString>;
|
|
7915
|
+
}, z.core.$strip>>;
|
|
7916
|
+
}, z.core.$strip>;
|
|
7917
|
+
};
|
|
7669
7918
|
/**
|
|
7670
7919
|
* List WorkLog execution summaries with optional filtering (RPC).
|
|
7671
7920
|
*
|
|
@@ -8691,6 +8940,132 @@ interface IWorkflowRunner$1 {
|
|
|
8691
8940
|
dispose?(): Promise<void>;
|
|
8692
8941
|
}
|
|
8693
8942
|
//#endregion
|
|
8943
|
+
//#region core/contracts/src/workflow/external-execution.d.ts
|
|
8944
|
+
/** Reserved identifier prefix for executions owned by the external lifecycle API. */
|
|
8945
|
+
declare const EXTERNAL_EXECUTION_ID_PREFIX$1 = "wfx-ext-";
|
|
8946
|
+
/**
|
|
8947
|
+
* Frame metadata persisted atomically when an external execution is registered.
|
|
8948
|
+
*
|
|
8949
|
+
* `frameId`, `path`, and `startedAt` may be omitted so the workflow service can
|
|
8950
|
+
* derive stable defaults after it allocates the execution identifier. The
|
|
8951
|
+
* resolved values are returned and durably written before registration is
|
|
8952
|
+
* acknowledged.
|
|
8953
|
+
*/
|
|
8954
|
+
declare const ExternalExecutionFrameStartSchema: z.ZodObject<{
|
|
8955
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
8956
|
+
nodeId: z.ZodString;
|
|
8957
|
+
nodeType: z.ZodEnum<{
|
|
8958
|
+
station: "station";
|
|
8959
|
+
"delegate-agent": "delegate-agent";
|
|
8960
|
+
"delegate-role": "delegate-role";
|
|
8961
|
+
gate: "gate";
|
|
8962
|
+
}>;
|
|
8963
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8964
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
8965
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
8966
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
8967
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
8968
|
+
}, z.core.$strict>;
|
|
8969
|
+
/** Inferred external frame registration metadata. */
|
|
8970
|
+
type ExternalExecutionFrameStart = z.infer<typeof ExternalExecutionFrameStartSchema>;
|
|
8971
|
+
/**
|
|
8972
|
+
* Exact frame metadata supplied when an external execution settles.
|
|
8973
|
+
*
|
|
8974
|
+
* The workflow service derives the terminal frame status, completion timestamp,
|
|
8975
|
+
* duration, and failure text from the enclosing completion request, then writes
|
|
8976
|
+
* the execution, WorkLog summary, and frame in one transaction.
|
|
8977
|
+
*/
|
|
8978
|
+
declare const ExternalExecutionFrameCompletionSchema: z.ZodObject<{
|
|
8979
|
+
frameId: z.ZodString;
|
|
8980
|
+
nodeId: z.ZodString;
|
|
8981
|
+
nodeType: z.ZodEnum<{
|
|
8982
|
+
station: "station";
|
|
8983
|
+
"delegate-agent": "delegate-agent";
|
|
8984
|
+
"delegate-role": "delegate-role";
|
|
8985
|
+
gate: "gate";
|
|
8986
|
+
}>;
|
|
8987
|
+
path: z.ZodArray<z.ZodString>;
|
|
8988
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
8989
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
8990
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
8991
|
+
startedAt: z.ZodNumber;
|
|
8992
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8993
|
+
}, z.core.$strict>;
|
|
8994
|
+
/** Inferred external frame completion metadata. */
|
|
8995
|
+
type ExternalExecutionFrameCompletion = z.infer<typeof ExternalExecutionFrameCompletionSchema>;
|
|
8996
|
+
/** Request contract for atomic external execution registration. */
|
|
8997
|
+
declare const RegisterExternalExecutionRequestSchema: z.ZodObject<{
|
|
8998
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
8999
|
+
name: z.ZodString;
|
|
9000
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
9001
|
+
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9002
|
+
type: z.ZodLiteral<"global">;
|
|
9003
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9004
|
+
type: z.ZodLiteral<"workspace">;
|
|
9005
|
+
id: z.ZodString;
|
|
9006
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9007
|
+
type: z.ZodLiteral<"session">;
|
|
9008
|
+
id: z.ZodString;
|
|
9009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9010
|
+
type: z.ZodLiteral<"external">;
|
|
9011
|
+
kind: z.ZodString;
|
|
9012
|
+
id: z.ZodString;
|
|
9013
|
+
}, z.core.$strict>], "type">>;
|
|
9014
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
9015
|
+
kind: z.ZodString;
|
|
9016
|
+
id: z.ZodString;
|
|
9017
|
+
}, z.core.$strip>>;
|
|
9018
|
+
input: z.ZodOptional<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>;
|
|
9019
|
+
triggerPayload: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
9020
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
9021
|
+
frameId: z.ZodOptional<z.ZodString>;
|
|
9022
|
+
nodeId: z.ZodString;
|
|
9023
|
+
nodeType: z.ZodEnum<{
|
|
9024
|
+
station: "station";
|
|
9025
|
+
"delegate-agent": "delegate-agent";
|
|
9026
|
+
"delegate-role": "delegate-role";
|
|
9027
|
+
gate: "gate";
|
|
9028
|
+
}>;
|
|
9029
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9030
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
9031
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
9032
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
9033
|
+
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
9034
|
+
}, z.core.$strict>>;
|
|
9035
|
+
}, z.core.$strip>;
|
|
9036
|
+
/** Parsed external execution registration request. */
|
|
9037
|
+
type RegisterExternalExecutionRequest = z.infer<typeof RegisterExternalExecutionRequestSchema>;
|
|
9038
|
+
/** Request contract for atomic, idempotent external execution settlement. */
|
|
9039
|
+
declare const CompleteExternalExecutionRequestSchema: z.ZodObject<{
|
|
9040
|
+
executionId: z.ZodString;
|
|
9041
|
+
status: z.ZodEnum<{
|
|
9042
|
+
completed: "completed";
|
|
9043
|
+
cancelled: "cancelled";
|
|
9044
|
+
failed: "failed";
|
|
9045
|
+
}>;
|
|
9046
|
+
error: z.ZodOptional<z.ZodString>;
|
|
9047
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
9048
|
+
completedAt: z.ZodOptional<z.ZodNumber>;
|
|
9049
|
+
frame: z.ZodOptional<z.ZodObject<{
|
|
9050
|
+
frameId: z.ZodString;
|
|
9051
|
+
nodeId: z.ZodString;
|
|
9052
|
+
nodeType: z.ZodEnum<{
|
|
9053
|
+
station: "station";
|
|
9054
|
+
"delegate-agent": "delegate-agent";
|
|
9055
|
+
"delegate-role": "delegate-role";
|
|
9056
|
+
gate: "gate";
|
|
9057
|
+
}>;
|
|
9058
|
+
path: z.ZodArray<z.ZodString>;
|
|
9059
|
+
attempt: z.ZodDefault<z.ZodNumber>;
|
|
9060
|
+
iteration: z.ZodOptional<z.ZodNumber>;
|
|
9061
|
+
branchKey: z.ZodOptional<z.ZodString>;
|
|
9062
|
+
startedAt: z.ZodNumber;
|
|
9063
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
9064
|
+
}, z.core.$strict>>;
|
|
9065
|
+
}, z.core.$strip>;
|
|
9066
|
+
/** Parsed external execution completion request. */
|
|
9067
|
+
type CompleteExternalExecutionRequest = z.infer<typeof CompleteExternalExecutionRequestSchema>;
|
|
9068
|
+
//#endregion
|
|
8694
9069
|
//#region core/contracts/src/workflow/worklog.d.ts
|
|
8695
9070
|
/**
|
|
8696
9071
|
* Summarised view of a workflow execution.
|
|
@@ -8729,7 +9104,7 @@ type WorkLogExecutionSummary = z.infer<typeof WorkLogExecutionSummarySchema>;
|
|
|
8729
9104
|
* Multiple entries may exist per `nodeId` if the node is retried or
|
|
8730
9105
|
* executed inside an `iterate`/`iterate-chain` expansion.
|
|
8731
9106
|
*/
|
|
8732
|
-
declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
9107
|
+
declare const WorkLogFrameEntrySchema$1: z.ZodObject<{
|
|
8733
9108
|
executionId: z.ZodString;
|
|
8734
9109
|
frameId: z.ZodString;
|
|
8735
9110
|
nodeId: z.ZodString;
|
|
@@ -8737,7 +9112,12 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
8737
9112
|
station: "station";
|
|
8738
9113
|
"delegate-agent": "delegate-agent";
|
|
8739
9114
|
"delegate-role": "delegate-role";
|
|
9115
|
+
sequence: "sequence";
|
|
9116
|
+
parallel: "parallel";
|
|
8740
9117
|
gate: "gate";
|
|
9118
|
+
iterate: "iterate";
|
|
9119
|
+
"iterate-chain": "iterate-chain";
|
|
9120
|
+
loop: "loop";
|
|
8741
9121
|
}>;
|
|
8742
9122
|
path: z.ZodArray<z.ZodString>;
|
|
8743
9123
|
status: z.ZodEnum<{
|
|
@@ -8746,8 +9126,8 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
8746
9126
|
cancelled: "cancelled";
|
|
8747
9127
|
running: "running";
|
|
8748
9128
|
failed: "failed";
|
|
8749
|
-
waiting: "waiting";
|
|
8750
9129
|
skipped: "skipped";
|
|
9130
|
+
waiting: "waiting";
|
|
8751
9131
|
}>;
|
|
8752
9132
|
attempt: z.ZodNumber;
|
|
8753
9133
|
iteration: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8760,7 +9140,7 @@ declare const WorkLogFrameEntrySchema: z.ZodObject<{
|
|
|
8760
9140
|
estimatedCost: z.ZodOptional<z.ZodNumber>;
|
|
8761
9141
|
error: z.ZodOptional<z.ZodString>;
|
|
8762
9142
|
}, z.core.$strip>;
|
|
8763
|
-
type WorkLogFrameEntry = z.infer<typeof WorkLogFrameEntrySchema>;
|
|
9143
|
+
type WorkLogFrameEntry = z.infer<typeof WorkLogFrameEntrySchema$1>;
|
|
8764
9144
|
/**
|
|
8765
9145
|
* A single artifact write event recorded in the WorkLog.
|
|
8766
9146
|
*
|
|
@@ -8800,8 +9180,8 @@ declare const WorkLogGateEventSchema: z.ZodObject<{
|
|
|
8800
9180
|
status: z.ZodEnum<{
|
|
8801
9181
|
cancelled: "cancelled";
|
|
8802
9182
|
rejected: "rejected";
|
|
8803
|
-
waiting: "waiting";
|
|
8804
9183
|
resumed: "resumed";
|
|
9184
|
+
waiting: "waiting";
|
|
8805
9185
|
"timed-out": "timed-out";
|
|
8806
9186
|
}>;
|
|
8807
9187
|
prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -10246,4 +10626,4 @@ declare const ExecutionHintsSchema$1: z.ZodObject<{
|
|
|
10246
10626
|
}, z.core.$catchall<z.ZodType<_$_makaio_contracts0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
|
|
10247
10627
|
type ExecutionHints = z.infer<typeof ExecutionHintsSchema$1>;
|
|
10248
10628
|
//#endregion
|
|
10249
|
-
export { AwaitSubagentRequest as $,
|
|
10629
|
+
export { AwaitSubagentRequest as $, WorkflowParallelNodeSchema as $i, JsonPatchOperationSchema$1 as $n, ExecutionStatusSchema$1 as $r, IWorkflowRunner$1 as $t, LoopGateHandler$1 as A, WorkflowGateInstance as Ai, serializeArtifactRef$1 as An, WorkflowCancelPayloadSchema as Ar, WorkLogArtifactWrite as At, WorkflowTriggerDef as B, WorkflowListQuery as Bi, BusEventPublishTarget as Bn, BusEventTrigger as Br, WorkLogStats as Bt, NodeOptions as C, WorkflowDynamicRegionSchema as Ci, WorkflowNodeVisitor as Cn, StepRunnerPlatformDefaultsSchema as Cr, SpawnSubagentRpcResponse as Ct, WorkflowStateAuthoringDefinition as D, WorkflowExecutionScopeSchema as Di, WorkflowArtifactRef as Dn, TokenUsageSchema as Dr, SubagentExecutionFailed as Dt, WorkflowBuilder as E, WorkflowExecutionScope as Ei, WorkflowRunContextSchema$1 as En, TokenUsage as Er, SubagentConstraints$1 as Et, ExtensionWorkflowTrigger as F, WorkflowGateStatusSchema as Fi, WorkflowSubjects$1 as Fn, WorkflowStepTypeSchema$1 as Fr, WorkLogExecutionSummarySchema as Ft, IterateHandler as G, WorkflowNodeBase as Gi, ContextBundleSchema as Gn, EXECUTION_LIST_DEFAULT_LIMIT$1 as Gr, CompleteExternalExecutionRequestSchema as Gt, ArtifactPatch as H, WorkflowLoopNode as Hi, BusRequestSource as Hn, EXECUTIONS_BY_ARTIFACT_REFS_DEFAULT_LIMIT_PER_REF as Hr, WorkLogUsageSummary as Ht, ExtractTriggerPayload as I, WorkflowIterateChainNode as Ii, ArtifactPublishTarget as In, createStepCancelSubject$1 as Ir, WorkLogFrameEntry as It, StationStepContext as J, WorkflowNodeType as Ji, ContextSource as Jn, ExecutionListCursor as Jr, ExternalExecutionFrameCompletionSchema as Jt, PreviousStepOutput as K, WorkflowNodeBaseSchema as Ki, ContextPublishTarget as Kn, EXECUTION_LIST_MAX_LIMIT$1 as Kr, EXTERNAL_EXECUTION_ID_PREFIX$1 as Kt, ManualWorkflowTrigger as L, WorkflowIterateChainNodeSchema as Li, ArtifactPublishTargetSchema as Ln, createWorkflowCancelSubject$1 as Lr, WorkLogFrameEntrySchema$1 as Lt, BusEventWorkflowTrigger as M, WorkflowGateNode as Mi, WorkflowProgressUpdate as Mn, WorkflowRunnerStepType as Mr, WorkLogDynamicNodeMaterialization as Mt, CronTriggerPayload as N, WorkflowGateNodeSchema as Ni, WorkflowProgressUpdateSchema as Nn, WorkflowRunnerStepTypeSchema as Nr, WorkLogDynamicNodeMaterializationSchema as Nt, WorkflowZodSchemas$1 as O, WorkflowFrameState$1 as Oi, WorkflowArtifactRefSchema as On, WORKFLOW_CANCELLED_REASON$1 as Or, SubagentStatus$1 as Ot, CronWorkflowTrigger as P, WorkflowGateStatus as Pi, WorkflowSchemas as Pn, WorkflowStepType as Pr, WorkLogExecutionSummary as Pt, WorkflowStateContext as Q, WorkflowParallelNode as Qi, JsonPatchOperation$1 as Qn, ExecutionStatus as Qr, RegisterExternalExecutionRequestSchema as Qt, WebhookTriggerPayload as R, WorkflowIterateNode as Ri, ArtifactQuerySource as Rn, IWorkflowTriggerTypeRegistry$1 as Rr, WorkLogGateEvent as Rt, LoopOptions as S, WorkflowDynamicRegion as Si, WalkRelationship as Sn, StepRunnerPlatformDefaults$1 as Sr, SpawnSubagentRpcRequestSchema$1 as St, ParallelOptions as T, WorkflowExecutionSchema$1 as Ti, WorkflowRunContext as Tn, StepTelemetrySchema as Tr, SubagentConfigSchema$1 as Tt, ArtifactUpdateOperation as U, WorkflowLoopNodeSchema as Ui, BusRequestSourceSchema as Un, EXECUTIONS_BY_ARTIFACT_REFS_MAX_LIMIT_PER_REF as Ur, WorkLogUsageSummarySchema as Ut, ArtifactContext as V, WorkflowListQuerySchema$1 as Vi, BusEventPublishTargetSchema as Vn, BusEventTriggerSchema as Vr, WorkLogStatsSchema as Vt, ArtifactUpdater as W, WorkflowNode as Wi, ContextBundle as Wn, EXECUTIONS_BY_ARTIFACT_REFS_MAX_REFS as Wr, CompleteExternalExecutionRequest as Wt, WorkflowContext as X, WorkflowParallelMode as Xi, ResolvedContextEntry as Xn, ExecutionListQuery as Xr, ExternalExecutionFrameStartSchema as Xt, StepContext as Y, WorkflowNodeTypeSchema as Yi, ContextSourceSchema as Yn, ExecutionListCursorSchema as Yr, ExternalExecutionFrameStart as Yt, WorkflowContextBase as Z, WorkflowParallelModeSchema as Zi, ResolvedContextEntrySchema as Zn, ExecutionListQuerySchema$1 as Zr, RegisterExternalExecutionRequest as Zt, BuiltWorkflow as _, WorkflowDefinitionSchema$1 as _i, ProjectedWorkflowGraph as _n, StepRunConfigSchema as _r, RequestInputRpcRequest as _t, defineWorkflowBundle as a, WorkflowSequenceNodeSchema as aa, GateInstanceListQuerySchema$1 as ai, WorkflowRunResultSchema as an, ExecutionLinkSchema$1 as ar, ContextMode as at, IterateOptions as b, WorkflowDelegateRoleNode as bi, projectWorkflowGraph as bn, StepRunnerBusAuth$1 as br, SendToSubagentResponse as bt, delegateToRole as c, WorkflowStateDefinition as ca, WorkflowArtifactBinding as ci, WorkflowWorkerBusAuthSchema as cn, SpanRecord as cr, ExecuteSubagentResponse as ct, iterateChain as d, WorkflowStationNodeSchema as da, WorkflowArtifactWriteDeclarationSchema as di, WorkflowWorkerSource$1 as dn, SpanStatusSchema as dr, ListSubagentsBySessionRequest as dt, WorkflowResolvedAgent as ea, ExecutionsByArtifactRefsQuery as ei, WorkerContributionManifest$1 as en, WorkflowError$1 as er, AwaitSubagentResponse as et, loop as f, WorkflowTrigger as fa, WorkflowCondition as fi, WorkflowWorkerSourceSchema$1 as fn, IStepRunner as fr, ListSubagentsBySessionResponse as ft, ArtifactBindingOptions as g, WorkflowDefinitionProvenanceSchema as gi, ProjectedNodeRole as gn, StepRunConfig as gr, ReportProgressResponse as gt, AgentConfig as h, WorkflowDefinitionProvenance as hi, ProjectedNode as hn, StepCancelSubject as hr, ReportProgressRequest as ht, WorkflowBundle as i, WorkflowSequenceNode as ia, GateInstanceListQuery as ii, WorkflowRunResult$1 as in, ExecutionLinkListQuerySchema$1 as ir, CompletionModeSchema as it, validateNoNestedLoops as j, WorkflowGateInstanceSchema$1 as ji, WorkflowNamespace$1 as jn, WorkflowCancelSubject as jr, WorkLogArtifactWriteSchema as jt, LoopGateContext as k, WorkflowFrameStateSchema$1 as ki, parseArtifactRef as kn, WorkflowCancelPayload as kr, SubagentStatusSchema as kt, gate as l, WorkflowStateDefinitionSchema as la, WorkflowArtifactBindingSchema as li, WorkflowWorkerConfig$1 as ln, SpanRecordSchema$1 as lr, KillSubagentRequest as lt, zodSchemaToJsonRecord$1 as m, WorkflowDefinition$1 as mi, ProjectedEdgeKind as mn, StepCancelPayloadSchema as mr, PendingRequestSchema as mt, ExecutionHintsSchema$1 as n, WorkflowResolvedRole as na, ExtensionWorkflowTrigger$1 as ni, WorkerContributionPackageRef as nn, ExecutionLink as nr, CompleteTaskResponse as nt, defineWorkflow as o, WorkflowSourceLocation as oa, LoopGateOutcome as oi, WorkflowRunnerRunOptions$1 as on, ExecutionLinkType as or, ContextModeSchema$1 as ot, station as p, WorkflowTriggerSchema as pa, WorkflowConditionSchema as pi, ProjectedEdge as pn, StepCancelPayload as pr, PendingRequest$1 as pt, StationHandler$1 as q, WorkflowNodeSchema as qi, ContextPublishTargetSchema as qn, EXECUTION_LIST_MIN_LIMIT$1 as qr, ExternalExecutionFrameCompletion as qt, ExecutionSourceHintSchema as r, WorkflowResolvedRoleSchema as ra, ExtensionWorkflowTriggerSchema as ri, WorkerContributionPackageRefSchema as rn, ExecutionLinkListQuery as rr, CompletionMode$1 as rt, delegateToAgent as s, WorkflowSourceLocationSchema as sa, LoopGateOutcomeSchema as si, WorkflowWorkerBusAuth as sn, ExecutionLinkTypeSchema as sr, DEFAULT_CONSTRAINTS$1 as st, ExecutionHints as t, WorkflowResolvedAgentSchema as ta, ExecutionsByArtifactRefsQuerySchema$1 as ti, WorkerContributionManifestSchema as tn, WorkflowErrorCode$1 as tr, CompleteTaskRequest as tt, iterate as u, WorkflowStationNode as ua, WorkflowArtifactWriteDeclaration as ui, WorkflowWorkerConfigSchema$1 as un, SpanStatus as ur, KillSubagentResponse as ut, DefineWorkflowOptions as v, WorkflowDelegateAgentNode as vi, WorkflowDefinitionPath as vn, StepRunResult as vr, RequestInputRpcResponse as vt, ParallelMode as w, WorkflowExecution as wi, walkWorkflowDefinition$1 as wn, StepTelemetry as wr, SubagentConfig$1 as wt, LoopGateRegistration as x, WorkflowDelegateRoleNodeSchema as xi, WalkContext as xn, StepRunnerBusAuthSchema as xr, SpawnSubagentRpcRequest as xt, GateOptions as y, WorkflowDelegateAgentNodeSchema as yi, WorkflowDefinitionPathSegment as yn, StepRunResultSchema as yr, SendToSubagentRequest as yt, WebhookWorkflowTrigger as z, WorkflowIterateNodeSchema as zi, ArtifactQuerySourceSchema as zn, WorkflowTriggerTypeRecord as zr, WorkLogGateEventSchema as zt };
|