@makaio/framework 1.0.0-dev-1789148673705 → 1.0.0-dev-1789160791094

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 (60) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/artifact-B-PQO_TB.mjs +1 -0
  3. package/dist/bus/index.d.mts +41 -1
  4. package/dist/bus/index.mjs +1 -8
  5. package/dist/bus-DU_7GM0J.mjs +9 -0
  6. package/dist/contracts/artifact/index.d.mts +2 -2
  7. package/dist/contracts/artifact/index.mjs +1 -1
  8. package/dist/contracts/capabilities/index.d.mts +1 -1
  9. package/dist/contracts/client/index.d.mts +1 -1
  10. package/dist/contracts/extension/index.d.mts +2 -2
  11. package/dist/contracts/index.d.mts +12 -12
  12. package/dist/contracts/index.mjs +1 -1
  13. package/dist/contracts/materialization/index.d.mts +1 -1
  14. package/dist/contracts/session/index.d.mts +2 -2
  15. package/dist/contracts/worker/index.mjs +1 -1
  16. package/dist/contracts/workflow/index.d.mts +1 -1
  17. package/dist/contracts/workflow/index.mjs +1 -1
  18. package/dist/{index-Zf9Zayey2.d.mts → index-BUoIGZmF2.d.mts} +43 -43
  19. package/dist/{index-2YEh0vHQ.d.mts → index-Bt9YxVg5.d.mts} +12 -12
  20. package/dist/{index-OLGGmjgd.d.mts → index-CU9xmTkP.d.mts} +1 -1
  21. package/dist/{index-DKI-qw1F.d.mts → index-CdPWA8co.d.mts} +19 -19
  22. package/dist/{index-LFS-KagP.d.mts → index-DN2Odrnz.d.mts} +173 -6
  23. package/dist/{index-DC2C-u2k.d.mts → index-DhW9WHFS.d.mts} +1 -1
  24. package/dist/{index-Bk-hwMue.d.mts → index-KmZLl8Ne.d.mts} +3 -3
  25. package/dist/{index-DcfuHw2O.d.mts → index-WhgPewY4.d.mts} +6 -6
  26. package/dist/{namespace-Bw7YLQHw.d.mts → namespace-CvCk6Y9i.d.mts} +25 -25
  27. package/dist/{namespace-BHkEHrUG.d.mts → namespace-DyWNxLt1.d.mts} +6 -6
  28. package/dist/{namespace-BD4lgMfP.d.mts → namespace-TX9DlWiQ.d.mts} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{schema-CbmZYwEl.d.mts → schema-B098Jz9p.d.mts} +1 -1
  31. package/dist/{schemas-COQUToGQ.d.mts → schemas-BGcAiQE0.d.mts} +4 -4
  32. package/dist/{schemas-DYtUc2WA.d.mts → schemas-FkLOBJgq.d.mts} +4 -4
  33. package/dist/{schemas-DNvDh0eE2.d.mts → schemas-Fn-eeay32.d.mts} +7 -7
  34. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  35. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  36. package/dist/services/git/namespace.d.mts +2 -2
  37. package/dist/services/git/schemas.d.mts +2 -2
  38. package/dist/services/index.d.mts +16 -16
  39. package/dist/services/preferences/index.d.mts +2 -2
  40. package/dist/services/preferences/schemas.d.mts +1 -1
  41. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  42. package/dist/services/provider-context/index.d.mts +1 -1
  43. package/dist/services/session/index.d.mts +5 -5
  44. package/dist/services/session/messages/namespace.d.mts +1 -1
  45. package/dist/services/session/storage/namespace.d.mts +1 -1
  46. package/dist/services/session/storage/schema.d.mts +1 -1
  47. package/dist/{storage-namespace-DITavhRL.d.mts → storage-namespace-BUSNKZLw.d.mts} +10 -10
  48. package/dist/{types-BrD4l8JJ.d.mts → types-HFQQoeAz.d.mts} +11 -11
  49. package/dist/ui-kernel/index.d.mts +4 -4
  50. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  51. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  52. package/dist/{view-builder--qgYM35J.d.mts → view-builder-ADC1ng2t.d.mts} +1 -1
  53. package/dist/{worker-DHZKWcLx.mjs → worker-CrYtBGy1.mjs} +1 -1
  54. package/dist/workflow-engine/index.d.mts +15 -15
  55. package/dist/{workflow-D8uoSvcR.mjs → workflow-mCL6Xv-J.mjs} +1 -1
  56. package/package.json +1 -1
  57. package/dist/artifact-0LaQv515.mjs +0 -1
  58. package/dist/bus-CobBUqjo.mjs +0 -2
  59. package/dist/bus-Uy9C3TBM.mjs +0 -1
  60. package/dist/scoped-bus-DwVrmi_1.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  import { _ as ResolveNameResponseSchema, c as ResolveIdResponse, d as ResolveLiveIdentityRequestSchema, f as ResolveLiveIdentityResponse, g as ResolveNameResponse, h as ResolveNameRequestSchema, l as ResolveIdResponseSchema, m as ResolveNameRequest, o as ResolveIdRequest, p as ResolveLiveIdentityResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveLiveIdentityRequest } from "../schemas-D9WJH6We.mjs";
2
2
  import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-CQPcYS-Q.mjs";
3
3
  import { c as resolveDeterministicAdapterId, o as buildDeterministicAdapterId, r as RegisteredAdapterRuntimeIdentityHandlers, s as registerAdapterRuntimeIdentityHandlers, t as AdapterIdentityRegistry } from "../index-Caai1zAG.mjs";
4
- import { p as BindingRecord } from "../schemas-COQUToGQ.mjs";
4
+ import { p as BindingRecord } from "../schemas-BGcAiQE0.mjs";
5
5
  import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-D6JvwH-h.mjs";
6
6
  import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-CfNNUjVv.mjs";
7
7
  import { t as CapabilityService } from "../capability-service-DX3wLjdt.mjs";
@@ -15,15 +15,15 @@ import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from
15
15
  import { a as ExecutionTargetInputSchema, c as ExecutionTargetResolveRequest, d as ExecutionTargetSchemas, f as ExecutionTargetType, i as ExecutionTargetInput, l as ExecutionTargetResolveRequestSchema, m as LocalExecutionTargetSchema, n as ContainerLocalExecutionTargetSchema, o as ExecutionTargetListQuery, p as ExecutionTargetTypeSchema, r as ExecutionTarget, s as ExecutionTargetListQuerySchema, t as ContainerIsolatedExecutionTargetSchema, u as ExecutionTargetSchema } from "../schemas-DKy_XYjq.mjs";
16
16
  import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-Bivbsfms.mjs";
17
17
  import { A as ContainerRuntimeSchema, B as SpawnRequest, C as ContainerIsolatedSpawnRequest, D as ContainerLocalWorkflowSpawnRequest, E as ContainerLocalSpawnRequestSchema, F as ContainerState, G as StatusRequestSchema, H as SpawnResponse, I as ContainerStateSchema, J as StopRequest, K as StatusResponse, L as ContainerStopped, N as ContainerStarted, O as ContainerLocalWorkflowSpawnRequestSchema, P as ContainerStartedSchema, R as ContainerStoppedSchema, S as ContainerDestroyedSchema, T as ContainerLocalSpawnRequest, U as SpawnResponseSchema, V as SpawnRequestSchema, W as StatusRequest, X as StopResponse, Y as StopRequestSchema, Z as StopResponseSchema, a as DockerSubjects, b as ContainerCreatedSchema, i as DockerNamespace, k as ContainerRuntime, n as ContainerSpawnSubjects, q as StatusResponseSchema, t as ContainerSpawnNamespace, w as ContainerIsolatedSpawnRequestSchema, x as ContainerDestroyed, y as ContainerCreated } from "../index-fpGFhEmI.mjs";
