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

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 (146) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-Lx6K7yQS.mjs +1 -0
  3. package/dist/adapter-subsystem/index.mjs +1 -1
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/index.d.mts +219 -40
  6. package/dist/adapters/index.mjs +6 -6
  7. package/dist/adapters/node.d.mts +1 -1
  8. package/dist/adapters/node.mjs +1 -1
  9. package/dist/{base-orchestrator-BNysGvaM.d.mts → base-orchestrator-ODRyDBzu.d.mts} +9 -1
  10. package/dist/bus/index.mjs +1 -1
  11. package/dist/client-n0OJiTt1.mjs +1 -0
  12. package/dist/contracts/adapter/index.d.mts +2 -2
  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/adapter/schemas/session-lineage.mjs +1 -1
  16. package/dist/contracts/artifact/index.d.mts +1 -1
  17. package/dist/contracts/client/index.d.mts +2 -2
  18. package/dist/contracts/client/index.mjs +1 -1
  19. package/dist/contracts/config/index.d.mts +6 -6
  20. package/dist/contracts/extension/index.d.mts +3 -3
  21. package/dist/contracts/facet/index.d.mts +1 -1
  22. package/dist/contracts/harness/index.d.mts +1 -1
  23. package/dist/contracts/index.d.mts +372 -194
  24. package/dist/contracts/index.mjs +1 -1
  25. package/dist/contracts/materialization/index.d.mts +2 -2
  26. package/dist/contracts/provider/index.d.mts +1 -1
  27. package/dist/contracts/session/index.d.mts +3 -3
  28. package/dist/contracts/session/index.mjs +1 -1
  29. package/dist/contracts/shared/index.d.mts +1 -1
  30. package/dist/contracts/variant/index.d.mts +1 -1
  31. package/dist/contracts/workflow/index.d.mts +2 -2
  32. package/dist/{definition-b9jyJqPD.d.mts → definition-DpkfJi8v.d.mts} +1 -1
  33. package/dist/drizzle/0023_m_mr9gc37m.sql +1 -0
  34. package/dist/drizzle/meta/_journal.json +7 -0
  35. package/dist/handlers-B74FvKlA.mjs +57 -0
  36. package/dist/hooks/index.d.mts +19 -2
  37. package/dist/{identity-BarL3JYI.mjs → identity-DC3Pk0ps.mjs} +1 -1
  38. package/dist/{index-4eP9DRL_.d.mts → index-B3fjN5HX.d.mts} +7 -7
  39. package/dist/{index-3X0368CL.d.mts → index-B5Uczo3R.d.mts} +24 -24
  40. package/dist/{index-C6Ys8pxt.d.mts → index-BIZeIA5k.d.mts} +6 -6
  41. package/dist/{index-BYfSAJRC.d.mts → index-BvTd61i5.d.mts} +151 -29
  42. package/dist/{index-B5w-0Gg9.d.mts → index-BvjLe_w9.d.mts} +12 -12
  43. package/dist/{index-DQYj8-53.d.mts → index-C8k2f_E0.d.mts} +1 -1
  44. package/dist/{index-DEzdNQum.d.mts → index-CYHWOXUm.d.mts} +1 -1
  45. package/dist/{index-3J0HZlPH.d.mts → index-CwHP8Jxs.d.mts} +145 -12
  46. package/dist/{index-D6aAzr32.d.mts → index-Cyi7y_aG.d.mts} +20 -20
  47. package/dist/{index-BKZhnb2B.d.mts → index-D7Fu3375.d.mts} +404 -24
  48. package/dist/{index-31vR1sxk.d.mts → index-DFK3tpEY.d.mts} +70 -10
  49. package/dist/{index-DV4nRk0h.d.mts → index-DS6kxiFl.d.mts} +15 -15
  50. package/dist/{index-O08Q2ikz.d.mts → index-DTBQOCar.d.mts} +8 -8
  51. package/dist/{index-DvHYpi-J.d.mts → index-DmJ-OpTD.d.mts} +917 -68
  52. package/dist/{index-C5C1tk9f.d.mts → index-Dtb2cVJz.d.mts} +47 -47
  53. package/dist/{index-CaerrEDH.d.mts → index-NkNbYFud.d.mts} +1 -1
  54. package/dist/{index-D9-vOJvZ.d.mts → index-h5go5Dtd.d.mts} +1 -1
  55. package/dist/kernel/extension/index.d.mts +1 -1
  56. package/dist/kernel/index.d.mts +2 -2
  57. package/dist/kernel/observability/index.d.mts +1 -1
  58. package/dist/{namespace-D8P8Sxce2.d.mts → namespace-6sIu5nBI2.d.mts} +2 -2
  59. package/dist/{namespace-CfvtDD_U.d.mts → namespace-BLER-Qom.d.mts} +2 -2
  60. package/dist/{namespace-B3ol3pc-.d.mts → namespace-BigVYQyx.d.mts} +12 -0
  61. package/dist/{namespace-j7vFsmYL.d.mts → namespace-C74bbsdZ.d.mts} +2 -2
  62. package/dist/{namespace-B4cV_pk3.d.mts → namespace-CGxFYDlK.d.mts} +32 -32
  63. package/dist/{namespace-DhDY0juT.d.mts → namespace-D4Uf5Mw_.d.mts} +366 -18
  64. package/dist/{namespace-DmqoDDRD.d.mts → namespace-DRXQyBe0.d.mts} +46 -2
  65. package/dist/{namespace-Bm77p82L.d.mts → namespace-JFzrlNs4.d.mts} +24 -24
  66. package/dist/{package-MmQvNJ3u.d.mts → package-B6mEMD8r.d.mts} +5 -0
  67. package/dist/{package-BmRhhi-3.mjs → package-BQn_RTo7.mjs} +1 -1
  68. package/dist/package.json +1 -1
  69. package/dist/{schema-DLNBajAV.d.mts → schema-B9goOieO.d.mts} +27 -0
  70. package/dist/{schemas-DuuVuhHX2.d.mts → schemas-9S9Y9PHT2.d.mts} +5 -5
  71. package/dist/{schemas-CoFCV42v.d.mts → schemas-B_t6oOK-.d.mts} +2 -2
  72. package/dist/{schemas-lnE9YoG7.d.mts → schemas-CW6YsPT4.d.mts} +3 -3
  73. package/dist/schemas-CkOigLAT.mjs +1 -0
  74. package/dist/{schemas-BemsLc_V.d.mts → schemas-CurUbHy4.d.mts} +4 -4
  75. package/dist/{schemas-DMMWmWjq.d.mts → schemas-DXeGCbJ9.d.mts} +1 -1
  76. package/dist/{schemas-DWfo0wp4.d.mts → schemas-DnmbwE_V.d.mts} +7 -7
  77. package/dist/{schemas-DmGRSeIq.d.mts → schemas-t6h9oSct.d.mts} +28 -1
  78. package/dist/services/adapter-runtime/index.d.mts +4 -4
  79. package/dist/services/adapter-runtime/index.mjs +1 -1
  80. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  81. package/dist/services/adapter-runtime/schemas.d.mts +2 -2
  82. package/dist/services/adapter-runtime/schemas.mjs +1 -1
  83. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  84. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  85. package/dist/services/agent-runtime/index.d.mts +2 -2
  86. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  87. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  88. package/dist/services/context-rules/index.d.mts +3 -3
  89. package/dist/services/filesystem/namespace.d.mts +6 -6
  90. package/dist/services/filesystem/schemas.d.mts +3 -3
  91. package/dist/services/git/namespace.d.mts +2 -2
  92. package/dist/services/git/schemas.d.mts +1 -1
  93. package/dist/services/harness/index.d.mts +3 -3
  94. package/dist/services/index.d.mts +55 -48
  95. package/dist/services/index.mjs +1 -1
  96. package/dist/services/log-import/browser.d.mts +1 -1
  97. package/dist/services/log-import/index.d.mts +14 -1
  98. package/dist/services/log-import/index.mjs +2 -2
  99. package/dist/services/preferences/index.d.mts +2 -2
  100. package/dist/services/preferences/schemas.d.mts +1 -1
  101. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  102. package/dist/services/session/handlers/index.d.mts +1 -1
  103. package/dist/services/session/handlers/index.mjs +1 -1
  104. package/dist/services/session/index.d.mts +7 -7
  105. package/dist/services/session/index.mjs +1 -1
  106. package/dist/services/session/messages/namespace.d.mts +1 -1
  107. package/dist/services/session/session-events/namespace.d.mts +1 -1
  108. package/dist/services/session/storage/namespace.d.mts +1 -1
  109. package/dist/services/session/storage/schema.d.mts +1 -1
  110. package/dist/services/session/storage/schema.mjs +1 -1
  111. package/dist/services/session/testing/index.mjs +3 -2
  112. package/dist/services/session-editor/index.d.mts +1 -1
  113. package/dist/services/settings/namespace.d.mts +5 -5
  114. package/dist/services/subagent-template/index.d.mts +2 -2
  115. package/dist/services/subagent-template/namespace.d.mts +1 -1
  116. package/dist/services/subagent-template/schemas.d.mts +1 -1
  117. package/dist/services/tool-approval/index.mjs +1 -1
  118. package/dist/services/tools/index.mjs +1 -1
  119. package/dist/services/tray-menu/index.d.mts +2 -2
  120. package/dist/services/tray-menu/namespace.d.mts +1 -1
  121. package/dist/services/tray-menu/schemas.d.mts +1 -1
  122. package/dist/session-CZUrp7gC.mjs +69 -0
  123. package/dist/session-Dp7z5N1d.mjs +1 -0
  124. package/dist/{session-lineage-DR-9DU-U.d.mts → session-lineage-C1M7-O3C.d.mts} +3 -3
  125. package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-BvRF22by.d.mts} +10 -10
  126. package/dist/{tool-approval-service-MU_DmJsf.mjs → tool-approval-service-BIbUSuqg.mjs} +1 -1
  127. package/dist/{tools-BrNm-een.mjs → tools-Yz8XyiwA.mjs} +1 -1
  128. package/dist/{transition-Dq41YCkc.d.mts → transition-DYorNHZu.d.mts} +1 -1
  129. package/dist/{types-C76EP81O.d.mts → types-9XCB1aPK.d.mts} +442 -30
  130. package/dist/{types-BMS6yfLS.d.mts → types-BNW5n6qm.d.mts} +1 -1
  131. package/dist/{types-BMlzmWp6.d.mts → types-BWduCvRU.d.mts} +11 -0
  132. package/dist/{types-Cse8s_cD.d.mts → types-N_BOtTqt.d.mts} +29 -18
  133. package/dist/ui-kernel/index.d.mts +4 -4
  134. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  135. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  136. package/dist/workflow-engine/index.d.mts +44 -44
  137. package/dist/workflow-engine/index.mjs +1 -1
  138. package/dist/workflow-engine/package.d.mts +1 -1
  139. package/dist/workflow-engine/package.mjs +1 -1
  140. package/package.json +1 -1
  141. package/dist/adapter-BRxCc72E.mjs +0 -1
  142. package/dist/client-BgUjVbXX.mjs +0 -1
  143. package/dist/handlers-v47Gbsr1.mjs +0 -57
  144. package/dist/schemas-ftgVeWIG.mjs +0 -1
  145. package/dist/session-CKWfn3oc.mjs +0 -1
  146. package/dist/session-DCbJwYEU.mjs +0 -69
