@makaio/framework 1.0.0-dev-1789642522820 → 1.0.0-dev-1790087128488

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 (358) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-subsystem/index.d.mts +15 -7
  3. package/dist/adapter-subsystem/index.mjs +1 -1
  4. package/dist/adapters/claude/index.d.mts +44 -44
  5. package/dist/adapters/config/index.d.mts +1 -1
  6. package/dist/adapters/index.d.mts +2 -2
  7. package/dist/adapters/node.d.mts +1 -1
  8. package/dist/{attempt-record-codec-DaQ3WHUs.mjs → attempt-record-codec-DXpdMgyI.mjs} +1 -1
  9. package/dist/bus/index.d.mts +140 -28
  10. package/dist/bus/index.mjs +1 -1
  11. package/dist/bus-ceMF9rsq.mjs +9 -0
  12. package/dist/client-DWSwtFyI.mjs +1 -0
  13. package/dist/clients/index.d.mts +27 -1
  14. package/dist/clients/index.mjs +1 -1
  15. package/dist/clients/managed-install.d.mts +1 -1
  16. package/dist/code-execution/worker-entry.d.mts +1 -1
  17. package/dist/code-execution/worker-entry.mjs +1 -1
  18. package/dist/{code-execution-pUF4IO462.mjs → code-execution-DWSux6k1.mjs} +1 -1
  19. package/dist/contracts/adapter/index.d.mts +2 -2
  20. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  21. package/dist/contracts/artifact/index.d.mts +2 -2
  22. package/dist/contracts/auth/index.d.mts +2 -2
  23. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  24. package/dist/contracts/canonical-model/index.d.mts +1 -1
  25. package/dist/contracts/capabilities/index.d.mts +1 -1
  26. package/dist/contracts/client/index.d.mts +3 -3
  27. package/dist/contracts/client/index.mjs +1 -1
  28. package/dist/contracts/code-execution/index.d.mts +1 -1
  29. package/dist/contracts/common/index.d.mts +1 -1
  30. package/dist/contracts/config/index.d.mts +2 -47
  31. package/dist/contracts/context-projection/index.d.mts +232 -0
  32. package/dist/contracts/context-projection/index.mjs +1 -0
  33. package/dist/contracts/extension/index.d.mts +6 -6
  34. package/dist/contracts/extension/index.mjs +1 -1
  35. package/dist/contracts/facet/index.d.mts +1 -1
  36. package/dist/contracts/harness/index.d.mts +1 -1
  37. package/dist/contracts/host/index.d.mts +1 -1
  38. package/dist/contracts/index.d.mts +174 -174
  39. package/dist/contracts/index.mjs +1 -1
  40. package/dist/contracts/materialization/index.d.mts +2 -2
  41. package/dist/contracts/model-registry/index.d.mts +1 -1
  42. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  43. package/dist/contracts/platform/index.d.mts +1 -1
  44. package/dist/contracts/provider/index.d.mts +2 -2
  45. package/dist/contracts/reaction/index.d.mts +1 -1
  46. package/dist/contracts/session/index.d.mts +3 -3
  47. package/dist/contracts/session/index.mjs +1 -1
  48. package/dist/contracts/shared/index.d.mts +2 -2
  49. package/dist/contracts/skill/index.d.mts +1 -1
  50. package/dist/contracts/telemetry/index.d.mts +1 -1
  51. package/dist/contracts/timeout/index.d.mts +1 -1
  52. package/dist/contracts/variant/index.d.mts +1 -1
  53. package/dist/contracts/worker/index.d.mts +2 -2
  54. package/dist/contracts/workflow/index.d.mts +2 -2
  55. package/dist/{contribution-DDbHzCPF.d.mts → contribution-DHJJARJP.d.mts} +2 -2
  56. package/dist/credential-ref-w4ZYpYW0.d.mts +49 -0
  57. package/dist/{definition-CuaBQyde.d.mts → definition-DeIGoROj.d.mts} +1 -1
  58. package/dist/{descriptor-to-package-Dw8dnl5E.mjs → descriptor-to-package-BPIArq6N.mjs} +1 -1
  59. package/dist/{detached-extension-handle-DN3aqLyq.mjs → detached-extension-handle-W5_yfCyE.mjs} +1 -1
  60. package/dist/drizzle/0041_session_principal_owner.sql +1 -0
  61. package/dist/drizzle/meta/_journal.json +7 -0
  62. package/dist/{execution-attempt-owner-recovery-CE_rvHKE.mjs → execution-attempt-owner-recovery-BZOEVYFH.mjs} +1 -1
  63. package/dist/extension-C6ANjR33.mjs +1 -0
  64. package/dist/{extension-context-BH31eOMv.d.mts → extension-context-C2qColIL.d.mts} +47 -4
  65. package/dist/{extension-discovery-CA2IhDRo.d.mts → extension-discovery-Rup-gANp.d.mts} +114 -15
  66. package/dist/extension-kOwzAMud.mjs +1 -0
  67. package/dist/extension-namespace-CeRpt6C8.mjs +1 -0
  68. package/dist/{framework-packages-BNFG51Td.mjs → framework-packages-U4Xhouxe.mjs} +1 -1
  69. package/dist/{hook-responses-CQ2q0aPE.d.mts → hook-responses-CN5r7i3k.d.mts} +1 -1
  70. package/dist/{index-Dm3d490n.d.mts → index-B2bxgKiK.d.mts} +1 -1
  71. package/dist/{index-B8v1-2-V2.d.mts → index-BMPU9fkA.d.mts} +5 -5
  72. package/dist/{index-CdWxSwhQ2.d.mts → index-Bcq3UKLQ2.d.mts} +7 -7
  73. package/dist/{index-Bh57xARQ.d.mts → index-BwaFXFd2.d.mts} +85 -85
  74. package/dist/{index-CIzvBH8O.d.mts → index-C8two8wz.d.mts} +1 -1
  75. package/dist/{index-oxZt93RL.d.mts → index-CESqYf8a.d.mts} +2 -2
  76. package/dist/index-D17f9C3Y.d.mts +869 -0
  77. package/dist/{index-KdlZRuTp.d.mts → index-D7dbR7Pu2.d.mts} +8 -8
  78. package/dist/{index-zEkS2L862.d.mts → index-D9ExWo6a2.d.mts} +441 -47
  79. package/dist/{index-B-u0Tu8X.d.mts → index-DDff0Q_Y.d.mts} +48 -48
  80. package/dist/{index-Dn23R_ck.d.mts → index-DH55jJaM.d.mts} +531 -26
  81. package/dist/{index-BS-Fhlux.d.mts → index-DJxg7U2X.d.mts} +29 -8
  82. package/dist/{index-C87P0WpY2.d.mts → index-DNdHuoy6.d.mts} +1 -1
  83. package/dist/{index-B6WkHnCQ.d.mts → index-DQU8ZoJr.d.mts} +1 -1
  84. package/dist/{index-U--ajOHy.d.mts → index-DUYjTfHD.d.mts} +1 -1
  85. package/dist/{index-CztxEJrG2.d.mts → index-DauaMtPH2.d.mts} +882 -390
  86. package/dist/{index-HJkz7i4E.d.mts → index-DdJKsdya.d.mts} +188 -10
  87. package/dist/{index-B4pPwpKk.d.mts → index-DfREUyAk.d.mts} +1 -1
  88. package/dist/{index-ClKwF6LE.d.mts → index-DjmCOTLM.d.mts} +288 -288
  89. package/dist/{index-CXpgL3gz2.d.mts → index-Dk_f8Cyz2.d.mts} +3 -3
  90. package/dist/{index-De_oh9M-2.d.mts → index-DvtVX-Rj.d.mts} +88 -11
  91. package/dist/{index-DWANFpTG.d.mts → index-Jdju2W3y.d.mts} +1 -1
  92. package/dist/{index-DQKVQPUS.d.mts → index-L6mssyeZ.d.mts} +1 -1
  93. package/dist/{index-xsaaa85T.d.mts → index-Xnn0gJhU.d.mts} +359 -359
  94. package/dist/{index-p1l00SGS.d.mts → index-f31ex0nG.d.mts} +96 -27
  95. package/dist/{index-zmDRR8gv2.d.mts → index-m5ZQFglW2.d.mts} +1 -1
  96. package/dist/{index-DmX9W3xH2.d.mts → index-qH2Jhegj2.d.mts} +1 -1
  97. package/dist/{index-CjDQn6lw.d.mts → index-vA46dx7q.d.mts} +100 -100
  98. package/dist/kernel/cli/index.d.mts +2 -2
  99. package/dist/kernel/cli/register.d.mts +1 -1
  100. package/dist/kernel/extension/index.d.mts +3 -2
  101. package/dist/kernel/extension/index.mjs +1 -1
  102. package/dist/kernel/index.d.mts +6 -6
  103. package/dist/kernel/index.mjs +1 -1
  104. package/dist/kernel/namespace/index.d.mts +1 -1
  105. package/dist/kernel/observability/index.d.mts +2 -2
  106. package/dist/kernel/observability/index.mjs +1 -1
  107. package/dist/kernel/providers/index.d.mts +1 -1
  108. package/dist/kernel/window/index.d.mts +1 -1
  109. package/dist/{lib-BF5XBSfw.mjs → lib-BdyGVjpO.mjs} +1 -1
  110. package/dist/{lib-Dljw2Cqh.mjs → lib-DxP3tPm9.mjs} +1 -1
  111. package/dist/load-extensions-BGfSWW_R.mjs +1 -0
  112. package/dist/{load-extensions-DGstT4_p.d.mts → load-extensions-Be_lOjm_.d.mts} +27 -14
  113. package/dist/mcp-http-server/index.d.mts +7 -2
  114. package/dist/mcp-http-server/index.mjs +1 -1
  115. package/dist/{namespace-UFcDEBJB.d.mts → namespace-B2L_hlJ0.d.mts} +154 -154
  116. package/dist/{namespace-rJ3ycPMg.d.mts → namespace-CHc7YF0S.d.mts} +2 -2
  117. package/dist/{namespace-BMdYJN_t.mjs → namespace-CqJhR19O.mjs} +1 -1
  118. package/dist/{namespace-BR03HE8G.d.mts → namespace-DudchWPb.d.mts} +415 -0
  119. package/dist/{namespace-Phxf0Lep.d.mts → namespace-MW-Eg_yB.d.mts} +2 -2
  120. package/dist/node/bus-server/index.d.mts +1 -1
  121. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  122. package/dist/node/transports/index.d.mts +102 -4
  123. package/dist/node/transports/index.mjs +2 -2
  124. package/dist/{orchestrator-shared-CxO1lfpP.mjs → orchestrator-shared-CF-jPH91.mjs} +1 -1
  125. package/dist/ownership-memory-handler-C-y9zQf8.mjs +1 -0
  126. package/dist/package-AlsbnlSt.mjs +159 -0
  127. package/dist/{package-CDj3F-L3.d.mts → package-Bz938q5F.d.mts} +2 -2
  128. package/dist/{package-DYScYC0D.mjs → package-kkPGlxMm.mjs} +1 -1
  129. package/dist/package.json +1 -1
  130. package/dist/rules/index.d.mts +1 -1
  131. package/dist/rules/index.mjs +1 -1
  132. package/dist/rules/schemas.d.mts +1 -1
  133. package/dist/runtime-bun/index.d.mts +2 -2
  134. package/dist/runtime-bun/index.mjs +1 -1
  135. package/dist/runtime-node/boot-config.d.mts +45 -0
  136. package/dist/runtime-node/boot-config.mjs +1 -0
  137. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  138. package/dist/runtime-node/code-execution/index.mjs +1 -1
  139. package/dist/runtime-node/extension-discovery.d.mts +2 -2
  140. package/dist/runtime-node/extension-discovery.mjs +1 -1
  141. package/dist/runtime-node/extension-validation.d.mts +1 -1
  142. package/dist/runtime-node/extension-validation.mjs +1 -1
  143. package/dist/runtime-node/index.d.mts +345 -27
  144. package/dist/runtime-node/index.mjs +21 -24
  145. package/dist/runtime-node/makaio-config.d.mts +1 -1
  146. package/dist/runtime-node/makaio-config.mjs +1 -1
  147. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  148. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  149. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  150. package/dist/{schema-DqKCg5Ec.d.mts → schema-FY0EakKe.d.mts} +26 -0
  151. package/dist/{schemas-CFciElld.d.mts → schemas-C_0aO9S1.d.mts} +15 -15
  152. package/dist/{schemas-2_D4iVbb.d.mts → schemas-DiXL8NfA.d.mts} +1 -1
  153. package/dist/{schemas-Cq1d5tid.d.mts → schemas-Dqro7M1d.d.mts} +154 -154
  154. package/dist/services/adapter-runtime/index.d.mts +3 -3
  155. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  156. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  157. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  158. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  159. package/dist/services/agent-runtime/index.d.mts +2 -2
  160. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  161. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  162. package/dist/services/automation-trigger/index.d.mts +19 -0
  163. package/dist/services/capability/index.d.mts +2 -2
  164. package/dist/services/code-execution/index.d.mts +1 -1
  165. package/dist/services/codebase/index.d.mts +2 -2
  166. package/dist/services/codebase/namespace.d.mts +1 -1
  167. package/dist/services/codebase/schemas.d.mts +1 -1
  168. package/dist/services/compression/index.d.mts +2 -2
  169. package/dist/services/compression/namespace.d.mts +1 -1
  170. package/dist/services/compression/schemas.d.mts +1 -1
  171. package/dist/services/context-projection/index.d.mts +94 -0
  172. package/dist/services/context-projection/index.mjs +1 -0
  173. package/dist/services/context-rules/index.d.mts +1 -1
  174. package/dist/services/execution-target/index.d.mts +3 -3
  175. package/dist/services/execution-target/namespace.d.mts +1 -1
  176. package/dist/services/execution-target/schemas.d.mts +1 -1
  177. package/dist/services/filesystem/index.d.mts +1 -1
  178. package/dist/services/filesystem/namespace.d.mts +6 -6
  179. package/dist/services/filesystem/schemas.d.mts +3 -3
  180. package/dist/services/index.d.mts +134 -129
  181. package/dist/services/index.mjs +1 -1
  182. package/dist/services/log-import/browser.d.mts +2 -2
  183. package/dist/services/log-import/index.d.mts +2 -2
  184. package/dist/services/log-import/log-import.d.mts +1 -1
  185. package/dist/services/log-import/namespace.d.mts +2 -2
  186. package/dist/services/log-import/schemas.d.mts +1 -1
  187. package/dist/services/materialization/index.d.mts +1 -1
  188. package/dist/services/model-registry/index.d.mts +1 -1
  189. package/dist/services/preferences/index.d.mts +2 -2
  190. package/dist/services/preferences/schemas.d.mts +1 -1
  191. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  192. package/dist/services/provider-context/index.d.mts +1 -1
  193. package/dist/services/session/handlers/index.d.mts +1 -1
  194. package/dist/services/session/index.d.mts +9 -9
  195. package/dist/services/session/index.mjs +1 -1
  196. package/dist/services/session/messages/namespace.d.mts +1 -1
  197. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  198. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  199. package/dist/services/session/session-events/namespace.d.mts +1 -1
  200. package/dist/services/session/storage/namespace.d.mts +1 -1
  201. package/dist/services/session/storage/schema.d.mts +1 -1
  202. package/dist/services/session/storage/schema.mjs +1 -1
  203. package/dist/services/session/testing/index.mjs +3 -2
  204. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  205. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  206. package/dist/services/session/turns/namespace.d.mts +1 -1
  207. package/dist/services/session-editor/index.d.mts +1 -1
  208. package/dist/services/settings/index.d.mts +3 -3
  209. package/dist/services/settings/namespace.d.mts +242 -13
  210. package/dist/services/settings/namespace.mjs +1 -1
  211. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  212. package/dist/services/settings/storage/index.d.mts +3 -3
  213. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  214. package/dist/services/subagent/index.d.mts +1 -1
  215. package/dist/services/subagent-template/index.d.mts +2 -2
  216. package/dist/services/subagent-template/namespace.d.mts +1 -1
  217. package/dist/services/subagent-template/schemas.d.mts +1 -1
  218. package/dist/services/tool-approval/index.d.mts +1 -1
  219. package/dist/services/tool-approval/index.mjs +1 -1
  220. package/dist/services/tools/index.d.mts +1 -1
  221. package/dist/services/tools/index.mjs +1 -1
  222. package/dist/services/tray-menu/index.d.mts +3 -3
  223. package/dist/services/tray-menu/namespace.d.mts +1 -1
  224. package/dist/services/tray-menu/schemas.d.mts +1 -1
  225. package/dist/services/turn/index.d.mts +1 -1
  226. package/dist/services/turn/namespace.d.mts +1 -1
  227. package/dist/services/workflow-transitions/index.d.mts +1 -1
  228. package/dist/services/workflow-transitions/index.mjs +1 -1
  229. package/dist/session-BNiMZnfF.mjs +1 -0
  230. package/dist/session-CMbztxNO.mjs +95 -0
  231. package/dist/{session-lineage-C3myyt5x.d.mts → session-lineage-CjE3qppC.d.mts} +1 -1
  232. package/dist/src-BZdw54VU.mjs +1 -0
  233. package/dist/{src-CbAw9kjJ.mjs → src-C0sw_Vs_.mjs} +1 -1
  234. package/dist/{src-Xn6SS74f.mjs → src-CqQSqLQI.mjs} +1 -1
  235. package/dist/storage/drizzle/client.d.mts +1 -1
  236. package/dist/storage/drizzle/index.d.mts +1 -1
  237. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  238. package/dist/storage/handlers/index.d.mts +1 -1
  239. package/dist/{tool-approval-service-CXTklh3T.mjs → tool-approval-service-CRo3fZRF.mjs} +1 -1
  240. package/dist/{tools-hiFv-jJn.mjs → tools-CKaxi3Mb.mjs} +1 -1
  241. package/dist/{transition-D-Lgbp1j.d.mts → transition-BVB-sXKI.d.mts} +2 -2
  242. package/dist/{types-D5kqrOad.d.mts → types-CVOL6fAm.d.mts} +334 -334
  243. package/dist/{types-CjYcHDPo2.d.mts → types-Cues-R7O2.d.mts} +1 -1
  244. package/dist/ui-hooks/index.d.mts +17 -24
  245. package/dist/ui-hooks/index.mjs +1 -1
  246. package/dist/ui-kernel/index.d.mts +11 -2
  247. package/dist/ui-kernel/index.mjs +1 -1
  248. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  249. package/dist/ui-views/index.mjs +1 -1
  250. package/dist/utils/index.d.mts +31 -1
  251. package/dist/utils/index.mjs +2 -2
  252. package/dist/{view-builder-CHUTXJDl.d.mts → view-builder-CbZtzUZI.d.mts} +2 -2
  253. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  254. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  255. package/dist/workflow-engine/index.d.mts +55 -55
  256. package/dist/workflow-engine/index.mjs +1 -1
  257. package/dist/workflow-engine/package.d.mts +1 -1
  258. package/dist/workflow-engine/package.mjs +1 -1
  259. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  260. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  261. package/dist/workflow-engine/testing/conformance.mjs +1 -1
  262. package/dist/workflow-engine/testing/index.d.mts +1 -1
  263. package/dist/workflow-engine/testing/index.mjs +1 -1
  264. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  265. package/dist/workflow-engine/testing/sqlite.mjs +1 -1
  266. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  267. package/dist/{workflow-transitions-BalNKTtE.mjs → workflow-transitions-t0ORS1F5.mjs} +1 -1
  268. package/dist/workflow-worker-DXCXb3g-.mjs +3 -0
  269. package/package.json +9 -1
  270. package/dist/bus-BOGcnhgA.mjs +0 -9
  271. package/dist/client-DqfP7BeX.mjs +0 -1
  272. package/dist/extension-CfrTp3rC.mjs +0 -1
  273. package/dist/extension-CnNcY1hR.mjs +0 -1
  274. package/dist/extension-namespace-Ct9L6SKr.mjs +0 -1
  275. package/dist/index-Hnsy6XhM.d.mts +0 -435
  276. package/dist/load-extensions-BVgxTj_y.mjs +0 -1
  277. package/dist/ownership-memory-handler-BOhmmlJj.mjs +0 -1
  278. package/dist/session-BP5aq2kt.mjs +0 -95
  279. package/dist/session-BcArFp9M.mjs +0 -1
  280. package/dist/workflow-worker-ChrMIcKm.mjs +0 -2
  281. package/dist/{adapter-binding-BxjUfkOn.d.mts → adapter-binding-CaYBrIkL.d.mts} +0 -0
  282. package/dist/{attempt-control-evidence-7lwRG73Y.mjs → attempt-control-evidence-CHBnJoqN.mjs} +0 -0
  283. package/dist/{attempt-fixtures-DHdYmr3o.mjs → attempt-fixtures-D3IsP0KH.mjs} +0 -0
  284. package/dist/{authority-state-bootstrap-CvuWPywM.mjs → authority-state-bootstrap-4F5Wc_6l.mjs} +0 -0
  285. package/dist/{base-orchestrator-CrXiMJzf.d.mts → base-orchestrator-1ofFsqUz.d.mts} +0 -0
  286. package/dist/{bootstrap-start-client-C1ZHbv6e.mjs → bootstrap-start-client-9nOdeDYl.mjs} +0 -0
  287. package/dist/{capability-service-CQ1aw_p-.d.mts → capability-service-CUN0MIS7.d.mts} +0 -0
  288. package/dist/{client-ByjHcS78.d.mts → client-BY3sBW2L.d.mts} +0 -0
  289. package/dist/{client-binary-version-verifier-C4fEAUdo.d.mts → client-binary-version-verifier-BeO4Eptw.d.mts} +0 -0
  290. package/dist/{clients-namespace-D4BxF2Nw.d.mts → clients-namespace-D92YsbKI.d.mts} +0 -0
  291. package/dist/{config-namespace-B1zyOYwH.d.mts → config-namespace-OEckUfVE.d.mts} +0 -0
  292. package/dist/{create-static-mount-Dgxgi4W3.mjs → create-static-mount-4B-mNtx1.mjs} +0 -0
  293. package/dist/{cross-spawn-BMCAyqrN.mjs → cross-spawn-DGqEuNyT.mjs} +0 -0
  294. package/dist/{definition-ClWxAKQ2.d.mts → definition-DLJg-P4G.d.mts} +0 -0
  295. package/dist/{esm-Ccx-3z8E.mjs → esm-DwiWcwH0.mjs} +0 -0
  296. package/dist/{execution-attempt-repository-aabFKcXN.mjs → execution-attempt-repository-CY289HlC.mjs} +0 -0
  297. package/dist/{execution-attempt-repository-BUah8hma.d.mts → execution-attempt-repository-DOb5V4N2.d.mts} +0 -0
  298. package/dist/{extension-package-provenance-C7oO5JAE.mjs → extension-package-provenance-ClpN3GHp.mjs} +0 -0
  299. package/dist/{filesystem-service-CDYoiwWY.d.mts → filesystem-service-BmavE-uO.d.mts} +0 -0
  300. package/dist/{index-BbkcbY6d.d.mts → index--gbsE1W0.d.mts} +0 -0
  301. package/dist/{index-DdVpWkaI.d.mts → index-B36rL4gp.d.mts} +0 -0
  302. package/dist/{index-DM72_93s.d.mts → index-BD1SbHpP.d.mts} +0 -0
  303. package/dist/{index-DAaQ--ki.d.mts → index-BQYGOXY5.d.mts} +0 -0
  304. package/dist/{index-gAyARaKS.d.mts → index-BneZFJ7x.d.mts} +0 -0
  305. package/dist/{index-D8ELwT5y.d.mts → index-BujgCaKt.d.mts} +0 -0
  306. package/dist/{index-DfU8s_xP.d.mts → index-C2StVLk4.d.mts} +0 -0
  307. package/dist/{index-BGnQ0EyD.d.mts → index-CCTzitBA.d.mts} +0 -0
  308. package/dist/{index-CVRT01082.d.mts → index-Cj_V1aRL.d.mts} +0 -0
  309. package/dist/{index-Htfr-K5U2.d.mts → index-Cm3HuwMC2.d.mts} +6 -6
  310. package/dist/{index-nkix3hP7.d.mts → index-CpN2C9jq.d.mts} +0 -0
  311. package/dist/{index-D6p17KPs.d.mts → index-CsRPJ9FV.d.mts} +0 -0
  312. package/dist/{index-BPNfYEA22.d.mts → index-CvdvuhTL2.d.mts} +0 -0
  313. package/dist/{index-DiZ4LmyE.d.mts → index-D7smT-YD.d.mts} +0 -0
  314. package/dist/{index-B78CRVi9.d.mts → index-DEx4ZFkz.d.mts} +0 -0
  315. package/dist/{index-F7cVpFJ9.d.mts → index-DTvYp2GT.d.mts} +0 -0
  316. package/dist/{index-BCU5oByg.d.mts → index-DubyRZD9.d.mts} +0 -0
  317. package/dist/{index-DjSUOMlr.d.mts → index-DwOpaQAE.d.mts} +0 -0
  318. package/dist/{index-BZoOYV-y.d.mts → index-DxkSkszz.d.mts} +0 -0
  319. package/dist/{index-tbjIqwa3.d.mts → index-TBJ1kIGA.d.mts} +0 -0
  320. package/dist/{index-DXQTkwLB.d.mts → index-YOXWpZAS.d.mts} +0 -0
  321. package/dist/{index-D6liU_KS.d.mts → index-fxh7TB0q.d.mts} +0 -0
  322. package/dist/{index-C_kOkO3E.d.mts → index-zqo2mX_Z.d.mts} +0 -0
  323. package/dist/{json-value-Ymw2f8i_.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
  324. package/dist/{jsonl-transport-Bg033Ng0.mjs → jsonl-transport-Ct1RWs0h.mjs} +0 -0
  325. package/dist/{lib-BizqbepU.mjs → lib-DomKag_k.mjs} +0 -0
  326. package/dist/{namespace-BqfzcRkL.d.mts → namespace-BdsOXWPU.d.mts} +0 -0
  327. package/dist/{namespace-BCVKdu-U.d.mts → namespace-CxEQv9iZ.d.mts} +0 -0
  328. package/dist/{namespace-COHHDh2I.d.mts → namespace-D09uQ231.d.mts} +0 -0
  329. package/dist/{namespace-CvK86QFk.d.mts → namespace-DHLwz4o3.d.mts} +0 -0
  330. package/dist/{namespace-B5IFLQc-.d.mts → namespace-DHbrNQYD.d.mts} +0 -0
  331. package/dist/{namespace-s0e215xO.d.mts → namespace-DyD06b5-.d.mts} +0 -0
  332. package/dist/{namespace-C1pPZKtI.d.mts → namespace-Dz5_Hrz7.d.mts} +0 -0
  333. package/dist/{namespace-DM5vykb7.d.mts → namespace-hlhPqSsw.d.mts} +0 -0
  334. package/dist/{namespace-DlOQmhgX.d.mts → namespace-x-gk5SmK.d.mts} +0 -0
  335. package/dist/{namespace-f6Kz5cwX.d.mts → namespace-zusFEJPh.d.mts} +0 -0
  336. package/dist/{orchestrator-shared--srEeSaY.d.mts → orchestrator-shared-ChU5qRSe.d.mts} +0 -0
  337. package/dist/{packages-B98-WETs.d.mts → packages-D2s51nGU.d.mts} +0 -0
  338. package/dist/{providers-namespace-DRcl03bo.d.mts → providers-namespace-BLVt8OyP.d.mts} +0 -0
  339. package/dist/{runtime-inputs-DBtVIy9h.d.mts → runtime-inputs-BU_kBrP7.d.mts} +0 -0
  340. package/dist/{schemas-CEJe8O6P.d.mts → schemas-3KTmPuZg.d.mts} +0 -0
  341. package/dist/{schemas-D_-iXLQ9.d.mts → schemas-B-5_Dp4_.d.mts} +0 -0
  342. package/dist/{schemas-CeItAAQM.d.mts → schemas-BLxdGZkr.d.mts} +0 -0
  343. package/dist/{schemas-Cj6Gbqch.d.mts → schemas-BegArpU_.d.mts} +0 -0
  344. package/dist/{schemas-Ca5RILd-2.d.mts → schemas-BzB6z9oX2.d.mts} +0 -0
  345. package/dist/{schemas-CtzZDp29.d.mts → schemas-CBBzvIh0.d.mts} +0 -0
  346. package/dist/{schemas-JjyFxrC0.d.mts → schemas-CU_52YMQ.d.mts} +8 -8
  347. /package/dist/{schemas-LiiyNNpr.d.mts → schemas-Cl7fPlRv.d.mts} +0 -0
  348. /package/dist/{schemas-DJ2vMsgm.d.mts → schemas-CqawCYTY.d.mts} +0 -0
  349. /package/dist/{server-lifecycle-DUKp1Fbf.d.mts → server-lifecycle-CTJvpdeL.d.mts} +0 -0
  350. /package/dist/{storage-namespace-IvLOIP7j.d.mts → storage-namespace-B5r_ScUz.d.mts} +0 -0
  351. /package/dist/{storage-namespace-definition-Cv0XiTXb.d.mts → storage-namespace-definition-DiYr8UNl.d.mts} +0 -0
  352. /package/dist/{types-hkExapGH.d.mts → types-BSx8YYlc.d.mts} +0 -0
  353. /package/dist/{types-BYEybzjX.d.mts → types-CpEoQapk.d.mts} +0 -0
  354. /package/dist/{types-QRSc2AUU.d.mts → types-Cuhnt15L.d.mts} +0 -0
  355. /package/dist/{types-QsyX4H21.d.mts → types-DEGuc-fn.d.mts} +0 -0
  356. /package/dist/{types-BRM1AZaP.d.mts → types-DciLiPMd.d.mts} +0 -0
  357. /package/dist/{types-CsmvIK25.mjs → types-wwuw7RkB.mjs} +0 -0
  358. /package/dist/{window-registry-DeG37kt8.d.mts → window-registry-C3W2wtlX.d.mts} +0 -0
@@ -18,10 +18,10 @@ import { ExtensionWarningEntry, ExtensionWarningEntrySchema } from "@makaio/fram
18
18
  * detail, not an externally observable state.
19
19
  */
20
20
  declare const ComponentStateSchema: z.ZodEnum<{
21
- discovered: "discovered";
22
21
  failed: "failed";
23
- active: "active";
22
+ discovered: "discovered";
24
23
  skipped: "skipped";
24
+ active: "active";
25
25
  stopped: "stopped";
26
26
  initializing: "initializing";
27
27
  }>;
@@ -47,10 +47,10 @@ declare const ComponentInfoSchema: z.ZodObject<{
47
47
  name: z.ZodString;
48
48
  displayName: z.ZodString;
49
49
  state: z.ZodEnum<{
50
- discovered: "discovered";
51
50
  failed: "failed";
52
- active: "active";
51
+ discovered: "discovered";
53
52
  skipped: "skipped";
53
+ active: "active";
54
54
  stopped: "stopped";
55
55
  initializing: "initializing";
56
56
  }>;
@@ -68,10 +68,10 @@ declare const ServiceInfoSchema: z.ZodObject<{
68
68
  name: z.ZodString;
69
69
  displayName: z.ZodString;
70
70
  state: z.ZodEnum<{
71
- discovered: "discovered";
72
71
  failed: "failed";
73
- active: "active";
72
+ discovered: "discovered";
74
73
  skipped: "skipped";
74
+ active: "active";
75
75
  stopped: "stopped";
76
76
  initializing: "initializing";
77
77
  }>;
@@ -90,10 +90,10 @@ declare const ExtensionInfoSchema: z.ZodObject<{
90
90
  name: z.ZodString;
91
91
  displayName: z.ZodString;
92
92
  state: z.ZodEnum<{
93
- discovered: "discovered";
94
93
  failed: "failed";
95
- active: "active";
94
+ discovered: "discovered";
96
95
  skipped: "skipped";
96
+ active: "active";
97
97
  stopped: "stopped";
98
98
  initializing: "initializing";
99
99
  }>;
@@ -104,6 +104,9 @@ declare const ExtensionInfoSchema: z.ZodObject<{
104
104
  headless: "headless";
105
105
  }>>;
106
106
  enabled: z.ZodBoolean;
107
+ extensionManaged: z.ZodBoolean;
108
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
109
+ critical: z.ZodBoolean;
107
110
  browser: z.ZodOptional<z.ZodObject<{
108
111
  entrypoint: z.ZodString;
109
112
  }, z.core.$strip>>;
@@ -112,6 +115,92 @@ declare const ExtensionInfoSchema: z.ZodObject<{
112
115
  type ExtensionInfo = z.infer<typeof ExtensionInfoSchema>;
113
116
  //#endregion
114
117
  //#region packages/kernel/src/observability/extension-namespace.d.ts
118
+ /**
119
+ * Outcome of one `kernel:extension.setEnabled` request.
120
+ *
121
+ * Mirrors the `TransitionOutcome` union the coordinator's toggle helpers
122
+ * compute internally (see `extension/extension-toggle.ts`) so the bus
123
+ * response can carry the same fidelity instead of collapsing it to a single
124
+ * `success` boolean. `kernel:extension.setEnabled` is persist-only — it never
125
+ * runs a live state-machine transition — so for that RPC this is a
126
+ * comparison between the durably persisted preference and the process's
127
+ * actual runtime state, not the result of an attempted transition:
128
+ * - `'applied'` — the persisted preference already matches the process's
129
+ * current runtime state; no restart is needed for it to take effect.
130
+ * - `'rejected'` — the request was refused outright without persisting
131
+ * anything: an unknown extension name, a disable of a `critical` package or
132
+ * of one whose criticality could not be resolved, or a coordinator already
133
+ * shutting down. Every such refusal is a *response*, carrying a
134
+ * {@link SetEnabledReasonSchema} code for which one it was, rather than a
135
+ * fault — a caller that cannot inspect the host itself must be able to tell
136
+ * "refused, and here is why" apart from "the call failed".
137
+ * `TransitionOutcome` is shared with the coordinator-internal
138
+ * `applyExtensionTransition` primitive, where `'rejected'` additionally
139
+ * covers a state-machine refusal such as retrying a transition on an entry
140
+ * the boot phase skipped entirely.
141
+ * - `'restart-required'` — the preference was persisted, but it diverges
142
+ * from the process's current runtime state; only the next process restart
143
+ * applies it.
144
+ */
145
+ declare const TransitionOutcomeSchema: z.ZodEnum<{
146
+ rejected: "rejected";
147
+ applied: "applied";
148
+ "restart-required": "restart-required";
149
+ }>;
150
+ /** Inferred union type for {@link TransitionOutcomeSchema}. */
151
+ type TransitionOutcome = z.infer<typeof TransitionOutcomeSchema>;
152
+ /**
153
+ * Machine-readable detail accompanying one `kernel:extension.setEnabled`
154
+ * outcome.
155
+ *
156
+ * The {@link TransitionOutcomeSchema} alone cannot tell a caller *why* a
157
+ * request was refused, or why a persisted preference cannot take effect yet —
158
+ * both of which decide what an operator is told and whether they can act on
159
+ * it. Codes rather than prose so the wording stays with the surface that
160
+ * renders it:
161
+ *
162
+ * Refusals (`'rejected'`, nothing was written):
163
+ * - `'critical'` — a disable targeting a `critical` package. The runtime
164
+ * force-starts it on every boot regardless of the store, so persisting the
165
+ * disable would only produce a permanent, ignored entry.
166
+ * - `'criticality-unknown'` — a disable targeting a package whose criticality
167
+ * could not be resolved, because its server entrypoint could not be read.
168
+ * Fail-closed: a later boot that *can* read the export might force-start it.
169
+ * - `'not-installed'` — no loaded extension and no installed package carries
170
+ * this name on this host.
171
+ * - `'no-catalog'` — the name is not loaded here and this runtime exposes no
172
+ * installed-extension catalog, so it cannot tell a real installed package
173
+ * apart from a typo and refuses rather than persisting on the caller's word.
174
+ * - `'name-collision'` — more than one installed package claims this name and
175
+ * the runtime cannot resolve it to a single extension, so the next boot
176
+ * refuses before any preference is read. A preference written now could
177
+ * never be acted on, and would silently apply to whichever copy an operator
178
+ * happens to leave behind.
179
+ * - `'shutting-down'` — the coordinator is tearing down.
180
+ *
181
+ * Persisted, but not in effect (`'restart-required'`, or `'applied'` when the
182
+ * runtime already matches the request):
183
+ * - `'runtime-state-diverges'` — the loaded extension's runtime state differs
184
+ * from the persisted preference; only a restart reconciles them.
185
+ * - `'not-loaded'` — the package is installed but this process never loaded it
186
+ * (surface affinity, unmet requirements, or boot-time suppression).
187
+ * - `'framework-package-shadowed'` — a framework package currently holds this
188
+ * name, so the installed package under it stays shadowed until it no longer
189
+ * does.
190
+ */
191
+ declare const SetEnabledReasonSchema: z.ZodEnum<{
192
+ critical: "critical";
193
+ "not-installed": "not-installed";
194
+ "criticality-unknown": "criticality-unknown";
195
+ "no-catalog": "no-catalog";
196
+ "name-collision": "name-collision";
197
+ "shutting-down": "shutting-down";
198
+ "runtime-state-diverges": "runtime-state-diverges";
199
+ "not-loaded": "not-loaded";
200
+ "framework-package-shadowed": "framework-package-shadowed";
201
+ }>;
202
+ /** Inferred union type for {@link SetEnabledReasonSchema}. */
203
+ type SetEnabledReason = z.infer<typeof SetEnabledReasonSchema>;
115
204
  /**
116
205
  * Extension namespace for bus operations.
117
206
  */
@@ -138,18 +227,18 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
138
227
  name: z.ZodString;
139
228
  displayName: z.ZodString;
140
229
  from: z.ZodEnum<{
141
- discovered: "discovered";
142
230
  failed: "failed";
143
- active: "active";
231
+ discovered: "discovered";
144
232
  skipped: "skipped";
233
+ active: "active";
145
234
  stopped: "stopped";
146
235
  initializing: "initializing";
147
236
  }>;
148
237
  to: z.ZodEnum<{
149
- discovered: "discovered";
150
238
  failed: "failed";
151
- active: "active";
239
+ discovered: "discovered";
152
240
  skipped: "skipped";
241
+ active: "active";
153
242
  stopped: "stopped";
154
243
  initializing: "initializing";
155
244
  }>;
@@ -181,10 +270,10 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
181
270
  name: z.ZodString;
182
271
  displayName: z.ZodString;
183
272
  state: z.ZodEnum<{
184
- discovered: "discovered";
185
273
  failed: "failed";
186
- active: "active";
274
+ discovered: "discovered";
187
275
  skipped: "skipped";
276
+ active: "active";
188
277
  stopped: "stopped";
189
278
  initializing: "initializing";
190
279
  }>;
@@ -195,6 +284,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
195
284
  headless: "headless";
196
285
  }>>;
197
286
  enabled: z.ZodBoolean;
287
+ extensionManaged: z.ZodBoolean;
288
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
289
+ critical: z.ZodBoolean;
198
290
  browser: z.ZodOptional<z.ZodObject<{
199
291
  entrypoint: z.ZodString;
200
292
  }, z.core.$strip>>;
@@ -219,10 +311,10 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
219
311
  name: z.ZodString;
220
312
  displayName: z.ZodString;
221
313
  state: z.ZodEnum<{
222
- discovered: "discovered";
223
314
  failed: "failed";
224
- active: "active";
315
+ discovered: "discovered";
225
316
  skipped: "skipped";
317
+ active: "active";
226
318
  stopped: "stopped";
227
319
  initializing: "initializing";
228
320
  }>;
@@ -233,6 +325,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
233
325
  headless: "headless";
234
326
  }>>;
235
327
  enabled: z.ZodBoolean;
328
+ extensionManaged: z.ZodBoolean;
329
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
330
+ critical: z.ZodBoolean;
236
331
  browser: z.ZodOptional<z.ZodObject<{
237
332
  entrypoint: z.ZodString;
238
333
  }, z.core.$strip>>;
@@ -240,13 +335,30 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
240
335
  }, z.core.$strip>;
241
336
  };
242
337
  /**
243
- * Enable or disable an extension at runtime.
338
+ * Durably record the operator's enablement preference for an extension.
244
339
  *
245
340
  * Subject: `kernel:extension.setEnabled`
246
341
  * Type: RPC (request/response)
247
- * Purpose: Allows the user or platform config to toggle an extension without
248
- * a full restart. The coordinator re-enters the load path on enable, or runs
249
- * cleanup and transitions to `stopped` on disable.
342
+ * Purpose: Allows the user or platform config to persist an enable/disable
343
+ * preference for an extension. This is persist-only: the coordinator never
344
+ * applies the change to the running process, because several package
345
+ * contributions are composed exactly once at boot and cannot be replayed
346
+ * for one package in isolation. The response's `outcome` reports whether
347
+ * the process's current runtime state already matches the request
348
+ * (`'applied'`) or a restart is needed for it to take effect
349
+ * (`'restart-required'`).
350
+ *
351
+ * Names this coordinator never loaded are addressable too, provided it
352
+ * exposes an installed-extension catalog (`kernel:extension.catalog`): the
353
+ * request is validated against that catalog — the name must be installed
354
+ * here, and a disable of a `critical` package, or of one whose criticality
355
+ * could not be resolved, is refused — before anything is written. This is
356
+ * what lets a caller that cannot see this host's filesystem persist a
357
+ * preference without having to vouch for the name itself. A name several
358
+ * installed copies claim is resolved against this coordinator's own runtime
359
+ * surface first, since two copies restricted to different surfaces both load
360
+ * — each on its own — and only one of them is the copy this runtime would
361
+ * start; a name that stays unresolvable is refused outright.
250
362
  * @param name - Unique extension identifier to toggle.
251
363
  * @param enabled - Target enabled state.
252
364
  */
@@ -257,6 +369,77 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
257
369
  }, z.core.$strip>;