18
- import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-DC2C-u2k.mjs";
18
+ import { $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Ft as registerMemoryAgentStorage, Gn as ISessionOrchestrator, Gt as assembleForkContext, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, It as registerDrizzleSessionStorage, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Lt as registerMemorySessionStorage, M as SelectTurn, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, Pt as registerDrizzleAgentStorage, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, Un as TurnContextEnricher, Ut as createSessionExtensionContext, Vn as extractTextContent, Vt as AgentStorageSubjects, Wn as AdapterRegistry, Wt as SessionBridge, _ as MakaioSessionConfig, _t as SessionPreviewMaps, an as registerResumeHandler, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, ft as InsertSessionEvent, g as MakaioSession, h as registerParentResolver, in as registerGetStatusCountsHandler, j as InsertTurn, k as registerMemoryMessageStorage, l as ContextAssemblyResult, ln as SessionContextWindowState, m as registerCompressLineageResolver, mt as sessionEvents, nn as resetBuiltInActionsRegistration, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, p as registerSpawningToolCallResolver, pt as SelectSessionEvent, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, rn as actionRegistry, rr as MakaioSessionService, s as buildSessionContext, sn as AgentContextState, tn as registerBuiltInActions, u as kindToBranchKind, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../index-DhW9WHFS.mjs";
19
19
  import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, T as TurnConfig, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, k as TurnResult, l as registerForkHandler, n as routeToAgents, p as SessionStartError, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities } from "../index-BXair-QK.mjs";
20
- import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-OLGGmjgd.mjs";
21
- import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-Bw7YLQHw.mjs";
22
- import { g as sessions, u as agents } from "../schema-CbmZYwEl.mjs";
20
+ import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../index-CU9xmTkP.mjs";
21
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-CvCk6Y9i.mjs";
22
+ import { g as sessions, u as agents } from "../schema-B098Jz9p.mjs";
23
23
  import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace--mFdPlbu.mjs";
24
24
  import { t as TurnStorageNamespace } from "../namespace-XUB3XnBK.mjs";
25
25
  import { n as TurnStorageSubjects } from "../namespace-C-4xI2rm.mjs";
26
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-BD4lgMfP.mjs";
26
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-TX9DlWiQ.mjs";
27
27
  import { v as ArtifactSchemaRegistry } from "../packages-Dj9Nul23.mjs";
28
28
  import { a as createToolContributionProcessor, c as ToolRegistryOptions, d as ToolsetPolicy, f as ToolsetPolicyProvider, l as ToolsWithToolsetsResult, o as ToolRegistry, s as ListToolsFilter, u as ToolsetInfo } from "../index-5KVPGsig.mjs";
29
29
  import { a as WORKFLOW_START_ACTION_TYPE, i as TransitionActionRegistry, n as TransitionPipelineService, r as TransitionRuleRegistry, t as createTransitionContributionProcessor } from "../index-DqS8eCAT.mjs";
@@ -33,8 +33,8 @@ import { a as TrayMenuGroupSchema, c as TrayMenuListEntry, d as TrayMenuSchemas,
33
33
  import { n as TrayMenuSubjects, t as TrayMenuNamespace } from "../namespace-CYYFqmtJ.mjs";
34
34
  import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModelOverrideSchema, _ as ModelRegistryGetLabModelsResponse, a as ModelRegistryService, b as ModelRegistryRefreshRequest, c as IModelRegistryFetcher, d as ModelRegistry, f as ModelRegistryCheckModelInProvidersRequest, g as ModelRegistryGetLabModelsRequest, h as ModelRegistryGetForProviderResponse, i as ModelRegistryProviderNotFoundError, l as ModelRegistryNamespace, m as ModelRegistryGetForProviderRequest, n as CachedRegistryFetcher, o as ModelRegistryServiceOptions, p as ModelRegistryCheckModelInProvidersResponse, r as FallbackRegistryFetcher, s as IModelRegistryCache, t as mergeModelMetadata, u as ModelRegistrySubjects, v as ModelRegistryGetProviderModelsRequest, w as ProviderModelOverride, x as ModelRegistryRefreshResponse, y as ModelRegistryGetProviderModelsResponse } from "../index-DxxORQny.mjs";
35
35
  import { a as InternalPendingRequest, c as SubagentServiceToken, d as SubagentFailureFinalizationError, f as SubagentFailureFinalizationErrorCode, i as InputResolver, l as createSubagentServicePackage, n as TrackOptions, o as SpawnOptions, p as SubagentService, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as subagentServicePackage } from "../index-C86rKLPD.mjs";
36
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DNvDh0eE2.mjs";
37
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-DITavhRL.mjs";
36
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-Fn-eeay32.mjs";
37
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-BUSNKZLw.mjs";
38
38
  import { _ as SubagentTemplateUpdate, a as SubagentTemplateInstance, c as SubagentTemplateInstanceStatusSchema, d as SubagentTemplateSettingsSchemas, f as SubagentTemplateSpawnRequest, g as SubagentTemplateSummarySchema, h as SubagentTemplateSummary, i as SubagentTemplateCreateSchema, l as SubagentTemplateKernelSchemas, m as SubagentTemplateSpawnedEventSchema, n as SubagentTemplateCompletedEventSchema, o as SubagentTemplateInstanceSchema, p as SubagentTemplateSpawnRequestSchema, r as SubagentTemplateCreate, s as SubagentTemplateInstanceStatus, t as SubagentTemplate, u as SubagentTemplateSchema, v as SubagentTemplateUpdateSchema } from "../schemas-Dt1YwXLN.mjs";
39
39
  import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-l1Rcc4mp.mjs";
40
40
  import * as _$zod from "zod";
@@ -1074,8 +1074,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1074
1074
  config: _$zod.ZodNullable<_$zod.ZodObject<{
1075
1075
  description: _$zod.ZodOptional<_$zod.ZodString>;
1076
1076
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1077
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1078
1077
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1078
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1079
1079
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1080
1080
  label: _$zod.ZodString;
1081
1081
  url: _$zod.ZodString;
@@ -1099,8 +1099,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1099
1099
  configs: _$zod.ZodArray<_$zod.ZodObject<{
1100
1100
  description: _$zod.ZodOptional<_$zod.ZodString>;
1101
1101
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1102
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
1103
1102
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1103
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
1104
1104
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1105
1105
  label: _$zod.ZodString;
1106
1106
  url: _$zod.ZodString;
@@ -2710,8 +2710,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2710
2710
  config: _$zod.ZodObject<{
2711
2711
  description: _$zod.ZodOptional<_$zod.ZodString>;
2712
2712
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
2713
- protocol: _$zod.ZodOptional<_$zod.ZodString>;
2714
2713
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
2714
+ protocol: _$zod.ZodOptional<_$zod.ZodString>;
2715
2715
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
2716
2716
  label: _$zod.ZodString;
2717
2717
  url: _$zod.ZodString;
@@ -6384,9 +6384,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6384
6384
  scope: _$zod.ZodString;
6385
6385
  context: _$zod.ZodOptional<_$zod.ZodString>;
6386
6386
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6387
+ mobile: "mobile";
6387
6388
  desktop: "desktop";
6388
6389
  tablet: "tablet";
6389
- mobile: "mobile";
6390
6390
  }>>;
6391
6391
  }, _$zod_v4_core0.$strip>;
6392
6392
  category: _$zod.ZodString;
@@ -6405,9 +6405,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6405
6405
  scope: _$zod.ZodString;
6406
6406
  context: _$zod.ZodOptional<_$zod.ZodString>;
6407
6407
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6408
+ mobile: "mobile";
6408
6409
  desktop: "desktop";
6409
6410
  tablet: "tablet";
6410
- mobile: "mobile";
6411
6411
  }>>;
6412
6412
  }, _$zod_v4_core0.$strip>;
6413
6413
  category: _$zod.ZodString;
@@ -6427,9 +6427,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6427
6427
  scope: _$zod.ZodString;
6428
6428
  context: _$zod.ZodOptional<_$zod.ZodString>;
6429
6429
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6430
+ mobile: "mobile";
6430
6431
  desktop: "desktop";
6431
6432
  tablet: "tablet";
6432
- mobile: "mobile";
6433
6433
  }>>;
6434
6434
  }, _$zod_v4_core0.$strip>;
6435
6435
  category: _$zod.ZodString;
@@ -6448,9 +6448,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6448
6448
  scope: _$zod.ZodOptional<_$zod.ZodString>;
6449
6449
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
6450
6450
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
6451
+ mobile: "mobile";
6451
6452
  desktop: "desktop";
6452
6453
  tablet: "tablet";
6453
- mobile: "mobile";
6454
6454
  }>>>;
6455
6455
  }, _$zod_v4_core0.$strip>>;
6456
6456
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6465,9 +6465,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6465
6465
  scope: _$zod.ZodString;
6466
6466
  context: _$zod.ZodOptional<_$zod.ZodString>;
