@makaio/framework 1.0.0-dev-1782480236258 → 1.0.0-dev-1783355411417

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 (154) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-BRxCc72E.mjs +1 -0
  3. package/dist/adapters/index.d.mts +11 -2
  4. package/dist/adapters/index.mjs +1 -1
  5. package/dist/adapters/node.d.mts +1 -1
  6. package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-BNysGvaM.d.mts} +70 -2
  7. package/dist/bus/index.d.mts +39 -1
  8. package/dist/bus/index.mjs +1 -1
  9. package/dist/bus-D-ioC0DE.mjs +1 -0
  10. package/dist/bus-rgUFuO2a.mjs +2 -0
  11. package/dist/{client-BcfR-LJC.mjs → client-BgUjVbXX.mjs} +1 -1
  12. package/dist/contracts/adapter/index.d.mts +1 -1
  13. package/dist/contracts/adapter/index.mjs +1 -1
  14. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  15. package/dist/contracts/artifact/index.d.mts +1 -1
  16. package/dist/contracts/client/index.d.mts +1 -1
  17. package/dist/contracts/client/index.mjs +1 -1
  18. package/dist/contracts/config/index.d.mts +6 -6
  19. package/dist/contracts/extension/index.d.mts +2 -2
  20. package/dist/contracts/facet/index.d.mts +1 -1
  21. package/dist/contracts/index.d.mts +14 -14
  22. package/dist/contracts/index.mjs +1 -1
  23. package/dist/contracts/materialization/index.d.mts +3 -3
  24. package/dist/contracts/provider/index.d.mts +1 -1
  25. package/dist/contracts/session/index.d.mts +3 -3
  26. package/dist/contracts/session/index.mjs +1 -1
  27. package/dist/contracts/workflow/index.d.mts +2 -2
  28. package/dist/contracts/workflow/index.mjs +1 -1
  29. package/dist/{definition-DePb3ke-.d.mts → definition-b9jyJqPD.d.mts} +1 -1
  30. package/dist/drizzle/0021_m_mr8e1j84.sql +3 -0
  31. package/dist/drizzle/0022_m_mr8i4ky3.sql +43 -0
  32. package/dist/drizzle/meta/_journal.json +14 -0
  33. package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
  34. package/dist/handlers-v47Gbsr1.mjs +57 -0
  35. package/dist/hooks/index.d.mts +8 -0
  36. package/dist/hooks/index.mjs +1 -1
  37. package/dist/{index-BhOLtp0B.d.mts → index-31vR1sxk.d.mts} +47 -29
  38. package/dist/{index-Clqt7Nm3.d.mts → index-3J0HZlPH.d.mts} +372 -87
  39. package/dist/{index-D4gn93gL.d.mts → index-3X0368CL.d.mts} +12 -12
  40. package/dist/{index-gAFwNiJT.d.mts → index-BYfSAJRC.d.mts} +64 -0
  41. package/dist/{index-B1XsbrAr.d.mts → index-BwGfdbI0.d.mts} +6 -6
  42. package/dist/{index-D8ScOpus.d.mts → index-C5C1tk9f.d.mts} +222 -9
  43. package/dist/{index-Cvjnj7Zh.d.mts → index-C6Ys8pxt.d.mts} +5 -5
  44. package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
  45. package/dist/{index-Cyi7y_aG.d.mts → index-D6aAzr32.d.mts} +20 -20
  46. package/dist/{index-wfSedMR9.d.mts → index-D7rWAEY0.d.mts} +2 -1
  47. package/dist/{index-CYHWOXUm.d.mts → index-DEzdNQum.d.mts} +1 -1
  48. package/dist/{index-DsLpP5ek.d.mts → index-DQYj8-53.d.mts} +1 -1
  49. package/dist/{index-0WhPbKnH.d.mts → index-DV4nRk0h.d.mts} +21 -21
  50. package/dist/{index-C6SLILCZ.d.mts → index-DvHYpi-J.d.mts} +378 -176
  51. package/dist/{index-BMbmoarE.d.mts → index-O08Q2ikz.d.mts} +8 -8
  52. package/dist/kernel/extension/index.d.mts +1 -1
  53. package/dist/kernel/index.d.mts +2 -2
  54. package/dist/kernel/observability/index.d.mts +1 -1
  55. package/dist/{lib-Ba55od_d.mjs → lib-BOmKyjWD.mjs} +1 -1
  56. package/dist/{lib-CM_BUxN8.mjs → lib-DLZYp5z3.mjs} +1 -1
  57. package/dist/{loop-gate-handlers-BLoGCWMQ.mjs → loop-gate-handlers-Bjmat-K3.mjs} +1 -1
  58. package/dist/{namespace-CGxFYDlK.d.mts → namespace-B4cV_pk3.d.mts} +32 -32
  59. package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
  60. package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
  61. package/dist/{namespace-BeMGmLrp.d.mts → namespace-DhDY0juT.d.mts} +75 -9
  62. package/dist/{namespace-Bmi5bjm4.d.mts → namespace-DmqoDDRD.d.mts} +156 -20
  63. package/dist/namespace-dFBD2ZmS.mjs +1 -0
  64. package/dist/node/transports/index.d.mts +8 -0
  65. package/dist/node/transports/index.mjs +2 -2
  66. package/dist/orchestrator-shared-ChygCvR1.mjs +1 -0
  67. package/dist/{orchestrator-shared-ChOdIgh6.d.mts → orchestrator-shared-DFLb1otg.d.mts} +9 -3
  68. package/dist/package-BmRhhi-3.mjs +1 -0
  69. package/dist/package.json +1 -1
  70. package/dist/runtime-node/index.mjs +1 -1
  71. package/dist/schema-7aKBGB7S.mjs +1 -0
  72. package/dist/{schema-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
  73. package/dist/{schema-Bf_ZNjif.d.mts → schema-DLNBajAV.d.mts} +23 -1
  74. package/dist/{schemas-D512XweP.d.mts → schemas-DMMWmWjq.d.mts} +4 -4
  75. package/dist/schemas-DZGnr9Tl.mjs +1 -0
  76. package/dist/{schemas-C6TVJ80V2.d.mts → schemas-DuuVuhHX2.d.mts} +2 -2
  77. package/dist/schemas-ftgVeWIG.mjs +1 -0
  78. package/dist/scoped-bus-CZId-Df8.mjs +1 -0
  79. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  80. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  81. package/dist/services/execution-target/index.d.mts +1 -1
  82. package/dist/services/filesystem/namespace.d.mts +6 -6
  83. package/dist/services/filesystem/schemas.d.mts +3 -3
  84. package/dist/services/harness/index.d.mts +1 -1
  85. package/dist/services/harness/index.mjs +1 -1
  86. package/dist/services/index.d.mts +103 -34
  87. package/dist/services/index.mjs +1 -1
  88. package/dist/services/log-import/browser.d.mts +2 -2
  89. package/dist/services/log-import/index.d.mts +73 -6
  90. package/dist/services/log-import/index.mjs +2 -2
  91. package/dist/services/log-import/log-import.d.mts +1 -1
  92. package/dist/services/log-import/log-import.mjs +1 -1
  93. package/dist/services/log-import/namespace.d.mts +56 -2
  94. package/dist/services/log-import/namespace.mjs +1 -1
  95. package/dist/services/log-import/schemas.d.mts +45 -1
  96. package/dist/services/log-import/schemas.mjs +1 -1
  97. package/dist/services/session/handlers/index.d.mts +1 -1
  98. package/dist/services/session/handlers/index.mjs +1 -1
  99. package/dist/services/session/index.d.mts +8 -8
  100. package/dist/services/session/index.mjs +1 -1
  101. package/dist/services/session/messages/namespace.mjs +1 -1
  102. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  103. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  104. package/dist/services/session/session-events/namespace.d.mts +1 -1
  105. package/dist/services/session/session-events/namespace.mjs +1 -1
  106. package/dist/services/session/storage/namespace.d.mts +1 -1
  107. package/dist/services/session/storage/schema.d.mts +1 -1
  108. package/dist/services/session/storage/schema.mjs +1 -1
  109. package/dist/services/session/testing/index.mjs +9 -4
  110. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  111. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  112. package/dist/services/session/turns/namespace.d.mts +1 -1
  113. package/dist/services/session/turns/namespace.mjs +1 -1
  114. package/dist/services/settings/namespace.d.mts +5 -5
  115. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  116. package/dist/services/subagent-template/index.d.mts +1 -1
  117. package/dist/services/subagent-template/schemas.d.mts +1 -1
  118. package/dist/services/tool-approval/index.mjs +1 -1
  119. package/dist/services/tools/index.mjs +1 -1
  120. package/dist/services/turn/index.d.mts +1 -1
  121. package/dist/services/turn/namespace.d.mts +1 -1
  122. package/dist/services/turn/schemas.d.mts +89 -0
  123. package/dist/services/turn/schemas.mjs +1 -1
  124. package/dist/session-CKWfn3oc.mjs +1 -0
  125. package/dist/session-DCbJwYEU.mjs +69 -0
  126. package/dist/{session-lineage-5-wRBzuC.d.mts → session-lineage-DR-9DU-U.d.mts} +1 -1
  127. package/dist/storage/drizzle/index.d.mts +1 -1
  128. package/dist/storage/drizzle/index.mjs +1 -1
  129. package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-MU_DmJsf.mjs} +1 -1
  130. package/dist/tools-BrNm-een.mjs +1 -0
  131. package/dist/{transition-CBjccCMw.d.mts → transition-Dq41YCkc.d.mts} +1 -1
  132. package/dist/{types-InWSdi-V.d.mts → types-BMlzmWp6.d.mts} +11 -1
  133. package/dist/{types-8rhArs_K.d.mts → types-C76EP81O.d.mts} +136 -93
  134. package/dist/ui-components/index.mjs +1 -1
  135. package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
  136. package/dist/workflow-engine/index.d.mts +12 -12
  137. package/dist/workflow-engine/index.mjs +1 -1
  138. package/dist/workflow-engine/package.mjs +1 -1
  139. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  140. package/package.json +1 -1
  141. package/dist/adapter-DaQqmKOJ.mjs +0 -1
  142. package/dist/bus-BgodbPl9.mjs +0 -2
  143. package/dist/bus-HgaFcCZ1.mjs +0 -1
  144. package/dist/handlers-BAycjV02.mjs +0 -41
  145. package/dist/namespace-C-piH3w4.mjs +0 -1
  146. package/dist/orchestrator-shared-Cxk3x8Vs.mjs +0 -1
  147. package/dist/package-B1AXe-oz.mjs +0 -1
  148. package/dist/schema-D6WAI8OL.mjs +0 -1
  149. package/dist/schemas-ArqQTC0Q.mjs +0 -1
  150. package/dist/schemas-uID59wR8.mjs +0 -1
  151. package/dist/scoped-bus-H3xMYR0E.mjs +0 -1
  152. package/dist/session-0nWT4st6.mjs +0 -39
  153. package/dist/session-DH-ja8Ka.mjs +0 -1
  154. package/dist/tools-DFOsOboy.mjs +0 -1