258
370
  response: z.ZodObject<{
259
371
  success: z.ZodBoolean;
372
+ outcome: z.ZodEnum<{
373
+ rejected: "rejected";
374
+ applied: "applied";
375
+ "restart-required": "restart-required";
376
+ }>;
377
+ reason: z.ZodOptional<z.ZodEnum<{
378
+ critical: "critical";
379
+ "not-installed": "not-installed";
380
+ "criticality-unknown": "criticality-unknown";
381
+ "no-catalog": "no-catalog";
382
+ "name-collision": "name-collision";
383
+ "shutting-down": "shutting-down";
384
+ "runtime-state-diverges": "runtime-state-diverges";
385
+ "not-loaded": "not-loaded";
386
+ "framework-package-shadowed": "framework-package-shadowed";
387
+ }>>;
388
+ }, z.core.$strip>;
389
+ };
390
+ /**
391
+ * Request every extension package installed on the host running this
392
+ * coordinator.
393
+ *
394
+ * Subject: `kernel:extension.catalog`
395
+ * Type: RPC (request/response)
396
+ * Purpose: Exposes the coordinator host's own installed-package view —
397
+ * across every discovery tier it reads, including the project-local
398
+ * `node_modules` of the directory it was started from — enriched with the
399
+ * enablement facts only the host holding the durable store can answer.
400
+ * Callers that cannot inspect this host's filesystem (a client configured
401
+ * against a remote bus, or one invoked from a different working directory)
402
+ * have no other way to enumerate installed-but-not-loaded extensions, and
403
+ * `kernel:extension.setEnabled` validates against this same catalog.
404
+ *
405
+ * Returns `{ entries: null }` — not an empty array — when this runtime has
406
+ * no installed-extension catalog at all, because "nothing is installed" and
407
+ * "this host cannot answer" must not read alike to a caller deciding
408
+ * whether to trust the result.
409
+ */
410
+ catalog: {
411
+ request: z.ZodObject<{}, z.core.$strip>;
412
+ response: z.ZodObject<{
413
+ entries: z.ZodNullable<z.ZodArray<z.ZodObject<{
414
+ name: z.ZodString;
415
+ version: z.ZodString;
416
+ origin: z.ZodEnum<{
417
+ local: "local";
418
+ npm: "npm";
419
+ "project-local": "project-local";
420
+ }>;
421
+ critical: z.ZodOptional<z.ZodBoolean>;
422
+ criticalityUnknown: z.ZodOptional<z.ZodBoolean>;
423
+ declaresServerEntrypoint: z.ZodOptional<z.ZodBoolean>;
424
+ npmName: z.ZodOptional<z.ZodString>;
425
+ surface: z.ZodOptional<z.ZodEnum<{
426
+ interactive: "interactive";
427
+ headless: "headless";
428
+ }>>;
429
+ shadowedBy: z.ZodOptional<z.ZodEnum<{
430
+ local: "local";
431
+ npm: "npm";
432
+ "project-local": "project-local";
433
+ }>>;
434
+ collidesWith: z.ZodOptional<z.ZodEnum<{
435
+ local: "local";
436
+ npm: "npm";
437
+ "project-local": "project-local";
438
+ }>>;
439
+ collisionIgnoresSurface: z.ZodOptional<z.ZodBoolean>;
440
+ extensionManaged: z.ZodBoolean;
441
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
442
+ }, z.core.$strip>>>;
260
443
  }, z.core.$strip>;
261
444
  };