6467
6467
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
6468
+ mobile: "mobile";
6468
6469
  desktop: "desktop";
6469
6470
  tablet: "tablet";
6470
- mobile: "mobile";
6471
6471
  }>>;
6472
6472
  }, _$zod_v4_core0.$strip>;
6473
6473
  category: _$zod.ZodString;
@@ -1,3 +1,3 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DNvDh0eE2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-DITavhRL.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-Fn-eeay32.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-BUSNKZLw.mjs";
3
3
  export { type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects };
@@ -1,2 +1,2 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DNvDh0eE2.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-Fn-eeay32.mjs";
2
2
  export { PreferenceItem, PreferenceItemSchema, PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesSchemas };
@@ -1,3 +1,3 @@
1
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-DNvDh0eE2.mjs";
2
- import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-DITavhRL.mjs";
1
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../../schemas-Fn-eeay32.mjs";
2
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../../storage-namespace-BUSNKZLw.mjs";
3
3
  export { PreferenceItem, PreferenceItemSchema, PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects };
@@ -1,2 +1,2 @@
1
- import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-OLGGmjgd.mjs";
1
+ import { a as activateProviderContext, c as RuntimeProviderContextResolutionErrorCode, i as ProviderContextActivationTransaction, l as resolveRuntimeProviderContext, n as ProviderContextActivationErrorCode, o as prepareProviderContextActivation, r as ProviderContextActivationRollbackError, s as RuntimeProviderContextResolutionError, t as ProviderContextActivationError } from "../../index-CU9xmTkP.mjs";
2
2
  export { ProviderContextActivationError, ProviderContextActivationErrorCode, ProviderContextActivationRollbackError, ProviderContextActivationTransaction, RuntimeProviderContextResolutionError, RuntimeProviderContextResolutionErrorCode, activateProviderContext, prepareProviderContextActivation, resolveRuntimeProviderContext };