@@ -1,9 +1,9 @@
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
- import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-B3ol3pc-.mjs";
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-D6aAzr32.mjs";
5
- import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-CoFCV42v.mjs";
6
- import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-CfvtDD_U.mjs";
1
+ import { c as ResolveIdResponse, d as ResolveNameRequestSchema, f as ResolveNameResponse, l as ResolveIdResponseSchema, o as ResolveIdRequest, p as ResolveNameResponseSchema, s as ResolveIdRequestSchema, t as AdapterRuntimeSchemas, u as ResolveNameRequest } from "../schemas-t6h9oSct.mjs";
2
+ import { n as AdapterRuntimeSubjects, t as AdapterRuntimeNamespace } from "../namespace-BigVYQyx.mjs";
3
+ import { a as resolveDeterministicAdapterId, i as registerAdapterRuntimeIdentityHandlers, n as RegisteredAdapterRuntimeIdentityHandlers, r as buildDeterministicAdapterId, t as AdapterIdentityRegistry } from "../index-h5go5Dtd.mjs";
4
+ import { _ as BindingRecord } from "../index-Cyi7y_aG.mjs";
5
+ import { a as AgentRuntimeSelectionSchema, i as AgentRuntimeSelection, n as AgentInstanceStatusSchema, r as AgentRuntimeSchemas, t as AgentInstanceStatus } from "../schemas-B_t6oOK-.mjs";
6
+ import { n as AgentRuntimeSubjects, t as AgentRuntimeNamespace } from "../namespace-BLER-Qom.mjs";
7
7
  import { t as CapabilityService } from "../index-C4nStEdA.mjs";
8
8
  import { n as CodebaseSubjects, t as CodebaseNamespace } from "../namespace-CQ8uza7o.mjs";
9
9
  import { n as CodebaseChangedEventSchema, r as CodebaseSchemas, t as CodebaseChangedEvent } from "../schemas-DKncXGnb.mjs";
