@makaio/framework 1.0.0-dev-1789609124644 → 1.0.0-dev-1790066089222

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 (361) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{adapter-C4v_gNTI.mjs → adapter-DSRgsh2d.mjs} +1 -1
  3. package/dist/adapter-subsystem/index.d.mts +15 -7
  4. package/dist/adapter-subsystem/index.mjs +1 -1
  5. package/dist/adapters/claude/index.mjs +3 -3
  6. package/dist/adapters/config/index.d.mts +1 -1
  7. package/dist/adapters/index.d.mts +2 -2
  8. package/dist/adapters/node.d.mts +1 -1
  9. package/dist/{attempt-record-codec-DaQ3WHUs.mjs → attempt-record-codec-DXpdMgyI.mjs} +1 -1
  10. package/dist/bus/index.d.mts +120 -8
  11. package/dist/bus/index.mjs +1 -1
  12. package/dist/bus-ceMF9rsq.mjs +9 -0
  13. package/dist/client-DWSwtFyI.mjs +1 -0
  14. package/dist/clients/index.d.mts +179 -12
  15. package/dist/clients/index.mjs +1 -1
  16. package/dist/clients/managed-install.d.mts +1 -1
  17. package/dist/code-execution/worker-entry.d.mts +1 -1
  18. package/dist/code-execution/worker-entry.mjs +1 -1
  19. package/dist/{code-execution-pUF4IO462.mjs → code-execution-DWSux6k1.mjs} +1 -1
  20. package/dist/contracts/adapter/index.d.mts +2 -2
  21. package/dist/contracts/adapter/index.mjs +1 -1
  22. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  23. package/dist/contracts/artifact/index.d.mts +2 -2
  24. package/dist/contracts/auth/index.d.mts +2 -2
  25. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  26. package/dist/contracts/canonical-model/index.d.mts +1 -1
  27. package/dist/contracts/capabilities/index.d.mts +1 -1
  28. package/dist/contracts/client/index.d.mts +3 -3
  29. package/dist/contracts/client/index.mjs +1 -1
  30. package/dist/contracts/code-execution/index.d.mts +1 -1
  31. package/dist/contracts/common/index.d.mts +1 -1
  32. package/dist/contracts/config/index.d.mts +2 -47
  33. package/dist/contracts/context-projection/index.d.mts +232 -0
  34. package/dist/contracts/context-projection/index.mjs +1 -0
  35. package/dist/contracts/extension/index.d.mts +6 -6
  36. package/dist/contracts/extension/index.mjs +1 -1
  37. package/dist/contracts/facet/index.d.mts +1 -1
  38. package/dist/contracts/harness/index.d.mts +1 -1
  39. package/dist/contracts/host/index.d.mts +1 -1
  40. package/dist/contracts/index.d.mts +43 -43
  41. package/dist/contracts/index.mjs +1 -1
  42. package/dist/contracts/materialization/index.d.mts +2 -2
  43. package/dist/contracts/model-registry/index.d.mts +1 -1
  44. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  45. package/dist/contracts/platform/index.d.mts +1 -1
  46. package/dist/contracts/provider/index.d.mts +2 -2
  47. package/dist/contracts/reaction/index.d.mts +1 -1
  48. package/dist/contracts/session/index.d.mts +3 -3
  49. package/dist/contracts/session/index.mjs +1 -1
  50. package/dist/contracts/shared/index.d.mts +2 -2
  51. package/dist/contracts/skill/index.d.mts +1 -1
  52. package/dist/contracts/telemetry/index.d.mts +1 -1
  53. package/dist/contracts/timeout/index.d.mts +1 -1
  54. package/dist/contracts/variant/index.d.mts +1 -1
  55. package/dist/contracts/worker/index.d.mts +2 -2
  56. package/dist/contracts/workflow/index.d.mts +2 -2
  57. package/dist/{contribution-DDbHzCPF.d.mts → contribution-1GL7Rjaq.d.mts} +2 -2
  58. package/dist/credential-ref-w4ZYpYW0.d.mts +49 -0
  59. package/dist/{definition-CuaBQyde.d.mts → definition-DeIGoROj.d.mts} +1 -1
  60. package/dist/{descriptor-to-package-Dw8dnl5E.mjs → descriptor-to-package-BPIArq6N.mjs} +1 -1
  61. package/dist/{detached-extension-handle-DN3aqLyq.mjs → detached-extension-handle-W5_yfCyE.mjs} +1 -1
  62. package/dist/drizzle/0040_session_generation.sql +1 -0
  63. package/dist/drizzle/0041_session_principal_owner.sql +1 -0
  64. package/dist/drizzle/meta/_journal.json +14 -0
  65. package/dist/{execution-attempt-owner-recovery-CE_rvHKE.mjs → execution-attempt-owner-recovery-BZOEVYFH.mjs} +1 -1
  66. package/dist/extension-C6ANjR33.mjs +1 -0
  67. package/dist/{extension-context-BH31eOMv.d.mts → extension-context-pQ7Uio_s.d.mts} +44 -1
  68. package/dist/{extension-discovery-CA2IhDRo.d.mts → extension-discovery-Rup-gANp.d.mts} +114 -15
  69. package/dist/extension-kOwzAMud.mjs +1 -0
  70. package/dist/extension-namespace-CeRpt6C8.mjs +1 -0
  71. package/dist/{framework-packages-Bg4edkkM.mjs → framework-packages-U4Xhouxe.mjs} +1 -1
  72. package/dist/{hook-responses-Dq16X3Cb.d.mts → hook-responses-B882RcQc.d.mts} +48 -5
  73. package/dist/{index-Dm3d490n.d.mts → index-B2bxgKiK.d.mts} +1 -1
  74. package/dist/{index-7CVumCjj.d.mts → index-BTpkpHIS.d.mts} +65 -9
  75. package/dist/{index-Bh57xARQ.d.mts → index-BUv9gfRT.d.mts} +3 -3
  76. package/dist/{index-C6e9cwAl2.d.mts → index-BjQtqMxP2.d.mts} +4 -4
  77. package/dist/{index-B-u0Tu8X.d.mts → index-Bqi44ODz.d.mts} +37 -37
  78. package/dist/{index-CIzvBH8O.d.mts → index-C8two8wz.d.mts} +1 -1
  79. package/dist/{index-oxZt93RL.d.mts → index-CESqYf8a.d.mts} +2 -2
  80. package/dist/{index-C87P0WpY2.d.mts → index-CmCLAMNs.d.mts} +1 -1
  81. package/dist/index-CyEE1RI5.d.mts +869 -0
  82. package/dist/{index-De_oh9M-2.d.mts → index-D6Uq1btG.d.mts} +87 -10
  83. package/dist/{index-CRZ1jrxp.d.mts → index-DDSt0uS2.d.mts} +160 -12
  84. package/dist/{index-B6WkHnCQ.d.mts → index-DRxgmrad.d.mts} +1 -1
  85. package/dist/{index-U--ajOHy.d.mts → index-DUYjTfHD.d.mts} +1 -1
  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-Di-R1gmo.d.mts} +2 -2
  89. package/dist/{index-DWANFpTG.d.mts → index-Jdju2W3y.d.mts} +1 -1
  90. package/dist/{index-DQKVQPUS.d.mts → index-L6mssyeZ.d.mts} +1 -1
  91. package/dist/{index-B8v1-2-V2.d.mts → index-anIxF_eT.d.mts} +1 -1
  92. package/dist/{index-iVisrVdC2.d.mts → index-bYBnDBl32.d.mts} +539 -4
  93. package/dist/{index-Bg3WVL8n.d.mts → index-gNdH1F6r.d.mts} +531 -26
  94. package/dist/{index-zmDRR8gv2.d.mts → index-m5ZQFglW2.d.mts} +1 -1
  95. package/dist/{index-mTaFX2HH2.d.mts → index-uk8icWON2.d.mts} +419 -19
  96. package/dist/kernel/cli/index.d.mts +2 -2
  97. package/dist/kernel/cli/register.d.mts +1 -1
  98. package/dist/kernel/extension/index.d.mts +3 -2
  99. package/dist/kernel/extension/index.mjs +1 -1
  100. package/dist/kernel/index.d.mts +6 -6
  101. package/dist/kernel/index.mjs +1 -1
  102. package/dist/kernel/namespace/index.d.mts +1 -1
  103. package/dist/kernel/observability/index.d.mts +2 -2
  104. package/dist/kernel/observability/index.mjs +1 -1
  105. package/dist/kernel/providers/index.d.mts +1 -1
  106. package/dist/kernel/window/index.d.mts +1 -1
  107. package/dist/{lib-BF5XBSfw.mjs → lib-BdyGVjpO.mjs} +1 -1
  108. package/dist/{lib-Dljw2Cqh.mjs → lib-DxP3tPm9.mjs} +1 -1
  109. package/dist/load-extensions-BGfSWW_R.mjs +1 -0
  110. package/dist/{load-extensions-DGstT4_p.d.mts → load-extensions-Be_lOjm_.d.mts} +27 -14
  111. package/dist/mcp-http-server/index.mjs +1 -1
  112. package/dist/{namespace-BMdYJN_t.mjs → namespace-CqJhR19O.mjs} +1 -1
  113. package/dist/{namespace-Cmu-5_P9.d.mts → namespace-DudchWPb.d.mts} +457 -0
  114. package/dist/{namespace-BEbQb19g.d.mts → namespace-Eir1wQ_r.d.mts} +2 -2
  115. package/dist/node/bus-server/index.d.mts +1 -1
  116. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  117. package/dist/node/transports/index.d.mts +102 -4
  118. package/dist/node/transports/index.mjs +2 -2
  119. package/dist/{orchestrator-shared-CtPB6PAr.mjs → orchestrator-shared-CF-jPH91.mjs} +1 -1
  120. package/dist/ownership-memory-handler-C-y9zQf8.mjs +1 -0
  121. package/dist/package-AlsbnlSt.mjs +159 -0
  122. package/dist/{package-CDj3F-L3.d.mts → package-CwyC-Krg.d.mts} +1 -1
  123. package/dist/{package-DYScYC0D.mjs → package-kkPGlxMm.mjs} +1 -1
  124. package/dist/package.json +1 -1
  125. package/dist/{registry-DNMjJ-Oj.mjs → registry-DtaRGU8i.mjs} +1 -0
  126. package/dist/rules/index.d.mts +1 -1
  127. package/dist/rules/index.mjs +1 -1
  128. package/dist/rules/schemas.d.mts +1 -1
  129. package/dist/runtime-bun/index.d.mts +2 -2
  130. package/dist/runtime-bun/index.mjs +1 -1
  131. package/dist/runtime-node/boot-config.d.mts +45 -0
  132. package/dist/runtime-node/boot-config.mjs +1 -0
  133. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  134. package/dist/runtime-node/code-execution/index.mjs +1 -1
  135. package/dist/runtime-node/extension-discovery.d.mts +2 -2
  136. package/dist/runtime-node/extension-discovery.mjs +1 -1
  137. package/dist/runtime-node/extension-validation.d.mts +1 -1
  138. package/dist/runtime-node/extension-validation.mjs +1 -1
  139. package/dist/runtime-node/index.d.mts +345 -27
  140. package/dist/runtime-node/index.mjs +21 -24
  141. package/dist/runtime-node/makaio-config.d.mts +1 -1
  142. package/dist/runtime-node/makaio-config.mjs +1 -1
  143. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  144. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  145. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  146. package/dist/{schema-BA1cHBbc.d.mts → schema-FY0EakKe.d.mts} +56 -0
  147. package/dist/schemas-CkxAK13D.mjs +1 -0
  148. package/dist/{schemas-CaYEFzK_.d.mts → schemas-FgVQek-j.d.mts} +2 -2
  149. package/dist/services/adapter-runtime/index.d.mts +3 -3
  150. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  151. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  152. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  153. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  154. package/dist/services/agent-runtime/index.d.mts +2 -2
  155. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  156. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  157. package/dist/services/automation-trigger/index.d.mts +19 -0
  158. package/dist/services/capability/index.d.mts +2 -2
  159. package/dist/services/code-execution/index.d.mts +1 -1
  160. package/dist/services/codebase/index.d.mts +2 -2
  161. package/dist/services/codebase/namespace.d.mts +1 -1
  162. package/dist/services/codebase/schemas.d.mts +1 -1
  163. package/dist/services/compression/index.d.mts +2 -2
  164. package/dist/services/compression/namespace.d.mts +1 -1
  165. package/dist/services/compression/schemas.d.mts +1 -1
  166. package/dist/services/context-projection/index.d.mts +94 -0
  167. package/dist/services/context-projection/index.mjs +1 -0
  168. package/dist/services/context-rules/index.d.mts +1 -1
  169. package/dist/services/execution-target/index.d.mts +3 -3
  170. package/dist/services/execution-target/namespace.d.mts +1 -1
  171. package/dist/services/execution-target/schemas.d.mts +1 -1
  172. package/dist/services/filesystem/index.d.mts +1 -1
  173. package/dist/services/index.d.mts +45 -40
  174. package/dist/services/index.mjs +1 -1
  175. package/dist/services/log-import/browser.d.mts +2 -2
  176. package/dist/services/log-import/index.d.mts +2 -2
  177. package/dist/services/log-import/log-import.d.mts +1 -1
  178. package/dist/services/materialization/index.d.mts +1 -1
  179. package/dist/services/model-registry/index.d.mts +1 -1
  180. package/dist/services/preferences/index.d.mts +2 -2
  181. package/dist/services/preferences/schemas.d.mts +1 -1
  182. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  183. package/dist/services/provider-context/index.d.mts +1 -1
  184. package/dist/services/session/handlers/index.d.mts +1 -1
  185. package/dist/services/session/index.d.mts +9 -9
  186. package/dist/services/session/index.mjs +1 -1
  187. package/dist/services/session/messages/namespace.d.mts +1 -1
  188. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  189. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  190. package/dist/services/session/session-events/namespace.d.mts +1 -1
  191. package/dist/services/session/storage/namespace.d.mts +1 -1
  192. package/dist/services/session/storage/schema.d.mts +1 -1
  193. package/dist/services/session/storage/schema.mjs +1 -1
  194. package/dist/services/session/testing/index.mjs +4 -2
  195. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  196. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  197. package/dist/services/session/turns/namespace.d.mts +1 -1
  198. package/dist/services/session-editor/index.d.mts +1 -1
  199. package/dist/services/settings/index.d.mts +3 -3
  200. package/dist/services/settings/namespace.d.mts +232 -3
  201. package/dist/services/settings/namespace.mjs +1 -1
  202. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  203. package/dist/services/settings/storage/index.d.mts +3 -3
  204. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  205. package/dist/services/subagent/index.d.mts +1 -1
  206. package/dist/services/subagent-template/index.d.mts +2 -2
  207. package/dist/services/subagent-template/namespace.d.mts +1 -1
  208. package/dist/services/subagent-template/schemas.d.mts +1 -1
  209. package/dist/services/tool-approval/index.d.mts +1 -1
  210. package/dist/services/tool-approval/index.mjs +1 -1
  211. package/dist/services/tools/index.d.mts +1 -1
  212. package/dist/services/tools/index.mjs +1 -1
  213. package/dist/services/tray-menu/index.d.mts +3 -3
  214. package/dist/services/tray-menu/namespace.d.mts +1 -1
  215. package/dist/services/tray-menu/schemas.d.mts +1 -1
  216. package/dist/services/turn/index.d.mts +1 -1
  217. package/dist/services/turn/namespace.d.mts +1 -1
  218. package/dist/services/workflow-transitions/index.d.mts +1 -1
  219. package/dist/services/workflow-transitions/index.mjs +1 -1
  220. package/dist/session-BNiMZnfF.mjs +1 -0
  221. package/dist/session-CMbztxNO.mjs +95 -0
  222. package/dist/src-BZdw54VU.mjs +1 -0
  223. package/dist/{src-CbAw9kjJ.mjs → src-C0sw_Vs_.mjs} +1 -1
  224. package/dist/{src-Xn6SS74f.mjs → src-CqQSqLQI.mjs} +1 -1
  225. package/dist/storage/drizzle/client.d.mts +1 -1
  226. package/dist/storage/drizzle/client.mjs +1 -1
  227. package/dist/storage/drizzle/index.d.mts +1 -1
  228. package/dist/storage/drizzle/index.mjs +1 -1
  229. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  230. package/dist/storage/handlers/index.d.mts +1 -1
  231. package/dist/{tool-approval-service-pbkGcAV8.mjs → tool-approval-service-CRo3fZRF.mjs} +1 -1
  232. package/dist/{tools-C5Gy0IQG.mjs → tools-CKaxi3Mb.mjs} +1 -1
  233. package/dist/{transition-D-Lgbp1j.d.mts → transition-DMv8cgEd.d.mts} +2 -2
  234. package/dist/{types-CjYcHDPo2.d.mts → types-7L3BrU9m2.d.mts} +1 -1
  235. package/dist/{types-DhbllltK.d.mts → types-DNYO_Rxj.d.mts} +12 -3
  236. package/dist/ui-hooks/index.d.mts +17 -24
  237. package/dist/ui-hooks/index.mjs +1 -1
  238. package/dist/ui-kernel/index.d.mts +11 -2
  239. package/dist/ui-kernel/index.mjs +1 -1
  240. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  241. package/dist/ui-views/index.mjs +1 -1
  242. package/dist/utils/index.d.mts +31 -1
  243. package/dist/utils/index.mjs +2 -2
  244. package/dist/{view-builder-CHUTXJDl.d.mts → view-builder-DJGz9I-u.d.mts} +2 -2
  245. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  246. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  247. package/dist/workflow-engine/index.d.mts +2 -2
  248. package/dist/workflow-engine/index.mjs +1 -1
  249. package/dist/workflow-engine/package.d.mts +1 -1
  250. package/dist/workflow-engine/package.mjs +1 -1
  251. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  252. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  253. package/dist/workflow-engine/testing/conformance.mjs +1 -1
  254. package/dist/workflow-engine/testing/index.d.mts +1 -1
  255. package/dist/workflow-engine/testing/index.mjs +1 -1
  256. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  257. package/dist/workflow-engine/testing/sqlite.mjs +1 -1
  258. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  259. package/dist/{workflow-transitions-C0sg3kar.mjs → workflow-transitions-t0ORS1F5.mjs} +1 -1
  260. package/dist/workflow-worker-DXCXb3g-.mjs +3 -0
  261. package/package.json +9 -1
  262. package/dist/bus-BQ64i3DN.mjs +0 -9
  263. package/dist/client-Bg3_IdaF.mjs +0 -1
  264. package/dist/extension-CfrTp3rC.mjs +0 -1
  265. package/dist/extension-CnNcY1hR.mjs +0 -1
  266. package/dist/extension-namespace-Ct9L6SKr.mjs +0 -1
  267. package/dist/index-D_j_T3nS.d.mts +0 -435
  268. package/dist/load-extensions-BVgxTj_y.mjs +0 -1
  269. package/dist/ownership-memory-handler-xex7sLiX.mjs +0 -1
  270. package/dist/schemas-ClkcU_N5.mjs +0 -1
  271. package/dist/session-6UG5udTX.mjs +0 -95
  272. package/dist/session-BB0s7c2B.mjs +0 -1
  273. package/dist/workflow-worker-ChrMIcKm.mjs +0 -2
  274. /package/dist/{adapter-binding-BxjUfkOn.d.mts → adapter-binding-CaYBrIkL.d.mts} +0 -0
  275. /package/dist/{attempt-control-evidence-7lwRG73Y.mjs → attempt-control-evidence-CHBnJoqN.mjs} +0 -0
  276. /package/dist/{attempt-fixtures-DHdYmr3o.mjs → attempt-fixtures-D3IsP0KH.mjs} +0 -0
  277. /package/dist/{authority-state-bootstrap-CvuWPywM.mjs → authority-state-bootstrap-4F5Wc_6l.mjs} +0 -0
  278. /package/dist/{base-orchestrator-CrXiMJzf.d.mts → base-orchestrator-1ofFsqUz.d.mts} +0 -0
  279. /package/dist/{bootstrap-start-client-C1ZHbv6e.mjs → bootstrap-start-client-9nOdeDYl.mjs} +0 -0
  280. /package/dist/{capability-service-CQ1aw_p-.d.mts → capability-service-CUN0MIS7.d.mts} +0 -0
  281. /package/dist/{client-ByjHcS78.d.mts → client-BY3sBW2L.d.mts} +0 -0
  282. /package/dist/{client-binary-version-verifier-C4fEAUdo.d.mts → client-binary-version-verifier-BeO4Eptw.d.mts} +0 -0
  283. /package/dist/{clients-namespace-D4BxF2Nw.d.mts → clients-namespace-D92YsbKI.d.mts} +0 -0
  284. /package/dist/{config-namespace-B1zyOYwH.d.mts → config-namespace-OEckUfVE.d.mts} +0 -0
  285. /package/dist/{create-static-mount-Dgxgi4W3.mjs → create-static-mount-4B-mNtx1.mjs} +0 -0
  286. /package/dist/{cross-spawn-BMCAyqrN.mjs → cross-spawn-DGqEuNyT.mjs} +0 -0
  287. /package/dist/{definition-ClWxAKQ2.d.mts → definition-DLJg-P4G.d.mts} +0 -0
  288. /package/dist/{esm-Ccx-3z8E.mjs → esm-DwiWcwH0.mjs} +0 -0
  289. /package/dist/{execution-attempt-repository-aabFKcXN.mjs → execution-attempt-repository-CY289HlC.mjs} +0 -0
  290. /package/dist/{execution-attempt-repository-BUah8hma.d.mts → execution-attempt-repository-DOb5V4N2.d.mts} +0 -0
  291. /package/dist/{extension-package-provenance-C7oO5JAE.mjs → extension-package-provenance-ClpN3GHp.mjs} +0 -0
  292. /package/dist/{filesystem-service-CDYoiwWY.d.mts → filesystem-service-BmavE-uO.d.mts} +0 -0
  293. /package/dist/{index-BbkcbY6d.d.mts → index--gbsE1W0.d.mts} +0 -0
  294. /package/dist/{index-DdVpWkaI.d.mts → index-B36rL4gp.d.mts} +0 -0
  295. /package/dist/{index-DM72_93s.d.mts → index-BD1SbHpP.d.mts} +0 -0
  296. /package/dist/{index-KdlZRuTp.d.mts → index-BDcK7jqJ2.d.mts} +0 -0
  297. /package/dist/{index-DAaQ--ki.d.mts → index-BQYGOXY5.d.mts} +0 -0
  298. /package/dist/{index-gAyARaKS.d.mts → index-BneZFJ7x.d.mts} +0 -0
  299. /package/dist/{index-D8ELwT5y.d.mts → index-BujgCaKt.d.mts} +0 -0
  300. /package/dist/{index-DfU8s_xP.d.mts → index-C2StVLk4.d.mts} +0 -0
  301. /package/dist/{index-BGnQ0EyD.d.mts → index-CCTzitBA.d.mts} +0 -0
  302. /package/dist/{index-CVRT01082.d.mts → index-Cj_V1aRL.d.mts} +0 -0
  303. /package/dist/{index-nkix3hP7.d.mts → index-CpN2C9jq.d.mts} +0 -0
  304. /package/dist/{index-D6p17KPs.d.mts → index-CsRPJ9FV.d.mts} +0 -0
  305. /package/dist/{index-BPNfYEA22.d.mts → index-CvdvuhTL2.d.mts} +0 -0
  306. /package/dist/{index-DmX9W3xH2.d.mts → index-D3peNmHN2.d.mts} +0 -0
  307. /package/dist/{index-DiZ4LmyE.d.mts → index-D7smT-YD.d.mts} +0 -0
  308. /package/dist/{index-B78CRVi9.d.mts → index-DEx4ZFkz.d.mts} +0 -0
  309. /package/dist/{index-CjDQn6lw.d.mts → index-DGoJayJg.d.mts} +0 -0
  310. /package/dist/{index-F7cVpFJ9.d.mts → index-DTvYp2GT.d.mts} +0 -0
  311. /package/dist/{index-Htfr-K5U2.d.mts → index-DqliLe_D2.d.mts} +0 -0
  312. /package/dist/{index-BCU5oByg.d.mts → index-DubyRZD9.d.mts} +0 -0
  313. /package/dist/{index-DjSUOMlr.d.mts → index-DwOpaQAE.d.mts} +0 -0
  314. /package/dist/{index-BZoOYV-y.d.mts → index-DxkSkszz.d.mts} +0 -0
  315. /package/dist/{index-tbjIqwa3.d.mts → index-TBJ1kIGA.d.mts} +0 -0
  316. /package/dist/{index-DXQTkwLB.d.mts → index-YOXWpZAS.d.mts} +0 -0
  317. /package/dist/{index-CXpgL3gz2.d.mts → index-aIJ7A4DC2.d.mts} +0 -0
  318. /package/dist/{index-D6liU_KS.d.mts → index-fxh7TB0q.d.mts} +0 -0
  319. /package/dist/{index-xsaaa85T.d.mts → index-qczb9Yx3.d.mts} +0 -0
  320. /package/dist/{index-C_kOkO3E.d.mts → index-zqo2mX_Z.d.mts} +0 -0
  321. /package/dist/{json-value-Ymw2f8i_.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
  322. /package/dist/{jsonl-transport-Bg033Ng0.mjs → jsonl-transport-Ct1RWs0h.mjs} +0 -0
  323. /package/dist/{lib-BizqbepU.mjs → lib-DomKag_k.mjs} +0 -0
  324. /package/dist/{namespace-rJ3ycPMg.d.mts → namespace-Bhx72V7S.d.mts} +0 -0
  325. /package/dist/{namespace-BCVKdu-U.d.mts → namespace-CxEQv9iZ.d.mts} +0 -0
  326. /package/dist/{namespace-COHHDh2I.d.mts → namespace-D09uQ231.d.mts} +0 -0
  327. /package/dist/{namespace-UFcDEBJB.d.mts → namespace-D5DkpaaN.d.mts} +0 -0
  328. /package/dist/{namespace-CvK86QFk.d.mts → namespace-DHLwz4o3.d.mts} +0 -0
  329. /package/dist/{namespace-B5IFLQc-.d.mts → namespace-DHbrNQYD.d.mts} +0 -0
  330. /package/dist/{namespace-s0e215xO.d.mts → namespace-DyD06b5-.d.mts} +0 -0
  331. /package/dist/{namespace-C1pPZKtI.d.mts → namespace-Dz5_Hrz7.d.mts} +0 -0
  332. /package/dist/{namespace-Phxf0Lep.d.mts → namespace-Lkv2nyzb.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-Cq1d5tid.d.mts → schemas-CD3Mq-jC.d.mts} +0 -0
  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/{schemas-2_D4iVbb.d.mts → schemas-DEg6R9ph.d.mts} +0 -0
  350. /package/dist/{schemas-JjyFxrC0.d.mts → schemas-rMUsvzeJ.d.mts} +0 -0
  351. /package/dist/{server-lifecycle-DUKp1Fbf.d.mts → server-lifecycle-CTJvpdeL.d.mts} +0 -0
  352. /package/dist/{session-lineage-C3myyt5x.d.mts → session-lineage-BuGN3RZs.d.mts} +0 -0
  353. /package/dist/{storage-namespace-IvLOIP7j.d.mts → storage-namespace-B5r_ScUz.d.mts} +0 -0
  354. /package/dist/{storage-namespace-definition-Cv0XiTXb.d.mts → storage-namespace-definition-DiYr8UNl.d.mts} +0 -0
  355. /package/dist/{types-hkExapGH.d.mts → types-BSx8YYlc.d.mts} +0 -0
  356. /package/dist/{types-BYEybzjX.d.mts → types-CpEoQapk.d.mts} +0 -0
  357. /package/dist/{types-QRSc2AUU.d.mts → types-Cuhnt15L.d.mts} +0 -0
  358. /package/dist/{types-QsyX4H21.d.mts → types-DEGuc-fn.d.mts} +0 -0
  359. /package/dist/{types-BRM1AZaP.d.mts → types-DciLiPMd.d.mts} +0 -0
  360. /package/dist/{types-CsmvIK25.mjs → types-wwuw7RkB.mjs} +0 -0
  361. /package/dist/{window-registry-DeG37kt8.d.mts → window-registry-C3W2wtlX.d.mts} +0 -0
@@ -1,3 +1,3 @@
1
- import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../../types-hkExapGH.mjs";
2
- import { t as PiscinaCodeExecutionProvider } from "../../index-DQKVQPUS.mjs";
1
+ import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../../types-BSx8YYlc.mjs";
2
+ import { t as PiscinaCodeExecutionProvider } from "../../index-L6mssyeZ.mjs";
3
3
  export { CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, PiscinaCodeExecutionProvider, PiscinaCodeExecutionProviderOptions };
@@ -1 +1 @@
1
- import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../types-CsmvIK25.mjs";import{t as c}from"../../code-execution-pUF4IO462.mjs";export{s as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS,r as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES,a as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY,n as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER,e as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES,i as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS,o as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES,t as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES,c as PiscinaCodeExecutionProvider};
1
+ import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"../../types-wwuw7RkB.mjs";import{t as c}from"../../code-execution-DWSux6k1.mjs";export{s as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS,r as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES,a as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY,n as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER,e as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES,i as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS,o as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES,t as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES,c as PiscinaCodeExecutionProvider};
@@ -1,2 +1,2 @@
1
- import { a as FilesystemDescriptorDiscovery, c as enumerateDescriptorPaths, i as ExtensionEntrypointModule, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscoveryOptions, r as ExtensionDiscovery, s as MergedDescriptorDiscovery, t as DiscoveredExtension } from "../extension-discovery-CA2IhDRo.mjs";
2
- export { DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, ExtensionEntrypointModule, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, MergedDescriptorDiscovery, enumerateDescriptorPaths };
1
+ import { a as ExtensionNameCollisionError, c as MergedDescriptorDiscovery, d as discoverExtensionTiers, f as enumerateDescriptorPaths, i as ExtensionEntrypointModule, l as deduplicateByDescriptorName, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscovery, r as ExtensionDiscovery, s as FilesystemDescriptorDiscoveryOptions, t as DiscoveredExtension, u as describeSameTierNameCollision } from "../extension-discovery-Rup-gANp.mjs";
2
+ export { DiscoveredExtension, ExplicitDescriptorDiscovery, ExtensionDiscovery, ExtensionEntrypointModule, ExtensionNameCollisionError, FilesystemDescriptorDiscovery, FilesystemDescriptorDiscoveryOptions, MergedDescriptorDiscovery, deduplicateByDescriptorName, describeSameTierNameCollision, discoverExtensionTiers, enumerateDescriptorPaths };
@@ -1 +1 @@
1
- import*as e from"node:fs/promises";import*as t from"node:path";import{glob as n}from"glob";import{parseExtensionDescriptor as r}from"@makaio/framework/contracts";const i=`descriptor.json`,a=[`**/node_modules/**`,`**/dist/**`,`**/.git/**`];async function o(r){let o=await e.stat(r).catch(()=>void 0);if(o===void 0)return[];if(o.isFile())return t.basename(r)===i?[r]:[];if(!o.isDirectory())return[];let s=t.join(r,i);if(await d(s))return[s];let c=t.basename(r)===`node_modules`,l=c?[`*/descriptor.json`,`@*/*/descriptor.json`]:[`**/${i}`];return(await Promise.all(l.map(e=>n(e,{absolute:!0,cwd:r,...c?{}:{ignore:[...a]},windowsPathsNoEscape:!0})))).flat()}var s=class{localNodeModulesDir;extensionsDir;nodeModulesDir;constructor(e,n){this.localNodeModulesDir=n?.localNodeModulesDir??t.join(e??process.cwd(),`node_modules`),this.extensionsDir=n?.extensionsDir??!1,this.nodeModulesDir=n?.nodeModulesDir??!1}async discover(){let[e,t,n]=await Promise.all([this.scanLocal(),this.scanInstalled(),this.scanGlobalNpm()]);return this.deduplicate(e,t,n)}async scanLocal(){if(this.localNodeModulesDir===!1)return[];let e=[t.join(this.localNodeModulesDir,`*/descriptor.json`),t.join(this.localNodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`local`)}async scanInstalled(){if(this.extensionsDir===!1)return[];let e=[t.join(this.extensionsDir,`*/descriptor.json`),t.join(this.extensionsDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`installed`)}async scanGlobalNpm(){if(this.nodeModulesDir===!1)return[];let e=[t.join(this.nodeModulesDir,`*/descriptor.json`),t.join(this.nodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`global-npm`)}async scanPatterns(i,a){let o=[];for(let s of i){let i=s.split(t.sep).join(`/`),c;try{c=await n(i,{nodir:!0,windowsPathsNoEscape:!0})}catch(e){console.warn(`[extensions] Skipping scan for pattern ${i}:`,e instanceof Error?e.message:e);continue}for(let n of c)try{let i=await e.readFile(n,`utf-8`),s=r(JSON.parse(i)),c=t.dirname(n);o.push({descriptor:s,extensionPath:c,source:a})}catch(e){console.warn(`[extensions] Skipping invalid descriptor at ${n}:`,e instanceof Error?e.message:e)}}return o}deduplicate(...e){return u(e)}},c=class{extensions;constructor(e){this.extensions=e}async discover(){return this.extensions}},l=class{discoveries;constructor(e){this.discoveries=e}async discover(){return u(await Promise.all(this.discoveries.map(e=>e.discover())))}};function u(e){let t=new Map;for(let n of e)for(let e of n)t.has(e.descriptor.name)||t.set(e.descriptor.name,e);return[...t.values()]}async function d(t){return e.stat(t).then(e=>e.isFile()).catch(()=>!1)}export{c as ExplicitDescriptorDiscovery,s as FilesystemDescriptorDiscovery,l as MergedDescriptorDiscovery,o as enumerateDescriptorPaths};
1
+ import*as e from"node:fs/promises";import*as t from"node:path";import{glob as n}from"glob";import{parseExtensionDescriptor as r}from"@makaio/framework/contracts";async function i(e){return e.discoverTiers?e.discoverTiers():[await e.discover()]}const a=`descriptor.json`,o=[`**/node_modules/**`,`**/dist/**`,`**/.git/**`];async function s(r){let i=await e.stat(r).catch(()=>void 0);if(i===void 0)return[];if(i.isFile())return t.basename(r)===a?[r]:[];if(!i.isDirectory())return[];let s=t.join(r,a);if(await h(s))return[s];let c=t.basename(r)===`node_modules`,l=c?[`*/descriptor.json`,`@*/*/descriptor.json`]:[`**/${a}`];return(await Promise.all(l.map(e=>n(e,{absolute:!0,cwd:r,...c?{}:{follow:!0,ignore:[...o]},windowsPathsNoEscape:!0})))).flat()}var c=class{localNodeModulesDir;extensionsDir;nodeModulesDir;constructor(e,n){this.localNodeModulesDir=n?.localNodeModulesDir??t.join(e??process.cwd(),`node_modules`),this.extensionsDir=n?.extensionsDir??!1,this.nodeModulesDir=n?.nodeModulesDir??!1}async discover(){return p(await this.discoverTiers())}async discoverTiers(){return Promise.all([this.scanLocal(),this.scanInstalled(),this.scanGlobalNpm()])}async scanLocal(){if(this.localNodeModulesDir===!1)return[];let e=[t.join(this.localNodeModulesDir,`*/descriptor.json`),t.join(this.localNodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`local`)}async scanInstalled(){if(this.extensionsDir===!1)return[];let e=[t.join(this.extensionsDir,`*/descriptor.json`),t.join(this.extensionsDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`installed`)}async scanGlobalNpm(){if(this.nodeModulesDir===!1)return[];let e=[t.join(this.nodeModulesDir,`*/descriptor.json`),t.join(this.nodeModulesDir,`@*/*/descriptor.json`)];return this.scanPatterns(e,`global-npm`)}async scanPatterns(i,a){let o=[];for(let s of i){let i=s.split(t.sep).join(`/`),c;try{c=await n(i,{nodir:!0,windowsPathsNoEscape:!0})}catch(e){console.warn(`[extensions] Skipping scan for pattern ${i}:`,e instanceof Error?e.message:e);continue}for(let n of c)try{let i=await e.readFile(n,`utf-8`),s=r(JSON.parse(i)),c=t.dirname(n);o.push({descriptor:s,extensionPath:c,source:a})}catch(e){console.warn(`[extensions] Skipping invalid descriptor at ${n}:`,e instanceof Error?e.message:e)}}return o}},l=class{extensions;constructor(e){this.extensions=e}async discover(){return this.extensions}async discoverTiers(){return[[...this.extensions]]}},u=class extends Error{descriptorName;constructor(e,t,n){super(d(e,t,n)),this.descriptorName=e,this.name=`ExtensionNameCollisionError`}};function d(e,t,n){return`Extension name collision: "${e}" is declared by two packages in the same discovery tier (${m(t)} and ${m(n)}). A descriptor name is an extension identity and cannot be shared, and packages within one tier have no precedence over each other. Remove or rename one of them.`}var f=class{discoveries;constructor(e){this.discoveries=e}async discover(){return p(await this.discoverTiers())}async discoverTiers(){return(await Promise.all(this.discoveries.map(e=>i(e)))).flat()}};function p(e){let t=new Map;for(let n of e){let e=new Map;for(let r of n){let n=r.descriptor.name,i=e.get(n);if(i!==void 0)throw new u(n,i,r);e.set(n,r);let a=t.get(n);if(a!==void 0){console.warn(`[extensions] Extension "${n}" is installed more than once: ${m(a)} takes precedence over ${m(r)}, which is shadowed and will not be loaded.`);continue}t.set(n,r)}}return[...t.values()]}function m(e){return`${e.source} at ${e.extensionPath}`}async function h(t){return e.stat(t).then(e=>e.isFile()).catch(()=>!1)}export{l as ExplicitDescriptorDiscovery,u as ExtensionNameCollisionError,c as FilesystemDescriptorDiscovery,f as MergedDescriptorDiscovery,p as deduplicateByDescriptorName,d as describeSameTierNameCollision,i as discoverExtensionTiers,s as enumerateDescriptorPaths};
@@ -1,2 +1,2 @@
1
- import { a as isMakaioExtensionLike, c as resolveConventionEntrypoint, i as isCliContributionLike, o as isWithinDirectory, r as entrypointStem } from "../load-extensions-DGstT4_p.mjs";
1
+ import { a as isWithinDirectory, c as resolveConventionEntrypoint, i as isMakaioExtensionLike, n as entrypointStem, r as isCliContributionLike } from "../load-extensions-Be_lOjm_.mjs";
2
2
  export { entrypointStem, isCliContributionLike, isMakaioExtensionLike, isWithinDirectory, resolveConventionEntrypoint };
@@ -1 +1 @@
1
- import{i as e,l as t,o as n,r,s as i}from"../load-extensions-BVgxTj_y.mjs";export{r as entrypointStem,e as isCliContributionLike,n as isMakaioExtensionLike,i as isWithinDirectory,t as resolveConventionEntrypoint};
1
+ import{i as e,o as t,r as n,s as r,u as i}from"../load-extensions-BGfSWW_R.mjs";export{n as entrypointStem,e as isCliContributionLike,t as isMakaioExtensionLike,r as isWithinDirectory,i as resolveConventionEntrypoint};
@@ -1,27 +1,28 @@
1
+ import { filterConfigDefaultsForLoadedPackages, mergePackageConfigDefaults } from "./boot-config.mjs";
1
2
  import { RuntimeSubjects } from "./bus/runtime/namespace.mjs";
2
3
  import { NodeClientBinaryStrategyDependencyOptions, createNodeClientBinaryStrategyDependencies } from "./client-binary-strategy-dependencies.mjs";
3
- import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../types-hkExapGH.mjs";
4
- import { t as PiscinaCodeExecutionProvider } from "../index-DQKVQPUS.mjs";
5
- import { a as FilesystemDescriptorDiscovery, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscoveryOptions, r as ExtensionDiscovery, s as MergedDescriptorDiscovery, t as DiscoveredExtension } from "../extension-discovery-CA2IhDRo.mjs";
6
- import { a as isMakaioExtensionLike, c as resolveConventionEntrypoint, i as isCliContributionLike, n as LoadExtensionsOptions, o as isWithinDirectory, r as entrypointStem, s as loadExtensions, t as DescriptorSourcePackageGroup } from "../load-extensions-DGstT4_p.mjs";
7
- import { $ as CreateIsolatedWorkflowRuntimeOptions, A as createLocalGitWorkspacePreparation, An as PrepareAdapterRuntimeInput, B as HeadlessWorkerMaterializer, Bt as BootMakaioRuntimeOptions, C as admitWorkflowRunOperation, Cn as HttpContributionPhase, Dn as createHonoRouteGraph, E as registerWorkerRuntime, En as HonoRouteGraphOptions, F as HeadlessWorkerBootstrap, Ft as IWorkflowRunner, G as runHeadlessWorkflowWorker, Gt as UpstreamTelemetryBootOptions, H as HeadlessWorkflowWorkerDeps, Ht as MakaioRuntime, I as HeadlessWorkerBootstrapCredentials, J as WorkloadControlBinding, K as InstalledWorkloadAdapter, Kt as WorkflowRunnerBootOptions, L as HeadlessWorkerBusConnector, Lt as ThinWorkflowPiscinaRunnerOptions, M as HeadlessWorkerDeps, Mn as activateAdapterRuntimeIdentity, N as HeadlessWorkerResult, Nn as prepareAdapterRuntime, On as ActivateAdapterRuntimeIdentityInput, P as runHeadlessWorker, Pt as ThinWorkflowPiscinaRunner, Q as SetupProcessGroupObservation, R as HeadlessWorkerContributionLoader, Rt as WorkflowRunResult, S as RuntimeRegistrationRefusedError, Sn as createHttpRouteGraphBuilder, T as registerAndAdmitWorkflowRun, Tn as HonoRouteGraph, U as HeadlessWorkflowWorkerResult, Ut as ServerTransportProvider, V as HeadlessWorkerPostCommitObserver, Vt as CoreBootOptions, Wt as TransportReadyInfo, X as WorkloadInvocationResult, Y as WorkloadInvocationPreparation, Z as runWorkloadInvocation, _ as OperationDeliveryEndpointIdentity, _n as FrameworkModuleResolver, a as InstalledAttemptControlEndpoint, an as WorkflowWorkerEntryMode, at as InProcessWorkflowRunner, b as RegisterAndAdmitWorkflowRunOptions, bn as resolveFrameworkSpecifier, bt as submitAttemptOutcomeWithAck, c as BootstrapStartRefusedError, cn as DatabaseBootOptions, d as bootstrapWorkerRuntime, dn as initializeNodeDatabase, et as IsolatedWorkflowRuntime, f as AdmitWorkflowRunOperationOptions, fn as HostCapabilityDeclaration, ft as AttemptOutcomeDeliveryError, g as OperationDeliveryEndpoint, gn as BridgeBrowserOptions, gt as OutcomeDeliveryError, h as OperationAdmissionRefusedError, hn as ShutdownStep, i as AttemptControlReportOptions, it as createIsolatedWorkflowRuntime, j as LocalGitSourceOptions, jn as PreparedAdapterRuntime, kn as ActivatedAdapterRuntimeIdentity, l as BootstrapWorkerRuntimeOptions, ln as InitializeNodeDatabaseOptions, m as DeliverableOperationKind, mn as selectFrameworkCorePackages, mt as AuthorityRequestDeliveryError, n as AttemptControlEndpointIdentity, nt as WorkflowRuntimeAuthorityConnector, o as installAttemptControlEndpoint, on as WorkflowWorkerEntryResolverOptions, ot as InProcessWorkflowRunnerOptions, p as AdmittedWorkflowRun, pn as normalizeNodeHostCapabilities, q as RunWorkloadInvocationOptions, r as AttemptControlLastReport, rt as WorkflowRuntimeContributionLoader, s as BootstrapRuntimeConnection, sn as resolveWorkflowWorkerEntry, t as AttemptControlEndpointDeps, tt as IsolatedWorkflowRuntimeContext, u as StartedWorkerRuntime, un as InitializeNodeDatabaseResult, v as OperationDeliveryHandler, vn as NodeFrameworkModuleResolver, w as installOperationDeliveryEndpoint, wn as HttpRouteContribution, x as RegisterWorkerRuntimeOptions, xn as HttpRouteGraphBuilder, y as OperationDeliveryHandlers, yn as NoopFrameworkModuleResolver, z as HeadlessWorkerExecutor, zt as BootCoordinatorSetupContext } from "../index-HJkz7i4E.mjs";
4
+ import { a as CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, c as CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, d as PiscinaCodeExecutionProviderOptions, i as CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, n as CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, o as CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, r as CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, s as CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, t as CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS } from "../types-BSx8YYlc.mjs";
5
+ import { t as PiscinaCodeExecutionProvider } from "../index-L6mssyeZ.mjs";
6
+ import { a as ExtensionNameCollisionError, c as MergedDescriptorDiscovery, n as ExplicitDescriptorDiscovery, o as FilesystemDescriptorDiscovery, r as ExtensionDiscovery, s as FilesystemDescriptorDiscoveryOptions, t as DiscoveredExtension } from "../extension-discovery-Rup-gANp.mjs";
7
+ import { a as isWithinDirectory, c as resolveConventionEntrypoint, i as isMakaioExtensionLike, n as entrypointStem, o as loadExtensions, r as isCliContributionLike, s as normalizePackageExport, t as LoadExtensionsOptions } from "../load-extensions-Be_lOjm_.mjs";
8
+ import { $ as CreateIsolatedWorkflowRuntimeOptions, A as createLocalGitWorkspacePreparation, An as HttpRouteGraphBuilder, B as HeadlessWorkerMaterializer, Bn as PreparedAdapterRuntime, Bt as BootMakaioRuntimeOptions, C as admitWorkflowRunOperation, Cn as selectFrameworkCorePackages, Dn as NodeFrameworkModuleResolver, E as registerWorkerRuntime, En as FrameworkModuleResolver, F as HeadlessWorkerBootstrap, Fn as HonoRouteGraphOptions, Ft as IWorkflowRunner, G as runHeadlessWorkflowWorker, Gt as UpstreamTelemetryBootOptions, H as HeadlessWorkflowWorkerDeps, Hn as prepareAdapterRuntime, Ht as MakaioRuntime, I as HeadlessWorkerBootstrapCredentials, In as createHonoRouteGraph, J as WorkloadControlBinding, K as InstalledWorkloadAdapter, Kt as WorkflowRunnerBootOptions, L as HeadlessWorkerBusConnector, Ln as ActivateAdapterRuntimeIdentityInput, Lt as ThinWorkflowPiscinaRunnerOptions, M as HeadlessWorkerDeps, Mn as HttpContributionPhase, N as HeadlessWorkerResult, Nn as HttpRouteContribution, On as NoopFrameworkModuleResolver, P as runHeadlessWorker, Pn as HonoRouteGraph, Pt as ThinWorkflowPiscinaRunner, Q as SetupProcessGroupObservation, R as HeadlessWorkerContributionLoader, Rn as ActivatedAdapterRuntimeIdentity, Rt as WorkflowRunResult, S as RuntimeRegistrationRefusedError, Sn as normalizeNodeHostCapabilities, T as registerAndAdmitWorkflowRun, Tn as BridgeBrowserOptions, U as HeadlessWorkflowWorkerResult, Ut as ServerTransportProvider, V as HeadlessWorkerPostCommitObserver, Vn as activateAdapterRuntimeIdentity, Vt as CoreBootOptions, Wt as TransportReadyInfo, X as WorkloadInvocationResult, Y as WorkloadInvocationPreparation, Z as runWorkloadInvocation, _ as OperationDeliveryEndpointIdentity, _n as DatabaseBootOptions, a as InstalledAttemptControlEndpoint, an as WorkflowWorkerEntryMode, at as InProcessWorkflowRunner, b as RegisterAndAdmitWorkflowRunOptions, bn as initializeNodeDatabase, bt as submitAttemptOutcomeWithAck, c as BootstrapStartRefusedError, cn as ExtensionOperatorConfigConsumer, d as bootstrapWorkerRuntime, dn as MAX_OPERATOR_CONFIG_BYTES, et as IsolatedWorkflowRuntime, f as AdmitWorkflowRunOperationOptions, fn as createExtensionOperatorConfigSnapshot, ft as AttemptOutcomeDeliveryError, g as OperationDeliveryEndpoint, gn as warnOnUnappliedExtensionOperatorConfig, gt as OutcomeDeliveryError, h as OperationAdmissionRefusedError, hn as warnOnUnaddressableExtensionOperatorConfigNames, i as AttemptControlReportOptions, it as createIsolatedWorkflowRuntime, j as LocalGitSourceOptions, jn as createHttpRouteGraphBuilder, kn as resolveFrameworkSpecifier, l as BootstrapWorkerRuntimeOptions, ln as ExtensionOperatorConfigSnapshot, m as DeliverableOperationKind, mn as resolveExtensionOperatorConfigDir, mt as AuthorityRequestDeliveryError, n as AttemptControlEndpointIdentity, nt as WorkflowRuntimeAuthorityConnector, o as installAttemptControlEndpoint, on as WorkflowWorkerEntryResolverOptions, ot as InProcessWorkflowRunnerOptions, p as AdmittedWorkflowRun, pn as loadExtensionOperatorConfig, q as RunWorkloadInvocationOptions, r as AttemptControlLastReport, rt as WorkflowRuntimeContributionLoader, s as BootstrapRuntimeConnection, sn as resolveWorkflowWorkerEntry, t as AttemptControlEndpointDeps, tt as IsolatedWorkflowRuntimeContext, u as StartedWorkerRuntime, un as LoadExtensionOperatorConfigOptions, v as OperationDeliveryHandler, vn as InitializeNodeDatabaseOptions, w as installOperationDeliveryEndpoint, wn as ShutdownStep, x as RegisterWorkerRuntimeOptions, xn as HostCapabilityDeclaration, y as OperationDeliveryHandlers, yn as InitializeNodeDatabaseResult, z as HeadlessWorkerExecutor, zn as PrepareAdapterRuntimeInput, zt as BootCoordinatorSetupContext } from "../index-DdJKsdya.mjs";
8
9
  import { ConfiguredRuntimeOptions, LoadMakaioConfigOptions, LoadedMakaioConfig, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MakaioConfig, ParseMakaioConfigOptions, ParsedMakaioConfig, WorkflowRunnerConfig, buildConfiguredRuntimeOptions, createMakaioConfigDiscovery, defineMakaioConfig, loadMakaioConfig, parseMakaioConfig, resolveMakaioConfigPath, resolveMakaioHome, shouldIncludeExtension } from "./makaio-config.mjs";
9
10
  import { RotateWorkflowExecutionBusSecretParams, captureWorkflowExecutionBusSecretCleanup } from "./workflow-execution-bus-access.mjs";
10
11
  import { z } from "zod";
11
12
  import { IConfigStorage } from "@makaio/framework/core";
12
- import { Config, EntityUIConfig, ProtocolId } from "@makaio/framework/contracts";
13
+ import { Config, EntityUIConfig, ExtensionConfigProvider, ExtensionDescriptor, ExtensionOperatorConfigEntry, MakaioNodeExtension, ProtocolId } from "@makaio/framework/contracts";
13
14
  import { BusTransport, IMakaioBus } from "@makaio/framework/bus";
14
15
  import { DispatchingAuth } from "@makaio/framework/node/transports";
15
- import { KernelMakaioExtension, TransportProvider } from "@makaio/framework/kernel";
16
+ import { CredentialResolver } from "@makaio/framework/contracts/extension";
17
+ import { ExtensionConfigResolution, InstalledExtensionCatalogSource, InstalledExtensionRecord, KernelMakaioExtension, TransportProvider } from "@makaio/framework/kernel";
18
+ import { BaseService } from "@makaio/framework/service-base";
16
19
  import { MakaioDatabase, StorageDialect as StorageDialect$1 } from "@makaio/framework/storage/drizzle";
17
20
  import { CredentialRef } from "@makaio/framework/contracts/config";
18
21
  import { IModelRegistryCache, ModelRegistry } from "@makaio/framework/services/model-registry";
19
22
  import { AdapterInstance, LoadedAdapter } from "@makaio/framework/adapter-subsystem";
20
23
  import { MachineKeyStatus, MachineKeyValidation, PersistedMachineIdentity, loadOrCreateMachineIdentity, machineKeysExist, validateMachineKeys } from "@makaio/framework/node/machine-identity";
21
24
  import { TransportAuth as TransportAuth$1 } from "@makaio/framework/node/bus-server";
22
- import { ConfigProvider } from "@makaio/framework/providers";
23
25
  import { Server } from "node:http";
24
-
25
26
  //#region runtimes/node/src/register-adapter-name-resolver.d.ts
26
27
  /**
27
28
  * Register middleware to resolve `adapterName` to `adapterId` for `getCapabilities` requests.
@@ -49,12 +50,23 @@ declare function runRuntimeHandlerCleanups(cleanups: Array<() => void>): void;
49
50
  * @param getLoadedAdapters - Getter for current loaded adapter definitions.
50
51
  * @param getAdapterInstances - Getter for current adapter instances.
51
52
  * @param getExtension - Coordinator lookup for extension config schemas.
53
+ * @param getExtensionOperatorConfig - Accessor for the operator config entry for a
54
+ * given extension. It supplies the set of operator-owned keys; their values
55
+ * come from `getResolvedExtensionConfig`. Extensions without a `configSchema`
56
+ * never receive provenance (kernel drops the operator layer in that case).
57
+ * @param getResolvedExtensionConfig - Accessor returning the extension's config
58
+ * resolution, independent of its lifecycle state. Its config is what the
59
+ * config schema response reports for operator-owned keys, so every schema
60
+ * transform (e.g. `.trim()`) is reflected. When it is omitted, yields no
61
+ * record, or reports that resolution fell back to schema defaults,
62
+ * `operatorConfig` still reports the owned keys but carries no `values`
63
+ * rather than values the extension never received.
52
64
  * @returns Cleanup function that unregisters all runtime handlers.
53
65
  */
54
66
  declare function registerRuntimeHandlers(bus: IMakaioBus, getLoadedAdapters: () => readonly LoadedAdapter[], getAdapterInstances: () => ReadonlyMap<string, AdapterInstance>, getExtension?: (name: string) => {
55
67
  configSchema?: z.ZodType;
56
68
  uiConfig?: EntityUIConfig;
57
- } | undefined): () => void;
69
+ } | undefined, getExtensionOperatorConfig?: (extensionName: string) => ExtensionOperatorConfigEntry | undefined, getResolvedExtensionConfig?: (name: string) => ExtensionConfigResolution | undefined): () => void;
58
70
  //#endregion
59
71
  //#region runtimes/node/src/db-migrations.d.ts
60
72
  /** Options for applying framework central migrations. */
@@ -193,6 +205,127 @@ declare function bootMakaioRuntimeCore(transport: ServerTransportProvider, bound
193
205
  */
194
206
  declare function bootMakaioRuntime(options: BootMakaioRuntimeOptions): Promise<MakaioRuntime>;
195
207
  //#endregion
208
+ //#region runtimes/node/src/extension-enablement-store.d.ts
209
+ /**
210
+ * Largest enablement file the loader will read into memory.
211
+ *
212
+ * The file holds extension names — strings that are at most a few dozen bytes
213
+ * each. A megabyte gives room for thousands of names before the guard fires,
214
+ * which is far beyond any realistic extension registry. The bound exists
215
+ * because the loader runs on the boot path and reads whatever is in the
216
+ * location; a stray large file must not block startup.
217
+ */
218
+ declare const MAX_ENABLEMENT_FILE_BYTES: number;
219
+ /**
220
+ * Wire shape of the enablement JSON file.
221
+ *
222
+ * The file stores only disabled names. Absent name → enabled (default).
223
+ * `true` entries are never written: the file is self-cleaning.
224
+ */
225
+ interface ExtensionEnablementFileData {
226
+ /** Names of extensions that have been explicitly disabled. */
227
+ readonly disabled: readonly string[];
228
+ }
229
+ /**
230
+ * Typed result surface for a failed enablement file read.
231
+ *
232
+ * Recorded as metadata so the caller can log or surface it without coupling
233
+ * to the error shape the reader uses internally.
234
+ */
235
+ type ExtensionEnablementReadFailureReason = 'too-large' | 'not-json' | 'not-object' | 'invalid-disabled-field' | 'unreadable';
236
+ /** Failure detail returned when the file exists but cannot be used. */
237
+ interface ExtensionEnablementReadFailure {
238
+ readonly reason: ExtensionEnablementReadFailureReason;
239
+ readonly diagnostic: string;
240
+ }
241
+ /**
242
+ * Read-write store for persisted extension enablement.
243
+ *
244
+ * Extends the read-only subset of {@link ExtensionConfigProvider} so the
245
+ * runtime can pass the same object where only `loadEnabled` is needed, and
246
+ * so the coordinator can call `persistEnabled` directly.
247
+ */
248
+ interface ExtensionEnablementStore extends Required<Pick<ExtensionConfigProvider, 'loadEnabled' | 'persistEnabled'>> {
249
+ /**
250
+ * Load failure recorded during initialization, if any.
251
+ *
252
+ * `undefined` when the file was absent (treated as all-enabled) or parsed
253
+ * successfully. Present when the file existed but could not be used, so the
254
+ * caller can log the diagnostic before forwarding the store.
255
+ */
256
+ readonly readFailure: ExtensionEnablementReadFailure | undefined;
257
+ }
258
+ /**
259
+ * Minimal package view required by {@link isExtensionEnabled} to apply the
260
+ * critical-override rule.
261
+ */
262
+ interface ExtensionCriticalView {
263
+ /** When `true`, the extension must start even when the store marks it disabled. */
264
+ readonly critical?: boolean;
265
+ }
266
+ /**
267
+ * Check whether a named extension is effectively enabled.
268
+ *
269
+ * Centralises the `loadEnabled(name) !== false` pattern used at every
270
+ * enablement-gate site so callers do not repeat the three-valued logic
271
+ * (`true` = enabled, `false` = disabled, `undefined` = enabled by default).
272
+ *
273
+ * The critical override is part of the answer, not an optional refinement: a
274
+ * `critical: true` extension is treated as enabled regardless of what the
275
+ * store says, mirroring the coordinator's `load()` logic exactly. `pkg` is
276
+ * therefore required — a caller that cannot supply it is asking a different
277
+ * question and would silently drop the override. This ensures that every gate
278
+ * (clients, runtimeBoot, scheduler policy, the CLI listing) honours the same
279
+ * invariant as the coordinator: a critical extension that the operator
280
+ * hand-disabled still contributes to the running runtime.
281
+ * @param store - Enablement store (or any object with an optional `loadEnabled`).
282
+ * @param name - Extension package name to check.
283
+ * @param pkg - Package view carrying the `critical` flag; `critical: true` overrides a disabled store entry.
284
+ * @returns `true` when the extension is enabled, has no persisted preference, or is critical.
285
+ */
286
+ declare function isExtensionEnabled(store: {
287
+ readonly loadEnabled?: (name: string) => boolean | undefined;
288
+ }, name: string, pkg: ExtensionCriticalView): boolean;
289
+ /**
290
+ * Check whether the store records an explicit disable for a name.
291
+ *
292
+ * This is the raw persisted preference, deliberately without the critical
293
+ * override that {@link isExtensionEnabled} applies: it answers "did someone
294
+ * turn this off in the enablement file?", not "will it run?". Use it only
295
+ * where the persisted preference itself is the subject — for example when
296
+ * reporting back whether a requested preference survived a rejected live
297
+ * toggle. Every runtime gate must use {@link isExtensionEnabled} instead.
298
+ * @param store - Enablement store (or any object with an optional `loadEnabled`).
299
+ * @param name - Extension package name to check.
300
+ * @returns `true` when the store explicitly disables the name.
301
+ */
302
+ declare function isExtensionDisabledInStore(store: {
303
+ readonly loadEnabled?: (name: string) => boolean | undefined;
304
+ }, name: string): boolean;
305
+ /**
306
+ * Resolve the absolute path of the enablement file for a given Makaio home.
307
+ * @param makaioHome - Absolute Makaio data-home path.
308
+ * @returns Absolute path to the enablement file. The file may not exist yet.
309
+ */
310
+ declare function resolveExtensionEnablementFile(makaioHome: string): string;
311
+ /**
312
+ * Load an {@link ExtensionEnablementStore} backed by the file at
313
+ * `<makaioHome>/config/extensions.json`.
314
+ *
315
+ * A missing file is silently treated as all-extensions-enabled. A file that
316
+ * exists but cannot be used (too large, invalid JSON, wrong shape) records a
317
+ * failure on the returned store and defaults to all-extensions-enabled, so a
318
+ * corrupt file never bricks the runtime. The failure is exposed so the
319
+ * composition root can emit a warning.
320
+ *
321
+ * The store's `persistEnabled` is always safe to call regardless of whether
322
+ * the file existed at load time. It creates the config directory on first
323
+ * write.
324
+ * @param makaioHome - Absolute Makaio data-home path.
325
+ * @returns Resolved enablement store, ready for use as a coordinator callback.
326
+ */
327
+ declare function loadExtensionEnablementStore(makaioHome: string): Promise<ExtensionEnablementStore>;
328
+ //#endregion
196
329
  //#region runtimes/node/src/upstream-telemetry.d.ts
197
330
  /**
198
331
  * Returned by {@link attachUpstreamTelemetry} after the projected transport is connected
@@ -453,18 +586,13 @@ declare class BusServerTransportProvider implements TransportProvider {
453
586
  //#endregion
454
587
  //#region runtimes/node/src/credential-provider.d.ts
455
588
  /**
456
- * Credential provider interface for resolving credential references.
589
+ * Credential provider for resolving credential references.
457
590
  *
458
- * Implementations are platform-specific (e.g. Node.js keychain, stored refs).
591
+ * Alias of {@link CredentialResolver} from `@makaio/contracts/extension` — the
592
+ * contracts interface is the authoritative shape; this alias keeps existing
593
+ * consumers that import from the runtime package working without duplication.
459
594
  */
460
- interface CredentialProvider {
461
- /**
462
- * Resolve a credential reference to its runtime value.
463
- * @param ref - Credential reference string
464
- * @returns Resolved value, or null if unavailable
465
- */
466
- resolve(ref: CredentialRef): Promise<string | null>;
467
- }
595
+ type CredentialProvider = CredentialResolver;
468
596
  /**
469
597
  * Node.js credential provider.
470
598
  *
@@ -473,6 +601,10 @@ interface CredentialProvider {
473
601
  declare class NodeCredentialProvider implements CredentialProvider {
474
602
  /**
475
603
  * Resolve a credential reference to its plaintext value.
604
+ *
605
+ * Returns null (never throws) for `stored:` refs — those require a
606
+ * credential service handler registered on the bus. Returns null (never
607
+ * throws) for `file:` refs that are missing or unreadable.
476
608
  * @param ref - Credential reference (`env:`, `file:`, or `keychain:`)
477
609
  * @returns Resolved credential value, or null when unavailable
478
610
  */
@@ -488,7 +620,14 @@ declare class NodeCredentialProvider implements CredentialProvider {
488
620
  declare class StoredCredentialProvider implements CredentialProvider {
489
621
  private readonly bus;
490
622
  private readonly fallbackProvider;
491
- /** Lazily-opened channel to the credentials endpoint. */
623
+ /**
624
+ * Lazily-opened channel to the credentials endpoint.
625
+ *
626
+ * Only set when a channel is successfully open. Cleared when the service is
627
+ * absent (null return), on open failures, and on `ChannelClosedError` so
628
+ * every subsequent call re-checks the bus via `requestOptional`.
629
+ * Call {@link close} during host shutdown to release the channel explicitly.
630
+ */
492
631
  private channelPromise?;
493
632
  /**
494
633
  * Create a new stored credential provider.
@@ -505,18 +644,30 @@ declare class StoredCredentialProvider implements CredentialProvider {
505
644
  * @returns Resolved credential value, or null when unavailable
506
645
  */
507
646
  resolve(ref: CredentialRef): Promise<string | null>;
647
+ /**
648
+ * Close and discard the cached channel. Safe to call multiple times (idempotent).
649
+ *
650
+ * Call during host shutdown before the bus/transport is torn down so the
651
+ * channel is released cleanly rather than abandoned.
652
+ */
653
+ close(): void;
508
654
  /**
509
655
  * Lazily open (and cache) the encrypted channel to the credentials endpoint.
510
656
  *
511
- * The promise is cleared on `ChannelClosedError` (post-open channel closure)
512
- * and also on open failures so the next call always retries rather than
513
- * re-using a permanently-rejected or permanently-closed promise.
514
- * @returns The open DirectChannel
657
+ * Only a successfully opened channel is cached. When the service is absent
658
+ * (`openCredentialChannel` returns `null`), the promise is cleared so the
659
+ * next call re-checks via `requestOptional` — the service may have registered
660
+ * since this call. Open failures are also cleared so the next call retries
661
+ * rather than re-using a permanently-rejected promise.
662
+ * @returns The open DirectChannel, or null when no handler is registered
515
663
  */
516
664
  private getChannel;
517
665
  /**
518
666
  * Open a fresh encrypted channel to the credentials endpoint.
519
- * @returns Newly opened DirectChannel
667
+ *
668
+ * Returns null when no `getChannelToken` handler is registered on the bus
669
+ * (optional service — the credential service is not always present).
670
+ * @returns Newly opened DirectChannel, or null when the service is absent
520
671
  */
521
672
  private openCredentialChannel;
522
673
  }
@@ -633,6 +784,173 @@ declare function buildExtensionBrowserRuntimeEntrypoint(extensionName: string, b
633
784
  */
634
785
  declare function bridgeExtensionBrowserEntries(discovered: ReadonlyArray<DiscoveredExtension>, packages: ReadonlyArray<KernelMakaioExtension>, options?: BridgeBrowserOptions): KernelMakaioExtension[];
635
786
  //#endregion
787
+ //#region services/package-manager/src/exported-package-critical.d.ts
788
+ /**
789
+ * One executable package a server entrypoint exports, as reported by
790
+ * {@link resolveExportedPackages}.
791
+ */
792
+ interface ExportedPackageInfo {
793
+ /** Executable package identity — the descriptor name, or one of its dot-prefixed children. */
794
+ readonly name: string;
795
+ /** Version the exported package declares. */
796
+ readonly version: string;
797
+ /**
798
+ * Whether the exported package declares itself critical.
799
+ *
800
+ * Omitted both when nothing declares the flag and when the declared value
801
+ * failed {@link isValidExportedCriticalFlag}; those two cases are told apart
802
+ * by {@link ExportedPackageListing.invalidCriticalNames}.
803
+ */
804
+ readonly critical?: boolean;
805
+ /**
806
+ * Single runtime surface the exported package restricts itself to, when it
807
+ * declares exactly one. Absent means "loads on every surface" — see
808
+ * {@link toRestrictedSurface}.
809
+ */
810
+ readonly surface?: 'interactive' | 'headless';
811
+ }
812
+ /** Result of {@link resolveExportedPackages}: every accepted package, plus the ones whose `critical` was unusable. */
813
+ interface ExportedPackageListing {
814
+ /** Every package the server entry exports, with any invalid `critical` value stripped. */
815
+ readonly packages: readonly ExportedPackageInfo[];
816
+ /**
817
+ * Names of exported packages whose `critical` field was present but not a
818
+ * `boolean`. Criticality is unresolved for these, not legitimately absent,
819
+ * so a caller that gates a decision on it must refuse rather than read the
820
+ * omitted flag as `false`.
821
+ */
822
+ readonly invalidCriticalNames: ReadonlySet<string>;
823
+ }
824
+ //#endregion
825
+ //#region runtimes/node/src/installed-extension-readers.d.ts
826
+ /** The one installed package a reader is asked to inspect. */
827
+ interface ExportedPackagesTarget {
828
+ /** Absolute, already-resolved import path for the descriptor's server entrypoint. */
829
+ readonly serverImportPath: string;
830
+ /**
831
+ * Descriptor identity the export is anchored against: one exported package
832
+ * must carry it, every other must be dot-prefixed under it. Never the npm
833
+ * dependency identifier.
834
+ */
835
+ readonly descriptorName: string;
836
+ /** Log prefix identifying the caller and extension for warnings. */
837
+ readonly label: string;
838
+ }
839
+ /**
840
+ * Enumerate the executable packages one installed extension exports.
841
+ *
842
+ * Resolves to `undefined` — never to an empty listing — when the export could
843
+ * not be read at all: a missing or unreadable entrypoint, a failed import, or
844
+ * an export that violates the runtime's identity contract. Callers rely on
845
+ * that distinction to tell "this descriptor has no exported package" apart
846
+ * from "this descriptor's package could not be inspected", which decides
847
+ * whether an absent `critical` flag means "not critical" or "unknown". A
848
+ * broken extension must never abort the surrounding scan.
849
+ */
850
+ type ExportedPackagesReader = (target: ExportedPackagesTarget) => Promise<ExportedPackageListing | undefined>;
851
+ /**
852
+ * Build a reader that imports each server entry inside an isolated worker
853
+ * thread, for a long-lived process that must not serve a module-cached answer.
854
+ * @param frameworkDistPath - Absolute path to the assembled `@makaio/framework`
855
+ * dist when this host resolves `@makaio/framework/*` through a module
856
+ * resolver hook. The worker owns a separate loader context, so it mirrors
857
+ * that hook itself; omit it for hosts that resolve those specifiers
858
+ * natively.
859
+ * @returns A reader backed by the isolated import worker.
860
+ */
861
+ declare function createWorkerExportedPackagesReader(frameworkDistPath?: string): ExportedPackagesReader;
862
+ //#endregion
863
+ //#region runtimes/node/src/installed-extension-scan.d.ts
864
+ /** Inputs for one installed-extension scan. */
865
+ interface InstalledExtensionScanOptions {
866
+ /**
867
+ * The discovery strategy whose view this scan describes — the same instance
868
+ * the host boots with.
869
+ *
870
+ * Required rather than defaulted: the answer is only meaningful relative to
871
+ * one concrete set of roots and filters, and a scan that silently assembled
872
+ * its own would report packages the host's runtime never sees, and omit
873
+ * packages it does.
874
+ */
875
+ readonly discovery: ExtensionDiscovery;
876
+ /**
877
+ * Reader used to enumerate each descriptor's exported packages. Defaults to
878
+ * the in-process import, which is correct for a short-lived process; a
879
+ * long-lived runtime must supply the worker-backed reader instead (see
880
+ * {@link ExportedPackagesReader}).
881
+ */
882
+ readonly exportedPackages?: ExportedPackagesReader;
883
+ /**
884
+ * Module resolver for `@makaio/framework/*` subpath imports, as selected by
885
+ * the host owning this scan.
886
+ *
887
+ * Only meaningful with the default in-process reader, which imports each
888
+ * server entrypoint on this process's own module registry: an extension
889
+ * installed from a local path lives outside that module tree, so its
890
+ * `@makaio/framework/*` imports only resolve while the host's resolver hook
891
+ * is installed. Without it, such an extension's export is unreadable and its
892
+ * criticality is reported unknown — which fails closed, refusing a disable
893
+ * the runtime itself would have allowed.
894
+ *
895
+ * Installed for the duration of one scan and uninstalled afterwards: the
896
+ * hook is process-wide loader state, so the scan owns it only while it is
897
+ * importing extension code. Omitted by hosts that resolve
898
+ * `@makaio/framework/*` natively, and by the worker-backed reader, which
899
+ * mirrors the hook inside its own loader context instead.
900
+ */
901
+ readonly frameworkModuleResolver?: FrameworkModuleResolver;
902
+ }
903
+ /**
904
+ * List every discoverable installed extension, expanded with the executable
905
+ * child packages each descriptor's server entrypoint exports.
906
+ *
907
+ * Tier precedence is the supplied discovery's own, which is the point:
908
+ * whichever of two same-named installs the next boot would load is the one
909
+ * reported as loadable here. What the discovery *refuses* to resolve — and the
910
+ * one contest it cannot even express, because it works on descriptors and not
911
+ * on executable packages — is reported rather than thrown; see
912
+ * {@link mergeDiscoveredTiers}.
913
+ * @param options - Scan inputs; see {@link InstalledExtensionScanOptions}.
914
+ * @returns Records in discovery-tier order; each descriptor's own record is
915
+ * immediately followed by the records for the child packages it exports, and
916
+ * a shadowed record follows the winner that shadows it.
917
+ */
918
+ declare function scanInstalledExtensions(options: InstalledExtensionScanOptions): Promise<readonly InstalledExtensionRecord[]>;
919
+ //#endregion
920
+ //#region runtimes/node/src/installed-extension-catalog-source.d.ts
921
+ /** Inputs for {@link createInstalledExtensionCatalogSource}. */
922
+ interface InstalledExtensionCatalogSourceOptions {
923
+ /**
924
+ * The discovery strategy this host boots with.
925
+ *
926
+ * The catalog must describe the same view the next boot would see — its
927
+ * configured roots, its tier precedence and its descriptor filters — or it
928
+ * would refuse a name the runtime can load and offer names the runtime would
929
+ * never discover. Passing the resolved strategy itself, rather than a
930
+ * reconstruction of its inputs, is what makes that equality structural.
931
+ */
932
+ readonly discovery: ExtensionDiscovery;
933
+ /**
934
+ * Absolute path to the assembled `@makaio/framework` dist when this host
935
+ * resolves `@makaio/framework/*` through a module resolver hook; omitted for
936
+ * hosts that resolve those specifiers natively.
937
+ */
938
+ readonly frameworkDistPath?: string;
939
+ }
940
+ /**
941
+ * Build the catalog source for a long-lived runtime.
942
+ *
943
+ * Always reads through the isolated import worker: this process can be asked
944
+ * again after an extension is reinstalled in place, and an import on its own
945
+ * module registry would keep answering from the pre-update module. Each call
946
+ * re-scans rather than caching, for the same reason — the point of the catalog
947
+ * is to describe what the *next* boot would load, which changes underneath a
948
+ * running process every time an extension is installed or removed.
949
+ * @param options - Discovery view and framework resolution for this host.
950
+ * @returns A catalog source suitable for `ExtensionCoordinatorOptions.installedCatalog`.
951
+ */
952
+ declare function createInstalledExtensionCatalogSource(options: InstalledExtensionCatalogSourceOptions): InstalledExtensionCatalogSource;
953
+ //#endregion
636
954
  //#region runtimes/node/src/find-workspace-root.d.ts
637
955
  /**
638
956
  * Error raised when no workspace root exists above the supplied start
@@ -674,4 +992,4 @@ declare function findWorkspaceRoot(startDir: string): string;
674
992
  */
675
993
  declare function findWorkspaceRootInfo(startDir: string): WorkspaceRootInfo;
676
994
  //#endregion
677
- export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AdmitWorkflowRunOperationOptions, type AdmittedWorkflowRun, type AttachedUpstreamTelemetry, type AttemptControlEndpointDeps, type AttemptControlEndpointIdentity, type AttemptControlLastReport, type AttemptControlReportOptions, AttemptOutcomeDeliveryError, AuthorityRequestDeliveryError, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BootstrapRuntimeConnection, BootstrapStartRefusedError, type BootstrapWorkerRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, type ConfiguredRuntimeOptions, type CoreBootOptions, type CreateIsolatedWorkflowRuntimeOptions, type CredentialProvider, type DatabaseBootOptions, type DeliverableOperationKind, type DescriptorSourcePackageGroup, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExtensionDiscovery, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HeadlessWorkerBootstrap, type HeadlessWorkerBootstrapCredentials, type HeadlessWorkerBusConnector, type HeadlessWorkerContributionLoader, type HeadlessWorkerDeps, type HeadlessWorkerExecutor, type HeadlessWorkerMaterializer, type HeadlessWorkerPostCommitObserver, type HeadlessWorkerResult, type HeadlessWorkflowWorkerDeps, type HeadlessWorkflowWorkerResult, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type IWorkflowRunner, InProcessWorkflowRunner, type InProcessWorkflowRunnerOptions, type InitializeNodeDatabaseOptions, type InitializeNodeDatabaseResult, type InstalledAttemptControlEndpoint, type InstalledWorkloadAdapter, type IsolatedWorkflowRuntime, type IsolatedWorkflowRuntimeContext, type LoadExtensionsOptions, type LoadMakaioConfigOptions, type LoadedMakaioConfig, type LocalGitSourceOptions, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MAKAIO_UPSTREAM_SECRET_ENV, MAKAIO_UPSTREAM_URL_ENV, type MachineKeyStatus, type MachineKeyValidation, type MakaioConfig, type MakaioRuntime, MergedDescriptorDiscovery, type NodeClientBinaryStrategyDependencyOptions, NodeCredentialProvider, NodeFrameworkModuleResolver, type NodeRuntimeOptions, NoopFrameworkModuleResolver, OperationAdmissionRefusedError, type OperationDeliveryEndpoint, type OperationDeliveryEndpointIdentity, type OperationDeliveryHandler, type OperationDeliveryHandlers, OutcomeDeliveryError, type ParseMakaioConfigOptions, type ParsedMakaioConfig, type PersistedMachineIdentity, PiscinaCodeExecutionProvider, type PiscinaCodeExecutionProviderOptions, type PrepareAdapterRuntimeInput, type PreparedAdapterRuntime, type RegisterAndAdmitWorkflowRunOptions, type RegisterWorkerRuntimeOptions, type ResolveUpstreamTelemetryBootOptionsFromEnvOptions, type RotateWorkflowExecutionBusSecretParams, type RunWorkloadInvocationOptions, RuntimeRegistrationRefusedError, RuntimeSubjects, type ServerTransportProvider, type SetupProcessGroupObservation, type StartedWorkerRuntime, StoredCredentialProvider, ThinWorkflowPiscinaRunner, type ThinWorkflowPiscinaRunnerOptions, type TransportReadyInfo, type UpstreamTelemetryBootOptions, type UpstreamTelemetryEnv, type UpstreamTelemetryTransportConfig, type WorkflowRunResult, type WorkflowRunnerBootOptions, type WorkflowRunnerConfig, type WorkflowRuntimeAuthorityConnector, type WorkflowRuntimeContributionLoader, type WorkflowWorkerEntryMode, type WorkflowWorkerEntryResolverOptions, type WorkloadControlBinding, type WorkloadInvocationPreparation, type WorkloadInvocationResult, type WorkspaceRootInfo, WorkspaceRootNotFoundError, activateAdapterRuntimeIdentity, admitWorkflowRunOperation, attachUpstreamTelemetry, bootMakaioRuntime, bootMakaioRuntimeCore, bootstrapWorkerRuntime, bridgeExtensionBrowserEntries, buildConfiguredRuntimeOptions, buildExtensionBrowserRollupInputName, buildExtensionBrowserRuntimeEntrypoint, buildNodeRuntimeOptions, captureWorkflowExecutionBusSecretCleanup, createHonoRouteGraph, createHttpRouteGraphBuilder, createIsolatedWorkflowRuntime, createLocalGitWorkspacePreparation, createMakaioConfigDiscovery, createNodeClientBinaryStrategyDependencies, createUpstreamTelemetryTransport, defineMakaioConfig, entrypointStem, findWorkspaceRoot, findWorkspaceRootInfo, getRuntimeDatabase, initializeNodeDatabase, installAttemptControlEndpoint, installOperationDeliveryEndpoint, isCliContributionLike, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensions, loadMakaioConfig, loadOrCreateMachineIdentity, machineKeysExist, normalizeNodeHostCapabilities, parseMakaioConfig, prepareAdapterRuntime, readFrameworkVersion, registerAdapterNameResolver, registerAndAdmitWorkflowRun, registerRuntimeHandlers, registerWorkerRuntime, resolveBundledMigrationsDir, resolveConventionEntrypoint, resolveFrameworkSpecifier, resolveListeningPort, resolveMakaioConfigPath, resolveMakaioHome, resolveStaticModelRegistryPath, resolveUpstreamTelemetryBootOptionsFromEnv, resolveWorkflowWorkerEntry, runHeadlessWorker, runHeadlessWorkflowWorker, runMigrations, runRuntimeHandlerCleanups, runWorkloadInvocation, selectFrameworkCorePackages, shouldIncludeExtension, submitAttemptOutcomeWithAck, tryImport, validateMachineKeys, waitForServerListening };
995
+ export { type ActivateAdapterRuntimeIdentityInput, type ActivatedAdapterRuntimeIdentity, type AdmitWorkflowRunOperationOptions, type AdmittedWorkflowRun, type AttachedUpstreamTelemetry, type AttemptControlEndpointDeps, type AttemptControlEndpointIdentity, type AttemptControlLastReport, type AttemptControlReportOptions, AttemptOutcomeDeliveryError, AuthorityRequestDeliveryError, type BootCoordinatorSetupContext, type BootMakaioRuntimeOptions, type BootstrapRuntimeConnection, BootstrapStartRefusedError, type BootstrapWorkerRuntimeOptions, type BridgeBrowserOptions, type BundledMigrationsProbes, type BusServerTransportOptions, BusServerTransportProvider, CODE_EXECUTION_DEFAULT_IDLE_TIMEOUT_MS, CODE_EXECUTION_DEFAULT_MAX_ARGUMENT_BYTES, CODE_EXECUTION_DEFAULT_MAX_CONCURRENCY, CODE_EXECUTION_DEFAULT_MAX_INVOCATIONS_PER_WORKER, CODE_EXECUTION_DEFAULT_MAX_PROGRAM_FILES, CODE_EXECUTION_DEFAULT_MAX_QUEUED_INVOCATIONS, CODE_EXECUTION_DEFAULT_MAX_RESULT_BYTES, CODE_EXECUTION_DEFAULT_MAX_SOURCE_BYTES, type ConfiguredRuntimeOptions, type CoreBootOptions, type CreateIsolatedWorkflowRuntimeOptions, type CredentialProvider, type DatabaseBootOptions, type DeliverableOperationKind, type DiscoveredExtension, ExplicitDescriptorDiscovery, type ExportedPackageListing, type ExportedPackagesReader, type ExportedPackagesTarget, type ExtensionCriticalView, type ExtensionDiscovery, type ExtensionEnablementFileData, type ExtensionEnablementReadFailure, type ExtensionEnablementReadFailureReason, type ExtensionEnablementStore, ExtensionNameCollisionError, type ExtensionOperatorConfigConsumer, type ExtensionOperatorConfigSnapshot, FileConfigStorage, FileRegistryCache, FilesystemDescriptorDiscovery, type FilesystemDescriptorDiscoveryOptions, type FrameworkModuleResolver, type HeadlessWorkerBootstrap, type HeadlessWorkerBootstrapCredentials, type HeadlessWorkerBusConnector, type HeadlessWorkerContributionLoader, type HeadlessWorkerDeps, type HeadlessWorkerExecutor, type HeadlessWorkerMaterializer, type HeadlessWorkerPostCommitObserver, type HeadlessWorkerResult, type HeadlessWorkflowWorkerDeps, type HeadlessWorkflowWorkerResult, type HonoRouteGraph, type HonoRouteGraphOptions, type HttpContributionPhase, type HttpRouteContribution, type HttpRouteGraphBuilder, type IWorkflowRunner, InProcessWorkflowRunner, type InProcessWorkflowRunnerOptions, type InitializeNodeDatabaseOptions, type InitializeNodeDatabaseResult, type InstalledAttemptControlEndpoint, type InstalledExtensionCatalogSourceOptions, type InstalledExtensionRecord, type InstalledExtensionScanOptions, type InstalledWorkloadAdapter, type IsolatedWorkflowRuntime, type IsolatedWorkflowRuntimeContext, type LoadExtensionOperatorConfigOptions, type LoadExtensionsOptions, type LoadMakaioConfigOptions, type LoadedMakaioConfig, type LocalGitSourceOptions, MAKAIO_CONFIG_FILE_ENV, MAKAIO_HOME_ENV, MAKAIO_UPSTREAM_SECRET_ENV, MAKAIO_UPSTREAM_URL_ENV, MAX_ENABLEMENT_FILE_BYTES, MAX_OPERATOR_CONFIG_BYTES, type MachineKeyStatus, type MachineKeyValidation, type MakaioConfig, type MakaioRuntime, MergedDescriptorDiscovery, type NodeClientBinaryStrategyDependencyOptions, NodeCredentialProvider, NodeFrameworkModuleResolver, type NodeRuntimeOptions, NoopFrameworkModuleResolver, OperationAdmissionRefusedError, type OperationDeliveryEndpoint, type OperationDeliveryEndpointIdentity, type OperationDeliveryHandler, type OperationDeliveryHandlers, OutcomeDeliveryError, type ParseMakaioConfigOptions, type ParsedMakaioConfig, type PersistedMachineIdentity, PiscinaCodeExecutionProvider, type PiscinaCodeExecutionProviderOptions, type PrepareAdapterRuntimeInput, type PreparedAdapterRuntime, type RegisterAndAdmitWorkflowRunOptions, type RegisterWorkerRuntimeOptions, type ResolveUpstreamTelemetryBootOptionsFromEnvOptions, type RotateWorkflowExecutionBusSecretParams, type RunWorkloadInvocationOptions, RuntimeRegistrationRefusedError, RuntimeSubjects, type ServerTransportProvider, type SetupProcessGroupObservation, type StartedWorkerRuntime, StoredCredentialProvider, ThinWorkflowPiscinaRunner, type ThinWorkflowPiscinaRunnerOptions, type TransportReadyInfo, type UpstreamTelemetryBootOptions, type UpstreamTelemetryEnv, type UpstreamTelemetryTransportConfig, type WorkflowRunResult, type WorkflowRunnerBootOptions, type WorkflowRunnerConfig, type WorkflowRuntimeAuthorityConnector, type WorkflowRuntimeContributionLoader, type WorkflowWorkerEntryMode, type WorkflowWorkerEntryResolverOptions, type WorkloadControlBinding, type WorkloadInvocationPreparation, type WorkloadInvocationResult, type WorkspaceRootInfo, WorkspaceRootNotFoundError, activateAdapterRuntimeIdentity, admitWorkflowRunOperation, attachUpstreamTelemetry, bootMakaioRuntime, bootMakaioRuntimeCore, bootstrapWorkerRuntime, bridgeExtensionBrowserEntries, buildConfiguredRuntimeOptions, buildExtensionBrowserRollupInputName, buildExtensionBrowserRuntimeEntrypoint, buildNodeRuntimeOptions, captureWorkflowExecutionBusSecretCleanup, createExtensionOperatorConfigSnapshot, createHonoRouteGraph, createHttpRouteGraphBuilder, createInstalledExtensionCatalogSource, createIsolatedWorkflowRuntime, createLocalGitWorkspacePreparation, createMakaioConfigDiscovery, createNodeClientBinaryStrategyDependencies, createUpstreamTelemetryTransport, createWorkerExportedPackagesReader, defineMakaioConfig, entrypointStem, filterConfigDefaultsForLoadedPackages, findWorkspaceRoot, findWorkspaceRootInfo, getRuntimeDatabase, initializeNodeDatabase, installAttemptControlEndpoint, installOperationDeliveryEndpoint, isCliContributionLike, isExtensionDisabledInStore, isExtensionEnabled, isMakaioExtensionLike, isMissingOptionalRuntimePackage, isWithinDirectory, loadExtensionEnablementStore, loadExtensionOperatorConfig, loadExtensions, loadMakaioConfig, loadOrCreateMachineIdentity, machineKeysExist, mergePackageConfigDefaults, normalizeNodeHostCapabilities, normalizePackageExport, parseMakaioConfig, prepareAdapterRuntime, readFrameworkVersion, registerAdapterNameResolver, registerAndAdmitWorkflowRun, registerRuntimeHandlers, registerWorkerRuntime, resolveBundledMigrationsDir, resolveConventionEntrypoint, resolveExtensionEnablementFile, resolveExtensionOperatorConfigDir, resolveFrameworkSpecifier, resolveListeningPort, resolveMakaioConfigPath, resolveMakaioHome, resolveStaticModelRegistryPath, resolveUpstreamTelemetryBootOptionsFromEnv, resolveWorkflowWorkerEntry, runHeadlessWorker, runHeadlessWorkflowWorker, runMigrations, runRuntimeHandlerCleanups, runWorkloadInvocation, scanInstalledExtensions, selectFrameworkCorePackages, shouldIncludeExtension, submitAttemptOutcomeWithAck, tryImport, validateMachineKeys, waitForServerListening, warnOnUnaddressableExtensionOperatorConfigNames, warnOnUnappliedExtensionOperatorConfig };