@@ -1,10 +1,10 @@
1
- import { $ as IngestCompletedTurnResult, $n as runExclusiveStart, $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, An as FreshWithHistoryRecoveryPlan, At as SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, B as importCursorsDual, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dn as buildPlannedRecoveryContext, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Fn as recoveryPlanResumeTarget, Ft as registerMemoryAgentStorage, G as ObservedSessionIngestionPolicyInput, Gn as ISessionOrchestrator, Gt as assembleForkContext, H as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, In as StartReservationRequest, It as registerDrizzleSessionStorage, J as ObservedSessionIngestionService, Jn as assessClaimOwner, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, K as registerObservedSessionIngestionPolicyProvider, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Ln as reserveStartFor, Lt as registerMemorySessionStorage, M as SelectTurn, Mn as RecoveryPlan, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nn as planAgentRecovery, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, P as turnsDual, Pn as recoveryPlanRequiresHistory, Pt as registerDrizzleAgentStorage, Q as IngestCompletedTurnParams, Qn as peekInFlightStart, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, S as messageRoutingDual, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, U as ObservedSessionIngestionPolicyDecision, Un as TurnContextEnricher, Ut as createSessionExtensionContext, V as IObservedSessionIngestionPolicyProvider, Vn as extractTextContent, Vt as AgentStorageSubjects, W as ObservedSessionIngestionPolicyImportStatus, Wn as AdapterRegistry, Wt as SessionBridge, X as isTrackingStub, Xn as enqueueAgentSettle, Xt as SelectionRefusalContext, Y as isPolicyDiscoveredObservedSession, Yn as mintClaimToken, Yt as NamedSelectionInstance, Z as LogImportTriggerSubjects, Zn as InFlightStart, Zt as describeHalfNamedInstanceRefusal, _ as MakaioSessionConfig, _n as LeadTransition, _t as SessionPreviewMaps, a as resolveSessionResumeIdentity, an as registerResumeHandler, at as SessionUserMessageSentPayload, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, ct as emitSessionUserMessageSent, d as toSessionLineage, dn as resolveSelectionOwnedInstance, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, er as registerAdapterSessionMovementObserver, et as IngestTurnMessage, f as registerSessionDiscoveredHandler, fn as startLeadAgent, ft as InsertSessionEvent, g as MakaioSession, gn as LeadStartResult, gt as getSessionAncestorChain, h as registerParentResolver, hn as LeadStartRequest, ht as sessionEventsDual, i as SessionResumeIdentity, in as registerGetStatusCountsHandler, ir as MakaioSessionServiceOptions, it as SessionTurnStartedPayload, j as InsertTurn, jn as NativeResumeRecoveryPlan, jt as ownershipClaimTransactionLock, k as registerMemoryMessageStorage, kn as FRESH_WITH_HISTORY_RECOVERY_PLAN, kt as OwnershipClaimKey, l as ContextAssemblyResult, ln as SessionContextWindowState, lt as registerSessionLifecycleEventWriters, m as registerCompressLineageResolver, mn as LeadStartDispatchRequest, mt as sessionEvents, n as NativeLocalityIntent, nn as resetBuiltInActionsRegistration, nr as registerSessionOwnershipAuthority, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, ot as appendSessionLifecycleEvent, p as registerSpawningToolCallResolver, pn as LeadStartDispatch, pt as SelectSessionEvent, q as unregisterObservedSessionIngestionPolicyProvider, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, r as evaluateNativeLocality, rn as actionRegistry, rr as MakaioSessionService, rt as SessionLifecycleEventArgs, s as buildSessionContext, sn as AgentContextState, st as emitSessionTurnStarted, t as NativeLocalityInput, tn as registerBuiltInActions, tr as SessionOwnershipAuthorityDeps, tt as ingestCompletedTurn, u as kindToBranchKind, un as SelectionInstanceContext, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../../index-DC2C-u2k.mjs";
1
+ import { $ as IngestCompletedTurnResult, $n as runExclusiveStart, $t as resolveAdapterNameById, A as registerDrizzleMessageStorage, An as FreshWithHistoryRecoveryPlan, At as SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, B as importCursorsDual, Bn as resolveTargetAgents, Bt as AgentStorageNamespace, C as registerDrizzleMessageRoutingStorage, Cn as ensureAgentCwd, Ct as fetchAgentsBySession, D as SelectMessage, Dn as buildPlannedRecoveryContext, Dt as parseForkTransforms, E as InsertMessage, En as verifyAndRecoverAgents, Et as mapRowToSession, F as registerMemoryTurnStorage, Fn as recoveryPlanResumeTarget, Ft as registerMemoryAgentStorage, G as ObservedSessionIngestionPolicyInput, Gn as ISessionOrchestrator, Gt as assembleForkContext, H as OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, Hn as normalizeToBlocks, Ht as SessionExtensionContextImpl, I as registerDrizzleTurnStorage, In as StartReservationRequest, It as registerDrizzleSessionStorage, J as ObservedSessionIngestionService, Jn as assessClaimOwner, Jt as CONNECTOR_SWAP_DEFAULT_PIPELINE, K as registerObservedSessionIngestionPolicyProvider, Kn as SessionOrchestrator, Kt as FallbackRuntimeOptions, L as EmbeddingIndexManager, Ln as reserveStartFor, Lt as registerMemorySessionStorage, M as SelectTurn, Mn as RecoveryPlan, Mt as registerDrizzleSessionOwnershipStorage, N as turns, Nn as planAgentRecovery, Nt as registerMemorySessionOwnershipStorage, O as messages, On as buildRecoveryContext, Ot as registerFtsSearchHandler, P as turnsDual, Pn as recoveryPlanRequiresHistory, Pt as registerDrizzleAgentStorage, Q as IngestCompletedTurnParams, Qn as peekInFlightStart, Qt as normalizeSelectionString, R as registerDrizzleImportCursorStorage, Rn as findTurnByAgent, Rt as SessionStorageMemoryState, S as messageRoutingDual, Sn as buildRecoveryContextWithPipeline, St as SearchSessionRow, T as MessageRoutingSubjects, Tn as recoverAgent, Tt as fetchPreviewBySession, U as ObservedSessionIngestionPolicyDecision, Un as TurnContextEnricher, Ut as createSessionExtensionContext, V as IObservedSessionIngestionPolicyProvider, Vn as extractTextContent, Vt as AgentStorageSubjects, W as ObservedSessionIngestionPolicyImportStatus, Wn as AdapterRegistry, Wt as SessionBridge, X as isTrackingStub, Xn as enqueueAgentSettle, Xt as SelectionRefusalContext, Y as isPolicyDiscoveredObservedSession, Yn as mintClaimToken, Yt as NamedSelectionInstance, Z as LogImportTriggerSubjects, Zn as InFlightStart, Zt as describeHalfNamedInstanceRefusal, _ as MakaioSessionConfig, _n as LeadTransition, _t as SessionPreviewMaps, a as resolveSessionResumeIdentity, an as registerResumeHandler, at as SessionUserMessageSentPayload, b as SelectMessageRouting, bn as RecoveryConfig, bt as mapToSession, c as BuildContextOptions, cn as ContextWindowTrackerConfig, ct as emitSessionUserMessageSent, d as toSessionLineage, dn as resolveSelectionOwnedInstance, dt as registerMemorySessionEventStorage, en as registerListActionsHandler, er as registerAdapterSessionMovementObserver, et as IngestTurnMessage, f as registerSessionDiscoveredHandler, fn as startLeadAgent, ft as InsertSessionEvent, g as MakaioSession, gn as LeadStartResult, gt as getSessionAncestorChain, h as registerParentResolver, hn as LeadStartRequest, ht as sessionEventsDual, i as SessionResumeIdentity, in as registerGetStatusCountsHandler, ir as MakaioSessionServiceOptions, it as SessionTurnStartedPayload, j as InsertTurn, jn as NativeResumeRecoveryPlan, jt as ownershipClaimTransactionLock, k as registerMemoryMessageStorage, kn as FRESH_WITH_HISTORY_RECOVERY_PLAN, kt as OwnershipClaimKey, l as ContextAssemblyResult, ln as SessionContextWindowState, lt as registerSessionLifecycleEventWriters, m as registerCompressLineageResolver, mn as LeadStartDispatchRequest, mt as sessionEvents, n as NativeLocalityIntent, nn as resetBuiltInActionsRegistration, nr as registerSessionOwnershipAuthority, nt as EventTransform, o as getFullConversation, on as ContextWindowTracker, ot as appendSessionLifecycleEvent, p as registerSpawningToolCallResolver, pn as LeadStartDispatch, pt as SelectSessionEvent, q as unregisterObservedSessionIngestionPolicyProvider, qn as registerCoreSessionServiceHandlers, qt as pickFallbackRuntimeOptions, r as evaluateNativeLocality, rn as actionRegistry, rr as MakaioSessionService, rt as SessionLifecycleEventArgs, s as buildSessionContext, sn as AgentContextState, st as emitSessionTurnStarted, t as NativeLocalityInput, tn as registerBuiltInActions, tr as SessionOwnershipAuthorityDeps, tt as ingestCompletedTurn, u as kindToBranchKind, un as SelectionInstanceContext, ut as registerDrizzleSessionEventStorage, v as StartTurnOptions, vn as buildTurnInitiator, vt as fetchSessionPreviewMaps, w as MessageRoutingNamespace, wn as ensureAgentModel, wt as fetchMessageCountsBySession, x as messageRouting, xn as VerifiedAgents, xt as SearchFilters, y as InsertMessageRouting, yn as AgentRecoveryOutcome, yt as mapAgentsBySession, z as importCursors, zn as getOrCreateSession, zt as createSessionStorageMemoryState } from "../../index-DhW9WHFS.mjs";
2
2
  import { C as SessionTurnManager, D as TurnPairStateChange, E as TurnContext, O as TurnPairTerminalOutcome, S as resolveOwnedAdapterInstance, T as TurnConfig, _ as OwnedAdapterInstanceTarget, a as InFlightStartResolution, b as resolveExecutionTarget, c as registerMergeHandler, d as registerAttachHandler, f as registerAbandonHandler, g as OwnedAdapterInstance, h as MachineScopedAdapterInstance, i as refuseTotalDeferral, k as TurnResult, l as registerForkHandler, m as SessionStartFailureCode, n as routeToAgents, o as StartResolution, p as SessionStartError, r as admitFreshStartTargets, s as resolveInFlightStarts, t as routeToAgentsCore, u as registerCompressHandler, v as resolveAdapterId, w as Turn, x as resolveModelCapabilities, y as resolveAnnouncedAdapterInstance } from "../../index-BXair-QK.mjs";
3
- import { l as resolveRuntimeProviderContext } from "../../index-OLGGmjgd.mjs";
4
- import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-Bw7YLQHw.mjs";
5
- import { _ as sessionsDual, c as adapterSessionClaims, d as agentsDual, g as sessions, l as adapterSessionClaimsDual, u as agents } from "../../schema-CbmZYwEl.mjs";
3
+ import { l as resolveRuntimeProviderContext } from "../../index-CU9xmTkP.mjs";
4
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-CvCk6Y9i.mjs";
5
+ import { _ as sessionsDual, c as adapterSessionClaims, d as agentsDual, g as sessions, l as adapterSessionClaimsDual, u as agents } from "../../schema-B098Jz9p.mjs";
6
6
  import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace--mFdPlbu.mjs";
7
7
  import { t as TurnStorageNamespace } from "../../namespace-XUB3XnBK.mjs";
8
8
  import { n as TurnStorageSubjects } from "../../namespace-C-4xI2rm.mjs";
9
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-BD4lgMfP.mjs";
9
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-TX9DlWiQ.mjs";
10
10
  export { AdapterRegistry, AgentContextState, AgentRecoveryOutcome, AgentStorageNamespace, AgentStorageSubjects, BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, ContextAssemblyResult, ContextWindowTracker, ContextWindowTrackerConfig, EmbeddingIndexManager, EventTransform, FRESH_WITH_HISTORY_RECOVERY_PLAN, FallbackRuntimeOptions, FreshWithHistoryRecoveryPlan, IObservedSessionIngestionPolicyProvider, ISessionOrchestrator, InFlightStart, InFlightStartResolution, IngestCompletedTurnParams, IngestCompletedTurnResult, IngestTurnMessage, InsertMessage, InsertMessageRouting, InsertSessionEvent, InsertTurn, LeadStartDispatch, LeadStartDispatchRequest, LeadStartRequest, LeadStartResult, LeadTransition, LogImportTriggerSubjects, MachineScopedAdapterInstance, MakaioSession, MakaioSessionConfig, MakaioSessionService, MakaioSessionServiceOptions, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, NamedSelectionInstance, NativeLocalityInput, NativeLocalityIntent, NativeResumeRecoveryPlan, OBSERVED_SESSION_INGESTION_POLICY_CAPABILITY_ID, ObservedSessionIngestionPolicyDecision, ObservedSessionIngestionPolicyImportStatus, ObservedSessionIngestionPolicyInput, ObservedSessionIngestionService, OwnedAdapterInstance, OwnedAdapterInstanceTarget, OwnershipClaimKey, RecoveryConfig, RecoveryPlan, SESSION_OWNERSHIP_CLAIM_LOCK_NAMESPACE, SearchFilters, SearchSessionRow, SelectMessage, SelectMessageRouting, SelectSessionEvent, SelectTurn, SelectionInstanceContext, SelectionRefusalContext, SessionBridge, SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLifecycleEventArgs, SessionOrchestrator, SessionOwnershipAuthorityDeps, SessionPreviewMaps, SessionResumeIdentity, SessionStartError, SessionStartFailureCode, SessionStorageMemoryState, SessionStorageNamespace, SessionStorageSubjects, SessionTurnManager, SessionTurnStartedPayload, SessionUserMessageSentPayload, StartReservationRequest, StartResolution, StartTurnOptions, Turn, TurnConfig, TurnContext, TurnContextEnricher, TurnPairStateChange, TurnPairTerminalOutcome, TurnResult, TurnStorageNamespace, TurnStorageSubjects, VerifiedAgents, actionRegistry, adapterSessionClaims, adapterSessionClaimsDual, admitFreshStartTargets, agents, agentsDual, appendSessionLifecycleEvent, assembleForkContext, assessClaimOwner, buildPlannedRecoveryContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, createSessionExtensionContext, createSessionStorageMemoryState, describeHalfNamedInstanceRefusal, emitSessionTurnStarted, emitSessionUserMessageSent, enqueueAgentSettle, ensureAgentCwd, ensureAgentModel, evaluateNativeLocality, extractTextContent, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, getFullConversation, getOrCreateSession, getSessionAncestorChain, importCursors, importCursorsDual, ingestCompletedTurn, isPolicyDiscoveredObservedSession, isTrackingStub, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, messageRouting, messageRoutingDual, messages, mintClaimToken, normalizeSelectionString, normalizeToBlocks, ownershipClaimTransactionLock, parseForkTransforms, peekInFlightStart, pickFallbackRuntimeOptions, planAgentRecovery, recoverAgent, recoveryPlanRequiresHistory, recoveryPlanResumeTarget, refuseTotalDeferral, registerAbandonHandler, registerAdapterSessionMovementObserver, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionOwnershipStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionOwnershipStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerObservedSessionIngestionPolicyProvider, registerParentResolver, registerResumeHandler, registerSessionDiscoveredHandler, registerSessionLifecycleEventWriters, registerSessionOwnershipAuthority, registerSpawningToolCallResolver, reserveStartFor, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveAnnouncedAdapterInstance, resolveExecutionTarget, resolveInFlightStarts, resolveModelCapabilities, resolveOwnedAdapterInstance, resolveRuntimeProviderContext, resolveSelectionOwnedInstance, resolveSessionResumeIdentity, resolveTargetAgents, routeToAgents, routeToAgentsCore, runExclusiveStart, sessionEvents, sessionEventsDual, sessions, sessionsDual, startLeadAgent, toSessionLineage, turns, turnsDual, unregisterObservedSessionIngestionPolicyProvider, verifyAndRecoverAgents };
@@ -1,2 +1,2 @@
1
- import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-BD4lgMfP.mjs";
1
+ import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-TX9DlWiQ.mjs";
2
2
  export { MessagePageCursor, MessagePageCursorSchema, MessageStorageNamespace, MessageStorageSubjects };
@@ -1,2 +1,2 @@
1
- import { a as SessionWithPreview, i as SessionStorageSubjects, n as SessionPreviewDataSchema, o as SessionWithPreviewSchema, r as SessionStorageNamespace, t as SessionPreviewData } from "../../../namespace-Bw7YLQHw.mjs";
1
+ import { a as SessionWithPreview, i as SessionStorageSubjects, n as SessionPreviewDataSchema, o as SessionWithPreviewSchema, r as SessionStorageNamespace, t as SessionPreviewData } from "../../../namespace-CvCk6Y9i.mjs";
2
2
  export { SessionPreviewData, SessionPreviewDataSchema, SessionStorageNamespace, SessionStorageSubjects, SessionWithPreview, SessionWithPreviewSchema };
@@ -1,2 +1,2 @@
1
- import { _ as sessionsDual, a as SelectAgent, c as adapterSessionClaims, d as agentsDual, f as runtimeInstanceIncarnationCounters, g as sessions, h as runtimeInstancesDual, i as SelectAdapterSessionClaim, l as adapterSessionClaimsDual, m as runtimeInstances, n as InsertAgent, o as SelectRuntimeInstance, p as runtimeInstanceIncarnationCountersDual, r as InsertSession, s as SelectSession, t as InsertAdapterSessionClaim, u as agents } from "../../../schema-CbmZYwEl.mjs";
1
+ import { _ as sessionsDual, a as SelectAgent, c as adapterSessionClaims, d as agentsDual, f as runtimeInstanceIncarnationCounters, g as sessions, h as runtimeInstancesDual, i as SelectAdapterSessionClaim, l as adapterSessionClaimsDual, m as runtimeInstances, n as InsertAgent, o as SelectRuntimeInstance, p as runtimeInstanceIncarnationCountersDual, r as InsertSession, s as SelectSession, t as InsertAdapterSessionClaim, u as agents } from "../../../schema-B098Jz9p.mjs";
2
2
  export { InsertAdapterSessionClaim, InsertAgent, InsertSession, SelectAdapterSessionClaim, SelectAgent, SelectRuntimeInstance, SelectSession, adapterSessionClaims, adapterSessionClaimsDual, agents, agentsDual, runtimeInstanceIncarnationCounters, runtimeInstanceIncarnationCountersDual, runtimeInstances, runtimeInstancesDual, sessions, sessionsDual };
@@ -17,9 +17,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
17
17
  scope: _$zod.ZodString;
18
18
  context: _$zod.ZodOptional<_$zod.ZodString>;
19
19
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
20
+ mobile: "mobile";
20
21
  desktop: "desktop";
21
22
  tablet: "tablet";
22
- mobile: "mobile";
23
23
  }>>;