@@ -1,7 +1,7 @@
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-Cyi7y_aG.mjs";
4
+ import { _ as BindingRecord } from "../index-D6aAzr32.mjs";
5
5
  import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-CoFCV42v.mjs";
6
6
  import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-CfvtDD_U.mjs";
7
7
  import { t as CapabilityService } from "../index-C4nStEdA.mjs";
@@ -12,15 +12,15 @@ 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-Clqt7Nm3.mjs";
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";
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 { $t as resolveAdapterId, A as registerMemoryTurnStorage, At as FallbackRuntimeOptions, Bt as registerResumeHandler, C as messages, Ct as registerMemorySessionStorage, D as SelectTurn, Dt as createSessionExtensionContext, E as InsertTurn, Et as SessionExtensionContextImpl, F as importCursorsDual, Ft as registerListActionsHandler, Gt as buildTurnInitiator, Ht as AgentContextState, It as registerBuiltInActions, Jt as ensureAgentCwd, Kt as RecoveryConfig, Lt as resetBuiltInActionsRegistration, M as EmbeddingIndexManager, Mt as CONNECTOR_SWAP_DEFAULT_PIPELINE, N as registerDrizzleImportCursorStorage, Nt as normalizeSelectionString, O as turns, Ot as SessionBridge, P as importCursors, Pt as resolveAdapterNameById, Qt as buildRecoveryContext, Rt as actionRegistry, S as SelectMessage, St as registerDrizzleSessionStorage, T as registerDrizzleMessageStorage, Tt as AgentStorageSubjects, Ut as ContextWindowTrackerConfig, Vt as ContextWindowTracker, Wt as SessionContextWindowState, Xt as recoverAgent, Y as EventTransform, Yt as ensureAgentModel, Zt as verifyAndRecoverAgents, _ as messageRoutingDual, _t as mapRowToSession, a as kindToBranchKind, an as extractTextContent, at as sessionEvents, b as MessageRoutingSubjects, bt as registerDrizzleAgentStorage, c as registerSpawningToolCallResolver, cn as AdapterRegistry, ct as SessionPreviewMaps, d as MakaioSession, dn as registerCoreSessionServiceHandlers, dt as mapToSession, en as resolveExecutionTarget, f as MakaioSessionConfig, fn as MakaioSessionService, ft as SearchFilters, g as messageRouting, gt as fetchPreviewBySession, h as SelectMessageRouting, ht as fetchMessageCountsBySession, i as ContextAssemblyResult, in as resolveTargetAgents, it as SelectSessionEvent, j as registerDrizzleTurnStorage, jt as pickFallbackRuntimeOptions, k as turnsDual, kt as assembleForkContext, l as registerCompressLineageResolver, ln as ISessionOrchestrator, lt as fetchSessionPreviewMaps, m as InsertMessageRouting, mt as fetchAgentsBySession, n as buildSessionContext, nn as findTurnByAgent, nt as registerMemorySessionEventStorage, on as normalizeToBlocks, ot as sessionEventsDual, p as StartTurnOptions, pt as SearchSessionRow, qt as buildRecoveryContextWithPipeline, r as BuildContextOptions, rn as getOrCreateSession, rt as InsertSessionEvent, sn as TurnContextEnricher, t as getFullConversation, tn as resolveModelCapabilities, tt as registerDrizzleSessionEventStorage, u as registerParentResolver, un as SessionOrchestrator, ut as mapAgentsBySession, v as registerDrizzleMessageRoutingStorage, vt as parseForkTransforms, w as registerMemoryMessageStorage, wt as AgentStorageNamespace, x as InsertMessage, xt as registerMemoryAgentStorage, y as MessageRoutingNamespace, yt as registerFtsSearchHandler, zt as registerGetStatusCountsHandler } from "../index-3J0HZlPH.mjs";
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-BYfSAJRC.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-Bmi5bjm4.mjs";
20
- import { a as agents, s as sessions } from "../schema-Bf_ZNjif.mjs";
21
- import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-BeMGmLrp.mjs";
22
- import { t as TurnStorageNamespace } from "../namespace-LUNf8zo5.mjs";
23
- import { n as TurnStorageSubjects } from "../namespace-BsYKEMd8.mjs";
19
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-DmqoDDRD.mjs";
20
+ import { a as agents, s as sessions } from "../schema-DLNBajAV.mjs";
21
+ import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-DhDY0juT.mjs";
22
+ import { t as TurnStorageNamespace } from "../namespace-D1_9WVCo.mjs";
23
+ import { n as TurnStorageSubjects } from "../namespace-DAj_riOn.mjs";
24
24
  import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-Bm77p82L.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";
@@ -31,7 +31,7 @@ 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-C6TVJ80V2.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-DuuVuhHX2.mjs";
35
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";
@@ -41,8 +41,8 @@ import { IMakaioBus } from "@makaio/framework/bus";
41
41
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
42
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
- import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
45
44
  import * as _$drizzle_orm_sqlite_core0 from "drizzle-orm/sqlite-core";