@@ -13,26 +13,26 @@ import { a as ContextRuleInput, n as ContextRuleAction, t as ContextRule } from
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
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";
16
+ import { $t as recoverAgent, A as SelectTurn, At as createSessionExtensionContext, Bt as resetBuiltInActionsRegistration, C as MessageRoutingSubjects, Ct as registerDrizzleAgentStorage, D as registerMemoryMessageStorage, Dt as AgentStorageNamespace, E as messages, Et as registerMemorySessionStorage, F as EmbeddingIndexManager, Ft as CONNECTOR_SWAP_DEFAULT_PIPELINE, Gt as AgentContextState, Ht as registerGetStatusCountsHandler, I as registerDrizzleImportCursorStorage, It as normalizeSelectionString, Jt as buildTurnInitiator, Kt as ContextWindowTrackerConfig, L as importCursors, Lt as resolveAdapterNameById, M as turnsDual, Mt as assembleForkContext, N as registerMemoryTurnStorage, Nt as FallbackRuntimeOptions, O as registerDrizzleMessageStorage, Ot as AgentStorageSubjects, P as registerDrizzleTurnStorage, Pt as pickFallbackRuntimeOptions, Q as EventTransform, Qt as ensureAgentModel, R as importCursorsDual, Rt as registerListActionsHandler, S as MessageRoutingNamespace, St as registerFtsSearchHandler, T as SelectMessage, Tt as registerDrizzleSessionStorage, Ut as registerResumeHandler, Vt as actionRegistry, Wt as ContextWindowTracker, Xt as buildRecoveryContextWithPipeline, Yt as RecoveryConfig, Zt as ensureAgentCwd, _ as InsertMessageRouting, _t as fetchAgentsBySession, a as buildSessionContext, an as findTurnByAgent, at as registerMemorySessionEventStorage, b as messageRoutingDual, bt as mapRowToSession, c as kindToBranchKind, cn as extractTextContent, ct as sessionEvents, d as registerSpawningToolCallResolver, dn as AdapterRegistry, dt as SessionPreviewMaps, en as verifyAndRecoverAgents, f as registerCompressLineageResolver, fn as ISessionOrchestrator, ft as fetchSessionPreviewMaps, g as StartTurnOptions, gt as SearchSessionRow, h as MakaioSessionConfig, hn as MakaioSessionService, ht as SearchFilters, i as getFullConversation, in as resolveModelCapabilities, it as registerDrizzleSessionEventStorage, j as turns, jt as SessionBridge, k as InsertTurn, kt as SessionExtensionContextImpl, ln as normalizeToBlocks, lt as sessionEventsDual, m as MakaioSession, mn as registerCoreSessionServiceHandlers, mt as mapToSession, nn as resolveAdapterId, o as BuildContextOptions, on as getOrCreateSession, ot as InsertSessionEvent, p as registerParentResolver, pn as SessionOrchestrator, pt as mapAgentsBySession, qt as SessionContextWindowState, rn as resolveExecutionTarget, s as ContextAssemblyResult, sn as resolveTargetAgents, st as SelectSessionEvent, tn as buildRecoveryContext, un as TurnContextEnricher, v as SelectMessageRouting, vt as fetchMessageCountsBySession, w as InsertMessage, wt as registerMemoryAgentStorage, x as registerDrizzleMessageRoutingStorage, xt as parseForkTransforms, y as messageRouting, yt as fetchPreviewBySession, zt as registerBuiltInActions } from "../index-CwHP8Jxs.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-BvTd61i5.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-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";
19
+ import { i as SessionStorageSubjects, r as SessionStorageNamespace } from "../namespace-DRXQyBe0.mjs";
20
+ import { a as agents, s as sessions } from "../schema-B9goOieO.mjs";
21
+ import { n as SessionEventStorageSubjects, t as SessionEventStorageNamespace } from "../namespace-D4Uf5Mw_.mjs";
22
22
  import { t as TurnStorageNamespace } from "../namespace-D1_9WVCo.mjs";
23
23
  import { n as TurnStorageSubjects } from "../namespace-DAj_riOn.mjs";
24
- import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-Bm77p82L.mjs";
24
+ import { i as MessageStorageSubjects, r as MessageStorageNamespace } from "../namespace-JFzrlNs4.mjs";
25
25
  import { a as createToolContributionProcessor, c as ToolRegistryOptions, d as ToolsetPolicy, f as ToolsetPolicyProvider, l as ToolsWithToolsetsResult, o as ToolRegistry, s as ListToolsFilter, u as ToolsetInfo } from "../index-Cr9lh21j.mjs";
26
26
  import { t as ToolApprovalService } from "../index-BvLXySoB2.mjs";
27
27
  import { t as TrayMenuService } from "../index-DUD7wikz2.mjs";
28
- import { a as TrayMenuGroupSchema, c as TrayMenuListEntry, d as TrayMenuSchemas, f as TrayMenuSectionSchema, i as TrayMenuGroupEntrySchema, l as TrayMenuListEntrySchema, n as TrayMenuEntrySchema, o as TrayMenuItemClicked, r as TrayMenuGroup, s as TrayMenuItemClickedSchema, t as TrayMenuEntry, u as TrayMenuMetadataSchema } from "../schemas-lnE9YoG7.mjs";
29
- import { n as TrayMenuSubjects, t as TrayMenuNamespace } from "../namespace-j7vFsmYL.mjs";
28
+ import { a as TrayMenuGroupSchema, c as TrayMenuListEntry, d as TrayMenuSchemas, f as TrayMenuSectionSchema, i as TrayMenuGroupEntrySchema, l as TrayMenuListEntrySchema, n as TrayMenuEntrySchema, o as TrayMenuItemClicked, r as TrayMenuGroup, s as TrayMenuItemClickedSchema, t as TrayMenuEntry, u as TrayMenuMetadataSchema } from "../schemas-CW6YsPT4.mjs";
29
+ import { n as TrayMenuSubjects, t as TrayMenuNamespace } from "../namespace-C74bbsdZ.mjs";
30
30
  import { C as ModelRegistrySchemas, S as ModelRegistrySchema, T as ProviderModelOverrideSchema, _ as ModelRegistryGetLabModelsResponse, a as ModelRegistryService, b as ModelRegistryRefreshRequest, c as IModelRegistryFetcher, d as ModelRegistry, f as ModelRegistryCheckModelInProvidersRequest, g as ModelRegistryGetLabModelsRequest, h as ModelRegistryGetForProviderResponse, i as ModelRegistryProviderNotFoundError, l as ModelRegistryNamespace, m as ModelRegistryGetForProviderRequest, n as CachedRegistryFetcher, o as ModelRegistryServiceOptions, p as ModelRegistryCheckModelInProvidersResponse, r as FallbackRegistryFetcher, s as IModelRegistryCache, t as mergeModelMetadata, u as ModelRegistrySubjects, v as ModelRegistryGetProviderModelsRequest, w as ProviderModelOverride, x as ModelRegistryRefreshResponse, y as ModelRegistryGetProviderModelsResponse } from "../index-OGIC4puQ.mjs";
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
- import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DWfo0wp4.mjs";
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-DuuVuhHX2.mjs";
35
- import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-D8P8Sxce2.mjs";
32
+ import { a as PreferenceValueSchema, i as PreferenceKeySchema, n as PreferenceItemSchema, o as PreferencesSchemas, r as PreferenceKey, t as PreferenceItem } from "../schemas-DnmbwE_V.mjs";
33
+ import { n as PreferencesSubjects, t as PreferencesNamespace } from "../storage-namespace-BvRF22by.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-9S9Y9PHT2.mjs";
35
+ import { n as SubagentTemplateSubjects, t as SubagentTemplateKernelNamespace } from "../namespace-6sIu5nBI2.mjs";
36
36
  import * as _$zod from "zod";
37
37
  import { z } from "zod";
38
38
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -1320,6 +1320,12 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1320
1320
  adapterName: _$zod.ZodString;
1321
1321
  }, _$zod_v4_core0.$strict>;
1322
1322
  };
1323
+ getMachineId: {
1324
+ request: _$zod.ZodObject<{}, _$zod_v4_core0.$strict>;
1325
+ response: _$zod.ZodObject<{
1326
+ machineId: _$zod.ZodOptional<_$zod.ZodString>;
1327
+ }, _$zod_v4_core0.$strict>;
1328
+ };
1323
1329
  }>, _$_makaio_core0.BusNamespaceDefinition<"adapterSubsystem", {
1324
1330
  getAdapterConfig: {
1325
1331
  request: _$zod.ZodObject<{
@@ -1331,13 +1337,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1331
1337
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1332
1338
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1333
1339
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1340
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1334
1341
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1335
1342
  label: _$zod.ZodString;
1336
1343
  url: _$zod.ZodString;
1337
1344
  }, _$zod_v4_core0.$strict>>>;
1338
1345
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1339
1346
  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
1347
  name: _$zod.ZodString;
1342
1348
  enabled: _$zod.ZodBoolean;
1343
1349
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1356,13 +1362,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1356
1362
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1357
1363
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1358
1364
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1365
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1359
1366
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1360
1367
  label: _$zod.ZodString;
1361
1368
  url: _$zod.ZodString;
1362
1369
  }, _$zod_v4_core0.$strict>>>;
1363
1370
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1364
1371
  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
1372
  name: _$zod.ZodString;
1367
1373
  enabled: _$zod.ZodBoolean;
1368
1374
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1384,8 +1390,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1384
1390
  name: _$zod.ZodString;
1385
1391
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1386
1392
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1387
- disabled: "disabled";
1388
1393
  enabled: "enabled";
1394
+ disabled: "disabled";
1389
1395
  visible: "visible";
1390
1396
  }>>>;