24
24
  }, _$zod_v4_core0.$strip>;
25
25
  category: _$zod.ZodString;
@@ -38,9 +38,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
38
38
  scope: _$zod.ZodString;
39
39
  context: _$zod.ZodOptional<_$zod.ZodString>;
40
40
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
41
+ mobile: "mobile";
41
42
  desktop: "desktop";
42
43
  tablet: "tablet";
43
- mobile: "mobile";
44
44
  }>>;
45
45
  }, _$zod_v4_core0.$strip>;
46
46
  category: _$zod.ZodString;
@@ -60,9 +60,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
60
60
  scope: _$zod.ZodString;
61
61
  context: _$zod.ZodOptional<_$zod.ZodString>;
62
62
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
63
+ mobile: "mobile";
63
64
  desktop: "desktop";
64
65
  tablet: "tablet";
65
- mobile: "mobile";
66
66
  }>>;
67
67
  }, _$zod_v4_core0.$strip>;
68
68
  category: _$zod.ZodString;
@@ -81,9 +81,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
81
81
  scope: _$zod.ZodOptional<_$zod.ZodString>;
82
82
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
83
83
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
84
+ mobile: "mobile";
84
85
  desktop: "desktop";
85
86
  tablet: "tablet";
86
- mobile: "mobile";
87
87
  }>>>;
88
88
  }, _$zod_v4_core0.$strip>>;
89
89
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -98,9 +98,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
98
98
  scope: _$zod.ZodString;
99
99
  context: _$zod.ZodOptional<_$zod.ZodString>;
100
100
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
101
+ mobile: "mobile";
101
102
  desktop: "desktop";
102
103
  tablet: "tablet";
103
- mobile: "mobile";
104
104
  }>>;
105
105
  }, _$zod_v4_core0.$strip>;
106
106
  category: _$zod.ZodString;
@@ -124,9 +124,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
124
124
  scope: _$zod.ZodString;
125
125
  context: _$zod.ZodOptional<_$zod.ZodString>;
126
126
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
127
+ mobile: "mobile";
127
128
  desktop: "desktop";
128
129
  tablet: "tablet";
129
- mobile: "mobile";
130
130
  }>>;
131
131
  }, _$zod_v4_core0.$strip>;
132
132
  category: _$zod.ZodString;
@@ -145,9 +145,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
145
145
  scope: _$zod.ZodString;
146
146
  context: _$zod.ZodOptional<_$zod.ZodString>;
147
147
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
148
+ mobile: "mobile";
148
149
  desktop: "desktop";
149
150
  tablet: "tablet";
150
- mobile: "mobile";
151
151
  }>>;
152
152
  }, _$zod_v4_core0.$strip>;
153
153
  category: _$zod.ZodString;
@@ -167,9 +167,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
167
167
  scope: _$zod.ZodString;
168
168
  context: _$zod.ZodOptional<_$zod.ZodString>;
169
169
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
170
+ mobile: "mobile";
170
171
  desktop: "desktop";
171
172
  tablet: "tablet";
172
- mobile: "mobile";
173
173
  }>>;
174
174
  }, _$zod_v4_core0.$strip>;
175
175
  category: _$zod.ZodString;
@@ -188,9 +188,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
188
188
  scope: _$zod.ZodOptional<_$zod.ZodString>;
189
189
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
190
190
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
191
+ mobile: "mobile";
191
192
  desktop: "desktop";
192
193
  tablet: "tablet";
193
- mobile: "mobile";
194
194
  }>>>;
195
195
  }, _$zod_v4_core0.$strip>>;
196
196
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -205,9 +205,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
205
205
  scope: _$zod.ZodString;
206
206
  context: _$zod.ZodOptional<_$zod.ZodString>;
207
207
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
208
+ mobile: "mobile";
208
209
  desktop: "desktop";
209
210
  tablet: "tablet";
210
- mobile: "mobile";
211
211
  }>>;
212
212
  }, _$zod_v4_core0.$strip>;
213
213
  category: _$zod.ZodString;