45
+ import * as _$_makaio_storage_core0 from "@makaio/framework/storage";
46
46
  import * as _$_makaio_ai_adapters_core0 from "@makaio/framework/adapters";
47
47
  import { FacetNamespaceRegistration } from "@makaio/framework/contracts/facet";
48
48
  import { SurfaceBindingRegistration } from "@makaio/framework/contracts/materialization";
@@ -1331,13 +1331,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1331
1331
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1332
1332
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1333
1333
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1334
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1335
1334
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1336
1335
  label: _$zod.ZodString;
1337
1336
  url: _$zod.ZodString;
1338
1337
  }, _$zod_v4_core0.$strict>>>;
1339
1338
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1340
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>>>>;
1341
1341
  name: _$zod.ZodString;
1342
1342
  enabled: _$zod.ZodBoolean;
1343
1343
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1356,13 +1356,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1356
1356
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1357
1357
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1358
1358
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1359
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1360
1359
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1361
1360
  label: _$zod.ZodString;
1362
1361
  url: _$zod.ZodString;
1363
1362
  }, _$zod_v4_core0.$strict>>>;
1364
1363
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1365
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>>>>;
1366
1366
  name: _$zod.ZodString;
1367
1367
  enabled: _$zod.ZodBoolean;
1368
1368
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1384,8 +1384,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1384
1384
  name: _$zod.ZodString;
1385
1385
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1386
1386
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1387
- enabled: "enabled";
1388
1387
  disabled: "disabled";
1388
+ enabled: "enabled";
1389
1389
  visible: "visible";
1390
1390
  }>>>;
1391
1391
  modelFilterMode: _$zod.ZodEnum<{
@@ -1411,8 +1411,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1411
1411
  name: _$zod.ZodString;
1412
1412
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1413
1413
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1414
- enabled: "enabled";
1415
1414
  disabled: "disabled";
1415
+ enabled: "enabled";
1416
1416
  visible: "visible";
1417
1417
  }>>>;
1418
1418
  modelFilterMode: _$zod.ZodEnum<{
@@ -1438,8 +1438,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1438
1438
  name: _$zod.ZodString;
1439
1439
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1440
1440
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1441
- enabled: "enabled";
1442
1441
  disabled: "disabled";
1442
+ enabled: "enabled";
1443
1443
  visible: "visible";
1444
1444
  }>>>;
1445
1445
  modelFilterMode: _$zod.ZodEnum<{
@@ -1502,8 +1502,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1502
1502
  name: _$zod.ZodString;
1503
1503
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1504
1504
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1505
- enabled: "enabled";
1506
1505
  disabled: "disabled";
1506
+ enabled: "enabled";
1507
1507
  visible: "visible";
1508
1508
  }>>>;
1509
1509
  modelFilterMode: _$zod.ZodEnum<{
@@ -1651,8 +1651,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1651
1651
  openai: _$zod.ZodOptional<_$zod.ZodString>;
1652
1652
  }, _$zod_v4_core0.$strip>>;
1653
1653
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1654
- enabled: "enabled";
1655
1654
  disabled: "disabled";
1655
+ enabled: "enabled";
1656
1656
  visible: "visible";
1657
1657
  }>>>;
1658
1658
  modelFilterMode: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1668,8 +1668,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1668
1668
  name: _$zod.ZodString;
1669
1669
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1670
1670
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1671
- enabled: "enabled";
1672
1671
  disabled: "disabled";
1672
+ enabled: "enabled";
1673
1673
  visible: "visible";
1674
1674
  }>>>;
1675
1675
  modelFilterMode: _$zod.ZodEnum<{
@@ -1694,8 +1694,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1694
1694
  openai: _$zod.ZodOptional<_$zod.ZodString>;
1695
1695
  }, _$zod_v4_core0.$strip>>>;
1696
1696
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1697
- enabled: "enabled";
1698
1697
  disabled: "disabled";
1698
+ enabled: "enabled";
1699
1699
  visible: "visible";
1700
1700
  }>>>;
1701
1701
  enabled: _$zod.ZodOptional<_$zod.ZodBoolean>;
@@ -1708,8 +1708,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1708
1708
  name: _$zod.ZodString;
1709
1709
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1710
1710
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1711
- enabled: "enabled";
1712
1711
  disabled: "disabled";
1712
+ enabled: "enabled";
1713
1713
  visible: "visible";
1714
1714
  }>>>;
1715
1715
  modelFilterMode: _$zod.ZodEnum<{
@@ -1736,8 +1736,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1736
1736
  name: _$zod.ZodString;
1737
1737
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1738
1738
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1739
- enabled: "enabled";
1740
1739
  disabled: "disabled";
1740
+ enabled: "enabled";
1741
1741
  visible: "visible";
1742
1742
  }>>>;
1743
1743
  modelFilterMode: _$zod.ZodEnum<{
@@ -1771,8 +1771,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1771
1771
  name: _$zod.ZodString;
1772
1772
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1773
1773
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1774
- enabled: "enabled";
1775
1774
  disabled: "disabled";
1775
+ enabled: "enabled";
1776
1776
  visible: "visible";
1777
1777
  }>>>;
1778
1778
  modelFilterMode: _$zod.ZodEnum<{
@@ -1803,8 +1803,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1803
1803
  name: _$zod.ZodString;
1804
1804
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1805
1805
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1806
- enabled: "enabled";
1807
1806
  disabled: "disabled";
1807
+ enabled: "enabled";
1808
1808
  visible: "visible";
1809
1809
  }>>>;
1810
1810
  modelFilterMode: _$zod.ZodEnum<{
@@ -1843,13 +1843,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1843
1843
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1844
1844
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1845
1845
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1846
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1847
1846
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1848
1847
  label: _$zod.ZodString;
1849
1848
  url: _$zod.ZodString;
1850
1849
  }, _$zod_v4_core0.$strict>>>;
1851
1850
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1852
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>>>>;
1853
1853
  name: _$zod.ZodString;
1854
1854
  enabled: _$zod.ZodBoolean;
1855
1855
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1908,8 +1908,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1908
1908
  name: _$zod.ZodString;
1909
1909
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1910
1910
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1911
- enabled: "enabled";
1912
1911
  disabled: "disabled";
1912
+ enabled: "enabled";
1913
1913
  visible: "visible";
1914
1914
  }>>>;
1915
1915
  modelFilterMode: _$zod.ZodEnum<{
@@ -1928,8 +1928,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1928
1928
  name: _$zod.ZodString;
1929
1929
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1930
1930
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1931
- enabled: "enabled";
1932
1931
  disabled: "disabled";
1932
+ enabled: "enabled";
1933
1933
  visible: "visible";
1934
1934
  }>>>;
1935
1935
  modelFilterMode: _$zod.ZodEnum<{
@@ -3460,9 +3460,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3460
3460
  }, _$zod_v4_core0.$strip>;
3461
3461
  response: _$zod.ZodObject<{
3462
3462
  state: _$zod.ZodEnum<{
3463
+ created: "created";
3463
3464
  running: "running";
3464
3465
  stopped: "stopped";
3465
- created: "created";
3466
3466
  destroyed: "destroyed";
3467
3467
  }>;
3468
3468
  sessionId: _$zod.ZodString;
@@ -3808,8 +3808,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3808
3808
  id: _$zod.ZodString;
3809
3809
  config: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
3810
3810
  enabled: _$zod.ZodBoolean;
3811
- scope: _$zod.ZodString;
3812
3811
  extensionName: _$zod.ZodString;
3812
+ scope: _$zod.ZodString;
3813
3813
  }, _$zod_v4_core0.$strip>;
3814
3814
  }, _$zod_v4_core0.$strip>;
3815
3815
  response: _$zod.ZodObject<{
@@ -3857,8 +3857,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3857
3857
  path: _$zod.ZodString;
3858
3858
  kind: _$zod.ZodEnum<{
3859
3859
  change: "change";
3860
- create: "create";
3861
3860
  delete: "delete";
3861
+ create: "create";
3862
3862
  }>;
3863
3863
  }, _$zod_v4_core0.$strip>;