1391
1397
  modelFilterMode: _$zod.ZodEnum<{
@@ -1411,8 +1417,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1411
1417
  name: _$zod.ZodString;
1412
1418
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1413
1419
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1414
- disabled: "disabled";
1415
1420
  enabled: "enabled";
1421
+ disabled: "disabled";
1416
1422
  visible: "visible";
1417
1423
  }>>>;
1418
1424
  modelFilterMode: _$zod.ZodEnum<{
@@ -1438,8 +1444,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1438
1444
  name: _$zod.ZodString;
1439
1445
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1440
1446
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1441
- disabled: "disabled";
1442
1447
  enabled: "enabled";
1448
+ disabled: "disabled";
1443
1449
  visible: "visible";
1444
1450
  }>>>;
1445
1451
  modelFilterMode: _$zod.ZodEnum<{
@@ -1502,8 +1508,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1502
1508
  name: _$zod.ZodString;
1503
1509
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1504
1510
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1505
- disabled: "disabled";
1506
1511
  enabled: "enabled";
1512
+ disabled: "disabled";
1507
1513
  visible: "visible";
1508
1514
  }>>>;
1509
1515
  modelFilterMode: _$zod.ZodEnum<{
@@ -1651,8 +1657,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1651
1657
  openai: _$zod.ZodOptional<_$zod.ZodString>;
1652
1658
  }, _$zod_v4_core0.$strip>>;
1653
1659
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1654
- disabled: "disabled";
1655
1660
  enabled: "enabled";
1661
+ disabled: "disabled";
1656
1662
  visible: "visible";
1657
1663
  }>>>;
1658
1664
  modelFilterMode: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -1668,8 +1674,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1668
1674
  name: _$zod.ZodString;
1669
1675
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1670
1676
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1671
- disabled: "disabled";
1672
1677
  enabled: "enabled";
1678
+ disabled: "disabled";
1673
1679
  visible: "visible";
1674
1680
  }>>>;
1675
1681
  modelFilterMode: _$zod.ZodEnum<{
@@ -1694,8 +1700,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1694
1700
  openai: _$zod.ZodOptional<_$zod.ZodString>;
1695
1701
  }, _$zod_v4_core0.$strip>>>;
1696
1702
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1697
- disabled: "disabled";
1698
1703
  enabled: "enabled";
1704
+ disabled: "disabled";
1699
1705
  visible: "visible";
1700
1706
  }>>>;
1701
1707
  enabled: _$zod.ZodOptional<_$zod.ZodBoolean>;
@@ -1708,8 +1714,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1708
1714
  name: _$zod.ZodString;
1709
1715
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1710
1716
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1711
- disabled: "disabled";
1712
1717
  enabled: "enabled";
1718
+ disabled: "disabled";
1713
1719
  visible: "visible";
1714
1720
  }>>>;
1715
1721
  modelFilterMode: _$zod.ZodEnum<{
@@ -1736,8 +1742,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1736
1742
  name: _$zod.ZodString;
1737
1743
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1738
1744
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1739
- disabled: "disabled";
1740
1745
  enabled: "enabled";
1746
+ disabled: "disabled";
1741
1747
  visible: "visible";
1742
1748
  }>>>;
1743
1749
  modelFilterMode: _$zod.ZodEnum<{
@@ -1771,8 +1777,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1771
1777
  name: _$zod.ZodString;
1772
1778
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1773
1779
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1774
- disabled: "disabled";
1775
1780
  enabled: "enabled";
1781
+ disabled: "disabled";
1776
1782
  visible: "visible";
1777
1783
  }>>>;
1778
1784
  modelFilterMode: _$zod.ZodEnum<{
@@ -1803,8 +1809,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1803
1809
  name: _$zod.ZodString;
1804
1810
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1805
1811
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1806
- disabled: "disabled";
1807
1812
  enabled: "enabled";
1813
+ disabled: "disabled";
1808
1814
  visible: "visible";
1809
1815
  }>>>;
1810
1816
  modelFilterMode: _$zod.ZodEnum<{
@@ -1843,13 +1849,13 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1843
1849
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1844
1850
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1845
1851
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1852
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1846
1853
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1847
1854
  label: _$zod.ZodString;
1848
1855
  url: _$zod.ZodString;
1849
1856
  }, _$zod_v4_core0.$strict>>>;
1850
1857
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1851
1858
  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
1859
  name: _$zod.ZodString;
1854
1860
  enabled: _$zod.ZodBoolean;
1855
1861
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1908,8 +1914,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1908
1914
  name: _$zod.ZodString;
1909
1915
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1910
1916
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1911
- disabled: "disabled";
1912
1917
  enabled: "enabled";
1918
+ disabled: "disabled";
1913
1919
  visible: "visible";
1914
1920
  }>>>;