@@ -212,8 +212,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
212
212
  status: z.ZodEnum<{
213
213
  closed: "closed";
214
214
  discovered: "discovered";
215
- archived: "archived";
216
215
  active: "active";
216
+ archived: "archived";
217
217
  }>;
218
218
  leadAgentId: z.ZodOptional<z.ZodString>;
219
219
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -360,8 +360,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
360
360
  status: z.ZodEnum<{
361
361
  closed: "closed";
362
362
  discovered: "discovered";
363
- archived: "archived";
364
363
  active: "active";
364
+ archived: "archived";
365
365
  }>;
366
366
  leadAgentId: z.ZodOptional<z.ZodString>;
367
367
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -582,8 +582,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
582
582
  status: z.ZodEnum<{
583
583
  closed: "closed";
584
584
  discovered: "discovered";
585
- archived: "archived";
586
585
  active: "active";
586
+ archived: "archived";
587
587
  }>;
588
588
  leadAgentId: z.ZodOptional<z.ZodString>;
589
589
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -10425,8 +10425,8 @@ declare const SessionSchemas: {
10425
10425
  status: _$zod.ZodEnum<{
10426
10426
  closed: "closed";
10427
10427
  discovered: "discovered";
10428
- archived: "archived";
10429
10428
  active: "active";
10429
+ archived: "archived";
10430
10430
  }>;
10431
10431
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
10432
10432
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -11097,8 +11097,8 @@ declare const SessionSchemas: {
11097
11097
  status: _$zod.ZodEnum<{
11098
11098
  closed: "closed";
11099
11099
  discovered: "discovered";
11100
- archived: "archived";
11101
11100
  active: "active";
11101
+ archived: "archived";
11102
11102
  }>;
11103
11103
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
11104
11104
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -12224,8 +12224,8 @@ declare const SessionSchemas: {
12224
12224
  all: "all";
12225
12225
  closed: "closed";
12226
12226
  discovered: "discovered";
12227
- archived: "archived";
12228
12227
  active: "active";
12228
+ archived: "archived";
12229
12229
  }>>;
12230
12230
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
12231
12231
  offset: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -12286,8 +12286,8 @@ declare const SessionSchemas: {
12286
12286
  status: _$zod.ZodEnum<{
12287
12287
  closed: "closed";
12288
12288
  discovered: "discovered";
12289
- archived: "archived";
12290
12289
  active: "active";
12290
+ archived: "archived";
12291
12291
  }>;
12292
12292
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
12293
12293
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -12385,8 +12385,8 @@ declare const SessionSchemas: {
12385
12385
  all: "all";
12386
12386
  closed: "closed";
12387
12387
  discovered: "discovered";
12388
- archived: "archived";
12389
12388
  active: "active";
12389
+ archived: "archived";
12390
12390
  }>>;
12391
12391
  isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
12392
12392
  }, _$zod_v4_core0.$strip>;
@@ -12444,8 +12444,8 @@ declare const SessionSchemas: {
12444
12444
  status: _$zod.ZodEnum<{
12445
12445
  closed: "closed";
12446
12446
  discovered: "discovered";
12447
- archived: "archived";
12448
12447
  active: "active";
12448
+ archived: "archived";
12449
12449
  }>;
12450
12450
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
12451
12451
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -12593,8 +12593,8 @@ declare const SessionSchemas: {
12593
12593
  status: _$zod.ZodEnum<{
12594
12594
  closed: "closed";
12595
12595
  discovered: "discovered";
12596
- archived: "archived";
12597
12596
  active: "active";
12597
+ archived: "archived";
12598
12598
  }>;
12599
12599
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
12600
12600
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -12856,8 +12856,8 @@ declare const SessionSchemas: {
12856
12856
  status: _$zod.ZodEnum<{
12857
12857
  closed: "closed";
12858
12858
  discovered: "discovered";
12859
- archived: "archived";
12860
12859
  active: "active";
12860
+ archived: "archived";
12861
12861
  }>;
12862
12862
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
12863
12863
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1,4 +1,4 @@
1
- import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-DYtUc2WA.mjs";
1
+ import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-FkLOBJgq.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -2309,8 +2309,8 @@ declare const UiSchemas: {
2309
2309
  ready: z.ZodObject<{
2310
2310
  surface: z.ZodEnum<{
2311
2311
  tray: "tray";
2312
- mobile: "mobile";
2313
2312
  web: "web";
2313
+ mobile: "mobile";
2314
2314
  electron: "electron";
2315
2315
  electrobun: "electrobun";
2316
2316
  }>;
@@ -2409,8 +2409,8 @@ declare const UiNamespace: _$_makaio_core0.BusNamespaceDefinition<"ui", {
2409
2409
  ready: _$zod.ZodObject<{
2410
2410
  surface: _$zod.ZodEnum<{
2411
2411
  tray: "tray";
2412
- mobile: "mobile";
2413
2412
  web: "web";
2413
+ mobile: "mobile";
2414
2414
  electron: "electron";
2415
2415
  electrobun: "electrobun";
2416
2416
  }>;
@@ -2450,8 +2450,8 @@ declare const UiSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjec
2450
2450
  ready: _$zod.ZodObject<{
2451
2451
  surface: _$zod.ZodEnum<{
2452
2452
  tray: "tray";
2453
- mobile: "mobile";
2454
2453
  web: "web";
2454
+ mobile: "mobile";
2455
2455
  electron: "electron";
2456
2456
  electrobun: "electrobun";
2457
2457
  }>;
@@ -15,8 +15,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
15
15
  readonly request: _$zod.ZodObject<{
16
16
  surface: _$zod.ZodOptional<_$zod.ZodEnum<{
17
17
  tray: "tray";
18
- mobile: "mobile";
19
18
  web: "web";
19
+ mobile: "mobile";
20
20
  electron: "electron";
21
21
  electrobun: "electrobun";
22
22
  }>>;
@@ -35,8 +35,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
35
35
  level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
36
36
  surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
37
37
  tray: "tray";
38
- mobile: "mobile";
39
38
  web: "web";
39
+ mobile: "mobile";
40
40
  electron: "electron";
41
41
  electrobun: "electrobun";
42
42
  }>>]>>;
@@ -55,8 +55,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
55
55
  readonly request: _$zod.ZodObject<{
56
56
  surface: _$zod.ZodOptional<_$zod.ZodEnum<{
57
57
  tray: "tray";
58
- mobile: "mobile";
59
58
  web: "web";
59
+ mobile: "mobile";
60
60
  electron: "electron";
61
61
  electrobun: "electrobun";
62
62
  }>>;
@@ -75,8 +75,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
75
75
  level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
76
76
  surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
77
77
  tray: "tray";
78
- mobile: "mobile";
79
78
  web: "web";
79
+ mobile: "mobile";
80
80
  electron: "electron";
81
81
  electrobun: "electrobun";
82
82
  }>>]>>;
@@ -1,2 +1,2 @@
1
- import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-DYtUc2WA.mjs";
1
+ import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-FkLOBJgq.mjs";
2
2
  export { PageMetadata, PageSchemas, PageSurfaceConfig, SurfaceCapability, SurfaceCapabilitySchema, SurfaceDeclaration, SurfaceId, SurfaceIdSchema, isPageVisibleOnSurface };
@@ -134,8 +134,8 @@ type ProjectedField = z.infer<typeof ProjectedFieldSchema>;
134
134
  declare const ArtifactProjectionPolicySchema: z.ZodObject<{
135
135
  mode: z.ZodEnum<{
136
136
  none: "none";
137
- surface: "surface";
138
137
  comment: "comment";
138
+ surface: "surface";
139
139
  }>;
140
140
  defaultRole: z.ZodOptional<z.ZodEnum<{
141
141
  artifact: "artifact";
@@ -1 +1 @@
1
- import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{r as n}from"./definitions-CyFaNG_c.mjs";import{A as r,M as i,_ as a,d as o,x as s}from"./worker-B0xwfo9-.mjs";import{G as c,H as l,V as u}from"./workflow-D8uoSvcR.mjs";import{z as d}from"zod";import{createBusNamespace as f}from"@makaio/framework/core";const p=d.object({requestKey:d.string().min(1),controlRevision:d.number().int().positive(),requestedAt:d.iso.datetime({offset:!0}),reason:d.string().optional()}).strict(),m=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),runtimeGeneration:d.number().int().positive(),controlRevision:d.number().int().positive(),requestKey:d.string().min(1)}).strict(),h=m.omit({requestKey:!0,controlRevision:!0}).extend({cancellation:p}),g=m.extend({receivedAt:d.iso.datetime({offset:!0})}),_=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`received`),receipt:g}).strict(),d.object({decision:d.literal(`refused`),reason:d.enum([`stale-generation`,`unsupported`])}).strict()]),v=d.object({status:d.enum([`achieved`,`unsupported`,`unconfirmed`]),boundary:d.enum([`admission-closed`,`setup-process-group`,`workload`]),evidence:o}).strict(),y=m.extend({operationId:d.string().min(1).optional(),conclusion:v}),b=d.enum([`not-found`,`cancel-mismatch`,`stale-generation`,`operation-mismatch`,`conflict`]),x=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`)}).strict(),d.object({decision:d.literal(`duplicate`)}).strict(),d.object({decision:d.literal(`refused`),reason:b}).strict()]),S=d.string().min(1),ee=S.refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e)&&!e.split(`/`).includes(`..`),{message:`Source paths must be workspace-relative and may not traverse outside the workspace`}),C=d.object({command:S,args:d.array(d.string()),env:d.record(d.string(),d.string()),timeoutMs:d.number().int().positive()}).strict(),w=d.object({provisioning:d.enum([`bind`,`create`]),custody:d.enum([`external`,`disposable`]),sourceRoots:d.array(d.object({id:S,path:ee,source:d.object({kind:S,input:t}).strict().optional()}).strict()),setup:d.array(C)}).strict(),T=d.object({required:d.array(d.enum([`source-state`,`diagnostics`,`workspace-state`,`live-state`]))}).strict(),E=d.object({id:S,revision:S,workload:d.object({kind:S,version:S,input:t}).strict(),workspace:w.optional(),preservation:T}).strict(),D=d.object({workspaceRoot:S,sourceRoots:d.array(d.object({id:S,path:S}).strict())}).strict(),O=d.object({kind:d.literal(`workspace-prepared`),binding:D}).strict(),k=d.discriminatedUnion(`kind`,[d.object({kind:d.literal(`technical-failure`),stage:d.enum([`startup`,`workspace-preparation`,`workload-invocation`]),message:d.string().min(1).max(8192)}).strict(),d.object({kind:d.literal(`workload-result`),result:t}).strict(),d.object({kind:d.literal(`cancelled`),reason:d.string().min(1).max(8192).optional()}).strict()]),A=d.enum([`runtime-probe`,`workflow-run`,`workspace-preparation`,`workload-invocation`]),j=A.exclude([`runtime-probe`]),M=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),operationId:d.string().min(1),operationKind:A,runtimeGeneration:d.number().int().positive()}).strict(),N=d.object({receipt:d.enum([`completed`,`duplicate`,`refused`]),refusalReason:d.enum([`stale-generation`,`unknown-kind`]).optional()}).strict(),P=d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`probe-failed`]),F=e=>d.object({decision:d.literal(e),runtimeGeneration:d.number().int().positive()}).strict(),I=d.enum([`not-found`,`resolved`,`fenced`,`allocation-terminated`,`gate-closed`,`bootstrap-expired`]),L=d.object({executionAttemptId:d.string().min(1)}).strict(),R=d.discriminatedUnion(`status`,[d.object({status:d.literal(`permitted`)}).strict(),d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:I}).strict()]),z={"control.deliver":{request:h,response:_},"control.report":{request:y,response:x},"bootstrap.awaitStart":{request:L,response:R},"runtime.register":{request:d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1)}).strict(),response:d.discriminatedUnion(`decision`,[F(`ready`),F(`duplicate`),d.object({decision:d.literal(`refused`),runtimeGeneration:d.literal(0),refusalReason:P}).strict()])},"runtime.ready":d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),acceptedAt:d.string().min(1)}).strict(),"operation.admit":{request:d.object({executionAttemptId:d.string().min(1),operationKind:A,admissionKey:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.object({decision:d.enum([`admitted`,`duplicate`,`refused`]),operationId:d.string().min(1).optional(),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`gate-closed`,`not-ready`,`stale-generation`,`preparation-required`,`preparation-not-required`,`preparation-already-completed`]).optional()}).strict()},"operation.admitted":d.object({executionAttemptId:d.string().min(1),operationId:d.string().min(1),operationKind:j,runtimeGeneration:d.number().int().positive(),admittedAt:d.string().min(1)}).strict(),"operation.deliver":{request:M,response:N},"instruction.get":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`found`),instruction:E}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-ready`,`stale-generation`])}).strict()])},"operation.report":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1),result:O}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`),binding:D}).strict(),d.object({decision:d.literal(`duplicate`),binding:D}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`stale-generation`,`no-active-operation`,`operation-mismatch`,`preparation-not-required`,`binding-mismatch`,`conflict`])}).strict()])},"outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1).optional(),outcome:k}).strict().superRefine((e,t)=>{!e.operationId&&e.outcome.kind!==`cancelled`&&!(e.outcome.kind===`technical-failure`&&e.outcome.stage===`startup`)&&t.addIssue({code:`custom`,path:[`operationId`],message:`An admitted operation is required for this outcome`})}),response:d.object({decision:a}).strict()}},B=d.object({workerManifest:u,suspensionStrategy:i}).strict(),V=d.iso.datetime({offset:!0}),H=d.string().refine(e=>{let t=Date.parse(e);return Number.isFinite(t)&&(V.safeParse(e).success||new Date(t).toISOString()===e)},`Expected a representable ISO bootstrap deadline`),U=d.object({busUrl:d.string().min(1),busAuthSecret:d.string().min(1)}).strict(),W=d.object({status:d.literal(`granted`),credentials:U,runtimeEnv:d.record(n,d.string())}).strict(),G=d.enum([...I.options,`provider-mismatch`,`claim-expired`,`not-claimable`]),K=d.discriminatedUnion(`status`,[W,d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:G}).strict()]),q=d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),environment:d.string().min(1),metadata:e.optional()}),J=d.enum([`unavailable`,`refused`,`invalid-receipt`,`receipt-not-recorded`]),Y=q.extend({kind:J,detail:d.string().min(1),observedAt:d.iso.datetime({offset:!0})}),X=d.object({executionAttemptId:d.string().min(1),config:c,manifest:u.optional(),requirements:r.optional(),metadata:e.optional()}),Z=d.object({executionAttemptId:d.string().min(1),allocationRef:s}).strict(),Q={dispatch:{request:X,response:Z},"runtime.inputs.get":{request:d.object({executionAttemptId:d.string().min(1)}).strict(),response:d.object({runtimeInputs:B.nullable()}).strict()},"control.outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),result:l}).strict().superRefine((e,t)=>{e.result.executionId!==e.executionId&&t.addIssue({code:d.ZodIssueCode.custom,path:[`result`,`executionId`],message:`result.executionId must match executionId`})}),response:d.object({decision:a}).strict()},"control.bootstrap.claim":{request:d.object({executionId:d.string().min(1),executionAttemptId:d.string().min(1)}).strict(),response:K},"control.cancel-undelivered":Y,"lifecycle.provisioning":q,"lifecycle.booting":q,"lifecycle.ready":q,"lifecycle.busy":q,"lifecycle.completed":q,"lifecycle.failed":q.extend({error:d.string().min(1)}),"lifecycle.terminated":q.extend({reason:d.string().optional()}),"lifecycle.paused":q.extend({pausedAtGateId:d.string().min(1),pausedAtFrameId:d.string().min(1)})},te=`worker-bootstrap`,$=f(`worker`,Q),ne=$.subjects;export{C as A,z as C,D,O as E,h as F,g as I,b as L,v as M,m as N,T as O,_ as P,x as R,P as S,k as T,R as _,K as a,A as b,W as c,X as d,Z as f,L as g,j as h,G as i,p as j,w as k,J as l,B as m,$ as n,U as o,Q as p,ne as r,H as s,te as t,Y as u,I as v,E as w,N as x,M as y,y as z};
1
+ import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{r as n}from"./definitions-CyFaNG_c.mjs";import{A as r,M as i,_ as a,d as o,x as s}from"./worker-B0xwfo9-.mjs";import{G as c,H as l,V as u}from"./workflow-mCL6Xv-J.mjs";import{z as d}from"zod";import{createBusNamespace as f}from"@makaio/framework/core";const p=d.object({requestKey:d.string().min(1),controlRevision:d.number().int().positive(),requestedAt:d.iso.datetime({offset:!0}),reason:d.string().optional()}).strict(),m=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),runtimeGeneration:d.number().int().positive(),controlRevision:d.number().int().positive(),requestKey:d.string().min(1)}).strict(),h=m.omit({requestKey:!0,controlRevision:!0}).extend({cancellation:p}),g=m.extend({receivedAt:d.iso.datetime({offset:!0})}),_=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`received`),receipt:g}).strict(),d.object({decision:d.literal(`refused`),reason:d.enum([`stale-generation`,`unsupported`])}).strict()]),v=d.object({status:d.enum([`achieved`,`unsupported`,`unconfirmed`]),boundary:d.enum([`admission-closed`,`setup-process-group`,`workload`]),evidence:o}).strict(),y=m.extend({operationId:d.string().min(1).optional(),conclusion:v}),b=d.enum([`not-found`,`cancel-mismatch`,`stale-generation`,`operation-mismatch`,`conflict`]),x=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`)}).strict(),d.object({decision:d.literal(`duplicate`)}).strict(),d.object({decision:d.literal(`refused`),reason:b}).strict()]),S=d.string().min(1),ee=S.refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e)&&!e.split(`/`).includes(`..`),{message:`Source paths must be workspace-relative and may not traverse outside the workspace`}),C=d.object({command:S,args:d.array(d.string()),env:d.record(d.string(),d.string()),timeoutMs:d.number().int().positive()}).strict(),w=d.object({provisioning:d.enum([`bind`,`create`]),custody:d.enum([`external`,`disposable`]),sourceRoots:d.array(d.object({id:S,path:ee,source:d.object({kind:S,input:t}).strict().optional()}).strict()),setup:d.array(C)}).strict(),T=d.object({required:d.array(d.enum([`source-state`,`diagnostics`,`workspace-state`,`live-state`]))}).strict(),E=d.object({id:S,revision:S,workload:d.object({kind:S,version:S,input:t}).strict(),workspace:w.optional(),preservation:T}).strict(),D=d.object({workspaceRoot:S,sourceRoots:d.array(d.object({id:S,path:S}).strict())}).strict(),O=d.object({kind:d.literal(`workspace-prepared`),binding:D}).strict(),k=d.discriminatedUnion(`kind`,[d.object({kind:d.literal(`technical-failure`),stage:d.enum([`startup`,`workspace-preparation`,`workload-invocation`]),message:d.string().min(1).max(8192)}).strict(),d.object({kind:d.literal(`workload-result`),result:t}).strict(),d.object({kind:d.literal(`cancelled`),reason:d.string().min(1).max(8192).optional()}).strict()]),A=d.enum([`runtime-probe`,`workflow-run`,`workspace-preparation`,`workload-invocation`]),j=A.exclude([`runtime-probe`]),M=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),operationId:d.string().min(1),operationKind:A,runtimeGeneration:d.number().int().positive()}).strict(),N=d.object({receipt:d.enum([`completed`,`duplicate`,`refused`]),refusalReason:d.enum([`stale-generation`,`unknown-kind`]).optional()}).strict(),P=d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`probe-failed`]),F=e=>d.object({decision:d.literal(e),runtimeGeneration:d.number().int().positive()}).strict(),I=d.enum([`not-found`,`resolved`,`fenced`,`allocation-terminated`,`gate-closed`,`bootstrap-expired`]),L=d.object({executionAttemptId:d.string().min(1)}).strict(),R=d.discriminatedUnion(`status`,[d.object({status:d.literal(`permitted`)}).strict(),d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:I}).strict()]),z={"control.deliver":{request:h,response:_},"control.report":{request:y,response:x},"bootstrap.awaitStart":{request:L,response:R},"runtime.register":{request:d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1)}).strict(),response:d.discriminatedUnion(`decision`,[F(`ready`),F(`duplicate`),d.object({decision:d.literal(`refused`),runtimeGeneration:d.literal(0),refusalReason:P}).strict()])},"runtime.ready":d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),acceptedAt:d.string().min(1)}).strict(),"operation.admit":{request:d.object({executionAttemptId:d.string().min(1),operationKind:A,admissionKey:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.object({decision:d.enum([`admitted`,`duplicate`,`refused`]),operationId:d.string().min(1).optional(),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`gate-closed`,`not-ready`,`stale-generation`,`preparation-required`,`preparation-not-required`,`preparation-already-completed`]).optional()}).strict()},"operation.admitted":d.object({executionAttemptId:d.string().min(1),operationId:d.string().min(1),operationKind:j,runtimeGeneration:d.number().int().positive(),admittedAt:d.string().min(1)}).strict(),"operation.deliver":{request:M,response:N},"instruction.get":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`found`),instruction:E}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-ready`,`stale-generation`])}).strict()])},"operation.report":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1),result:O}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`),binding:D}).strict(),d.object({decision:d.literal(`duplicate`),binding:D}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`stale-generation`,`no-active-operation`,`operation-mismatch`,`preparation-not-required`,`binding-mismatch`,`conflict`])}).strict()])},"outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1).optional(),outcome:k}).strict().superRefine((e,t)=>{!e.operationId&&e.outcome.kind!==`cancelled`&&!(e.outcome.kind===`technical-failure`&&e.outcome.stage===`startup`)&&t.addIssue({code:`custom`,path:[`operationId`],message:`An admitted operation is required for this outcome`})}),response:d.object({decision:a}).strict()}},B=d.object({workerManifest:u,suspensionStrategy:i}).strict(),V=d.iso.datetime({offset:!0}),H=d.string().refine(e=>{let t=Date.parse(e);return Number.isFinite(t)&&(V.safeParse(e).success||new Date(t).toISOString()===e)},`Expected a representable ISO bootstrap deadline`),U=d.object({busUrl:d.string().min(1),busAuthSecret:d.string().min(1)}).strict(),W=d.object({status:d.literal(`granted`),credentials:U,runtimeEnv:d.record(n,d.string())}).strict(),G=d.enum([...I.options,`provider-mismatch`,`claim-expired`,`not-claimable`]),K=d.discriminatedUnion(`status`,[W,d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:G}).strict()]),q=d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),environment:d.string().min(1),metadata:e.optional()}),J=d.enum([`unavailable`,`refused`,`invalid-receipt`,`receipt-not-recorded`]),Y=q.extend({kind:J,detail:d.string().min(1),observedAt:d.iso.datetime({offset:!0})}),X=d.object({executionAttemptId:d.string().min(1),config:c,manifest:u.optional(),requirements:r.optional(),metadata:e.optional()}),Z=d.object({executionAttemptId:d.string().min(1),allocationRef:s}).strict(),Q={dispatch:{request:X,response:Z},"runtime.inputs.get":{request:d.object({executionAttemptId:d.string().min(1)}).strict(),response:d.object({runtimeInputs:B.nullable()}).strict()},"control.outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),result:l}).strict().superRefine((e,t)=>{e.result.executionId!==e.executionId&&t.addIssue({code:d.ZodIssueCode.custom,path:[`result`,`executionId`],message:`result.executionId must match executionId`})}),response:d.object({decision:a}).strict()},"control.bootstrap.claim":{request:d.object({executionId:d.string().min(1),executionAttemptId:d.string().min(1)}).strict(),response:K},"control.cancel-undelivered":Y,"lifecycle.provisioning":q,"lifecycle.booting":q,"lifecycle.ready":q,"lifecycle.busy":q,"lifecycle.completed":q,"lifecycle.failed":q.extend({error:d.string().min(1)}),"lifecycle.terminated":q.extend({reason:d.string().optional()}),"lifecycle.paused":q.extend({pausedAtGateId:d.string().min(1),pausedAtFrameId:d.string().min(1)})},te=`worker-bootstrap`,$=f(`worker`,Q),ne=$.subjects;export{C as A,z as C,D,O as E,h as F,g as I,b as L,v as M,m as N,T as O,_ as P,x as R,P as S,k as T,R as _,K as a,A as b,W as c,X as d,Z as f,L as g,j as h,G as i,p as j,w as k,J as l,B as m,$ as n,U as o,Q as p,ne as r,H as s,te as t,Y as u,I as v,E as w,N as x,M as y,y as z};