262
445
  /**
@@ -506,14 +689,24 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
506
689
  }, z.core.$strip>;
507
690
  };
508
691
  /**
509
- * Signal that an extension's enabled state has changed.
692
+ * Confirm an accepted enable/disable call and the extension's effective state.
510
693
  *
511
694
  * Subject: `kernel:extension.enabledChanged`
512
695
  * Type: Event (fire-and-forget)
513
- * Purpose: Emitted after a successful `kernel:extension.setEnabled` call so
514
- * observers can react to enable/disable changes without polling.
696
+ * Purpose: Emitted whenever the coordinator-internal
697
+ * `applyExtensionTransition` restart primitive accepts an enable/disable
698
+ * request (its outcome is `'applied'`, never `'rejected'`), so observers
699
+ * can learn the extension's effective runtime state without polling. This
700
+ * is **not** a promise that a state transition actually occurred: an
701
+ * idempotent enable-on-`active` or disable-on-`stopped` call is also
702
+ * `'applied'` and also announced here, with `entry.enabled` unchanged.
703
+ * `kernel:extension.setEnabled` does **not** emit this event: that RPC is
704
+ * persist-only and never attempts a live transition (see its own doc
705
+ * above), so a durable preference change whose `outcome` is `'applied'` or
706
+ * `'restart-required'` produces no `enabledChanged` event until whatever
707
+ * coordinator-internal mechanism actually restarts the extension.
515
708
  * @param name - Unique extension identifier.
516
- * @param enabled - New enabled state.
709
+ * @param enabled - The extension's effective enabled state after the call.
517
710
  */
