@makaio/framework 1.0.0-dev-1782138936821 → 1.0.0-dev-1783282710723

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 (117) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{account-identity-D5TUafYg.mjs → account-identity-C7Kx_ieU.mjs} +1 -1
  3. package/dist/{adapter-Deu9viD2.mjs → adapter-DaQqmKOJ.mjs} +1 -1
  4. package/dist/adapters/index.d.mts +1 -1
  5. package/dist/artifact-CGjnoyCC.mjs +1 -0
  6. package/dist/bus/index.d.mts +41 -3
  7. package/dist/bus/index.mjs +1 -1
  8. package/dist/bus-D-ioC0DE.mjs +1 -0
  9. package/dist/bus-rgUFuO2a.mjs +2 -0
  10. package/dist/{canonical-model-BM5WAnQW.mjs → canonical-model-DV-Z8gsb.mjs} +1 -1
  11. package/dist/{client-BO-0jTSV.mjs → client-BcfR-LJC.mjs} +1 -1
  12. package/dist/{compression-CXEHx0rS.mjs → compression-C5JAWdgZ.mjs} +1 -1
  13. package/dist/contracts/adapter/index.d.mts +1 -1
  14. package/dist/contracts/adapter/index.mjs +1 -1
  15. package/dist/contracts/artifact/index.d.mts +2 -2
  16. package/dist/contracts/artifact/index.mjs +1 -1
  17. package/dist/contracts/canonical-model/index.d.mts +1 -1
  18. package/dist/contracts/canonical-model/index.mjs +1 -1
  19. package/dist/contracts/client/index.d.mts +1 -1
  20. package/dist/contracts/client/index.mjs +1 -1
  21. package/dist/contracts/config/index.mjs +1 -1
  22. package/dist/contracts/extension/index.d.mts +3 -3
  23. package/dist/contracts/extension/index.mjs +1 -1
  24. package/dist/contracts/facet/index.d.mts +1 -1
  25. package/dist/contracts/harness/index.d.mts +1 -1
  26. package/dist/contracts/index.d.mts +100 -100
  27. package/dist/contracts/index.mjs +1 -1
  28. package/dist/contracts/materialization/index.d.mts +3 -3
  29. package/dist/contracts/materialization/index.mjs +1 -1
  30. package/dist/contracts/provider/index.mjs +1 -1
  31. package/dist/contracts/session/index.d.mts +2 -2
  32. package/dist/contracts/session/index.mjs +1 -1
  33. package/dist/contracts/shared/index.d.mts +1 -1
  34. package/dist/contracts/shared/index.mjs +1 -1
  35. package/dist/contracts/variant/index.d.mts +1 -1
  36. package/dist/contracts/workflow/index.d.mts +2 -2
  37. package/dist/contracts/workflow/index.mjs +1 -1
  38. package/dist/{definition-BJ_975aA.mjs → definition-C-GVz7uw.mjs} +1 -1
  39. package/dist/{definition-s9PIua2B.d.mts → definition-DFcxkf2i.d.mts} +1 -1
  40. package/dist/{extension-CfL70C5n.mjs → extension-BS_4BOeO.mjs} +1 -1
  41. package/dist/{index-BwGfdbI0.d.mts → index-2fK9iSHI.d.mts} +9 -9
  42. package/dist/{index-BN95duxC.d.mts → index-4eP9DRL_.d.mts} +4 -4
  43. package/dist/{index-DDrS0Axp.d.mts → index-9b2_jXxq.d.mts} +15 -15
  44. package/dist/{index-DTBQOCar.d.mts → index-BMbmoarE.d.mts} +16 -16
  45. package/dist/{index-C2jl1iE2.d.mts → index-Bh6lHiW4.d.mts} +24 -24
  46. package/dist/{index-JkIaFJoM.d.mts → index-CL2T6LVv.d.mts} +6 -6
  47. package/dist/{index-B08YYzYZ.d.mts → index-CTEsbp9H.d.mts} +25 -25
  48. package/dist/{index-DYw2AuNR.d.mts → index-CaOWqztb.d.mts} +1 -1
  49. package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
  50. package/dist/{index-Qd1Qom8M.d.mts → index-D6aAzr32.d.mts} +4 -4
  51. package/dist/{index-DXYFNGT9.d.mts → index-DLy-tc0L.d.mts} +53 -53
  52. package/dist/{index-Chtgizhn.d.mts → index-DdBRlm7m.d.mts} +57 -57
  53. package/dist/{index-ekpUAYVC.d.mts → index-Dg-y1mrq.d.mts} +827 -51
  54. package/dist/{index-CWDJFJGa.d.mts → index-GD-i3DW7.d.mts} +146 -146
  55. package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
  56. package/dist/{index-ByDySw3V.d.mts → index-WHUV7neB.d.mts} +10 -10
  57. package/dist/{index-CRmApyqn.d.mts → index-Y2r0Zvcm.d.mts} +8 -8
  58. package/dist/kernel/extension/index.d.mts +1 -1
  59. package/dist/kernel/index.d.mts +2 -2
  60. package/dist/kernel/observability/index.d.mts +1 -1
  61. package/dist/{materialization-DBXjSiBn.mjs → materialization-CUYxZCfk.mjs} +1 -1
  62. package/dist/{namespace-DuUCiVmK.d.mts → namespace-B4cV_pk3.d.mts} +6 -6
  63. package/dist/{namespace-DBGLCtoW.d.mts → namespace-CfvtDD_U.d.mts} +22 -22
  64. package/dist/{namespace-DXWpFdQH2.d.mts → namespace-D8P8Sxce2.d.mts} +2 -2
  65. package/dist/{namespace-CxzW0mIH.d.mts → namespace-DGAWYjbO.d.mts} +9 -9
  66. package/dist/{namespace-Bz0ORDns.d.mts → namespace-DXW-voCe.d.mts} +58 -58
  67. package/dist/node/transports/index.d.mts +8 -0
  68. package/dist/node/transports/index.mjs +2 -2
  69. package/dist/package.json +1 -1
  70. package/dist/{provider-context-DjSUpHSM.mjs → provider-context-CqMgPOWF.mjs} +1 -1
  71. package/dist/runtime-node/index.mjs +1 -1
  72. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  73. package/dist/{schema-Dky4zu9D.d.mts → schema-D1HrnvT7.d.mts} +2 -2
  74. package/dist/{schemas-7ncImjsM.d.mts → schemas-BemsLc_V.d.mts} +1 -1
  75. package/dist/{schemas-CynXJXJu.d.mts → schemas-CoFCV42v.d.mts} +22 -22
  76. package/dist/{schemas-CE1gbhxu.mjs → schemas-CuG17U3L.mjs} +1 -1
  77. package/dist/{schemas-Eq-lrXYz2.d.mts → schemas-D-9zNyAM2.d.mts} +5 -5
  78. package/dist/{schemas-CJ2JvA7d.d.mts → schemas-DMCGXlKa.d.mts} +4 -4
  79. package/dist/{schemas-bfhY9W6A.mjs → schemas-uID59wR8.mjs} +1 -1
  80. package/dist/scoped-bus-CZId-Df8.mjs +1 -0
  81. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  82. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  83. package/dist/services/agent-runtime/index.d.mts +2 -2
  84. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  85. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  86. package/dist/services/execution-target/index.d.mts +1 -1
  87. package/dist/services/git/namespace.d.mts +4 -4
  88. package/dist/services/git/schemas.d.mts +3 -3
  89. package/dist/services/harness/index.d.mts +6 -6
  90. package/dist/services/index.d.mts +83 -40
  91. package/dist/services/index.mjs +1 -1
  92. package/dist/services/session/index.d.mts +4 -4
  93. package/dist/services/session/messages/namespace.d.mts +1 -1
  94. package/dist/services/session/storage/namespace.d.mts +1 -1
  95. package/dist/services/session/storage/schema.d.mts +1 -1
  96. package/dist/services/settings/namespace.d.mts +5 -5
  97. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  98. package/dist/services/subagent-template/index.d.mts +2 -2
  99. package/dist/services/subagent-template/namespace.d.mts +1 -1
  100. package/dist/services/subagent-template/schemas.d.mts +1 -1
  101. package/dist/{session-CpVSzgkZ.mjs → session-DH-ja8Ka.mjs} +1 -1
  102. package/dist/{shared-DpOEfD8F.mjs → shared-BVW-3Dhy.mjs} +1 -1
  103. package/dist/{transition-Bf-K6QGz.d.mts → transition-DnXibkhX.d.mts} +1 -1
  104. package/dist/{types-BolHvLpf.d.mts → types-Dur8EtpR.d.mts} +61 -61
  105. package/dist/ui-kernel/index.d.mts +1 -1
  106. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  107. package/dist/{workflow-BCKOJ4UC.mjs → workflow-BqH6ar-D.mjs} +1 -1
  108. package/dist/workflow-engine/index.d.mts +52 -52
  109. package/dist/workflow-worker-dH70EbjE.mjs +1 -0
  110. package/package.json +2 -2
  111. package/dist/artifact-B3npq1cy.mjs +0 -1
  112. package/dist/bus-BgodbPl9.mjs +0 -2
  113. package/dist/bus-HgaFcCZ1.mjs +0 -1
  114. package/dist/scoped-bus-H3xMYR0E.mjs +0 -1
  115. package/dist/workflow-worker-BIpYi6o7.mjs +0 -1
  116. /package/dist/{json-value-CmhSGMLv.mjs → json-value-DmU8ibo_.mjs} +0 -0
  117. /package/dist/{schemas-CR1Rripy.mjs → schemas-DlrQ0227.mjs} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { a as ResolveIdResponseSchema, c as ResolveNameResponse, i as ResolveIdResponse, l as ResolveNameResponseSchema, n as ResolveIdRequest, o as ResolveNameRequest, r as ResolveIdRequestSchema, s as ResolveNameRequestSchema, t as AdapterRuntimeSchemas } from "../schemas-DmGRSeIq.mjs";
2
2
  import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-B3ol3pc-.mjs";
3
3
  import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../index-D9-vOJvZ.mjs";
4
- import { _ as BindingRecord } from "../index-Qd1Qom8M.mjs";
5
- import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-CynXJXJu.mjs";
6
- import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-DBGLCtoW.mjs";
4
+ import { _ as BindingRecord } from "../index-D6aAzr32.mjs";
5
+ import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-CoFCV42v.mjs";
6
+ import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-CfvtDD_U.mjs";
7
7
  import { t as CapabilityService } from "../index-C4nStEdA.mjs";
8
8
  import { n as CodebaseSubjects, t as CodebaseNamespace } from "../namespace-CQ8uza7o.mjs";
9
9
  import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseChangedEvent } from "../schemas-DKncXGnb.mjs";
@@ -12,16 +12,16 @@ import { n as CompressionSubjects, t as CompressionNamespace } from "../namespac
12
12
  import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from "../types-Bo78h9e3.mjs";
13
13
  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-D4zaFE2p.mjs";
14
14
  import { n as ExecutionTargetSubjects, t as ExecutionTargetNamespace } from "../namespace-65uwTpbg.mjs";
