@makaio/framework 1.0.0-dev-1789034250920 → 1.0.0-dev-1789056466138

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 (93) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/claude/index.d.mts +36 -36
  3. package/dist/bootstrap-start-client-D7t7d9ty.mjs +1 -0
  4. package/dist/bus/index.mjs +1 -1
  5. package/dist/contracts/adapter/index.d.mts +2 -2
  6. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  7. package/dist/contracts/artifact/index.d.mts +2 -2
  8. package/dist/contracts/automation-trigger/index.d.mts +1 -1
  9. package/dist/contracts/capabilities/index.d.mts +1 -1
  10. package/dist/contracts/client/index.d.mts +2 -2
  11. package/dist/contracts/extension/index.d.mts +4 -4
  12. package/dist/contracts/facet/index.d.mts +1 -1
  13. package/dist/contracts/harness/index.d.mts +1 -1
  14. package/dist/contracts/index.d.mts +49 -49
  15. package/dist/contracts/index.mjs +1 -1
  16. package/dist/contracts/materialization/index.d.mts +2 -2
  17. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  18. package/dist/contracts/reaction/index.d.mts +1 -1
  19. package/dist/contracts/session/index.d.mts +2 -2
  20. package/dist/contracts/worker/index.d.mts +2 -2
  21. package/dist/contracts/worker/index.mjs +1 -1
  22. package/dist/contracts/workflow/index.d.mts +2 -2
  23. package/dist/{contribution-CejwVIb3.d.mts → contribution-BWanQHUz.d.mts} +1 -1
  24. package/dist/{extension-context-SrQpa_kp.d.mts → extension-context-BGNUn34r.d.mts} +3 -3
  25. package/dist/{hook-responses-E1gipXIp.d.mts → hook-responses-DVjMuGh9.d.mts} +1 -1
  26. package/dist/{index-MKNhvbfG.d.mts → index-BFzxlzEo.d.mts} +34 -34
  27. package/dist/{index-yapYXeah.d.mts → index-BLhNHkiK.d.mts} +8 -8
  28. package/dist/{index-DWlmiprx2.d.mts → index-BgKU1PuR2.d.mts} +1 -1
  29. package/dist/{index-B94tZHiU.d.mts → index-C1PsT7hg.d.mts} +241 -241
  30. package/dist/{index-BncQwKi-2.d.mts → index-CAURP-Tl2.d.mts} +37 -37
  31. package/dist/{index-CIl66QhT.d.mts → index-CEHu8n-p.d.mts} +6 -6
  32. package/dist/{index-D1rYHYPO.d.mts → index-CHs__lq_.d.mts} +9 -9
  33. package/dist/{index-BN0qpem12.d.mts → index-CK5GEXLB2.d.mts} +16 -16
  34. package/dist/{index-tCFckLG6.d.mts → index-CaOJpuAX.d.mts} +8 -8
  35. package/dist/{index-BTwMms1p.d.mts → index-Caai1zAG.d.mts} +1 -1
  36. package/dist/{index-BPrpnLRQ.d.mts → index-CrvTRZqh.d.mts} +4 -4
  37. package/dist/{index-0_Ao0hwU.d.mts → index-DCVMDEhl.d.mts} +19 -19
  38. package/dist/{index-6BDbhx3A2.d.mts → index-DO0QO0ux2.d.mts} +1 -1
  39. package/dist/{index-BeLI73yw2.d.mts → index-D__FyAg62.d.mts} +117 -5
  40. package/dist/{index-BFchykav.d.mts → index-Ddk-kjif.d.mts} +1 -1
  41. package/dist/{index-Cp9olTr7.d.mts → index-DhW9WHFS.d.mts} +6 -6
  42. package/dist/{index-DxUstDMY.d.mts → index-LRAmVQLj.d.mts} +277 -43
  43. package/dist/{index-DKq33gti.d.mts → index-WhgPewY4.d.mts} +33 -33
  44. package/dist/{index-BN2_TMtX.d.mts → index-fpGFhEmI.d.mts} +6 -6
  45. package/dist/kernel/extension/index.d.mts +1 -1
  46. package/dist/kernel/index.d.mts +2 -2
  47. package/dist/kernel/observability/index.d.mts +1 -1
  48. package/dist/{namespace-CZJQrexB.d.mts → namespace--mFdPlbu.d.mts} +18 -18
  49. package/dist/{namespace-CjFT0wBT.d.mts → namespace-CQPcYS-Q.d.mts} +2 -2
  50. package/dist/{namespace-BYBMtQUy.d.mts → namespace-TX9DlWiQ.d.mts} +4 -4
  51. package/dist/package.json +1 -1
  52. package/dist/runtime-node/index.d.mts +2 -2
  53. package/dist/runtime-node/index.mjs +21 -21
  54. package/dist/runtime-node/workflow-execution-bus-access.mjs +1 -1
  55. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  56. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  57. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  58. package/dist/{schemas-Ct0tTtkV.d.mts → schemas-BhOepTL5.d.mts} +8 -8
  59. package/dist/{schemas-DNUfTOJ0.d.mts → schemas-D9WJH6We.d.mts} +1 -1
  60. package/dist/{schemas-mTWvDwx9.d.mts → schemas-_NrySTmN.d.mts} +1 -1
  61. package/dist/services/adapter-runtime/index.d.mts +3 -3
  62. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  63. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  64. package/dist/services/context-rules/index.d.mts +3 -3
  65. package/dist/services/execution-target/index.d.mts +1 -1
  66. package/dist/services/filesystem/namespace.d.mts +6 -6
  67. package/dist/services/filesystem/schemas.d.mts +3 -3
  68. package/dist/services/harness/index.d.mts +3 -3
  69. package/dist/services/index.d.mts +21 -21
  70. package/dist/services/log-import/browser.d.mts +2 -2
  71. package/dist/services/log-import/index.d.mts +2 -2
  72. package/dist/services/log-import/log-import.d.mts +1 -1
  73. package/dist/services/log-import/namespace.d.mts +2 -2
  74. package/dist/services/log-import/schemas.d.mts +1 -1
  75. package/dist/services/session/index.d.mts +3 -3
  76. package/dist/services/session/messages/namespace.d.mts +1 -1
  77. package/dist/services/session/session-events/namespace.d.mts +1 -1
  78. package/dist/services/settings/namespace.d.mts +8 -8
  79. package/dist/services/subagent-template/index.d.mts +1 -1
  80. package/dist/services/subagent-template/schemas.d.mts +1 -1
  81. package/dist/{session-lineage-9_qwkjUq.d.mts → session-lineage-CoNs4WZy.d.mts} +1 -1
  82. package/dist/{transition-DNi6L7i2.d.mts → transition-D2VKNtv6.d.mts} +1 -1
  83. package/dist/{types-BeAxyCuU2.d.mts → types-DafDuOcH2.d.mts} +1 -1
  84. package/dist/{types-DXobLxrf.d.mts → types-DyXXIK4c.d.mts} +15 -15
  85. package/dist/{view-builder-B5gP9RnN.d.mts → view-builder-kbgjREYq.d.mts} +4 -4
  86. package/dist/worker-L8vWpbYa.mjs +1 -0
  87. package/dist/workflow-engine/index.d.mts +9 -9
  88. package/dist/workflow-worker-BDA-E_pm.mjs +2 -0
  89. package/package.json +1 -1
  90. package/dist/bootstrap-start-client-rW55mDI-.mjs +0 -1
  91. package/dist/worker-Cmme3rMM.mjs +0 -1
  92. package/dist/workflow-worker-BAO7pQpx.mjs +0 -2
  93. package/dist/{index-C4DMSFLE2.d.mts → index-D4FE3jHM2.d.mts} +6 -6