518
711
  enabledChanged: z.ZodObject<{
519
712
  name: z.ZodString;
@@ -539,8 +732,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
539
732
  extensionName: z.ZodString;
540
733
  warnings: z.ZodArray<z.ZodObject<{
541
734
  severity: z.ZodEnum<{
542
- info: "info";
543
735
  degraded: "degraded";
736
+ info: "info";
544
737
  recommended: "recommended";
545
738
  }>;
546
739
  title: z.ZodString;
@@ -579,8 +772,8 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
579
772
  extensionName: z.ZodString;
580
773
  warnings: z.ZodArray<z.ZodObject<{
581
774
  severity: z.ZodEnum<{
582
- info: "info";
583
775
  degraded: "degraded";
776
+ info: "info";
584
777
  recommended: "recommended";
585
778
  }>;
586
779
  title: z.ZodString;
@@ -609,8 +802,9 @@ declare const ExtensionNamespace: _$_makaio_core0.BusNamespaceDefinition<"kernel
609
802
  * - `stateChanged` — event: emitted when an extension transitions between lifecycle states
610
803
  * - `list` — RPC: retrieve all registered extensions and their current state
611
804
  * - `get` — RPC: retrieve a single extension's info by name
612
- * - `setEnabled` — RPC: enable or disable an extension at runtime
613
- * - `enabledChanged` — event: emitted when an extension's enabled flag changes
805
+ * - `setEnabled` — RPC: persist an operator enable/disable preference
806
+ * - `catalog` — RPC: list every extension package installed on the coordinator's host
807
+ * - `enabledChanged` — event: confirms an accepted enable/disable call and the extension's effective state
614
808
  * - `warnings.list` — RPC: retrieve active health warnings for all (or one) extension
615
809
  * - `warnings.changed` — event: emitted after every health-check run with the latest warning snapshot
616
810
  * @example
@@ -644,18 +838,18 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
644
838
  name: z.ZodString;
645
839
  displayName: z.ZodString;
646
840
  from: z.ZodEnum<{
647
- discovered: "discovered";
648
841
  failed: "failed";
649
- active: "active";
842
+ discovered: "discovered";
650
843
  skipped: "skipped";
844
+ active: "active";
651
845
  stopped: "stopped";
652
846
  initializing: "initializing";
653
847
  }>;
654
848
  to: z.ZodEnum<{
655
- discovered: "discovered";
656
849
  failed: "failed";
657
- active: "active";
850
+ discovered: "discovered";
658
851
  skipped: "skipped";
852
+ active: "active";
659
853
  stopped: "stopped";
660
854
  initializing: "initializing";
661
855
  }>;
@@ -687,10 +881,10 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
687
881
  name: z.ZodString;
688
882
  displayName: z.ZodString;
689
883
  state: z.ZodEnum<{
690
- discovered: "discovered";
691
884
  failed: "failed";
692
- active: "active";
885
+ discovered: "discovered";
693
886
  skipped: "skipped";
887
+ active: "active";
694
888
  stopped: "stopped";
695
889
  initializing: "initializing";
696
890
  }>;
@@ -701,6 +895,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
701
895
  headless: "headless";
702
896
  }>>;
703
897
  enabled: z.ZodBoolean;
898
+ extensionManaged: z.ZodBoolean;
899
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
900
+ critical: z.ZodBoolean;
704
901
  browser: z.ZodOptional<z.ZodObject<{
705
902
  entrypoint: z.ZodString;
706
903
  }, z.core.$strip>>;
@@ -725,10 +922,10 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
725
922
  name: z.ZodString;
726
923
  displayName: z.ZodString;
727
924
  state: z.ZodEnum<{
728
- discovered: "discovered";
729
925
  failed: "failed";
730
- active: "active";
926
+ discovered: "discovered";
731
927
  skipped: "skipped";
928
+ active: "active";
732
929
  stopped: "stopped";
733
930
  initializing: "initializing";
734
931
  }>;
@@ -739,6 +936,9 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
739
936
  headless: "headless";
740
937
  }>>;
741
938
  enabled: z.ZodBoolean;
939
+ extensionManaged: z.ZodBoolean;
940
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
941
+ critical: z.ZodBoolean;
742
942
  browser: z.ZodOptional<z.ZodObject<{
743
943
  entrypoint: z.ZodString;
744
944
  }, z.core.$strip>>;
@@ -746,13 +946,30 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
746
946
  }, z.core.$strip>;