15
- import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../index-mU2lnU7O.mjs";
16
- import { $ as fetchMessageCountsBySession, A as registerMemoryTurnStorage, At as RecoveryConfig, B as registerMemorySessionEventStorage, Bt as findTurnByAgent, C as messages, Ct as registerGetStatusCountsHandler, D as SelectTurn, Dt as ContextWindowTrackerConfig, E as InsertTurn, Et as AgentContextState, F as importCursorsDual, Ft as verifyAndRecoverAgents, Gt as TurnContextEnricher, H as SelectSessionEvent, Ht as resolveTargetAgents, I as EventTransform, It as buildRecoveryContext, J as mapAgentsBySession, Jt as SessionOrchestrator, K as SessionPreviewMaps, Kt as AdapterRegistry, L as SessionLogger, Lt as resolveAdapterId, M as EmbeddingIndexManager, Mt as ensureAgentCwd, N as registerDrizzleImportCursorStorage, Nt as ensureAgentModel, O as turns, Ot as SessionContextWindowState, P as importCursors, Pt as recoverAgent, Q as fetchAgentsBySession, R as SessionLoggerOptions, Rt as resolveExecutionTarget, S as SelectMessage, St as actionRegistry, T as registerDrizzleMessageStorage, Tt as ContextWindowTracker, U as sessionEvents, Ut as extractTextContent, V as InsertSessionEvent, Vt as getOrCreateSession, W as sessionEventsDual, Wt as normalizeToBlocks, X as SearchFilters, Xt as MakaioSessionService, Y as mapToSession, Yt as registerCoreSessionServiceHandlers, Z as SearchSessionRow, _ as messageRoutingDual, _t as normalizeSelectionString, a as kindToBranchKind, at as registerMemoryAgentStorage, b as MessageRoutingSubjects, bt as registerBuiltInActions, c as registerSpawningToolCallResolver, ct as AgentStorageNamespace, d as MakaioSession, dt as createSessionExtensionContext, et as fetchPreviewBySession, f as MakaioSessionConfig, ft as SessionBridge, g as messageRouting, gt as CONNECTOR_SWAP_DEFAULT_PIPELINE, h as SelectMessageRouting, ht as pickFallbackRuntimeOptions, i as ContextAssemblyResult, it as registerDrizzleAgentStorage, j as registerDrizzleTurnStorage, jt as buildRecoveryContextWithPipeline, k as turnsDual, kt as buildTurnInitiator, l as registerCompressLineageResolver, lt as AgentStorageSubjects, m as InsertMessageRouting, mt as FallbackRuntimeOptions, n as buildSessionContext, nt as parseForkTransforms, ot as registerDrizzleSessionStorage, p as StartTurnOptions, pt as assembleForkContext, q as fetchSessionPreviewMaps, qt as ISessionOrchestrator, r as BuildContextOptions, rt as registerFtsSearchHandler, st as registerMemorySessionStorage, t as getFullConversation, tt as mapRowToSession, u as registerParentResolver, ut as SessionExtensionContextImpl, v as registerDrizzleMessageRoutingStorage, vt as resolveAdapterNameById, w as registerMemoryMessageStorage, wt as registerResumeHandler, x as InsertMessage, xt as resetBuiltInActionsRegistration, y as MessageRoutingNamespace, yt as registerListActionsHandler, z as registerDrizzleSessionEventStorage, zt as resolveModelCapabilities } from "../index-DDrS0Axp.mjs";
15
+ import { A as StatusResponseSchema, C as SpawnRequest, D as StatusRequest, E as SpawnResponseSchema, M as StopRequestSchema, N as StopResponse, O as StatusRequestSchema, P as StopResponseSchema, S as ContainerStoppedSchema, T as SpawnResponse, _ as ContainerStarted, b as ContainerStateSchema, c as ContainerCreatedSchema, d as ContainerIsolatedSpawnRequest, f as ContainerIsolatedSpawnRequestSchema, g as ContainerRuntimeSchema, h as ContainerRuntime, i as DockerSubjects, j as StopRequest, k as StatusResponse, l as ContainerDestroyed, m as ContainerLocalSpawnRequestSchema, n as ContainerSpawnSubjects, p as ContainerLocalSpawnRequest, r as DockerNamespace, s as ContainerCreated, t as ContainerSpawnNamespace, u as ContainerDestroyedSchema, v as ContainerStartedSchema, w as SpawnRequestSchema, x as ContainerStopped, y as ContainerState } from "../index-CqCe7Phc.mjs";
16
+ import { $ as fetchMessageCountsBySession, A as registerMemoryTurnStorage, At as RecoveryConfig, B as registerMemorySessionEventStorage, Bt as findTurnByAgent, C as messages, Ct as registerGetStatusCountsHandler, D as SelectTurn, Dt as ContextWindowTrackerConfig, E as InsertTurn, Et as AgentContextState, F as importCursorsDual, Ft as verifyAndRecoverAgents, Gt as TurnContextEnricher, H as SelectSessionEvent, Ht as resolveTargetAgents, I as EventTransform, It as buildRecoveryContext, J as mapAgentsBySession, Jt as SessionOrchestrator, K as SessionPreviewMaps, Kt as AdapterRegistry, L as SessionLogger, Lt as resolveAdapterId, M as EmbeddingIndexManager, Mt as ensureAgentCwd, N as registerDrizzleImportCursorStorage, Nt as ensureAgentModel, O as turns, Ot as SessionContextWindowState, P as importCursors, Pt as recoverAgent, Q as fetchAgentsBySession, R as SessionLoggerOptions, Rt as resolveExecutionTarget, S as SelectMessage, St as actionRegistry, T as registerDrizzleMessageStorage, Tt as ContextWindowTracker, U as sessionEvents, Ut as extractTextContent, V as InsertSessionEvent, Vt as getOrCreateSession, W as sessionEventsDual, Wt as normalizeToBlocks, X as SearchFilters, Xt as MakaioSessionService, Y as mapToSession, Yt as registerCoreSessionServiceHandlers, Z as SearchSessionRow, _ as messageRoutingDual, _t as normalizeSelectionString, a as kindToBranchKind, at as registerMemoryAgentStorage, b as MessageRoutingSubjects, bt as registerBuiltInActions, c as registerSpawningToolCallResolver, ct as AgentStorageNamespace, d as MakaioSession, dt as createSessionExtensionContext, et as fetchPreviewBySession, f as MakaioSessionConfig, ft as SessionBridge, g as messageRouting, gt as CONNECTOR_SWAP_DEFAULT_PIPELINE, h as SelectMessageRouting, ht as pickFallbackRuntimeOptions, i as ContextAssemblyResult, it as registerDrizzleAgentStorage, j as registerDrizzleTurnStorage, jt as buildRecoveryContextWithPipeline, k as turnsDual, kt as buildTurnInitiator, l as registerCompressLineageResolver, lt as AgentStorageSubjects, m as InsertMessageRouting, mt as FallbackRuntimeOptions, n as buildSessionContext, nt as parseForkTransforms, ot as registerDrizzleSessionStorage, p as StartTurnOptions, pt as assembleForkContext, q as fetchSessionPreviewMaps, qt as ISessionOrchestrator, r as BuildContextOptions, rt as registerFtsSearchHandler, st as registerMemorySessionStorage, t as getFullConversation, tt as mapRowToSession, u as registerParentResolver, ut as SessionExtensionContextImpl, v as registerDrizzleMessageRoutingStorage, vt as resolveAdapterNameById, w as registerMemoryMessageStorage, wt as registerResumeHandler, x as InsertMessage, xt as resetBuiltInActionsRegistration, y as MessageRoutingNamespace, yt as registerListActionsHandler, z as registerDrizzleSessionEventStorage, zt as resolveModelCapabilities } from "../index-9b2_jXxq.mjs";
17
17
  import { a as registerCompressHandler, c as SessionTurnManager, d as Turn, f as TurnConfig, h as TurnStateChange, i as registerForkHandler, l as TurnCompleteCallback, m as TurnResult, n as routeToAgents, o as registerAttachHandler, p as TurnContext, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore, u as TurnCompletionResult } from "../index-gAFwNiJT.mjs";
18
18
  import { n as activateProviderContextStrict, r as buildProviderContext, t as activateProviderContext } from "../index-DtwGhFFQ.mjs";
19
- import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-Bz0ORDns.mjs";
20
- import { a as agents, s as sessions } from "../schema-Dky4zu9D.mjs";
19
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-DXW-voCe.mjs";
20
+ import { a as agents, s as sessions } from "../schema-D1HrnvT7.mjs";
21
21
  import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-KMxsPJwm.mjs";
22
22
  import { t as TurnStorageNamespace } from "../namespace-LUNf8zo5.mjs";
23
23
  import { n as TurnStorageSubjects } from "../namespace-BsYKEMd8.mjs";
24
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-CxzW0mIH.mjs";
24
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-DGAWYjbO.mjs";
25
25
  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-Cr9lh21j.mjs";
26
26
  import { t as ToolApprovalService } from "../index-BvLXySoB2.mjs";
27
27
  import { t as TrayMenuService } from "../index-DUD7wikz2.mjs";
@@ -31,15 +31,15 @@ import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModel
31
31
  import { a as InternalPendingRequest, c as SubagentServiceToken, i as InputResolver, l as subagentServicePackage, n as TrackOptions, o as SpawnOptions, r as AwaitResult, s as TrackedSubagent, t as SubagentManager, u as SubagentService } from "../index-C23g_M_J2.mjs";
32
32
  import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DWfo0wp4.mjs";
33
33
  import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-Di1A3DMm.mjs";
34
- 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-Eq-lrXYz2.mjs";
35
- import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-DXWpFdQH2.mjs";
34
+ 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-D-9zNyAM2.mjs";
35
+ import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-D8P8Sxce2.mjs";
36
36
  import * as _$zod from "zod";
37
37
  import { z } from "zod";
38
38
  import * as _$_makaio_core0 from "@makaio/framework/core";
39
39
  import { MakaioError } from "@makaio/framework/core";
40
40
  import { IMakaioBus } from "@makaio/framework/bus";
41
41
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
42
- import { AgentResolutionContext, ArtifactKindRegistration, ArtifactLifecycleHookRegistration, ArtifactObservation, ArtifactProjectionPolicy, ArtifactRevision, CanonicalModelResolvedSelection, MakaioNodeExtension, ProviderDefinition, RegisteredStepBlock, RegisteredTriggerBlock, RelationTypeRegistration, ResolvableCanonicalModel, TransitionActionFactory, TransitionActionInvocation, TransitionEvaluationContext, TransitionEventType, TransitionRuleDefinition, TransitionRuleDefinitionSchema, WorkflowBlockCollection } from "@makaio/framework/contracts";
42
+ import { AgentResolutionContext, ArtifactContextSelector, ArtifactKindRegistration, ArtifactLifecycleHookRegistration, ArtifactObservation, ArtifactProjectionPolicy, ArtifactRef, ArtifactRevision, CanonicalModelResolvedSelection, MakaioNodeExtension, ProviderDefinition, RegisteredStepBlock, RegisteredTriggerBlock, RelationTypeRegistration, ResolvableCanonicalModel, ResolvedArtifactContextWire, TransitionActionFactory, TransitionActionInvocation, TransitionEvaluationContext, TransitionEventType, TransitionRuleDefinition, TransitionRuleDefinitionSchema, WorkflowBlockCollection } from "@makaio/framework/contracts";
43
43
  import { BaseService } from "@makaio/framework/service-base";
44
44
  import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
