@makaio/framework 1.0.0-dev-1788511348215 → 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.
Files changed (94) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/attempt-record-codec-BORASgzn.mjs +1 -0
  3. package/dist/bus/index.d.mts +19 -19
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/{context-resolution-841T7jBI.d.mts → context-resolution-CoKFKIqz.d.mts} +3 -3
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +2 -2
  8. package/dist/contracts/canonical-model/index.d.mts +1 -1
  9. package/dist/contracts/capabilities/index.d.mts +1 -1
  10. package/dist/contracts/client/index.d.mts +1 -1
  11. package/dist/contracts/extension/index.d.mts +3 -3
  12. package/dist/contracts/index.d.mts +616 -122
  13. package/dist/contracts/index.mjs +1 -1
  14. package/dist/contracts/materialization/index.d.mts +2 -2
  15. package/dist/contracts/session/index.d.mts +2 -2
  16. package/dist/contracts/shared/index.d.mts +1 -1
  17. package/dist/contracts/variant/index.d.mts +1 -1
  18. package/dist/contracts/worker/index.d.mts +1 -1
  19. package/dist/contracts/worker/index.mjs +1 -1
  20. package/dist/contracts/workflow/index.d.mts +2 -2
  21. package/dist/{execution-attempt-repository-DY4KTptE.d.mts → execution-attempt-repository-CRdrgou3.d.mts} +512 -3
  22. package/dist/{index-jxPncqWZ2.d.mts → index--Ws52sWV2.d.mts} +4 -4
  23. package/dist/{index-Wbd_syN2.d.mts → index-37_b--BH.d.mts} +11 -11
  24. package/dist/{index-6trZYnUP2.d.mts → index-8NdPPzUh2.d.mts} +12 -12
  25. package/dist/{index-B-3I98nw.d.mts → index-AdcDBUnc.d.mts} +95 -95
  26. package/dist/{index-C6aSnO8m.d.mts → index-BJdkVFX9.d.mts} +288 -24
  27. package/dist/{index-DXtQRehh.d.mts → index-BKIxdzIw.d.mts} +11 -11
  28. package/dist/{index-CmwAJ8-5.d.mts → index-CFI6FxC7.d.mts} +1 -1
  29. package/dist/{index-DI2lS7VT.d.mts → index-CVcG4Q3X.d.mts} +5 -5
  30. package/dist/{index-DHH-93YD.d.mts → index-CYjgoYeX.d.mts} +1 -1
  31. package/dist/{index-CDud4NAm.d.mts → index-CxwqnZpT.d.mts} +75 -75
  32. package/dist/{index-BkbnC65b.d.mts → index-CyWGSxrs.d.mts} +291 -291
  33. package/dist/{index-C146Eq_J.d.mts → index-D1wTWSLR.d.mts} +327 -327
  34. package/dist/{index-Bqk0pJBQ2.d.mts → index-DBD_oFEt2.d.mts} +1 -1
  35. package/dist/{index-BmilK-co2.d.mts → index-DV38-klA2.d.mts} +12 -36
  36. package/dist/{index-DNI6UF9h.d.mts → index-I5a37JCm.d.mts} +4 -4
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{namespace-l-HG1rLF.d.mts → namespace-Bo94cenp.d.mts} +136 -136
  41. package/dist/{namespace-DknCutQZ.d.mts → namespace-CPm9dhi2.d.mts} +2 -2
  42. package/dist/{namespace-BNp7n_gu.d.mts → namespace-CsnrP8AD.d.mts} +3 -3
  43. package/dist/{namespace-BGRHcrmp.d.mts → namespace-CstawJgN.d.mts} +2 -2
  44. package/dist/{package-efR90JGe.d.mts → package-DkZmsdCd.d.mts} +49 -1
  45. package/dist/package-UemD2NWn.mjs +7 -0
  46. package/dist/package.json +1 -1
  47. package/dist/runtime-node/index.d.mts +2 -2
  48. package/dist/runtime-node/index.mjs +24 -24
  49. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  50. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  51. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  52. package/dist/runtime-node/workflow-worker/worker-entry.d.mts +49 -9
  53. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  54. package/dist/runtime-registration-client-BTtFpt_k.mjs +1 -0
  55. package/dist/{schemas-D7EeKBDJ.d.mts → schemas-CJKHYluy.d.mts} +13 -13
  56. package/dist/{schemas-C1mxTfd7.d.mts → schemas-CenET9Cq.d.mts} +1 -1
  57. package/dist/{schemas-D7ScxLrf.d.mts → schemas-DTJtS14K.d.mts} +136 -136
  58. package/dist/services/adapter-runtime/index.d.mts +3 -3
  59. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  60. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  61. package/dist/services/agent-runtime/index.d.mts +2 -2
  62. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  63. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  64. package/dist/services/filesystem/namespace.d.mts +6 -6
  65. package/dist/services/filesystem/schemas.d.mts +3 -3
  66. package/dist/services/index.d.mts +86 -86
  67. package/dist/services/session/index.d.mts +1 -1
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/settings/namespace.d.mts +10 -10
  70. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  71. package/dist/services/subagent-template/index.d.mts +2 -2
  72. package/dist/services/subagent-template/namespace.d.mts +1 -1
  73. package/dist/services/subagent-template/schemas.d.mts +1 -1
  74. package/dist/{transition-D3zUBTPc.d.mts → transition-DxsrTsn4.d.mts} +1 -1
  75. package/dist/{types-DcxBYlPA.d.mts → types-Czdm5op1.d.mts} +306 -306
  76. package/dist/{view-builder-B0j9p5C0.d.mts → view-builder-D-Wz_l_B.d.mts} +1 -1
  77. package/dist/worker-DlRdLf2d.mjs +1 -0
  78. package/dist/workflow-engine/execution-attempt-repository.d.mts +2 -2
  79. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  80. package/dist/workflow-engine/index.d.mts +205 -70
  81. package/dist/workflow-engine/index.mjs +1 -1
  82. package/dist/workflow-engine/package.d.mts +1 -1
  83. package/dist/workflow-engine/package.mjs +1 -1
  84. package/dist/workflow-engine/testing/index.d.mts +55 -3
  85. package/dist/workflow-engine/testing/index.mjs +1 -1
  86. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  87. package/dist/workflow-engine/testing/sqlite.mjs +106 -38
  88. package/dist/workflow-worker-DjUfKshi.mjs +1 -0
  89. package/package.json +1 -1
  90. package/dist/attempt-record-codec-dC9LSFUE.mjs +0 -1
  91. package/dist/await-trigger-Bkg2BQfg.mjs +0 -1
  92. package/dist/package-Cgjpm9om.mjs +0 -7
  93. package/dist/worker-CARV52hT.mjs +0 -1
  94. package/dist/workflow-worker-Dul-wcOR.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  import { r as ExtensionDiscovery } from "./extension-discovery-Dhu3WplO.mjs";