747
947
  };
748
948
  /**
749
- * Enable or disable an extension at runtime.
949
+ * Durably record the operator's enablement preference for an extension.
750
950
  *
751
951
  * Subject: `kernel:extension.setEnabled`
752
952
  * Type: RPC (request/response)
753
- * Purpose: Allows the user or platform config to toggle an extension without
754
- * a full restart. The coordinator re-enters the load path on enable, or runs
755
- * cleanup and transitions to `stopped` on disable.
953
+ * Purpose: Allows the user or platform config to persist an enable/disable
954
+ * preference for an extension. This is persist-only: the coordinator never
955
+ * applies the change to the running process, because several package
956
+ * contributions are composed exactly once at boot and cannot be replayed
957
+ * for one package in isolation. The response's `outcome` reports whether
958
+ * the process's current runtime state already matches the request
959
+ * (`'applied'`) or a restart is needed for it to take effect
960
+ * (`'restart-required'`).
961
+ *
962
+ * Names this coordinator never loaded are addressable too, provided it
963
+ * exposes an installed-extension catalog (`kernel:extension.catalog`): the
964
+ * request is validated against that catalog — the name must be installed
965
+ * here, and a disable of a `critical` package, or of one whose criticality
966
+ * could not be resolved, is refused — before anything is written. This is
967
+ * what lets a caller that cannot see this host's filesystem persist a
968
+ * preference without having to vouch for the name itself. A name several
969
+ * installed copies claim is resolved against this coordinator's own runtime
970
+ * surface first, since two copies restricted to different surfaces both load
971
+ * — each on its own — and only one of them is the copy this runtime would
972
+ * start; a name that stays unresolvable is refused outright.
756
973
  * @param name - Unique extension identifier to toggle.
757
974
  * @param enabled - Target enabled state.
758
975
  */