1915
1921
  modelFilterMode: _$zod.ZodEnum<{
@@ -1928,8 +1934,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
1928
1934
  name: _$zod.ZodString;
1929
1935
  endpointOverrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
1930
1936
  modelVisibility: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodEnum<{
1931
- disabled: "disabled";
1932
1937
  enabled: "enabled";
1938
+ disabled: "disabled";
1933
1939
  visible: "visible";
1934
1940
  }>>>;
1935
1941
  modelFilterMode: _$zod.ZodEnum<{
@@ -2389,9 +2395,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2389
2395
  status: _$zod.ZodEnum<{
2390
2396
  completed: "completed";
2391
2397
  cancelled: "cancelled";
2392
- failed: "failed";
2393
2398
  running: "running";
2394
2399
  waiting_input: "waiting_input";
2400
+ failed: "failed";
2395
2401
  }>;
2396
2402
  result: _$zod.ZodOptional<_$zod.ZodString>;
2397
2403
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2626,6 +2632,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
2626
2632
  request: _$zod.ZodObject<{
2627
2633
  agentId: _$zod.ZodString;
2628
2634
  adapterId: _$zod.ZodOptional<_$zod.ZodString>;
2635
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2629
2636
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2630
2637
  model: _$zod.ZodOptional<_$zod.ZodString>;
2631
2638
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
@@ -3256,9 +3263,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3256
3263
  changed: _$zod.ZodObject<{
3257
3264
  ruleId: _$zod.ZodString;
3258
3265
  changeType: _$zod.ZodEnum<{
3259
- updated: "updated";
3260
3266
  deleted: "deleted";
3261
3267
  created: "created";
3268
+ updated: "updated";
3262
3269
  }>;
3263
3270
  previous: _$zod.ZodNullable<_$zod.ZodObject<{
3264
3271
  scope: _$zod.ZodEnum<{
@@ -3856,18 +3863,18 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
3856
3863
  changed: _$zod.ZodObject<{
3857
3864
  path: _$zod.ZodString;
3858
3865
  kind: _$zod.ZodEnum<{
3859
- change: "change";
3860
3866
  delete: "delete";
3861
3867
  create: "create";
3868
+ change: "change";
3862
3869
  }>;
3863
3870
  }, _$zod_v4_core0.$strip>;
3864
3871
  batch: _$zod.ZodObject<{
3865
3872
  changes: _$zod.ZodArray<_$zod.ZodObject<{
3866
3873
  path: _$zod.ZodString;
3867
3874
  kind: _$zod.ZodEnum<{
3868
- change: "change";
3869
3875
  delete: "delete";
3870
3876
  create: "create";
3877
+ change: "change";
3871
3878
  }>;
3872
3879
  }, _$zod_v4_core0.$strip>>;
3873
3880
  }, _$zod_v4_core0.$strip>;
@@ -4059,7 +4066,6 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4059
4066
  name: _$zod.ZodString;
4060
4067
  adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4061
4068
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
4062
- credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4063
4069
  toolCapabilityMap: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodReadonly<_$zod.ZodArray<_$zod.ZodEnum<{
4064
4070
  "file.read": "file.read";
4065
4071
  "file.write": "file.write";
@@ -4081,6 +4087,7 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
4081
4087
  "always-ask": "always-ask";
4082
4088
  "full-access": "full-access";
4083
4089
  }>>>;
4090
+ credentials: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4084
4091
  approvalPolicy: _$zod.ZodEnum<{
4085
4092
  reject: "reject";
4086
4093
  "always-ask": "always-ask";
@@ -5115,9 +5122,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5115
5122
  scope: _$zod.ZodString;
5116
5123
  context: _$zod.ZodOptional<_$zod.ZodString>;
5117
5124
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
5125
+ mobile: "mobile";
5118
5126
  desktop: "desktop";
5119
5127
  tablet: "tablet";
5120
- mobile: "mobile";
5121
5128
  }>>;
5122
5129
  }, _$zod_v4_core0.$strip>;
5123
5130
  category: _$zod.ZodString;
@@ -5136,9 +5143,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5136
5143
  scope: _$zod.ZodString;
5137
5144
  context: _$zod.ZodOptional<_$zod.ZodString>;
5138
5145
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
5146
+ mobile: "mobile";
5139
5147
  desktop: "desktop";
5140
5148
  tablet: "tablet";
5141
- mobile: "mobile";
5142
5149
  }>>;
5143
5150
  }, _$zod_v4_core0.$strip>;
5144
5151
  category: _$zod.ZodString;
@@ -5158,9 +5165,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5158
5165
  scope: _$zod.ZodString;
5159
5166
  context: _$zod.ZodOptional<_$zod.ZodString>;
5160
5167
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
5168
+ mobile: "mobile";
5161
5169
  desktop: "desktop";
5162
5170
  tablet: "tablet";
5163
- mobile: "mobile";
5164
5171
  }>>;
5165
5172
  }, _$zod_v4_core0.$strip>;
5166
5173
  category: _$zod.ZodString;
@@ -5179,9 +5186,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5179
5186
  scope: _$zod.ZodOptional<_$zod.ZodString>;
5180
5187
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
5181
5188
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
5189
+ mobile: "mobile";
5182
5190
  desktop: "desktop";
5183
5191
  tablet: "tablet";
5184
- mobile: "mobile";
5185
5192
  }>>>;
5186
5193
  }, _$zod_v4_core0.$strip>>;
5187
5194
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -5196,9 +5203,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5196
5203
  scope: _$zod.ZodString;
5197
5204
  context: _$zod.ZodOptional<_$zod.ZodString>;
5198
5205
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
5206
+ mobile: "mobile";
5199
5207
  desktop: "desktop";
5200
5208
  tablet: "tablet";
5201
- mobile: "mobile";
5202
5209
  }>>;
5203
5210
  }, _$zod_v4_core0.$strip>;
5204
5211
  category: _$zod.ZodString;
@@ -5627,8 +5634,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5627
5634
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
5628
5635
  readiness: _$zod.ZodOptional<_$zod.ZodEnum<{
5629
5636
  ready: "ready";
5630
- "needs-setup": "needs-setup";
5631
5637
  "missing-credentials": "missing-credentials";
5638
+ "needs-setup": "needs-setup";
5632
5639
  }>>;
5633
5640
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
5634
5641
  protocol: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -5777,9 +5784,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
5777
5784
  groupId: _$zod.ZodString;
5778
5785
  entries: _$zod.ZodArray<_$zod.ZodObject<{
5779
5786
  metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
5780
- enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
5781
5787
  label: _$zod.ZodString;
5782
5788
  priority: _$zod.ZodDefault<_$zod.ZodNumber>;
5789
+ enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
5783
5790
  entryId: _$zod.ZodString;
5784
5791
  }, _$zod_v4_core0.$strip>>;
