@makaio/framework 1.0.0-dev-1788258714339 → 1.0.0-dev-1788721567504
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/attempt-record-codec-BORASgzn.mjs +1 -0
- package/dist/authority-state-bootstrap-eitx6Ukn.mjs +1 -0
- package/dist/bus/index.d.mts +19 -19
- package/dist/bus/index.mjs +1 -1
- package/dist/capabilities-DEvmD9VJ.mjs +1 -0
- package/dist/{context-resolution-CW4OtPrS.d.mts → context-resolution-CoKFKIqz.d.mts} +5 -5
- package/dist/contracts/adapter/index.d.mts +1 -1
- package/dist/contracts/artifact/index.d.mts +2 -2
- package/dist/contracts/canonical-model/index.d.mts +1 -1
- package/dist/contracts/capabilities/index.d.mts +2 -2
- package/dist/contracts/capabilities/index.mjs +1 -1
- package/dist/contracts/client/index.d.mts +1 -1
- package/dist/contracts/extension/index.d.mts +3 -3
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +618 -124
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- package/dist/contracts/session/index.d.mts +2 -2
- package/dist/contracts/shared/index.d.mts +1 -1
- package/dist/contracts/variant/index.d.mts +1 -1
- package/dist/contracts/worker/index.d.mts +2 -0
- package/dist/contracts/worker/index.mjs +1 -0
- package/dist/contracts/workflow/index.d.mts +2 -2
- package/dist/contracts/workflow/index.mjs +1 -1
- package/dist/{execution-attempt-repository-BJ2W6wwx.d.mts → execution-attempt-repository-CRdrgou3.d.mts} +869 -58
- package/dist/{index-jxPncqWZ2.d.mts → index--Ws52sWV2.d.mts} +4 -4
- package/dist/{index-OG402CBI.d.mts → index-37_b--BH.d.mts} +85 -85
- package/dist/{index-B-3I98nw.d.mts → index-AdcDBUnc.d.mts} +95 -95
- package/dist/{index-CMekqu_D.d.mts → index-BJdkVFX9.d.mts} +327 -63
- package/dist/{index-4KJ6IDE7.d.mts → index-BKIxdzIw.d.mts} +5 -5
- package/dist/{index-CPi0UpRh.d.mts → index-B_8bA2JW.d.mts} +1 -1
- package/dist/{index-CmwAJ8-5.d.mts → index-CFI6FxC7.d.mts} +1 -1
- package/dist/{index-BqlCDBfc.d.mts → index-CVcG4Q3X.d.mts} +5 -5
- package/dist/{index-DXqG0r3o.d.mts → index-CxwqnZpT.d.mts} +62 -62
- package/dist/{index-BkbnC65b.d.mts → index-CyWGSxrs.d.mts} +291 -291
- package/dist/{index-B9V3T4EQ.d.mts → index-D037TVsm.d.mts} +4 -4
- package/dist/{index-C146Eq_J.d.mts → index-D1wTWSLR.d.mts} +327 -327
- package/dist/{index-DWkFkvRn2.d.mts → index-D8D-yibS2.d.mts} +3 -3
- package/dist/{index-Bqk0pJBQ2.d.mts → index-DBD_oFEt2.d.mts} +1 -1
- package/dist/{index-DJ2KgJDJ2.d.mts → index-DV38-klA2.d.mts} +59 -83
- package/dist/{index-C3lu_fy5.d.mts → index-I5a37JCm.d.mts} +76 -76
- package/dist/{namespace-l-HG1rLF.d.mts → namespace-Bo94cenp.d.mts} +136 -136
- package/dist/{namespace-DknCutQZ.d.mts → namespace-CPm9dhi2.d.mts} +2 -2
- package/dist/{namespace-BNp7n_gu.d.mts → namespace-CsnrP8AD.d.mts} +3 -3
- package/dist/{namespace-BGRHcrmp.d.mts → namespace-CstawJgN.d.mts} +2 -2
- package/dist/{namespace-C06lJSuj.d.mts → namespace-K23m4b0n.d.mts} +6 -6
- package/dist/{package-BNFTUFLB.d.mts → package-DkZmsdCd.d.mts} +107 -30
- package/dist/package-UemD2NWn.mjs +7 -0
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.d.mts +2 -2
- package/dist/runtime-node/index.mjs +24 -24
- package/dist/runtime-node/makaio-config.d.mts +2 -2
- package/dist/runtime-node/makaio-config.mjs +1 -1
- package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
- package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
- package/dist/runtime-node/workflow-worker/index.mjs +1 -1
- package/dist/runtime-node/workflow-worker/worker-entry.d.mts +49 -9
- package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
- package/dist/runtime-registration-client-BTtFpt_k.mjs +1 -0
- package/dist/{schemas-OWvBn7AH.d.mts → schemas-BCXvEWyF.d.mts} +4 -4
- package/dist/{schemas-Dd0po67F.d.mts → schemas-CJKHYluy.d.mts} +16 -16
- package/dist/{schemas-C1mxTfd7.d.mts → schemas-CenET9Cq.d.mts} +1 -1
- package/dist/{schemas-D7ScxLrf.d.mts → schemas-DTJtS14K.d.mts} +136 -136
- package/dist/services/adapter-runtime/index.d.mts +3 -3
- package/dist/services/adapter-runtime/namespace.d.mts +1 -1
- package/dist/services/adapter-runtime/schemas.d.mts +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/filesystem/namespace.d.mts +6 -6
- package/dist/services/filesystem/schemas.d.mts +3 -3
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +93 -93
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +2 -2
- package/dist/services/session/messages/namespace.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +12 -12
- package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
- 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/{transition-DXmCUq6w.d.mts → transition-DxsrTsn4.d.mts} +1 -1
- package/dist/{types-DcxBYlPA.d.mts → types-Czdm5op1.d.mts} +306 -306
- package/dist/ui-components/index.d.mts +4 -4
- package/dist/{view-builder-k82f5KFd.d.mts → view-builder-D-Wz_l_B.d.mts} +1 -1
- package/dist/worker-CLsRbzpk.mjs +1 -0
- package/dist/worker-DlRdLf2d.mjs +1 -0
- package/dist/workflow-BomH9DBB.mjs +1 -0
- package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
- package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
- package/dist/workflow-engine/index.d.mts +352 -62
- 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/testing/index.d.mts +83 -10
- package/dist/workflow-engine/testing/index.mjs +1 -1
- package/dist/workflow-engine/testing/sqlite.d.mts +3 -2
- package/dist/workflow-engine/testing/sqlite.mjs +107 -39
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-DjUfKshi.mjs +1 -0
- package/package.json +4 -4
- package/dist/attempt-record-codec-BYfYkj4M.mjs +0 -1
- package/dist/authority-state-bootstrap-CLYus369.mjs +0 -1
- package/dist/await-trigger-Bkg2BQfg.mjs +0 -1
- package/dist/capabilities-BUwuA7XX.mjs +0 -1
- package/dist/contracts/worker-node/index.d.mts +0 -2
- package/dist/contracts/worker-node/index.mjs +0 -1
- package/dist/package-B01gmu75.mjs +0 -7
- package/dist/worker-node-CjuQb9hl.mjs +0 -1
- package/dist/worker-node-Dtf9ilsR.mjs +0 -1
- package/dist/workflow-C4mck_NW.mjs +0 -1
- package/dist/workflow-worker-aNbdgqml.mjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as ProviderOperationClaim, c as ProviderOperationObligation, i as ProcessBoundProvisionerLossProof, l as ProviderOperationOwnershipRecord, n as InitialProviderOperationClaimContextSource, o as ProviderOperationClaimDecision, r as PROVIDER_OPERATION_OBLIGATIONS, s as ProviderOperationMutationDecision, t as InitialProviderOperationClaimContext } from "../provider-operation-DbdyFwNm.mjs";
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as WorkflowEngineServiceOptions, c as ExecutionAttemptAuthority, d as WorkflowWorkspaceRootResolver, f as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolution, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowMaterializationSpecResolver } from "../package-
|
|
2
|
+
import { A as OutcomeCodec, B as RecordProvisioningAbsentInput, C as ExecutionAttemptStatus, D as MarkRuntimeReadyInput, E as InfrastructureFailureDecision, F as RecordAllocationInput, G as RuntimeRegistrationDecision, H as RegisterRuntimeInput, I as RecordAllocationTerminatedInput, J as durableOutcome, K as TakeOverProviderOperationInput, L as RecordInfrastructureFailureInput, M as ProvisionerIncarnationLossDecision, N as ProvisioningAbsenceDecision, O as OperationAdmissionDecision, P as ProvisioningClaimDecision, R as RecordProviderOperationUncertaintyInput, S as ExecutionAttemptSettlementKind, T as HandoffProviderOperationInput, U as RenewProviderOperationClaimInput, V as RecoverableAttemptRecord, W as RuntimeReadinessDecision, X as sameDurableOutcome, Y as sameAllocationRef, _ as ExecutionAttemptOutcomeCommit, a as AllocationRefEvolutionDecision, b as ExecutionAttemptRecoveryOperations, c as AttemptOperationStartGate, d as DiscoveredAllocationDecision, f as DuplicateExecutionAttemptError, g as ExecutionAttemptCreate, h as EXECUTION_ATTEMPT_STATUSES, i as AllocationRefEvolution, j as PendingAttemptAbandonmentDecision, k as OperationCompletionDecision, l as BeginProvisioningInput, m as EXECUTION_ATTEMPT_SETTLEMENT_KINDS, n as AdmitOperationInput, o as AllocationTerminationDecision, p as DurableOutcome, q as decodeDurableOutcome, r as AllocationRecordingDecision, s as AttemptControlState, t as ATTEMPT_OPERATION_START_GATES, u as CompleteOperationInput, v as ExecutionAttemptOutcomeDecision, w as ExecutionOwnerId, x as ExecutionAttemptRepository, y as ExecutionAttemptRecord, z as RecordProvisionerIncarnationLostInput } from "../execution-attempt-repository-CRdrgou3.mjs";
|
|
3
|
+
import { a as WorkflowEngineServiceOptions, c as ExecutionAttemptAuthority, d as WorkflowWorkspaceRootResolver, f as registerDrizzleWorkflowStorage, i as WorkflowEngineService, l as WorkflowMaterializationSpecResolution, n as createWorkflowEnginePackage, o as WorkflowTriggerReconciler, r as workflowEnginePackage, s as WorkflowExecutor, t as WorkflowEngineToken, u as WorkflowMaterializationSpecResolver } from "../package-DkZmsdCd.mjs";
|
|
4
4
|
import { WorkflowTriggerPayloadPredicate, assertWorkflowTriggerPayload, compileWorkflowTriggerBindingFilter } from "./workflow-trigger-binding-consumer.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
7
7
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
8
8
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
9
|
-
import { JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult,
|
|
9
|
+
import { JsonPatchOperation, JsonValue, WorkflowAutomationTriggerBinding, WorkflowExecution, WorkflowExecutionSchema, WorkflowListQuerySchema, WorkflowRunResult, createWorkflowFinalizerNamespace } from "@makaio/framework/contracts";
|
|
10
10
|
import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
|
|
11
11
|
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
12
12
|
import * as _$_makaio_storage_drizzle0 from "@makaio/framework/storage/drizzle";
|
|
@@ -24,28 +24,318 @@ interface WorkflowSuccessFinalizer {
|
|
|
24
24
|
readonly finalizeSubject: ReturnType<typeof createWorkflowFinalizerNamespace>['subjects']['finalize'];
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
+
//#region subsystems/workflow-engine/src/runtime-registration.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Time the authority waits for the runtime's receipt of the bounded probe.
|
|
30
|
+
*
|
|
31
|
+
* Strictly below the bus-wide `DEFAULT_REQUEST_TIMEOUT_MS` of 60 000 ms the
|
|
32
|
+
* outer `execution-attempt.runtime.register` request runs on, so a dead
|
|
33
|
+
* endpoint fails its own registration with `probe-failed` instead of timing
|
|
34
|
+
* out the runtime that is waiting for the decision.
|
|
35
|
+
*/
|
|
36
|
+
declare const RUNTIME_PROBE_DELIVERY_TIMEOUT_MS = 10000;
|
|
37
|
+
/**
|
|
38
|
+
* Dependencies for the runtime registration handler.
|
|
39
|
+
*/
|
|
40
|
+
interface RuntimeRegistrationDeps<TOutcome> {
|
|
41
|
+
/**
|
|
42
|
+
* Bus the authority speaks on.
|
|
43
|
+
*
|
|
44
|
+
* Carries the probe delivery request and the readiness event. The bus the
|
|
45
|
+
* handler is registered on is the registrar's own first argument; in every
|
|
46
|
+
* production wiring the two are the same instance.
|
|
47
|
+
*/
|
|
48
|
+
readonly bus: IMakaioBus;
|
|
49
|
+
/** Execution attempt Authority service. */
|
|
50
|
+
readonly authority: ExecutionAttemptAuthority<TOutcome>;
|
|
51
|
+
/**
|
|
52
|
+
* Probe delivery budget override, in milliseconds.
|
|
53
|
+
*
|
|
54
|
+
* Defaults to {@link RUNTIME_PROBE_DELIVERY_TIMEOUT_MS}. Exists so a test can
|
|
55
|
+
* pin the timeout branch without waiting ten seconds for it; production
|
|
56
|
+
* wiring omits it.
|
|
57
|
+
*/
|
|
58
|
+
readonly probeDeliveryTimeoutMs?: number;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Register the `execution-attempt.runtime.register` bus handler.
|
|
62
|
+
*
|
|
63
|
+
* The single authority gate for runtime registration. It runs the whole
|
|
64
|
+
* handshake inside the one request the runtime made, so the reply is the
|
|
65
|
+
* runtime's complete answer and there is no `not-ready` retry loop:
|
|
66
|
+
*
|
|
67
|
+
* 1. Resolve the authenticated attempt peer and refuse unless its attempt id
|
|
68
|
+
* equals the payload's. Local origin is not a bypass — this handler is the
|
|
69
|
+
* identity fence, and the peer is where `executionId` comes from, because no
|
|
70
|
+
* payload in the namespace carries one.
|
|
71
|
+
* 2. `registerRuntime`. A `duplicate` that already proved readiness announces
|
|
72
|
+
* that readiness again (step 7) and is answered `duplicate`; a `duplicate` without
|
|
73
|
+
* readiness is a replay of this incarnation's own report and continues at
|
|
74
|
+
* step 3 exactly as `registered` does. Every other refusal is reported
|
|
75
|
+
* one-to-one.
|
|
76
|
+
* 3. Admit the bounded runtime probe under `probe:<runtimeIncarnationId>`. **No
|
|
77
|
+
* `operation.admitted` event is published for `runtime-probe`** — the probe
|
|
78
|
+
* never reaches the pool.
|
|
79
|
+
* 4. Deliver the probe to the runtime's own filtered subscription within
|
|
80
|
+
* {@link RUNTIME_PROBE_DELIVERY_TIMEOUT_MS}. The delivery names the
|
|
81
|
+
* incarnation, so only the endpoint that registered can answer it. A
|
|
82
|
+
* `refused` receipt, a timeout, an absent responder, or any throw fails the
|
|
83
|
+
* registration with `probe-failed`, releases the probe's slot, and leaves
|
|
84
|
+
* readiness unproven.
|
|
85
|
+
* 5. `completeOperation`, which frees the attempt for real work.
|
|
86
|
+
* 6. `markRuntimeReady`, which makes readiness durable for this generation and
|
|
87
|
+
* is the last fence: an attempt superseded since step 2 is refused here.
|
|
88
|
+
* 7. Publish `execution-attempt.runtime.ready` for the durable readiness, on
|
|
89
|
+
* the `ready` transition and on every `duplicate` that finds it already
|
|
90
|
+
* persisted. Announcements are at-least-once projections of durable state:
|
|
91
|
+
* the authority re-reads the control state right before it announces and
|
|
92
|
+
* publishes only the readiness that still holds — the same generation, still
|
|
93
|
+
* ready — so a newer incarnation that registered in between is never
|
|
94
|
+
* misrepresented by a stale announcement; a retried registration announces
|
|
95
|
+
* again, so an announcement whose first pass failed after persistence is
|
|
96
|
+
* delivered by the next pass; and every consumer is idempotent and
|
|
97
|
+
* generation-aware — the worker pool projects each generation once and
|
|
98
|
+
* ignores older ones, the Fly tracker resolves once, and observability
|
|
99
|
+
* upserts. What this does not cover is a process that exits between
|
|
100
|
+
* persisting readiness and announcing it: until a durable publication marker
|
|
101
|
+
* exists, that readiness is announced by the next registration of the same
|
|
102
|
+
* incarnation, or never.
|
|
103
|
+
* 8. Reply `ready` with the generation the runtime must fence everything else
|
|
104
|
+
* with.
|
|
105
|
+
*
|
|
106
|
+
* Step 7 is unreachable unless step 5 persisted the completion: readiness is
|
|
107
|
+
* announced only after the probe receipt became a durable fact.
|
|
108
|
+
* @param bus - Bus the handler subscribes on.
|
|
109
|
+
* @param deps - Runtime registration dependencies.
|
|
110
|
+
* @returns Cleanup function for handler deregistration.
|
|
111
|
+
*/
|
|
112
|
+
declare function registerRuntimeRegistrationHandler<TOutcome>(bus: IMakaioBus, deps: RuntimeRegistrationDeps<TOutcome>): () => void;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region subsystems/workflow-engine/src/operation-admission.d.ts
|
|
115
|
+
/**
|
|
116
|
+
* Dependencies for the operation admission handler.
|
|
117
|
+
*/
|
|
118
|
+
interface OperationAdmissionDeps<TOutcome> {
|
|
119
|
+
/**
|
|
120
|
+
* Bus the authority speaks on.
|
|
121
|
+
*
|
|
122
|
+
* Carries the `operation.admitted` announcement. The bus the handler is
|
|
123
|
+
* registered on is the registrar's own first argument; in every production
|
|
124
|
+
* wiring the two are the same instance.
|
|
125
|
+
*/
|
|
126
|
+
readonly bus: IMakaioBus;
|
|
127
|
+
/** Execution attempt Authority service. */
|
|
128
|
+
readonly authority: ExecutionAttemptAuthority<TOutcome>;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Register the `execution-attempt.operation.admit` bus handler.
|
|
132
|
+
*
|
|
133
|
+
* The single authority gate for the attempt's start gate. It fences the caller
|
|
134
|
+
* exactly as runtime registration does — the authenticated attempt peer must be
|
|
135
|
+
* the attempt named in the payload, and `executionId` is taken from the peer
|
|
136
|
+
* because no payload in the namespace carries one — and then makes one
|
|
137
|
+
* `admitOperation` call whose eight refusal kinds are the eight wire refusal
|
|
138
|
+
* reasons, one to one.
|
|
139
|
+
*
|
|
140
|
+
* `runtime-probe` is not admissible here at all. The bounded probe is the
|
|
141
|
+
* authority's own proof of the endpoint, admitted and completed inside the
|
|
142
|
+
* registration handshake; a caller admitting one on this gate would occupy the
|
|
143
|
+
* attempt's single slot with an operation no subject can complete. It is
|
|
144
|
+
* refused as a protocol violation, exactly like a peer mismatch.
|
|
145
|
+
*
|
|
146
|
+
* `execution-attempt.operation.admitted` is published for the durable
|
|
147
|
+
* admission, on the `admitted` transition and on every `duplicate` that finds
|
|
148
|
+
* it already persisted. Publication is at-least-once: a retried admission
|
|
149
|
+
* announces again, so an announcement whose first pass failed after
|
|
150
|
+
* persistence is delivered by the next pass. Every consumer is idempotent —
|
|
151
|
+
* the worker pool collapses repeats into one `busy` projection and
|
|
152
|
+
* observability upserts. What this does not cover is a process that exits
|
|
153
|
+
* between persisting the admission and announcing it: until a durable
|
|
154
|
+
* publication marker exists, that admission is announced by the next retry of
|
|
155
|
+
* the same key, or never.
|
|
156
|
+
* @param bus - Bus the handler subscribes on.
|
|
157
|
+
* @param deps - Operation admission dependencies.
|
|
158
|
+
* @returns Cleanup function for handler deregistration.
|
|
159
|
+
*/
|
|
160
|
+
declare function registerOperationAdmissionHandler<TOutcome>(bus: IMakaioBus, deps: OperationAdmissionDeps<TOutcome>): () => void;
|
|
161
|
+
//#endregion
|
|
27
162
|
//#region subsystems/workflow-engine/src/authority-dispatch-runner.d.ts
|
|
28
163
|
/**
|
|
29
|
-
* Inputs for dispatching an Authority-owned
|
|
164
|
+
* Inputs for dispatching an Authority-owned attempt.
|
|
165
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
30
166
|
*/
|
|
31
|
-
interface AuthorityDispatchRunnerOptions {
|
|
167
|
+
interface AuthorityDispatchRunnerOptions<TOutcome> {
|
|
32
168
|
/** Authority that persists and owns the execution attempt. */
|
|
33
|
-
readonly authority: ExecutionAttemptAuthority
|
|
34
|
-
/**
|
|
35
|
-
readonly executionId:
|
|
169
|
+
readonly authority: ExecutionAttemptAuthority<TOutcome>;
|
|
170
|
+
/** Owner identifier of the aggregate that owns the attempt. */
|
|
171
|
+
readonly executionId: ExecutionOwnerId;
|
|
36
172
|
/** Dispatch operation whose successful return acknowledges acceptance. */
|
|
37
173
|
readonly dispatch: (executionAttemptId: string) => Promise<unknown>;
|
|
38
174
|
}
|
|
39
175
|
/**
|
|
40
|
-
* Dispatch an Authority-owned attempt and await its canonical
|
|
176
|
+
* Dispatch an Authority-owned attempt and await its canonical outcome.
|
|
41
177
|
*
|
|
42
178
|
* A rejected dispatch operation is not proof that no provider received the
|
|
43
179
|
* request. The pending-abandonment CAS distinguishes a confirmed pre-allocation
|
|
44
180
|
* failure from a lost acknowledgement after provisioning, allocation, or settlement.
|
|
45
|
-
* @param options - Authority,
|
|
46
|
-
* @returns The Authority-committed
|
|
181
|
+
* @param options - Authority, owner identity, and dispatch operation.
|
|
182
|
+
* @returns The Authority-committed outcome.
|
|
47
183
|
*/
|
|
48
|
-
declare function runAuthorityDispatchedAttempt(options: AuthorityDispatchRunnerOptions): Promise<
|
|
184
|
+
declare function runAuthorityDispatchedAttempt<TOutcome>(options: AuthorityDispatchRunnerOptions<TOutcome>): Promise<TOutcome>;
|
|
185
|
+
//#endregion
|
|
186
|
+
//#region subsystems/workflow-engine/src/outcome-convergence.d.ts
|
|
187
|
+
/**
|
|
188
|
+
* Input handed to {@link OutcomeConvergence.converge}.
|
|
189
|
+
*
|
|
190
|
+
* Named rather than inlined so an owner-side realization can state the shape
|
|
191
|
+
* it implements against, and so a consumer can pin it from the public surface.
|
|
192
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
193
|
+
*/
|
|
194
|
+
interface OutcomeConvergenceInput<TOutcome> {
|
|
195
|
+
/** Owner identifier the attempt belongs to. */
|
|
196
|
+
readonly executionId: ExecutionOwnerId;
|
|
197
|
+
/** Authority-created attempt identifier. */
|
|
198
|
+
readonly executionAttemptId: string;
|
|
199
|
+
/** The canonical committed outcome, never the submitter's copy of it. */
|
|
200
|
+
readonly outcome: TOutcome;
|
|
201
|
+
/** The durable decision that produced the committed outcome. */
|
|
202
|
+
readonly decision: 'accepted' | 'duplicate';
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Owner-side convergence of a committed attempt outcome.
|
|
206
|
+
*
|
|
207
|
+
* Runs after the durable commit and before waiter settlement and ACK. It is
|
|
208
|
+
* idempotent by contract: it is re-entered for every duplicate retry, because
|
|
209
|
+
* a worker whose first submission committed but did not converge resubmits
|
|
210
|
+
* the same outcome, receives `duplicate`, and must converge again.
|
|
211
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
212
|
+
*/
|
|
213
|
+
interface OutcomeConvergence<TOutcome> {
|
|
214
|
+
/**
|
|
215
|
+
* Converge owner state with the committed outcome.
|
|
216
|
+
* @param input - Attempt identity, the canonical committed outcome, and the
|
|
217
|
+
* durable decision that produced it.
|
|
218
|
+
*/
|
|
219
|
+
converge(input: OutcomeConvergenceInput<TOutcome>): Promise<void>;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Owner-side validation that runs before the durable commit.
|
|
223
|
+
*
|
|
224
|
+
* Performs reads only: an outcome it rejects never becomes an immutable
|
|
225
|
+
* attempt outcome, so a corrected retry is not answered as a conflict. What
|
|
226
|
+
* it inspects is the canonical outcome the attempt will hold, obtained from
|
|
227
|
+
* `ExecutionAttemptAuthority.canonicalizeOutcome` before the commit.
|
|
228
|
+
*
|
|
229
|
+
* **A realization must be retry-stable.** {@link submitAttemptOutcome} runs it
|
|
230
|
+
* ahead of every commit, including the retry of a submission that already
|
|
231
|
+
* committed, so its verdict may depend only on the submission itself and on
|
|
232
|
+
* owner facts no convergence step rewrites — never on owner state convergence
|
|
233
|
+
* moves forward. A validator that read, say, a mutable lifecycle status would
|
|
234
|
+
* reject the identical retry of an outcome its own convergence already
|
|
235
|
+
* committed, and the waiter for that outcome would never settle.
|
|
236
|
+
*
|
|
237
|
+
* Retry-stable is measured on the outcome, not on its text. A retry need not
|
|
238
|
+
* render the same text as the first commit: `sameDurableOutcome` judges
|
|
239
|
+
* two texts the same outcome whatever member order they carry and answers
|
|
240
|
+
* `duplicate` for such a retry, while the validator sees the retry's own
|
|
241
|
+
* canonical rendering, never the stored one. Its verdict may therefore turn
|
|
242
|
+
* only on what `sameDurableOutcome` compares — the members and their values
|
|
243
|
+
* — and never on member order or any other detail of one particular
|
|
244
|
+
* rendering. A validator that keyed on which member comes first would reject
|
|
245
|
+
* the retry the repository is about to report as `duplicate`, and the
|
|
246
|
+
* committed-but-unconverged waiter could never recover. Validating the stored
|
|
247
|
+
* representation instead is not an option, for the reason the next paragraph
|
|
248
|
+
* gives: validation runs ahead of the commit, where the retry's rendering is
|
|
249
|
+
* the only one there is.
|
|
250
|
+
*
|
|
251
|
+
* The rule is stated here rather than worked around downstream because the
|
|
252
|
+
* order it constrains is the one that keeps a spoofed outcome out of durable
|
|
253
|
+
* storage: validation cannot move behind the commit without committing what
|
|
254
|
+
* it exists to reject. The workflow adapter's `validateOutcomeExecutionIdentity`
|
|
255
|
+
* satisfies it by correlating the submitted result against immutable durable
|
|
256
|
+
* identity — the execution's own id and workflow id, and the run context's
|
|
257
|
+
* terminal-authority binding, none of which outcome convergence touches.
|
|
258
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
259
|
+
*/
|
|
260
|
+
interface OutcomePreCommitValidation<TOutcome> {
|
|
261
|
+
/**
|
|
262
|
+
* Validate an outcome against owner state.
|
|
263
|
+
*
|
|
264
|
+
* Called again for every retry of the same submission, so the same outcome
|
|
265
|
+
* owes the same verdict — the same as `sameDurableOutcome` reads it,
|
|
266
|
+
* which ignores member order and every other rendering detail, not the
|
|
267
|
+
* same text.
|
|
268
|
+
*
|
|
269
|
+
* The outcome handed over is the canonical one — what the attempt will
|
|
270
|
+
* hold and what {@link OutcomeConvergence.converge} will receive — not the
|
|
271
|
+
* submitter's copy of it. A codec may normalize while serializing, so
|
|
272
|
+
* validating the copy would let an outcome the validator would have
|
|
273
|
+
* rejected become the immutable committed one.
|
|
274
|
+
* @param executionId - Owner identifier the attempt belongs to.
|
|
275
|
+
* @param outcome - Canonical outcome about to be committed.
|
|
276
|
+
* @throws When the outcome must not be committed.
|
|
277
|
+
*/
|
|
278
|
+
validate(executionId: ExecutionOwnerId, outcome: TOutcome): Promise<void>;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Dependencies of {@link submitAttemptOutcome}.
|
|
282
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
283
|
+
*/
|
|
284
|
+
interface AttemptOutcomeSubmissionDeps<TOutcome> {
|
|
285
|
+
/** Authority that commits the outcome and holds the in-process waiter. */
|
|
286
|
+
readonly authority: ExecutionAttemptAuthority<TOutcome>;
|
|
287
|
+
/** Owner convergence that runs for `accepted` and `duplicate` decisions. */
|
|
288
|
+
readonly convergence: OutcomeConvergence<TOutcome>;
|
|
289
|
+
/** Optional owner validation that runs before the durable commit. */
|
|
290
|
+
readonly validation?: OutcomePreCommitValidation<TOutcome>;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Input of {@link submitAttemptOutcome}.
|
|
294
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
295
|
+
*/
|
|
296
|
+
interface AttemptOutcomeSubmission<TOutcome> {
|
|
297
|
+
/** Owner identifier the attempt belongs to. */
|
|
298
|
+
readonly executionId: ExecutionOwnerId;
|
|
299
|
+
/** Authority-created attempt identifier. */
|
|
300
|
+
readonly executionAttemptId: string;
|
|
301
|
+
/** Outcome the worker submitted. */
|
|
302
|
+
readonly outcome: TOutcome;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Submit an attempt outcome through the generic owner boundary.
|
|
306
|
+
*
|
|
307
|
+
* Order: one canonicalization of the submitted outcome, optional pre-commit
|
|
308
|
+
* validation of that canonical value, durable commit of that same rendering
|
|
309
|
+
* through the authority, owner convergence for `accepted` and `duplicate`,
|
|
310
|
+
* then waiter settlement on a fresh decode of the text the decision reports
|
|
311
|
+
* as committed. The decision kind is returned for the caller's
|
|
312
|
+
* acknowledgement.
|
|
313
|
+
*
|
|
314
|
+
* Invariants this function keeps:
|
|
315
|
+
* - the submission is rendered exactly once, and the submitter's object is
|
|
316
|
+
* never read again after that: an outcome the caller mutates while an await
|
|
317
|
+
* is pending can reach neither the validation nor the durable write;
|
|
318
|
+
* - validation and convergence see one and the same value: the canonical
|
|
319
|
+
* outcome the attempt holds, never the submitter's copy of it;
|
|
320
|
+
* - convergence only ever sees `decision.outcome`, the repository's own
|
|
321
|
+
* committed object;
|
|
322
|
+
* - the waiter settles on a value decoded afresh from the text the attempt
|
|
323
|
+
* stores — the decision's own text, which for a `duplicate` is the first
|
|
324
|
+
* commit's rather than the retry's — so what a runner receives is the
|
|
325
|
+
* committed outcome even when convergence mutated the object it was handed;
|
|
326
|
+
* - a throwing convergence leaves the outcome durably committed and the
|
|
327
|
+
* waiter pending, so the worker's retry yields `duplicate` and converges
|
|
328
|
+
* again; nothing is rejected or deleted here. That recovery path runs the
|
|
329
|
+
* validation again first, which is why {@link OutcomePreCommitValidation}
|
|
330
|
+
* owes a retry-stable verdict;
|
|
331
|
+
* - `conflict` and `fenced` skip convergence and settlement; their waiter
|
|
332
|
+
* rejection already happened inside `ExecutionAttemptAuthority.commitOutcome`.
|
|
333
|
+
* @param deps - Authority, convergence, and optional validation.
|
|
334
|
+
* @param input - Attempt identity and submitted outcome.
|
|
335
|
+
* @returns The durable decision kind.
|
|
336
|
+
* @typeParam TOutcome - Owner-specific outcome type committed per attempt.
|
|
337
|
+
*/
|
|
338
|
+
declare function submitAttemptOutcome<TOutcome>(deps: AttemptOutcomeSubmissionDeps<TOutcome>, input: AttemptOutcomeSubmission<TOutcome>): Promise<'accepted' | 'duplicate' | 'conflict' | 'fenced'>;
|
|
49
339
|
//#endregion
|
|
50
340
|
//#region subsystems/workflow-engine/src/storage/namespace.d.ts
|
|
51
341
|
/**
|
|
@@ -422,8 +712,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
422
712
|
pending: "pending";
|
|
423
713
|
completed: "completed";
|
|
424
714
|
cancelled: "cancelled";
|
|
425
|
-
failed: "failed";
|
|
426
715
|
running: "running";
|
|
716
|
+
failed: "failed";
|
|
427
717
|
paused: "paused";
|
|
428
718
|
finalizing: "finalizing";
|
|
429
719
|
}>;
|
|
@@ -464,8 +754,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
464
754
|
pending: "pending";
|
|
465
755
|
completed: "completed";
|
|
466
756
|
cancelled: "cancelled";
|
|
467
|
-
failed: "failed";
|
|
468
757
|
running: "running";
|
|
758
|
+
failed: "failed";
|
|
469
759
|
paused: "paused";
|
|
470
760
|
finalizing: "finalizing";
|
|
471
761
|
}>;
|
|
@@ -513,8 +803,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
513
803
|
pending: "pending";
|
|
514
804
|
completed: "completed";
|
|
515
805
|
cancelled: "cancelled";
|
|
516
|
-
failed: "failed";
|
|
517
806
|
running: "running";
|
|
807
|
+
failed: "failed";
|
|
518
808
|
paused: "paused";
|
|
519
809
|
finalizing: "finalizing";
|
|
520
810
|
}>;
|
|
@@ -769,10 +1059,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
769
1059
|
frameId: z.ZodString;
|
|
770
1060
|
nodeId: z.ZodString;
|
|
771
1061
|
nodeType: z.ZodEnum<{
|
|
1062
|
+
sequence: "sequence";
|
|
772
1063
|
station: "station";
|
|
773
1064
|
"delegate-agent": "delegate-agent";
|
|
774
1065
|
"delegate-role": "delegate-role";
|
|
775
|
-
sequence: "sequence";
|
|
776
1066
|
parallel: "parallel";
|
|
777
1067
|
gate: "gate";
|
|
778
1068
|
iterate: "iterate";
|
|
@@ -814,10 +1104,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
814
1104
|
frameId: z.ZodString;
|
|
815
1105
|
nodeId: z.ZodString;
|
|
816
1106
|
nodeType: z.ZodEnum<{
|
|
1107
|
+
sequence: "sequence";
|
|
817
1108
|
station: "station";
|
|
818
1109
|
"delegate-agent": "delegate-agent";
|
|
819
1110
|
"delegate-role": "delegate-role";
|
|
820
|
-
sequence: "sequence";
|
|
821
1111
|
parallel: "parallel";
|
|
822
1112
|
gate: "gate";
|
|
823
1113
|
iterate: "iterate";
|
|
@@ -853,8 +1143,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
853
1143
|
pending: "pending";
|
|
854
1144
|
completed: "completed";
|
|
855
1145
|
cancelled: "cancelled";
|
|
856
|
-
failed: "failed";
|
|
857
1146
|
running: "running";
|
|
1147
|
+
failed: "failed";
|
|
858
1148
|
paused: "paused";
|
|
859
1149
|
finalizing: "finalizing";
|
|
860
1150
|
}>>;
|
|
@@ -1050,8 +1340,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1050
1340
|
pending: "pending";
|
|
1051
1341
|
completed: "completed";
|
|
1052
1342
|
cancelled: "cancelled";
|
|
1053
|
-
failed: "failed";
|
|
1054
1343
|
running: "running";
|
|
1344
|
+
failed: "failed";
|
|
1055
1345
|
paused: "paused";
|
|
1056
1346
|
finalizing: "finalizing";
|
|
1057
1347
|
}>>;
|
|
@@ -1074,8 +1364,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1074
1364
|
pending: "pending";
|
|
1075
1365
|
completed: "completed";
|
|
1076
1366
|
cancelled: "cancelled";
|
|
1077
|
-
failed: "failed";
|
|
1078
1367
|
running: "running";
|
|
1368
|
+
failed: "failed";
|
|
1079
1369
|
paused: "paused";
|
|
1080
1370
|
finalizing: "finalizing";
|
|
1081
1371
|
}>;
|
|
@@ -1127,8 +1417,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1127
1417
|
pending: "pending";
|
|
1128
1418
|
completed: "completed";
|
|
1129
1419
|
cancelled: "cancelled";
|
|
1130
|
-
failed: "failed";
|
|
1131
1420
|
running: "running";
|
|
1421
|
+
failed: "failed";
|
|
1132
1422
|
paused: "paused";
|
|
1133
1423
|
finalizing: "finalizing";
|
|
1134
1424
|
}>;
|
|
@@ -1172,10 +1462,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1172
1462
|
frameId: z.ZodString;
|
|
1173
1463
|
nodeId: z.ZodString;
|
|
1174
1464
|
nodeType: z.ZodEnum<{
|
|
1465
|
+
sequence: "sequence";
|
|
1175
1466
|
station: "station";
|
|
1176
1467
|
"delegate-agent": "delegate-agent";
|
|
1177
1468
|
"delegate-role": "delegate-role";
|
|
1178
|
-
sequence: "sequence";
|
|
1179
1469
|
parallel: "parallel";
|
|
1180
1470
|
gate: "gate";
|
|
1181
1471
|
iterate: "iterate";
|
|
@@ -1188,8 +1478,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1188
1478
|
pending: "pending";
|
|
1189
1479
|
completed: "completed";
|
|
1190
1480
|
cancelled: "cancelled";
|
|
1191
|
-
failed: "failed";
|
|
1192
1481
|
running: "running";
|
|
1482
|
+
failed: "failed";
|
|
1193
1483
|
skipped: "skipped";
|
|
1194
1484
|
waiting: "waiting";
|
|
1195
1485
|
}>;
|
|
@@ -1218,10 +1508,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1218
1508
|
frameId: z.ZodString;
|
|
1219
1509
|
nodeId: z.ZodString;
|
|
1220
1510
|
nodeType: z.ZodEnum<{
|
|
1511
|
+
sequence: "sequence";
|
|
1221
1512
|
station: "station";
|
|
1222
1513
|
"delegate-agent": "delegate-agent";
|
|
1223
1514
|
"delegate-role": "delegate-role";
|
|
1224
|
-
sequence: "sequence";
|
|
1225
1515
|
parallel: "parallel";
|
|
1226
1516
|
gate: "gate";
|
|
1227
1517
|
iterate: "iterate";
|
|
@@ -1234,8 +1524,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1234
1524
|
pending: "pending";
|
|
1235
1525
|
completed: "completed";
|
|
1236
1526
|
cancelled: "cancelled";
|
|
1237
|
-
failed: "failed";
|
|
1238
1527
|
running: "running";
|
|
1528
|
+
failed: "failed";
|
|
1239
1529
|
skipped: "skipped";
|
|
1240
1530
|
waiting: "waiting";
|
|
1241
1531
|
}>;
|
|
@@ -1261,10 +1551,10 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1261
1551
|
frameId: z.ZodString;
|
|
1262
1552
|
nodeId: z.ZodString;
|
|
1263
1553
|
nodeType: z.ZodEnum<{
|
|
1554
|
+
sequence: "sequence";
|
|
1264
1555
|
station: "station";
|
|
1265
1556
|
"delegate-agent": "delegate-agent";
|
|
1266
1557
|
"delegate-role": "delegate-role";
|
|
1267
|
-
sequence: "sequence";
|
|
1268
1558
|
parallel: "parallel";
|
|
1269
1559
|
gate: "gate";
|
|
1270
1560
|
iterate: "iterate";
|
|
@@ -1277,8 +1567,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1277
1567
|
pending: "pending";
|
|
1278
1568
|
completed: "completed";
|
|
1279
1569
|
cancelled: "cancelled";
|
|
1280
|
-
failed: "failed";
|
|
1281
1570
|
running: "running";
|
|
1571
|
+
failed: "failed";
|
|
1282
1572
|
skipped: "skipped";
|
|
1283
1573
|
waiting: "waiting";
|
|
1284
1574
|
}>;
|
|
@@ -1545,8 +1835,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1545
1835
|
}>;
|
|
1546
1836
|
status: z.ZodEnum<{
|
|
1547
1837
|
completed: "completed";
|
|
1548
|
-
failed: "failed";
|
|
1549
1838
|
running: "running";
|
|
1839
|
+
failed: "failed";
|
|
1550
1840
|
skipped: "skipped";
|
|
1551
1841
|
}>;
|
|
1552
1842
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1581,8 +1871,8 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
1581
1871
|
}>;
|
|
1582
1872
|
status: z.ZodEnum<{
|
|
1583
1873
|
completed: "completed";
|
|
1584
|
-
failed: "failed";
|
|
1585
1874
|
running: "running";
|
|
1875
|
+
failed: "failed";
|
|
1586
1876
|
skipped: "skipped";
|
|
1587
1877
|
}>;
|
|
1588
1878
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2645,7 +2935,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2645
2935
|
tableName: "workflow_executions";
|
|
2646
2936
|
dataType: "string";
|
|
2647
2937
|
columnType: "SQLiteText";
|
|
2648
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
2938
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
|
|
2649
2939
|
driverParam: string;
|
|
2650
2940
|
notNull: true;
|
|
2651
2941
|
hasDefault: false;
|
|
@@ -2914,7 +3204,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2914
3204
|
tableName: "workflow_execution_frames";
|
|
2915
3205
|
dataType: "string";
|
|
2916
3206
|
columnType: "SQLiteText";
|
|
2917
|
-
data: "station" | "delegate-agent" | "delegate-role" | "
|
|
3207
|
+
data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
2918
3208
|
driverParam: string;
|
|
2919
3209
|
notNull: true;
|
|
2920
3210
|
hasDefault: false;
|
|
@@ -2927,7 +3217,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2927
3217
|
generated: undefined;
|
|
2928
3218
|
}, {}, {
|
|
2929
3219
|
length: number | undefined;
|
|
2930
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "
|
|
3220
|
+
$type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
2931
3221
|
}>;
|
|
2932
3222
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2933
3223
|
name: string;
|
|
@@ -2972,7 +3262,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2972
3262
|
tableName: "workflow_execution_frames";
|
|
2973
3263
|
dataType: "string";
|
|
2974
3264
|
columnType: "SQLiteText";
|
|
2975
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
3265
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
2976
3266
|
driverParam: string;
|
|
2977
3267
|
notNull: true;
|
|
2978
3268
|
hasDefault: true;
|
|
@@ -2985,7 +3275,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
2985
3275
|
generated: undefined;
|
|
2986
3276
|
}, {}, {
|
|
2987
3277
|
length: number | undefined;
|
|
2988
|
-
$type: "pending" | "completed" | "cancelled" | "
|
|
3278
|
+
$type: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
2989
3279
|
}>;
|
|
2990
3280
|
attempt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
2991
3281
|
name: string;
|
|
@@ -3483,7 +3773,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3483
3773
|
tableName: "workflow_step_spans";
|
|
3484
3774
|
dataType: "string";
|
|
3485
3775
|
columnType: "SQLiteText";
|
|
3486
|
-
data: "completed" | "
|
|
3776
|
+
data: "completed" | "running" | "failed" | "skipped";
|
|
3487
3777
|
driverParam: string;
|
|
3488
3778
|
notNull: true;
|
|
3489
3779
|
hasDefault: false;
|
|
@@ -3496,7 +3786,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
3496
3786
|
generated: undefined;
|
|
3497
3787
|
}, {}, {
|
|
3498
3788
|
length: number | undefined;
|
|
3499
|
-
$type: "completed" | "
|
|
3789
|
+
$type: "completed" | "running" | "failed" | "skipped";
|
|
3500
3790
|
}>;
|
|
3501
3791
|
startedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
3502
3792
|
name: string;
|
|
@@ -4505,7 +4795,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4505
4795
|
tableName: "worklog_summaries";
|
|
4506
4796
|
dataType: "string";
|
|
4507
4797
|
columnType: "SQLiteText";
|
|
4508
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
4798
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "paused" | "finalizing";
|
|
4509
4799
|
driverParam: string;
|
|
4510
4800
|
notNull: true;
|
|
4511
4801
|
hasDefault: false;
|
|
@@ -4728,7 +5018,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4728
5018
|
tableName: "worklog_frame_entries";
|
|
4729
5019
|
dataType: "string";
|
|
4730
5020
|
columnType: "SQLiteText";
|
|
4731
|
-
data: "station" | "delegate-agent" | "delegate-role" | "
|
|
5021
|
+
data: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
4732
5022
|
driverParam: string;
|
|
4733
5023
|
notNull: true;
|
|
4734
5024
|
hasDefault: false;
|
|
@@ -4741,7 +5031,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4741
5031
|
generated: undefined;
|
|
4742
5032
|
}, {}, {
|
|
4743
5033
|
length: number | undefined;
|
|
4744
|
-
$type: "station" | "delegate-agent" | "delegate-role" | "
|
|
5034
|
+
$type: "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop";
|
|
4745
5035
|
}>;
|
|
4746
5036
|
path: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
|
|
4747
5037
|
name: string;
|
|
@@ -4767,7 +5057,7 @@ declare const WorkflowStorageNamespace: _$_makaio_storage_core0.StorageNamespace
|
|
|
4767
5057
|
tableName: "worklog_frame_entries";
|
|
4768
5058
|
dataType: "string";
|
|
4769
5059
|
columnType: "SQLiteText";
|
|
4770
|
-
data: "pending" | "completed" | "cancelled" | "
|
|
5060
|
+
data: "pending" | "completed" | "cancelled" | "running" | "failed" | "skipped" | "waiting";
|
|
4771
5061
|
driverParam: string;
|
|
4772
5062
|
notNull: true;
|
|
4773
5063
|
hasDefault: false;
|
|
@@ -6045,8 +6335,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6045
6335
|
pending: "pending";
|
|
6046
6336
|
completed: "completed";
|
|
6047
6337
|
cancelled: "cancelled";
|
|
6048
|
-
failed: "failed";
|
|
6049
6338
|
running: "running";
|
|
6339
|
+
failed: "failed";
|
|
6050
6340
|
paused: "paused";
|
|
6051
6341
|
finalizing: "finalizing";
|
|
6052
6342
|
}>;
|
|
@@ -6087,8 +6377,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6087
6377
|
pending: "pending";
|
|
6088
6378
|
completed: "completed";
|
|
6089
6379
|
cancelled: "cancelled";
|
|
6090
|
-
failed: "failed";
|
|
6091
6380
|
running: "running";
|
|
6381
|
+
failed: "failed";
|
|
6092
6382
|
paused: "paused";
|
|
6093
6383
|
finalizing: "finalizing";
|
|
6094
6384
|
}>;
|
|
@@ -6136,8 +6426,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6136
6426
|
pending: "pending";
|
|
6137
6427
|
completed: "completed";
|
|
6138
6428
|
cancelled: "cancelled";
|
|
6139
|
-
failed: "failed";
|
|
6140
6429
|
running: "running";
|
|
6430
|
+
failed: "failed";
|
|
6141
6431
|
paused: "paused";
|
|
6142
6432
|
finalizing: "finalizing";
|
|
6143
6433
|
}>;
|
|
@@ -6392,10 +6682,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6392
6682
|
frameId: z.ZodString;
|
|
6393
6683
|
nodeId: z.ZodString;
|
|
6394
6684
|
nodeType: z.ZodEnum<{
|
|
6685
|
+
sequence: "sequence";
|
|
6395
6686
|
station: "station";
|
|
6396
6687
|
"delegate-agent": "delegate-agent";
|
|
6397
6688
|
"delegate-role": "delegate-role";
|
|
6398
|
-
sequence: "sequence";
|
|
6399
6689
|
parallel: "parallel";
|
|
6400
6690
|
gate: "gate";
|
|
6401
6691
|
iterate: "iterate";
|
|
@@ -6437,10 +6727,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6437
6727
|
frameId: z.ZodString;
|
|
6438
6728
|
nodeId: z.ZodString;
|
|
6439
6729
|
nodeType: z.ZodEnum<{
|
|
6730
|
+
sequence: "sequence";
|
|
6440
6731
|
station: "station";
|
|
6441
6732
|
"delegate-agent": "delegate-agent";
|
|
6442
6733
|
"delegate-role": "delegate-role";
|
|
6443
|
-
sequence: "sequence";
|
|
6444
6734
|
parallel: "parallel";
|
|
6445
6735
|
gate: "gate";
|
|
6446
6736
|
iterate: "iterate";
|
|
@@ -6476,8 +6766,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6476
6766
|
pending: "pending";
|
|
6477
6767
|
completed: "completed";
|
|
6478
6768
|
cancelled: "cancelled";
|
|
6479
|
-
failed: "failed";
|
|
6480
6769
|
running: "running";
|
|
6770
|
+
failed: "failed";
|
|
6481
6771
|
paused: "paused";
|
|
6482
6772
|
finalizing: "finalizing";
|
|
6483
6773
|
}>>;
|
|
@@ -6673,8 +6963,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6673
6963
|
pending: "pending";
|
|
6674
6964
|
completed: "completed";
|
|
6675
6965
|
cancelled: "cancelled";
|
|
6676
|
-
failed: "failed";
|
|
6677
6966
|
running: "running";
|
|
6967
|
+
failed: "failed";
|
|
6678
6968
|
paused: "paused";
|
|
6679
6969
|
finalizing: "finalizing";
|
|
6680
6970
|
}>>;
|
|
@@ -6697,8 +6987,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6697
6987
|
pending: "pending";
|
|
6698
6988
|
completed: "completed";
|
|
6699
6989
|
cancelled: "cancelled";
|
|
6700
|
-
failed: "failed";
|
|
6701
6990
|
running: "running";
|
|
6991
|
+
failed: "failed";
|
|
6702
6992
|
paused: "paused";
|
|
6703
6993
|
finalizing: "finalizing";
|
|
6704
6994
|
}>;
|
|
@@ -6750,8 +7040,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6750
7040
|
pending: "pending";
|
|
6751
7041
|
completed: "completed";
|
|
6752
7042
|
cancelled: "cancelled";
|
|
6753
|
-
failed: "failed";
|
|
6754
7043
|
running: "running";
|
|
7044
|
+
failed: "failed";
|
|
6755
7045
|
paused: "paused";
|
|
6756
7046
|
finalizing: "finalizing";
|
|
6757
7047
|
}>;
|
|
@@ -6795,10 +7085,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6795
7085
|
frameId: z.ZodString;
|
|
6796
7086
|
nodeId: z.ZodString;
|
|
6797
7087
|
nodeType: z.ZodEnum<{
|
|
7088
|
+
sequence: "sequence";
|
|
6798
7089
|
station: "station";
|
|
6799
7090
|
"delegate-agent": "delegate-agent";
|
|
6800
7091
|
"delegate-role": "delegate-role";
|
|
6801
|
-
sequence: "sequence";
|
|
6802
7092
|
parallel: "parallel";
|
|
6803
7093
|
gate: "gate";
|
|
6804
7094
|
iterate: "iterate";
|
|
@@ -6811,8 +7101,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6811
7101
|
pending: "pending";
|
|
6812
7102
|
completed: "completed";
|
|
6813
7103
|
cancelled: "cancelled";
|
|
6814
|
-
failed: "failed";
|
|
6815
7104
|
running: "running";
|
|
7105
|
+
failed: "failed";
|
|
6816
7106
|
skipped: "skipped";
|
|
6817
7107
|
waiting: "waiting";
|
|
6818
7108
|
}>;
|
|
@@ -6841,10 +7131,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6841
7131
|
frameId: z.ZodString;
|
|
6842
7132
|
nodeId: z.ZodString;
|
|
6843
7133
|
nodeType: z.ZodEnum<{
|
|
7134
|
+
sequence: "sequence";
|
|
6844
7135
|
station: "station";
|
|
6845
7136
|
"delegate-agent": "delegate-agent";
|
|
6846
7137
|
"delegate-role": "delegate-role";
|
|
6847
|
-
sequence: "sequence";
|
|
6848
7138
|
parallel: "parallel";
|
|
6849
7139
|
gate: "gate";
|
|
6850
7140
|
iterate: "iterate";
|
|
@@ -6857,8 +7147,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6857
7147
|
pending: "pending";
|
|
6858
7148
|
completed: "completed";
|
|
6859
7149
|
cancelled: "cancelled";
|
|
6860
|
-
failed: "failed";
|
|
6861
7150
|
running: "running";
|
|
7151
|
+
failed: "failed";
|
|
6862
7152
|
skipped: "skipped";
|
|
6863
7153
|
waiting: "waiting";
|
|
6864
7154
|
}>;
|
|
@@ -6884,10 +7174,10 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6884
7174
|
frameId: z.ZodString;
|
|
6885
7175
|
nodeId: z.ZodString;
|
|
6886
7176
|
nodeType: z.ZodEnum<{
|
|
7177
|
+
sequence: "sequence";
|
|
6887
7178
|
station: "station";
|
|
6888
7179
|
"delegate-agent": "delegate-agent";
|
|
6889
7180
|
"delegate-role": "delegate-role";
|
|
6890
|
-
sequence: "sequence";
|
|
6891
7181
|
parallel: "parallel";
|
|
6892
7182
|
gate: "gate";
|
|
6893
7183
|
iterate: "iterate";
|
|
@@ -6900,8 +7190,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
6900
7190
|
pending: "pending";
|
|
6901
7191
|
completed: "completed";
|
|
6902
7192
|
cancelled: "cancelled";
|
|
6903
|
-
failed: "failed";
|
|
6904
7193
|
running: "running";
|
|
7194
|
+
failed: "failed";
|
|
6905
7195
|
skipped: "skipped";
|
|
6906
7196
|
waiting: "waiting";
|
|
6907
7197
|
}>;
|
|
@@ -7168,8 +7458,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7168
7458
|
}>;
|
|
7169
7459
|
status: z.ZodEnum<{
|
|
7170
7460
|
completed: "completed";
|
|
7171
|
-
failed: "failed";
|
|
7172
7461
|
running: "running";
|
|
7462
|
+
failed: "failed";
|
|
7173
7463
|
skipped: "skipped";
|
|
7174
7464
|
}>;
|
|
7175
7465
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7204,8 +7494,8 @@ declare const WorkflowStorageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
|
|
|
7204
7494
|
}>;
|
|
7205
7495
|
status: z.ZodEnum<{
|
|
7206
7496
|
completed: "completed";
|
|
7207
|
-
failed: "failed";
|
|
7208
7497
|
running: "running";
|
|
7498
|
+
failed: "failed";
|
|
7209
7499
|
skipped: "skipped";
|
|
7210
7500
|
}>;
|
|
7211
7501
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -7767,7 +8057,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
7767
8057
|
}>>;
|
|
7768
8058
|
/**
|
|
7769
8059
|
* Portable executable source for worker dispatch (JSON).
|
|
7770
|
-
* Tells the runtime where to load the workflow module on a worker
|
|
8060
|
+
* Tells the runtime where to load the workflow module on a worker.
|
|
7771
8061
|
*/
|
|
7772
8062
|
executableSource: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, {
|
|
7773
8063
|
kind: "path";
|
|
@@ -7791,7 +8081,7 @@ declare const workflowDefinitionsDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
7791
8081
|
workflowId: string;
|
|
7792
8082
|
}>>;
|
|
7793
8083
|
/**
|
|
7794
|
-
* Resource requirements for
|
|
8084
|
+
* Resource requirements for Worker provider selection (JSON).
|
|
7795
8085
|
* Constrains pool/provider matching during dispatch.
|
|
7796
8086
|
*/
|
|
7797
8087
|
requirements: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextJsonBuilderInitial<string>, {
|
|
@@ -7918,7 +8208,7 @@ declare const workflowStepSpansDual: _$_makaio_storage_drizzle0.DualTable<"workf
|
|
|
7918
8208
|
frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>; /** Step identifier within the workflow definition. */
|
|
7919
8209
|
stepId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_id", [string, ...string[]]>>>; /** Step type discriminant. */
|
|
7920
8210
|
stepType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"step_type", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"step_type", [string, ...string[]]>>>; /** Current span status. */
|
|
7921
|
-
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "
|
|
8211
|
+
status: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"status", [string, ...string[]], number | undefined>, "completed" | "running" | "failed" | "skipped">>, _$drizzle_orm0.NotNull<_$drizzle_orm0.$Type<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"status", [string, ...string[]]>, "completed" | "running" | "failed" | "skipped">>>; /** Step start timestamp (epoch ms). */
|
|
7922
8212
|
startedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Step completion timestamp (epoch ms). */
|
|
7923
8213
|
completedAt: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgBigInt53BuilderInitial<string>>; /** Wall-clock duration in milliseconds. */
|
|
7924
8214
|
durationMs: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm_sqlite_core0.SQLiteIntegerBuilderInitial<string>, _$drizzle_orm_pg_core0.PgIntegerBuilderInitial<string>>; /** Input tokens consumed (agent steps). */
|
|
@@ -7966,7 +8256,7 @@ declare const worklogFrameEntriesDual: _$_makaio_storage_drizzle0.DualTable<"wor
|
|
|
7966
8256
|
/** Unique frame identifier within the execution. */frameId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"frame_id", [string, ...string[]], number | undefined>>>, _$drizzle_orm0.IsPrimaryKey<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"frame_id", [string, ...string[]]>>>>; /** Execution this frame belongs to. */
|
|
7967
8257
|
executionId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"execution_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"execution_id", [string, ...string[]]>>>; /** Node identifier from the workflow definition. */
|
|
7968
8258
|
nodeId: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_id", [string, ...string[]], number | undefined>>, _$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_id", [string, ...string[]]>>>; /** Node type discriminant. */
|
|
7969
|
-
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "station" | "delegate-agent" | "delegate-role" | "
|
|
8259
|
+
nodeType: _$_makaio_storage_drizzle0.DualBuilder<_$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_sqlite_core0.SQLiteTextBuilderInitial<"node_type", [string, ...string[]], number | undefined>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">, _$drizzle_orm0.$Type<_$drizzle_orm0.NotNull<_$drizzle_orm_pg_core0.PgTextBuilderInitial<"node_type", [string, ...string[]]>>, "sequence" | "station" | "delegate-agent" | "delegate-role" | "parallel" | "gate" | "iterate" | "iterate-chain" | "loop">>;
|
|
7970
8260
|
/**
|
|
7971
8261
|
* Ordered path of frame IDs from the root frame to this frame (inclusive).
|
|
7972
8262
|
* Stored as a JSON array for tree correlation.
|
|
@@ -8067,4 +8357,4 @@ declare function patchWorkflowState(db: MakaioDatabase, params: {
|
|
|
8067
8357
|
value: JsonValue;
|
|
8068
8358
|
}>;
|
|
8069
8359
|
//#endregion
|
|
8070
|
-
export { type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RenewProviderOperationClaimInput, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef,
|
|
8360
|
+
export { ATTEMPT_OPERATION_START_GATES, type AdmitOperationInput, type AllocationRecordingDecision, type AllocationRefEvolution, type AllocationRefEvolutionDecision, type AllocationTerminationDecision, type AttemptControlState, type AttemptOperationStartGate, type AttemptOutcomeSubmission, type AttemptOutcomeSubmissionDeps, type AuthorityDispatchRunnerOptions, type BeginProvisioningInput, type CompleteOperationInput, type DiscoveredAllocationDecision, DuplicateExecutionAttemptError, type DurableOutcome, EXECUTION_ATTEMPT_SETTLEMENT_KINDS, EXECUTION_ATTEMPT_STATUSES, ExecutionAttemptAuthority, type ExecutionAttemptCreate, type ExecutionAttemptOutcomeCommit, type ExecutionAttemptOutcomeDecision, type ExecutionAttemptRecord, type ExecutionAttemptRecoveryOperations, type ExecutionAttemptRepository, type ExecutionAttemptSettlementKind, type ExecutionAttemptStatus, type ExecutionOwnerId, type HandoffProviderOperationInput, type InfrastructureFailureDecision, type InitialProviderOperationClaimContext, type InitialProviderOperationClaimContextSource, type MarkRuntimeReadyInput, type OperationAdmissionDecision, type OperationAdmissionDeps, type OperationCompletionDecision, type OutcomeCodec, type OutcomeConvergence, type OutcomeConvergenceInput, type OutcomePreCommitValidation, PROVIDER_OPERATION_OBLIGATIONS, type PendingAttemptAbandonmentDecision, type ProcessBoundProvisionerLossProof, type ProviderOperationClaim, type ProviderOperationClaimDecision, type ProviderOperationMutationDecision, type ProviderOperationObligation, type ProviderOperationOwnershipRecord, type ProvisionerIncarnationLossDecision, type ProvisioningAbsenceDecision, type ProvisioningClaimDecision, RUNTIME_PROBE_DELIVERY_TIMEOUT_MS, type RecordAllocationInput, type RecordAllocationTerminatedInput, type RecordInfrastructureFailureInput, type RecordProviderOperationUncertaintyInput, type RecordProvisionerIncarnationLostInput, type RecordProvisioningAbsentInput, type RecoverableAttemptRecord, type RegisterRuntimeInput, type RenewProviderOperationClaimInput, type RuntimeReadinessDecision, type RuntimeRegistrationDecision, type RuntimeRegistrationDeps, type TakeOverProviderOperationInput, WorkflowEngineService, type WorkflowEngineServiceOptions, WorkflowEngineToken, WorkflowExecutor, type WorkflowMaterializationSpecResolution, type WorkflowMaterializationSpecResolver, WorkflowStorageNamespace, WorkflowStorageSubjects, type WorkflowSuccessFinalizer, type WorkflowTriggerPayloadPredicate, WorkflowTriggerReconciler, type WorkflowWorkspaceRootResolver, assertWorkflowTriggerPayload, buildWorkflowExpressionContextFromResolvedInputs, compileWorkflowTriggerBindingFilter, createWorkflowEnginePackage, decodeDurableOutcome, durableOutcome, getWorkflowState, initializeWorkflowState, patchWorkflowState, registerDrizzleWorkflowStorage, registerOperationAdmissionHandler, registerRuntimeRegistrationHandler, runAuthorityDispatchedAttempt, runShellStep, sameAllocationRef, sameDurableOutcome, submitAttemptOutcome, workflowDefinitionsDual, workflowEnginePackage, workflowExecutionStateDual, workflowExecutionStateEventsDual, workflowExecutionsDual, workflowFinalizationsDual, workflowStepSpansDual, worklogFrameEntriesDual, worklogSummariesDual };
|