@@ -763,6 +980,77 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
763
980
  }, z.core.$strip>;
764
981
  response: z.ZodObject<{
765
982
  success: z.ZodBoolean;
983
+ outcome: z.ZodEnum<{
984
+ rejected: "rejected";
985
+ applied: "applied";
986
+ "restart-required": "restart-required";
987
+ }>;
988
+ reason: z.ZodOptional<z.ZodEnum<{
989
+ critical: "critical";
990
+ "not-installed": "not-installed";
991
+ "criticality-unknown": "criticality-unknown";
992
+ "no-catalog": "no-catalog";
993
+ "name-collision": "name-collision";
994
+ "shutting-down": "shutting-down";
995
+ "runtime-state-diverges": "runtime-state-diverges";
996
+ "not-loaded": "not-loaded";
997
+ "framework-package-shadowed": "framework-package-shadowed";
998
+ }>>;
999
+ }, z.core.$strip>;
1000
+ };
1001
+ /**
1002
+ * Request every extension package installed on the host running this
1003
+ * coordinator.
1004
+ *
1005
+ * Subject: `kernel:extension.catalog`
1006
+ * Type: RPC (request/response)
1007
+ * Purpose: Exposes the coordinator host's own installed-package view —
1008
+ * across every discovery tier it reads, including the project-local
1009
+ * `node_modules` of the directory it was started from — enriched with the
1010
+ * enablement facts only the host holding the durable store can answer.
1011
+ * Callers that cannot inspect this host's filesystem (a client configured
1012
+ * against a remote bus, or one invoked from a different working directory)
1013
+ * have no other way to enumerate installed-but-not-loaded extensions, and
1014
+ * `kernel:extension.setEnabled` validates against this same catalog.
1015
+ *
1016
+ * Returns `{ entries: null }` — not an empty array — when this runtime has
1017
+ * no installed-extension catalog at all, because "nothing is installed" and
1018
+ * "this host cannot answer" must not read alike to a caller deciding
1019
+ * whether to trust the result.
1020
+ */
1021
+ catalog: {
1022
+ request: z.ZodObject<{}, z.core.$strip>;
1023
+ response: z.ZodObject<{
1024
+ entries: z.ZodNullable<z.ZodArray<z.ZodObject<{
1025
+ name: z.ZodString;
1026
+ version: z.ZodString;
1027
+ origin: z.ZodEnum<{
1028
+ local: "local";
1029
+ npm: "npm";
1030
+ "project-local": "project-local";
1031
+ }>;
1032
+ critical: z.ZodOptional<z.ZodBoolean>;
1033
+ criticalityUnknown: z.ZodOptional<z.ZodBoolean>;
1034
+ declaresServerEntrypoint: z.ZodOptional<z.ZodBoolean>;
1035
+ npmName: z.ZodOptional<z.ZodString>;
1036
+ surface: z.ZodOptional<z.ZodEnum<{
1037
+ interactive: "interactive";
1038
+ headless: "headless";
1039
+ }>>;
1040
+ shadowedBy: z.ZodOptional<z.ZodEnum<{
1041
+ local: "local";
1042
+ npm: "npm";
1043
+ "project-local": "project-local";
1044
+ }>>;
1045
+ collidesWith: z.ZodOptional<z.ZodEnum<{
1046
+ local: "local";
1047
+ npm: "npm";
1048
+ "project-local": "project-local";
1049
+ }>>;
1050
+ collisionIgnoresSurface: z.ZodOptional<z.ZodBoolean>;
1051
+ extensionManaged: z.ZodBoolean;
1052
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
1053
+ }, z.core.$strip>>>;
766
1054
  }, z.core.$strip>;
767
1055
  };