3864
3864
  batch: _$zod.ZodObject<{
@@ -3866,8 +3866,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3866
3866
  path: _$zod.ZodString;
3867
3867
  kind: _$zod.ZodEnum<{
3868
3868
  change: "change";
3869
- create: "create";
3870
3869
  delete: "delete";
3870
+ create: "create";
3871
3871
  }>;
3872
3872
  }, _$zod_v4_core0.$strip>>;
3873
3873
  }, _$zod_v4_core0.$strip>;
@@ -5627,8 +5627,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5627
5627
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
5628
5628
  readiness: _$zod.ZodOptional<_$zod.ZodEnum<{
5629
5629
  ready: "ready";
5630
- "missing-credentials": "missing-credentials";
5631
5630
  "needs-setup": "needs-setup";
5631
+ "missing-credentials": "missing-credentials";
5632
5632
  }>>;
5633
5633
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
5634
5634
  protocol: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -6014,6 +6014,75 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6014
6014
  }, _$zod_v4_core0.$strip>;
6015
6015
  }, _$zod_v4_core0.$strip>;
6016
6016
  };
6017
+ ingestCompleted: {
6018
+ request: _$zod.ZodObject<{
6019
+ sessionId: _$zod.ZodString;
6020
+ turnAnchorId: _$zod.ZodString;
6021
+ startedAt: _$zod.ZodNumber;
6022
+ completedAt: _$zod.ZodNumber;
6023
+ status: _$zod.ZodEnum<{
6024
+ error: "error";
6025
+ completed: "completed";
6026
+ }>;
6027
+ error: _$zod.ZodOptional<_$zod.ZodString>;
6028
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
6029
+ total: _$zod.ZodObject<{
6030
+ inputTokens: _$zod.ZodNumber;
6031
+ outputTokens: _$zod.ZodNumber;
6032
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
6033
+ }, _$zod_v4_core0.$strip>;
6034
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
6035
+ inputTokens: _$zod.ZodNumber;
6036
+ outputTokens: _$zod.ZodNumber;
6037
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
6038
+ }, _$zod_v4_core0.$strip>>>;
6039
+ }, _$zod_v4_core0.$strip>>;
6040
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
6041
+ source: _$zod.ZodEnum<{
6042
+ user: "user";
6043
+ system: "system";
6044
+ extension: "extension";
6045
+ }>;
6046
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6047
+ }, _$zod_v4_core0.$strip>>;
6048
+ }, _$zod_v4_core0.$strip>;
6049
+ response: _$zod.ZodObject<{
6050
+ turn: _$zod.ZodObject<{
6051
+ turnId: _$zod.ZodString;
6052
+ sessionId: _$zod.ZodString;
6053
+ turnNumber: _$zod.ZodNumber;
6054
+ startedAt: _$zod.ZodNumber;
6055
+ completedAt: _$zod.ZodOptional<_$zod.ZodNumber>;
6056
+ status: _$zod.ZodEnum<{
6057
+ error: "error";
6058
+ completed: "completed";
6059
+ active: "active";
6060
+ }>;
6061
+ error: _$zod.ZodOptional<_$zod.ZodString>;
6062
+ usage: _$zod.ZodOptional<_$zod.ZodObject<{
6063
+ total: _$zod.ZodObject<{
6064
+ inputTokens: _$zod.ZodNumber;
6065
+ outputTokens: _$zod.ZodNumber;
6066
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
6067
+ }, _$zod_v4_core0.$strip>;
6068
+ byAgent: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodObject<{
6069
+ inputTokens: _$zod.ZodNumber;
6070
+ outputTokens: _$zod.ZodNumber;
6071
+ cost: _$zod.ZodOptional<_$zod.ZodNumber>;
6072
+ }, _$zod_v4_core0.$strip>>>;
6073
+ }, _$zod_v4_core0.$strip>>;
6074
+ initiator: _$zod.ZodOptional<_$zod.ZodObject<{
6075
+ source: _$zod.ZodEnum<{
6076
+ user: "user";
6077
+ system: "system";
6078
+ extension: "extension";
6079
+ }>;
6080
+ sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6081
+ }, _$zod_v4_core0.$strip>>;
6082
+ }, _$zod_v4_core0.$strip>;
6083
+ created: _$zod.ZodBoolean;
6084
+ }, _$zod_v4_core0.$strip>;
6085
+ };
6017
6086
  get: {
6018
6087
  request: _$zod.ZodObject<{
6019
6088
  turnId: _$zod.ZodString;
@@ -6282,10 +6351,10 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6282
6351
  create: {
6283
6352
  request: _$zod.ZodObject<{
6284
6353
  name: _$zod.ZodString;
6354
+ enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
6285
6355
  adapterName: _$zod.ZodString;
6286
6356
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6287
6357
  model: _$zod.ZodOptional<_$zod.ZodString>;
6288
- enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
6289
6358
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
6290
6359
  allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
6291
6360
  disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -6333,4 +6402,4 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6333
6402
  };
6334
6403
  }>];
6335
6404
  //#endregion
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 };
6405
+ 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, 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 d,SessionStorageSubjects as f}from"./session/storage/namespace.mjs";import{A as p,C as m,D as ee,E as h,F as te,M as ne,N as re,O as ie,P as g,S as ae,T as oe,_ as se,a as ce,b as le,c as ue,d as de,f as fe,g as pe,h as me,i as he,j as ge,k as _e,l as ve,m as ye,n as be,o as xe,p as Se,r as Ce,s as we,t as Te,u as _,v,w as y,x as b,y as x}from"../handlers-BAycjV02.mjs";import{A as S,B as C,C as w,E as T,F as E,G as D,H as O,I as Ee,J as De,K as Oe,L as ke,M as Ae,N as je,O as Me,P as Ne,R as Pe,S as Fe,T as Ie,U as Le,V as Re,W as ze,X as Be,Y as Ve,_ as He,a as Ue,b as We,c as Ge,d as Ke,g as qe,h as Je,i as Ye,j as Xe,k as Ze,l as Qe,m as $e,o as et,p as tt,q as nt,r as rt,s as it,t as at,u as ot,v as st,w as ct,x as lt,y as ut,z as dt}from"../session-0nWT4st6.mjs";import{t as ft}from"../namespace-DBHwyhME.mjs";import{n as pt,r as mt,t as ht}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as gt,ResolveIdRequestSchema as _t,ResolveIdResponseSchema as vt,ResolveNameRequestSchema as yt,ResolveNameResponseSchema as bt}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as k,AdapterRuntimeSubjects as xt}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as St}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as Ct,ContainerLocalExecutionTargetSchema as wt,ExecutionTargetInputSchema as Tt,ExecutionTargetListQuerySchema as Et,ExecutionTargetResolveRequestSchema as Dt,ExecutionTargetSchema as Ot,ExecutionTargetSchemas as kt,ExecutionTargetTypeSchema as At,LocalExecutionTargetSchema as jt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as A,ExecutionTargetSubjects as Mt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Nt,MessageStorageSubjects as Pt}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as Ft}from"./session/turns/namespace.mjs";import{BugEntrySchema as It,CompressRequestSchema as Lt,CompressResponseSchema as Rt,CompressionEventSchema as zt,CompressionSchemas as Bt,ExtractedContextSchema as Vt,TechnicalDetailsSchema as Ht,TodoEntrySchema as Ut}from"./compression/schemas.mjs";import{PreferenceItemSchema as Wt,PreferenceKeySchema as Gt,PreferenceValueSchema as Kt,PreferencesSchemas as qt}from"./preferences/schemas.mjs";import{PreferencesNamespace as j,PreferencesSubjects as Jt}from"./preferences/storage-namespace.mjs";import{t as Yt}from"../namespace-wke7juzy.mjs";import{A as Xt,B as Zt,C as Qt,D as $t,E as en,F as tn,G as nn,H as rn,I as an,J as on,K as sn,L as cn,M as ln,N as un,O as dn,P as fn,R as pn,S as mn,T as hn,U as gn,V as _n,W as vn,Y as yn,_ as bn,a as M,b as xn,c as Sn,d as Cn,f as N,g as P,h as wn,i as F,j as Tn,k as En,l as Dn,m as On,o as kn,p as I,q as An,r as jn,s as L,u as Mn,v as R,w as Nn,x as Pn,y as Fn,z as In}from"../tools-DFOsOboy.mjs";import{t as Ln}from"../capability-service-XlymTzz1.mjs";import{a as Rn,c as zn,i as Bn,l as Vn,n as Hn,o as z,r as Un,s as Wn,t as Gn,u as Kn}from"../model-registry-rYICIwyR.mjs";import{t as qn}from"../tool-approval-service-DEQiipxj.mjs";import{TrayMenuEntrySchema as Jn,TrayMenuGroupEntrySchema as Yn,TrayMenuGroupSchema as Xn,TrayMenuItemClickedSchema as Zn,TrayMenuListEntrySchema as Qn,TrayMenuMetadataSchema as $n,TrayMenuSchemas as er,TrayMenuSectionSchema as tr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as B,TrayMenuSubjects as nr}from"./tray-menu/namespace.mjs";import{t as rr}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ir}from"../handler-2bPhRn0u.mjs";import{i as ar,n as or,r as sr,t as cr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as lr}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 ur,AgentRuntimeSchemas as dr,AgentRuntimeSelectionSchema as fr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as V,AgentRuntimeSubjects as pr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as mr,CodebaseSchemas as hr}from"./codebase/schemas.mjs";import{CodebaseNamespace as H,CodebaseSubjects as gr}from"./codebase/namespace.mjs";import{CompressionNamespace as U,CompressionSubjects as _r}from"./compression/namespace.mjs";import{r as vr,t as yr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as br}from"./definition/namespace.mjs";import{DialogNamespace as xr}from"./dialog/namespace.mjs";import{_ as Sr,c as Cr,d as wr,f as Tr,g as Er,h as Dr,i as Or,l as kr,m as Ar,n as jr,o as Mr,p as Nr,r as W,s as Pr,t as Fr,u as Ir,v as Lr,y as Rr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as zr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Br}from"./local-notification/namespace.mjs";import{t as Vr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Hr}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Ur}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Wr,SubagentTemplateCreateSchema as Gr,SubagentTemplateInstanceSchema as Kr,SubagentTemplateInstanceStatusSchema as qr,SubagentTemplateKernelSchemas as Jr,SubagentTemplateSchema as Yr,SubagentTemplateSettingsSchemas as Xr,SubagentTemplateSpawnRequestSchema as Zr,SubagentTemplateSpawnedEventSchema as Qr,SubagentTemplateSummarySchema as $r,SubagentTemplateUpdateSchema as ei}from"./subagent-template/schemas.mjs";import{r as ti,t as ni}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as G,SubagentTemplateSubjects as ri}from"./subagent-template/namespace.mjs";import{i as ii,n as ai,r as oi,t as si}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 ci}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as li}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as ui}from"@makaio/framework/contracts/model-registry";function di(e){return{source:`extension`,ownerKey:`extension:${e}`}}function fi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function pi(){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)}fi(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(M);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=di(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 mi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function hi(){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(F);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(mi(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 gi(e){let t=e.maxDepth??5,n={bus:e.bus,kindRegistry:e.kindRegistry,maxDepth:t,resolvedByKey:new Map,kindDefaultsCache:new Map,walkedByKey:new Set,resolved:[],refs:[]},r=await q(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 K(n,r,Y(await J(n,r),e.selectors),0,new Set([Z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function K(e,t,n,r,i){let a=xi(t,n,r);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=bi(t);for(let a of t.relations)await _i(e,o,a,n,r,i)}async function _i(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!vi(o,n.target)){e.refs.push(X(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){e.refs.push(X(t,n,s,`unsupported-ref-class`));return}if(i>=e.maxDepth){e.refs.push(X(t,n,s,`depth-exceeded`));return}let c=Z(n.target);if(a.has(c)){e.refs.push(X(t,n,s,`cycle-detected`));return}let l=e.resolvedByKey.has(c),u=await q(e,n.target);if(!u){e.refs.push(X(t,n,s,`not-found`));return}e.refs.push({sourceRef:t,target:n.target,relationType:n.type,hint:s,status:`resolved`}),l||e.resolved.push(u);let d=(o.depth??1)-1,f=d>0?{[n.type]:{...o,depth:d}}:void 0,p=Y(Y(await J(e,u),f),o.nested),m=new Set(a);m.add(c),await K(e,u,p,i+1,m)}async function q(e,t){let n=Z(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(ci.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}async function J(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 Y(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 vi(e,t){return e?e.kinds?e.kinds.includes(yi(t)):!0:!1}function yi(e){return e.refClass===`local`?e.artifact.kind:e.kind}function X(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,hint:n,status:`unresolved`,reason:r}}function bi(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 xi(e,t,n){return JSON.stringify([e.kind,e.id,e.revision,n,t??null])}function Q(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerNamespace(e)}function Si(){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(L);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 Ci(){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(I);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 wi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(R);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 Ti(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(P);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${P.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&&Ei(t,a),c&&Di(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 Ei(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 Di(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 Oi=[k,ft,V,g,zr,Ur,H,U,vr,yr,br,xr,W,A,Hr,lr,ir,li,Br,C,z,ui,j,Vr,St,Yt,ni,B,e,G,ti];export{si as AdapterIdentityRegistry,De as AdapterRegistry,k as AdapterRuntimeNamespace,gt as AdapterRuntimeSchemas,xt as AdapterRuntimeSubjects,ur as AgentInstanceStatusSchema,V as AgentRuntimeNamespace,dr as AgentRuntimeSchemas,fr as AgentRuntimeSelectionSchema,pr as AgentRuntimeSubjects,g as AgentStorageNamespace,te as AgentStorageSubjects,An as ArtifactLifecycleHookRegistry,F as ArtifactLifecycleHookRegistryToken,on as ArtifactLifecycleHookRejectedError,yn as ArtifactSchemaRegistry,M as ArtifactSchemaRegistryToken,It as BugEntrySchema,Ae as CONNECTOR_SWAP_DEFAULT_PIPELINE,Gn as CachedRegistryFetcher,vn as CanonicalModelResolutionError,gn as CanonicalModelResolver,rn as CanonicalModelService,Ln as CapabilityService,kn as CapabilityToken,mr as CodebaseChangedEventSchema,H as CodebaseNamespace,hr as CodebaseSchemas,gr as CodebaseSubjects,Lt as CompressRequestSchema,Rt as CompressResponseSchema,zt as CompressionEventSchema,U as CompressionNamespace,Bt as CompressionSchemas,_r as CompressionSubjects,Mr as ContainerCreatedSchema,Pr as ContainerDestroyedSchema,Ct as ContainerIsolatedExecutionTargetSchema,Cr as ContainerIsolatedSpawnRequestSchema,wt as ContainerLocalExecutionTargetSchema,kr as ContainerLocalSpawnRequestSchema,Ir as ContainerRuntimeSchema,Fr as ContainerSpawnNamespace,jr as ContainerSpawnSubjects,wr as ContainerStartedSchema,Tr as ContainerStateSchema,Nr as ContainerStoppedSchema,at as ContextWindowTracker,W as DockerNamespace,Or as DockerSubjects,it as EmbeddingIndexManager,Tt as ExecutionTargetInputSchema,Et as ExecutionTargetListQuerySchema,A as ExecutionTargetNamespace,Dt as ExecutionTargetResolveRequestSchema,Ot as ExecutionTargetSchema,kt as ExecutionTargetSchemas,Mt as ExecutionTargetSubjects,At as ExecutionTargetTypeSchema,Vt as ExtractedContextSchema,sn as FacetNamespaceRegistry,L as FacetNamespaceRegistryToken,Hn as FallbackRegistryFetcher,Oi as FrameworkServicesCoreNamespaces,jt as LocalExecutionTargetSchema,et as MakaioSession,Ve as MakaioSessionService,C as MessageRoutingNamespace,Re as MessageRoutingSubjects,Nt as MessageStorageNamespace,Pt as MessageStorageSubjects,z as ModelRegistryNamespace,Un as ModelRegistryProviderNotFoundError,zn as ModelRegistrySchema,Vn as ModelRegistrySchemas,Bn as ModelRegistryService,Wn as ModelRegistrySubjects,Sn as ModelRegistryToken,Wt as PreferenceItemSchema,Gt as PreferenceKeySchema,Kt as PreferenceValueSchema,j as PreferencesNamespace,qt as PreferencesSchemas,Jt as PreferencesSubjects,Kn as ProviderModelOverrideSchema,_t as ResolveIdRequestSchema,vt as ResolveIdResponseSchema,yt as ResolveNameRequestSchema,bt as ResolveNameResponseSchema,S as SessionBridge,Dn as SessionBridgeToken,u as SessionEventStorageNamespace,c as SessionEventStorageSubjects,Me as SessionExtensionContextImpl,Ke as SessionLogger,ke as SessionOrchestrator,Mn as SessionOrchestratorToken,d as SessionStorageNamespace,f as SessionStorageSubjects,Cn as SessionStorageToken,N as SessionToken,Pe as SessionTurnManager,Ar as SpawnRequestSchema,Dr as SpawnResponseSchema,Er as StatusRequestSchema,Sr as StatusResponseSchema,Lr as StopRequestSchema,Rr as StopResponseSchema,ar as SubagentManager,sr as SubagentService,cr as SubagentServiceToken,Wr as SubagentTemplateCompletedEventSchema,Gr as SubagentTemplateCreateSchema,Kr as SubagentTemplateInstanceSchema,qr as SubagentTemplateInstanceStatusSchema,G as SubagentTemplateKernelNamespace,Jr as SubagentTemplateKernelSchemas,Yr as SubagentTemplateSchema,Xr as SubagentTemplateSettingsSchemas,Zr as SubagentTemplateSpawnRequestSchema,Qr as SubagentTemplateSpawnedEventSchema,ri as SubagentTemplateSubjects,$r as SubagentTemplateSummarySchema,ei as SubagentTemplateUpdateSchema,nn as SurfaceBindingRegistry,I as SurfaceBindingRegistryToken,Ht as TechnicalDetailsSchema,Ut as TodoEntrySchema,qn as ToolApprovalService,On as ToolApprovalToken,Zt as ToolRegistry,wn as ToolRegistryToken,cn as TransitionActionRegistry,tn as TransitionPipelineService,P as TransitionPipelineToken,an as TransitionRuleRegistry,Jn as TrayMenuEntrySchema,Yn as TrayMenuGroupEntrySchema,Xn as TrayMenuGroupSchema,Zn as TrayMenuItemClickedSchema,Qn as TrayMenuListEntrySchema,$n as TrayMenuMetadataSchema,B as TrayMenuNamespace,er as TrayMenuSchemas,tr as TrayMenuSectionSchema,rr as TrayMenuService,nr as TrayMenuSubjects,bn as TrayMenuToken,x as Turn,Ee as TurnContextEnricher,Ft as TurnStorageNamespace,t as TurnStorageSubjects,pn as WORKFLOW_START_ACTION_TYPE,In as WorkflowBlockRegistry,R as WorkflowBlockRegistryToken,_e as actionRegistry,ht as activateProviderContext,pt as activateProviderContextStrict,n as agents,Fn as artifactLifecycleHookRegistryPackage,xn as artifactSchemaRegistryPackage,be as assembleForkContext,ai as buildDeterministicAdapterId,mt as buildProviderContext,ee as buildRecoveryContext,ae as buildRecoveryContextWithPipeline,p as buildSessionContext,Se as buildTurnInitiator,_n as canonicalModelPackage,Pn as capabilityPackage,pi as createArtifactKindContributionProcessor,hi as createArtifactLifecycleHookContributionProcessor,Si as createFacetNamespaceContributionProcessor,mn as createModelRegistryPackage,Ze as createSessionExtensionContext,Ci as createSurfaceBindingContributionProcessor,jn as createToolContributionProcessor,Ti as createTransitionContributionProcessor,wi as createWorkflowBlockContributionProcessor,m as ensureAgentCwd,y as ensureAgentModel,se as extractTextContent,Qt as facetNamespaceRegistryPackage,$e as fetchAgentsBySession,Je as fetchMessageCountsBySession,qe as fetchPreviewBySession,lt as fetchSessionPreviewMaps,ye as findTurnByAgent,Nn as frameworkCorePackages,ie as getFullConversation,me as getOrCreateSession,Qe as importCursors,ot as importCursorsDual,T as kindToBranchKind,Fe as mapAgentsBySession,He as mapRowToSession,w as mapToSession,Rn as mergeModelMetadata,O as messageRouting,Le as messageRoutingDual,o as messages,de as normalizeSelectionString,v as normalizeToBlocks,st as parseForkTransforms,Xe as pickFallbackRuntimeOptions,oe as recoverAgent,ue as registerAbandonHandler,oi as registerAdapterRuntimeIdentityHandlers,_ as registerAttachHandler,xe as registerBuiltInActions,ce as registerCompressHandler,Ye as registerCompressLineageResolver,Be as registerCoreSessionServiceHandlers,ct as registerDrizzleAgentStorage,Ge as registerDrizzleImportCursorStorage,dt as registerDrizzleMessageRoutingStorage,D as registerDrizzleMessageStorage,Oe as registerDrizzleSessionEventStorage,We as registerDrizzleSessionStorage,b as registerDrizzleTurnStorage,he as registerForkHandler,tt as registerFtsSearchHandler,Ne as registerGetStatusCountsHandler,je as registerListActionsHandler,ut as registerMemoryAgentStorage,ze as registerMemoryMessageStorage,nt as registerMemorySessionEventStorage,Ie as registerMemorySessionStorage,le as registerMemoryTurnStorage,Ce as registerMergeHandler,Ue as registerParentResolver,E as registerResumeHandler,rt as registerSpawningToolCallResolver,we as resetBuiltInActionsRegistration,ge as resolveAdapterId,fe as resolveAdapterNameById,gi as resolveArtifactContext,ii as resolveDeterministicAdapterId,ne as resolveExecutionTarget,re as resolveModelCapabilities,pe as resolveTargetAgents,Te as routeToAgents,ve as routeToAgentsCore,hn as sessionBridgePackage,l as sessionEvents,s as sessionEventsDual,en as sessionOrchestratorPackage,$t as sessionPackage,dn as sessionStoragePackage,r as sessions,or as subagentServicePackage,En as surfaceBindingRegistryPackage,Xt as toolApprovalPackage,Tn as toolRegistryPackage,ln as transitionPipelinePackage,un as trayMenuPackage,a as turns,i as turnsDual,h as verifyAndRecoverAgents,fn as workflowBlockRegistryPackage};
1
+ import{agents as e,sessions as t}from"./session/storage/schema.mjs";import{n,t as r}from"../schema-CHp6I33k.mjs";import{t as i}from"../schema-7aKBGB7S.mjs";import{i as a,n as o,r as s,t as c}from"../namespace-dFBD2ZmS.mjs";import{A as l,B as u,C as d,D as f,E as p,F as m,M as h,N as ee,O as te,P as g,S as ne,T as re,_ as ie,a as ae,b as oe,c as se,d as ce,f as le,g as ue,h as de,i as fe,j as pe,k as me,l as he,m as ge,n as _e,o as ve,p as ye,r as be,s as xe,t as Se,u as Ce,v as we,w as Te,x as Ee,y as De,z as _}from"../handlers-v47Gbsr1.mjs";import{TurnStorageNamespace as v,TurnStorageSubjects as y}from"./turn/namespace.mjs";import{SessionStorageNamespace as b,SessionStorageSubjects as x}from"./session/storage/namespace.mjs";import{$ as S,A as C,B as w,C as T,D as E,E as Oe,F as ke,G as Ae,H as je,I as Me,J as Ne,K as D,L as Pe,M as Fe,O as Ie,P as Le,Q as Re,R as ze,S as Be,T as Ve,U as He,V as Ue,W as We,X as Ge,Y as Ke,Z as qe,a as Je,b as Ye,c as Xe,et as Ze,i as Qe,j as $e,k as et,l as tt,o as nt,q as rt,r as it,s as at,t as ot,u as st,w as ct,x as lt,y as ut,z as dt}from"../session-DCbJwYEU.mjs";import{t as ft}from"../namespace-DBHwyhME.mjs";import{n as pt,r as mt,t as ht}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as gt,ResolveIdRequestSchema as _t,ResolveIdResponseSchema as vt,ResolveNameRequestSchema as yt,ResolveNameResponseSchema as bt}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as O,AdapterRuntimeSubjects as xt}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as St}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as Ct,ContainerLocalExecutionTargetSchema as wt,ExecutionTargetInputSchema as Tt,ExecutionTargetListQuerySchema as Et,ExecutionTargetResolveRequestSchema as Dt,ExecutionTargetSchema as Ot,ExecutionTargetSchemas as kt,ExecutionTargetTypeSchema as At,LocalExecutionTargetSchema as jt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as k,ExecutionTargetSubjects as Mt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as Nt,MessageStorageSubjects as Pt}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as Ft}from"./session/turns/namespace.mjs";import{BugEntrySchema as It,CompressRequestSchema as Lt,CompressResponseSchema as Rt,CompressionEventSchema as zt,CompressionSchemas as Bt,ExtractedContextSchema as Vt,TechnicalDetailsSchema as Ht,TodoEntrySchema as Ut}from"./compression/schemas.mjs";import{PreferenceItemSchema as Wt,PreferenceKeySchema as Gt,PreferenceValueSchema as Kt,PreferencesSchemas as qt}from"./preferences/schemas.mjs";import{PreferencesNamespace as A,PreferencesSubjects as Jt}from"./preferences/storage-namespace.mjs";import{t as Yt}from"../namespace-wke7juzy.mjs";import{A as Xt,B as Zt,C as Qt,D as $t,E as en,F as tn,G as nn,H as rn,I as an,J as on,K as sn,L as cn,M as ln,N as un,O as dn,P as fn,R as pn,S as mn,T as hn,U as gn,V as _n,W as vn,Y as yn,_ as bn,a as j,b as xn,c as Sn,d as Cn,f as wn,g as M,h as Tn,i as N,j as En,k as Dn,l as On,m as kn,o as An,p as P,q as jn,r as Mn,s as F,u as I,v as L,w as Nn,x as Pn,y as Fn,z as In}from"../tools-BrNm-een.mjs";import{t as Ln}from"../capability-service-XlymTzz1.mjs";import{a as Rn,c as zn,i as Bn,l as Vn,n as Hn,o as R,r as Un,s as Wn,t as Gn,u as Kn}from"../model-registry-rYICIwyR.mjs";import{t as qn}from"../tool-approval-service-MU_DmJsf.mjs";import{TrayMenuEntrySchema as Jn,TrayMenuGroupEntrySchema as Yn,TrayMenuGroupSchema as Xn,TrayMenuItemClickedSchema as Zn,TrayMenuListEntrySchema as Qn,TrayMenuMetadataSchema as $n,TrayMenuSchemas as er,TrayMenuSectionSchema as tr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as z,TrayMenuSubjects as nr}from"./tray-menu/namespace.mjs";import{t as rr}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ir}from"../handler-BFNvtv5t.mjs";import{i as ar,n as or,r as sr,t as cr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as lr}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 ur,AgentRuntimeSchemas as dr,AgentRuntimeSelectionSchema as fr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as B,AgentRuntimeSubjects as pr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as mr,CodebaseSchemas as hr}from"./codebase/schemas.mjs";import{CodebaseNamespace as V,CodebaseSubjects as gr}from"./codebase/namespace.mjs";import{CompressionNamespace as H,CompressionSubjects as _r}from"./compression/namespace.mjs";import{r as vr,t as yr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as br}from"./definition/namespace.mjs";import{DialogNamespace as xr}from"./dialog/namespace.mjs";import{_ as Sr,c as Cr,d as wr,f as Tr,g as Er,h as Dr,i as Or,l as kr,m as Ar,n as jr,o as Mr,p as Nr,r as U,s as Pr,t as Fr,u as Ir,v as Lr,y as Rr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as zr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Br}from"./local-notification/namespace.mjs";import{t as Vr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Hr}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Ur}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Wr,SubagentTemplateCreateSchema as Gr,SubagentTemplateInstanceSchema as Kr,SubagentTemplateInstanceStatusSchema as qr,SubagentTemplateKernelSchemas as Jr,SubagentTemplateSchema as Yr,SubagentTemplateSettingsSchemas as Xr,SubagentTemplateSpawnRequestSchema as Zr,SubagentTemplateSpawnedEventSchema as Qr,SubagentTemplateSummarySchema as $r,SubagentTemplateUpdateSchema as ei}from"./subagent-template/schemas.mjs";import{r as ti,t as ni}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as W,SubagentTemplateSubjects as ri}from"./subagent-template/namespace.mjs";import{i as ii,n as ai,r as oi,t as si}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 ci}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as li}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as ui}from"@makaio/framework/contracts/model-registry";function di(e){return{source:`extension`,ownerKey:`extension:${e}`}}function fi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function pi(){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)}fi(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=di(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 mi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function hi(){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(N);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(mi(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 gi(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=Ci(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=bi(t);for(let a of t.relations)await _i(e,o,a,n,r,i)}async function _i(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!vi(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(ci.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 vi(e,t){return e?e.kinds?e.kinds.includes(yi(t)):!0:!1}function yi(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=xi(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 bi(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 xi(e){return JSON.stringify([Z(e.sourceRef),e.relationType,Si(e.target)])}function Si(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 Ci(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 wi(){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(F);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 Ti(){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(P);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 Ei(){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 Di(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(M);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${M.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&&Oi(t,a),c&&ki(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 Oi(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 ki(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 Ai=[O,ft,B,g,zr,Ur,V,H,vr,yr,br,xr,U,k,Hr,lr,ir,li,Br,D,R,ui,A,Vr,St,Yt,ni,z,v,W,ti];export{si as AdapterIdentityRegistry,Re as AdapterRegistry,O as AdapterRuntimeNamespace,gt as AdapterRuntimeSchemas,xt as AdapterRuntimeSubjects,ur as AgentInstanceStatusSchema,B as AgentRuntimeNamespace,dr as AgentRuntimeSchemas,fr as AgentRuntimeSelectionSchema,pr as AgentRuntimeSubjects,g as AgentStorageNamespace,m as AgentStorageSubjects,jn as ArtifactLifecycleHookRegistry,N as ArtifactLifecycleHookRegistryToken,on as ArtifactLifecycleHookRejectedError,yn as ArtifactSchemaRegistry,j as ArtifactSchemaRegistryToken,It as BugEntrySchema,ze as CONNECTOR_SWAP_DEFAULT_PIPELINE,Gn as CachedRegistryFetcher,vn as CanonicalModelResolutionError,gn as CanonicalModelResolver,rn as CanonicalModelService,Ln as CapabilityService,An as CapabilityToken,mr as CodebaseChangedEventSchema,V as CodebaseNamespace,hr as CodebaseSchemas,gr as CodebaseSubjects,Lt as CompressRequestSchema,Rt as CompressResponseSchema,zt as CompressionEventSchema,H as CompressionNamespace,Bt as CompressionSchemas,_r as CompressionSubjects,Mr as ContainerCreatedSchema,Pr as ContainerDestroyedSchema,Ct as ContainerIsolatedExecutionTargetSchema,Cr as ContainerIsolatedSpawnRequestSchema,wt as ContainerLocalExecutionTargetSchema,kr as ContainerLocalSpawnRequestSchema,Ir as ContainerRuntimeSchema,Fr as ContainerSpawnNamespace,jr as ContainerSpawnSubjects,wr as ContainerStartedSchema,Tr as ContainerStateSchema,Nr as ContainerStoppedSchema,ot as ContextWindowTracker,U as DockerNamespace,Or as DockerSubjects,at as EmbeddingIndexManager,Tt as ExecutionTargetInputSchema,Et as ExecutionTargetListQuerySchema,k as ExecutionTargetNamespace,Dt as ExecutionTargetResolveRequestSchema,Ot as ExecutionTargetSchema,kt as ExecutionTargetSchemas,Mt as ExecutionTargetSubjects,At as ExecutionTargetTypeSchema,Vt as ExtractedContextSchema,sn as FacetNamespaceRegistry,F as FacetNamespaceRegistryToken,Hn as FallbackRegistryFetcher,Ai as FrameworkServicesCoreNamespaces,jt as LocalExecutionTargetSchema,nt as MakaioSession,S as MakaioSessionService,D as MessageRoutingNamespace,rt as MessageRoutingSubjects,Nt as MessageStorageNamespace,Pt as MessageStorageSubjects,R as ModelRegistryNamespace,Un as ModelRegistryProviderNotFoundError,zn as ModelRegistrySchema,Vn as ModelRegistrySchemas,Bn as ModelRegistryService,Wn as ModelRegistrySubjects,Sn as ModelRegistryToken,Wt as PreferenceItemSchema,Gt as PreferenceKeySchema,Kt as PreferenceValueSchema,A as PreferencesNamespace,qt as PreferencesSchemas,Jt as PreferencesSubjects,Kn as ProviderModelOverrideSchema,_t as ResolveIdRequestSchema,vt as ResolveIdResponseSchema,yt as ResolveNameRequestSchema,bt as ResolveNameResponseSchema,Me as SessionBridge,On as SessionBridgeToken,c as SessionEventStorageNamespace,o as SessionEventStorageSubjects,Le as SessionExtensionContextImpl,He as SessionOrchestrator,I as SessionOrchestratorToken,b as SessionStorageNamespace,x as SessionStorageSubjects,Cn as SessionStorageToken,wn as SessionToken,We as SessionTurnManager,Ar as SpawnRequestSchema,Dr as SpawnResponseSchema,Er as StatusRequestSchema,Sr as StatusResponseSchema,Lr as StopRequestSchema,Rr as StopResponseSchema,ar as SubagentManager,sr as SubagentService,cr as SubagentServiceToken,Wr as SubagentTemplateCompletedEventSchema,Gr as SubagentTemplateCreateSchema,Kr as SubagentTemplateInstanceSchema,qr as SubagentTemplateInstanceStatusSchema,W as SubagentTemplateKernelNamespace,Jr as SubagentTemplateKernelSchemas,Yr as SubagentTemplateSchema,Xr as SubagentTemplateSettingsSchemas,Zr as SubagentTemplateSpawnRequestSchema,Qr as SubagentTemplateSpawnedEventSchema,ri as SubagentTemplateSubjects,$r as SubagentTemplateSummarySchema,ei as SubagentTemplateUpdateSchema,nn as SurfaceBindingRegistry,P as SurfaceBindingRegistryToken,Ht as TechnicalDetailsSchema,Ut as TodoEntrySchema,qn as ToolApprovalService,kn as ToolApprovalToken,Zt as ToolRegistry,Tn as ToolRegistryToken,cn as TransitionActionRegistry,tn as TransitionPipelineService,M as TransitionPipelineToken,an as TransitionRuleRegistry,Jn as TrayMenuEntrySchema,Yn as TrayMenuGroupEntrySchema,Xn as TrayMenuGroupSchema,Zn as TrayMenuItemClickedSchema,Qn as TrayMenuListEntrySchema,$n as TrayMenuMetadataSchema,z as TrayMenuNamespace,er as TrayMenuSchemas,tr as TrayMenuSectionSchema,rr as TrayMenuService,nr as TrayMenuSubjects,bn as TrayMenuToken,De as Turn,je as TurnContextEnricher,Ft as TurnStorageNamespace,y as TurnStorageSubjects,pn as WORKFLOW_START_ACTION_TYPE,In as WorkflowBlockRegistry,L as WorkflowBlockRegistryToken,me as actionRegistry,ht as activateProviderContext,pt as activateProviderContextStrict,e as agents,Fn as artifactLifecycleHookRegistryPackage,xn as artifactSchemaRegistryPackage,_e as assembleForkContext,ai as buildDeterministicAdapterId,mt as buildProviderContext,f as buildRecoveryContext,ne as buildRecoveryContextWithPipeline,l as buildSessionContext,ye as buildTurnInitiator,_n as canonicalModelPackage,Pn as capabilityPackage,pi as createArtifactKindContributionProcessor,hi as createArtifactLifecycleHookContributionProcessor,wi as createFacetNamespaceContributionProcessor,mn as createModelRegistryPackage,ke as createSessionExtensionContext,Ti as createSurfaceBindingContributionProcessor,Mn as createToolContributionProcessor,Di as createTransitionContributionProcessor,Ei as createWorkflowBlockContributionProcessor,d as ensureAgentCwd,Te as ensureAgentModel,ie as extractTextContent,Qt as facetNamespaceRegistryPackage,Ye as fetchAgentsBySession,lt as fetchMessageCountsBySession,Be as fetchPreviewBySession,E as fetchSessionPreviewMaps,ge as findTurnByAgent,Nn as frameworkCorePackages,te as getFullConversation,de as getOrCreateSession,tt as importCursors,st as importCursorsDual,Fe as kindToBranchKind,Ie as mapAgentsBySession,T as mapRowToSession,et as mapToSession,Rn as mergeModelMetadata,Ne as messageRouting,Ke as messageRoutingDual,i as messages,ce as normalizeSelectionString,we as normalizeToBlocks,ct as parseForkTransforms,Pe as pickFallbackRuntimeOptions,re as recoverAgent,se as registerAbandonHandler,oi as registerAdapterRuntimeIdentityHandlers,Ce as registerAttachHandler,ve as registerBuiltInActions,ae as registerCompressHandler,Qe as registerCompressLineageResolver,Ze as registerCoreSessionServiceHandlers,C as registerDrizzleAgentStorage,Xe as registerDrizzleImportCursorStorage,Ae as registerDrizzleMessageRoutingStorage,qe as registerDrizzleMessageStorage,_ as registerDrizzleSessionEventStorage,Oe as registerDrizzleSessionStorage,Ee as registerDrizzleTurnStorage,fe as registerForkHandler,ut as registerFtsSearchHandler,w as registerGetStatusCountsHandler,dt as registerListActionsHandler,Ve as registerMemoryAgentStorage,Ge as registerMemoryMessageStorage,u as registerMemorySessionEventStorage,$e as registerMemorySessionStorage,oe as registerMemoryTurnStorage,be as registerMergeHandler,Je as registerParentResolver,Ue as registerResumeHandler,it as registerSpawningToolCallResolver,xe as resetBuiltInActionsRegistration,pe as resolveAdapterId,le as resolveAdapterNameById,gi as resolveArtifactContext,ii as resolveDeterministicAdapterId,h as resolveExecutionTarget,ee as resolveModelCapabilities,ue as resolveTargetAgents,Se as routeToAgents,he as routeToAgentsCore,hn as sessionBridgePackage,s as sessionEvents,a as sessionEventsDual,en as sessionOrchestratorPackage,$t as sessionPackage,dn as sessionStoragePackage,t as sessions,or as subagentServicePackage,Dn as surfaceBindingRegistryPackage,Xt as toolApprovalPackage,En as toolRegistryPackage,ln as transitionPipelinePackage,un as trayMenuPackage,r as turns,n as turnsDual,p as verifyAndRecoverAgents,fn as workflowBlockRegistryPackage};
@@ -1,3 +1,3 @@
1
- import { t as LogImporterInfo } from "../../index-wfSedMR9.mjs";
2
- import { a as OrchestratorFactory, i as OrchestratorEntry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-InWSdi-V.mjs";
1
+ import { t as LogImporterInfo } from "../../index-D7rWAEY0.mjs";
2
+ import { a as OrchestratorFactory, i as OrchestratorEntry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BMlzmWp6.mjs";
3
3
  export { type LogImportRegistryOptions, type LogImporterInfo, type LogImporterRegistration, type OrchestratorEntry, type OrchestratorFactory };