@@ -1,7 +1,7 @@
1
1
  import { r as ExtensionDiscovery } from "./extension-discovery-Dx118u_N.mjs";
2
2
  import { RegistrableBusNamespaceDefinition } from "@makaio/framework/core";
3
- import { ExecutionAttemptBootstrapStartRefusalReason, ExecutionAttemptInstruction, ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptOutcome, ExecutionAttemptRuntimeRegisterRefusalReason, ExecutionAttemptWorkspaceBinding, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, JsonValue, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerBootstrapCredentials, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionOutcome, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas, WorkspaceRequirement } from "@makaio/framework/contracts";
4
- import { BusTransport, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
3
+ import { ExecutionAttemptBootstrapStartRefusalReason, ExecutionAttemptControlReportResponse, ExecutionAttemptInstruction, ExecutionAttemptOperationAdmitRefusalReason, ExecutionAttemptOperationDelivery, ExecutionAttemptOperationKind, ExecutionAttemptOperationReceipt, ExecutionAttemptOutcome, ExecutionAttemptRuntimeRegisterRefusalReason, ExecutionAttemptWorkspaceBinding, ExtensionConfigProvider, IWorkerProvider, IWorkflowRunner, IWorkflowRunner as IWorkflowRunner$1, JsonValue, LoopGateHandler, MakaioNodeExtension, NormalizedWorkerCapabilities, OutcomeAckDecision, StationHandler, StepRunnerBusAuth, StepRunnerPlatformDefaults, TrayManifest, WorkerBootstrapCredentials, WorkerCapabilities, WorkerContributionManifest, WorkerContributionRef, WorkerDispatch, WorkerMaterializationSpec, WorkerProvisionOutcome, WorkerProvisionRequest, WorkerRequirements, WorkerRuntimeContext, WorkflowDefinition, WorkflowRunContext, WorkflowRunResult, WorkflowRunResult as WorkflowRunResult$1, WorkflowRunnerCompletion, WorkflowRunnerCompletion as WorkflowRunnerCompletion$1, WorkflowRunnerRunOptions, WorkflowWorkerConfig, WorkflowWorkerSource, WorkflowZodSchemas, WorkspaceRequirement } from "@makaio/framework/contracts";
4
+ import { BusTransport, IFilteredBus, IMakaioBus, SubjectTelemetryProjectorRegistry } from "@makaio/framework/bus";
5
5
  import { DispatchingAuth, HmacAuth, 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";
@@ -2150,16 +2150,40 @@ interface IsolatedWorkflowRuntime {
2150
2150
  declare function createIsolatedWorkflowRuntime(options: CreateIsolatedWorkflowRuntimeOptions): Promise<IsolatedWorkflowRuntime>;
2151
2151
  //#endregion
2152
2152
  //#region runtimes/node/src/workspace-preparation/setup-command.d.ts
2153
+ /**
2154
+ * Bounded fact about the Setup process group, recorded by the driver itself.
2155
+ * `exited`: the group closed on its own and quiescence of the whole group was proven.
2156
+ * `signalled-and-quiesced`: the driver signalled the group and proved it quiescent afterwards.
2157
+ * `signalled-unconfirmed`: the driver signalled the group but could not prove quiescence
2158
+ * (poll timed out, `ps` unavailable, or a signal failed) — never treat as a stop proof.
2159
+ * `unsignalled-unconfirmed`: no signal reached the group (all attempts were absent or EPERM)
2160
+ * and quiescence could not be proven either — the group state is entirely unknown.
2161
+ *
2162
+ * The driver records raw values only. Rendering a human-readable summary and
2163
+ * formatting the instant belong to whoever reports the fact, not to the driver:
2164
+ * one fact can be reported to several boundaries with different wording.
2165
+ */
2166
+ type SetupProcessGroupObservation = {
2167
+ readonly pid: number;
2168
+ readonly outcome: 'exited' | 'signalled-and-quiesced' | 'signalled-unconfirmed' | 'unsignalled-unconfirmed'; /** Why quiescence stayed unproven; absent whenever the outcome proves quiescence. */
2169
+ readonly cause?: 'poll-timeout' | 'ps-unavailable' | 'signal-error'; /** Instant the driver recorded this outcome. */
2170
+ readonly observedAt: Date;
2171
+ };
2153
2172
  /** Result of one bounded setup command, after its owned process group has stopped. */
2154
2173
  interface SetupCommandResult {
2155
2174
  readonly status: 'completed' | 'failed' | 'cancelled' | 'timed-out' | 'spawn-failed' | 'stop-failed';
2156
2175
  readonly exitCode: number | null;
2157
2176
  /** Generic diagnostics deliberately exclude command arguments and environment values. */
2158
2177
  readonly message?: string;
2178
+ /** Process-group observation, present exactly when a process was spawned. */
2179
+ readonly processGroup?: SetupProcessGroupObservation;
2159
2180
  }
2160
2181
  //#endregion
2161
2182
  //#region runtimes/node/src/workspace-preparation/workspace-preparation.d.ts
2162
- /** First failed setup command, or successful completion of the complete frozen recipe. */
2183
+ /**
2184
+ * First failed setup command, or successful completion of the complete frozen recipe.
2185
+ * Inherits `processGroup` from `SetupCommandResult` — present when a process was spawned.
2186
+ */
2163
2187
  interface WorkspaceSetupResult extends SetupCommandResult {
2164
2188
  readonly commandIndex?: number;
2165
2189
  }
@@ -2177,6 +2201,116 @@ interface LocalWorkspaceHandle {
2177
2201
  release(): Promise<void>;
2178
2202
  }
2179
2203
  //#endregion
2204
+ //#region runtimes/node/src/workflow-worker/attempt-control-conclusion.d.ts
2205
+ /** Operation kinds the control endpoint cares about. */
2206
+ type AdmittedOperationKind = Extract<ExecutionAttemptOperationKind, 'workspace-preparation' | 'workload-invocation'>;
2207
+ /**
2208
+ * What the runtime knows about the Setup process group of a concluded preparation.
2209
+ *
2210
+ * `'not-started'`: the operation concluded before any setup command ran, so no
2211
+ * process group ever existed under it.
2212
+ * `'no-spawn'`: setup ran and returned a result without a process group, which
2213
+ * the driver contract states exactly when no process was ever spawned — so
2214
+ * the absence of a live group is proven, not unknown.
2215
+ * `'no-observation'`: the driver threw before handing over any result, so it
2216
+ * supplied no process-group fact either way.
2217
+ */
2218
+ type SetupConclusion = 'not-started' | 'no-spawn' | 'no-observation' | SetupProcessGroupObservation;
2219
+ /**
2220
+ * The one terminal fact an admitted operation concludes with.
2221
+ *
2222
+ * Preparation carries its Setup process-group fact; a workload invocation has
2223
+ * no equivalent, because the generic adapter observes no process of its own.
2224
+ */
2225
+ type ConcludedOperation = {
2226
+ readonly kind: 'workspace-preparation';
2227
+ readonly operationId: string;
2228
+ readonly setup: SetupConclusion;
2229
+ } | {
2230
+ readonly kind: 'workload-invocation';
2231
+ readonly operationId: string;
2232
+ };
2233
+ /** Snapshot of observer state used for conclusion derivation. */
2234
+ interface AttemptControlState {
2235
+ /** Whether the authority has delivered a cancel to this endpoint. */
2236
+ readonly cancelReceived: boolean;
2237
+ /**
2238
+ * Whether the runtime is still waiting for an admission response.
2239
+ * While true, `admission-closed` is never a valid conclusion.
2240
+ */
2241
+ readonly admissionPending: boolean;
2242
+ /**
2243
+ * Whether an admission request reached a completed authority response. A
2244
+ * settled admission that admitted nothing closed this runtime out; an
2245
+ * unanswered one stays pending, because it may still occupy the attempt.
2246
+ */
2247
+ readonly admissionSettled: boolean;
2248
+ /** Reason the last settled admission was refused, or null if none was refused. */
2249
+ readonly admissionRefusalReason: ExecutionAttemptOperationAdmitRefusalReason | null;
2250
+ /** Last admitted mutating operation, or null if none. */
2251
+ readonly admittedOperation: {
2252
+ readonly kind: AdmittedOperationKind;
2253
+ readonly operationId: string;
2254
+ } | null;
2255
+ /** Terminal fact of the operation that concluded, or null while none has. */
2256
+ readonly conclusion: ConcludedOperation | null;
2257
+ /** Whether the runtime has signalled that no further transitions will occur. */
2258
+ readonly finished: boolean;
2259
+ }
2260
+ /**
2261
+ * Records runtime-local operation lifecycle events so the control endpoint
2262
+ * can derive an honest scoped conclusion after a cancel is received.
2263
+ *
2264
+ * The invocation path calls these methods as it moves through admission and
2265
+ * its operations. The observer never throws; it records state and triggers
2266
+ * conclusion derivation.
2267
+ */
2268
+ declare class AttemptOperationObserver {
2269
+ private readonly state;
2270
+ private readonly onUpdate;
2271
+ /**
2272
+ * @param onUpdate - Called after every state transition that may change the conclusion.
2273
+ */
2274
+ constructor(onUpdate: () => void);
2275
+ /** Signal that a cancel has been received (called by the delivery handler). */
2276
+ markCancelReceived(): void;
2277
+ /**
2278
+ * The runtime is waiting for an admission response; conclusion is deferred.
2279
+ * Call before sending `operation.admit`, and before {@link admissionSettled}.
2280
+ */
2281
+ admissionPending(): void;
2282
+ /**
2283
+ * An admission request reached a completed authority response.
2284
+ *
2285
+ * Any completed response settles the question of whether this runtime holds
2286
+ * an operation — a refusal for any reason means it does not. A transport
2287
+ * failure is not a settlement and must leave the admission pending.
2288
+ * @param refusalReason - Authority refusal reason, omitted when the operation was admitted.
2289
+ */
2290
+ admissionSettled(refusalReason?: ExecutionAttemptOperationAdmitRefusalReason): void;
2291
+ /**
2292
+ * An operation was admitted by the authority.
2293
+ * @param kind - `'workspace-preparation'` or `'workload-invocation'`.
2294
+ * @param operationId - Authority-assigned stable operation identifier.
2295
+ */
2296
+ operationAdmitted(kind: AdmittedOperationKind, operationId: string): void;
2297
+ /**
2298
+ * The admitted operation concluded, carrying its one terminal fact.
2299
+ * @param concluded - Operation identity and the setup fact it concluded with.
2300
+ */
2301
+ operationConcluded(concluded: ConcludedOperation): void;
2302
+ /**
2303
+ * The runtime has completed; no further transitions will occur.
2304
+ * Enables `admission-closed` when no mutating operation was ever admitted.
2305
+ */
2306
+ finished(): void;
2307
+ /**
2308
+ * Return an immutable snapshot suitable for derivation.
2309
+ * @returns Immutable copy of the current observer state.
2310
+ */
2311
+ snapshot(): AttemptControlState;
2312
+ }
2313
+ //#endregion
2180
2314
  //#region runtimes/node/src/workflow-worker/workload-invocation.d.ts
2181
2315
  /** One installed, versioned local executor for an opaque workload instruction. */
2182
2316
  interface InstalledWorkloadAdapter {
@@ -2247,6 +2381,11 @@ interface RunWorkloadInvocationOptions {
2247
2381
  readonly retry?: OutcomeSubmitRetryConfig;
2248
2382
  /** Local Workspace realization seam; defaults to the Node bind/create helper. */
2249
2383
  readonly preparation?: WorkloadInvocationPreparation;
2384
+ /**
2385
+ * Optional observer fed by the invocation path so the control endpoint can
2386
+ * derive an honest scoped conclusion after a cancel delivery.
2387
+ */
2388
+ readonly control?: AttemptOperationObserver;
2250
2389
  }
2251
2390
  /** Durable result visible after generic terminal-outcome acknowledgement. */
2252
2391
  interface WorkloadInvocationResult {
@@ -2511,6 +2650,31 @@ declare function loadWorkflowModules(source: Exclude<WorkflowWorkerSource, {
2511
2650
  declare function loadWorkflowModule(source: WorkflowWorkerSource): Promise<RuntimeLoadedWorkflow>;
2512
2651
  //#endregion
2513
2652
  //#region runtimes/node/src/workflow-worker/runtime-registration-client.d.ts
2653
+ /** Identity a fenced attempt endpoint filters and fences its deliveries with. */
2654
+ interface FencedAttemptEndpointIdentity {
2655
+ /** Attempt this runtime owns; the first half of the delivery filter. */
2656
+ readonly executionAttemptId: string;
2657
+ /** This runtime incarnation; the second half of the delivery filter. */
2658
+ readonly runtimeIncarnationId: string;
2659
+ /**
2660
+ * Generation this incarnation was accepted with, when already known.
2661
+ *
2662
+ * A fresh endpoint installed before registration leaves it out and learns
2663
+ * the generation through {@link FencedAttemptEndpoint.bindGeneration}.
2664
+ */
2665
+ readonly runtimeGeneration?: number;
2666
+ }
2667
+ /** The installed, generation-fenced endpoint of one runtime incarnation. */
2668
+ interface FencedAttemptEndpoint {
2669
+ /**
2670
+ * Fence later deliveries against the generation the authority accepted, and
2671
+ * release any delivery that deferred its answer until this generation existed.
2672
+ * @param runtimeGeneration - Generation returned by registration.
2673
+ */
2674
+ bindGeneration(runtimeGeneration: number): void;
2675
+ /** Remove the endpoint from its bus. Idempotent. */
2676
+ cleanup(): void;
2677
+ }
2514
2678
  /**
2515
2679
  * Operation kinds a runtime endpoint may be handed by the authority.
2516
2680
  *
@@ -2539,52 +2703,35 @@ type OperationDeliveryHandler = (delivery: ExecutionAttemptOperationDelivery) =>
2539
2703
  * does not know the instruction.
2540
2704
  */
2541
2705
  type OperationDeliveryHandlers = Partial<Record<DeliverableOperationKind, OperationDeliveryHandler>>;
2542
- /** Identity the delivery endpoint is installed for. */
2543
- interface OperationDeliveryEndpointIdentity {
2544
- /** Attempt this runtime owns; the first half of the delivery filter. */
2545
- readonly executionAttemptId: string;
2546
- /** This runtime incarnation; the second half of the delivery filter. */
2547
- readonly runtimeIncarnationId: string;
2548
- /**
2549
- * Generation this incarnation was accepted with, when already known.
2550
- *
2551
- * Set when the endpoint is re-installed on another bus after registration
2552
- * (the pre-composition → runtime bus handoff). A fresh endpoint installed
2553
- * before registration leaves it out and learns the generation through
2554
- * {@link OperationDeliveryEndpoint.bindGeneration}.
2555
- */
2556
- readonly runtimeGeneration?: number;
2557
- }
2558
- /** The installed delivery endpoint of one runtime incarnation. */
2559
- interface OperationDeliveryEndpoint {
2560
- /**
2561
- * Fence later deliveries against the generation the authority accepted.
2562
- *
2563
- * Called once registration returned. The probe needs no fence — it is
2564
- * addressed to this incarnation and arrives before the generation exists —
2565
- * but every other delivery is refused `stale-generation` unless it carries
2566
- * exactly this generation.
2567
- * @param runtimeGeneration - Generation returned by registration.
2568
- */
2569
- bindGeneration(runtimeGeneration: number): void;
2570
- /** Remove the endpoint from its bus. Idempotent. */
2571
- cleanup(): void;
2572
- }
2706
+ /**
2707
+ * Identity the delivery endpoint is installed for.
2708
+ *
2709
+ * `runtimeGeneration` is set when the endpoint is re-installed on another bus
2710
+ * after registration (the pre-composition → runtime bus handoff).
2711
+ */
2712
+ type OperationDeliveryEndpointIdentity = FencedAttemptEndpointIdentity;
2713
+ /**
2714
+ * The installed delivery endpoint of one runtime incarnation.
2715
+ *
2716
+ * The probe needs no fence — it is addressed to this incarnation and arrives
2717
+ * before the generation exists — but every other delivery is refused
2718
+ * `stale-generation` unless it carries exactly the bound generation.
2719
+ */
2720
+ type OperationDeliveryEndpoint = FencedAttemptEndpoint;
2573
2721
  /**
2574
2722
  * Install this runtime's responder for `execution-attempt.operation.deliver`.
2575
2723
  *
2576
2724
  * The subject is static and every live Worker Runtime subscribes to it, so the
2577
- * addressing is a payload filter on the runtime's own attempt and incarnation
2578
- * (`bus.withFilter({ executionAttemptId, runtimeIncarnationId })`, the same
2579
- * move the adapter session endpoints make in `adapters/core`). A delivery for
2580
- * another attempt — or for a newer incarnation of this attempt while this one
2581
- * is still connected — is a filter miss that returns undefined and
2582
- * auto-advances the dispatch chain to the next responder; it is not an error
2583
- * and this endpoint never sees it.
2725
+ * addressing is the attempt and incarnation payload filter
2726
+ * {@link installFencedAttemptEndpoint} applies (the same move the adapter
2727
+ * session endpoints make in `adapters/core`). A delivery for another attempt —
2728
+ * or for a newer incarnation of this attempt while this one is still connected
2729
+ * — is a filter miss that returns undefined and auto-advances the dispatch
2730
+ * chain to the next responder; it is not an error and this endpoint never sees it.
2584
2731
  *
2585
2732
  * The endpoint must exist before the runtime registers: the authority delivers
2586
2733
  * the bounded probe inside the registration request, and an unsubscribed
2587
- * runtime fails its own registration with `probe-failed`. The returned
2734
+ * runtime fails its own registration with `probe-failed`. The scaffold's
2588
2735
  * propagation await is what makes "before" true across a transport — the
2589
2736
  * subscription is visible to the authority when this resolves.
2590
2737
  * @param bus - Connected runtime bus the endpoint is installed on.
@@ -2757,4 +2904,91 @@ declare class BootstrapStartRefusedError extends Error {
2757
2904
  */
2758
2905
  declare function bootstrapWorkerRuntime(options: BootstrapWorkerRuntimeOptions): Promise<StartedWorkerRuntime>;
2759
2906
  //#endregion
2760
- export { WorkflowAttemptInstructionReader as $, InitializeNodeDatabaseOptions as $t, HeadlessWorkerExecutor as A, BootMakaioRuntimeOptions as At, WorkloadInvocationPreparation as B, WorkspaceRootResolver as Bt, loadWorkflowFromConfig as C, prepareAdapterRuntime as Cn, createWorkerBusAuth as Ct, HeadlessWorkerBootstrapCredentials as D, ThinWorkflowPiscinaRunnerOptions as Dt, HeadlessWorkerBootstrap as E, RuntimeLoadedWorkflow as Et, MaterializedWorkspace as F, UpstreamTelemetryBootOptions as Ft, IsolatedWorkflowRuntimeContext as G, computeFileDigest as Gt, runWorkloadInvocation as H, assertNoSymlinkEscape as Ht, runHeadlessWorkflowWorker as I, WorkflowRunnerBootOptions as It, createIsolatedWorkflowRuntime as J, verifyContribution as Jt, WorkflowRuntimeAuthorityConnector as K, materializeLocalDirectory as Kt, InstalledWorkloadAdapter as L, LocalDirectoryMaterializerOptions as Lt, HeadlessWorkerPostCommitObserver as M, MakaioRuntime as Mt, HeadlessWorkflowWorkerDeps as N, ServerTransportProvider as Nt, HeadlessWorkerBusConnector as O, WorkflowRunResult$1 as Ot, HeadlessWorkflowWorkerResult as P, TransportReadyInfo as Pt, PiscinaThinWorkflowProviderOptions as Q, DatabaseBootOptions as Qt, RunWorkloadInvocationOptions as R, MaterializationError as Rt, loadWorkflowModules as S, activateAdapterRuntimeIdentity as Sn, withWorkerBootstrapDeadline as St, LocalGitSourceOptions as T, IWorkflowRunner$1 as Tt, CreateIsolatedWorkflowRuntimeOptions as U, computeContributionPackageDigest as Ut, WorkloadInvocationResult as V, assertContainedIn as Vt, IsolatedWorkflowRuntime as W, computeDirectoryDigest as Wt, InProcessWorkflowRunnerOptions as X, WorkflowWorkerEntryResolverOptions as Xt, InProcessWorkflowRunner as Y, WorkflowWorkerEntryMode as Yt, PiscinaThinWorkflowProvider as Z, resolveWorkflowWorkerEntry as Zt, admitWorkflowRunOperation as _, createHonoRouteGraph as _n, createNodeWorkflowRunnerPackageOptions as _t, bootstrapWorkerRuntime as a, ShutdownStep as an, DELIVERED_DECISIONS as at, registerWorkerRuntime as b, PrepareAdapterRuntimeInput as bn, runWorkerBootstrapExchange as bt, DeliverableOperationKind as c, NodeFrameworkModuleResolver as cn, OutcomeSubmitPayload as ct, OperationDeliveryEndpointIdentity as d, HttpRouteGraphBuilder as dn, submitOutcomeWithAck as dt, InitializeNodeDatabaseResult as en, WorkflowLaunchResolver as et, OperationDeliveryHandler as f, createHttpRouteGraphBuilder as fn, WorkerRunner as ft, RuntimeRegistrationRefusedError as g, HonoRouteGraphOptions as gn, createNodeWorkflowRunner as gt, RegisterWorkerRuntimeOptions as h, HonoRouteGraph as hn, NodeWorkflowRunnerPackageOptions as ht, StartedWorkerRuntime as i, selectFrameworkCorePackages as in, AuthorityRequestDeliveryError as it, HeadlessWorkerMaterializer as j, CoreBootOptions as jt, HeadlessWorkerContributionLoader as k, BootCoordinatorSetupContext as kt, OperationAdmissionRefusedError as l, NoopFrameworkModuleResolver as ln, OutcomeSubmitRetryConfig as lt, RegisterAndAdmitWorkflowRunOptions as m, HttpRouteContribution as mn, CreateNodeWorkflowRunnerPackageOptionsParams as mt, BootstrapStartRefusedError as n, HostCapabilityDeclaration as nn, AttemptOutcomeDeliveryError as nt, AdmitWorkflowRunOperationOptions as o, BridgeBrowserOptions as on, OutcomeDeliveryError as ot, OperationDeliveryHandlers as p, HttpContributionPhase as pn, WorkerRunnerOptions as pt, WorkflowRuntimeContributionLoader as q, parseSriIntegrity as qt, BootstrapWorkerRuntimeOptions as r, normalizeNodeHostCapabilities as rn, AttemptOutcomeSubmitPayload as rt, AdmittedWorkflowRun as s, FrameworkModuleResolver as sn, OutcomeReconnect as st, BootstrapRuntimeConnection as t, initializeNodeDatabase as tn, createWorkflowLaunchResolver as tt, OperationDeliveryEndpoint as u, resolveFrameworkSpecifier as un, submitAttemptOutcomeWithAck as ut, installOperationDeliveryEndpoint as v, ActivateAdapterRuntimeIdentityInput as vn, BootstrapExchangeResult as vt, createLocalGitWorkspacePreparation as w, ThinWorkflowPiscinaRunner as wt, loadWorkflowModule as x, PreparedAdapterRuntime as xn, BootstrapDeadlineExceededError as xt, registerAndAdmitWorkflowRun as y, ActivatedAdapterRuntimeIdentity as yn, WorkerBootstrapExchangeOptions as yt, WorkloadControlBinding as z, ParsedSriIntegrity as zt };
2907
+ //#region runtimes/node/src/workflow-worker/attempt-control-client.d.ts
2908
+ /** Options for the report transport retried independently of the cancel signal. */
2909
+ type AttemptControlReportOptions = OutcomeSubmitOptions;
2910
+ /** Dependencies for the attempt control endpoint installer. */
2911
+ interface AttemptControlEndpointDeps {
2912
+ /** Retry and reconnect options for the `control.report` retrying transport. */
2913
+ readonly reportOptions?: AttemptControlReportOptions;
2914
+ /** Outer cancellation signal for endpoint installation only, not for report delivery. */
2915
+ readonly signal?: AbortSignal;
2916
+ /** Wall-clock supplier; defaults to `() => new Date()`. */
2917
+ readonly now?: () => Date;
2918
+ }
2919
+ /**
2920
+ * Identity the control endpoint is installed for.
2921
+ *
2922
+ * The same attempt, incarnation and optional accepted generation the operation
2923
+ * delivery endpoint is installed with; both are fenced the same way.
2924
+ */
2925
+ type AttemptControlEndpointIdentity = FencedAttemptEndpointIdentity;
2926
+ /** Last report delivery outcome recorded by the endpoint. */
2927
+ interface AttemptControlLastReport {
2928
+ /** Terminal delivery status. */
2929
+ readonly status: 'accepted' | 'duplicate' | 'refused' | 'error';
2930
+ /** Authority response when delivery succeeded or was refused. */
2931
+ readonly response?: ExecutionAttemptControlReportResponse;
2932
+ /** Transport-level error when delivery failed. */
2933
+ readonly error?: unknown;
2934
+ }
2935
+ /**
2936
+ * Handle returned by {@link installAttemptControlEndpoint} after
2937
+ * `waitForSubscriptionPropagation` confirms the subscription is visible.
2938
+ */
2939
+ interface InstalledAttemptControlEndpoint {
2940
+ /**
2941
+ * Bind the accepted runtime generation received from the registration RPC.
2942
+ *
2943
+ * No delivery passes the generation fence before this, and a delivery that
2944
+ * arrives while the registration RPC is still in flight defers its answer
2945
+ * until this is called rather than being refused as stale.
2946
+ * @param runtimeGeneration - Authority-assigned generation number.
2947
+ */
2948
+ bindGeneration(runtimeGeneration: number): void;
2949
+ /**
2950
+ * Remove the bus subscription. A later delivery is a filter miss and is
2951
+ * never answered by this endpoint.
2952
+ */
2953
+ cleanup(): void;
2954
+ /**
2955
+ * Effective cancel signal, aborted once the first delivery passes the fence
2956
+ * and the receipt is stored.
2957
+ */
2958
+ readonly signal: AbortSignal;
2959
+ /**
2960
+ * Observer the invocation path uses to record lifecycle transitions so
2961
+ * the endpoint can derive an honest scoped conclusion.
2962
+ */
2963
+ readonly observer: AttemptOperationObserver;
2964
+ /**
2965
+ * Await any in-flight `control.report` delivery. Resolves without
2966
+ * throwing; transport failure is recorded in {@link lastReport}.
2967
+ */
2968
+ settle(): Promise<void>;
2969
+ /** Last recorded report delivery outcome, useful for tests and logging. */
2970
+ readonly lastReport: AttemptControlLastReport | undefined;
2971
+ }
2972
+ /**
2973
+ * Install this runtime's responder for `execution-attempt.control.deliver`.
2974
+ *
2975
+ * The subject is static and filtered by `{ executionAttemptId, runtimeIncarnationId }`
2976
+ * on the runtime bus — the same fenced scaffold the operation delivery endpoint
2977
+ * uses. A delivery for another attempt or incarnation is a filter miss, never
2978
+ * seen here. See the trust-boundary note on
2979
+ * {@link installFencedAttemptEndpoint} for the gap that filter leaves open, and
2980
+ * for why it is wider on this subject than on `operation.deliver`.
2981
+ *
2982
+ * The endpoint must exist before the runtime registers so that the authority's
2983
+ * `reconcileAttemptCancellation` call can reach it. The scaffold's
2984
+ * `waitForSubscriptionPropagation` await is what makes "before" true across the
2985
+ * transport.
2986
+ * @param bus - Connected runtime bus authenticated as the attempt peer.
2987
+ * @param identity - Attempt and incarnation this runtime is registered against.
2988
+ * @param deps - Report options, installation signal, and wall-clock supplier.
2989
+ * @returns The installed endpoint with a bound generation, cancel signal, observer,
2990
+ * and `settle()` awaitable.
2991
+ */
2992
+ declare function installAttemptControlEndpoint(bus: IMakaioBus, identity: AttemptControlEndpointIdentity, deps?: AttemptControlEndpointDeps): Promise<InstalledAttemptControlEndpoint>;
2993
+ //#endregion
2994
+ export { WorkflowRuntimeAuthorityConnector as $, materializeLocalDirectory as $t, createLocalGitWorkspacePreparation as A, prepareAdapterRuntime as An, createWorkerBusAuth as At, HeadlessWorkflowWorkerResult as B, ServerTransportProvider as Bt, admitWorkflowRunOperation as C, HonoRouteGraphOptions as Cn, createNodeWorkflowRunner as Ct, loadWorkflowModule as D, PrepareAdapterRuntimeInput as Dn, runWorkerBootstrapExchange as Dt, registerWorkerRuntime as E, ActivatedAdapterRuntimeIdentity as En, WorkerBootstrapExchangeOptions as Et, HeadlessWorkerContributionLoader as F, WorkflowRunResult$1 as Ft, WorkloadControlBinding as G, MaterializationError as Gt, runHeadlessWorkflowWorker as H, UpstreamTelemetryBootOptions as Ht, HeadlessWorkerExecutor as I, BootCoordinatorSetupContext as It, runWorkloadInvocation as J, assertContainedIn as Jt, WorkloadInvocationPreparation as K, ParsedSriIntegrity as Kt, HeadlessWorkerMaterializer as L, BootMakaioRuntimeOptions as Lt, HeadlessWorkerBootstrap as M, IWorkflowRunner$1 as Mt, HeadlessWorkerBootstrapCredentials as N, RuntimeLoadedWorkflow as Nt, loadWorkflowModules as O, PreparedAdapterRuntime as On, BootstrapDeadlineExceededError as Ot, HeadlessWorkerBusConnector as P, ThinWorkflowPiscinaRunnerOptions as Pt, IsolatedWorkflowRuntimeContext as Q, computeFileDigest as Qt, HeadlessWorkerPostCommitObserver as R, CoreBootOptions as Rt, RuntimeRegistrationRefusedError as S, HonoRouteGraph as Sn, NodeWorkflowRunnerPackageOptions as St, registerAndAdmitWorkflowRun as T, ActivateAdapterRuntimeIdentityInput as Tn, BootstrapExchangeResult as Tt, InstalledWorkloadAdapter as U, WorkflowRunnerBootOptions as Ut, MaterializedWorkspace as V, TransportReadyInfo as Vt, RunWorkloadInvocationOptions as W, LocalDirectoryMaterializerOptions as Wt, CreateIsolatedWorkflowRuntimeOptions as X, computeContributionPackageDigest as Xt, SetupProcessGroupObservation as Y, assertNoSymlinkEscape as Yt, IsolatedWorkflowRuntime as Z, computeDirectoryDigest as Zt, OperationDeliveryEndpointIdentity as _, resolveFrameworkSpecifier as _n, submitAttemptOutcomeWithAck as _t, InstalledAttemptControlEndpoint as a, DatabaseBootOptions as an, PiscinaThinWorkflowProviderOptions as at, RegisterAndAdmitWorkflowRunOptions as b, HttpContributionPhase as bn, WorkerRunnerOptions as bt, BootstrapStartRefusedError as c, initializeNodeDatabase as cn, createWorkflowLaunchResolver as ct, bootstrapWorkerRuntime as d, selectFrameworkCorePackages as dn, AuthorityRequestDeliveryError as dt, parseSriIntegrity as en, WorkflowRuntimeContributionLoader as et, AdmitWorkflowRunOperationOptions as f, ShutdownStep as fn, DELIVERED_DECISIONS as ft, OperationDeliveryEndpoint as g, NoopFrameworkModuleResolver as gn, OutcomeSubmitRetryConfig as gt, OperationAdmissionRefusedError as h, NodeFrameworkModuleResolver as hn, OutcomeSubmitPayload as ht, AttemptControlReportOptions as i, resolveWorkflowWorkerEntry as in, PiscinaThinWorkflowProvider as it, LocalGitSourceOptions as j, ThinWorkflowPiscinaRunner as jt, loadWorkflowFromConfig as k, activateAdapterRuntimeIdentity as kn, withWorkerBootstrapDeadline as kt, BootstrapWorkerRuntimeOptions as l, HostCapabilityDeclaration as ln, AttemptOutcomeDeliveryError as lt, DeliverableOperationKind as m, FrameworkModuleResolver as mn, OutcomeReconnect as mt, AttemptControlEndpointIdentity as n, WorkflowWorkerEntryMode as nn, InProcessWorkflowRunner as nt, installAttemptControlEndpoint as o, InitializeNodeDatabaseOptions as on, WorkflowAttemptInstructionReader as ot, AdmittedWorkflowRun as p, BridgeBrowserOptions as pn, OutcomeDeliveryError as pt, WorkloadInvocationResult as q, WorkspaceRootResolver as qt, AttemptControlLastReport as r, WorkflowWorkerEntryResolverOptions as rn, InProcessWorkflowRunnerOptions as rt, BootstrapRuntimeConnection as s, InitializeNodeDatabaseResult as sn, WorkflowLaunchResolver as st, AttemptControlEndpointDeps as t, verifyContribution as tn, createIsolatedWorkflowRuntime as tt, StartedWorkerRuntime as u, normalizeNodeHostCapabilities as un, AttemptOutcomeSubmitPayload as ut, OperationDeliveryHandler as v, HttpRouteGraphBuilder as vn, submitOutcomeWithAck as vt, installOperationDeliveryEndpoint as w, createHonoRouteGraph as wn, createNodeWorkflowRunnerPackageOptions as wt, RegisterWorkerRuntimeOptions as x, HttpRouteContribution as xn, CreateNodeWorkflowRunnerPackageOptionsParams as xt, OperationDeliveryHandlers as y, createHttpRouteGraphBuilder as yn, WorkerRunner as yt, HeadlessWorkflowWorkerDeps as z, MakaioRuntime as zt };
@@ -1,4 +1,4 @@
1
- import { D as ClientDefinitionInput, E as ClientDefinition } from "./hook-responses-E1gipXIp.mjs";
1
+ import { D as ClientDefinitionInput, E as ClientDefinition } from "./hook-responses-DVjMuGh9.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -89,9 +89,9 @@ declare const ClientSchemas: {
89
89
  baseConfigDir: z.ZodOptional<z.ZodString>;
90
90
  projectDir: z.ZodOptional<z.ZodString>;
91
91
  configInheritance: z.ZodOptional<z.ZodEnum<{
92
- "auth-only": "auth-only";
93
- full: "full";
94
92
  empty: "empty";
93
+ full: "full";
94
+ "auth-only": "auth-only";
95
95
  }>>;
96
96
  }, z.core.$strip>;
97
97
  response: z.ZodObject<{
@@ -222,8 +222,8 @@ declare const ClientSchemas: {
222
222
  clientId: z.ZodString;
223
223
  source: z.ZodObject<{
224
224
  layer: z.ZodEnum<{
225
- supervisor: "supervisor";
226
225
  adapter: "adapter";
226
+ supervisor: "supervisor";
227
227
  "client-hook": "client-hook";
228
228
  statusline: "statusline";
229
229
  "cli-wrapper": "cli-wrapper";
@@ -263,8 +263,8 @@ declare const ClientSchemas: {
263
263
  }>;
264
264
  source: z.ZodObject<{
265
265
  layer: z.ZodEnum<{
266
- supervisor: "supervisor";
267
266
  adapter: "adapter";
267
+ supervisor: "supervisor";
268
268
  "client-hook": "client-hook";
269
269
  statusline: "statusline";
270
270
  "cli-wrapper": "cli-wrapper";
@@ -506,9 +506,9 @@ declare const ClientSchemas: {
506
506
  cwd: z.ZodOptional<z.ZodString>;
507
507
  machineId: z.ZodOptional<z.ZodString>;
508
508
  startMode: z.ZodOptional<z.ZodEnum<{
509
- fresh: "fresh";
510
- resume: "resume";
511
509
  fork: "fork";
510
+ resume: "resume";
511
+ fresh: "fresh";
512
512
  clear: "clear";
513
513
  compact: "compact";
514
514
  }>>;
@@ -1264,8 +1264,8 @@ type ClientVersionChanged = z.infer<typeof ClientVersionChangedSchema>;
1264
1264
  * - `'cli-wrapper'` — a thin CLI shim wrapping the client binary reported the signal
1265
1265
  */
1266
1266
  declare const ClientRuntimeSourceLayerSchema: z.ZodEnum<{
1267
- supervisor: "supervisor";
1268
1267
  adapter: "adapter";
1268
+ supervisor: "supervisor";
1269
1269
  "client-hook": "client-hook";
1270
1270
  statusline: "statusline";
1271
1271
  "cli-wrapper": "cli-wrapper";
@@ -1279,8 +1279,8 @@ type ClientRuntimeSourceLayer = z.infer<typeof ClientRuntimeSourceLayerSchema>;
1279
1279
  */
1280
1280
  declare const ClientRuntimeSourceSchema: z.ZodObject<{
1281
1281
  layer: z.ZodEnum<{
1282
- supervisor: "supervisor";
1283
1282
  adapter: "adapter";
1283
+ supervisor: "supervisor";
1284
1284
  "client-hook": "client-hook";
1285
1285
  statusline: "statusline";
1286
1286
  "cli-wrapper": "cli-wrapper";
@@ -1334,8 +1334,8 @@ declare const ClientRuntimeObserveSchema: {
1334
1334
  clientId: z.ZodString;
1335
1335
  source: z.ZodObject<{
1336
1336
  layer: z.ZodEnum<{
1337
- supervisor: "supervisor";
1338
1337
  adapter: "adapter";
1338
+ supervisor: "supervisor";
1339
1339
  "client-hook": "client-hook";
1340
1340
  statusline: "statusline";
1341
1341
  "cli-wrapper": "cli-wrapper";
@@ -1387,8 +1387,8 @@ declare const ClientRuntimeStartedSchema: z.ZodObject<{
1387
1387
  }>;
1388
1388
  source: z.ZodObject<{
1389
1389
  layer: z.ZodEnum<{
1390
- supervisor: "supervisor";
1391
1390
  adapter: "adapter";
1391
+ supervisor: "supervisor";
1392
1392
  "client-hook": "client-hook";
1393
1393
  statusline: "statusline";
1394
1394
  "cli-wrapper": "cli-wrapper";
@@ -1486,9 +1486,9 @@ type ClientSessionObservedBase = z.infer<typeof ClientSessionObservedBaseSchema>
1486
1486
  declare const CLIENT_SESSION_START_MODES: readonly ["fresh", "fork", "resume", "clear", "compact"];
1487
1487
  /** Zod schema for the client-reported session start mode. */
1488
1488
  declare const ClientSessionStartModeSchema: z.ZodEnum<{
1489
- fresh: "fresh";
1490
- resume: "resume";
1491
1489
  fork: "fork";
1490
+ resume: "resume";
1491
+ fresh: "fresh";
1492
1492
  clear: "clear";
1493
1493
  compact: "compact";
1494
1494
  }>;
@@ -1505,9 +1505,9 @@ declare const ClientSessionStartedSchema: z.ZodObject<{
1505
1505
  cwd: z.ZodOptional<z.ZodString>;
1506
1506
  machineId: z.ZodOptional<z.ZodString>;
1507
1507
  startMode: z.ZodOptional<z.ZodEnum<{
1508
- fresh: "fresh";
1509
- resume: "resume";
1510
1508
  fork: "fork";
1509
+ resume: "resume";
1510
+ fresh: "fresh";
1511
1511
  clear: "clear";
1512
1512
  compact: "compact";
1513
1513
  }>>;
@@ -1675,9 +1675,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1675
1675
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
1676
1676
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
1677
1677
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
1678
- "auth-only": "auth-only";
1679
- full: "full";
1680
1678
  empty: "empty";
1679
+ full: "full";
1680
+ "auth-only": "auth-only";
1681
1681
  }>>;
1682
1682
  }, _$zod_v4_core0.$strip>;
1683
1683
  response: _$zod.ZodObject<{
@@ -1808,8 +1808,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1808
1808
  clientId: _$zod.ZodString;
1809
1809
  source: _$zod.ZodObject<{
1810
1810
  layer: _$zod.ZodEnum<{
1811
- supervisor: "supervisor";
1812
1811
  adapter: "adapter";
1812
+ supervisor: "supervisor";
1813
1813
  "client-hook": "client-hook";
1814
1814
  statusline: "statusline";
1815
1815
  "cli-wrapper": "cli-wrapper";
@@ -1849,8 +1849,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1849
1849
  }>;
1850
1850
  source: _$zod.ZodObject<{
1851
1851
  layer: _$zod.ZodEnum<{
1852
- supervisor: "supervisor";
1853
1852
  adapter: "adapter";
1853
+ supervisor: "supervisor";
1854
1854
  "client-hook": "client-hook";
1855
1855
  statusline: "statusline";
1856
1856
  "cli-wrapper": "cli-wrapper";
@@ -2076,9 +2076,9 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2076
2076
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2077
2077
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2078
2078
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2079
- fresh: "fresh";
2080
- resume: "resume";
2081
2079
  fork: "fork";
2080
+ resume: "resume";
2081
+ fresh: "fresh";
2082
2082
  clear: "clear";
2083
2083
  compact: "compact";
2084
2084
  }>>;
@@ -2315,9 +2315,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2315
2315
  baseConfigDir: _$zod.ZodOptional<_$zod.ZodString>;
2316
2316
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2317
2317
  configInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
2318
- "auth-only": "auth-only";
2319
- full: "full";
2320
2318
  empty: "empty";
2319
+ full: "full";
2320
+ "auth-only": "auth-only";
2321
2321
  }>>;
2322
2322
  }, _$zod_v4_core0.$strip>;
2323
2323
  response: _$zod.ZodObject<{
@@ -2448,8 +2448,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2448
2448
  clientId: _$zod.ZodString;
2449
2449
  source: _$zod.ZodObject<{
2450
2450
  layer: _$zod.ZodEnum<{
2451
- supervisor: "supervisor";
2452
2451
  adapter: "adapter";
2452
+ supervisor: "supervisor";
2453
2453
  "client-hook": "client-hook";
2454
2454
  statusline: "statusline";
2455
2455
  "cli-wrapper": "cli-wrapper";
@@ -2489,8 +2489,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2489
2489
  }>;
2490
2490
  source: _$zod.ZodObject<{
2491
2491
  layer: _$zod.ZodEnum<{
2492
- supervisor: "supervisor";
2493
2492
  adapter: "adapter";
2493
+ supervisor: "supervisor";
2494
2494
  "client-hook": "client-hook";
2495
2495
  statusline: "statusline";
2496
2496
  "cli-wrapper": "cli-wrapper";
@@ -2716,9 +2716,9 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2716
2716
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2717
2717
  machineId: _$zod.ZodOptional<_$zod.ZodString>;
2718
2718
  startMode: _$zod.ZodOptional<_$zod.ZodEnum<{
2719
- fresh: "fresh";
2720
- resume: "resume";
2721
2719
  fork: "fork";
2720
+ resume: "resume";
2721
+ fresh: "fresh";
2722
2722
  clear: "clear";
2723
2723
  compact: "compact";
2724
2724
  }>>;
@@ -2978,9 +2978,9 @@ declare const SessionConfigEnvSchema: z.ZodRecord<z.ZodString, z.ZodString>;
2978
2978
  * Policy for materializing a session config directory from a base client config.
2979
2979
  */
2980
2980
  declare const SessionConfigInheritanceSchema: z.ZodEnum<{
2981
- "auth-only": "auth-only";
2982
- full: "full";
2983
2981
  empty: "empty";
2982
+ full: "full";
2983
+ "auth-only": "auth-only";
2984
2984
  }>;
2985
2985
  type SessionConfigInheritance = z.infer<typeof SessionConfigInheritanceSchema>;
2986
2986
  /**
@@ -3136,9 +3136,9 @@ declare const ClientSessionConfigSchemas: {
3136
3136
  baseConfigDir: z.ZodOptional<z.ZodString>;
3137
3137
  projectDir: z.ZodOptional<z.ZodString>;
3138
3138
  configInheritance: z.ZodOptional<z.ZodEnum<{
3139
- "auth-only": "auth-only";
3140
- full: "full";
3141
3139
  empty: "empty";
3140
+ full: "full";
3141
+ "auth-only": "auth-only";
3142
3142
  }>>;
3143
3143
  }, z.core.$strip>;
3144
3144
  response: z.ZodObject<{
@@ -3192,9 +3192,9 @@ declare const SessionConfigSetupRequestSchema: z.ZodObject<{
3192
3192
  win32: "win32";
3193
3193
  }>;
3194
3194
  configInheritance: z.ZodEnum<{
3195
- "auth-only": "auth-only";
3196
- full: "full";
3197
3195
  empty: "empty";
3196
+ full: "full";
3197
+ "auth-only": "auth-only";
3198
3198
  }>;
3199
3199
  }, z.core.$strip>;
3200
3200
  type SessionConfigSetupRequest = z.infer<typeof SessionConfigSetupRequestSchema>;