768
1056
  /**
@@ -1012,14 +1300,24 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1012
1300
  }, z.core.$strip>;
1013
1301
  };
1014
1302
  /**
1015
- * Signal that an extension's enabled state has changed.
1303
+ * Confirm an accepted enable/disable call and the extension's effective state.
1016
1304
  *
1017
1305
  * Subject: `kernel:extension.enabledChanged`
1018
1306
  * Type: Event (fire-and-forget)
1019
- * Purpose: Emitted after a successful `kernel:extension.setEnabled` call so
1020
- * observers can react to enable/disable changes without polling.
1307
+ * Purpose: Emitted whenever the coordinator-internal
1308
+ * `applyExtensionTransition` restart primitive accepts an enable/disable
1309
+ * request (its outcome is `'applied'`, never `'rejected'`), so observers
1310
+ * can learn the extension's effective runtime state without polling. This
1311
+ * is **not** a promise that a state transition actually occurred: an
1312
+ * idempotent enable-on-`active` or disable-on-`stopped` call is also
1313
+ * `'applied'` and also announced here, with `entry.enabled` unchanged.
1314
+ * `kernel:extension.setEnabled` does **not** emit this event: that RPC is
1315
+ * persist-only and never attempts a live transition (see its own doc
1316
+ * above), so a durable preference change whose `outcome` is `'applied'` or
1317
+ * `'restart-required'` produces no `enabledChanged` event until whatever
1318
+ * coordinator-internal mechanism actually restarts the extension.
1021
1319
  * @param name - Unique extension identifier.
1022
- * @param enabled - New enabled state.
1320
+ * @param enabled - The extension's effective enabled state after the call.
1023
1321
  */