5785
5792
  section: _$zod.ZodEnum<{
@@ -6274,9 +6281,9 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6274
6281
  status: _$zod.ZodEnum<{
6275
6282
  completed: "completed";
6276
6283
  cancelled: "cancelled";
6277
- failed: "failed";
6278
6284
  running: "running";
6279
6285
  waiting_input: "waiting_input";
6286
+ failed: "failed";
6280
6287
  }>;
6281
6288
  result: _$zod.ZodOptional<_$zod.ZodString>;
6282
6289
  error: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6351,8 +6358,8 @@ declare const FrameworkServicesCoreNamespaces: readonly [_$_makaio_core0.BusName
6351
6358
  create: {
6352
6359
  request: _$zod.ZodObject<{
6353
6360
  name: _$zod.ZodString;
6354
- enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
6355
6361
  adapterName: _$zod.ZodString;
6362
+ enabled: _$zod.ZodDefault<_$zod.ZodBoolean>;
6356
6363
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
6357
6364
  model: _$zod.ZodOptional<_$zod.ZodString>;
6358
6365
  systemPrompt: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1 +1 @@
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
+ 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,I as h,M as ee,N as te,O as ne,P as re,T as ie,V as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as de,g as fe,h as pe,i as me,j as he,k as ge,l as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,w as De,x as Oe,y as ke}from"../handlers-B74FvKlA.mjs";import{TurnStorageNamespace as Ae,TurnStorageSubjects as je}from"./turn/namespace.mjs";import{SessionStorageNamespace as Me,SessionStorageSubjects as Ne}from"./session/storage/namespace.mjs";import{$ as g,A as _,B as v,C as y,D as b,E as Pe,F as Fe,G as Ie,H as Le,I as Re,J as ze,K as x,L as Be,M as Ve,O as He,P as Ue,Q as We,R as Ge,S as Ke,T as qe,U as Je,V as Ye,W as Xe,X as Ze,Y as Qe,Z as $e,a as et,b as tt,c as nt,et as rt,i as it,j as at,k as ot,l as st,o as ct,q as lt,r as ut,s as dt,t as ft,u as pt,w as mt,x as ht,y as gt,z as _t}from"../session-CZUrp7gC.mjs";import{t as vt}from"../namespace-DBHwyhME.mjs";import{n as yt,r as bt,t as xt}from"../provider-context-DC_eq7es.mjs";import{AdapterRuntimeSchemas as St,ResolveIdRequestSchema as Ct,ResolveIdResponseSchema as wt,ResolveNameRequestSchema as Tt,ResolveNameResponseSchema as Et}from"./adapter-runtime/schemas.mjs";import{AdapterRuntimeNamespace as S,AdapterRuntimeSubjects as Dt}from"./adapter-runtime/namespace.mjs";import{ProviderStorageNamespace as Ot}from"./settings/storage/providers-namespace.mjs";import{ContainerIsolatedExecutionTargetSchema as kt,ContainerLocalExecutionTargetSchema as At,ExecutionTargetInputSchema as jt,ExecutionTargetListQuerySchema as Mt,ExecutionTargetResolveRequestSchema as Nt,ExecutionTargetSchema as Pt,ExecutionTargetSchemas as Ft,ExecutionTargetTypeSchema as It,LocalExecutionTargetSchema as Lt}from"./execution-target/schemas.mjs";import{ExecutionTargetNamespace as C,ExecutionTargetSubjects as Rt}from"./execution-target/namespace.mjs";import{MessageStorageNamespace as zt,MessageStorageSubjects as Bt}from"./session/messages/namespace.mjs";import{TurnStorageNamespace as Vt}from"./session/turns/namespace.mjs";import{BugEntrySchema as Ht,CompressRequestSchema as Ut,CompressResponseSchema as Wt,CompressionEventSchema as Gt,CompressionSchemas as Kt,ExtractedContextSchema as qt,TechnicalDetailsSchema as Jt,TodoEntrySchema as Yt}from"./compression/schemas.mjs";import{PreferenceItemSchema as Xt,PreferenceKeySchema as Zt,PreferenceValueSchema as Qt,PreferencesSchemas as $t}from"./preferences/schemas.mjs";import{PreferencesNamespace as w,PreferencesSubjects as en}from"./preferences/storage-namespace.mjs";import{t as tn}from"../namespace-wke7juzy.mjs";import{A as nn,B as rn,C as an,D as on,E as sn,F as cn,G as ln,H as un,I as dn,J as fn,K as pn,L as mn,M as hn,N as gn,O as _n,P as vn,R as yn,S as bn,T as xn,U as Sn,V as Cn,W as wn,Y as Tn,_ as En,a as T,b as Dn,c as On,d as kn,f as An,g as E,h as jn,i as D,j as Mn,k as O,l as Nn,m as Pn,o as Fn,p as k,q as In,r as Ln,s as A,u as Rn,v as j,w as zn,x as Bn,y as Vn,z as Hn}from"../tools-Yz8XyiwA.mjs";import{t as Un}from"../capability-service-XlymTzz1.mjs";import{a as Wn,c as Gn,i as Kn,l as qn,n as Jn,o as M,r as Yn,s as Xn,t as Zn,u as Qn}from"../model-registry-rYICIwyR.mjs";import{t as $n}from"../tool-approval-service-BIbUSuqg.mjs";import{TrayMenuEntrySchema as er,TrayMenuGroupEntrySchema as tr,TrayMenuGroupSchema as nr,TrayMenuItemClickedSchema as rr,TrayMenuListEntrySchema as ir,TrayMenuMetadataSchema as ar,TrayMenuSchemas as or,TrayMenuSectionSchema as sr}from"./tray-menu/schemas.mjs";import{TrayMenuNamespace as N,TrayMenuSubjects as cr}from"./tray-menu/namespace.mjs";import{t as lr}from"../tray-menu-service-B2AxiQqL.mjs";import{n as ur}from"../handler-BFNvtv5t.mjs";import{i as dr,n as fr,r as pr,t as mr}from"../package-CF_Zm2v4.mjs";import{FsNamespace as hr}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 gr,AgentRuntimeSchemas as _r,AgentRuntimeSelectionSchema as vr}from"./agent-runtime/schemas.mjs";import{AgentRuntimeNamespace as P,AgentRuntimeSubjects as yr}from"./agent-runtime/namespace.mjs";import{CodebaseChangedEventSchema as br,CodebaseSchemas as xr}from"./codebase/schemas.mjs";import{CodebaseNamespace as F,CodebaseSubjects as Sr}from"./codebase/namespace.mjs";import{CompressionNamespace as I,CompressionSubjects as Cr}from"./compression/namespace.mjs";import{r as wr,t as Tr}from"../storage-namespace-D5q9CrBp.mjs";import{DefinitionNamespace as Er}from"./definition/namespace.mjs";import{DialogNamespace as Dr}from"./dialog/namespace.mjs";import{_ as Or,c as kr,d as Ar,f as jr,g as Mr,h as Nr,i as Pr,l as Fr,m as Ir,n as Lr,o as Rr,p as zr,r as L,s as Br,t as Vr,u as Hr,v as Ur,y as Wr}from"../execution-target-BR8bLkCR.mjs";import{CLIDetectionNamespace as Gr}from"./cli-detection/namespace.mjs";import{LocalNotificationNamespace as Kr}from"./local-notification/namespace.mjs";import{t as qr}from"../namespace-CVMZVqB5.mjs";import{ExtensionConfigStorageNamespace as Jr}from"./settings/storage/extension-configs/namespace.mjs";import{ClientStorageNamespace as Yr}from"./settings/storage/clients-namespace.mjs";import{SubagentTemplateCompletedEventSchema as Xr,SubagentTemplateCreateSchema as Zr,SubagentTemplateInstanceSchema as Qr,SubagentTemplateInstanceStatusSchema as $r,SubagentTemplateKernelSchemas as ei,SubagentTemplateSchema as ti,SubagentTemplateSettingsSchemas as ni,SubagentTemplateSpawnRequestSchema as ri,SubagentTemplateSpawnedEventSchema as ii,SubagentTemplateSummarySchema as ai,SubagentTemplateUpdateSchema as oi}from"./subagent-template/schemas.mjs";import{r as si,t as ci}from"../namespace-BO3tODGC.mjs";import{SubagentTemplateKernelNamespace as R,SubagentTemplateSubjects as li}from"./subagent-template/namespace.mjs";import{i as ui,n as di,r as fi,t as pi}from"../identity-DC3Pk0ps.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 mi}from"@makaio/framework/contracts";import{ImportCursorStorageNamespace as hi}from"@makaio/framework/adapters";import{ModelRegistryPublicNamespace as gi}from"@makaio/framework/contracts/model-registry";function _i(e){return{source:`extension`,ownerKey:`extension:${e}`}}function vi(e,t){for(let n of e.values())if(n.registry===t)for(let e of n.registrations)t.registerKind(e,n.owner)}function yi(){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)}vi(e,n.registry)}};return{filter:e=>(e.artifactKinds?.kinds?.length??0)>0,async processActivated(n,r,i){let a=i.getService(T);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=_i(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 bi(e,t,n){return{...n,filter:{...n.filter,kind:e,schemaVersion:t}}}function xi(){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(D);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(bi(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 Si(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,refMetadataByKey:new Map,resolved:[],refs:[]},r=await B(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 z(n,r,H(await V(n,r),e.selectors),0,new Set([Z(e.ref)])),{rootRef:e.ref,refs:n.refs,resolved:n.resolved}}async function z(e,t,n,r,i){let a=Mi(t,n,r,i);if(e.walkedByKey.has(a))return;e.walkedByKey.add(a);let o=ki(t);for(let a of t.relations)await Ci(e,o,a,n,r,i)}async function Ci(e,t,n,r,i,a){let o=r?.[n.type];if(o?.hint===`omit`)return;let s=o?.hint??`link`;if(!wi(o,n.target)){W(e,U(t,n,s,`not-selected`));return}if(n.target.refClass!==`artifact`){W(e,U(t,n,s,`unsupported-ref-class`));return}let c=Z(n.target),l=a.has(c);if(i>=e.maxDepth&&!l){W(e,U(t,n,s,`depth-exceeded`));return}let u=e.resolvedByKey.has(c),d=await B(e,n.target);if(!d){W(e,U(t,n,s,`not-found`));return}if(W(e,{sourceRef:t,target:n.target,relationType:n.type,hint:s,status:`resolved`},{resolvedViaBackEdge:l}),u||e.resolved.push(d),l)return;let f=(o.depth??1)-1,p=f>0?{[n.type]:{...o,depth:f}}:void 0,m=H(H(await V(e,d),p),o.nested),h=new Set(a);h.add(c),await z(e,d,m,i+1,h)}async function B(e,t){let n=Z(t);if(e.resolvedByKey.has(n))return e.resolvedByKey.get(n)??null;let{artifact:r}=await e.bus.request(mi.resolve,{ref:t});return e.resolvedByKey.set(n,r),r}async function V(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 H(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 wi(e,t){return e?e.kinds?e.kinds.includes(Ti(t)):!0:!1}function Ti(e){return e.refClass===`local`?e.artifact.kind:e.kind}function U(e,t,n,r){return{sourceRef:e,target:t.target,relationType:t.type,hint:n,status:`unresolved`,reason:r}}function W(e,t,n){let r=Ai(t),i=e.refIndexByKey.get(r);if(i===void 0){e.refIndexByKey.set(r,e.refs.length),J(e,r,t,n),e.refs.push(t);return}let a=e.refs[i];if(a){if(t.status===`unresolved`&&t.reason===`depth-exceeded`){if(!Ei(a,Oi(e,r)))return;q(e,i,r,t,n);return}if(a.status===`unresolved`&&a.reason===`depth-exceeded`){if(t.status===`resolved`&&X(n)||t.status===`unresolved`&&!G(t.reason,a.reason))return;q(e,i,r,t,n);return}if(t.status===`unresolved`&&a.status===`unresolved`){G(t.reason,a.reason)&&q(e,i,r,t,n);return}if(t.status===`resolved`&&a.status===`unresolved`){q(e,i,r,t,n);return}t.status===`resolved`&&!X(n)&&Y(e,r,n)}}function Ei(e,t){return e.status===`resolved`?t:G(`depth-exceeded`,e.reason)}function G(e,t){return K(e)>K(t)}function K(e){return e===`not-selected`?0:e===`depth-exceeded`?1:2}function q(e,t,n,r,i){J(e,n,r,i),e.refs[t]=r}function J(e,t,n,r){if(n.status===`resolved`){Y(e,t,r);return}Di(e,t)}function Y(e,t,n){e.refMetadataByKey.set(t,n??{resolvedViaBackEdge:!1})}function Di(e,t){e.refMetadataByKey.delete(t)}function Oi(e,t){return X(e.refMetadataByKey.get(t))}function X(e){return e?.resolvedViaBackEdge===!0}function ki(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 Ai(e){return JSON.stringify([Z(e.sourceRef),e.relationType,ji(e.target)])}function ji(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 Mi(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 Ni(){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(A);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 Pi(){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(k);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 Fi(){let e=new Map;return{filter:e=>!!e.workflowBlocks?.blocks,async processActivated(t,n,r){let i=r.getService(j);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 Ii(){let e=new Map;return{filter:e=>!!(e.transitionRules?.rules?.length||e.transitionActions?.actions),async processActivated(t,n,r){let i=r.getService(E);if(!i)throw Error(`TransitionContributionProcessor: TransitionPipelineService is not available — ensure '${E.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&&Li(t,a),c&&Ri(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 Li(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 Ri(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 zi=[S,vt,P,m,Gr,Yr,F,I,wr,Tr,Er,Dr,L,C,Jr,hr,ur,hi,Kr,x,M,gi,w,qr,Ot,tn,ci,N,Ae,R,si];export{pi as AdapterIdentityRegistry,We as AdapterRegistry,S as AdapterRuntimeNamespace,St as AdapterRuntimeSchemas,Dt as AdapterRuntimeSubjects,gr as AgentInstanceStatusSchema,P as AgentRuntimeNamespace,_r as AgentRuntimeSchemas,vr as AgentRuntimeSelectionSchema,yr as AgentRuntimeSubjects,m as AgentStorageNamespace,h as AgentStorageSubjects,In as ArtifactLifecycleHookRegistry,D as ArtifactLifecycleHookRegistryToken,fn as ArtifactLifecycleHookRejectedError,Tn as ArtifactSchemaRegistry,T as ArtifactSchemaRegistryToken,Ht as BugEntrySchema,Ge as CONNECTOR_SWAP_DEFAULT_PIPELINE,Zn as CachedRegistryFetcher,wn as CanonicalModelResolutionError,Sn as CanonicalModelResolver,un as CanonicalModelService,Un as CapabilityService,Fn as CapabilityToken,br as CodebaseChangedEventSchema,F as CodebaseNamespace,xr as CodebaseSchemas,Sr as CodebaseSubjects,Ut as CompressRequestSchema,Wt as CompressResponseSchema,Gt as CompressionEventSchema,I as CompressionNamespace,Kt as CompressionSchemas,Cr as CompressionSubjects,Rr as ContainerCreatedSchema,Br as ContainerDestroyedSchema,kt as ContainerIsolatedExecutionTargetSchema,kr as ContainerIsolatedSpawnRequestSchema,At as ContainerLocalExecutionTargetSchema,Fr as ContainerLocalSpawnRequestSchema,Hr as ContainerRuntimeSchema,Vr as ContainerSpawnNamespace,Lr as ContainerSpawnSubjects,Ar as ContainerStartedSchema,jr as ContainerStateSchema,zr as ContainerStoppedSchema,ft as ContextWindowTracker,L as DockerNamespace,Pr as DockerSubjects,dt as EmbeddingIndexManager,jt as ExecutionTargetInputSchema,Mt as ExecutionTargetListQuerySchema,C as ExecutionTargetNamespace,Nt as ExecutionTargetResolveRequestSchema,Pt as ExecutionTargetSchema,Ft as ExecutionTargetSchemas,Rt as ExecutionTargetSubjects,It as ExecutionTargetTypeSchema,qt as ExtractedContextSchema,pn as FacetNamespaceRegistry,A as FacetNamespaceRegistryToken,Jn as FallbackRegistryFetcher,zi as FrameworkServicesCoreNamespaces,Lt as LocalExecutionTargetSchema,ct as MakaioSession,g as MakaioSessionService,x as MessageRoutingNamespace,lt as MessageRoutingSubjects,zt as MessageStorageNamespace,Bt as MessageStorageSubjects,M as ModelRegistryNamespace,Yn as ModelRegistryProviderNotFoundError,Gn as ModelRegistrySchema,qn as ModelRegistrySchemas,Kn as ModelRegistryService,Xn as ModelRegistrySubjects,On as ModelRegistryToken,Xt as PreferenceItemSchema,Zt as PreferenceKeySchema,Qt as PreferenceValueSchema,w as PreferencesNamespace,$t as PreferencesSchemas,en as PreferencesSubjects,Qn as ProviderModelOverrideSchema,Ct as ResolveIdRequestSchema,wt as ResolveIdResponseSchema,Tt as ResolveNameRequestSchema,Et as ResolveNameResponseSchema,Re as SessionBridge,Nn as SessionBridgeToken,c as SessionEventStorageNamespace,o as SessionEventStorageSubjects,Ue as SessionExtensionContextImpl,Je as SessionOrchestrator,Rn as SessionOrchestratorToken,Me as SessionStorageNamespace,Ne as SessionStorageSubjects,kn as SessionStorageToken,An as SessionToken,Xe as SessionTurnManager,Ir as SpawnRequestSchema,Nr as SpawnResponseSchema,Mr as StatusRequestSchema,Or as StatusResponseSchema,Ur as StopRequestSchema,Wr as StopResponseSchema,dr as SubagentManager,pr as SubagentService,mr as SubagentServiceToken,Xr as SubagentTemplateCompletedEventSchema,Zr as SubagentTemplateCreateSchema,Qr as SubagentTemplateInstanceSchema,$r as SubagentTemplateInstanceStatusSchema,R as SubagentTemplateKernelNamespace,ei as SubagentTemplateKernelSchemas,ti as SubagentTemplateSchema,ni as SubagentTemplateSettingsSchemas,ri as SubagentTemplateSpawnRequestSchema,ii as SubagentTemplateSpawnedEventSchema,li as SubagentTemplateSubjects,ai as SubagentTemplateSummarySchema,oi as SubagentTemplateUpdateSchema,ln as SurfaceBindingRegistry,k as SurfaceBindingRegistryToken,Jt as TechnicalDetailsSchema,Yt as TodoEntrySchema,$n as ToolApprovalService,Pn as ToolApprovalToken,rn as ToolRegistry,jn as ToolRegistryToken,mn as TransitionActionRegistry,cn as TransitionPipelineService,E as TransitionPipelineToken,dn as TransitionRuleRegistry,er as TrayMenuEntrySchema,tr as TrayMenuGroupEntrySchema,nr as TrayMenuGroupSchema,rr as TrayMenuItemClickedSchema,ir as TrayMenuListEntrySchema,ar as TrayMenuMetadataSchema,N as TrayMenuNamespace,or as TrayMenuSchemas,sr as TrayMenuSectionSchema,lr as TrayMenuService,cr as TrayMenuSubjects,En as TrayMenuToken,ke as Turn,Le as TurnContextEnricher,Vt as TurnStorageNamespace,je as TurnStorageSubjects,yn as WORKFLOW_START_ACTION_TYPE,Hn as WorkflowBlockRegistry,j as WorkflowBlockRegistryToken,l as actionRegistry,xt as activateProviderContext,yt as activateProviderContextStrict,e as agents,Vn as artifactLifecycleHookRegistryPackage,Dn as artifactSchemaRegistryPackage,ye as assembleForkContext,di as buildDeterministicAdapterId,bt as buildProviderContext,ne as buildRecoveryContext,d as buildRecoveryContextWithPipeline,he as buildSessionContext,xe as buildTurnInitiator,Cn as canonicalModelPackage,Bn as capabilityPackage,yi as createArtifactKindContributionProcessor,xi as createArtifactLifecycleHookContributionProcessor,Ni as createFacetNamespaceContributionProcessor,bn as createModelRegistryPackage,Fe as createSessionExtensionContext,Pi as createSurfaceBindingContributionProcessor,Ln as createToolContributionProcessor,Ii as createTransitionContributionProcessor,Fi as createWorkflowBlockContributionProcessor,De as ensureAgentCwd,ie as ensureAgentModel,oe as extractTextContent,an as facetNamespaceRegistryPackage,tt as fetchAgentsBySession,ht as fetchMessageCountsBySession,Ke as fetchPreviewBySession,b as fetchSessionPreviewMaps,ve as findTurnByAgent,zn as frameworkCorePackages,ge as getFullConversation,pe as getOrCreateSession,st as importCursors,pt as importCursorsDual,Ve as kindToBranchKind,He as mapAgentsBySession,y as mapRowToSession,ot as mapToSession,Wn as mergeModelMetadata,ze as messageRouting,Qe as messageRoutingDual,i as messages,ue as normalizeSelectionString,Ee as normalizeToBlocks,mt as parseForkTransforms,Be as pickFallbackRuntimeOptions,p as recoverAgent,le as registerAbandonHandler,fi as registerAdapterRuntimeIdentityHandlers,Te as registerAttachHandler,be as registerBuiltInActions,se as registerCompressHandler,it as registerCompressLineageResolver,rt as registerCoreSessionServiceHandlers,_ as registerDrizzleAgentStorage,nt as registerDrizzleImportCursorStorage,Ie as registerDrizzleMessageRoutingStorage,$e as registerDrizzleMessageStorage,u as registerDrizzleSessionEventStorage,Pe as registerDrizzleSessionStorage,Oe as registerDrizzleTurnStorage,me as registerForkHandler,gt as registerFtsSearchHandler,v as registerGetStatusCountsHandler,_t as registerListActionsHandler,qe as registerMemoryAgentStorage,Ze as registerMemoryMessageStorage,ae as registerMemorySessionEventStorage,at as registerMemorySessionStorage,ce as registerMemoryTurnStorage,Se as registerMergeHandler,et as registerParentResolver,Ye as registerResumeHandler,ut as registerSpawningToolCallResolver,Ce as resetBuiltInActionsRegistration,ee as resolveAdapterId,de as resolveAdapterNameById,Si as resolveArtifactContext,ui as resolveDeterministicAdapterId,te as resolveExecutionTarget,re as resolveModelCapabilities,fe as resolveTargetAgents,we as routeToAgents,_e as routeToAgentsCore,xn as sessionBridgePackage,s as sessionEvents,a as sessionEventsDual,sn as sessionOrchestratorPackage,on as sessionPackage,_n as sessionStoragePackage,t as sessions,fr as subagentServicePackage,O as surfaceBindingRegistryPackage,nn as toolApprovalPackage,Mn as toolRegistryPackage,hn as transitionPipelinePackage,gn as trayMenuPackage,r as turns,n as turnsDual,f as verifyAndRecoverAgents,vn as workflowBlockRegistryPackage};
@@ -1,3 +1,3 @@
1
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";
2
+ import { a as OrchestratorFactory, i as OrchestratorEntry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BWduCvRU.mjs";
3
3
  export { type LogImportRegistryOptions, type LogImporterInfo, type LogImporterRegistration, type OrchestratorEntry, type OrchestratorFactory };
@@ -1,5 +1,5 @@
1
1
  import { i as LogImportSettings, t as LogImporterInfo } from "../../index-D7rWAEY0.mjs";
2
- import { a as OrchestratorFactory, i as OrchestratorEntry, n as LogImportServiceInstance, o as LogImportRegistry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BMlzmWp6.mjs";
2
+ import { a as OrchestratorFactory, i as OrchestratorEntry, n as LogImportServiceInstance, o as LogImportRegistry, r as LogImporterRegistration, t as LogImportRegistryOptions } from "../../types-BWduCvRU.mjs";
3
3
  import { LogImportNamespace, LogImportSubjects } from "./namespace.mjs";
4
4
  import { IMakaioBus } from "@makaio/framework/bus";
5
5
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
@@ -92,6 +92,13 @@ interface PersistImportResultContext {
92
92
  adapterName: string;
93
93
  /** Log file path on disk; only the root segment owns it. */
94
94
  logFilePath?: string | null;
95
+ /**
96
+ * Machine identifier of the machine that owns the imported sessions.
97
+ * Always caller-supplied; never derived inside import handlers.
98
+ * Pass `undefined` to omit (leaves stored value untouched).
99
+ * Pass `null` to explicitly store NULL.
100
+ */
101
+ machineId?: string | null;
95
102
  /**
96
103
  * Marker stamped on the `session.turn.*` events emitted for ingested turns.
97
104
  * Defaults to `'backfill'` (historical/watcher imports); hook-triggered
@@ -134,6 +141,12 @@ declare function importFromFileContent(params: {
134
141
  adapterId: string;
135
142
  sourceFilePath?: string;
136
143
  persistedLogFilePath?: string;
144
+ /**
145
+ * Machine identifier of the machine that owns the imported sessions.
146
+ * Always caller-supplied; never derived here. Pass `undefined` to omit
147
+ * (leaves stored value untouched), `null` to explicitly store NULL.
148
+ */
149
+ machineId?: string | null;
137
150
  /**
138
151
  * Marker stamped on `session.turn.*` events emitted for ingested turns.
139
152
  * Defaults to `'backfill'` (applied at the {@link importSegmentTree} boundary).