45
45
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
@@ -456,6 +456,49 @@ declare class ArtifactLifecycleHookRegistry extends BaseService {
456
456
  */
457
457
  declare function createArtifactLifecycleHookContributionProcessor(): ContributionProcessor;
458
458
  //#endregion
459
+ //#region services/core/src/artifact/context-resolver.d.ts
460
+ type MaybePromise<T> = T | Promise<T>;
461
+ /**
462
+ * Kind registry interface for context resolution.
463
+ *
464
+ * Implementations must support versioned kind lookups so the resolver
465
+ * can retrieve `defaultContext` selectors for each artifact kind.
466
+ */
467
+ interface ArtifactContextKindRegistry {
468
+ /**
469
+ * Look up a kind registration by kind string and schema version.
470
+ * @param kind - Kind discriminator string.
471
+ * @param schemaVersion - Schema version string.
472
+ * @returns The registration record, or `undefined` if not found.
473
+ */
474
+ getKind(kind: string, schemaVersion: string): MaybePromise<ArtifactKindRegistration | undefined>;
475
+ }
476
+ /**
477
+ * Options for {@link resolveArtifactContext}.
478
+ */
479
+ interface ResolveArtifactContextOptions {
480
+ /** Bus instance for artifact resolution RPCs. */
481
+ readonly bus: IMakaioBus;
482
+ /** Kind registry for versioned defaultContext lookups. */
483
+ readonly kindRegistry: ArtifactContextKindRegistry;
484
+ /** Root artifact reference to resolve from. */
485
+ readonly ref: ArtifactRef;
486
+ /**
487
+ * Optional caller selectors that override kind defaults per relation
488
+ * type.
489
+ */
490
+ readonly selectors?: ArtifactContextSelector;
491
+ /** Maximum traversal depth (defaults to 5). */
492
+ readonly maxDepth?: number;
493
+ }
494
+ /**
495
+ * Resolve a selector-driven outbound artifact context graph.
496
+ * @param options - Bus, schema registry, root ref, and optional
497
+ * selector overrides.
498
+ * @returns Normalized wire context with all encountered refs visible.
499
+ */
500
+ declare function resolveArtifactContext(options: ResolveArtifactContextOptions): Promise<ResolvedArtifactContextWire>;
501
+ //#endregion
459
502
  //#region services/core/src/facet/facet-namespace-registry.d.ts
460
503
  /**
461
504
  * In-process registry for facet namespace definitions.
@@ -1288,13 +1331,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1288
1331
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1289
1332
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1290
1333
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1291
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1292
1334
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1293
1335
  label: _$zod.ZodString;
1294
1336
  url: _$zod.ZodString;
1295
1337
  }, _$zod_v4_core0.$strict>>>;
1296
1338
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1297
1339
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1340
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1298
1341
  name: _$zod.ZodString;
1299
1342
  enabled: _$zod.ZodBoolean;
1300
1343
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1313,13 +1356,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1313
1356
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1314
1357
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1315
1358
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1316
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1317
1359
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1318
1360
  label: _$zod.ZodString;
1319
1361
  url: _$zod.ZodString;
1320
1362
  }, _$zod_v4_core0.$strict>>>;
1321
1363
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1322
1364
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1365
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1323
1366
  name: _$zod.ZodString;
1324
1367
  enabled: _$zod.ZodBoolean;
1325
1368
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1800,13 +1843,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1800
1843
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1801
1844
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1802
1845
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1803
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1804
1846
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1805
1847
  label: _$zod.ZodString;
1806
1848
  url: _$zod.ZodString;
1807
1849
  }, _$zod_v4_core0.$strict>>>;
1808
1850
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1809
1851
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1852
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1810
1853
  name: _$zod.ZodString;
1811
1854
  enabled: _$zod.ZodBoolean;
1812
1855
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1999,9 +2042,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1999
2042
  description: _$zod.ZodOptional<_$zod.ZodString>;
2000
2043
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2001
2044
  exposureMode: _$zod.ZodEnum<{
2002
- hidden: "hidden";
2003
2045
  direct: "direct";
2004
2046
  discovery: "discovery";
2047
+ hidden: "hidden";
2005
2048
  }>;
2006
2049
  enabled: _$zod.ZodBoolean;
2007
2050
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2018,9 +2061,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2018
2061
  description: _$zod.ZodOptional<_$zod.ZodString>;
2019
2062
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
2020
2063
  exposureMode: _$zod.ZodEnum<{
2021
- hidden: "hidden";
2022
2064
  direct: "direct";
2023
2065
  discovery: "discovery";
2066
+ hidden: "hidden";
2024
2067
  }>;
2025
2068
  enabled: _$zod.ZodBoolean;
2026
2069
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -2083,7 +2126,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2083
2126
  originalName: string;
2084
2127
  serverName: string;
2085
2128
  inputSchema: Record<string, unknown>;
2086
- exposureMode: "hidden" | "direct" | "discovery";
2129
+ exposureMode: "direct" | "discovery" | "hidden";
2087
2130
  enabled: boolean;
2088
2131
  exposed: boolean;
2089
2132
  description?: string | undefined;
@@ -2095,7 +2138,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2095
2138
  originalName: string;
2096
2139
  serverName: string;
2097
2140
  inputSchema: Record<string, unknown>;
2098
- exposureMode: "hidden" | "direct" | "discovery";
2141
+ exposureMode: "direct" | "discovery" | "hidden";
2099
2142
  enabled: boolean;
2100
2143
  exposed: boolean;
2101
2144
  description?: string | undefined;
@@ -2157,7 +2200,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2157
2200
  originalName: string;
2158
2201
  serverName: string;
2159
2202
  inputSchema: Record<string, unknown>;
2160
- exposureMode: "hidden" | "direct" | "discovery";
2203
+ exposureMode: "direct" | "discovery" | "hidden";
2161
2204
  enabled: boolean;
2162
2205
  exposed: boolean;
2163
2206
  description?: string | undefined;
@@ -2169,7 +2212,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2169
2212
  originalName: string;
2170
2213
  serverName: string;
2171
2214
  inputSchema: Record<string, unknown>;
2172
- exposureMode: "hidden" | "direct" | "discovery";
2215
+ exposureMode: "direct" | "discovery" | "hidden";
2173
2216
  enabled: boolean;
2174
2217
  exposed: boolean;
2175
2218
  description?: string | undefined;
@@ -2229,7 +2272,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2229
2272
  originalName: string;
2230
2273
  serverName: string;
2231
2274
  inputSchema: Record<string, unknown>;
2232
- exposureMode: "hidden" | "direct" | "discovery";
2275
+ exposureMode: "direct" | "discovery" | "hidden";
2233
2276
  enabled: boolean;
2234
2277
  exposed: boolean;
2235
2278
  description?: string | undefined;
@@ -2241,7 +2284,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2241
2284
  originalName: string;
2242
2285
  serverName: string;
2243
2286
  inputSchema: Record<string, unknown>;
2244
- exposureMode: "hidden" | "direct" | "discovery";
2287
+ exposureMode: "direct" | "discovery" | "hidden";
2245
2288
  enabled: boolean;
2246
2289
  exposed: boolean;
2247
2290
  description?: string | undefined;
@@ -2303,7 +2346,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2303
2346
  originalName: string;
2304
2347
  serverName: string;
2305
2348
  inputSchema: Record<string, unknown>;
2306
- exposureMode: "hidden" | "direct" | "discovery";
2349
+ exposureMode: "direct" | "discovery" | "hidden";
2307
2350
  enabled: boolean;
2308
2351
  exposed: boolean;
2309
2352
  description?: string | undefined;
@@ -2315,7 +2358,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2315
2358
  originalName: string;
2316
2359
  serverName: string;
2317
2360
  inputSchema: Record<string, unknown>;
2318
- exposureMode: "hidden" | "direct" | "discovery";
2361
+ exposureMode: "direct" | "discovery" | "hidden";
2319
2362
  enabled: boolean;
2320
2363
  exposed: boolean;
2321
2364
  description?: string | undefined;
@@ -2346,8 +2389,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2346
2389
  status: _$zod.ZodEnum<{
2347
2390
  completed: "completed";
2348
2391
  cancelled: "cancelled";
2349
- running: "running";
2350
2392
  failed: "failed";
2393
+ running: "running";
2351
2394
  waiting_input: "waiting_input";
2352
2395
  }>;
2353
2396
  result: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2413,8 +2456,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2413
2456
  member: "member";
2414
2457
  }>;
2415
2458
  status: _$zod.ZodEnum<{
2416
- active: "active";
2417
2459
  idle: "idle";
2460
+ active: "active";
2418
2461
  dead: "dead";
2419
2462
  disposed: "disposed";
2420
2463
  }>;
@@ -2450,8 +2493,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2450
2493
  member: "member";
2451
2494
  }>;
2452
2495
  status: _$zod.ZodEnum<{
2453
- active: "active";
2454
2496
  idle: "idle";
2497
+ active: "active";
2455
2498
  dead: "dead";
2456
2499
  disposed: "disposed";
2457
2500
  }>;
@@ -2476,8 +2519,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2476
2519
  adapterName: _$zod.ZodString;
2477
2520
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2478
2521
  all: "all";
2479
- active: "active";
2480
2522
  idle: "idle";
2523
+ active: "active";
2481
2524
  dead: "dead";
2482
2525
  disposed: "disposed";
2483
2526
  }>>;
@@ -2507,8 +2550,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2507
2550
  member: "member";
2508
2551
  }>;
2509
2552
  status: _$zod.ZodEnum<{
2510
- active: "active";
2511
2553
  idle: "idle";
2554
+ active: "active";
2512
2555
  dead: "dead";
2513
2556
  disposed: "disposed";
2514
2557
  }>;
@@ -2546,8 +2589,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2546
2589
  member: "member";
2547
2590
  }>;
2548
2591
  status: _$zod.ZodEnum<{
2549
- active: "active";
2550
2592
  idle: "idle";
2593
+ active: "active";
2551
2594
  dead: "dead";
2552
2595
  disposed: "disposed";
2553
2596
  }>;
@@ -2560,8 +2603,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2560
2603
  request: _$zod.ZodObject<{
2561
2604
  agentId: _$zod.ZodString;
2562
2605
  status: _$zod.ZodEnum<{
2563
- active: "active";
2564
2606
  idle: "idle";
2607
+ active: "active";
2565
2608
  dead: "dead";
2566
2609
  disposed: "disposed";
2567
2610
  }>;
@@ -2888,7 +2931,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2888
2931
  tableName: "agents";
2889
2932
  dataType: "string";
2890
2933
  columnType: "SQLiteText";
2891
- data: "active" | "idle" | "dead" | "disposed";
2934
+ data: "idle" | "active" | "dead" | "disposed";
2892
2935
  driverParam: string;
2893
2936
  notNull: true;
2894
2937
  hasDefault: false;
@@ -3417,9 +3460,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3417
3460
  }, _$zod_v4_core0.$strip>;
3418
3461
  response: _$zod.ZodObject<{
3419
3462
  state: _$zod.ZodEnum<{
3463
+ created: "created";
3420
3464
  running: "running";
3421
3465
  stopped: "stopped";
3422
- created: "created";
3423
3466
  destroyed: "destroyed";
3424
3467
  }>;
3425
3468
  sessionId: _$zod.ZodString;
@@ -3765,8 +3808,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3765
3808
  id: _$zod.ZodString;
3766
3809
  config: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
3767
3810
  enabled: _$zod.ZodBoolean;
3768
- scope: _$zod.ZodString;
3769
3811
  extensionName: _$zod.ZodString;
3812
+ scope: _$zod.ZodString;
3770
3813
  }, _$zod_v4_core0.$strip>;
3771
3814
  }, _$zod_v4_core0.$strip>;
3772
3815
  response: _$zod.ZodObject<{
@@ -4014,8 +4057,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4014
4057
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
4015
4058
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4016
4059
  name: _$zod.ZodString;
4017
- clientId: _$zod.ZodOptional<_$zod.ZodString>;
4018
4060
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4061
+ clientId: _$zod.ZodOptional<_$zod.ZodString>;
4062
+ credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4019
4063
  toolCapabilityMap: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodReadonly<_$zod.ZodArray<_$zod.ZodEnum<{
4020
4064
  "file.read": "file.read";
4021
4065
  "file.write": "file.write";
@@ -4037,7 +4081,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4037
4081
  "always-ask": "always-ask";
4038
4082
  "full-access": "full-access";
4039
4083
  }>>>;
4040
- credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4041
4084
  approvalPolicy: _$zod.ZodEnum<{
4042
4085
  reject: "reject";
4043
4086
  "always-ask": "always-ask";
@@ -5584,8 +5627,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5584
5627
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
5585
5628
  readiness: _$zod.ZodOptional<_$zod.ZodEnum<{
5586
5629
  ready: "ready";
5587
- "missing-credentials": "missing-credentials";
5588
5630
  "needs-setup": "needs-setup";
5631
+ "missing-credentials": "missing-credentials";
5589
5632
  }>>;
5590
5633
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
5591
5634
  protocol: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -6162,8 +6205,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6162
6205
  status: _$zod.ZodEnum<{
6163
6206
  completed: "completed";
6164
6207
  cancelled: "cancelled";
6165
- running: "running";
6166
6208
  failed: "failed";
6209
+ running: "running";
6167
6210
  waiting_input: "waiting_input";
6168
6211
  }>;
6169
6212
  result: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6241,9 +6284,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6241
6284
  name: _$zod.ZodString;
6242
6285
  enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
6243
6286
  adapterName: _$zod.ZodString;
6244
- providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6245
6287
  model: _$zod.ZodOptional<_$zod.ZodString>;
6246
6288
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
6289
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6247
6290
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6248
6291
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6249
6292
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6290,4 +6333,4 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6290
6333
  };
6291
6334
  }>];
6292
6335
  //#endregion
6293
- export { AdapterIdentityRegistry, AdapterRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, type AgentContextState, type AgentInstanceStatus, AgentInstanceStatusSchema, AgentRuntimeNamespace, AgentRuntimeSchemas, type AgentRuntimeSelection, AgentRuntimeSelectionSchema, AgentRuntimeSubjects, AgentStorageNamespace, AgentStorageSubjects, type AmbiguousMatch, ArtifactLifecycleHookRegistry, ArtifactLifecycleHookRegistryToken, ArtifactLifecycleHookRejectedError, ArtifactSchemaRegistry, ArtifactSchemaRegistryToken, type AwaitResult, type BugEntry, BugEntrySchema, type BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, CachedRegistryFetcher, CanonicalModelResolutionError, type CanonicalModelResolutionErrorCode, CanonicalModelResolver, type CanonicalModelResolverDeps, CanonicalModelService, CapabilityService, CapabilityToken, type CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseNamespace, CodebaseSchemas, CodebaseSubjects, type CompressRequest, CompressRequestSchema, type CompressResponse, CompressResponseSchema, type CompressionEvent, CompressionEventSchema, CompressionNamespace, CompressionSchemas, CompressionSubjects, type ContainerCreated, ContainerCreatedSchema, type ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, type ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, type ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, type ContainerRuntime, ContainerRuntimeSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, type ContainerStarted, ContainerStartedSchema, type ContainerState, ContainerStateSchema, type ContainerStopped, ContainerStoppedSchema, type ContextAssemblyResult, ContextWindowTracker, type ContextWindowTrackerConfig, type DefaultModelResolution, DockerNamespace, DockerSubjects, EmbeddingIndexManager, type EventTransform, type ExecutionTarget, type ExecutionTargetInput, ExecutionTargetInputSchema, type ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, type ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, type ExecutionTargetType, ExecutionTargetTypeSchema, type ExtractedContext, ExtractedContextSchema, FacetNamespaceRegistry, FacetNamespaceRegistryToken, FallbackRegistryFetcher, type FallbackRuntimeOptions, FrameworkServicesCoreNamespaces, type IModelRegistryCache, type IModelRegistryFetcher, type ISessionOrchestrator, type InputResolver, type InsertMessage, type InsertMessageRouting, type InsertSessionEvent, type InsertTurn, type InternalPendingRequest, type ListToolsFilter, LocalExecutionTargetSchema, MakaioSession, type MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, type ModelRegistry, type ModelRegistryCheckModelInProvidersRequest, type ModelRegistryCheckModelInProvidersResponse, type ModelRegistryGetForProviderRequest, type ModelRegistryGetForProviderResponse, type ModelRegistryGetLabModelsRequest, type ModelRegistryGetLabModelsResponse, type ModelRegistryGetProviderModelsRequest, type ModelRegistryGetProviderModelsResponse, ModelRegistryNamespace, ModelRegistryProviderNotFoundError, type ModelRegistryRefreshRequest, type ModelRegistryRefreshResponse, ModelRegistrySchema, ModelRegistrySchemas, ModelRegistryService, type ModelRegistryServiceOptions, ModelRegistrySubjects, ModelRegistryToken, type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects, type ProviderModelOverride, ProviderModelOverrideSchema, type RecoveryConfig, type RegisteredAdapterRuntimeIdentityHandlers, type ResolveIdRequest, ResolveIdRequestSchema, type ResolveIdResponse, ResolveIdResponseSchema, type ResolveNameRequest, ResolveNameRequestSchema, type ResolveNameResponse, ResolveNameResponseSchema, type ResolvedDefaultTarget, type ResolvedSelection, type RunAfterInput, type RunBeforeInput, type RunBeforeResult, type SearchFilters, type SearchSessionRow, type SelectMessage, type SelectMessageRouting, type SelectSessionEvent, type SelectTurn, SessionBridge, SessionBridgeToken, type SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLogger, type SessionLoggerOptions, SessionOrchestrator, SessionOrchestratorToken, type SessionPreviewMaps, SessionStorageNamespace, SessionStorageSubjects, SessionStorageToken, SessionToken, SessionTurnManager, type SpawnOptions, type SpawnRequest, SpawnRequestSchema, type SpawnResponse, SpawnResponseSchema, type StartTurnOptions, type StatusRequest, StatusRequestSchema, type StatusResponse, StatusResponseSchema, type StopRequest, StopRequestSchema, type StopResponse, StopResponseSchema, SubagentManager, SubagentService, SubagentServiceToken, type SubagentTemplate, SubagentTemplateCompletedEventSchema, type SubagentTemplateCreate, SubagentTemplateCreateSchema, type SubagentTemplateInstance, SubagentTemplateInstanceSchema, type SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelNamespace, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, type SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSubjects, type SubagentTemplateSummary, SubagentTemplateSummarySchema, type SubagentTemplateUpdate, SubagentTemplateUpdateSchema, SurfaceBindingRegistry, SurfaceBindingRegistryToken, type TechnicalDetails, TechnicalDetailsSchema, type TodoEntry, TodoEntrySchema, ToolApprovalService, ToolApprovalToken, ToolRegistry, type ToolRegistryOptions, ToolRegistryToken, type ToolsWithToolsetsResult, type ToolsetInfo, type ToolsetPolicy, type ToolsetPolicyProvider, type TrackOptions, type TrackedSubagent, TransitionActionRegistry, TransitionPipelineService, TransitionPipelineToken, TransitionRuleRegistry, type TrayMenuEntry, TrayMenuEntrySchema, type TrayMenuGroup, TrayMenuGroupEntrySchema, TrayMenuGroupSchema, type TrayMenuItemClicked, TrayMenuItemClickedSchema, type TrayMenuListEntry, TrayMenuListEntrySchema, TrayMenuMetadataSchema, TrayMenuNamespace, TrayMenuSchemas, TrayMenuSectionSchema, TrayMenuService, TrayMenuSubjects, TrayMenuToken, Turn, type TurnCompleteCallback, type TurnCompletionResult, type TurnConfig, type TurnContext, TurnContextEnricher, type TurnResult, type TurnStateChange, TurnStorageNamespace, TurnStorageSubjects, WORKFLOW_START_ACTION_TYPE, WorkflowBlockRegistry, WorkflowBlockRegistryToken, actionRegistry, activateProviderContext, activateProviderContextStrict, agents, artifactLifecycleHookRegistryPackage, artifactSchemaRegistryPackage, assembleForkContext, buildDeterministicAdapterId, buildProviderContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, canonicalModelPackage, capabilityPackage, createArtifactKindContributionProcessor, createArtifactLifecycleHookContributionProcessor, createFacetNamespaceContributionProcessor, createModelRegistryPackage, createSessionExtensionContext, createSurfaceBindingContributionProcessor, createToolContributionProcessor, createTransitionContributionProcessor, createWorkflowBlockContributionProcessor, ensureAgentCwd, ensureAgentModel, extractTextContent, facetNamespaceRegistryPackage, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, frameworkCorePackages, getFullConversation, getOrCreateSession, importCursors, importCursorsDual, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, mergeModelMetadata, messageRouting, messageRoutingDual, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, recoverAgent, registerAbandonHandler, registerAdapterRuntimeIdentityHandlers, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerParentResolver, registerResumeHandler, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveDeterministicAdapterId, resolveExecutionTarget, resolveModelCapabilities, resolveTargetAgents, routeToAgents, routeToAgentsCore, sessionBridgePackage, sessionEvents, sessionEventsDual, sessionOrchestratorPackage, sessionPackage, sessionStoragePackage, sessions, subagentServicePackage, surfaceBindingRegistryPackage, toolApprovalPackage, toolRegistryPackage, transitionPipelinePackage, trayMenuPackage, turns, turnsDual, verifyAndRecoverAgents, workflowBlockRegistryPackage };
6336
+ export { AdapterIdentityRegistry, AdapterRegistry, AdapterRuntimeNamespace, AdapterRuntimeSchemas, AdapterRuntimeSubjects, type AgentContextState, type AgentInstanceStatus, AgentInstanceStatusSchema, AgentRuntimeNamespace, AgentRuntimeSchemas, type AgentRuntimeSelection, AgentRuntimeSelectionSchema, AgentRuntimeSubjects, AgentStorageNamespace, AgentStorageSubjects, type AmbiguousMatch, type ArtifactContextKindRegistry, ArtifactLifecycleHookRegistry, ArtifactLifecycleHookRegistryToken, ArtifactLifecycleHookRejectedError, ArtifactSchemaRegistry, ArtifactSchemaRegistryToken, type AwaitResult, type BugEntry, BugEntrySchema, type BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, CachedRegistryFetcher, CanonicalModelResolutionError, type CanonicalModelResolutionErrorCode, CanonicalModelResolver, type CanonicalModelResolverDeps, CanonicalModelService, CapabilityService, CapabilityToken, type CodebaseChangedEvent, CodebaseChangedEventSchema, CodebaseNamespace, CodebaseSchemas, CodebaseSubjects, type CompressRequest, CompressRequestSchema, type CompressResponse, CompressResponseSchema, type CompressionEvent, CompressionEventSchema, CompressionNamespace, CompressionSchemas, CompressionSubjects, type ContainerCreated, ContainerCreatedSchema, type ContainerDestroyed, ContainerDestroyedSchema, ContainerIsolatedExecutionTargetSchema, type ContainerIsolatedSpawnRequest, ContainerIsolatedSpawnRequestSchema, ContainerLocalExecutionTargetSchema, type ContainerLocalSpawnRequest, ContainerLocalSpawnRequestSchema, type ContainerRuntime, ContainerRuntimeSchema, ContainerSpawnNamespace, ContainerSpawnSubjects, type ContainerStarted, ContainerStartedSchema, type ContainerState, ContainerStateSchema, type ContainerStopped, ContainerStoppedSchema, type ContextAssemblyResult, ContextWindowTracker, type ContextWindowTrackerConfig, type DefaultModelResolution, DockerNamespace, DockerSubjects, EmbeddingIndexManager, type EventTransform, type ExecutionTarget, type ExecutionTargetInput, ExecutionTargetInputSchema, type ExecutionTargetListQuery, ExecutionTargetListQuerySchema, ExecutionTargetNamespace, type ExecutionTargetResolveRequest, ExecutionTargetResolveRequestSchema, ExecutionTargetSchema, ExecutionTargetSchemas, ExecutionTargetSubjects, type ExecutionTargetType, ExecutionTargetTypeSchema, type ExtractedContext, ExtractedContextSchema, FacetNamespaceRegistry, FacetNamespaceRegistryToken, FallbackRegistryFetcher, type FallbackRuntimeOptions, FrameworkServicesCoreNamespaces, type IModelRegistryCache, type IModelRegistryFetcher, type ISessionOrchestrator, type InputResolver, type InsertMessage, type InsertMessageRouting, type InsertSessionEvent, type InsertTurn, type InternalPendingRequest, type ListToolsFilter, LocalExecutionTargetSchema, MakaioSession, type MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, type ModelRegistry, type ModelRegistryCheckModelInProvidersRequest, type ModelRegistryCheckModelInProvidersResponse, type ModelRegistryGetForProviderRequest, type ModelRegistryGetForProviderResponse, type ModelRegistryGetLabModelsRequest, type ModelRegistryGetLabModelsResponse, type ModelRegistryGetProviderModelsRequest, type ModelRegistryGetProviderModelsResponse, ModelRegistryNamespace, ModelRegistryProviderNotFoundError, type ModelRegistryRefreshRequest, type ModelRegistryRefreshResponse, ModelRegistrySchema, ModelRegistrySchemas, ModelRegistryService, type ModelRegistryServiceOptions, ModelRegistrySubjects, ModelRegistryToken, type PreferenceItem, PreferenceItemSchema, type PreferenceKey, PreferenceKeySchema, PreferenceValueSchema, PreferencesNamespace, PreferencesSchemas, PreferencesSubjects, type ProviderModelOverride, ProviderModelOverrideSchema, type RecoveryConfig, type RegisteredAdapterRuntimeIdentityHandlers, type ResolveArtifactContextOptions, type ResolveIdRequest, ResolveIdRequestSchema, type ResolveIdResponse, ResolveIdResponseSchema, type ResolveNameRequest, ResolveNameRequestSchema, type ResolveNameResponse, ResolveNameResponseSchema, type ResolvedDefaultTarget, type ResolvedSelection, type RunAfterInput, type RunBeforeInput, type RunBeforeResult, type SearchFilters, type SearchSessionRow, type SelectMessage, type SelectMessageRouting, type SelectSessionEvent, type SelectTurn, SessionBridge, SessionBridgeToken, type SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLogger, type SessionLoggerOptions, SessionOrchestrator, SessionOrchestratorToken, type SessionPreviewMaps, SessionStorageNamespace, SessionStorageSubjects, SessionStorageToken, SessionToken, SessionTurnManager, type SpawnOptions, type SpawnRequest, SpawnRequestSchema, type SpawnResponse, SpawnResponseSchema, type StartTurnOptions, type StatusRequest, StatusRequestSchema, type StatusResponse, StatusResponseSchema, type StopRequest, StopRequestSchema, type StopResponse, StopResponseSchema, SubagentManager, SubagentService, SubagentServiceToken, type SubagentTemplate, SubagentTemplateCompletedEventSchema, type SubagentTemplateCreate, SubagentTemplateCreateSchema, type SubagentTemplateInstance, SubagentTemplateInstanceSchema, type SubagentTemplateInstanceStatus, SubagentTemplateInstanceStatusSchema, SubagentTemplateKernelNamespace, SubagentTemplateKernelSchemas, SubagentTemplateSchema, SubagentTemplateSettingsSchemas, type SubagentTemplateSpawnRequest, SubagentTemplateSpawnRequestSchema, SubagentTemplateSpawnedEventSchema, SubagentTemplateSubjects, type SubagentTemplateSummary, SubagentTemplateSummarySchema, type SubagentTemplateUpdate, SubagentTemplateUpdateSchema, SurfaceBindingRegistry, SurfaceBindingRegistryToken, type TechnicalDetails, TechnicalDetailsSchema, type TodoEntry, TodoEntrySchema, ToolApprovalService, ToolApprovalToken, ToolRegistry, type ToolRegistryOptions, ToolRegistryToken, type ToolsWithToolsetsResult, type ToolsetInfo, type ToolsetPolicy, type ToolsetPolicyProvider, type TrackOptions, type TrackedSubagent, TransitionActionRegistry, TransitionPipelineService, TransitionPipelineToken, TransitionRuleRegistry, type TrayMenuEntry, TrayMenuEntrySchema, type TrayMenuGroup, TrayMenuGroupEntrySchema, TrayMenuGroupSchema, type TrayMenuItemClicked, TrayMenuItemClickedSchema, type TrayMenuListEntry, TrayMenuListEntrySchema, TrayMenuMetadataSchema, TrayMenuNamespace, TrayMenuSchemas, TrayMenuSectionSchema, TrayMenuService, TrayMenuSubjects, TrayMenuToken, Turn, type TurnCompleteCallback, type TurnCompletionResult, type TurnConfig, type TurnContext, TurnContextEnricher, type TurnResult, type TurnStateChange, TurnStorageNamespace, TurnStorageSubjects, WORKFLOW_START_ACTION_TYPE, WorkflowBlockRegistry, WorkflowBlockRegistryToken, actionRegistry, activateProviderContext, activateProviderContextStrict, agents, artifactLifecycleHookRegistryPackage, artifactSchemaRegistryPackage, assembleForkContext, buildDeterministicAdapterId, buildProviderContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, canonicalModelPackage, capabilityPackage, createArtifactKindContributionProcessor, createArtifactLifecycleHookContributionProcessor, createFacetNamespaceContributionProcessor, createModelRegistryPackage, createSessionExtensionContext, createSurfaceBindingContributionProcessor, createToolContributionProcessor, createTransitionContributionProcessor, createWorkflowBlockContributionProcessor, ensureAgentCwd, ensureAgentModel, extractTextContent, facetNamespaceRegistryPackage, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, frameworkCorePackages, getFullConversation, getOrCreateSession, importCursors, importCursorsDual, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, mergeModelMetadata, messageRouting, messageRoutingDual, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, recoverAgent, registerAbandonHandler, registerAdapterRuntimeIdentityHandlers, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerParentResolver, registerResumeHandler, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveArtifactContext, resolveDeterministicAdapterId, resolveExecutionTarget, resolveModelCapabilities, resolveTargetAgents, routeToAgents, routeToAgentsCore, sessionBridgePackage, sessionEvents, sessionEventsDual, sessionOrchestratorPackage, sessionPackage, sessionStoragePackage, sessions, subagentServicePackage, surfaceBindingRegistryPackage, toolApprovalPackage, toolRegistryPackage, transitionPipelinePackage, trayMenuPackage, turns, turnsDual, verifyAndRecoverAgents, workflowBlockRegistryPackage };
@@ -1 +1 @@
1
- import{TurnStorageNamespace as e,TurnStorageSubjects as t}from"./turn/namespace.mjs";import{agents as n,sessions as r}from"./session/storage/schema.mjs";import{n as i,t as a}from"../schema-DHlTAy0N.mjs";import{t as o}from"../schema-D6WAI8OL.mjs";import{i as s,n as c,r as l,t as u}from"../namespace-C-piH3w4.mjs";import{SessionStorageNamespace as ee,SessionStorageSubjects as d}from"./session/storage/namespace.mjs";import{A as te,C as ne,D as re,E as ie,F as ae,M as oe,N as se,O as ce,P as f,S as le,T as ue,_ as de,a as fe,b as pe,c as me,d as he,f as ge,g as _e,h as ve,i as ye,j as p,k as m,l as h,m as g,n as _,o as v,p as y,r as b,s as x,t as S,u as C,v as w,w as T,x as E,y as D}from"../handlers-BAycjV02.mjs";import{A as O,B as k,C as A,E as j,F as M,G as N,H as P,I as be,J as xe,K as Se,L as Ce,M as we,N as Te,O as Ee,P as De,R as Oe,S as ke,T as Ae,U as je,V as Me,W as Ne,X as Pe,Y as Fe,_ as Ie,a as Le,b as Re,c as ze,d as Be,g as Ve,h as He,i as Ue,j as We,k as Ge,l as Ke,m as qe,o as Je,p as Ye,q as Xe,r as Ze,s as Qe,t as $e,u as et,v as tt,w as nt,x as rt,y as it,z as at}from"../session-0nWT4st6.mjs";import{t as ot}from"../namespace-DBHwyhME.mjs";import{n as st,r as ct,t as lt}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as ut,ResolveIdRequestSchema as dt,ResolveIdResponseSchema as ft,ResolveNameRequestSchema as pt,ResolveNameResponseSchema as mt}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as F,AdapterRuntimeSubjects as ht}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as gt}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as _t,ContainerLocalExecutionTargetSchema as vt,ExecutionTargetInputSchema as yt,ExecutionTargetListQuerySchema as bt,ExecutionTargetResolveRequestSchema as xt,ExecutionTargetSchema as St,ExecutionTargetSchemas as Ct,ExecutionTargetTypeSchema as wt,LocalExecutionTargetSchema as Tt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as I,ExecutionTargetSubjects as Et}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Dt,MessageStorageSubjects as Ot}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as kt}from"./session/turns/namespace.mjs";import{BugEntrySchema as At,CompressRequestSchema as jt,CompressResponseSchema as Mt,CompressionEventSchema as Nt,CompressionSchemas as Pt,ExtractedContextSchema as Ft,TechnicalDetailsSchema as It,TodoEntrySchema as Lt}from"./compression/schemas.mjs";import{PreferenceItemSchema as Rt,PreferenceKeySchema as zt,PreferenceValueSchema as Bt,PreferencesSchemas as Vt}from"./preferences/schemas.mjs";import{PreferencesNamespace as L,PreferencesSubjects as Ht}from"./preferences/storage-namespace.mjs";import{t as Ut}from"../namespace-wke7juzy.mjs";import{A as Wt,B as Gt,C as Kt,D as qt,E as Jt,F as Yt,G as Xt,H as Zt,I as Qt,J as $t,K as en,L as tn,M as nn,N as rn,O as an,P as on,R as sn,S as cn,T as ln,U as un,V as R,W as dn,Y as fn,_ as pn,a as z,b as mn,c as hn,d as gn,f as _n,g as B,h as vn,i as V,j as yn,k as bn,l as xn,m as Sn,o as Cn,p as H,q as wn,r as Tn,s as U,u as En,v as W,w as Dn,x as On,y as kn,z as An}from"../tools-DFOsOboy.mjs";import{t as jn}from"../capability-service-XlymTzz1.mjs";import{a as Mn,c as Nn,i as Pn,l as Fn,n as In,o as G,r as Ln,s as Rn,t as zn,u as Bn}from"../model-registry-rYICIwyR.mjs";import{t as Vn}from"../tool-approval-service-DEQiipxj.mjs";import{TrayMenuEntrySchema as Hn,TrayMenuGroupEntrySchema as Un,TrayMenuGroupSchema as Wn,TrayMenuItemClickedSchema as Gn,TrayMenuListEntrySchema as Kn,TrayMenuMetadataSchema as qn,TrayMenuSchemas as Jn,TrayMenuSectionSchema as Yn}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as K,TrayMenuSubjects as Xn}from"./tray-menu/namespace.mjs";import{t as Zn}from"../tray-menu-service-B2AxiQqL.mjs";import{n as Qn}from"../handler-2bPhRn0u.mjs";import{i as $n,n as er,r as tr,t as nr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as rr}from"./filesystem/namespace.mjs";import"./capability/index.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as ir,AgentRuntimeSchemas as ar,AgentRuntimeSelectionSchema as or}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as q,AgentRuntimeSubjects as sr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as cr,CodebaseSchemas as lr}from"./codebase/schemas.mjs";import{CodebaseNamespace as J,CodebaseSubjects as ur}from"./codebase/namespace.mjs";import{CompressionNamespace as Y,CompressionSubjects as dr}from"./compression/namespace.mjs";import{r as fr,t as pr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as mr}from"./definition/namespace.mjs";import{DialogNamespace as hr}from"./dialog/namespace.mjs";import{_ as gr,c as _r,d as vr,f as yr,g as br,h as xr,i as Sr,l as Cr,m as wr,n as Tr,o as Er,p as Dr,r as X,s as Or,t as kr,u as Ar,v as jr,y as Mr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as Nr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Pr}from"./local-notification/namespace.mjs";import{t as Fr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Ir}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Lr}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Rr,SubagentTemplateCreateSchema as zr,SubagentTemplateInstanceSchema as Br,SubagentTemplateInstanceStatusSchema as Vr,SubagentTemplateKernelSchemas as Hr,SubagentTemplateSchema as Ur,SubagentTemplateSettingsSchemas as Wr,SubagentTemplateSpawnRequestSchema as Gr,SubagentTemplateSpawnedEventSchema as Kr,SubagentTemplateSummarySchema as qr,SubagentTemplateUpdateSchema as Jr}from"./subagent-template/schemas.mjs";import{r as Yr,t as Xr}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as Z,SubagentTemplateSubjects as Zr}from"./subagent-template/namespace.mjs";import{i as Qr,n as $r,r as ei,t as ti}from"../identity-BarL3JYI.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ImportCursorStorageNamespace as ni}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as ri}from"@makaio/framework/contracts/model-registry";function ii(e){return{source:`extension`,ownerKey:`extension:${e}`}}function ai(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function oi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}ai(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(z);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=ii(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function si(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function ci(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(V);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(si(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}function Q(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function li(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}Q(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(U);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw Q(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function ui(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}$(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,a){let o=a.getService(H);if(!o)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let s=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerBinding(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterBinding(l[e].id);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}function di(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(W);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function fi(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(B);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${B.name}' is started before extensions with transitionRules or transitionActions.`);let a=n.transitionRules?.rules??[],o=n.transitionActions?.actions,s=a.length>0,c=o!==void 0;s&&pi(t,a),c&&mi(t,o);let l=!1,u=!1;try{s&&(i.ruleRegistry.register(t,a),l=!0),c&&(i.actionRegistry.register(t,o),u=!0)}catch(e){throw l&&i.ruleRegistry.deregister(t),u&&i.actionRegistry.deregister(t),e}e.set(t,()=>{s&&i.ruleRegistry.deregister(t),c&&i.actionRegistry.deregister(t)})},async processStopped(t){let n=e.get(t);if(n){try{n()}catch(e){console.error(`[TransitionContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function pi(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function mi(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}const hi=[F,ot,q,f,Nr,Lr,J,Y,fr,pr,mr,hr,X,I,Ir,rr,Qn,ni,Pr,k,G,ri,L,Fr,gt,Ut,Xr,K,e,Z,Yr];export{ti as AdapterIdentityRegistry,xe as AdapterRegistry,F as AdapterRuntimeNamespace,ut as AdapterRuntimeSchemas,ht as AdapterRuntimeSubjects,ir as AgentInstanceStatusSchema,q as AgentRuntimeNamespace,ar as AgentRuntimeSchemas,or as AgentRuntimeSelectionSchema,sr as AgentRuntimeSubjects,f as AgentStorageNamespace,ae as AgentStorageSubjects,wn as ArtifactLifecycleHookRegistry,V as ArtifactLifecycleHookRegistryToken,$t as ArtifactLifecycleHookRejectedError,fn as ArtifactSchemaRegistry,z as ArtifactSchemaRegistryToken,At as BugEntrySchema,we as CONNECTOR_SWAP_DEFAULT_PIPELINE,zn as CachedRegistryFetcher,dn as CanonicalModelResolutionError,un as CanonicalModelResolver,Zt as CanonicalModelService,jn as CapabilityService,Cn as CapabilityToken,cr as CodebaseChangedEventSchema,J as CodebaseNamespace,lr as CodebaseSchemas,ur as CodebaseSubjects,jt as CompressRequestSchema,Mt as CompressResponseSchema,Nt as CompressionEventSchema,Y as CompressionNamespace,Pt as CompressionSchemas,dr as CompressionSubjects,Er as ContainerCreatedSchema,Or as ContainerDestroyedSchema,_t as ContainerIsolatedExecutionTargetSchema,_r as ContainerIsolatedSpawnRequestSchema,vt as ContainerLocalExecutionTargetSchema,Cr as ContainerLocalSpawnRequestSchema,Ar as ContainerRuntimeSchema,kr as ContainerSpawnNamespace,Tr as ContainerSpawnSubjects,vr as ContainerStartedSchema,yr as ContainerStateSchema,Dr as ContainerStoppedSchema,$e as ContextWindowTracker,X as DockerNamespace,Sr as DockerSubjects,Qe as EmbeddingIndexManager,yt as ExecutionTargetInputSchema,bt as ExecutionTargetListQuerySchema,I as ExecutionTargetNamespace,xt as ExecutionTargetResolveRequestSchema,St as ExecutionTargetSchema,Ct as ExecutionTargetSchemas,Et as ExecutionTargetSubjects,wt as ExecutionTargetTypeSchema,Ft as ExtractedContextSchema,en as FacetNamespaceRegistry,U as FacetNamespaceRegistryToken,In as FallbackRegistryFetcher,hi as FrameworkServicesCoreNamespaces,Tt as LocalExecutionTargetSchema,Je as MakaioSession,Fe as MakaioSessionService,k as MessageRoutingNamespace,Me as MessageRoutingSubjects,Dt as MessageStorageNamespace,Ot as MessageStorageSubjects,G as ModelRegistryNamespace,Ln as ModelRegistryProviderNotFoundError,Nn as ModelRegistrySchema,Fn as ModelRegistrySchemas,Pn as ModelRegistryService,Rn as ModelRegistrySubjects,hn as ModelRegistryToken,Rt as PreferenceItemSchema,zt as PreferenceKeySchema,Bt as PreferenceValueSchema,L as PreferencesNamespace,Vt as PreferencesSchemas,Ht as PreferencesSubjects,Bn as ProviderModelOverrideSchema,dt as ResolveIdRequestSchema,ft as ResolveIdResponseSchema,pt as ResolveNameRequestSchema,mt as ResolveNameResponseSchema,O as SessionBridge,xn as SessionBridgeToken,u as SessionEventStorageNamespace,c as SessionEventStorageSubjects,Ee as SessionExtensionContextImpl,Be as SessionLogger,Ce as SessionOrchestrator,En as SessionOrchestratorToken,ee as SessionStorageNamespace,d as SessionStorageSubjects,gn as SessionStorageToken,_n as SessionToken,Oe as SessionTurnManager,wr as SpawnRequestSchema,xr as SpawnResponseSchema,br as StatusRequestSchema,gr as StatusResponseSchema,jr as StopRequestSchema,Mr as StopResponseSchema,$n as SubagentManager,tr as SubagentService,nr as SubagentServiceToken,Rr as SubagentTemplateCompletedEventSchema,zr as SubagentTemplateCreateSchema,Br as SubagentTemplateInstanceSchema,Vr as SubagentTemplateInstanceStatusSchema,Z as SubagentTemplateKernelNamespace,Hr as SubagentTemplateKernelSchemas,Ur as SubagentTemplateSchema,Wr as SubagentTemplateSettingsSchemas,Gr as SubagentTemplateSpawnRequestSchema,Kr as SubagentTemplateSpawnedEventSchema,Zr as SubagentTemplateSubjects,qr as SubagentTemplateSummarySchema,Jr as SubagentTemplateUpdateSchema,Xt as SurfaceBindingRegistry,H as SurfaceBindingRegistryToken,It as TechnicalDetailsSchema,Lt as TodoEntrySchema,Vn as ToolApprovalService,Sn as ToolApprovalToken,Gt as ToolRegistry,vn as ToolRegistryToken,tn as TransitionActionRegistry,Yt as TransitionPipelineService,B as TransitionPipelineToken,Qt as TransitionRuleRegistry,Hn as TrayMenuEntrySchema,Un as TrayMenuGroupEntrySchema,Wn as TrayMenuGroupSchema,Gn as TrayMenuItemClickedSchema,Kn as TrayMenuListEntrySchema,qn as TrayMenuMetadataSchema,K as TrayMenuNamespace,Jn as TrayMenuSchemas,Yn as TrayMenuSectionSchema,Zn as TrayMenuService,Xn as TrayMenuSubjects,pn as TrayMenuToken,D as Turn,be as TurnContextEnricher,kt as TurnStorageNamespace,t as TurnStorageSubjects,sn as WORKFLOW_START_ACTION_TYPE,An as WorkflowBlockRegistry,W as WorkflowBlockRegistryToken,m as actionRegistry,lt as activateProviderContext,st as activateProviderContextStrict,n as agents,kn as artifactLifecycleHookRegistryPackage,mn as artifactSchemaRegistryPackage,_ as assembleForkContext,$r as buildDeterministicAdapterId,ct as buildProviderContext,re as buildRecoveryContext,le as buildRecoveryContextWithPipeline,te as buildSessionContext,y as buildTurnInitiator,R as canonicalModelPackage,On as capabilityPackage,oi as createArtifactKindContributionProcessor,ci as createArtifactLifecycleHookContributionProcessor,li as createFacetNamespaceContributionProcessor,cn as createModelRegistryPackage,Ge as createSessionExtensionContext,ui as createSurfaceBindingContributionProcessor,Tn as createToolContributionProcessor,fi as createTransitionContributionProcessor,di as createWorkflowBlockContributionProcessor,ne as ensureAgentCwd,T as ensureAgentModel,de as extractTextContent,Kt as facetNamespaceRegistryPackage,qe as fetchAgentsBySession,He as fetchMessageCountsBySession,Ve as fetchPreviewBySession,rt as fetchSessionPreviewMaps,g as findTurnByAgent,Dn as frameworkCorePackages,ce as getFullConversation,ve as getOrCreateSession,Ke as importCursors,et as importCursorsDual,j as kindToBranchKind,ke as mapAgentsBySession,Ie as mapRowToSession,A as mapToSession,Mn as mergeModelMetadata,P as messageRouting,je as messageRoutingDual,o as messages,he as normalizeSelectionString,w as normalizeToBlocks,tt as parseForkTransforms,We as pickFallbackRuntimeOptions,ue as recoverAgent,me as registerAbandonHandler,ei as registerAdapterRuntimeIdentityHandlers,C as registerAttachHandler,v as registerBuiltInActions,fe as registerCompressHandler,Ue as registerCompressLineageResolver,Pe as registerCoreSessionServiceHandlers,nt as registerDrizzleAgentStorage,ze as registerDrizzleImportCursorStorage,at as registerDrizzleMessageRoutingStorage,N as registerDrizzleMessageStorage,Se as registerDrizzleSessionEventStorage,Re as registerDrizzleSessionStorage,E as registerDrizzleTurnStorage,ye as registerForkHandler,Ye as registerFtsSearchHandler,De as registerGetStatusCountsHandler,Te as registerListActionsHandler,it as registerMemoryAgentStorage,Ne as registerMemoryMessageStorage,Xe as registerMemorySessionEventStorage,Ae as registerMemorySessionStorage,pe as registerMemoryTurnStorage,b as registerMergeHandler,Le as registerParentResolver,M as registerResumeHandler,Ze as registerSpawningToolCallResolver,x as resetBuiltInActionsRegistration,p as resolveAdapterId,ge as resolveAdapterNameById,Qr as resolveDeterministicAdapterId,oe as resolveExecutionTarget,se as resolveModelCapabilities,_e as resolveTargetAgents,S as routeToAgents,h as routeToAgentsCore,ln as sessionBridgePackage,l as sessionEvents,s as sessionEventsDual,Jt as sessionOrchestratorPackage,qt as sessionPackage,an as sessionStoragePackage,r as sessions,er as subagentServicePackage,bn as surfaceBindingRegistryPackage,Wt as toolApprovalPackage,yn as toolRegistryPackage,nn as transitionPipelinePackage,rn as trayMenuPackage,a as turns,i as turnsDual,ie as verifyAndRecoverAgents,on as workflowBlockRegistryPackage};
1
+ import{TurnStorageNamespace as e,TurnStorageSubjects as t}from"./turn/namespace.mjs";import{agents as n,sessions as r}from"./session/storage/schema.mjs";import{n as i,t as a}from"../schema-DHlTAy0N.mjs";import{t as o}from"../schema-D6WAI8OL.mjs";import{i as s,n as c,r as l,t as u}from"../namespace-C-piH3w4.mjs";import{SessionStorageNamespace as d,SessionStorageSubjects as f}from"./session/storage/namespace.mjs";import{A as p,C as m,D as h,E as ee,F as g,M as te,N as ne,O as re,P as _,S as ie,T as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as de,g as fe,h as pe,i as me,j as he,k as ge,l as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,w as v,x as y,y as b}from"../handlers-BAycjV02.mjs";import{A as x,B as S,C,E as w,F as T,G as E,H as D,I as De,J as Oe,K as ke,L as Ae,M as je,N as Me,O as Ne,P as Pe,R as Fe,S as Ie,T as Le,U as Re,V as ze,W as Be,X as Ve,Y as He,_ as Ue,a as We,b as Ge,c as Ke,d as qe,g as Je,h as Ye,i as Xe,j as Ze,k as Qe,l as $e,m as et,o as tt,p as nt,q as rt,r as it,s as at,t as ot,u as st,v as ct,w as lt,x as ut,y as dt,z as ft}from"../session-0nWT4st6.mjs";import{t as pt}from"../namespace-DBHwyhME.mjs";import{n as mt,r as ht,t as gt}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as _t,ResolveIdRequestSchema as vt,ResolveIdResponseSchema as yt,ResolveNameRequestSchema as bt,ResolveNameResponseSchema as xt}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as O,AdapterRuntimeSubjects as St}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as Ct}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as wt,ContainerLocalExecutionTargetSchema as Tt,ExecutionTargetInputSchema as Et,ExecutionTargetListQuerySchema as Dt,ExecutionTargetResolveRequestSchema as Ot,ExecutionTargetSchema as kt,ExecutionTargetSchemas as At,ExecutionTargetTypeSchema as jt,LocalExecutionTargetSchema as Mt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as k,ExecutionTargetSubjects as Nt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Pt,MessageStorageSubjects as Ft}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as It}from"./session/turns/namespace.mjs";import{BugEntrySchema as Lt,CompressRequestSchema as Rt,CompressResponseSchema as zt,CompressionEventSchema as Bt,CompressionSchemas as Vt,ExtractedContextSchema as Ht,TechnicalDetailsSchema as Ut,TodoEntrySchema as Wt}from"./compression/schemas.mjs";import{PreferenceItemSchema as Gt,PreferenceKeySchema as Kt,PreferenceValueSchema as qt,PreferencesSchemas as Jt}from"./preferences/schemas.mjs";import{PreferencesNamespace as A,PreferencesSubjects as Yt}from"./preferences/storage-namespace.mjs";import{t as Xt}from"../namespace-wke7juzy.mjs";import{A as Zt,B as Qt,C as $t,D as en,E as tn,F as nn,G as rn,H as an,I as on,J as sn,K as cn,L as ln,M as un,N as dn,O as fn,P as pn,R as mn,S as hn,T as gn,U as _n,V as vn,W as yn,Y as bn,_ as xn,a as j,b as Sn,c as Cn,d as wn,f as M,g as N,h as Tn,i as P,j as En,k as Dn,l as On,m as kn,o as An,p as F,q as jn,r as Mn,s as I,u as Nn,v as L,w as Pn,x as Fn,y as In,z as Ln}from"../tools-DFOsOboy.mjs";import{t as Rn}from"../capability-service-XlymTzz1.mjs";import{a as zn,c as Bn,i as Vn,l as Hn,n as Un,o as R,r as Wn,s as Gn,t as Kn,u as qn}from"../model-registry-rYICIwyR.mjs";import{t as Jn}from"../tool-approval-service-DEQiipxj.mjs";import{TrayMenuEntrySchema as Yn,TrayMenuGroupEntrySchema as Xn,TrayMenuGroupSchema as Zn,TrayMenuItemClickedSchema as Qn,TrayMenuListEntrySchema as $n,TrayMenuMetadataSchema as er,TrayMenuSchemas as tr,TrayMenuSectionSchema as nr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as z,TrayMenuSubjects as rr}from"./tray-menu/namespace.mjs";import{t as ir}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ar}from"../handler-2bPhRn0u.mjs";import{i as or,n as sr,r as cr,t as lr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as ur}from"./filesystem/namespace.mjs";import"./capability/index.mjs";import"./tool-approval/index.mjs";import"./tray-menu/index.mjs";import"./subagent/index.mjs";import{AgentInstanceStatusSchema as dr,AgentRuntimeSchemas as fr,AgentRuntimeSelectionSchema as pr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as B,AgentRuntimeSubjects as mr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as hr,CodebaseSchemas as gr}from"./codebase/schemas.mjs";import{CodebaseNamespace as V,CodebaseSubjects as _r}from"./codebase/namespace.mjs";import{CompressionNamespace as H,CompressionSubjects as vr}from"./compression/namespace.mjs";import{r as yr,t as br}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as xr}from"./definition/namespace.mjs";import{DialogNamespace as Sr}from"./dialog/namespace.mjs";import{_ as Cr,c as wr,d as Tr,f as Er,g as Dr,h as Or,i as kr,l as Ar,m as jr,n as Mr,o as Nr,p as Pr,r as U,s as Fr,t as Ir,u as Lr,v as Rr,y as zr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as Br}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Vr}from"./local-notification/namespace.mjs";import{t as Hr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Ur}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Wr}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Gr,SubagentTemplateCreateSchema as Kr,SubagentTemplateInstanceSchema as qr,SubagentTemplateInstanceStatusSchema as Jr,SubagentTemplateKernelSchemas as Yr,SubagentTemplateSchema as Xr,SubagentTemplateSettingsSchemas as Zr,SubagentTemplateSpawnRequestSchema as Qr,SubagentTemplateSpawnedEventSchema as $r,SubagentTemplateSummarySchema as ei,SubagentTemplateUpdateSchema as ti}from"./subagent-template/schemas.mjs";import{r as ni,t as ri}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as W,SubagentTemplateSubjects as ii}from"./subagent-template/namespace.mjs";import{i as ai,n as oi,r as si,t as ci}from"../identity-BarL3JYI.mjs";import"./adapter-runtime/index.mjs";import"./agent-runtime/index.mjs";import"./codebase/index.mjs";import"./compression/index.mjs";import"./preferences/index.mjs";import"./subagent-template/index.mjs";import{ArtifactSubjects as li}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as ui}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as di}from"@makaio/framework/contracts/model-registry";function fi(e){return{source:`extension`,ownerKey:`extension:${e}`}}function pi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function mi(){let e=new Map,t=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterKind(t.kind,t.schemaVersion,n.owner)}pi(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(j);if(!a)throw Error(`ArtifactSchemaRegistry is not available — ensure artifact-schema-registry is started before extensions with artifactKinds.`);let o=(r.artifactKinds?.kinds??[]).map(e=>e.toRegistration()),s=fi(n);t(n);for(let e of o)a.registerKind(e,s);e.set(n,{registry:a,owner:s,registrations:o})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactContributionProcessor] Deregister error for "${e}":`,t)}}}}function hi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function gi(){let e=new Map,t=t=>{let n=e.get(t);n&&(e.delete(t),n.cleanup())};return{filter:e=>{let t=e.artifactLifecycleHooks!=null,n=(e.artifactKinds?.kinds??[]).some(e=>(e.hooks?.hooks.length??0)>0);return t||n},async processActivated(n,r,i){let a=i.getService(P);if(!a)throw Error(`ArtifactLifecycleHookRegistry is not available — ensure artifact-lifecycle-hook-registry is started before extensions with artifact lifecycle hooks.`);let o=r.artifactLifecycleHooks?[...await r.artifactLifecycleHooks.createHooks({bus:i.bus,extensionName:n})]:[],s=[];for(let e of r.artifactKinds?.kinds??[])if(e.hooks)for(let t of e.hooks.hooks)s.push(hi(e.kind,e.schemaVersion,t));let c=[...o,...s];t(n);let l=a.registerHooks(n,c);e.set(n,{cleanup:l})},async processStopped(e){try{t(e)}catch(t){console.error(`[ArtifactLifecycleHookContributionProcessor] Deregister error for "${e}":`,t)}}}}async function _i(e){let t=e.maxDepth??5,n={bus:e.bus,kindRegistry:e.kindRegistry,maxDepth:t,resolvedByKey:new Map,kindDefaultsCache:new Map,walkedByKey:new Set,refIndexByKey:new Map,resolved:[],refs:[]},r=await K(n,e.ref);if(!r)throw Error(`artifact.resolveContext: root artifact '${e.ref.kind}:${e.ref.id}:${e.ref.revision}' not found`);return n.resolved.push(r),await G(n,r,J(await q(n,r),e.selectors),0,new Set([Z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function G(e,t,n,r,i){let a=wi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=xi(t);for(let a of t.relations)await vi(e,o,a,n,r,i)}async function vi(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!yi(o,n.target)){X(e,Y(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){X(e,Y(t,n,s,`unsupported-ref-class`));return}let c=Z(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){X(e,Y(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await K(e,n.target);if(!d){X(e,Y(t,n,s,`not-found`));return}if(X(e,{sourceRef:t,target:n.target,relationType:n.type,hint:s,status:`resolved`}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=f>0?{[n.type]:{...o,depth:f}}:void 0,m=J(J(await q(e,d),p),o.nested),h=new Set(a);h.add(c),await G(e,d,m,i+1,h)}async function K(e,t){let n=Z(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(li.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}async function q(e,t){let n=JSON.stringify([t.kind,t.schemaVersion]);if(e.kindDefaultsCache.has(n))return e.kindDefaultsCache.get(n);let r=(await e.kindRegistry.getKind(t.kind,t.schemaVersion))?.defaultContext;return e.kindDefaultsCache.set(n,r),r}function J(e,t){if(!t)return e;if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]=r;return n}function yi(e,t){return e?e.kinds?e.kinds.includes(bi(t)):!0:!1}function bi(e){return e.refClass===`local`?e.artifact.kind:e.kind}function Y(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,hint:n,status:`unresolved`,reason:r}}function X(e,t){let n=Si(t),r=e.refIndexByKey.get(n);if(r===void 0){e.refIndexByKey.set(n,e.refs.length),e.refs.push(t);return}t.status===`resolved`&&e.refs[r]?.status===`unresolved`&&(e.refs[r]=t)}function xi(e){return{refClass:`artifact`,kind:e.kind,id:e.id,revision:e.revision}}function Z(e){return JSON.stringify([e.kind,e.id,e.revision])}function Si(e){return JSON.stringify([Z(e.sourceRef),e.relationType,Ci(e.target)])}function Ci(e){return e.refClass===`artifact`?JSON.stringify([`artifact`,e.kind,e.id,e.revision]):e.refClass===`local`?JSON.stringify([`local`,Z(e.artifact),e.localId]):JSON.stringify([`evidence`,e.kind,e.id,e.revision??null,e.locator??null])}function wi(e,t,n,r){return JSON.stringify([e.kind,e.id,e.revision,n,t??null,[...r].sort()])}function Q(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Ti(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerNamespace(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterNamespace(t.namespace)}Q(e,n.registry)}};return{filter:e=>(e.facetNamespaces?.namespaces?.length??0)>0,async processActivated(r,i,a){let o=a.getService(I);if(!o)throw Error(`FacetNamespaceRegistry is not available — ensure facet-namespace-registry is started before extensions with facetNamespaces.`);let s=(i.facetNamespaces?.namespaces??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerNamespace(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterNamespace(l[e].namespace);throw Q(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[FacetNamespaceContributionProcessor] Deregister error for "${e}":`,t)}}}}function $(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerBinding(e)}function Ei(){let e=new Map,t=(t,n)=>{if(n){for(let e of n.registrations)n.registry.registerBinding(e);e.set(t,n)}},n=t=>{let n=e.get(t);if(n){e.delete(t);for(let e=n.registrations.length-1;e>=0;--e){let t=n.registrations[e];n.registry.deregisterBinding(t.id)}$(e,n.registry)}};return{filter:e=>(e.surfaceBindings?.bindings?.length??0)>0,async processActivated(r,i,a){let o=a.getService(F);if(!o)throw Error(`SurfaceBindingRegistry is not available — ensure surface-binding-registry is started before extensions with surfaceBindings.`);let s=(i.surfaceBindings?.bindings??[]).map(e=>e.toRegistration()),c=e.get(r);n(r);let l=[];try{for(let e of s)o.registerBinding(e),l.push(e)}catch(n){for(let e=l.length-1;e>=0;--e)o.deregisterBinding(l[e].id);throw $(e,o),t(r,c),n}e.set(r,{registry:o,registrations:s})},async processStopped(e){try{n(e)}catch(t){console.error(`[SurfaceBindingContributionProcessor] Deregister error for "${e}":`,t)}}}}function Di(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(L);if(!i)throw Error(`WorkflowBlockRegistry is not available — ensure workflow-block-registry is started before extensions with workflowBlocks.`);await i.register(t,n.workflowBlocks.blocks),e.set(t,()=>i.deregister(t))},async processStopped(t){let n=e.get(t);if(n){try{await n()}catch(e){console.error(`[WorkflowBlockContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function Oi(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(N);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${N.name}' is started before extensions with transitionRules or transitionActions.`);let a=n.transitionRules?.rules??[],o=n.transitionActions?.actions,s=a.length>0,c=o!==void 0;s&&ki(t,a),c&&Ai(t,o);let l=!1,u=!1;try{s&&(i.ruleRegistry.register(t,a),l=!0),c&&(i.actionRegistry.register(t,o),u=!0)}catch(e){throw l&&i.ruleRegistry.deregister(t),u&&i.actionRegistry.deregister(t),e}e.set(t,()=>{s&&i.ruleRegistry.deregister(t),c&&i.actionRegistry.deregister(t)})},async processStopped(t){let n=e.get(t);if(n){try{n()}catch(e){console.error(`[TransitionContributionProcessor] Deregister error for "${t}":`,e)}e.delete(t)}}}}function ki(e,t){let n=`${e}.`;for(let e of t)if(!e.id.startsWith(n))throw Error(`TransitionContributionProcessor: rule '${e.id}' must be namespaced by extension '${n}'`)}function Ai(e,t){let n=`${e}.`;for(let e of Object.keys(t))if(!e.startsWith(n))throw Error(`TransitionContributionProcessor: action type '${e}' must be namespaced by extension '${n}'`)}const ji=[O,pt,B,_,Br,Wr,V,H,yr,br,xr,Sr,U,k,Ur,ur,ar,ui,Vr,S,R,di,A,Hr,Ct,Xt,ri,z,e,W,ni];export{ci as AdapterIdentityRegistry,Oe as AdapterRegistry,O as AdapterRuntimeNamespace,_t as AdapterRuntimeSchemas,St as AdapterRuntimeSubjects,dr as AgentInstanceStatusSchema,B as AgentRuntimeNamespace,fr as AgentRuntimeSchemas,pr as AgentRuntimeSelectionSchema,mr as AgentRuntimeSubjects,_ as AgentStorageNamespace,g as AgentStorageSubjects,jn as ArtifactLifecycleHookRegistry,P as ArtifactLifecycleHookRegistryToken,sn as ArtifactLifecycleHookRejectedError,bn as ArtifactSchemaRegistry,j as ArtifactSchemaRegistryToken,Lt as BugEntrySchema,je as CONNECTOR_SWAP_DEFAULT_PIPELINE,Kn as CachedRegistryFetcher,yn as CanonicalModelResolutionError,_n as CanonicalModelResolver,an as CanonicalModelService,Rn as CapabilityService,An as CapabilityToken,hr as CodebaseChangedEventSchema,V as CodebaseNamespace,gr as CodebaseSchemas,_r as CodebaseSubjects,Rt as CompressRequestSchema,zt as CompressResponseSchema,Bt as CompressionEventSchema,H as CompressionNamespace,Vt as CompressionSchemas,vr as CompressionSubjects,Nr as ContainerCreatedSchema,Fr as ContainerDestroyedSchema,wt as ContainerIsolatedExecutionTargetSchema,wr as ContainerIsolatedSpawnRequestSchema,Tt as ContainerLocalExecutionTargetSchema,Ar as ContainerLocalSpawnRequestSchema,Lr as ContainerRuntimeSchema,Ir as ContainerSpawnNamespace,Mr as ContainerSpawnSubjects,Tr as ContainerStartedSchema,Er as ContainerStateSchema,Pr as ContainerStoppedSchema,ot as ContextWindowTracker,U as DockerNamespace,kr as DockerSubjects,at as EmbeddingIndexManager,Et as ExecutionTargetInputSchema,Dt as ExecutionTargetListQuerySchema,k as ExecutionTargetNamespace,Ot as ExecutionTargetResolveRequestSchema,kt as ExecutionTargetSchema,At as ExecutionTargetSchemas,Nt as ExecutionTargetSubjects,jt as ExecutionTargetTypeSchema,Ht as ExtractedContextSchema,cn as FacetNamespaceRegistry,I as FacetNamespaceRegistryToken,Un as FallbackRegistryFetcher,ji as FrameworkServicesCoreNamespaces,Mt as LocalExecutionTargetSchema,tt as MakaioSession,He as MakaioSessionService,S as MessageRoutingNamespace,ze as MessageRoutingSubjects,Pt as MessageStorageNamespace,Ft as MessageStorageSubjects,R as ModelRegistryNamespace,Wn as ModelRegistryProviderNotFoundError,Bn as ModelRegistrySchema,Hn as ModelRegistrySchemas,Vn as ModelRegistryService,Gn as ModelRegistrySubjects,Cn as ModelRegistryToken,Gt as PreferenceItemSchema,Kt as PreferenceKeySchema,qt as PreferenceValueSchema,A as PreferencesNamespace,Jt as PreferencesSchemas,Yt as PreferencesSubjects,qn as ProviderModelOverrideSchema,vt as ResolveIdRequestSchema,yt as ResolveIdResponseSchema,bt as ResolveNameRequestSchema,xt as ResolveNameResponseSchema,x as SessionBridge,On as SessionBridgeToken,u as SessionEventStorageNamespace,c as SessionEventStorageSubjects,Ne as SessionExtensionContextImpl,qe as SessionLogger,Ae as SessionOrchestrator,Nn as SessionOrchestratorToken,d as SessionStorageNamespace,f as SessionStorageSubjects,wn as SessionStorageToken,M as SessionToken,Fe as SessionTurnManager,jr as SpawnRequestSchema,Or as SpawnResponseSchema,Dr as StatusRequestSchema,Cr as StatusResponseSchema,Rr as StopRequestSchema,zr as StopResponseSchema,or as SubagentManager,cr as SubagentService,lr as SubagentServiceToken,Gr as SubagentTemplateCompletedEventSchema,Kr as SubagentTemplateCreateSchema,qr as SubagentTemplateInstanceSchema,Jr as SubagentTemplateInstanceStatusSchema,W as SubagentTemplateKernelNamespace,Yr as SubagentTemplateKernelSchemas,Xr as SubagentTemplateSchema,Zr as SubagentTemplateSettingsSchemas,Qr as SubagentTemplateSpawnRequestSchema,$r as SubagentTemplateSpawnedEventSchema,ii as SubagentTemplateSubjects,ei as SubagentTemplateSummarySchema,ti as SubagentTemplateUpdateSchema,rn as SurfaceBindingRegistry,F as SurfaceBindingRegistryToken,Ut as TechnicalDetailsSchema,Wt as TodoEntrySchema,Jn as ToolApprovalService,kn as ToolApprovalToken,Qt as ToolRegistry,Tn as ToolRegistryToken,ln as TransitionActionRegistry,nn as TransitionPipelineService,N as TransitionPipelineToken,on as TransitionRuleRegistry,Yn as TrayMenuEntrySchema,Xn as TrayMenuGroupEntrySchema,Zn as TrayMenuGroupSchema,Qn as TrayMenuItemClickedSchema,$n as TrayMenuListEntrySchema,er as TrayMenuMetadataSchema,z as TrayMenuNamespace,tr as TrayMenuSchemas,nr as TrayMenuSectionSchema,ir as TrayMenuService,rr as TrayMenuSubjects,xn as TrayMenuToken,b as Turn,De as TurnContextEnricher,It as TurnStorageNamespace,t as TurnStorageSubjects,mn as WORKFLOW_START_ACTION_TYPE,Ln as WorkflowBlockRegistry,L as WorkflowBlockRegistryToken,ge as actionRegistry,gt as activateProviderContext,mt as activateProviderContextStrict,n as agents,In as artifactLifecycleHookRegistryPackage,Sn as artifactSchemaRegistryPackage,ye as assembleForkContext,oi as buildDeterministicAdapterId,ht as buildProviderContext,h as buildRecoveryContext,ie as buildRecoveryContextWithPipeline,p as buildSessionContext,xe as buildTurnInitiator,vn as canonicalModelPackage,Fn as capabilityPackage,mi as createArtifactKindContributionProcessor,gi as createArtifactLifecycleHookContributionProcessor,Ti as createFacetNamespaceContributionProcessor,hn as createModelRegistryPackage,Qe as createSessionExtensionContext,Ei as createSurfaceBindingContributionProcessor,Mn as createToolContributionProcessor,Oi as createTransitionContributionProcessor,Di as createWorkflowBlockContributionProcessor,m as ensureAgentCwd,v as ensureAgentModel,oe as extractTextContent,$t as facetNamespaceRegistryPackage,et as fetchAgentsBySession,Ye as fetchMessageCountsBySession,Je as fetchPreviewBySession,ut as fetchSessionPreviewMaps,ve as findTurnByAgent,Pn as frameworkCorePackages,re as getFullConversation,pe as getOrCreateSession,$e as importCursors,st as importCursorsDual,w as kindToBranchKind,Ie as mapAgentsBySession,Ue as mapRowToSession,C as mapToSession,zn as mergeModelMetadata,D as messageRouting,Re as messageRoutingDual,o as messages,ue as normalizeSelectionString,Ee as normalizeToBlocks,ct as parseForkTransforms,Ze as pickFallbackRuntimeOptions,ae as recoverAgent,le as registerAbandonHandler,si as registerAdapterRuntimeIdentityHandlers,Te as registerAttachHandler,be as registerBuiltInActions,se as registerCompressHandler,Xe as registerCompressLineageResolver,Ve as registerCoreSessionServiceHandlers,lt as registerDrizzleAgentStorage,Ke as registerDrizzleImportCursorStorage,ft as registerDrizzleMessageRoutingStorage,E as registerDrizzleMessageStorage,ke as registerDrizzleSessionEventStorage,Ge as registerDrizzleSessionStorage,y as registerDrizzleTurnStorage,me as registerForkHandler,nt as registerFtsSearchHandler,Pe as registerGetStatusCountsHandler,Me as registerListActionsHandler,dt as registerMemoryAgentStorage,Be as registerMemoryMessageStorage,rt as registerMemorySessionEventStorage,Le as registerMemorySessionStorage,ce as registerMemoryTurnStorage,Se as registerMergeHandler,We as registerParentResolver,T as registerResumeHandler,it as registerSpawningToolCallResolver,Ce as resetBuiltInActionsRegistration,he as resolveAdapterId,de as resolveAdapterNameById,_i as resolveArtifactContext,ai as resolveDeterministicAdapterId,te as resolveExecutionTarget,ne as resolveModelCapabilities,fe as resolveTargetAgents,we as routeToAgents,_e as routeToAgentsCore,gn as sessionBridgePackage,l as sessionEvents,s as sessionEventsDual,tn as sessionOrchestratorPackage,en as sessionPackage,fn as sessionStoragePackage,r as sessions,sr as subagentServicePackage,Dn as surfaceBindingRegistryPackage,Zt as toolApprovalPackage,En as toolRegistryPackage,un as transitionPipelinePackage,dn as trayMenuPackage,a as turns,i as turnsDual,ee as verifyAndRecoverAgents,pn as workflowBlockRegistryPackage};
@@ -1,10 +1,10 @@
1
- import { $ as fetchMessageCountsBySession, A as registerMemoryTurnStorage, At as RecoveryConfig, B as registerMemorySessionEventStorage, Bt as findTurnByAgent, C as messages, Ct as registerGetStatusCountsHandler, D as SelectTurn, Dt as ContextWindowTrackerConfig, E as InsertTurn, Et as AgentContextState, F as importCursorsDual, Ft as verifyAndRecoverAgents, G as getSessionAncestorChain, Gt as TurnContextEnricher, H as SelectSessionEvent, Ht as resolveTargetAgents, I as EventTransform, It as buildRecoveryContext, J as mapAgentsBySession, Jt as SessionOrchestrator, K as SessionPreviewMaps, Kt as AdapterRegistry, L as SessionLogger, Lt as resolveAdapterId, M as EmbeddingIndexManager, Mt as ensureAgentCwd, N as registerDrizzleImportCursorStorage, Nt as ensureAgentModel, O as turns, Ot as SessionContextWindowState, P as importCursors, Pt as recoverAgent, Q as fetchAgentsBySession, R as SessionLoggerOptions, Rt as resolveExecutionTarget, S as SelectMessage, St as actionRegistry, T as registerDrizzleMessageStorage, Tt as ContextWindowTracker, U as sessionEvents, Ut as extractTextContent, V as InsertSessionEvent, Vt as getOrCreateSession, W as sessionEventsDual, Wt as normalizeToBlocks, X as SearchFilters, Xt as MakaioSessionService, Y as mapToSession, Yt as registerCoreSessionServiceHandlers, Z as SearchSessionRow, _ as messageRoutingDual, _t as normalizeSelectionString, a as kindToBranchKind, at as registerMemoryAgentStorage, b as MessageRoutingSubjects, bt as registerBuiltInActions, c as registerSpawningToolCallResolver, ct as AgentStorageNamespace, d as MakaioSession, dt as createSessionExtensionContext, et as fetchPreviewBySession, f as MakaioSessionConfig, ft as SessionBridge, g as messageRouting, gt as CONNECTOR_SWAP_DEFAULT_PIPELINE, h as SelectMessageRouting, ht as pickFallbackRuntimeOptions, i as ContextAssemblyResult, it as registerDrizzleAgentStorage, j as registerDrizzleTurnStorage, jt as buildRecoveryContextWithPipeline, k as turnsDual, kt as buildTurnInitiator, l as registerCompressLineageResolver, lt as AgentStorageSubjects, m as InsertMessageRouting, mt as FallbackRuntimeOptions, n as buildSessionContext, nt as parseForkTransforms, o as toSessionLineage, ot as registerDrizzleSessionStorage, p as StartTurnOptions, pt as assembleForkContext, q as fetchSessionPreviewMaps, qt as ISessionOrchestrator, r as BuildContextOptions, rt as registerFtsSearchHandler, s as registerSessionDiscoveredHandler, st as registerMemorySessionStorage, t as getFullConversation, tt as mapRowToSession, u as registerParentResolver, ut as SessionExtensionContextImpl, v as registerDrizzleMessageRoutingStorage, vt as resolveAdapterNameById, w as registerMemoryMessageStorage, wt as registerResumeHandler, x as InsertMessage, xt as resetBuiltInActionsRegistration, y as MessageRoutingNamespace, yt as registerListActionsHandler, z as registerDrizzleSessionEventStorage, zt as resolveModelCapabilities } from "../../index-DDrS0Axp.mjs";
1
+ import { $ as fetchMessageCountsBySession, A as registerMemoryTurnStorage, At as RecoveryConfig, B as registerMemorySessionEventStorage, Bt as findTurnByAgent, C as messages, Ct as registerGetStatusCountsHandler, D as SelectTurn, Dt as ContextWindowTrackerConfig, E as InsertTurn, Et as AgentContextState, F as importCursorsDual, Ft as verifyAndRecoverAgents, G as getSessionAncestorChain, Gt as TurnContextEnricher, H as SelectSessionEvent, Ht as resolveTargetAgents, I as EventTransform, It as buildRecoveryContext, J as mapAgentsBySession, Jt as SessionOrchestrator, K as SessionPreviewMaps, Kt as AdapterRegistry, L as SessionLogger, Lt as resolveAdapterId, M as EmbeddingIndexManager, Mt as ensureAgentCwd, N as registerDrizzleImportCursorStorage, Nt as ensureAgentModel, O as turns, Ot as SessionContextWindowState, P as importCursors, Pt as recoverAgent, Q as fetchAgentsBySession, R as SessionLoggerOptions, Rt as resolveExecutionTarget, S as SelectMessage, St as actionRegistry, T as registerDrizzleMessageStorage, Tt as ContextWindowTracker, U as sessionEvents, Ut as extractTextContent, V as InsertSessionEvent, Vt as getOrCreateSession, W as sessionEventsDual, Wt as normalizeToBlocks, X as SearchFilters, Xt as MakaioSessionService, Y as mapToSession, Yt as registerCoreSessionServiceHandlers, Z as SearchSessionRow, _ as messageRoutingDual, _t as normalizeSelectionString, a as kindToBranchKind, at as registerMemoryAgentStorage, b as MessageRoutingSubjects, bt as registerBuiltInActions, c as registerSpawningToolCallResolver, ct as AgentStorageNamespace, d as MakaioSession, dt as createSessionExtensionContext, et as fetchPreviewBySession, f as MakaioSessionConfig, ft as SessionBridge, g as messageRouting, gt as CONNECTOR_SWAP_DEFAULT_PIPELINE, h as SelectMessageRouting, ht as pickFallbackRuntimeOptions, i as ContextAssemblyResult, it as registerDrizzleAgentStorage, j as registerDrizzleTurnStorage, jt as buildRecoveryContextWithPipeline, k as turnsDual, kt as buildTurnInitiator, l as registerCompressLineageResolver, lt as AgentStorageSubjects, m as InsertMessageRouting, mt as FallbackRuntimeOptions, n as buildSessionContext, nt as parseForkTransforms, o as toSessionLineage, ot as registerDrizzleSessionStorage, p as StartTurnOptions, pt as assembleForkContext, q as fetchSessionPreviewMaps, qt as ISessionOrchestrator, r as BuildContextOptions, rt as registerFtsSearchHandler, s as registerSessionDiscoveredHandler, st as registerMemorySessionStorage, t as getFullConversation, tt as mapRowToSession, u as registerParentResolver, ut as SessionExtensionContextImpl, v as registerDrizzleMessageRoutingStorage, vt as resolveAdapterNameById, w as registerMemoryMessageStorage, wt as registerResumeHandler, x as InsertMessage, xt as resetBuiltInActionsRegistration, y as MessageRoutingNamespace, yt as registerListActionsHandler, z as registerDrizzleSessionEventStorage, zt as resolveModelCapabilities } from "../../index-9b2_jXxq.mjs";
2
2
  import { a as registerCompressHandler, c as SessionTurnManager, d as Turn, f as TurnConfig, h as TurnStateChange, i as registerForkHandler, l as TurnCompleteCallback, m as TurnResult, n as routeToAgents, o as registerAttachHandler, p as TurnContext, r as registerMergeHandler, s as registerAbandonHandler, t as routeToAgentsCore, u as TurnCompletionResult } from "../../index-gAFwNiJT.mjs";
3
3
  import { r as buildProviderContext } from "../../index-DtwGhFFQ.mjs";
4
- import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-Bz0ORDns.mjs";
5
- import { a as agents, c as sessionsDual, o as agentsDual, s as sessions } from "../../schema-Dky4zu9D.mjs";
4
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../../namespace-DXW-voCe.mjs";
5
+ import { a as agents, c as sessionsDual, o as agentsDual, s as sessions } from "../../schema-D1HrnvT7.mjs";
6
6
  import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../../namespace-KMxsPJwm.mjs";
7
7
  import { t as TurnStorageNamespace } from "../../namespace-LUNf8zo5.mjs";
8
8
  import { n as TurnStorageSubjects } from "../../namespace-BsYKEMd8.mjs";
9
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-CxzW0mIH.mjs";
9
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../../namespace-DGAWYjbO.mjs";
10
10
  export { AdapterRegistry, AgentContextState, AgentStorageNamespace, AgentStorageSubjects, BuildContextOptions, CONNECTOR_SWAP_DEFAULT_PIPELINE, ContextAssemblyResult, ContextWindowTracker, ContextWindowTrackerConfig, EmbeddingIndexManager, EventTransform, FallbackRuntimeOptions, ISessionOrchestrator, InsertMessage, InsertMessageRouting, InsertSessionEvent, InsertTurn, MakaioSession, MakaioSessionConfig, MakaioSessionService, MessageRoutingNamespace, MessageRoutingSubjects, MessageStorageNamespace, MessageStorageSubjects, RecoveryConfig, SearchFilters, SearchSessionRow, SelectMessage, SelectMessageRouting, SelectSessionEvent, SelectTurn, SessionBridge, SessionContextWindowState, SessionEventStorageNamespace, SessionEventStorageSubjects, SessionExtensionContextImpl, SessionLogger, SessionLoggerOptions, SessionOrchestrator, SessionPreviewMaps, SessionStorageNamespace, SessionStorageSubjects, SessionTurnManager, StartTurnOptions, Turn, TurnCompleteCallback, TurnCompletionResult, TurnConfig, TurnContext, TurnContextEnricher, TurnResult, TurnStateChange, TurnStorageNamespace, TurnStorageSubjects, actionRegistry, agents, agentsDual, assembleForkContext, buildProviderContext, buildRecoveryContext, buildRecoveryContextWithPipeline, buildSessionContext, buildTurnInitiator, createSessionExtensionContext, ensureAgentCwd, ensureAgentModel, extractTextContent, fetchAgentsBySession, fetchMessageCountsBySession, fetchPreviewBySession, fetchSessionPreviewMaps, findTurnByAgent, getFullConversation, getOrCreateSession, getSessionAncestorChain, importCursors, importCursorsDual, kindToBranchKind, mapAgentsBySession, mapRowToSession, mapToSession, messageRouting, messageRoutingDual, messages, normalizeSelectionString, normalizeToBlocks, parseForkTransforms, pickFallbackRuntimeOptions, recoverAgent, registerAbandonHandler, registerAttachHandler, registerBuiltInActions, registerCompressHandler, registerCompressLineageResolver, registerCoreSessionServiceHandlers, registerDrizzleAgentStorage, registerDrizzleImportCursorStorage, registerDrizzleMessageRoutingStorage, registerDrizzleMessageStorage, registerDrizzleSessionEventStorage, registerDrizzleSessionStorage, registerDrizzleTurnStorage, registerForkHandler, registerFtsSearchHandler, registerGetStatusCountsHandler, registerListActionsHandler, registerMemoryAgentStorage, registerMemoryMessageStorage, registerMemorySessionEventStorage, registerMemorySessionStorage, registerMemoryTurnStorage, registerMergeHandler, registerParentResolver, registerResumeHandler, registerSessionDiscoveredHandler, registerSpawningToolCallResolver, resetBuiltInActionsRegistration, resolveAdapterId, resolveAdapterNameById, resolveExecutionTarget, resolveModelCapabilities, resolveTargetAgents, routeToAgents, routeToAgentsCore, sessionEvents, sessionEventsDual, sessions, sessionsDual, toSessionLineage, turns, turnsDual, verifyAndRecoverAgents };
@@ -1,2 +1,2 @@
1
- import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-CxzW0mIH.mjs";
1
+ import { i as MessageStorageSubjects, n as MessagePageCursorSchema, r as MessageStorageNamespace, t as MessagePageCursor } from "../../../namespace-DGAWYjbO.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-Bz0ORDns.mjs";
1
+ import { a as SessionWithPreview, i as SessionStorageSubjects, n as SessionPreviewDataSchema, o as SessionWithPreviewSchema, r as SessionStorageNamespace, t as SessionPreviewData } from "../../../namespace-DXW-voCe.mjs";
2
2
  export { SessionPreviewData, SessionPreviewDataSchema, SessionStorageNamespace, SessionStorageSubjects, SessionWithPreview, SessionWithPreviewSchema };
@@ -1,2 +1,2 @@
1
- import { a as agents, c as sessionsDual, i as SelectSession, n as InsertSession, o as agentsDual, r as SelectAgent, s as sessions, t as InsertAgent } from "../../../schema-Dky4zu9D.mjs";
1
+ import { a as agents, c as sessionsDual, i as SelectSession, n as InsertSession, o as agentsDual, r as SelectAgent, s as sessions, t as InsertAgent } from "../../../schema-D1HrnvT7.mjs";
2
2
  export { InsertAgent, InsertSession, SelectAgent, SelectSession, agents, agentsDual, sessions, sessionsDual };