1024
1322
  enabledChanged: z.ZodObject<{
1025
1323
  name: z.ZodString;
@@ -1045,8 +1343,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1045
1343
  extensionName: z.ZodString;
1046
1344
  warnings: z.ZodArray<z.ZodObject<{
1047
1345
  severity: z.ZodEnum<{
1048
- info: "info";
1049
1346
  degraded: "degraded";
1347
+ info: "info";
1050
1348
  recommended: "recommended";
1051
1349
  }>;
1052
1350
  title: z.ZodString;
@@ -1085,8 +1383,8 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1085
1383
  extensionName: z.ZodString;
1086
1384
  warnings: z.ZodArray<z.ZodObject<{
1087
1385
  severity: z.ZodEnum<{
1088
- info: "info";
1089
1386
  degraded: "degraded";
1387
+ info: "info";
1090
1388
  recommended: "recommended";
1091
1389
  }>;
1092
1390
  title: z.ZodString;
@@ -1109,4 +1407,100 @@ declare const ExtensionSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.Fla
1109
1407
  }, z.core.$strip>;
1110
1408
  }>, "kernel:extension">;
1111
1409
  //#endregion
1112
- export { ComponentInfoSchema as a, ExtensionInfo as c, ExtensionWarningEntrySchema as d, ServiceInfo as f, ComponentInfo as i, ExtensionInfoSchema as l, ExtensionSubjects as n, ComponentState as o, ServiceInfoSchema as p, ComponentIdentitySchema as r, ComponentStateSchema as s, ExtensionNamespace as t, ExtensionWarningEntry as u };
1410
+ //#region packages/kernel/src/observability/installed-extension-catalog-schemas.d.ts
1411
+ /**
1412
+ * Discovery tier an installed extension package was found in.
1413
+ *
1414
+ * - `'project-local'` — the highest-priority tier: the `node_modules` of the
1415
+ * project directory the runtime was started from, or the descriptor roots a
1416
+ * host declared for itself in runtime config, which rank the same.
1417
+ * - `'local'` — a symlinked install under the data home's `extensions/`.
1418
+ * - `'npm'` — a registry install under the data home's `node_modules/`.
1419
+ *
1420
+ * Reported verbatim so a caller can tell an extension shared through the data
1421
+ * home apart from one that only exists in the host's own project tree.
1422
+ */
1423
+ declare const InstalledExtensionOriginSchema: z.ZodEnum<{
1424
+ local: "local";
1425
+ npm: "npm";
1426
+ "project-local": "project-local";
1427
+ }>;
1428
+ /** Inferred union of installed-extension discovery tiers. */
1429
+ type InstalledExtensionOrigin = z.infer<typeof InstalledExtensionOriginSchema>;
1430
+ /**
1431
+ * One installed executable extension package, as seen without starting any
1432
+ * extension service.
1433
+ *
1434
+ * Keyed by executable package identity — the descriptor name, or one of its
1435
+ * dot-prefixed children — because that is what the enablement store, the
1436
+ * runtime loader, and every enablement RPC address. A single descriptor whose
1437
+ * server entrypoint exports several packages produces one record per package.
1438
+ */
1439
+ declare const InstalledExtensionRecordSchema: z.ZodObject<{
1440
+ name: z.ZodString;
1441
+ version: z.ZodString;
1442
+ origin: z.ZodEnum<{
1443
+ local: "local";
1444
+ npm: "npm";
1445
+ "project-local": "project-local";
1446
+ }>;
1447
+ critical: z.ZodOptional<z.ZodBoolean>;
1448
+ criticalityUnknown: z.ZodOptional<z.ZodBoolean>;
1449
+ declaresServerEntrypoint: z.ZodOptional<z.ZodBoolean>;
1450
+ npmName: z.ZodOptional<z.ZodString>;
1451
+ surface: z.ZodOptional<z.ZodEnum<{
1452
+ interactive: "interactive";
1453
+ headless: "headless";
1454
+ }>>;
1455
+ shadowedBy: z.ZodOptional<z.ZodEnum<{
1456
+ local: "local";
1457
+ npm: "npm";
1458
+ "project-local": "project-local";
1459
+ }>>;
1460
+ collidesWith: z.ZodOptional<z.ZodEnum<{
1461
+ local: "local";
1462
+ npm: "npm";
1463
+ "project-local": "project-local";
1464
+ }>>;
1465
+ collisionIgnoresSurface: z.ZodOptional<z.ZodBoolean>;
1466
+ }, z.core.$strip>;
1467
+ /** Inferred type for one installed executable extension package. */
1468
+ type InstalledExtensionRecord = z.infer<typeof InstalledExtensionRecordSchema>;
1469
+ /**
1470
+ * One installed package as reported over the bus, enriched with the enablement
1471
+ * facts only the coordinator holding the durable store can answer.
1472
+ */
1473
+ declare const InstalledExtensionCatalogEntrySchema: z.ZodObject<{
1474
+ name: z.ZodString;
1475
+ version: z.ZodString;
1476
+ origin: z.ZodEnum<{
1477
+ local: "local";
1478
+ npm: "npm";
1479
+ "project-local": "project-local";
1480
+ }>;
1481
+ critical: z.ZodOptional<z.ZodBoolean>;
1482
+ criticalityUnknown: z.ZodOptional<z.ZodBoolean>;
1483
+ declaresServerEntrypoint: z.ZodOptional<z.ZodBoolean>;
1484
+ npmName: z.ZodOptional<z.ZodString>;
1485
+ surface: z.ZodOptional<z.ZodEnum<{
1486
+ interactive: "interactive";
1487
+ headless: "headless";
1488
+ }>>;
1489
+ shadowedBy: z.ZodOptional<z.ZodEnum<{
1490
+ local: "local";
1491
+ npm: "npm";
1492
+ "project-local": "project-local";
1493
+ }>>;
1494
+ collidesWith: z.ZodOptional<z.ZodEnum<{
1495
+ local: "local";
1496
+ npm: "npm";
1497
+ "project-local": "project-local";
1498
+ }>>;
1499
+ collisionIgnoresSurface: z.ZodOptional<z.ZodBoolean>;
1500
+ extensionManaged: z.ZodBoolean;
1501
+ persistedEnabled: z.ZodOptional<z.ZodBoolean>;
1502
+ }, z.core.$strip>;
1503
+ /** Inferred type for one catalog entry reported by `kernel:extension.catalog`. */
1504
+ type InstalledExtensionCatalogEntry = z.infer<typeof InstalledExtensionCatalogEntrySchema>;
1505
+ //#endregion
1506
+ export { ServiceInfoSchema as C, ServiceInfo as S, ComponentStateSchema as _, InstalledExtensionRecord as a, ExtensionWarningEntry as b, ExtensionSubjects as c, TransitionOutcome as d, TransitionOutcomeSchema as f, ComponentState as g, ComponentInfoSchema as h, InstalledExtensionOriginSchema as i, SetEnabledReason as l, ComponentInfo as m, InstalledExtensionCatalogEntrySchema as n, InstalledExtensionRecordSchema as o, ComponentIdentitySchema as p, InstalledExtensionOrigin as r, ExtensionNamespace as s, InstalledExtensionCatalogEntry as t, SetEnabledReasonSchema as u, ExtensionInfo as v, ExtensionWarningEntrySchema as x, ExtensionInfoSchema as y };