2
2
  import { RegistrableBusNamespaceDefinition } from "@makaio/framework/core";
3
3
  import { BusTransport, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
4
- import { ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerAllocatedOutcome, WorkerBootstrapClaimResponse, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas } from "@makaio/framework/contracts";
4
+ import { ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptRuntimeRegisterRefusalReason, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerAllocatedOutcome, WorkerBootstrapClaimResponse, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas } from "@makaio/framework/contracts";
5
5
  import { DispatchingAuth, TransportAuth } from "@makaio/framework/node/transports";
6
6
  import { ContributionProcessor, ExtensionCoordinator, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, TransportProvider, WindowRegistry } from "@makaio/framework/kernel";
7
7
  import { StorageEngine } from "@makaio/framework/storage/drizzle";
@@ -1299,9 +1299,16 @@ interface ThinWorkflowPiscinaRunnerOptions {
1299
1299
  }
1300
1300
  //#endregion
1301
1301
  //#region runtimes/node/src/workflow-worker/worker-ready-message.d.ts
1302
- /** Message type posted by workflow workers once bus control routing is ready. */
1302
+ /** Message type posted by workflow workers once the authority accepted the runtime. */
1303
1303
  declare const WORKFLOW_WORKER_READY_MESSAGE_TYPE: "makaio.workflow-worker.ready";
1304
- /** Piscina worker-to-pool message emitted after cancel routing is subscribed. */
1304
+ /**
1305
+ * Piscina worker-to-pool message emitted after the attempt accepted this runtime.
1306
+ *
1307
+ * The message is posted only by the attempt-bound arm of the worker entrypoint,
1308
+ * after `execution-attempt.runtime.register` returned and the workflow run
1309
+ * passed the attempt's start gate. It therefore means "the authority accepted
1310
+ * this runtime", not "the worker finished composing itself".
1311
+ */
1305
1312
  interface WorkflowWorkerReadyMessage {
1306
1313
  /** Stable message discriminator. */
1307
1314
  readonly type: typeof WORKFLOW_WORKER_READY_MESSAGE_TYPE;
@@ -1309,11 +1316,16 @@ interface WorkflowWorkerReadyMessage {
1309
1316
  readonly executionId: string;
1310
1317
  /** Dynamic workflow cancel subject observed by the worker. */
1311
1318
  readonly cancelSubject: string;
1312
- /** Adapter identifiers loaded in the worker runtime before readiness. */
1313
- readonly adapters: readonly string[];
1319
+ /** Attempt whose runtime registration the authority accepted. */
1320
+ readonly executionAttemptId: string;
1314
1321
  }
1315
1322
  //#endregion
1316
1323
  //#region runtimes/node/src/workflow-worker/thin-workflow-piscina-runner.d.ts
1324
+ /** Attempt identity a readiness-aware dispatch binds its worker thread to. */
1325
+ interface ThinWorkflowPiscinaAttemptBinding {
1326
+ /** Authority-created attempt the dispatched thread registers against. */
1327
+ readonly executionAttemptId: string;
1328
+ }
1317
1329
  /** Result and readiness promises for one workflow worker dispatch. */
1318
1330
  interface ThinWorkflowPiscinaRunWithReadiness {
1319
1331
  /** Terminal workflow result returned by the worker. */
@@ -1353,18 +1365,23 @@ declare class ThinWorkflowPiscinaRunner implements IWorkflowRunner$1 {
1353
1365
  */
1354
1366
  run(config: WorkflowWorkerConfig, signal: AbortSignal, manifest?: WorkerContributionManifest): Promise<WorkflowRunnerCompletion$1>;
1355
1367
  /**
1356
- * Execute a workflow and expose the worker bus readiness signal separately.
1368
+ * Execute an attempt-bound workflow and expose its readiness signal separately.
1357
1369
  *
1358
1370
  * The terminal result remains the {@link IWorkflowRunner} contract. The ready
1359
- * promise is used by {@link PiscinaThinWorkflowProvider} so pool lifecycle
1360
- * `ready` is not emitted before the worker has connected its bus and subscribed
1361
- * to cancellation routing.
1371
+ * promise resolves once the worker thread's own
1372
+ * `execution-attempt.runtime.register` reply came back, so readiness here
1373
+ * means the authority accepted that runtime rather than that a thread booted.
1374
+ *
1375
+ * The attempt binding is required because readiness has no meaning without
1376
+ * it: a thread with no attempt registers nothing, posts no ready message, and
1377
+ * would leave this promise to be rejected by the run's own settlement.
1362
1378
  * @param config - Full workflow worker configuration with source, inputs, and bus info.
1363
1379
  * @param signal - AbortSignal for cooperative cancellation.
1364
1380
  * @param manifest - Optional per-call manifest override.
1381
+ * @param attempt - Attempt identity the dispatched thread registers against.
1365
1382
  * @returns Terminal result and readiness promises for this worker run.
1366
1383
  */
1367
- runWithReadiness(config: WorkflowWorkerConfig, signal: AbortSignal, manifest?: WorkerContributionManifest): ThinWorkflowPiscinaRunWithReadiness;
1384
+ runWithReadiness(config: WorkflowWorkerConfig, signal: AbortSignal, manifest: WorkerContributionManifest | undefined, attempt: ThinWorkflowPiscinaAttemptBinding): ThinWorkflowPiscinaRunWithReadiness;
1368
1385
  /**
1369
1386
  * Destroy the thread pool and release all worker threads.
1370
1387
  */
@@ -1373,6 +1390,11 @@ declare class ThinWorkflowPiscinaRunner implements IWorkflowRunner$1 {
1373
1390
  * Realize portable filesystem references before transferring a task to
1374
1391
  * Piscina. Worker threads receive only verified absolute paths, never an
1375
1392
  * Authority-relative source or unchecked contribution package path.
1393
+ *
1394
+ * The task is returned as the `unbound` arm; the readiness-aware path
1395
+ * re-stamps it `attempt-bound` with its attempt identity afterwards, so the
1396
+ * attempt identity never becomes an optional field on the shape the
1397
+ * attempt-free path also uses.
1376
1398
  * @param config - Portable worker configuration.
1377
1399
  * @param manifest - Exact contribution identities for this execution.
1378
1400
  * @param signal - Cancellation signal for the dispatch.
@@ -1688,9 +1710,10 @@ interface PiscinaThinWorkflowProviderOptions {
1688
1710
  * can supply lightweight fakes without spawning real worker threads.
1689
1711
  *
1690
1712
  * Readiness is part of the requirement rather than an optional refinement:
1691
- * this provider publishes `control.attempt-ready` from the runner's
1692
- * post-composition signal, and a runner without one would silently never
1693
- * make an attempt ready instead of failing where it is wired.
1713
+ * the thread's own registration is what makes the attempt ready, and this
1714
+ * provider watches that signal to abort the allocation when it fails. A
1715
+ * runner without one would silently swallow a refused registration instead
1716
+ * of failing where it is wired.
1694
1717
  */
1695
1718
  readonly runner: ReadinessAwareWorkflowRunner;
1696
1719
  /**
@@ -1731,13 +1754,14 @@ interface PiscinaThinWorkflowProviderOptions {
1731
1754
  */
1732
1755
  interface ReadinessAwareWorkflowRunner extends IWorkflowRunner {
1733
1756
  /**
1734
- * Run once and separately expose the worker's post-composition readiness.
1757
+ * Run once and separately expose the worker's own registration readiness.
1735
1758
  * @param config - Worker configuration for the run.
1736
1759
  * @param signal - AbortSignal that cancels the run.
1737
1760
  * @param manifest - Optional per-call contribution manifest.
1738
- * @returns Terminal result promise and post-composition readiness promise.
1761
+ * @param attempt - Attempt identity the dispatched worker registers against.
1762
+ * @returns Terminal result promise and registration readiness promise.
1739
1763
  */
1740
- runWithReadiness(config: WorkerProvisionRequest['workerConfig'], signal: AbortSignal, manifest?: WorkerProvisionRequest['workerManifest']): ThinWorkflowPiscinaRunWithReadiness;
1764
+ runWithReadiness(config: WorkerProvisionRequest['workerConfig'], signal: AbortSignal, manifest: WorkerProvisionRequest['workerManifest'] | undefined, attempt: ThinWorkflowPiscinaAttemptBinding): ThinWorkflowPiscinaRunWithReadiness;
1741
1765
  }
1742
1766
  /**
1743
1767
  * Built-in thin workflow provider backed by the existing workflow-level
@@ -1750,10 +1774,11 @@ interface ReadinessAwareWorkflowRunner extends IWorkflowRunner {
1750
1774
  * infrastructure-only {@link WorkerHandle}.
1751
1775
  *
1752
1776
  * The handle controls allocation lifecycle (cancel/terminate) but does
1753
- * NOT expose readiness or workflow results. Readiness is signaled via
1754
- * the worker protocol (`control.attempt-ready` bus subject) after runtime
1755
- * composition. Workflow outcomes are submitted and acknowledged through
1756
- * the Authority's `control.outcome.submit` bus subject.
1777
+ * NOT expose readiness or workflow results. Readiness is the worker thread's
1778
+ * own business: it registers its runtime with the ExecutionAttempt authority,
1779
+ * which publishes `execution-attempt.runtime.ready`. Workflow outcomes are
1780
+ * submitted and acknowledged through the Authority's `control.outcome.submit`
1781
+ * bus subject.
1757
1782
  *
1758
1783
  * Piscina is a local thin workflow runner: it declares that it is NOT
1759
1784
  * recoverable. Allocation references are process-local and non-durable.
@@ -1806,9 +1831,14 @@ declare class PiscinaThinWorkflowProvider implements IWorkerProvider {
1806
1831
  * way to positively prove that nothing was created. The narrow type states
1807
1832
  * what it can prove today. Gaining the ability to confirm absence means
1808
1833
  * deliberately widening this signature back to the contract union.
1834
+ * A worker configuration without a bus URL is rejected loudly rather than
1835
+ * allocated: the thread would have no transport, so it could never
1836
+ * authenticate as the attempt or register its runtime, and the allocation
1837
+ * would be a worker that is provisioned and permanently unready.
1809
1838
  * @param request - Full provision request containing worker config and manifest.
1810
1839
  * @param signal - AbortSignal for cooperative cancellation of the provision operation.
1811
1840
  * @returns Allocated outcome with a validated allocation reference and infrastructure handle.
1841
+ * @throws When the worker configuration carries no bus URL.
1812
1842
  */
1813
1843
  provision(request: WorkerProvisionRequest, signal: AbortSignal): Promise<WorkerAllocatedOutcome>;
1814
1844
  /**
@@ -1816,7 +1846,9 @@ declare class PiscinaThinWorkflowProvider implements IWorkerProvider {
1816
1846
  * the runner promise settles.
1817
1847
  *
1818
1848
  * On success, submits the runner's result directly. On failure, builds
1819
- * a `failed` {@link WorkflowRunResult} from the error message.
1849
+ * a `failed` {@link WorkflowRunResult} from the error message. Attached
1850
+ * only once the thread's run was admitted: a rejection before admission is
1851
+ * infrastructure evidence, not a workflow outcome, and never reaches here.
1820
1852
  *
1821
1853
  * Uses the shared {@link submitOutcomeWithAck} helper for decision-aware
1822
1854
  * retry with bounded exponential back-off. Since the Piscina provider
@@ -2102,12 +2134,18 @@ interface HeadlessWorkflowWorkerResult {
2102
2134
  /**
2103
2135
  * Run a single workflow execution through the portable headless worker harness.
2104
2136
  *
2105
- * Kernel readiness is emitted by `createIsolatedWorkflowRuntime` internally;
2106
- * attempt-ready follows after the runtime cancellation handoff completes.
2137
+ * The runtime proves itself to the Authority before it asks for work: the
2138
+ * delivery endpoint is installed first, `execution-attempt.runtime.register`
2139
+ * returns only after the Authority made readiness durable, and the whole legacy
2140
+ * run then passes the attempt's start gate as one admitted `workflow-run`
2141
+ * operation. Kernel readiness is emitted later, by
2142
+ * `createIsolatedWorkflowRuntime` during composition.
2107
2143
  * @param deps - Injected provider and product dependencies.
2108
2144
  * @param signal - Cancellation signal from the process/caller.
2109
2145
  * @returns Terminal result and durable ACK decision.
2110
2146
  * @throws {@link OutcomeDeliveryError} When the Authority rejects the outcome.
2147
+ * @throws {@link RuntimeRegistrationRefusedError} When the Authority refuses this runtime.
2148
+ * @throws {@link OperationAdmissionRefusedError} When the Authority refuses the run.
2111
2149
  * @throws When bootstrap, connection, materialization, or runtime composition fails.
2112
2150
  */
2113
2151
  declare function runHeadlessWorkflowWorker(deps: HeadlessWorkflowWorkerDeps, signal: AbortSignal): Promise<HeadlessWorkflowWorkerResult>;
@@ -2174,4 +2212,230 @@ declare function loadWorkflowModules(source: Exclude<WorkflowWorkerSource, {
2174
2212
  */
2175
2213
  declare function loadWorkflowModule(source: WorkflowWorkerSource): Promise<RuntimeLoadedWorkflow>;
2176
2214
  //#endregion
2177
- export { WorkspaceRootResolver as $, submitOutcomeWithAck as A, createHonoRouteGraph as At, ThinWorkflowPiscinaRunnerOptions as B, PiscinaThinWorkflowProvider as C, resolveFrameworkSpecifier as Ct, OutcomeReconnect as D, HttpRouteContribution as Dt, OutcomeDeliveryError as E, HttpContributionPhase as Et, createNodeWorkflowRunner as F, activateAdapterRuntimeIdentity as Ft, MakaioRuntime as G, BootCoordinatorSetupContext as H, createNodeWorkflowRunnerPackageOptions as I, prepareAdapterRuntime as It, UpstreamTelemetryBootOptions as J, ServerTransportProvider as K, ThinWorkflowPiscinaRunner as L, WorkerRunnerOptions as M, ActivatedAdapterRuntimeIdentity as Mt, CreateNodeWorkflowRunnerPackageOptionsParams as N, PrepareAdapterRuntimeInput as Nt, OutcomeSubmitPayload as O, HonoRouteGraph as Ot, NodeWorkflowRunnerPackageOptions as P, PreparedAdapterRuntime as Pt, ParsedSriIntegrity as Q, IWorkflowRunner$1 as R, InProcessWorkflowRunnerOptions as S, NoopFrameworkModuleResolver as St, DELIVERED_DECISIONS as T, createHttpRouteGraphBuilder as Tt, BootMakaioRuntimeOptions as U, WorkflowRunResult$1 as V, CoreBootOptions as W, LocalDirectoryMaterializerOptions as X, WorkflowRunnerBootOptions as Y, MaterializationError as Z, IsolatedWorkflowRuntimeContext as _, selectFrameworkCorePackages as _t, HeadlessWorkerBootstrapCredentials as a, materializeLocalDirectory as at, createIsolatedWorkflowRuntime as b, FrameworkModuleResolver as bt, HeadlessWorkerExecutor as c, WorkflowWorkerEntryMode as ct, HeadlessWorkflowWorkerDeps as d, DatabaseBootOptions as dt, assertContainedIn as et, HeadlessWorkflowWorkerResult as f, InitializeNodeDatabaseOptions as ft, IsolatedWorkflowRuntime as g, normalizeNodeHostCapabilities as gt, CreateIsolatedWorkflowRuntimeOptions as h, HostCapabilityDeclaration as ht, HeadlessWorkerBootstrap as i, computeFileDigest as it, WorkerRunner as j, ActivateAdapterRuntimeIdentityInput as jt, OutcomeSubmitRetryConfig as k, HonoRouteGraphOptions as kt, HeadlessWorkerMaterializer as l, WorkflowWorkerEntryResolverOptions as lt, runHeadlessWorkflowWorker as m, initializeNodeDatabase as mt, loadWorkflowModules as n, computeContributionPackageDigest as nt, HeadlessWorkerBusConnector as o, parseSriIntegrity as ot, MaterializedWorkspace as p, InitializeNodeDatabaseResult as pt, TransportReadyInfo as q, loadWorkflowFromConfig as r, computeDirectoryDigest as rt, HeadlessWorkerContributionLoader as s, verifyContribution as st, loadWorkflowModule as t, assertNoSymlinkEscape as tt, HeadlessWorkerPostCommitObserver as u, resolveWorkflowWorkerEntry as ut, WorkflowRuntimeAuthorityConnector as v, ShutdownStep as vt, PiscinaThinWorkflowProviderOptions as w, HttpRouteGraphBuilder as wt, InProcessWorkflowRunner as x, NodeFrameworkModuleResolver as xt, WorkflowRuntimeContributionLoader as y, BridgeBrowserOptions as yt, RuntimeLoadedWorkflow as z };
2215
+ //#region runtimes/node/src/workflow-worker/runtime-registration-client.d.ts
2216
+ /**
2217
+ * Operation kinds a runtime endpoint may be handed by the authority.
2218
+ *
2219
+ * `runtime-probe` is excluded: the bounded probe is the authority's own proof
2220
+ * that the endpoint accepts a fenced instruction, and
2221
+ * {@link installOperationDeliveryEndpoint} answers it itself. A caller-supplied
2222
+ * probe handler would be a second way to answer the same delivery.
2223
+ */
2224
+ type DeliverableOperationKind = Exclude<ExecutionAttemptOperationKind, 'runtime-probe'>;
2225
+ /**
2226
+ * Runtime-side executor for one delivered operation.
2227
+ *
2228
+ * Receives the delivery verbatim and returns the receipt the authority sees.
2229
+ * A handler that cannot honour the delivery returns a `refused` receipt with
2230
+ * its reason rather than throwing — a throw is reported to the authority as a
2231
+ * failed request, which it reads as an unproven endpoint.
2232
+ * @param delivery - The operation the authority handed to this runtime.
2233
+ * @returns The receipt reported back to the authority.
2234
+ */
2235
+ type OperationDeliveryHandler = (delivery: ExecutionAttemptOperationDelivery) => ExecutionAttemptOperationReceipt | Promise<ExecutionAttemptOperationReceipt>;
2236
+ /**
2237
+ * Handlers a runtime installs for the operation kinds it can execute.
2238
+ *
2239
+ * Partial by design: a delivery whose kind has no handler is answered
2240
+ * `refused` / `unknown-kind`, which is the honest report of a runtime that
2241
+ * does not know the instruction.
2242
+ */
2243
+ type OperationDeliveryHandlers = Partial<Record<DeliverableOperationKind, OperationDeliveryHandler>>;
2244
+ /** Identity the delivery endpoint is installed for. */
2245
+ interface OperationDeliveryEndpointIdentity {
2246
+ /** Attempt this runtime owns; the first half of the delivery filter. */
2247
+ readonly executionAttemptId: string;
2248
+ /** This runtime incarnation; the second half of the delivery filter. */
2249
+ readonly runtimeIncarnationId: string;
2250
+ /**
2251
+ * Generation this incarnation was accepted with, when already known.
2252
+ *
2253
+ * Set when the endpoint is re-installed on another bus after registration
2254
+ * (the pre-composition → runtime bus handoff). A fresh endpoint installed
2255
+ * before registration leaves it out and learns the generation through
2256
+ * {@link OperationDeliveryEndpoint.bindGeneration}.
2257
+ */
2258
+ readonly runtimeGeneration?: number;
2259
+ }
2260
+ /** The installed delivery endpoint of one runtime incarnation. */
2261
+ interface OperationDeliveryEndpoint {
2262
+ /**
2263
+ * Fence later deliveries against the generation the authority accepted.
2264
+ *
2265
+ * Called once registration returned. The probe needs no fence — it is
2266
+ * addressed to this incarnation and arrives before the generation exists —
2267
+ * but every other delivery is refused `stale-generation` unless it carries
2268
+ * exactly this generation.
2269
+ * @param runtimeGeneration - Generation returned by registration.
2270
+ */
2271
+ bindGeneration(runtimeGeneration: number): void;
2272
+ /** Remove the endpoint from its bus. Idempotent. */
2273
+ cleanup(): void;
2274
+ }
2275
+ /**
2276
+ * Install this runtime's responder for `execution-attempt.operation.deliver`.
2277
+ *
2278
+ * The subject is static and every live Worker Runtime subscribes to it, so the
2279
+ * addressing is a payload filter on the runtime's own attempt and incarnation
2280
+ * (`bus.withFilter({ executionAttemptId, runtimeIncarnationId })`, the same
2281
+ * move the adapter session endpoints make in `adapters/core`). A delivery for
2282
+ * another attempt — or for a newer incarnation of this attempt while this one
2283
+ * is still connected — is a filter miss that returns undefined and
2284
+ * auto-advances the dispatch chain to the next responder; it is not an error
2285
+ * and this endpoint never sees it.
2286
+ *
2287
+ * The endpoint must exist before the runtime registers: the authority delivers
2288
+ * the bounded probe inside the registration request, and an unsubscribed
2289
+ * runtime fails its own registration with `probe-failed`. The returned
2290
+ * propagation await is what makes "before" true across a transport — the
2291
+ * subscription is visible to the authority when this resolves.
2292
+ * @param bus - Connected runtime bus the endpoint is installed on.
2293
+ * @param identity - Attempt and incarnation this runtime is; the delivery filter.
2294
+ * @param handlers - Handlers for the operation kinds this runtime can execute.
2295
+ * @returns The installed endpoint: a generation binder and its cleanup.
2296
+ */
2297
+ declare function installOperationDeliveryEndpoint(bus: IMakaioBus, identity: OperationDeliveryEndpointIdentity, handlers: OperationDeliveryHandlers): Promise<OperationDeliveryEndpoint>;
2298
+ /**
2299
+ * Error thrown when the authority refuses a runtime registration.
2300
+ *
2301
+ * A refusal hands out no generation, so there is nothing for the caller to
2302
+ * fence with and no partial success to report: the runtime cannot proceed.
2303
+ */
2304
+ declare class RuntimeRegistrationRefusedError extends Error {
2305
+ readonly executionAttemptId: string;
2306
+ readonly refusalReason: ExecutionAttemptRuntimeRegisterRefusalReason | undefined;
2307
+ /**
2308
+ * @param executionAttemptId - Attempt whose registration was refused.
2309
+ * @param refusalReason - Authority's reason, absent only if it reported none.
2310
+ */
2311
+ constructor(executionAttemptId: string, refusalReason: ExecutionAttemptRuntimeRegisterRefusalReason | undefined);
2312
+ }
2313
+ /**
2314
+ * Error thrown when the authority refuses an operation admission.
2315
+ *
2316
+ * A refused admission means the operation never passed the attempt's start
2317
+ * gate, so the caller must not run it.
2318
+ */
2319
+ declare class OperationAdmissionRefusedError extends Error {
2320
+ readonly executionAttemptId: string;
2321
+ readonly admissionKey: string;
2322
+ readonly refusalReason: ExecutionAttemptOperationAdmitRefusalReason | undefined;
2323
+ /**
2324
+ * @param executionAttemptId - Attempt the admission was requested against.
2325
+ * @param admissionKey - Idempotency key the caller admitted under.
2326
+ * @param refusalReason - Authority's reason, absent only if it reported none.
2327
+ */
2328
+ constructor(executionAttemptId: string, admissionKey: string, refusalReason: ExecutionAttemptOperationAdmitRefusalReason | undefined);
2329
+ }
2330
+ /**
2331
+ * How long a registration keeps retrying a `not-allocated` refusal.
2332
+ *
2333
+ * The allocation-visibility window: a provider that runs its runtime in
2334
+ * process starts it inside `provision()`, and the pool records the returned
2335
+ * allocation only afterwards. Until that record is durable the authority
2336
+ * answers `not-allocated`, which is a fact about timing, not about this
2337
+ * runtime. Same value and same reasoning as `BOOTSTRAP_CONNECT_TIMEOUT_MS` in
2338
+ * the container entrypoint's bootstrap claim, which retries the equivalent
2339
+ * `attempt-pending` rejection. The window exists because no provider has an
2340
+ * activation step the pool drives after the record is durable; until such a
2341
+ * barrier exists, the retry is the runtime's only way to wait for the record.
2342
+ */
2343
+ declare const ALLOCATION_VISIBILITY_DEADLINE_MS = 10000;
2344
+ /** Parameters for registering this runtime incarnation with the authority. */
2345
+ interface RegisterWorkerRuntimeOptions {
2346
+ /** Authority-created attempt identifier this runtime claims. */
2347
+ readonly executionAttemptId: string;
2348
+ /** Identifier of this concrete runtime incarnation, unique per boot. */
2349
+ readonly runtimeIncarnationId: string;
2350
+ /** Cancellation signal for the registration request. */
2351
+ readonly signal?: AbortSignal;
2352
+ /**
2353
+ * How long to keep retrying a `not-allocated` refusal, in milliseconds.
2354
+ *
2355
+ * Defaults to {@link ALLOCATION_VISIBILITY_DEADLINE_MS}. Exists so a test can
2356
+ * pin the deadline without waiting ten seconds for it.
2357
+ */
2358
+ readonly allocationVisibilityDeadlineMs?: number;
2359
+ }
2360
+ /**
2361
+ * Register this runtime incarnation as the endpoint of its ExecutionAttempt.
2362
+ *
2363
+ * One request that returns only after the authority made readiness durable:
2364
+ * it allocates the generation, admits and delivers the bounded probe to the
2365
+ * endpoint installed by {@link installOperationDeliveryEndpoint}, persists the
2366
+ * completion, and publishes `execution-attempt.runtime.ready`. The reply is
2367
+ * the complete answer; the only refusal retried here is `not-allocated`, and
2368
+ * only inside the allocation-visibility window described at
2369
+ * {@link ALLOCATION_VISIBILITY_DEADLINE_MS}.
2370
+ *
2371
+ * A `duplicate` decision is readiness: the authority answers it only for an
2372
+ * incarnation that already holds a readiness instant, and it carries the same
2373
+ * generation that incarnation was registered with.
2374
+ * @param bus - Connected runtime bus authenticated as the attempt peer.
2375
+ * @param options - Attempt identity, incarnation identity, cancellation.
2376
+ * @returns The generation this runtime must fence all later traffic with.
2377
+ * @throws {@link RuntimeRegistrationRefusedError} When the authority refuses.
2378
+ */
2379
+ declare function registerWorkerRuntime(bus: IMakaioBus, options: RegisterWorkerRuntimeOptions): Promise<number>;
2380
+ /** Parameters for admitting this runtime's workflow run through the start gate. */
2381
+ interface AdmitWorkflowRunOperationOptions {
2382
+ /** Authority-created attempt identifier the operation runs under. */
2383
+ readonly executionAttemptId: string;
2384
+ /** Generation this runtime was registered with. */
2385
+ readonly runtimeGeneration: number;
2386
+ /** Caller-chosen idempotency key for this admission. */
2387
+ readonly admissionKey: string;
2388
+ /** Cancellation signal for the admission request. */
2389
+ readonly signal?: AbortSignal;
2390
+ }
2391
+ /**
2392
+ * Admit this runtime's workflow run through the attempt's start gate.
2393
+ *
2394
+ * The legacy run passes the gate as one admitted operation: materialize, load,
2395
+ * compose, execute, and the outcome all stay inside it, and the outcome commit
2396
+ * settles the attempt rather than a separate completion call.
2397
+ *
2398
+ * A `duplicate` decision is the retry of an admission whose first pass already
2399
+ * succeeded, so it yields the existing operation identifier.
2400
+ * @param bus - Connected runtime bus authenticated as the attempt peer.
2401
+ * @param options - Attempt identity, fence, idempotency key, cancellation.
2402
+ * @returns The identifier of the admitted operation.
2403
+ * @throws {@link OperationAdmissionRefusedError} When the authority refuses.
2404
+ * @throws When the authority admits without naming an operation.
2405
+ */
2406
+ declare function admitWorkflowRunOperation(bus: IMakaioBus, options: AdmitWorkflowRunOperationOptions): Promise<string>;
2407
+ /** Parameters for proving this runtime and admitting its workflow run. */
2408
+ interface RegisterAndAdmitWorkflowRunOptions {
2409
+ /** Authority-created attempt identifier this runtime claims. */
2410
+ readonly executionAttemptId: string;
2411
+ /** Identifier of this concrete runtime incarnation, unique per boot. */
2412
+ readonly runtimeIncarnationId: string;
2413
+ /** The delivery endpoint installed for this incarnation, bound to the accepted generation here. */
2414
+ readonly endpoint: OperationDeliveryEndpoint;
2415
+ /** Cancellation signal for both requests. */
2416
+ readonly signal?: AbortSignal;
2417
+ }
2418
+ /** What a runtime holds once its workflow run passed the start gate. */
2419
+ interface AdmittedWorkflowRun {
2420
+ /** Generation this runtime was accepted with. */
2421
+ readonly runtimeGeneration: number;
2422
+ /** Identifier of the admitted workflow-run operation. */
2423
+ readonly operationId: string;
2424
+ }
2425
+ /**
2426
+ * Prove this runtime to the authority and admit its workflow run, in order.
2427
+ *
2428
+ * The one sequence every workflow runtime performs before it pulls work:
2429
+ * register (the probe arrives at `options.endpoint` meanwhile), bind the
2430
+ * accepted generation onto that endpoint, then admit the run under the
2431
+ * incarnation's own key `workflow-run:<runtimeIncarnationId>`, so a retried
2432
+ * admission is answered `duplicate` with the same operation.
2433
+ * @param bus - Connected runtime bus authenticated as the attempt peer.
2434
+ * @param options - Attempt identity, incarnation identity, endpoint, cancellation.
2435
+ * @returns The accepted generation and the admitted operation.
2436
+ * @throws {@link RuntimeRegistrationRefusedError} When the authority refuses the runtime.
2437
+ * @throws {@link OperationAdmissionRefusedError} When the authority refuses the run.
2438
+ */
2439
+ declare function registerAndAdmitWorkflowRun(bus: IMakaioBus, options: RegisterAndAdmitWorkflowRunOptions): Promise<AdmittedWorkflowRun>;
2440
+ //#endregion
2441
+ export { ThinWorkflowPiscinaRunner as $, runHeadlessWorkflowWorker as A, initializeNodeDatabase as At, PiscinaThinWorkflowProviderOptions as B, HttpRouteGraphBuilder as Bt, HeadlessWorkerContributionLoader as C, verifyContribution as Ct, HeadlessWorkflowWorkerDeps as D, DatabaseBootOptions as Dt, HeadlessWorkerPostCommitObserver as E, resolveWorkflowWorkerEntry as Et, WorkflowRuntimeContributionLoader as F, BridgeBrowserOptions as Ft, OutcomeSubmitRetryConfig as G, HonoRouteGraphOptions as Gt, OutcomeDeliveryError as H, HttpContributionPhase as Ht, createIsolatedWorkflowRuntime as I, FrameworkModuleResolver as It, WorkerRunnerOptions as J, ActivatedAdapterRuntimeIdentity as Jt, submitOutcomeWithAck as K, createHonoRouteGraph as Kt, InProcessWorkflowRunner as L, NodeFrameworkModuleResolver as Lt, IsolatedWorkflowRuntime as M, normalizeNodeHostCapabilities as Mt, IsolatedWorkflowRuntimeContext as N, selectFrameworkCorePackages as Nt, HeadlessWorkflowWorkerResult as O, InitializeNodeDatabaseOptions as Ot, WorkflowRuntimeAuthorityConnector as P, ShutdownStep as Pt, createNodeWorkflowRunnerPackageOptions as Q, prepareAdapterRuntime as Qt, InProcessWorkflowRunnerOptions as R, NoopFrameworkModuleResolver as Rt, HeadlessWorkerBusConnector as S, parseSriIntegrity as St, HeadlessWorkerMaterializer as T, WorkflowWorkerEntryResolverOptions as Tt, OutcomeReconnect as U, HttpRouteContribution as Ut, DELIVERED_DECISIONS as V, createHttpRouteGraphBuilder as Vt, OutcomeSubmitPayload as W, HonoRouteGraph as Wt, NodeWorkflowRunnerPackageOptions as X, PreparedAdapterRuntime as Xt, CreateNodeWorkflowRunnerPackageOptionsParams as Y, PrepareAdapterRuntimeInput as Yt, createNodeWorkflowRunner as Z, activateAdapterRuntimeIdentity as Zt, loadWorkflowModule as _, assertNoSymlinkEscape as _t, OperationAdmissionRefusedError as a, BootMakaioRuntimeOptions as at, HeadlessWorkerBootstrap as b, computeFileDigest as bt, OperationDeliveryHandler as c, ServerTransportProvider as ct, RegisterWorkerRuntimeOptions as d, WorkflowRunnerBootOptions as dt, IWorkflowRunner$1 as et, RuntimeRegistrationRefusedError as f, LocalDirectoryMaterializerOptions as ft, registerWorkerRuntime as g, assertContainedIn as gt, registerAndAdmitWorkflowRun as h, WorkspaceRootResolver as ht, DeliverableOperationKind as i, BootCoordinatorSetupContext as it, CreateIsolatedWorkflowRuntimeOptions as j, HostCapabilityDeclaration as jt, MaterializedWorkspace as k, InitializeNodeDatabaseResult as kt, OperationDeliveryHandlers as l, TransportReadyInfo as lt, installOperationDeliveryEndpoint as m, ParsedSriIntegrity as mt, AdmitWorkflowRunOperationOptions as n, ThinWorkflowPiscinaRunnerOptions as nt, OperationDeliveryEndpoint as o, CoreBootOptions as ot, admitWorkflowRunOperation as p, MaterializationError as pt, WorkerRunner as q, ActivateAdapterRuntimeIdentityInput as qt, AdmittedWorkflowRun as r, WorkflowRunResult$1 as rt, OperationDeliveryEndpointIdentity as s, MakaioRuntime as st, ALLOCATION_VISIBILITY_DEADLINE_MS as t, RuntimeLoadedWorkflow as tt, RegisterAndAdmitWorkflowRunOptions as u, UpstreamTelemetryBootOptions as ut, loadWorkflowModules as v, computeContributionPackageDigest as vt, HeadlessWorkerExecutor as w, WorkflowWorkerEntryMode as wt, HeadlessWorkerBootstrapCredentials as x, materializeLocalDirectory as xt, loadWorkflowFromConfig as y, computeDirectoryDigest as yt, PiscinaThinWorkflowProvider as z, resolveFrameworkSpecifier as zt };
@@ -90,8 +90,8 @@ declare const ClientSchemas: {
90
90
  projectDir: z.ZodOptional<z.ZodString>;
91
91
  configInheritance: z.ZodOptional<z.ZodEnum<{
92
92
  empty: "empty";
93
- "auth-only": "auth-only";
94
93
  full: "full";
94
+ "auth-only": "auth-only";
95
95
  }>>;
96
96
  }, z.core.$strip>;
97
97
  response: z.ZodObject<{
@@ -507,8 +507,8 @@ declare const ClientSchemas: {
507
507
  machineId: z.ZodOptional<z.ZodString>;
508
508
  startMode: z.ZodOptional<z.ZodEnum<{
509
509
  fork: "fork";
510
- resume: "resume";
511
510
  fresh: "fresh";
511
+ resume: "resume";
512
512
  clear: "clear";
513
513
  compact: "compact";
514
514
  }>>;
@@ -1487,8 +1487,8 @@ declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "
1487
1487
  /** Zod schema for the client-reported session start mode. */
1488
1488
  declare const ClientSessionStartModeSchema: z.ZodEnum<{
1489
1489
  fork: "fork";
1490
- resume: "resume";
1491
1490
  fresh: "fresh";
1491
+ resume: "resume";
1492
1492
  clear: "clear";
1493
1493
  compact: "compact";
1494
1494
  }>;
@@ -1506,8 +1506,8 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
1506
1506
  machineId: z.ZodOptional<z.ZodString>;
1507
1507
  startMode: z.ZodOptional<z.ZodEnum<{
1508
1508
  fork: "fork";
1509
- resume: "resume";
1510
1509
  fresh: "fresh";
1510
+ resume: "resume";
1511
1511
  clear: "clear";
1512
1512
  compact: "compact";
1513
1513
  }>>;
@@ -1676,8 +1676,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1676
1676
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1677
1677
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1678
1678
  empty: "empty";
1679
- "auth-only": "auth-only";
1680
1679
  full: "full";
1680
+ "auth-only": "auth-only";
1681
1681
  }>>;
1682
1682
  }, _$zod_v4_core0.$strip>;
1683
1683
  response: _$zod.ZodObject<{
@@ -2077,8 +2077,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2077
2077
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2078
2078
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2079
2079
  fork: "fork";
2080
- resume: "resume";
2081
2080
  fresh: "fresh";
2081
+ resume: "resume";
2082
2082
  clear: "clear";
2083
2083
  compact: "compact";
2084
2084
  }>>;
@@ -2316,8 +2316,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2316
2316
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2317
2317
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2318
2318
  empty: "empty";
2319
- "auth-only": "auth-only";
2320
2319
  full: "full";
2320
+ "auth-only": "auth-only";
2321
2321
  }>>;
2322
2322
  }, _$zod_v4_core0.$strip>;
2323
2323
  response: _$zod.ZodObject<{
@@ -2717,8 +2717,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2717
2717
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2718
2718
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2719
2719
  fork: "fork";
2720
- resume: "resume";
2721
2720
  fresh: "fresh";
2721
+ resume: "resume";
2722
2722
  clear: "clear";
2723
2723
  compact: "compact";
2724
2724
  }>>;
@@ -2979,8 +2979,8 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2979
2979
  */
2980
2980
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2981
2981
  empty: "empty";
2982
- "auth-only": "auth-only";
2983
2982
  full: "full";
2983
+ "auth-only": "auth-only";
2984
2984
  }>;
2985
2985
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2986
2986
  /**
@@ -3137,8 +3137,8 @@ declare const ClientSessionConfigSchemas: {
3137
3137
  projectDir: z.ZodOptional<z.ZodString>;
3138
3138
  configInheritance: z.ZodOptional<z.ZodEnum<{
3139
3139
  empty: "empty";
3140
- "auth-only": "auth-only";
3141
3140
  full: "full";
3141
+ "auth-only": "auth-only";
3142
3142
  }>>;
3143
3143
  }, z.core.$strip>;
3144
3144
  response: z.ZodObject<{
@@ -3193,8 +3193,8 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
3193
3193
  }>;
3194
3194
  configInheritance: z.ZodEnum<{
3195
3195
  empty: "empty";
3196
- "auth-only": "auth-only";
3197
3196
  full: "full";
3197
+ "auth-only": "auth-only";
3198
3198
  }>;
3199
3199
  }, z.core.$strip>;
3200
3200
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;
@@ -58,9 +58,9 @@ declare const StructuredOutputValidationErrorSchema: z.ZodObject<{
58
58
  * - `enforced` – A structured-output enforcement handler produced conformant output.
59
59
  */
60
60
  declare const StructuredOutputValidationStatusSchema: z.ZodEnum<{
61
+ failed: "failed";
61
62
  passed: "passed";
62
63
  enforced: "enforced";
63
- failed: "failed";
64
64
  }>;
65
65
  /**
66
66
  * Full validation result emitted after a turn completes when a
@@ -1,16 +1,16 @@
1
- import { G as ArtifactLifecycleHookRegistration$1, N as AnyArtifactKindDefinition, W as ArtifactLifecycleHookEvent } from "./index-DNI6UF9h.mjs";
1
+ import { G as ArtifactLifecycleHookRegistration$1, N as AnyArtifactKindDefinition, W as ArtifactLifecycleHookEvent } from "./index-I5a37JCm.mjs";
2
2
  import { s as AdapterProviderAuth$1 } from "./adapter-binding-CATvmGuz.mjs";
3
3
  import { i as ExtensionService$1, n as NodeExtensionContext$1, t as ExtensionContext$1 } from "./extension-context-QmFuHdq5.mjs";
4
4
  import { t as ExtensionAutomationTriggersContribution } from "./contribution-CUHLVLsT.mjs";
5
- import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-D3zUBTPc.mjs";
5
+ import { n as ExtensionTransitionRulesContribution, t as ExtensionTransitionActionsContribution, v as WorkflowBlockCollection$1 } from "./transition-DxsrTsn4.mjs";
6
6
  import { E as ClientDefinition$1, Q as VersionLiteral$1, et as VersionRange, f as ExtensionClientHookResponsesContribution } from "./hook-responses-9Ywsqzzq.mjs";
7
7
  import { c as ProviderDefinitionInput$1, r as ProtocolId$1 } from "./definition-BrgzUuFk.mjs";
8
8
  import { t as RequiredTimeoutConfig } from "./index-l01zsChf.mjs";
9
- import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-DcxBYlPA.mjs";
10
- import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-CmwAJ8-5.mjs";
9
+ import { Qt as SESSION_EVENT_TYPES, bn as SessionMessage$1, i as MakaioSessionEvent$1 } from "./types-Czdm5op1.mjs";
10
+ import { D as EntityUIConfig$1, I as FormFieldProps } from "./index-CFI6FxC7.mjs";
11
11
  import { l as FacetNamespaceDefinition } from "./index-BuMsrli0.mjs";
12
12
  import { t as ExtensionReactionsContribution } from "./index-B0VO0rAl.mjs";
13
- import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-B0j9p5C0.mjs";
13
+ import { G as SurfaceBindingDefinition, p as ExtensionArtifactViewBuildersContribution } from "./view-builder-D-Wz_l_B.mjs";
14
14
  import { z } from "zod";
15
15
  import { MakaioBusLike, PayloadFilter, RegistrableBusNamespaceDefinition, SubjectSchema } from "@makaio/framework/core";
16
16
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -1,5 +1,5 @@
1
1
  import { i as CliContribution } from "./types-tyv0B605.mjs";
2
- import { c as ExtensionInfo } from "./index-6trZYnUP2.mjs";
2
+ import { c as ExtensionInfo } from "./index-8NdPPzUh2.mjs";
3
3
  import { r as WindowRegistry } from "./window-registry-Pcf35cac.mjs";
4
4
  import { IMakaioBus } from "@makaio/framework/bus";
5
5
  import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";