@makaio/framework 1.0.0-dev-1788258714339 → 1.0.0-dev-1788511348215
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-dC9LSFUE.mjs +1 -0
- package/dist/authority-state-bootstrap-eitx6Ukn.mjs +1 -0
- package/dist/bus/index.mjs +1 -1
- package/dist/capabilities-DEvmD9VJ.mjs +1 -0
- package/dist/{context-resolution-CW4OtPrS.d.mts → context-resolution-841T7jBI.d.mts} +2 -2
- package/dist/contracts/artifact/index.d.mts +2 -2
- 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 +2 -2
- package/dist/contracts/harness/index.d.mts +1 -1
- package/dist/contracts/index.d.mts +12 -12
- package/dist/contracts/index.mjs +1 -1
- package/dist/contracts/materialization/index.d.mts +3 -3
- 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-DY4KTptE.d.mts} +359 -57
- package/dist/{index-8NdPPzUh2.d.mts → index-6trZYnUP2.d.mts} +12 -12
- package/dist/{index-CPi0UpRh.d.mts → index-B_8bA2JW.d.mts} +1 -1
- package/dist/{index-DJ2KgJDJ2.d.mts → index-BmilK-co2.d.mts} +49 -49
- package/dist/{index-CMekqu_D.d.mts → index-C6aSnO8m.d.mts} +42 -42
- package/dist/{index-DXqG0r3o.d.mts → index-CDud4NAm.d.mts} +24 -24
- package/dist/{index-B9V3T4EQ.d.mts → index-D037TVsm.d.mts} +4 -4
- package/dist/{index-DWkFkvRn2.d.mts → index-D8D-yibS2.d.mts} +3 -3
- package/dist/{index-CYjgoYeX.d.mts → index-DHH-93YD.d.mts} +1 -1
- package/dist/{index-BqlCDBfc.d.mts → index-DI2lS7VT.d.mts} +3 -3
- package/dist/{index-C3lu_fy5.d.mts → index-DNI6UF9h.d.mts} +73 -73
- package/dist/{index-4KJ6IDE7.d.mts → index-DXtQRehh.d.mts} +6 -6
- package/dist/{index-OG402CBI.d.mts → index-Wbd_syN2.d.mts} +83 -83
- 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/{namespace-C06lJSuj.d.mts → namespace-K23m4b0n.d.mts} +6 -6
- package/dist/package-Cgjpm9om.mjs +7 -0
- package/dist/{package-BNFTUFLB.d.mts → package-efR90JGe.d.mts} +59 -30
- package/dist/package.json +1 -1
- package/dist/runtime-node/index.d.mts +1 -1
- package/dist/runtime-node/index.mjs +1 -1
- 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/{schemas-OWvBn7AH.d.mts → schemas-BCXvEWyF.d.mts} +4 -4
- package/dist/{schemas-Dd0po67F.d.mts → schemas-D7EeKBDJ.d.mts} +5 -5
- package/dist/services/adapter-subsystem/index.d.mts +2 -2
- package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
- package/dist/services/harness/index.d.mts +3 -3
- package/dist/services/index.d.mts +9 -9
- package/dist/services/provider-context/index.d.mts +1 -1
- package/dist/services/session/index.d.mts +1 -1
- package/dist/services/settings/namespace.d.mts +4 -4
- package/dist/services/subagent-template/index.d.mts +1 -1
- package/dist/services/subagent-template/schemas.d.mts +1 -1
- package/dist/{transition-DXmCUq6w.d.mts → transition-D3zUBTPc.d.mts} +1 -1
- package/dist/ui-components/index.d.mts +4 -4
- package/dist/{view-builder-k82f5KFd.d.mts → view-builder-B0j9p5C0.d.mts} +1 -1
- package/dist/worker-CARV52hT.mjs +1 -0
- package/dist/worker-CLsRbzpk.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 +193 -38
- 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 +30 -9
- 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 +20 -20
- package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
- package/dist/workflow-worker-Dul-wcOR.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/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
|
@@ -20,9 +20,9 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
|
|
|
20
20
|
declare const ComponentStateSchema: z.ZodEnum<{
|
|
21
21
|
discovered: "discovered";
|
|
22
22
|
failed: "failed";
|
|
23
|
+
stopped: "stopped";
|
|
23
24
|
active: "active";
|
|
24
25
|
skipped: "skipped";
|
|
25
|
-
stopped: "stopped";
|
|
26
26
|
initializing: "initializing";
|
|
27
27
|
}>;
|
|
28
28
|
/** Inferred union of all valid component lifecycle states. */
|
|
@@ -49,9 +49,9 @@ declare const ComponentInfoSchema: z.ZodObject<{
|
|
|
49
49
|
state: z.ZodEnum<{
|
|
50
50
|
discovered: "discovered";
|
|
51
51
|
failed: "failed";
|
|
52
|
+
stopped: "stopped";
|
|
52
53
|
active: "active";
|
|
53
54
|
skipped: "skipped";
|
|
54
|
-
stopped: "stopped";
|
|
55
55
|
initializing: "initializing";
|
|
56
56
|
}>;
|
|
57
57
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -70,9 +70,9 @@ declare const ServiceInfoSchema: z.ZodObject<{
|
|
|
70
70
|
state: z.ZodEnum<{
|
|
71
71
|
discovered: "discovered";
|
|
72
72
|
failed: "failed";
|
|
73
|
+
stopped: "stopped";
|
|
73
74
|
active: "active";
|
|
74
75
|
skipped: "skipped";
|
|
75
|
-
stopped: "stopped";
|
|
76
76
|
initializing: "initializing";
|
|
77
77
|
}>;
|
|
78
78
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -92,9 +92,9 @@ declare const ExtensionInfoSchema: z.ZodObject<{
|
|
|
92
92
|
state: z.ZodEnum<{
|
|
93
93
|
discovered: "discovered";
|
|
94
94
|
failed: "failed";
|
|
95
|
+
stopped: "stopped";
|
|
95
96
|
active: "active";
|
|
96
97
|
skipped: "skipped";
|
|
97
|
-
stopped: "stopped";
|
|
98
98
|
initializing: "initializing";
|
|
99
99
|
}>;
|
|
100
100
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -140,17 +140,17 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
140
140
|
from: z.ZodEnum<{
|
|
141
141
|
discovered: "discovered";
|
|
142
142
|
failed: "failed";
|
|
143
|
+
stopped: "stopped";
|
|
143
144
|
active: "active";
|
|
144
145
|
skipped: "skipped";
|
|
145
|
-
stopped: "stopped";
|
|
146
146
|
initializing: "initializing";
|
|
147
147
|
}>;
|
|
148
148
|
to: z.ZodEnum<{
|
|
149
149
|
discovered: "discovered";
|
|
150
150
|
failed: "failed";
|
|
151
|
+
stopped: "stopped";
|
|
151
152
|
active: "active";
|
|
152
153
|
skipped: "skipped";
|
|
153
|
-
stopped: "stopped";
|
|
154
154
|
initializing: "initializing";
|
|
155
155
|
}>;
|
|
156
156
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -183,9 +183,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
183
183
|
state: z.ZodEnum<{
|
|
184
184
|
discovered: "discovered";
|
|
185
185
|
failed: "failed";
|
|
186
|
+
stopped: "stopped";
|
|
186
187
|
active: "active";
|
|
187
188
|
skipped: "skipped";
|
|
188
|
-
stopped: "stopped";
|
|
189
189
|
initializing: "initializing";
|
|
190
190
|
}>;
|
|
191
191
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -221,9 +221,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
|
|
|
221
221
|
state: z.ZodEnum<{
|
|
222
222
|
discovered: "discovered";
|
|
223
223
|
failed: "failed";
|
|
224
|
+
stopped: "stopped";
|
|
224
225
|
active: "active";
|
|
225
226
|
skipped: "skipped";
|
|
226
|
-
stopped: "stopped";
|
|
227
227
|
initializing: "initializing";
|
|
228
228
|
}>;
|
|
229
229
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -643,17 +643,17 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
643
643
|
from: z.ZodEnum<{
|
|
644
644
|
discovered: "discovered";
|
|
645
645
|
failed: "failed";
|
|
646
|
+
stopped: "stopped";
|
|
646
647
|
active: "active";
|
|
647
648
|
skipped: "skipped";
|
|
648
|
-
stopped: "stopped";
|
|
649
649
|
initializing: "initializing";
|
|
650
650
|
}>;
|
|
651
651
|
to: z.ZodEnum<{
|
|
652
652
|
discovered: "discovered";
|
|
653
653
|
failed: "failed";
|
|
654
|
+
stopped: "stopped";
|
|
654
655
|
active: "active";
|
|
655
656
|
skipped: "skipped";
|
|
656
|
-
stopped: "stopped";
|
|
657
657
|
initializing: "initializing";
|
|
658
658
|
}>;
|
|
659
659
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -686,9 +686,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
686
686
|
state: z.ZodEnum<{
|
|
687
687
|
discovered: "discovered";
|
|
688
688
|
failed: "failed";
|
|
689
|
+
stopped: "stopped";
|
|
689
690
|
active: "active";
|
|
690
691
|
skipped: "skipped";
|
|
691
|
-
stopped: "stopped";
|
|
692
692
|
initializing: "initializing";
|
|
693
693
|
}>;
|
|
694
694
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -724,9 +724,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
|
|
|
724
724
|
state: z.ZodEnum<{
|
|
725
725
|
discovered: "discovered";
|
|
726
726
|
failed: "failed";
|
|
727
|
+
stopped: "stopped";
|
|
727
728
|
active: "active";
|
|
728
729
|
skipped: "skipped";
|
|
729
|
-
stopped: "stopped";
|
|
730
730
|
initializing: "initializing";
|
|
731
731
|
}>;
|
|
732
732
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-
|
|
1
|
+
import { c as AdapterRuntimeSnapshotErrorCode } from "./schemas-BCXvEWyF.mjs";
|
|
2
2
|
import { IMakaioBus } from "@makaio/framework/bus";
|
|
3
3
|
import { ProviderContext, ResolvedProviderContext } from "@makaio/framework/contracts";
|
|
4
4
|
|
|
@@ -4,15 +4,15 @@ import * as _$_makaio_core0 from "@makaio/framework/core";
|
|
|
4
4
|
import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
|
|
5
5
|
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
6
6
|
|
|
7
|
-
//#region core/contracts/src/worker
|
|
7
|
+
//#region core/contracts/src/worker/schemas.d.ts
|
|
8
8
|
/**
|
|
9
|
-
* Framework-level
|
|
9
|
+
* Framework-level Worker dispatch request.
|
|
10
10
|
*
|
|
11
11
|
* Pool selection and provider allocation remain caller-owned. This request is
|
|
12
|
-
* the generic bus seam used by workflow-level runners that need
|
|
12
|
+
* the generic bus seam used by workflow-level runners that need Worker
|
|
13
13
|
* execution without importing a concrete pool service.
|
|
14
14
|
*/
|
|
15
|
-
declare const
|
|
15
|
+
declare const WorkerDispatchRequestSchema: z.ZodObject<{
|
|
16
16
|
executionAttemptId: z.ZodString;
|
|
17
17
|
config: z.ZodObject<{
|
|
18
18
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -204,14 +204,14 @@ declare const WorkerNodeDispatchRequestSchema: z.ZodObject<{
|
|
|
204
204
|
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
205
205
|
}, z.core.$strip>;
|
|
206
206
|
/**
|
|
207
|
-
* Framework-level
|
|
207
|
+
* Framework-level Worker dispatch response.
|
|
208
208
|
*
|
|
209
209
|
* Returns an allocation acknowledgment after the provider has provisioned
|
|
210
210
|
* a resource and the allocation reference has been persisted. Callers
|
|
211
211
|
* that need the workflow result must await it through the Authority's
|
|
212
212
|
* in-process waiter (`waitForOutcome`).
|
|
213
213
|
*/
|
|
214
|
-
declare const
|
|
214
|
+
declare const WorkerDispatchResponseSchema: z.ZodObject<{
|
|
215
215
|
executionAttemptId: z.ZodString;
|
|
216
216
|
allocationRef: z.ZodObject<{
|
|
217
217
|
version: z.ZodLiteral<1>;
|
|
@@ -220,32 +220,32 @@ declare const WorkerNodeDispatchResponseSchema: z.ZodObject<{
|
|
|
220
220
|
}, z.core.$strict>;
|
|
221
221
|
}, z.core.$strict>;
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* Worker lifecycle bus schemas.
|
|
224
224
|
*
|
|
225
|
-
* All keys map to `worker
|
|
226
|
-
* represents a discrete phase in the
|
|
225
|
+
* All keys map to `worker.<key>` subjects on the bus. Each subject
|
|
226
|
+
* represents a discrete phase in the Worker lifecycle so listeners can react
|
|
227
227
|
* selectively without receiving unrelated payloads.
|
|
228
228
|
*
|
|
229
229
|
* Lifecycle states in order:
|
|
230
|
-
* - `lifecycle.provisioning` — dispatch has selected a provider;
|
|
230
|
+
* - `lifecycle.provisioning` — dispatch has selected a provider; Worker allocation is in progress
|
|
231
231
|
* - `lifecycle.booting` — environment is initialising (importing packages, connecting to bus)
|
|
232
|
-
* - `lifecycle.ready` —
|
|
233
|
-
* - `lifecycle.busy` —
|
|
232
|
+
* - `lifecycle.ready` — Worker Runtime is connected and ready to accept work
|
|
233
|
+
* - `lifecycle.busy` — Worker Runtime has started executing the workflow
|
|
234
234
|
* - `lifecycle.completed` — execution finished successfully
|
|
235
235
|
* - `lifecycle.failed` — execution terminated with an error
|
|
236
|
-
* - `lifecycle.terminated` —
|
|
237
|
-
* - `lifecycle.paused` —
|
|
236
|
+
* - `lifecycle.terminated` — Worker environment has been torn down
|
|
237
|
+
* - `lifecycle.paused` — Worker Runtime parked at a gate and exited for later resume
|
|
238
238
|
*
|
|
239
239
|
* Control subjects:
|
|
240
240
|
* - `control.attempt-ready` — worker reports readiness for its attempt
|
|
241
241
|
* - `control.outcome.submit` — worker submits an execution outcome for durable ACK
|
|
242
242
|
* - `control.bootstrap.claim`— worker claims execution-scoped bus credentials
|
|
243
243
|
*/
|
|
244
|
-
declare const
|
|
244
|
+
declare const WorkerSchemas: {
|
|
245
245
|
/**
|
|
246
|
-
* Dispatch a workflow execution to a
|
|
246
|
+
* Dispatch a workflow execution to a Worker dispatcher.
|
|
247
247
|
*
|
|
248
|
-
* Subject: `worker
|
|
248
|
+
* Subject: `worker.dispatch`
|
|
249
249
|
* Type: Request (RPC)
|
|
250
250
|
*/
|
|
251
251
|
dispatch: {
|
|
@@ -456,7 +456,7 @@ declare const WorkerNodeSchemas: {
|
|
|
456
456
|
* The Authority and lifecycle emitters consume this to transition the
|
|
457
457
|
* attempt into the active execution phase.
|
|
458
458
|
*
|
|
459
|
-
* Subject: `worker
|
|
459
|
+
* Subject: `worker.control.attempt-ready`
|
|
460
460
|
* Type: Event
|
|
461
461
|
*/
|
|
462
462
|
'control.attempt-ready': z.ZodObject<{
|
|
@@ -471,7 +471,7 @@ declare const WorkerNodeSchemas: {
|
|
|
471
471
|
* injected repository, and returns an ACK decision. Workers must not
|
|
472
472
|
* exit until they receive the ACK.
|
|
473
473
|
*
|
|
474
|
-
* Subject: `worker
|
|
474
|
+
* Subject: `worker.control.outcome.submit`
|
|
475
475
|
* Type: Request (RPC)
|
|
476
476
|
*/
|
|
477
477
|
'control.outcome.submit': {
|
|
@@ -597,14 +597,14 @@ declare const WorkerNodeSchemas: {
|
|
|
597
597
|
}, z.core.$strict>;
|
|
598
598
|
};
|
|
599
599
|
/**
|
|
600
|
-
* Worker
|
|
600
|
+
* Worker claims its execution-scoped bus credentials during bootstrap.
|
|
601
601
|
*
|
|
602
|
-
* The
|
|
602
|
+
* The Worker Runtime authenticates its WebSocket connection as a bootstrap peer, then
|
|
603
603
|
* presents its execution/attempt identity. The server validates that trusted
|
|
604
604
|
* transport identity and the durable allocation before exchanging it for an
|
|
605
605
|
* execution-scoped `busAuthSecret` used for subsequent communication.
|
|
606
606
|
*
|
|
607
|
-
* Subject: `worker
|
|
607
|
+
* Subject: `worker.control.bootstrap.claim`
|
|
608
608
|
* Type: Request (RPC)
|
|
609
609
|
*/
|
|
610
610
|
'control.bootstrap.claim': {
|
|
@@ -618,9 +618,9 @@ declare const WorkerNodeSchemas: {
|
|
|
618
618
|
}, z.core.$strict>;
|
|
619
619
|
};
|
|
620
620
|
/**
|
|
621
|
-
* Dispatch has selected a provider;
|
|
621
|
+
* Dispatch has selected a provider; Worker allocation is in progress.
|
|
622
622
|
*
|
|
623
|
-
* Subject: `worker
|
|
623
|
+
* Subject: `worker.lifecycle.provisioning`
|
|
624
624
|
* Type: Event
|
|
625
625
|
*/
|
|
626
626
|
'lifecycle.provisioning': z.ZodObject<{
|
|
@@ -632,7 +632,7 @@ declare const WorkerNodeSchemas: {
|
|
|
632
632
|
/**
|
|
633
633
|
* Environment is initialising (importing packages, connecting to bus).
|
|
634
634
|
*
|
|
635
|
-
* Subject: `worker
|
|
635
|
+
* Subject: `worker.lifecycle.booting`
|
|
636
636
|
* Type: Event
|
|
637
637
|
*/
|
|
638
638
|
'lifecycle.booting': z.ZodObject<{
|
|
@@ -642,9 +642,9 @@ declare const WorkerNodeSchemas: {
|
|
|
642
642
|
metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
|
|
643
643
|
}, z.core.$strip>;
|
|
644
644
|
/**
|
|
645
|
-
*
|
|
645
|
+
* Worker Runtime is connected and ready to accept work.
|
|
646
646
|
*
|
|
647
|
-
* Subject: `worker
|
|
647
|
+
* Subject: `worker.lifecycle.ready`
|
|
648
648
|
* Type: Event
|
|
649
649
|
*/
|
|
650
650
|
'lifecycle.ready': z.ZodObject<{
|
|
@@ -655,9 +655,9 @@ declare const WorkerNodeSchemas: {
|
|
|
655
655
|
adapters: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
656
656
|
}, z.core.$strip>;
|
|
657
657
|
/**
|
|
658
|
-
*
|
|
658
|
+
* Worker Runtime has started executing the workflow.
|
|
659
659
|
*
|
|
660
|
-
* Subject: `worker
|
|
660
|
+
* Subject: `worker.lifecycle.busy`
|
|
661
661
|
* Type: Event
|
|
662
662
|
*/
|
|
663
663
|
'lifecycle.busy': z.ZodObject<{
|
|
@@ -669,7 +669,7 @@ declare const WorkerNodeSchemas: {
|
|
|
669
669
|
/**
|
|
670
670
|
* Execution finished successfully.
|
|
671
671
|
*
|
|
672
|
-
* Subject: `worker
|
|
672
|
+
* Subject: `worker.lifecycle.completed`
|
|
673
673
|
* Type: Event
|
|
674
674
|
*/
|
|
675
675
|
'lifecycle.completed': z.ZodObject<{
|
|
@@ -681,7 +681,7 @@ declare const WorkerNodeSchemas: {
|
|
|
681
681
|
/**
|
|
682
682
|
* Execution terminated with an error.
|
|
683
683
|
*
|
|
684
|
-
* Subject: `worker
|
|
684
|
+
* Subject: `worker.lifecycle.failed`
|
|
685
685
|
* Type: Event
|
|
686
686
|
*/
|
|
687
687
|
'lifecycle.failed': z.ZodObject<{
|
|
@@ -692,9 +692,9 @@ declare const WorkerNodeSchemas: {
|
|
|
692
692
|
error: z.ZodString;
|
|
693
693
|
}, z.core.$strip>;
|
|
694
694
|
/**
|
|
695
|
-
*
|
|
695
|
+
* Worker environment has been torn down.
|
|
696
696
|
*
|
|
697
|
-
* Subject: `worker
|
|
697
|
+
* Subject: `worker.lifecycle.terminated`
|
|
698
698
|
* Type: Event
|
|
699
699
|
*/
|
|
700
700
|
'lifecycle.terminated': z.ZodObject<{
|
|
@@ -705,13 +705,13 @@ declare const WorkerNodeSchemas: {
|
|
|
705
705
|
reason: z.ZodOptional<z.ZodString>;
|
|
706
706
|
}, z.core.$strip>;
|
|
707
707
|
/**
|
|
708
|
-
*
|
|
708
|
+
* Worker has suspended at a gate and the Worker Runtime has exited.
|
|
709
709
|
*
|
|
710
710
|
* Emitted by providers using `exit-and-redispatch` or `exit-and-resume`
|
|
711
711
|
* suspension strategies before the environment tears down. In-process
|
|
712
712
|
* providers that block at the gate do not emit this event.
|
|
713
713
|
*
|
|
714
|
-
* Subject: `worker
|
|
714
|
+
* Subject: `worker.lifecycle.paused`
|
|
715
715
|
* Type: Event
|
|
716
716
|
*/
|
|
717
717
|
'lifecycle.paused': z.ZodObject<{
|
|
@@ -724,20 +724,20 @@ declare const WorkerNodeSchemas: {
|
|
|
724
724
|
}, z.core.$strip>;
|
|
725
725
|
};
|
|
726
726
|
/** Bootstrap coordinates presented by a remote worker. */
|
|
727
|
-
type WorkerBootstrapClaimRequest = z.infer<(typeof
|
|
727
|
+
type WorkerBootstrapClaimRequest = z.infer<(typeof WorkerSchemas)['control.bootstrap.claim']['request']>;
|
|
728
728
|
/** Execution-scoped credentials issued after a successful bootstrap claim. */
|
|
729
|
-
type WorkerBootstrapClaimResponse$1 = z.infer<(typeof
|
|
729
|
+
type WorkerBootstrapClaimResponse$1 = z.infer<(typeof WorkerSchemas)['control.bootstrap.claim']['response']>;
|
|
730
730
|
//#endregion
|
|
731
|
-
//#region core/contracts/src/worker
|
|
731
|
+
//#region core/contracts/src/worker/namespace.d.ts
|
|
732
732
|
/** Well-known restricted transport identity used for worker bootstrap claims. */
|
|
733
733
|
declare const WORKER_BOOTSTRAP_IDENTITY_ID = "worker-bootstrap";
|
|
734
734
|
/**
|
|
735
|
-
*
|
|
735
|
+
* Worker bus namespace definition.
|
|
736
736
|
*
|
|
737
|
-
* Register at boot time via `bus.registerNamespace(
|
|
737
|
+
* Register at boot time via `bus.registerNamespace(WorkerNamespace)` or
|
|
738
738
|
* include in the `FrameworkContractNamespaces` catalog.
|
|
739
739
|
*/
|
|
740
|
-
declare const
|
|
740
|
+
declare const WorkerNamespace: _$_makaio_core0.BusNamespaceDefinition<"worker", {
|
|
741
741
|
dispatch: {
|
|
742
742
|
request: _$zod.ZodObject<{
|
|
743
743
|
executionAttemptId: _$zod.ZodString;
|
|
@@ -1131,18 +1131,18 @@ declare const WorkerNodeNamespace: _$_makaio_core0.BusNamespaceDefinition<"worke
|
|
|
1131
1131
|
}, _$zod_v4_core0.$strip>;
|
|
1132
1132
|
}>;
|
|
1133
1133
|
/**
|
|
1134
|
-
* Typed subject tokens for the `worker
|
|
1134
|
+
* Typed subject tokens for the `worker` bus namespace.
|
|
1135
1135
|
*
|
|
1136
1136
|
* Use these tokens in `bus.on()`, `bus.emit()`, and `bus.request()` calls
|
|
1137
1137
|
* instead of raw subject strings to get schema validation and type inference.
|
|
1138
1138
|
* @example
|
|
1139
1139
|
* ```typescript
|
|
1140
|
-
* bus.on(
|
|
1141
|
-
* console.log('
|
|
1140
|
+
* bus.on(WorkerSubjects.lifecycle.ready, (payload) => {
|
|
1141
|
+
* console.log('worker ready', payload.executionAttemptId);
|
|
1142
1142
|
* });
|
|
1143
1143
|
* ```
|
|
1144
1144
|
*/
|
|
1145
|
-
declare const
|
|
1145
|
+
declare const WorkerSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"worker", {
|
|
1146
1146
|
dispatch: {
|
|
1147
1147
|
request: _$zod.ZodObject<{
|
|
1148
1148
|
executionAttemptId: _$zod.ZodString;
|
|
@@ -1534,11 +1534,11 @@ declare const WorkerNodeSubjects$1: _$_makaio_core0.BusSubjects<_$_makaio_core0.
|
|
|
1534
1534
|
pausedAtGateId: _$zod.ZodString;
|
|
1535
1535
|
pausedAtFrameId: _$zod.ZodString;
|
|
1536
1536
|
}, _$zod_v4_core0.$strip>;
|
|
1537
|
-
}>, "worker
|
|
1537
|
+
}>, "worker">;
|
|
1538
1538
|
//#endregion
|
|
1539
|
-
//#region core/contracts/src/worker
|
|
1539
|
+
//#region core/contracts/src/worker/suspension.d.ts
|
|
1540
1540
|
/**
|
|
1541
|
-
* Strategy a
|
|
1541
|
+
* Strategy a Worker provider uses when a workflow reaches a suspension point.
|
|
1542
1542
|
*
|
|
1543
1543
|
* - `wait-in-process`: the worker blocks in-process until the gate is resolved
|
|
1544
1544
|
* (default, suitable for local Piscina threads and in-process runners).
|
|
@@ -1555,4 +1555,4 @@ declare const SuspensionStrategySchema: z.ZodEnum<{
|
|
|
1555
1555
|
/** Provider suspension behavior selected for a workflow execution. */
|
|
1556
1556
|
type SuspensionStrategy = z.infer<typeof SuspensionStrategySchema>;
|
|
1557
1557
|
//#endregion
|
|
1558
|
-
export {
|
|
1558
|
+
export { WorkerSubjects$1 as a, WorkerDispatchRequestSchema as c, WorkerNamespace as i, WorkerDispatchResponseSchema as l, SuspensionStrategySchema as n, WorkerBootstrapClaimRequest as o, WORKER_BOOTSTRAP_IDENTITY_ID as r, WorkerBootstrapClaimResponse$1 as s, SuspensionStrategy as t, WorkerSchemas as u };
|