@makaio/framework 1.0.0-dev-1789160791094 → 1.0.0-dev-1789177276073

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 (499) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{2020-DvDj4r_K.mjs → 2020-CRfgqanb.mjs} +1 -1
  3. package/dist/{account-identity-BdGGjBuZ.mjs → account-identity-C-v4mHq3.mjs} +1 -1
  4. package/dist/{adapter-BLivHuUi.mjs → adapter-C4v_gNTI.mjs} +1 -1
  5. package/dist/adapters/config/index.d.mts +1 -1
  6. package/dist/adapters/config/index.mjs +1 -1
  7. package/dist/adapters/index.d.mts +2 -2
  8. package/dist/adapters/index.mjs +1 -1
  9. package/dist/adapters/node.d.mts +1 -1
  10. package/dist/adapters/node.mjs +1 -1
  11. package/dist/artifact-DGxKwbHE.mjs +1 -0
  12. package/dist/{attempt-record-codec-BrungudT.mjs → attempt-record-codec-DaQ3WHUs.mjs} +1 -1
  13. package/dist/{auth-BIgwGHp-.mjs → auth-D9BQV8b_.mjs} +1 -1
  14. package/dist/authority-state-bootstrap-CV7HpB4v.mjs +1 -0
  15. package/dist/{automation-trigger-CQNQpzkA.mjs → automation-trigger-Bs-AAN1I.mjs} +1 -1
  16. package/dist/bus/index.d.mts +22 -19
  17. package/dist/bus/index.mjs +1 -1
  18. package/dist/bus-CyrTcF8F.mjs +9 -0
  19. package/dist/{caller-owned-adapter-stub-NiR7KT2N.mjs → caller-owned-adapter-stub-D8RZEdRn.mjs} +1 -1
  20. package/dist/{canonical-model-yXnm9QTn.mjs → canonical-model-RhhrFer9.mjs} +1 -1
  21. package/dist/{capabilities-CEwSeTB3.mjs → capabilities-cWI1WpCq.mjs} +1 -1
  22. package/dist/{client-BsY0rMlE.mjs → client-CgtNXGXg.mjs} +1 -1
  23. package/dist/clients/index.d.mts +1 -1
  24. package/dist/clients/index.mjs +1 -1
  25. package/dist/clients/managed-install.d.mts +1 -1
  26. package/dist/clients/managed-install.mjs +1 -1
  27. package/dist/code-execution/worker-entry.d.mts +1 -1
  28. package/dist/code-execution/worker-entry.mjs +1 -1
  29. package/dist/{code-execution-xn9-x3VO.mjs → code-execution-BspFbEdT.mjs} +1 -1
  30. package/dist/{code-execution-BhUo84eg.mjs → code-execution-D3kZBdY4.mjs} +1 -1
  31. package/dist/{code-execution-ByLSAlEg2.mjs → code-execution-pUF4IO462.mjs} +1 -1
  32. package/dist/common-BnDruIuW.mjs +1 -0
  33. package/dist/{compression-odwEUBWb.mjs → compression-CPrVeC42.mjs} +1 -1
  34. package/dist/{config-namespace-CE3KasJn.mjs → config-namespace-BpvgI5UF.mjs} +1 -1
  35. package/dist/contracts/adapter/index.d.mts +2 -2
  36. package/dist/contracts/adapter/index.mjs +1 -1
  37. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  38. package/dist/contracts/artifact/index.d.mts +3 -3
  39. package/dist/contracts/artifact/index.mjs +1 -1
  40. package/dist/contracts/auth/index.d.mts +2 -2
  41. package/dist/contracts/auth/index.mjs +1 -1
  42. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  43. package/dist/contracts/automation-trigger/index.mjs +1 -1
  44. package/dist/contracts/canonical-model/index.d.mts +1 -1
  45. package/dist/contracts/canonical-model/index.mjs +1 -1
  46. package/dist/contracts/capabilities/index.d.mts +1 -1
  47. package/dist/contracts/capabilities/index.mjs +1 -1
  48. package/dist/contracts/client/index.d.mts +2 -2
  49. package/dist/contracts/client/index.mjs +1 -1
  50. package/dist/contracts/code-execution/index.d.mts +1 -1
  51. package/dist/contracts/code-execution/index.mjs +1 -1
  52. package/dist/contracts/common/index.d.mts +1 -1
  53. package/dist/contracts/common/index.mjs +1 -1
  54. package/dist/contracts/config/index.d.mts +1 -1
  55. package/dist/contracts/config/index.mjs +1 -1
  56. package/dist/contracts/extension/index.d.mts +5 -5
  57. package/dist/contracts/extension/index.mjs +1 -1
  58. package/dist/contracts/facet/index.d.mts +1 -1
  59. package/dist/contracts/facet/index.mjs +1 -1
  60. package/dist/contracts/harness/index.d.mts +1 -1
  61. package/dist/contracts/harness/index.mjs +1 -1
  62. package/dist/contracts/host/index.d.mts +1 -1
  63. package/dist/contracts/host/index.mjs +1 -1
  64. package/dist/contracts/index.d.mts +84 -72
  65. package/dist/contracts/index.mjs +1 -1
  66. package/dist/contracts/materialization/index.d.mts +2 -2
  67. package/dist/contracts/materialization/index.mjs +1 -1
  68. package/dist/contracts/model-registry/index.d.mts +1 -1
  69. package/dist/contracts/model-registry/index.mjs +1 -1
  70. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  71. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  72. package/dist/contracts/platform/index.d.mts +1 -1
  73. package/dist/contracts/platform/index.mjs +1 -1
  74. package/dist/contracts/provider/index.d.mts +2 -2
  75. package/dist/contracts/provider/index.mjs +1 -1
  76. package/dist/contracts/reaction/index.d.mts +1 -1
  77. package/dist/contracts/reaction/index.mjs +1 -1
  78. package/dist/contracts/session/index.d.mts +2 -2
  79. package/dist/contracts/session/index.mjs +1 -1
  80. package/dist/contracts/shared/index.d.mts +2 -2
  81. package/dist/contracts/shared/index.mjs +1 -1
  82. package/dist/contracts/skill/index.d.mts +1 -1
  83. package/dist/contracts/skill/index.mjs +1 -1
  84. package/dist/contracts/telemetry/index.d.mts +1 -1
  85. package/dist/contracts/telemetry/index.mjs +1 -1
  86. package/dist/contracts/timeout/index.d.mts +1 -1
  87. package/dist/contracts/timeout/index.mjs +1 -1
  88. package/dist/contracts/toast/index.mjs +1 -1
  89. package/dist/contracts/variant/index.d.mts +1 -1
  90. package/dist/contracts/variant/index.mjs +1 -1
  91. package/dist/contracts/worker/index.d.mts +2 -2
  92. package/dist/contracts/worker/index.mjs +1 -1
  93. package/dist/contracts/workflow/index.d.mts +2 -2
  94. package/dist/contracts/workflow/index.mjs +1 -1
  95. package/dist/{contribution-Cdz5WTYk.d.mts → contribution-DDbHzCPF.d.mts} +2 -2
  96. package/dist/{definition-DQNFO-Qz.d.mts → definition-CuaBQyde.d.mts} +1 -1
  97. package/dist/{definition-o5Dfg5j-.mjs → definition-Dd7bDWpP.mjs} +1 -1
  98. package/dist/{detached-extension-handle-BNvRSUVO.mjs → detached-extension-handle-DN3aqLyq.mjs} +1 -1
  99. package/dist/{dist-DMIaE8sg.mjs → dist-onY7e-pd.mjs} +1 -1
  100. package/dist/{execution-attempt-owner-recovery-D4APLAvt.mjs → execution-attempt-owner-recovery-CE_rvHKE.mjs} +1 -1
  101. package/dist/{execution-target-Ba7b_UmX.mjs → execution-target-CDeIBu4b.mjs} +1 -1
  102. package/dist/{extension-D9D8tJQY.mjs → extension-CnNcY1hR.mjs} +1 -1
  103. package/dist/{extension-DYBu49NH.mjs → extension-D8uLQSDc.mjs} +1 -1
  104. package/dist/{filesystem-service-hdz3oYti.mjs → filesystem-service-ClZEAw7E.mjs} +1 -1
  105. package/dist/{framework-packages-DdCJ4JsE.mjs → framework-packages-CCIReKIe.mjs} +1 -1
  106. package/dist/git/index.mjs +1 -1
  107. package/dist/{globby-Begk3aIP.mjs → globby-CxGKRBGC.mjs} +1 -1
  108. package/dist/{handlers-CqL2TWbk.mjs → handlers-mjky_fP2.mjs} +1 -1
  109. package/dist/{harness-CYzkReGi.mjs → harness-DBxywOGi.mjs} +1 -1
  110. package/dist/{hook-responses-DVjMuGh9.d.mts → hook-responses-Dq16X3Cb.d.mts} +1 -1
  111. package/dist/{index-CU9xmTkP.d.mts → index-B4pPwpKk.d.mts} +1 -1
  112. package/dist/{index-CK5GEXLB2.d.mts → index-BL_oWicz2.d.mts} +24 -24
  113. package/dist/{index-Caai1zAG.d.mts → index-C1nSuiG0.d.mts} +1 -1
  114. package/dist/{index-BgKU1PuR2.d.mts → index-C87P0WpY2.d.mts} +1 -1
  115. package/dist/{index-DUdGqxHD.d.mts → index-CIzvBH8O.d.mts} +1 -1
  116. package/dist/{index-B7VWSBm72.d.mts → index-CdWxSwhQ2.d.mts} +4 -4
  117. package/dist/{index-CdPWA8co.d.mts → index-Cq-2TSMB.d.mts} +26 -26
  118. package/dist/{index-WhgPewY4.d.mts → index-D0xS-mYt.d.mts} +17 -17
  119. package/dist/{index-DnZksNTM.d.mts → index-DQKVQPUS.d.mts} +1 -1
  120. package/dist/{index-KmZLl8Ne.d.mts → index-DSybRh-P.d.mts} +13 -13
  121. package/dist/{index-Ddk-kjif.d.mts → index-DViNBePi.d.mts} +3 -3
  122. package/dist/{index-DUH2eTyC.d.mts → index-DWANFpTG.d.mts} +1 -1
  123. package/dist/{index-BZrlHkpM2.d.mts → index-De_oh9M-2.d.mts} +1 -1
  124. package/dist/{index-DS1mI9GP.d.mts → index-Dm3d490n.d.mts} +1 -1
  125. package/dist/{index-LRAmVQLj.d.mts → index-DtCVHx8-.d.mts} +1 -1
  126. package/dist/{index-DhW9WHFS.d.mts → index-Du4wUv9q.d.mts} +8 -8
  127. package/dist/{index-EJFdPYs32.d.mts → index-DyVXhEBC2.d.mts} +3 -3
  128. package/dist/{index-Bt9YxVg5.d.mts → index-FR0ukOzj.d.mts} +85 -85
  129. package/dist/{index-BUoIGZmF2.d.mts → index-GFf4oKBg2.d.mts} +39 -39
  130. package/dist/{index-BLhNHkiK.d.mts → index-T-aAKybB.d.mts} +8 -8
  131. package/dist/{index-BXair-QK.d.mts → index-U--ajOHy.d.mts} +1 -1
  132. package/dist/{index-DN2Odrnz.d.mts → index-a_peDAyG.d.mts} +361 -4
  133. package/dist/{index-D6_5slJp.d.mts → index-oxZt93RL.d.mts} +2 -2
  134. package/dist/{index-CTNGL-cq2.d.mts → index-zmDRR8gv2.d.mts} +1 -1
  135. package/dist/json-tree-Cmb_BzHr.mjs +1 -0
  136. package/dist/kernel/cli/index.d.mts +2 -2
  137. package/dist/kernel/cli/index.mjs +1 -1
  138. package/dist/kernel/cli/register.d.mts +1 -1
  139. package/dist/kernel/cli/register.mjs +1 -1
  140. package/dist/kernel/cli/schemas.mjs +1 -1
  141. package/dist/kernel/extension/index.d.mts +1 -1
  142. package/dist/kernel/extension/index.mjs +1 -1
  143. package/dist/kernel/index.d.mts +5 -5
  144. package/dist/kernel/index.mjs +1 -1
  145. package/dist/kernel/namespace/index.d.mts +1 -1
  146. package/dist/kernel/namespace/index.mjs +1 -1
  147. package/dist/kernel/observability/index.d.mts +1 -1
  148. package/dist/kernel/observability/index.mjs +1 -1
  149. package/dist/kernel/providers/index.d.mts +1 -1
  150. package/dist/kernel/providers/index.mjs +1 -1
  151. package/dist/kernel/window/index.d.mts +1 -1
  152. package/dist/kernel/window/index.mjs +1 -1
  153. package/dist/kind-registration-BcNuwXPC.mjs +1 -0
  154. package/dist/{lib-D1-cvcTz.mjs → lib-BF5XBSfw.mjs} +1 -1
  155. package/dist/{lib-B1Mvm4hQ.mjs → lib-Dljw2Cqh.mjs} +1 -1
  156. package/dist/{load-extensions-bwisKaW0.mjs → load-extensions-BVgxTj_y.mjs} +1 -1
  157. package/dist/{load-extensions-D6SVKBPw.d.mts → load-extensions-DGstT4_p.d.mts} +1 -1
  158. package/dist/{materialization-DRr6CSXV.mjs → materialization-kP_vEXV3.mjs} +1 -1
  159. package/dist/mcp-http-server/index.mjs +1 -1
  160. package/dist/model-BPKGygMv.mjs +1 -0
  161. package/dist/namespace-BPf6AbBO.mjs +1 -0
  162. package/dist/{namespace-TX9DlWiQ.d.mts → namespace-BjDxqCi5.d.mts} +6 -6
  163. package/dist/{namespace-CD9mJGhU.mjs → namespace-CMntzAPI.mjs} +1 -1
  164. package/dist/{namespace-CQPcYS-Q.d.mts → namespace-CPGTaFqO.d.mts} +2 -2
  165. package/dist/{namespace--mFdPlbu.d.mts → namespace-C_tttgJ8.d.mts} +18 -18
  166. package/dist/{namespace-DyWNxLt1.d.mts → namespace-f6Kz5cwX.d.mts} +6 -6
  167. package/dist/{native-session-supervisor-i3PeijHn.mjs → native-session-supervisor-DtuN1Dgs.mjs} +1 -1
  168. package/dist/node/bus-server/index.d.mts +1 -1
  169. package/dist/node/bus-server/index.mjs +1 -1
  170. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  171. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  172. package/dist/{orchestrator-shared-DMldWEah.mjs → orchestrator-shared-CtPB6PAr.mjs} +1 -1
  173. package/dist/{ownership-memory-handler-LXaweX6V.mjs → ownership-memory-handler-xex7sLiX.mjs} +1 -1
  174. package/dist/{package-BFto8lbP.mjs → package-BSz4hbav.mjs} +1 -1
  175. package/dist/{package-tvzH3A0x.mjs → package-Bn4iwDm3.mjs} +1 -1
  176. package/dist/{package-CnR_tOsW.d.mts → package-DdymauE9.d.mts} +1 -1
  177. package/dist/package.json +1 -1
  178. package/dist/{profile-Cjq4QnUQ.mjs → profile-1fvMljlJ.mjs} +1 -1
  179. package/dist/{provider-context-CYUUoI6x.mjs → provider-context-D6GIZ5DC.mjs} +1 -1
  180. package/dist/{provider-context-BpabfMlj.mjs → provider-context-DFTB8rsU.mjs} +1 -1
  181. package/dist/{reaction-Cev6JNcb.mjs → reaction-C8WbJqLk.mjs} +1 -1
  182. package/dist/{resolved-XQTiHgrA.mjs → resolved-BAbiCSV4.mjs} +1 -1
  183. package/dist/rules/index.d.mts +1 -1
  184. package/dist/rules/index.mjs +1 -1
  185. package/dist/rules/schemas.d.mts +1 -1
  186. package/dist/runtime-bun/index.mjs +1 -1
  187. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  188. package/dist/runtime-node/code-execution/index.mjs +1 -1
  189. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  190. package/dist/runtime-node/extension-validation.d.mts +1 -1
  191. package/dist/runtime-node/extension-validation.mjs +1 -1
  192. package/dist/runtime-node/index.d.mts +5 -5
  193. package/dist/runtime-node/index.mjs +2 -2
  194. package/dist/runtime-node/makaio-config.d.mts +1 -1
  195. package/dist/runtime-node/makaio-config.mjs +1 -1
  196. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  197. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  198. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  199. package/dist/{schema-BVbkNHVQ.mjs → schema-Cz6-4_Dn.mjs} +1 -1
  200. package/dist/{schemas-Dt1YwXLN.d.mts → schemas-BOacpw3I.d.mts} +10 -10
  201. package/dist/{schemas-D9WJH6We.d.mts → schemas-CJKDu4Kt.d.mts} +1 -1
  202. package/dist/{schemas-CXCdmM5K.d.mts → schemas-CKVm28Oy.d.mts} +12 -1
  203. package/dist/{schemas-Fn-eeay32.d.mts → schemas-Ca5RILd-2.d.mts} +7 -7
  204. package/dist/{schemas-BGcAiQE0.d.mts → schemas-CeItAAQM.d.mts} +4 -4
  205. package/dist/{schemas-D9_OPuLB.mjs → schemas-ClkcU_N5.mjs} +1 -1
  206. package/dist/{schemas-pBrUJEN6.mjs → schemas-D-i0IAtA.mjs} +1 -1
  207. package/dist/{schemas-FkLOBJgq.d.mts → schemas-LiiyNNpr.d.mts} +4 -4
  208. package/dist/schemas-rlb0IQ-G.mjs +1 -0
  209. package/dist/{selection-D7V0wyHX.mjs → selection-DLN6l5iK.mjs} +1 -1
  210. package/dist/services/adapter-runtime/index.d.mts +3 -3
  211. package/dist/services/adapter-runtime/index.mjs +1 -1
  212. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  213. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  214. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  215. package/dist/services/adapter-subsystem/index.mjs +1 -1
  216. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  217. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  218. package/dist/services/agent-runtime/index.d.mts +2 -2
  219. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  220. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  221. package/dist/services/automation-trigger/index.mjs +1 -1
  222. package/dist/services/capability/index.d.mts +2 -2
  223. package/dist/services/capability/index.mjs +1 -1
  224. package/dist/services/code-execution/index.d.mts +1 -1
  225. package/dist/services/code-execution/index.mjs +1 -1
  226. package/dist/services/codebase/index.d.mts +2 -2
  227. package/dist/services/codebase/namespace.d.mts +1 -1
  228. package/dist/services/codebase/schemas.d.mts +1 -1
  229. package/dist/services/compression/index.d.mts +2 -2
  230. package/dist/services/compression/namespace.d.mts +1 -1
  231. package/dist/services/compression/schemas.d.mts +1 -1
  232. package/dist/services/context-rules/index.d.mts +4 -4
  233. package/dist/services/context-rules/index.mjs +1 -1
  234. package/dist/services/execution-target/index.d.mts +3 -3
  235. package/dist/services/execution-target/index.mjs +1 -1
  236. package/dist/services/execution-target/namespace.d.mts +1 -1
  237. package/dist/services/execution-target/namespace.mjs +1 -1
  238. package/dist/services/execution-target/schemas.d.mts +1 -1
  239. package/dist/services/execution-target/schemas.mjs +1 -1
  240. package/dist/services/filesystem/index.d.mts +1 -1
  241. package/dist/services/filesystem/index.mjs +1 -1
  242. package/dist/services/git/namespace.mjs +1 -1
  243. package/dist/services/git/schemas.mjs +1 -1
  244. package/dist/services/harness/index.mjs +1 -1
  245. package/dist/services/index.d.mts +58 -58
  246. package/dist/services/index.mjs +1 -1
  247. package/dist/services/log-import/browser.d.mts +2 -2
  248. package/dist/services/log-import/index.d.mts +2 -2
  249. package/dist/services/log-import/log-import.d.mts +1 -1
  250. package/dist/services/log-import/log-import.mjs +1 -1
  251. package/dist/services/log-import/namespace.mjs +1 -1
  252. package/dist/services/log-import/schemas.mjs +1 -1
  253. package/dist/services/materialization/index.d.mts +1 -1
  254. package/dist/services/materialization/index.mjs +1 -1
  255. package/dist/services/model-registry/index.d.mts +1 -1
  256. package/dist/services/model-registry/index.mjs +1 -1
  257. package/dist/services/preferences/index.d.mts +2 -2
  258. package/dist/services/preferences/schemas.d.mts +1 -1
  259. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  260. package/dist/services/provider-context/index.d.mts +1 -1
  261. package/dist/services/provider-context/index.mjs +1 -1
  262. package/dist/services/provider-runtime/index.mjs +1 -1
  263. package/dist/services/session/handlers/index.d.mts +1 -1
  264. package/dist/services/session/handlers/index.mjs +1 -1
  265. package/dist/services/session/index.d.mts +9 -9
  266. package/dist/services/session/index.mjs +1 -1
  267. package/dist/services/session/messages/namespace.d.mts +1 -1
  268. package/dist/services/session/messages/namespace.mjs +1 -1
  269. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  270. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  271. package/dist/services/session/session-events/namespace.d.mts +1 -1
  272. package/dist/services/session/session-events/namespace.mjs +1 -1
  273. package/dist/services/session/storage/namespace.d.mts +1 -1
  274. package/dist/services/session/storage/schema.d.mts +1 -1
  275. package/dist/services/session/testing/index.mjs +1 -1
  276. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  277. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  278. package/dist/services/session/turns/namespace.d.mts +1 -1
  279. package/dist/services/session/turns/namespace.mjs +1 -1
  280. package/dist/services/session-editor/index.d.mts +1 -1
  281. package/dist/services/session-editor/index.mjs +1 -1
  282. package/dist/services/settings/index.d.mts +3 -3
  283. package/dist/services/settings/index.mjs +1 -1
  284. package/dist/services/settings/namespace.d.mts +10 -10
  285. package/dist/services/settings/namespace.mjs +1 -1
  286. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  287. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  288. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  289. package/dist/services/settings/storage/index.d.mts +3 -3
  290. package/dist/services/settings/storage/index.mjs +1 -1
  291. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  292. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  293. package/dist/services/subagent/index.d.mts +1 -1
  294. package/dist/services/subagent/index.mjs +1 -1
  295. package/dist/services/subagent-template/index.d.mts +2 -2
  296. package/dist/services/subagent-template/namespace.d.mts +1 -1
  297. package/dist/services/subagent-template/schemas.d.mts +1 -1
  298. package/dist/services/tool-approval/index.d.mts +1 -1
  299. package/dist/services/tool-approval/index.mjs +1 -1
  300. package/dist/services/tools/index.d.mts +1 -1
  301. package/dist/services/tools/index.mjs +1 -1
  302. package/dist/services/tray-menu/index.d.mts +3 -3
  303. package/dist/services/tray-menu/index.mjs +1 -1
  304. package/dist/services/tray-menu/namespace.d.mts +1 -1
  305. package/dist/services/tray-menu/schemas.d.mts +1 -1
  306. package/dist/services/turn/index.d.mts +1 -1
  307. package/dist/services/turn/namespace.d.mts +1 -1
  308. package/dist/services/workflow-transitions/index.d.mts +1 -1
  309. package/dist/services/workflow-transitions/index.mjs +1 -1
  310. package/dist/{session-CAKfa5o8.mjs → session-6UG5udTX.mjs} +1 -1
  311. package/dist/{session-BsQst2fC.mjs → session-BB0s7c2B.mjs} +1 -1
  312. package/dist/shared-Gb3kTtHs.mjs +1 -0
  313. package/dist/{skill-91kZNQnF.mjs → skill-B0jSQDvb.mjs} +1 -1
  314. package/dist/{src-BZdlyUxT.mjs → src-CbAw9kjJ.mjs} +1 -1
  315. package/dist/storage/drizzle/client.d.mts +1 -1
  316. package/dist/storage/drizzle/client.mjs +1 -1
  317. package/dist/storage/drizzle/index.d.mts +1 -1
  318. package/dist/storage/drizzle/index.mjs +1 -1
  319. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  320. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  321. package/dist/storage/handlers/index.d.mts +1 -1
  322. package/dist/storage/handlers/index.mjs +1 -1
  323. package/dist/{storage-namespace-BUSNKZLw.d.mts → storage-namespace-IvLOIP7j.d.mts} +10 -10
  324. package/dist/{tool-approval-service-BV3WxxX6.mjs → tool-approval-service-pbkGcAV8.mjs} +1 -1
  325. package/dist/{tools-CElCajoS.mjs → tools-Dj_ImUQ8.mjs} +1 -1
  326. package/dist/{transition-B8XDvfD7.d.mts → transition-B-YmSK-s.d.mts} +2 -2
  327. package/dist/{types-HFQQoeAz.d.mts → types-7QB81mzR.d.mts} +18 -18
  328. package/dist/{types-DafDuOcH2.d.mts → types-CjYcHDPo2.d.mts} +1 -1
  329. package/dist/ui-kernel/index.d.mts +4 -4
  330. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  331. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  332. package/dist/{version-DdGhNoY5.mjs → version-PuU2KG3I.mjs} +1 -1
  333. package/dist/{view-builder-ADC1ng2t.d.mts → view-builder-Du0WV-So.d.mts} +1 -1
  334. package/dist/{visibility-cMXbf9nY.mjs → visibility-DCcfB817.mjs} +1 -1
  335. package/dist/{worker-B0xwfo9-.mjs → worker-Cgql5Xsm.mjs} +1 -1
  336. package/dist/{worker-CrYtBGy1.mjs → worker-DWEma08Q.mjs} +1 -1
  337. package/dist/{workflow-mCL6Xv-J.mjs → workflow-DA2yJJK-.mjs} +1 -1
  338. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  339. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  340. package/dist/workflow-engine/index.d.mts +67 -67
  341. package/dist/workflow-engine/index.mjs +1 -1
  342. package/dist/workflow-engine/package.d.mts +1 -1
  343. package/dist/workflow-engine/package.mjs +1 -1
  344. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  345. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  346. package/dist/workflow-engine/testing/conformance.mjs +1 -1
  347. package/dist/workflow-engine/testing/index.d.mts +1 -1
  348. package/dist/workflow-engine/testing/index.mjs +1 -1
  349. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  350. package/dist/workflow-engine/testing/sqlite.mjs +1 -1
  351. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  352. package/dist/{workflow-transitions-DH246j6E.mjs → workflow-transitions-t6jn_pR_.mjs} +1 -1
  353. package/dist/{workflow-worker-BDA-E_pm.mjs → workflow-worker-C3ZbuhyA.mjs} +1 -1
  354. package/package.json +1 -1
  355. package/dist/artifact-B-PQO_TB.mjs +0 -1
  356. package/dist/authority-state-bootstrap-DVFYemDL.mjs +0 -1
  357. package/dist/bus-DU_7GM0J.mjs +0 -9
  358. package/dist/common-Bta2ivrd.mjs +0 -1
  359. package/dist/kind-registration-CyMf-vey.mjs +0 -1
  360. package/dist/model-Dya0clsM.mjs +0 -1
  361. package/dist/namespace-D53UGrP6.mjs +0 -1
  362. package/dist/schemas-BhkprYU1.mjs +0 -1
  363. package/dist/shared-m6jgT2a3.mjs +0 -1
  364. /package/dist/{adapter-auth-runtime-46Y9WKcB.mjs → adapter-auth-runtime-B6yX_QfG.mjs} +0 -0
  365. /package/dist/{adapter-binding-CZTWlcp9.d.mts → adapter-binding-BxjUfkOn.d.mts} +0 -0
  366. /package/dist/{ajv-Dz-0DD7m.mjs → ajv-Cvnmw2yn.mjs} +0 -0
  367. /package/dist/{attach-error-D5BWfaBO.mjs → attach-error-wNJ8Q5uU.mjs} +0 -0
  368. /package/dist/{attempt-control-evidence-BKw1U3wL.mjs → attempt-control-evidence-7lwRG73Y.mjs} +0 -0
  369. /package/dist/{attempt-fixtures-B8FSy_vs.mjs → attempt-fixtures-DHdYmr3o.mjs} +0 -0
  370. /package/dist/{base-orchestrator-C5Z9Aowq.d.mts → base-orchestrator-CrXiMJzf.d.mts} +0 -0
  371. /package/dist/{bootstrap-start-client-D7t7d9ty.mjs → bootstrap-start-client-C1ZHbv6e.mjs} +0 -0
  372. /package/dist/{capability-BnQx1BWc.mjs → capability-DXHYfKK0.mjs} +0 -0
  373. /package/dist/{capability-service-DX3wLjdt.d.mts → capability-service-CQ1aw_p-.d.mts} +0 -0
  374. /package/dist/{client-BsXMxeCN.d.mts → client-ByjHcS78.d.mts} +0 -0
  375. /package/dist/{client-binary-version-verifier-uMFQoKZj.d.mts → client-binary-version-verifier-C4fEAUdo.d.mts} +0 -0
  376. /package/dist/{client-binary-version-verifier-DLziUQhw.mjs → client-binary-version-verifier-DcHCFmsI.mjs} +0 -0
  377. /package/dist/{clients-namespace-1hXA6qNd.d.mts → clients-namespace-D4BxF2Nw.d.mts} +0 -0
  378. /package/dist/{config-namespace-Bpq9WOY4.d.mts → config-namespace-B1zyOYwH.d.mts} +0 -0
  379. /package/dist/{create-static-mount-Cr24q94C.mjs → create-static-mount-Dgxgi4W3.mjs} +0 -0
  380. /package/dist/{cross-spawn-Bi05YtQQ.mjs → cross-spawn-BMCAyqrN.mjs} +0 -0
  381. /package/dist/{cursor-storage-88xtgVAd.mjs → cursor-storage-BvjxwBW6.mjs} +0 -0
  382. /package/dist/{definition-Ckt_WmJw.d.mts → definition-ClWxAKQ2.d.mts} +0 -0
  383. /package/dist/{definitions-CyFaNG_c.mjs → definitions-Do7bP-u7.mjs} +0 -0
  384. /package/dist/{descriptor-to-package-GVZk9ZGT.mjs → descriptor-to-package-Dw8dnl5E.mjs} +0 -0
  385. /package/dist/{drizzle-BrlzkYoe.mjs → drizzle-_w6sUR8p.mjs} +0 -0
  386. /package/dist/{esm-B3t30-13.mjs → esm-Ccx-3z8E.mjs} +0 -0
  387. /package/dist/{event-DFI0F1Ws.mjs → event-D5_UaIBZ.mjs} +0 -0
  388. /package/dist/{execution-attempt-repository-BoNwNybg.d.mts → execution-attempt-repository-BUah8hma.d.mts} +0 -0
  389. /package/dist/{execution-attempt-repository-CWbgCTwA.mjs → execution-attempt-repository-aabFKcXN.mjs} +0 -0
  390. /package/dist/{extension-context-BGNUn34r.d.mts → extension-context-BH31eOMv.d.mts} +0 -0
  391. /package/dist/{extension-discovery-Dx118u_N.d.mts → extension-discovery-CA2IhDRo.d.mts} +0 -0
  392. /package/dist/{extension-namespace-AaHKv6tQ.mjs → extension-namespace-Ct9L6SKr.mjs} +0 -0
  393. /package/dist/{extension-package-provenance-Dr7JXjLS.mjs → extension-package-provenance-C7oO5JAE.mjs} +0 -0
  394. /package/dist/{facet-De-2AP_o.mjs → facet-DE2NhSjl.mjs} +0 -0
  395. /package/dist/{filesystem-service-DtApanQk.d.mts → filesystem-service-CDYoiwWY.d.mts} +0 -0
  396. /package/dist/{handler-CFT7_osu.mjs → handler-Cc1MhaR4.mjs} +0 -0
  397. /package/dist/{host-CbaJg6D4.mjs → host-efiCv7-R.mjs} +0 -0
  398. /package/dist/{identity-B6RqbCn7.mjs → identity-DgTjgflr.mjs} +0 -0
  399. /package/dist/{index-DqS8eCAT.d.mts → index-B78CRVi9.d.mts} +0 -0
  400. /package/dist/{index-BNgNBDuW2.d.mts → index-B8v1-2-V2.d.mts} +0 -0
  401. /package/dist/{index-1AKlC3kZ.d.mts → index-BCU5oByg.d.mts} +0 -0
  402. /package/dist/{index-CIl66QhT.d.mts → index-BFS-2kcS.d.mts} +0 -0
  403. /package/dist/{index-Dv5aNxoa.d.mts → index-BGnQ0EyD.d.mts} +0 -0
  404. /package/dist/{index-qLkIGcgv2.d.mts → index-BPNfYEA22.d.mts} +0 -0
  405. /package/dist/{index-B4lidHiL.d.mts → index-BZoOYV-y.d.mts} +0 -0
  406. /package/dist/{index-C3n8beRR.d.mts → index-BbkcbY6d.d.mts} +0 -0
  407. /package/dist/{index-DSRxn5Zr2.d.mts → index-CVRT01082.d.mts} +0 -0
  408. /package/dist/{index-C0zo4Id_.d.mts → index-CjDQn6lw.d.mts} +0 -0
  409. /package/dist/{index-CUcEfh31.d.mts → index-D6liU_KS.d.mts} +0 -0
  410. /package/dist/{index-DLsopffG.d.mts → index-D6p17KPs.d.mts} +0 -0
  411. /package/dist/{index-DxxORQny.d.mts → index-D8ELwT5y.d.mts} +0 -0
  412. /package/dist/{index-5KVPGsig.d.mts → index-DAaQ--ki.d.mts} +0 -0
  413. /package/dist/{index-DK8lSIvY.d.mts → index-DM72_93s.d.mts} +0 -0
  414. /package/dist/{index-Dfv9hyZE.d.mts → index-DXQTkwLB.d.mts} +0 -0
  415. /package/dist/{index-DNN9jOVO.d.mts → index-DdVpWkaI.d.mts} +0 -0
  416. /package/dist/{index-C86rKLPD.d.mts → index-DfU8s_xP.d.mts} +0 -0
  417. /package/dist/{index-CrDp6vHG.d.mts → index-DiZ4LmyE.d.mts} +0 -0
  418. /package/dist/{index-CzKJC3Bt.d.mts → index-DjSUOMlr.d.mts} +0 -0
  419. /package/dist/{index-DO0QO0ux2.d.mts → index-DmX9W3xH2.d.mts} +0 -0
  420. /package/dist/{index-lLuIAmRB.d.mts → index-F7cVpFJ9.d.mts} +0 -0
  421. /package/dist/{index-D4FE3jHM2.d.mts → index-Htfr-K5U2.d.mts} +0 -0
  422. /package/dist/{index-tCFckLG6.d.mts → index-KdlZRuTp.d.mts} +0 -0
  423. /package/dist/{index-Bw7benCh.d.mts → index-gAyARaKS.d.mts} +0 -0
  424. /package/dist/{index-fpGFhEmI.d.mts → index-nkix3hP7.d.mts} +0 -0
  425. /package/dist/{index-DyBuGOvY.d.mts → index-tbjIqwa3.d.mts} +0 -0
  426. /package/dist/{json-value-DyMQrwGz.d.mts → json-value-Ymw2f8i_.d.mts} +0 -0
  427. /package/dist/{jsonl-transport-D4ch0vsf.mjs → jsonl-transport-Bg033Ng0.mjs} +0 -0
  428. /package/dist/{lib-BLdnqIFF.mjs → lib-BizqbepU.mjs} +0 -0
  429. /package/dist/{model-registry-CAqJYbXg.mjs → model-registry-CeDu27XL.mjs} +0 -0
  430. /package/dist/{model-registry-DVTFd0RF.mjs → model-registry-Cmregilq.mjs} +0 -0
  431. /package/dist/{modes-Dc9_sSbr.mjs → modes-DpHQos5B.mjs} +0 -0
  432. /package/dist/{namespace-CYYFqmtJ.d.mts → namespace-B5IFLQc-.d.mts} +0 -0
  433. /package/dist/{namespace-C-4xI2rm.d.mts → namespace-BCVKdu-U.d.mts} +0 -0
  434. /package/dist/{namespace-0TfAY2J7.mjs → namespace-BMdYJN_t.mjs} +0 -0
  435. /package/dist/{namespace-BZ7UQmW4.mjs → namespace-Bjr04AUK.mjs} +0 -0
  436. /package/dist/{namespace-BnNBM94X.mjs → namespace-Bo6-o_rW.mjs} +0 -0
  437. /package/dist/{namespace-E4ajXk0W.d.mts → namespace-C1pPZKtI.d.mts} +0 -0
  438. /package/dist/{namespace-CDoyzyV4.mjs → namespace-C9xmGXbW.mjs} +0 -0
  439. /package/dist/{namespace-Dwf7aOLt.d.mts → namespace-COHHDh2I.d.mts} +0 -0
  440. /package/dist/{namespace-CvCk6Y9i.d.mts → namespace-Cmu-5_P9.d.mts} +0 -0
  441. /package/dist/{namespace-DGi7tw_W.mjs → namespace-CnRQ8tCJ.mjs} +0 -0
  442. /package/dist/{namespace-DXrdGpbs.d.mts → namespace-CvK86QFk.d.mts} +0 -0
  443. /package/dist/{namespace-Bivbsfms.d.mts → namespace-DM5vykb7.d.mts} +0 -0
  444. /package/dist/{namespace-KYIbWPvl.mjs → namespace-J87EeVTm.mjs} +0 -0
  445. /package/dist/{namespace-CfNNUjVv.d.mts → namespace-UFcDEBJB.d.mts} +0 -0
  446. /package/dist/{namespace-l1Rcc4mp.d.mts → namespace-rJ3ycPMg.d.mts} +0 -0
  447. /package/dist/{namespace-XUB3XnBK.d.mts → namespace-s0e215xO.d.mts} +0 -0
  448. /package/dist/{orchestrator-shared-D2I9gyOl.d.mts → orchestrator-shared--srEeSaY.d.mts} +0 -0
  449. /package/dist/{out-og8659Ny.mjs → out-EjlaPopg.mjs} +0 -0
  450. /package/dist/{ownership-recovery-guard-BIB5uqgz.mjs → ownership-recovery-guard-C9h8K1jo.mjs} +0 -0
  451. /package/dist/{package-BecmlOXC.mjs → package-BCKYMTYG.mjs} +0 -0
  452. /package/dist/{package-D2zvQO7X.mjs → package-BwlW7N32.mjs} +0 -0
  453. /package/dist/{packages-Dj9Nul23.d.mts → packages-B98-WETs.d.mts} +0 -0
  454. /package/dist/{packages-DAw3Z011.mjs → packages-G3bMStlV.mjs} +0 -0
  455. /package/dist/{platform-BObC-WJA.mjs → platform-Cojuulx8.mjs} +0 -0
  456. /package/dist/{providers-BysYiNMO.mjs → providers-CahjB0Kh.mjs} +0 -0
  457. /package/dist/{providers-namespace-BA0JT--_.d.mts → providers-namespace-DRcl03bo.d.mts} +0 -0
  458. /package/dist/{quick-lru-bVGGo5bq.mjs → quick-lru-C1yB5RCQ.mjs} +0 -0
  459. /package/dist/{registry-Cu3eD3UY.mjs → registry-DNMjJ-Oj.mjs} +0 -0
  460. /package/dist/{repo-context-Dy6eE9cg.mjs → repo-context-cO-TLEGN.mjs} +0 -0
  461. /package/dist/{runtime-inputs-CIYLDuBM.d.mts → runtime-inputs-DBtVIy9h.d.mts} +0 -0
  462. /package/dist/{schema-B098Jz9p.d.mts → schema-BA1cHBbc.d.mts} +0 -0
  463. /package/dist/{schema-bfw9nz8B.mjs → schema-BnuyCklU.mjs} +0 -0
  464. /package/dist/{schema-introspection-BTS7FZT_.mjs → schema-introspection-_Yw9L_mB.mjs} +0 -0
  465. /package/dist/{schemas-BE-gfjGI.mjs → schemas-BNRFKQdz.mjs} +0 -0
  466. /package/dist/{schemas-A2hlgeNu.mjs → schemas-BmoFWBdh.mjs} +0 -0
  467. /package/dist/{schemas-DKy_XYjq.d.mts → schemas-CEJe8O6P.d.mts} +0 -0
  468. /package/dist/{schemas-DChhgfU0.d.mts → schemas-Cj6Gbqch.d.mts} +0 -0
  469. /package/dist/{schemas-D6JvwH-h.d.mts → schemas-Cq1d5tid.d.mts} +0 -0
  470. /package/dist/{schemas-BZyi7v9g.d.mts → schemas-CtzZDp29.d.mts} +0 -0
  471. /package/dist/{schemas-ADuQFkhH.d.mts → schemas-DJ2vMsgm.d.mts} +0 -0
  472. /package/dist/{schemas-DMxM4U1A.d.mts → schemas-D_-iXLQ9.d.mts} +0 -0
  473. /package/dist/{schemas-BEDq3Psz.mjs → schemas-DekYSXka.mjs} +0 -0
  474. /package/dist/{schemas-B3UNnzKG.mjs → schemas-Djjq4LLs.mjs} +0 -0
  475. /package/dist/{schemas-mLjTSUvJ.mjs → schemas-hTUdjOh7.mjs} +0 -0
  476. /package/dist/{semver-ByPlHR3P.mjs → semver-Cb5Um3tU.mjs} +0 -0
  477. /package/dist/{server-lifecycle-C5Vl58sN.mjs → server-lifecycle-BjbuCO-s.mjs} +0 -0
  478. /package/dist/{server-lifecycle-B8UabaW3.d.mts → server-lifecycle-DUKp1Fbf.d.mts} +0 -0
  479. /package/dist/{session-lineage-CoNs4WZy.d.mts → session-lineage-C3myyt5x.d.mts} +0 -0
  480. /package/dist/{shared-schemas-CKsgVsGX.mjs → shared-schemas-CnOyMY42.mjs} +0 -0
  481. /package/dist/{src-D9PYcdDS.mjs → src-Xn6SS74f.mjs} +0 -0
  482. /package/dist/{storage-namespace-DBuKMBth.mjs → storage-namespace-TBX8VgK3.mjs} +0 -0
  483. /package/dist/{storage-namespace-definition-Ct9ohqU0.mjs → storage-namespace-definition-BUpCw171.mjs} +0 -0
  484. /package/dist/{storage-namespace-definition-1uCuoHvM.d.mts → storage-namespace-definition-Cv0XiTXb.d.mts} +0 -0
  485. /package/dist/{supports-color-DG_rcVqJ.mjs → supports-color-CjiFmM1U.mjs} +0 -0
  486. /package/dist/{telemetry-Be3u4I7b.mjs → telemetry-DXMqxYcv.mjs} +0 -0
  487. /package/dist/{timeout-Bscg1B-y.mjs → timeout-CATUeNuL.mjs} +0 -0
  488. /package/dist/{tray-menu-service-BGwXKJYr.mjs → tray-menu-service-BRrnoqaY.mjs} +0 -0
  489. /package/dist/{types-nY8yr3th.d.mts → types-BRM1AZaP.d.mts} +0 -0
  490. /package/dist/{types-RWRXplnM.d.mts → types-BYEybzjX.d.mts} +0 -0
  491. /package/dist/{types-Bh2fQoxM.mjs → types-CsmvIK25.mjs} +0 -0
  492. /package/dist/{types-CbXf822E.d.mts → types-QRSc2AUU.d.mts} +0 -0
  493. /package/dist/{types-BlaguWul.d.mts → types-QsyX4H21.d.mts} +0 -0
  494. /package/dist/{types-KF8zuMhi.d.mts → types-hkExapGH.d.mts} +0 -0
  495. /package/dist/{ui-config-Bl2Wbkr-.mjs → ui-config-D1jxR-dU.mjs} +0 -0
  496. /package/dist/{variant-B5j5wR2p.mjs → variant-CmSVU3LE.mjs} +0 -0
  497. /package/dist/{window-registry-DWHz8TA5.mjs → window-registry-2MZdZPdA.mjs} +0 -0
  498. /package/dist/{window-registry-Dq5uOWpH.d.mts → window-registry-DeG37kt8.d.mts} +0 -0
  499. /package/dist/{zod-json-schema-DGWHUOK0.mjs → zod-json-schema-ZUmGtQhT.mjs} +0 -0
@@ -17,9 +17,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
17
17
  scope: _$zod.ZodString;
18
18
  context: _$zod.ZodOptional<_$zod.ZodString>;
19
19
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
20
- mobile: "mobile";
21
20
  desktop: "desktop";
22
21
  tablet: "tablet";
22
+ mobile: "mobile";
23
23
  }>>;
24
24
  }, _$zod_v4_core0.$strip>;
25
25
  category: _$zod.ZodString;
@@ -38,9 +38,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
38
38
  scope: _$zod.ZodString;
39
39
  context: _$zod.ZodOptional<_$zod.ZodString>;
40
40
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
41
- mobile: "mobile";
42
41
  desktop: "desktop";
43
42
  tablet: "tablet";
43
+ mobile: "mobile";
44
44
  }>>;
45
45
  }, _$zod_v4_core0.$strip>;
46
46
  category: _$zod.ZodString;
@@ -60,9 +60,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
60
60
  scope: _$zod.ZodString;
61
61
  context: _$zod.ZodOptional<_$zod.ZodString>;
62
62
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
63
- mobile: "mobile";
64
63
  desktop: "desktop";
65
64
  tablet: "tablet";
65
+ mobile: "mobile";
66
66
  }>>;
67
67
  }, _$zod_v4_core0.$strip>;
68
68
  category: _$zod.ZodString;
@@ -81,9 +81,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
81
81
  scope: _$zod.ZodOptional<_$zod.ZodString>;
82
82
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
83
83
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
84
- mobile: "mobile";
85
84
  desktop: "desktop";
86
85
  tablet: "tablet";
86
+ mobile: "mobile";
87
87
  }>>>;
88
88
  }, _$zod_v4_core0.$strip>>;
89
89
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -98,9 +98,9 @@ declare const PreferencesNamespace: _$_makaio_core0.BusNamespaceDefinition<"pref
98
98
  scope: _$zod.ZodString;
99
99
  context: _$zod.ZodOptional<_$zod.ZodString>;
100
100
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
101
- mobile: "mobile";
102
101
  desktop: "desktop";
103
102
  tablet: "tablet";
103
+ mobile: "mobile";
104
104
  }>>;
105
105
  }, _$zod_v4_core0.$strip>;
106
106
  category: _$zod.ZodString;
@@ -124,9 +124,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
124
124
  scope: _$zod.ZodString;
125
125
  context: _$zod.ZodOptional<_$zod.ZodString>;
126
126
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
127
- mobile: "mobile";
128
127
  desktop: "desktop";
129
128
  tablet: "tablet";
129
+ mobile: "mobile";
130
130
  }>>;
131
131
  }, _$zod_v4_core0.$strip>;
132
132
  category: _$zod.ZodString;
@@ -145,9 +145,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
145
145
  scope: _$zod.ZodString;
146
146
  context: _$zod.ZodOptional<_$zod.ZodString>;
147
147
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
148
- mobile: "mobile";
149
148
  desktop: "desktop";
150
149
  tablet: "tablet";
150
+ mobile: "mobile";
151
151
  }>>;
152
152
  }, _$zod_v4_core0.$strip>;
153
153
  category: _$zod.ZodString;
@@ -167,9 +167,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
167
167
  scope: _$zod.ZodString;
168
168
  context: _$zod.ZodOptional<_$zod.ZodString>;
169
169
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
170
- mobile: "mobile";
171
170
  desktop: "desktop";
172
171
  tablet: "tablet";
172
+ mobile: "mobile";
173
173
  }>>;
174
174
  }, _$zod_v4_core0.$strip>;
175
175
  category: _$zod.ZodString;
@@ -188,9 +188,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
188
188
  scope: _$zod.ZodOptional<_$zod.ZodString>;
189
189
  context: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodString>>;
190
190
  viewport: _$zod.ZodOptional<_$zod.ZodOptional<_$zod.ZodEnum<{
191
- mobile: "mobile";
192
191
  desktop: "desktop";
193
192
  tablet: "tablet";
193
+ mobile: "mobile";
194
194
  }>>>;
195
195
  }, _$zod_v4_core0.$strip>>;
196
196
  category: _$zod.ZodOptional<_$zod.ZodString>;
@@ -205,9 +205,9 @@ declare const PreferencesSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.F
205
205
  scope: _$zod.ZodString;
206
206
  context: _$zod.ZodOptional<_$zod.ZodString>;
207
207
  viewport: _$zod.ZodOptional<_$zod.ZodEnum<{
208
- mobile: "mobile";
209
208
  desktop: "desktop";
210
209
  tablet: "tablet";
210
+ mobile: "mobile";
211
211
  }>>;
212
212
  }, _$zod_v4_core0.$strip>;
213
213
  category: _$zod.ZodString;
@@ -1 +1 @@
1
- import{a as e}from"./ownership-recovery-guard-BIB5uqgz.mjs";import{SessionStorageSubjects as t}from"./services/session/storage/namespace.mjs";import"./session-CAKfa5o8.mjs";import{AgentSubjects as n,ApprovalSubjects as r,HarnessSubjects as i,computeMetaTags as a}from"@makaio/framework/contracts";import{BaseService as o}from"@makaio/framework/service-base";import{extractToolFilePath as s}from"@makaio/framework/tools";const c={"full-access":0,"always-ask":1,reject:2};function l(){return`apr_${crypto.randomUUID()}`}function u(e){switch(e){case`allow`:return`full-access`;case`deny`:return`reject`;case`ask`:return`always-ask`}}function d(e){if(!e?.length)return`neutral`;let t=a(e);return t.includes(`destructive`)?`destructive`:t.includes(`read-only`)?`safe`:`neutral`}function f(e,t){if(e)return t&&e.toolApprovalOverrides?.[t]!==void 0?e.toolApprovalOverrides[t]:e.approvalPolicy}function p(e,t,n,r){let i=r[t];if(!i?.length)return e;let a=e;for(let e of i){let t=n[e];t&&c[t]>c[a]&&(a=t)}return a}function m(e,t,n){return n.handled?n.data.allowedDirectories??void 0:t?[]:void 0}function h(e,t,n){if(!n||!e?.cwd)return{};let r;return(e.personaId||e.profileId)&&t&&(r=m(e.personaId,e.profileId,t)),{cwd:e.cwd,...r&&{allowedDirectories:r}}}function g(e,t,n){if(!(!e&&!t))return!n||!n.handled?{policy:`always-ask`}:{policy:u(n.data.action),...n.data.personaName&&{personaName:n.data.personaName},...n.data.profileName&&{profileName:n.data.profileName}}}function _(e,t){let n=t.harness?.toolCapabilityMap&&e.toolName?t.harness.toolCapabilityMap[e.toolName]:void 0;return{requestId:l(),toolCallId:e.toolCallId,toolName:e.toolName,args:e.args,agentId:e.agentId,sessionId:e.sessionId,adapterName:t.resolvedAdapterName,...t.personaName&&{personaName:t.personaName},...t.profileName&&{profileName:t.profileName},capabilities:n,riskLevel:d(n),reasoning:e.reasoning,createdAt:Date.now()}}var v=class extends o{logger=console;options;constructor(e,t={}){super(e),this.options=t}async onInit(){this.registerHandler(n.toolApprove,async e=>{let t=await this.getAgentMetadata(e.payload.agentId,e.payload.sessionId),n=(t?.personaId||t?.profileId)&&e.payload.toolName?await this.fetchRawEnrichedPolicy(t?.personaId,t?.profileId,e.payload.toolName):void 0,r=h(t,n,this.options.fileAccessRuleProvider),i=await this.checkFileAccessDenyReason(e.payload,r);if(i){e.setResult({action:`deny`,message:i,shouldAbort:!1});return}let a=await this.resolveSessionOverride(e.payload.sessionId);if(a===`full-access`){e.setResult({action:`allow`});return}if(a===`reject`){e.setResult({action:`deny`,message:`Tool use rejected by session approval policy override`,shouldAbort:!1});return}let o=await this.resolvePolicyWithContext({adapterName:e.payload.adapterName,toolName:e.payload.toolName},t,n);switch(a===`always-ask`?`always-ask`:o.policy){case`full-access`:e.setResult({action:`allow`});return;case`reject`:e.setResult({action:`deny`,message:`Tool use rejected by approval policy`,shouldAbort:!1});return;case`always-ask`:await this.dispatchAlwaysAskApproval(e.payload,e.setResult.bind(e),o);return}})}async dispatchAlwaysAskApproval(e,t,i){let a=_(e,i),o=new AbortController,s=this.bus.on(n.session.closed,()=>{o.abort()},{filter:{agentId:a.agentId,...e.adapterSessionId!==void 0&&{adapterSessionId:e.adapterSessionId}}});try{let e=await this.bus.requestOptional(r.request,a,{timeout:0,signal:o.signal});e.handled&&e.data.action===`allow`?t({action:`allow`,...e.data.updatedInput&&{updatedInput:e.data.updatedInput}}):t({action:`deny`,message:e.handled&&e.data.action===`deny`?e.data.message??`User denied tool execution`:`No approval handler available`,shouldAbort:!1})}catch{t({action:`deny`,message:o.signal.aborted?`Approval cancelled — agent session closed`:`Tool approval request failed`,shouldAbort:!1})}finally{s()}}async checkFileAccessDenyReason(e,t){if(!this.options.fileAccessRuleProvider||!t.cwd)return;let n=s(e.toolName,e.args,t.cwd);if(n)try{return(await this.options.fileAccessRuleProvider(t.cwd,t.allowedDirectories)).isDenied(n)?`Access denied: '${n}' is restricted by .makaioignore rules`:void 0}catch{return`Access denied: file access rules could not be evaluated`}}async fetchRawEnrichedPolicy(e,t,n){try{return await this.bus.requestOptional(r.resolveEnrichedPolicy,{toolName:n,personaId:e,profileId:t})}catch(r){return this.logger.error(`[ToolApprovalService] approval.resolveEnrichedPolicy failed; falling back to fail-closed`,{toolName:n,personaId:e,profileId:t,error:r}),{handled:!1}}}async resolvePolicyWithContext(e,t,n){let r=t?.adapterName??e.adapterName,i=g(t?.personaId,t?.profileId,n),a=await this.resolveHarnessPolicy(r,t?.harnessId,t?.clientId),o=f(a,e.toolName),s=i?.policy??o??`always-ask`,c=s;return a?.capabilityOverrides&&a.toolCapabilityMap&&e.toolName&&(c=p(s,e.toolName,a.capabilityOverrides,a.toolCapabilityMap)),{policy:c,harness:a,agent:t,resolvedAdapterName:r,...i?.personaName&&{personaName:i.personaName},...i?.profileName&&{profileName:i.profileName}}}async getAgentMetadata(t,n){try{if(n){let{agents:r}=await this.bus.request(e.listBySession,{sessionId:n});return r.find(e=>e.agentId===t)??null}let r=await this.bus.requestOptional(e.get,{agentId:t});return r.handled?r.data.agent:null}catch{return null}}async resolveSessionOverride(e){if(e)try{let n=await this.bus.requestOptional(t.get,{sessionId:e});return n.handled?n.data.session?.approvalPolicyOverride??void 0:void 0}catch{return}}async resolveHarnessPolicy(e,t,n){try{let r=await this.bus.request(i.resolve,{adapterName:e,...t&&{profileHarnessId:t},...n&&{clientId:n}});return{approvalPolicy:r.approvalPolicy,capabilityOverrides:r.capabilityOverrides,toolCapabilityMap:r.toolCapabilityMap,toolApprovalOverrides:r.toolApprovalOverrides}}catch{return}}};export{v as t};
1
+ import{a as e}from"./ownership-recovery-guard-C9h8K1jo.mjs";import{SessionStorageSubjects as t}from"./services/session/storage/namespace.mjs";import"./session-6UG5udTX.mjs";import{AgentSubjects as n,ApprovalSubjects as r,HarnessSubjects as i,computeMetaTags as a}from"@makaio/framework/contracts";import{BaseService as o}from"@makaio/framework/service-base";import{extractToolFilePath as s}from"@makaio/framework/tools";const c={"full-access":0,"always-ask":1,reject:2};function l(){return`apr_${crypto.randomUUID()}`}function u(e){switch(e){case`allow`:return`full-access`;case`deny`:return`reject`;case`ask`:return`always-ask`}}function d(e){if(!e?.length)return`neutral`;let t=a(e);return t.includes(`destructive`)?`destructive`:t.includes(`read-only`)?`safe`:`neutral`}function f(e,t){if(e)return t&&e.toolApprovalOverrides?.[t]!==void 0?e.toolApprovalOverrides[t]:e.approvalPolicy}function p(e,t,n,r){let i=r[t];if(!i?.length)return e;let a=e;for(let e of i){let t=n[e];t&&c[t]>c[a]&&(a=t)}return a}function m(e,t,n){return n.handled?n.data.allowedDirectories??void 0:t?[]:void 0}function h(e,t,n){if(!n||!e?.cwd)return{};let r;return(e.personaId||e.profileId)&&t&&(r=m(e.personaId,e.profileId,t)),{cwd:e.cwd,...r&&{allowedDirectories:r}}}function g(e,t,n){if(!(!e&&!t))return!n||!n.handled?{policy:`always-ask`}:{policy:u(n.data.action),...n.data.personaName&&{personaName:n.data.personaName},...n.data.profileName&&{profileName:n.data.profileName}}}function _(e,t){let n=t.harness?.toolCapabilityMap&&e.toolName?t.harness.toolCapabilityMap[e.toolName]:void 0;return{requestId:l(),toolCallId:e.toolCallId,toolName:e.toolName,args:e.args,agentId:e.agentId,sessionId:e.sessionId,adapterName:t.resolvedAdapterName,...t.personaName&&{personaName:t.personaName},...t.profileName&&{profileName:t.profileName},capabilities:n,riskLevel:d(n),reasoning:e.reasoning,createdAt:Date.now()}}var v=class extends o{logger=console;options;constructor(e,t={}){super(e),this.options=t}async onInit(){this.registerHandler(n.toolApprove,async e=>{let t=await this.getAgentMetadata(e.payload.agentId,e.payload.sessionId),n=(t?.personaId||t?.profileId)&&e.payload.toolName?await this.fetchRawEnrichedPolicy(t?.personaId,t?.profileId,e.payload.toolName):void 0,r=h(t,n,this.options.fileAccessRuleProvider),i=await this.checkFileAccessDenyReason(e.payload,r);if(i){e.setResult({action:`deny`,message:i,shouldAbort:!1});return}let a=await this.resolveSessionOverride(e.payload.sessionId);if(a===`full-access`){e.setResult({action:`allow`});return}if(a===`reject`){e.setResult({action:`deny`,message:`Tool use rejected by session approval policy override`,shouldAbort:!1});return}let o=await this.resolvePolicyWithContext({adapterName:e.payload.adapterName,toolName:e.payload.toolName},t,n);switch(a===`always-ask`?`always-ask`:o.policy){case`full-access`:e.setResult({action:`allow`});return;case`reject`:e.setResult({action:`deny`,message:`Tool use rejected by approval policy`,shouldAbort:!1});return;case`always-ask`:await this.dispatchAlwaysAskApproval(e.payload,e.setResult.bind(e),o);return}})}async dispatchAlwaysAskApproval(e,t,i){let a=_(e,i),o=new AbortController,s=this.bus.on(n.session.closed,()=>{o.abort()},{filter:{agentId:a.agentId,...e.adapterSessionId!==void 0&&{adapterSessionId:e.adapterSessionId}}});try{let e=await this.bus.requestOptional(r.request,a,{timeout:0,signal:o.signal});e.handled&&e.data.action===`allow`?t({action:`allow`,...e.data.updatedInput&&{updatedInput:e.data.updatedInput}}):t({action:`deny`,message:e.handled&&e.data.action===`deny`?e.data.message??`User denied tool execution`:`No approval handler available`,shouldAbort:!1})}catch{t({action:`deny`,message:o.signal.aborted?`Approval cancelled — agent session closed`:`Tool approval request failed`,shouldAbort:!1})}finally{s()}}async checkFileAccessDenyReason(e,t){if(!this.options.fileAccessRuleProvider||!t.cwd)return;let n=s(e.toolName,e.args,t.cwd);if(n)try{return(await this.options.fileAccessRuleProvider(t.cwd,t.allowedDirectories)).isDenied(n)?`Access denied: '${n}' is restricted by .makaioignore rules`:void 0}catch{return`Access denied: file access rules could not be evaluated`}}async fetchRawEnrichedPolicy(e,t,n){try{return await this.bus.requestOptional(r.resolveEnrichedPolicy,{toolName:n,personaId:e,profileId:t})}catch(r){return this.logger.error(`[ToolApprovalService] approval.resolveEnrichedPolicy failed; falling back to fail-closed`,{toolName:n,personaId:e,profileId:t,error:r}),{handled:!1}}}async resolvePolicyWithContext(e,t,n){let r=t?.adapterName??e.adapterName,i=g(t?.personaId,t?.profileId,n),a=await this.resolveHarnessPolicy(r,t?.harnessId,t?.clientId),o=f(a,e.toolName),s=i?.policy??o??`always-ask`,c=s;return a?.capabilityOverrides&&a.toolCapabilityMap&&e.toolName&&(c=p(s,e.toolName,a.capabilityOverrides,a.toolCapabilityMap)),{policy:c,harness:a,agent:t,resolvedAdapterName:r,...i?.personaName&&{personaName:i.personaName},...i?.profileName&&{profileName:i.profileName}}}async getAgentMetadata(t,n){try{if(n){let{agents:r}=await this.bus.request(e.listBySession,{sessionId:n});return r.find(e=>e.agentId===t)??null}let r=await this.bus.requestOptional(e.get,{agentId:t});return r.handled?r.data.agent:null}catch{return null}}async resolveSessionOverride(e){if(e)try{let n=await this.bus.requestOptional(t.get,{sessionId:e});return n.handled?n.data.session?.approvalPolicyOverride??void 0:void 0}catch{return}}async resolveHarnessPolicy(e,t,n){try{let r=await this.bus.request(i.resolve,{adapterName:e,...t&&{profileHarnessId:t},...n&&{clientId:n}});return{approvalPolicy:r.approvalPolicy,capabilityOverrides:r.capabilityOverrides,toolCapabilityMap:r.toolCapabilityMap,toolApprovalOverrides:r.toolApprovalOverrides}}catch{return}}};export{v as t};
@@ -1 +1 @@
1
- import{l as e}from"./framework-packages-DdCJ4JsE.mjs";import{FILE_ACCESS_RULES_KEY as t,extractToolFilePath as n}from"@makaio/framework/tools";function r(){let t=new Map;return{filter:e=>!!e.tools?.createToolsets,async processActivated(n,r,i){let a=i.getService(e);if(!a)throw Error(`ToolRegistry is not available. Ensure toolRegistryPackage is included in the composition root.`);let o=r.tools.createToolsets(i),s=[];try{for(let e of o)await a.register(e),s.push(()=>a.deregister(e.metadata.name))}catch(e){for(let e=s.length-1;e>=0;--e)try{await s[e]()}catch(e){console.error(`[ToolContributionProcessor] Rollback error for "${n}":`,e)}throw e}t.set(n,s)},async processStopped(e){let n=t.get(e);if(n){for(let t=n.length-1;t>=0;--t)try{await n[t]()}catch(t){console.error(`[ToolContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}export{n,r,t};
1
+ import{l as e}from"./framework-packages-CCIReKIe.mjs";import{FILE_ACCESS_RULES_KEY as t,extractToolFilePath as n}from"@makaio/framework/tools";function r(){let t=new Map;return{filter:e=>!!e.tools?.createToolsets,async processActivated(n,r,i){let a=i.getService(e);if(!a)throw Error(`ToolRegistry is not available. Ensure toolRegistryPackage is included in the composition root.`);let o=r.tools.createToolsets(i),s=[];try{for(let e of o)await a.register(e),s.push(()=>a.deregister(e.metadata.name))}catch(e){for(let e=s.length-1;e>=0;--e)try{await s[e]()}catch(e){console.error(`[ToolContributionProcessor] Rollback error for "${n}":`,e)}throw e}t.set(n,s)},async processStopped(e){let n=t.get(e);if(n){for(let t=n.length-1;t>=0;--t)try{await n[t]()}catch(t){console.error(`[ToolContributionProcessor] Deregister error for "${e}":`,t)}t.delete(e)}}}}export{n,r,t};
@@ -1,5 +1,5 @@
1
- import { x as ArtifactRevision$1 } from "./schemas-CXCdmM5K.mjs";
2
- import { l as JsonValue$1 } from "./json-value-DyMQrwGz.mjs";
1
+ import { x as ArtifactRevision$1 } from "./schemas-CKVm28Oy.mjs";
2
+ import { l as JsonValue$1 } from "./json-value-Ymw2f8i_.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
5
5
 
@@ -1,6 +1,6 @@
1
- import { l as JsonValue$1 } from "./json-value-DyMQrwGz.mjs";
2
- import { s as MessageBlock$1 } from "./index-BZrlHkpM2.mjs";
3
- import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-1uCuoHvM.mjs";
1
+ import { l as JsonValue$1 } from "./json-value-Ymw2f8i_.mjs";
2
+ import { s as MessageBlock$1 } from "./index-De_oh9M-2.mjs";
3
+ import { t as ContractStorageNamespaceDefinition } from "./storage-namespace-definition-Cv0XiTXb.mjs";
4
4
  import * as _$zod from "zod";
5
5
  import { z } from "zod";
6
6
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -1145,8 +1145,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1145
1145
  type: z.ZodLiteral<"locality.degraded">;
1146
1146
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1147
1147
  intent: z.ZodEnum<{
1148
- fork: "fork";
1149
1148
  resume: "resume";
1149
+ fork: "fork";
1150
1150
  }>;
1151
1151
  verdictKind: z.ZodLiteral<"degrade">;
1152
1152
  reason: z.ZodEnum<{
@@ -1171,8 +1171,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
1171
1171
  turnId: z.ZodOptional<z.ZodString>;
1172
1172
  }, z.core.$strip>, z.ZodObject<{
1173
1173
  intent: z.ZodEnum<{
1174
- fork: "fork";
1175
1174
  resume: "resume";
1175
+ fork: "fork";
1176
1176
  }>;
1177
1177
  verdictKind: z.ZodLiteral<"foreign">;
1178
1178
  foreignMachineId: z.ZodString;
@@ -1552,8 +1552,8 @@ type Turn$1 = z.infer<typeof TurnSchema$1>;
1552
1552
  */
1553
1553
  declare const MessageRoutingStatusSchema: z.ZodEnum<{
1554
1554
  completed: "completed";
1555
- acknowledged: "acknowledged";
1556
1555
  sent: "sent";
1556
+ acknowledged: "acknowledged";
1557
1557
  }>;
1558
1558
  type MessageRoutingStatus = z.infer<typeof MessageRoutingStatusSchema>;
1559
1559
  /**
@@ -1564,8 +1564,8 @@ declare const MessageRoutingSchema$1: z.ZodObject<{
1564
1564
  agentId: z.ZodString;
1565
1565
  status: z.ZodEnum<{
1566
1566
  completed: "completed";
1567
- acknowledged: "acknowledged";
1568
1567
  sent: "sent";
1568
+ acknowledged: "acknowledged";
1569
1569
  }>;
1570
1570
  timestamp: z.ZodNumber;
1571
1571
  error: z.ZodOptional<z.ZodString>;
@@ -4271,8 +4271,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
4271
4271
  type: z.ZodLiteral<"locality.degraded">;
4272
4272
  payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
4273
4273
  intent: z.ZodEnum<{
4274
- fork: "fork";
4275
4274
  resume: "resume";
4275
+ fork: "fork";
4276
4276
  }>;
4277
4277
  verdictKind: z.ZodLiteral<"degrade">;
4278
4278
  reason: z.ZodEnum<{
@@ -4297,8 +4297,8 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
4297
4297
  turnId: z.ZodOptional<z.ZodString>;
4298
4298
  }, z.core.$strip>, z.ZodObject<{
4299
4299
  intent: z.ZodEnum<{
4300
- fork: "fork";
4301
4300
  resume: "resume";
4301
+ fork: "fork";
4302
4302
  }>;
4303
4303
  verdictKind: z.ZodLiteral<"foreign">;
4304
4304
  foreignMachineId: z.ZodString;
@@ -10988,8 +10988,8 @@ declare const SessionSchemas: {
10988
10988
  type: _$zod.ZodLiteral<"locality.degraded">;
10989
10989
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
10990
10990
  intent: _$zod.ZodEnum<{
10991
- fork: "fork";
10992
10991
  resume: "resume";
10992
+ fork: "fork";
10993
10993
  }>;
10994
10994
  verdictKind: _$zod.ZodLiteral<"degrade">;
10995
10995
  reason: _$zod.ZodEnum<{
@@ -11014,8 +11014,8 @@ declare const SessionSchemas: {
11014
11014
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11015
11015
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11016
11016
  intent: _$zod.ZodEnum<{
11017
- fork: "fork";
11018
11017
  resume: "resume";
11018
+ fork: "fork";
11019
11019
  }>;
11020
11020
  verdictKind: _$zod.ZodLiteral<"foreign">;
11021
11021
  foreignMachineId: _$zod.ZodString;
@@ -11660,8 +11660,8 @@ declare const SessionSchemas: {
11660
11660
  type: _$zod.ZodLiteral<"locality.degraded">;
11661
11661
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
11662
11662
  intent: _$zod.ZodEnum<{
11663
- fork: "fork";
11664
11663
  resume: "resume";
11664
+ fork: "fork";
11665
11665
  }>;
11666
11666
  verdictKind: _$zod.ZodLiteral<"degrade">;
11667
11667
  reason: _$zod.ZodEnum<{
@@ -11686,8 +11686,8 @@ declare const SessionSchemas: {
11686
11686
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11687
11687
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11688
11688
  intent: _$zod.ZodEnum<{
11689
- fork: "fork";
11690
11689
  resume: "resume";
11690
+ fork: "fork";
11691
11691
  }>;
11692
11692
  verdictKind: _$zod.ZodLiteral<"foreign">;
11693
11693
  foreignMachineId: _$zod.ZodString;
@@ -11790,8 +11790,8 @@ declare const SessionSchemas: {
11790
11790
  timestamp: _$zod.ZodNumber;
11791
11791
  }, _$zod_v4_core0.$strip>, _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
11792
11792
  intent: _$zod.ZodEnum<{
11793
- fork: "fork";
11794
11793
  resume: "resume";
11794
+ fork: "fork";
11795
11795
  }>;
11796
11796
  verdictKind: _$zod.ZodLiteral<"degrade">;
11797
11797
  reason: _$zod.ZodEnum<{
@@ -11816,8 +11816,8 @@ declare const SessionSchemas: {
11816
11816
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
11817
11817
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
11818
11818
  intent: _$zod.ZodEnum<{
11819
- fork: "fork";
11820
11819
  resume: "resume";
11820
+ fork: "fork";
11821
11821
  }>;
11822
11822
  verdictKind: _$zod.ZodLiteral<"foreign">;
11823
11823
  foreignMachineId: _$zod.ZodString;
@@ -11835,8 +11835,8 @@ declare const SessionSchemas: {
11835
11835
  maxTokens: _$zod.ZodNumber;
11836
11836
  percentage: _$zod.ZodNumber;
11837
11837
  level: _$zod.ZodEnum<{
11838
- warn: "warn";
11839
11838
  ok: "ok";
11839
+ warn: "warn";
11840
11840
  critical: "critical";
11841
11841
  }>;
11842
11842
  lastUpdatedAt: _$zod.ZodNumber;
@@ -12176,8 +12176,8 @@ declare const SessionSchemas: {
12176
12176
  type: _$zod.ZodLiteral<"locality.degraded">;
12177
12177
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
12178
12178
  intent: _$zod.ZodEnum<{
12179
- fork: "fork";
12180
12179
  resume: "resume";
12180
+ fork: "fork";
12181
12181
  }>;
12182
12182
  verdictKind: _$zod.ZodLiteral<"degrade">;
12183
12183
  reason: _$zod.ZodEnum<{
@@ -12202,8 +12202,8 @@ declare const SessionSchemas: {
12202
12202
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
12203
12203
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
12204
12204
  intent: _$zod.ZodEnum<{
12205
- fork: "fork";
12206
12205
  resume: "resume";
12206
+ fork: "fork";
12207
12207
  }>;
12208
12208
  verdictKind: _$zod.ZodLiteral<"foreign">;
12209
12209
  foreignMachineId: _$zod.ZodString;
@@ -1,4 +1,4 @@
1
- import { r as LogImportMode, t as LogImporterInfo } from "./index-DO0QO0ux2.mjs";
1
+ import { r as LogImportMode, t as LogImporterInfo } from "./index-DmX9W3xH2.mjs";
2
2
  import * as _$_makaio_bus_core0 from "@makaio/framework/bus";
3
3
  import { IMakaioBus } from "@makaio/framework/bus";
4
4
  import { LogImportOrchestrator, LogImporter } from "@makaio/framework/adapters";
@@ -1,4 +1,4 @@
1
- import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-FkLOBJgq.mjs";
1
+ import { r as PageSurfaceConfig, s as SurfaceId } from "../schemas-LiiyNNpr.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -2309,8 +2309,8 @@ declare const UiSchemas: {
2309
2309
  ready: z.ZodObject<{
2310
2310
  surface: z.ZodEnum<{
2311
2311
  tray: "tray";
2312
- web: "web";
2313
2312
  mobile: "mobile";
2313
+ web: "web";
2314
2314
  electron: "electron";
2315
2315
  electrobun: "electrobun";
2316
2316
  }>;
@@ -2409,8 +2409,8 @@ declare const UiNamespace: _$_makaio_core0.BusNamespaceDefinition<"ui", {
2409
2409
  ready: _$zod.ZodObject<{
2410
2410
  surface: _$zod.ZodEnum<{
2411
2411
  tray: "tray";
2412
- web: "web";
2413
2412
  mobile: "mobile";
2413
+ web: "web";
2414
2414
  electron: "electron";
2415
2415
  electrobun: "electrobun";
2416
2416
  }>;
@@ -2450,8 +2450,8 @@ declare const UiSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjec
2450
2450
  ready: _$zod.ZodObject<{
2451
2451
  surface: _$zod.ZodEnum<{
2452
2452
  tray: "tray";
2453
- web: "web";
2454
2453
  mobile: "mobile";
2454
+ web: "web";
2455
2455
  electron: "electron";
2456
2456
  electrobun: "electrobun";
2457
2457
  }>;
@@ -15,8 +15,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
15
15
  readonly request: _$zod.ZodObject<{
16
16
  surface: _$zod.ZodOptional<_$zod.ZodEnum<{
17
17
  tray: "tray";
18
- web: "web";
19
18
  mobile: "mobile";
19
+ web: "web";
20
20
  electron: "electron";
21
21
  electrobun: "electrobun";
22
22
  }>>;
@@ -35,8 +35,8 @@ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
35
35
  level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
36
36
  surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
37
37
  tray: "tray";
38
- web: "web";
39
38
  mobile: "mobile";
39
+ web: "web";
40
40
  electron: "electron";
41
41
  electrobun: "electrobun";
42
42
  }>>]>>;
@@ -55,8 +55,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
55
55
  readonly request: _$zod.ZodObject<{
56
56
  surface: _$zod.ZodOptional<_$zod.ZodEnum<{
57
57
  tray: "tray";
58
- web: "web";
59
58
  mobile: "mobile";
59
+ web: "web";
60
60
  electron: "electron";
61
61
  electrobun: "electrobun";
62
62
  }>>;
@@ -75,8 +75,8 @@ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubj
75
75
  level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
76
76
  surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
77
77
  tray: "tray";
78
- web: "web";
79
78
  mobile: "mobile";
79
+ web: "web";
80
80
  electron: "electron";
81
81
  electrobun: "electrobun";
82
82
  }>>]>>;
@@ -1,2 +1,2 @@
1
- import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-FkLOBJgq.mjs";
1
+ import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-LiiyNNpr.mjs";
2
2
  export { PageMetadata, PageSchemas, PageSurfaceConfig, SurfaceCapability, SurfaceCapabilitySchema, SurfaceDeclaration, SurfaceId, SurfaceIdSchema, isPageVisibleOnSurface };
@@ -1 +1 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{t}from"./semver-ByPlHR3P.mjs";import{z as n}from"zod";var r=e(t(),1);const i=n.string().min(1).refine(e=>e.trim().length>0&&(0,r.validRange)(e)!==null,{message:`Must be a valid semver range (e.g. ">=1.0.0 <2.0.0", "^1.5.0")`});function a(e,t){return(0,r.satisfies)(e,t,{includePrerelease:!0})}function o(e){let t=(0,r.validRange)(e);return t===`*`||t===`>=0.0.0`||t===`>=0.0.0-0`}const s=n.string().min(1).refine(e=>(0,r.valid)(e)!==null&&!e.startsWith(`v`),{message:`Must be a valid semver version (e.g. "1.0.0")`});export{a as i,i as n,o as r,s as t};
1
+ import{o as e}from"./chunk-DTipWd-i.mjs";import{t}from"./semver-Cb5Um3tU.mjs";import{z as n}from"zod";var r=e(t(),1);const i=n.string().min(1).refine(e=>e.trim().length>0&&(0,r.validRange)(e)!==null,{message:`Must be a valid semver range (e.g. ">=1.0.0 <2.0.0", "^1.5.0")`});function a(e,t){return(0,r.satisfies)(e,t,{includePrerelease:!0})}function o(e){let t=(0,r.validRange)(e);return t===`*`||t===`>=0.0.0`||t===`>=0.0.0-0`}const s=n.string().min(1).refine(e=>(0,r.valid)(e)!==null&&!e.startsWith(`v`),{message:`Must be a valid semver version (e.g. "1.0.0")`});export{a as i,i as n,o as r,s as t};
@@ -1,4 +1,4 @@
1
- import { p as ArtifactRelation, x as ArtifactRevision$1 } from "./schemas-CXCdmM5K.mjs";
1
+ import { p as ArtifactRelation, x as ArtifactRevision$1 } from "./schemas-CKVm28Oy.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
4
 
@@ -1 +1 @@
1
- import{n as e,t}from"./modes-Dc9_sSbr.mjs";import{z as n}from"zod";const r=n.enum([`none`,`low`,`medium`,`high`,`extra-high`]),i=n.union([n.number(),n.string()]),a=n.object({none:i,low:i,medium:i,high:i,"extra-high":i}).partial(),o=n.object({modes:n.array(n.enum(t)).nonempty(),vocabularyBiasing:n.boolean().optional()}),s=n.object({modes:n.array(n.enum(e)).nonempty(),voiceSelection:n.boolean().optional(),voiceInstructions:n.boolean().optional(),outputFormats:n.array(n.string()).optional()}),c=n.object({vision:n.boolean().optional(),toolCalling:n.boolean().optional(),parallelToolCalls:n.boolean().optional(),structuredOutput:n.boolean().optional(),pdfUpload:n.boolean().optional(),speechToText:o.optional(),textToSpeech:s.optional()}),l=n.object({inputPerMillion:n.number(),inputCachedPerMillion:n.number().optional(),cacheWritePerMillion:n.number().optional(),outputPerMillion:n.number()}),u=n.object({multiplier:n.number()}),d=n.object({token:l.optional(),request:u.optional()}),f=n.object({maxOutputTokens:n.number().optional(),capabilities:c.optional(),pricing:d.optional(),includedInSubscription:n.boolean().optional(),description:n.string().optional()}),p=n.object({name:n.string(),friendlyName:n.string().optional(),family:n.string().optional(),contextWindowSize:n.number(),labId:n.string(),supportedReasoningLevels:a.optional(),metadata:f.optional()}),m=p,h=n.enum([`disabled`,`enabled`,`visible`]),g=n.enum([`allowlist`,`show-all`]);function _(e,t,n){return n?.[e]??(t===`allowlist`?`disabled`:`visible`)}export{r as a,p as i,h as n,m as o,_ as r,a as s,g as t};
1
+ import{n as e,t}from"./modes-DpHQos5B.mjs";import{z as n}from"zod";const r=n.enum([`none`,`low`,`medium`,`high`,`extra-high`]),i=n.union([n.number(),n.string()]),a=n.object({none:i,low:i,medium:i,high:i,"extra-high":i}).partial(),o=n.object({modes:n.array(n.enum(t)).nonempty(),vocabularyBiasing:n.boolean().optional()}),s=n.object({modes:n.array(n.enum(e)).nonempty(),voiceSelection:n.boolean().optional(),voiceInstructions:n.boolean().optional(),outputFormats:n.array(n.string()).optional()}),c=n.object({vision:n.boolean().optional(),toolCalling:n.boolean().optional(),parallelToolCalls:n.boolean().optional(),structuredOutput:n.boolean().optional(),pdfUpload:n.boolean().optional(),speechToText:o.optional(),textToSpeech:s.optional()}),l=n.object({inputPerMillion:n.number(),inputCachedPerMillion:n.number().optional(),cacheWritePerMillion:n.number().optional(),outputPerMillion:n.number()}),u=n.object({multiplier:n.number()}),d=n.object({token:l.optional(),request:u.optional()}),f=n.object({maxOutputTokens:n.number().optional(),capabilities:c.optional(),pricing:d.optional(),includedInSubscription:n.boolean().optional(),description:n.string().optional()}),p=n.object({name:n.string(),friendlyName:n.string().optional(),family:n.string().optional(),contextWindowSize:n.number(),labId:n.string(),supportedReasoningLevels:a.optional(),metadata:f.optional()}),m=p,h=n.enum([`disabled`,`enabled`,`visible`]),g=n.enum([`allowlist`,`show-all`]);function _(e,t,n){return n?.[e]??(t===`allowlist`?`disabled`:`visible`)}export{r as a,p as i,h as n,m as o,_ as r,a as s,g as t};
@@ -1 +1 @@
1
- import{n as e}from"./json-value-DM-EjTC1.mjs";import{n as t}from"./capability-BnQx1BWc.mjs";import{z as n}from"zod";const r=n.enum([`wait-in-process`,`exit-and-redispatch`,`exit-and-resume`]),i=`worker`,a=`makaio.runtime-node.piscina-local`,o=1,s=n.object({version:n.literal(1),providerId:n.string().min(1),providerData:e}).strict(),c={source:128,code:64,summary:512,observedAt:64},l=n.object({source:n.string().min(1).max(c.source),summary:n.string().min(1).max(c.summary),observedAt:n.iso.datetime({offset:!0}).max(c.observedAt),code:n.string().min(1).max(c.code).optional()}).strict(),u=`exhaustive-search-unavailable`,d=`no-allocation-observed`,f=`ambiguous-allocation-match`,p=`pre-request-rejection`,m=[`unknown`,`provisioning`,`ready`,`running`,`suspended`,`terminal`,`absent`],h=n.enum(m),g=n.object({state:h,allocationRef:s,evidence:e.optional(),completionEvidence:l.optional()}),_=[`local-directory`,`workspace-snapshot`],v=n.enum(_),y=n.string().min(1).refine(e=>!e.startsWith(`/`)&&!/^[A-Za-z]:[/\\]/.test(e),{message:`sourcePath must be relative (no leading / or drive letter)`}),b=n.object({kind:n.literal(`local-directory`),workspaceId:n.string().min(1),rootDigest:n.string().min(1),sourcePath:y}).strict(),x=n.object({kind:n.literal(`workspace-snapshot`),snapshotId:n.string().min(1),digest:n.string().min(1),sourcePath:y}).strict(),S=n.discriminatedUnion(`kind`,[b,x]),C=/^sha(?:256|384|512)-[A-Za-z0-9+/]+=*$/,w=n.object({packageName:n.string().min(1),version:n.string().min(1),entrypoint:n.string().min(1).refine(e=>!e.includes(`node_modules`)&&!e.startsWith(`/`)&&!/^[A-Za-z]:[/\\]/.test(e),{message:`entrypoint must be package-relative (no node_modules, no absolute path)`}),integrity:n.string().min(1).refine(e=>C.test(e),{message:`integrity must be a valid SRI hash (sha256-..., sha384-..., or sha512-...)`})}).strict(),T=n.object({maxRuntimeMs:n.number().int().positive().optional(),persistentStorage:n.boolean(),customCapabilities:n.array(n.string().min(1)).default([]),suspensionStrategy:r.default(`wait-in-process`),supportsRecovery:n.boolean().default(!1),materializationModes:n.array(v).min(1).default([`local-directory`])}),E=n.object({maxRuntimeMs:n.number().int().positive().optional(),persistentStorage:n.boolean().optional(),customCapabilities:n.array(n.string().min(1)).default([]),recoverableAllocation:n.boolean().optional(),materializationModes:n.array(v).optional()}),D=[`provisioner-process-bound`,`provider-managed`],O=n.enum(D),k=[`found`,`confirmed-absent`,`unknown`],A=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`found`),allocationRef:s}).strict(),n.object({kind:n.literal(`confirmed-absent`),evidence:l}).strict(),n.object({kind:n.literal(`unknown`),evidence:l}).strict()]),j=n.enum([`accepted`,`duplicate`,`conflict`,`fenced`]);var M=class extends Error{constructor(e){super(e),this.name=`ProviderAllocationRefError`}};function N(e,t){let n=s.shape.providerId.parse(e);return{build:e=>{let r=t.parse(e);return{version:1,providerId:n,providerData:s.shape.providerData.parse(r)}},parse:e=>{if(e.version!==1)throw new M(`Unsupported allocation ref version ${String(e.version)}, expected 1`);if(e.providerId!==n)throw new M(`Allocation ref provider '${e.providerId}' does not match this provider '${n}'`);let r=t.safeParse(e.providerData);if(!r.success)throw new M(`Invalid provider data in allocation ref: ${r.error.message}`);return r.data}}}function P(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),r=n.charCodeAt(n.length-1);return`${r>=55296&&r<=56319?n.slice(0,-1):n}…`}function F(e,t,n){let r=c.summary;return l.parse({source:e,summary:P(n,r),observedAt:new Date().toISOString(),...t===void 0?{}:{code:t}})}function I(e,n){return e.emit(t.register,{capabilityId:i,provider:n})}function L(e,n){return e.emit(t.unregister,{capabilityId:i,providerId:n})}export{E as A,c as C,T as D,O as E,r as M,w as O,A as S,i as T,j as _,N as a,k as b,g as c,l as d,u as f,d as g,v as h,M as i,x as j,S as k,h as l,_ as m,L as n,m as o,b as p,F as r,f as s,I as t,a as u,p as v,D as w,s as x,o as y};
1
+ import{n as e}from"./json-value-DM-EjTC1.mjs";import{n as t}from"./capability-DXHYfKK0.mjs";import{z as n}from"zod";const r=n.enum([`wait-in-process`,`exit-and-redispatch`,`exit-and-resume`]),i=`worker`,a=`makaio.runtime-node.piscina-local`,o=1,s=n.object({version:n.literal(1),providerId:n.string().min(1),providerData:e}).strict(),c={source:128,code:64,summary:512,observedAt:64},l=n.object({source:n.string().min(1).max(c.source),summary:n.string().min(1).max(c.summary),observedAt:n.iso.datetime({offset:!0}).max(c.observedAt),code:n.string().min(1).max(c.code).optional()}).strict(),u=`exhaustive-search-unavailable`,d=`no-allocation-observed`,f=`ambiguous-allocation-match`,p=`pre-request-rejection`,m=[`unknown`,`provisioning`,`ready`,`running`,`suspended`,`terminal`,`absent`],h=n.enum(m),g=n.object({state:h,allocationRef:s,evidence:e.optional(),completionEvidence:l.optional()}),_=[`local-directory`,`workspace-snapshot`],v=n.enum(_),y=n.string().min(1).refine(e=>!e.startsWith(`/`)&&!/^[A-Za-z]:[/\\]/.test(e),{message:`sourcePath must be relative (no leading / or drive letter)`}),b=n.object({kind:n.literal(`local-directory`),workspaceId:n.string().min(1),rootDigest:n.string().min(1),sourcePath:y}).strict(),x=n.object({kind:n.literal(`workspace-snapshot`),snapshotId:n.string().min(1),digest:n.string().min(1),sourcePath:y}).strict(),S=n.discriminatedUnion(`kind`,[b,x]),C=/^sha(?:256|384|512)-[A-Za-z0-9+/]+=*$/,w=n.object({packageName:n.string().min(1),version:n.string().min(1),entrypoint:n.string().min(1).refine(e=>!e.includes(`node_modules`)&&!e.startsWith(`/`)&&!/^[A-Za-z]:[/\\]/.test(e),{message:`entrypoint must be package-relative (no node_modules, no absolute path)`}),integrity:n.string().min(1).refine(e=>C.test(e),{message:`integrity must be a valid SRI hash (sha256-..., sha384-..., or sha512-...)`})}).strict(),T=n.object({maxRuntimeMs:n.number().int().positive().optional(),persistentStorage:n.boolean(),customCapabilities:n.array(n.string().min(1)).default([]),suspensionStrategy:r.default(`wait-in-process`),supportsRecovery:n.boolean().default(!1),materializationModes:n.array(v).min(1).default([`local-directory`])}),E=n.object({maxRuntimeMs:n.number().int().positive().optional(),persistentStorage:n.boolean().optional(),customCapabilities:n.array(n.string().min(1)).default([]),recoverableAllocation:n.boolean().optional(),materializationModes:n.array(v).optional()}),D=[`provisioner-process-bound`,`provider-managed`],O=n.enum(D),k=[`found`,`confirmed-absent`,`unknown`],A=n.discriminatedUnion(`kind`,[n.object({kind:n.literal(`found`),allocationRef:s}).strict(),n.object({kind:n.literal(`confirmed-absent`),evidence:l}).strict(),n.object({kind:n.literal(`unknown`),evidence:l}).strict()]),j=n.enum([`accepted`,`duplicate`,`conflict`,`fenced`]);var M=class extends Error{constructor(e){super(e),this.name=`ProviderAllocationRefError`}};function N(e,t){let n=s.shape.providerId.parse(e);return{build:e=>{let r=t.parse(e);return{version:1,providerId:n,providerData:s.shape.providerData.parse(r)}},parse:e=>{if(e.version!==1)throw new M(`Unsupported allocation ref version ${String(e.version)}, expected 1`);if(e.providerId!==n)throw new M(`Allocation ref provider '${e.providerId}' does not match this provider '${n}'`);let r=t.safeParse(e.providerData);if(!r.success)throw new M(`Invalid provider data in allocation ref: ${r.error.message}`);return r.data}}}function P(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),r=n.charCodeAt(n.length-1);return`${r>=55296&&r<=56319?n.slice(0,-1):n}…`}function F(e,t,n){let r=c.summary;return l.parse({source:e,summary:P(n,r),observedAt:new Date().toISOString(),...t===void 0?{}:{code:t}})}function I(e,n){return e.emit(t.register,{capabilityId:i,provider:n})}function L(e,n){return e.emit(t.unregister,{capabilityId:i,providerId:n})}export{E as A,c as C,T as D,O as E,r as M,w as O,A as S,i as T,j as _,N as a,k as b,g as c,l as d,u as f,d as g,v as h,M as i,x as j,S as k,h as l,_ as m,L as n,m as o,b as p,F as r,f as s,I as t,a as u,p as v,D as w,s as x,o as y};
@@ -1 +1 @@
1
- import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{r as n}from"./definitions-CyFaNG_c.mjs";import{A as r,M as i,_ as a,d as o,x as s}from"./worker-B0xwfo9-.mjs";import{G as c,H as l,V as u}from"./workflow-mCL6Xv-J.mjs";import{z as d}from"zod";import{createBusNamespace as f}from"@makaio/framework/core";const p=d.object({requestKey:d.string().min(1),controlRevision:d.number().int().positive(),requestedAt:d.iso.datetime({offset:!0}),reason:d.string().optional()}).strict(),m=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),runtimeGeneration:d.number().int().positive(),controlRevision:d.number().int().positive(),requestKey:d.string().min(1)}).strict(),h=m.omit({requestKey:!0,controlRevision:!0}).extend({cancellation:p}),g=m.extend({receivedAt:d.iso.datetime({offset:!0})}),_=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`received`),receipt:g}).strict(),d.object({decision:d.literal(`refused`),reason:d.enum([`stale-generation`,`unsupported`])}).strict()]),v=d.object({status:d.enum([`achieved`,`unsupported`,`unconfirmed`]),boundary:d.enum([`admission-closed`,`setup-process-group`,`workload`]),evidence:o}).strict(),y=m.extend({operationId:d.string().min(1).optional(),conclusion:v}),b=d.enum([`not-found`,`cancel-mismatch`,`stale-generation`,`operation-mismatch`,`conflict`]),x=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`)}).strict(),d.object({decision:d.literal(`duplicate`)}).strict(),d.object({decision:d.literal(`refused`),reason:b}).strict()]),S=d.string().min(1),ee=S.refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e)&&!e.split(`/`).includes(`..`),{message:`Source paths must be workspace-relative and may not traverse outside the workspace`}),C=d.object({command:S,args:d.array(d.string()),env:d.record(d.string(),d.string()),timeoutMs:d.number().int().positive()}).strict(),w=d.object({provisioning:d.enum([`bind`,`create`]),custody:d.enum([`external`,`disposable`]),sourceRoots:d.array(d.object({id:S,path:ee,source:d.object({kind:S,input:t}).strict().optional()}).strict()),setup:d.array(C)}).strict(),T=d.object({required:d.array(d.enum([`source-state`,`diagnostics`,`workspace-state`,`live-state`]))}).strict(),E=d.object({id:S,revision:S,workload:d.object({kind:S,version:S,input:t}).strict(),workspace:w.optional(),preservation:T}).strict(),D=d.object({workspaceRoot:S,sourceRoots:d.array(d.object({id:S,path:S}).strict())}).strict(),O=d.object({kind:d.literal(`workspace-prepared`),binding:D}).strict(),k=d.discriminatedUnion(`kind`,[d.object({kind:d.literal(`technical-failure`),stage:d.enum([`startup`,`workspace-preparation`,`workload-invocation`]),message:d.string().min(1).max(8192)}).strict(),d.object({kind:d.literal(`workload-result`),result:t}).strict(),d.object({kind:d.literal(`cancelled`),reason:d.string().min(1).max(8192).optional()}).strict()]),A=d.enum([`runtime-probe`,`workflow-run`,`workspace-preparation`,`workload-invocation`]),j=A.exclude([`runtime-probe`]),M=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),operationId:d.string().min(1),operationKind:A,runtimeGeneration:d.number().int().positive()}).strict(),N=d.object({receipt:d.enum([`completed`,`duplicate`,`refused`]),refusalReason:d.enum([`stale-generation`,`unknown-kind`]).optional()}).strict(),P=d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`probe-failed`]),F=e=>d.object({decision:d.literal(e),runtimeGeneration:d.number().int().positive()}).strict(),I=d.enum([`not-found`,`resolved`,`fenced`,`allocation-terminated`,`gate-closed`,`bootstrap-expired`]),L=d.object({executionAttemptId:d.string().min(1)}).strict(),R=d.discriminatedUnion(`status`,[d.object({status:d.literal(`permitted`)}).strict(),d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:I}).strict()]),z={"control.deliver":{request:h,response:_},"control.report":{request:y,response:x},"bootstrap.awaitStart":{request:L,response:R},"runtime.register":{request:d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1)}).strict(),response:d.discriminatedUnion(`decision`,[F(`ready`),F(`duplicate`),d.object({decision:d.literal(`refused`),runtimeGeneration:d.literal(0),refusalReason:P}).strict()])},"runtime.ready":d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),acceptedAt:d.string().min(1)}).strict(),"operation.admit":{request:d.object({executionAttemptId:d.string().min(1),operationKind:A,admissionKey:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.object({decision:d.enum([`admitted`,`duplicate`,`refused`]),operationId:d.string().min(1).optional(),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`gate-closed`,`not-ready`,`stale-generation`,`preparation-required`,`preparation-not-required`,`preparation-already-completed`]).optional()}).strict()},"operation.admitted":d.object({executionAttemptId:d.string().min(1),operationId:d.string().min(1),operationKind:j,runtimeGeneration:d.number().int().positive(),admittedAt:d.string().min(1)}).strict(),"operation.deliver":{request:M,response:N},"instruction.get":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`found`),instruction:E}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-ready`,`stale-generation`])}).strict()])},"operation.report":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1),result:O}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`),binding:D}).strict(),d.object({decision:d.literal(`duplicate`),binding:D}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`stale-generation`,`no-active-operation`,`operation-mismatch`,`preparation-not-required`,`binding-mismatch`,`conflict`])}).strict()])},"outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1).optional(),outcome:k}).strict().superRefine((e,t)=>{!e.operationId&&e.outcome.kind!==`cancelled`&&!(e.outcome.kind===`technical-failure`&&e.outcome.stage===`startup`)&&t.addIssue({code:`custom`,path:[`operationId`],message:`An admitted operation is required for this outcome`})}),response:d.object({decision:a}).strict()}},B=d.object({workerManifest:u,suspensionStrategy:i}).strict(),V=d.iso.datetime({offset:!0}),H=d.string().refine(e=>{let t=Date.parse(e);return Number.isFinite(t)&&(V.safeParse(e).success||new Date(t).toISOString()===e)},`Expected a representable ISO bootstrap deadline`),U=d.object({busUrl:d.string().min(1),busAuthSecret:d.string().min(1)}).strict(),W=d.object({status:d.literal(`granted`),credentials:U,runtimeEnv:d.record(n,d.string())}).strict(),G=d.enum([...I.options,`provider-mismatch`,`claim-expired`,`not-claimable`]),K=d.discriminatedUnion(`status`,[W,d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:G}).strict()]),q=d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),environment:d.string().min(1),metadata:e.optional()}),J=d.enum([`unavailable`,`refused`,`invalid-receipt`,`receipt-not-recorded`]),Y=q.extend({kind:J,detail:d.string().min(1),observedAt:d.iso.datetime({offset:!0})}),X=d.object({executionAttemptId:d.string().min(1),config:c,manifest:u.optional(),requirements:r.optional(),metadata:e.optional()}),Z=d.object({executionAttemptId:d.string().min(1),allocationRef:s}).strict(),Q={dispatch:{request:X,response:Z},"runtime.inputs.get":{request:d.object({executionAttemptId:d.string().min(1)}).strict(),response:d.object({runtimeInputs:B.nullable()}).strict()},"control.outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),result:l}).strict().superRefine((e,t)=>{e.result.executionId!==e.executionId&&t.addIssue({code:d.ZodIssueCode.custom,path:[`result`,`executionId`],message:`result.executionId must match executionId`})}),response:d.object({decision:a}).strict()},"control.bootstrap.claim":{request:d.object({executionId:d.string().min(1),executionAttemptId:d.string().min(1)}).strict(),response:K},"control.cancel-undelivered":Y,"lifecycle.provisioning":q,"lifecycle.booting":q,"lifecycle.ready":q,"lifecycle.busy":q,"lifecycle.completed":q,"lifecycle.failed":q.extend({error:d.string().min(1)}),"lifecycle.terminated":q.extend({reason:d.string().optional()}),"lifecycle.paused":q.extend({pausedAtGateId:d.string().min(1),pausedAtFrameId:d.string().min(1)})},te=`worker-bootstrap`,$=f(`worker`,Q),ne=$.subjects;export{C as A,z as C,D,O as E,h as F,g as I,b as L,v as M,m as N,T as O,_ as P,x as R,P as S,k as T,R as _,K as a,A as b,W as c,X as d,Z as f,L as g,j as h,G as i,p as j,w as k,J as l,B as m,$ as n,U as o,Q as p,ne as r,H as s,te as t,Y as u,I as v,E as w,N as x,M as y,y as z};
1
+ import{n as e,o as t}from"./json-value-DM-EjTC1.mjs";import{r as n}from"./definitions-Do7bP-u7.mjs";import{A as r,M as i,_ as a,d as o,x as s}from"./worker-Cgql5Xsm.mjs";import{G as c,H as l,V as u}from"./workflow-DA2yJJK-.mjs";import{z as d}from"zod";import{createBusNamespace as f}from"@makaio/framework/core";const p=d.object({requestKey:d.string().min(1),controlRevision:d.number().int().positive(),requestedAt:d.iso.datetime({offset:!0}),reason:d.string().optional()}).strict(),m=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),runtimeGeneration:d.number().int().positive(),controlRevision:d.number().int().positive(),requestKey:d.string().min(1)}).strict(),h=m.omit({requestKey:!0,controlRevision:!0}).extend({cancellation:p}),g=m.extend({receivedAt:d.iso.datetime({offset:!0})}),_=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`received`),receipt:g}).strict(),d.object({decision:d.literal(`refused`),reason:d.enum([`stale-generation`,`unsupported`])}).strict()]),v=d.object({status:d.enum([`achieved`,`unsupported`,`unconfirmed`]),boundary:d.enum([`admission-closed`,`setup-process-group`,`workload`]),evidence:o}).strict(),y=m.extend({operationId:d.string().min(1).optional(),conclusion:v}),b=d.enum([`not-found`,`cancel-mismatch`,`stale-generation`,`operation-mismatch`,`conflict`]),x=d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`)}).strict(),d.object({decision:d.literal(`duplicate`)}).strict(),d.object({decision:d.literal(`refused`),reason:b}).strict()]),S=d.string().min(1),ee=S.refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e)&&!e.split(`/`).includes(`..`),{message:`Source paths must be workspace-relative and may not traverse outside the workspace`}),C=d.object({command:S,args:d.array(d.string()),env:d.record(d.string(),d.string()),timeoutMs:d.number().int().positive()}).strict(),w=d.object({provisioning:d.enum([`bind`,`create`]),custody:d.enum([`external`,`disposable`]),sourceRoots:d.array(d.object({id:S,path:ee,source:d.object({kind:S,input:t}).strict().optional()}).strict()),setup:d.array(C)}).strict(),T=d.object({required:d.array(d.enum([`source-state`,`diagnostics`,`workspace-state`,`live-state`]))}).strict(),E=d.object({id:S,revision:S,workload:d.object({kind:S,version:S,input:t}).strict(),workspace:w.optional(),preservation:T}).strict(),D=d.object({workspaceRoot:S,sourceRoots:d.array(d.object({id:S,path:S}).strict())}).strict(),O=d.object({kind:d.literal(`workspace-prepared`),binding:D}).strict(),k=d.discriminatedUnion(`kind`,[d.object({kind:d.literal(`technical-failure`),stage:d.enum([`startup`,`workspace-preparation`,`workload-invocation`]),message:d.string().min(1).max(8192)}).strict(),d.object({kind:d.literal(`workload-result`),result:t}).strict(),d.object({kind:d.literal(`cancelled`),reason:d.string().min(1).max(8192).optional()}).strict()]),A=d.enum([`runtime-probe`,`workflow-run`,`workspace-preparation`,`workload-invocation`]),j=A.exclude([`runtime-probe`]),M=d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1),operationId:d.string().min(1),operationKind:A,runtimeGeneration:d.number().int().positive()}).strict(),N=d.object({receipt:d.enum([`completed`,`duplicate`,`refused`]),refusalReason:d.enum([`stale-generation`,`unknown-kind`]).optional()}).strict(),P=d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`probe-failed`]),F=e=>d.object({decision:d.literal(e),runtimeGeneration:d.number().int().positive()}).strict(),I=d.enum([`not-found`,`resolved`,`fenced`,`allocation-terminated`,`gate-closed`,`bootstrap-expired`]),L=d.object({executionAttemptId:d.string().min(1)}).strict(),R=d.discriminatedUnion(`status`,[d.object({status:d.literal(`permitted`)}).strict(),d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:I}).strict()]),z={"control.deliver":{request:h,response:_},"control.report":{request:y,response:x},"bootstrap.awaitStart":{request:L,response:R},"runtime.register":{request:d.object({executionAttemptId:d.string().min(1),runtimeIncarnationId:d.string().min(1)}).strict(),response:d.discriminatedUnion(`decision`,[F(`ready`),F(`duplicate`),d.object({decision:d.literal(`refused`),runtimeGeneration:d.literal(0),refusalReason:P}).strict()])},"runtime.ready":d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),acceptedAt:d.string().min(1)}).strict(),"operation.admit":{request:d.object({executionAttemptId:d.string().min(1),operationKind:A,admissionKey:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.object({decision:d.enum([`admitted`,`duplicate`,`refused`]),operationId:d.string().min(1).optional(),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`operation-active`,`gate-closed`,`not-ready`,`stale-generation`,`preparation-required`,`preparation-not-required`,`preparation-already-completed`]).optional()}).strict()},"operation.admitted":d.object({executionAttemptId:d.string().min(1),operationId:d.string().min(1),operationKind:j,runtimeGeneration:d.number().int().positive(),admittedAt:d.string().min(1)}).strict(),"operation.deliver":{request:M,response:N},"instruction.get":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive()}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`found`),instruction:E}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-ready`,`stale-generation`])}).strict()])},"operation.report":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1),result:O}).strict(),response:d.discriminatedUnion(`decision`,[d.object({decision:d.literal(`accepted`),binding:D}).strict(),d.object({decision:d.literal(`duplicate`),binding:D}).strict(),d.object({decision:d.literal(`refused`),refusalReason:d.enum([`not-found`,`resolved`,`fenced`,`not-allocated`,`stale-generation`,`no-active-operation`,`operation-mismatch`,`preparation-not-required`,`binding-mismatch`,`conflict`])}).strict()])},"outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),runtimeGeneration:d.number().int().positive(),operationId:d.string().min(1).optional(),outcome:k}).strict().superRefine((e,t)=>{!e.operationId&&e.outcome.kind!==`cancelled`&&!(e.outcome.kind===`technical-failure`&&e.outcome.stage===`startup`)&&t.addIssue({code:`custom`,path:[`operationId`],message:`An admitted operation is required for this outcome`})}),response:d.object({decision:a}).strict()}},B=d.object({workerManifest:u,suspensionStrategy:i}).strict(),V=d.iso.datetime({offset:!0}),H=d.string().refine(e=>{let t=Date.parse(e);return Number.isFinite(t)&&(V.safeParse(e).success||new Date(t).toISOString()===e)},`Expected a representable ISO bootstrap deadline`),U=d.object({busUrl:d.string().min(1),busAuthSecret:d.string().min(1)}).strict(),W=d.object({status:d.literal(`granted`),credentials:U,runtimeEnv:d.record(n,d.string())}).strict(),G=d.enum([...I.options,`provider-mismatch`,`claim-expired`,`not-claimable`]),K=d.discriminatedUnion(`status`,[W,d.object({status:d.literal(`pending`)}).strict(),d.object({status:d.literal(`refused`),reason:G}).strict()]),q=d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),environment:d.string().min(1),metadata:e.optional()}),J=d.enum([`unavailable`,`refused`,`invalid-receipt`,`receipt-not-recorded`]),Y=q.extend({kind:J,detail:d.string().min(1),observedAt:d.iso.datetime({offset:!0})}),X=d.object({executionAttemptId:d.string().min(1),config:c,manifest:u.optional(),requirements:r.optional(),metadata:e.optional()}),Z=d.object({executionAttemptId:d.string().min(1),allocationRef:s}).strict(),Q={dispatch:{request:X,response:Z},"runtime.inputs.get":{request:d.object({executionAttemptId:d.string().min(1)}).strict(),response:d.object({runtimeInputs:B.nullable()}).strict()},"control.outcome.submit":{request:d.object({executionAttemptId:d.string().min(1),executionId:d.string().min(1),result:l}).strict().superRefine((e,t)=>{e.result.executionId!==e.executionId&&t.addIssue({code:d.ZodIssueCode.custom,path:[`result`,`executionId`],message:`result.executionId must match executionId`})}),response:d.object({decision:a}).strict()},"control.bootstrap.claim":{request:d.object({executionId:d.string().min(1),executionAttemptId:d.string().min(1)}).strict(),response:K},"control.cancel-undelivered":Y,"lifecycle.provisioning":q,"lifecycle.booting":q,"lifecycle.ready":q,"lifecycle.busy":q,"lifecycle.completed":q,"lifecycle.failed":q.extend({error:d.string().min(1)}),"lifecycle.terminated":q.extend({reason:d.string().optional()}),"lifecycle.paused":q.extend({pausedAtGateId:d.string().min(1),pausedAtFrameId:d.string().min(1)})},te=`worker-bootstrap`,$=f(`worker`,Q),ne=$.subjects;export{C as A,z as C,D,O as E,h as F,g as I,b as L,v as M,m as N,T as O,_ as P,x as R,P as S,k as T,R as _,K as a,A as b,W as c,X as d,Z as f,L as g,j as h,G as i,p as j,w as k,J as l,B as m,$ as n,U as o,Q as p,ne as r,H as s,te as t,Y as u,I as v,E as w,N as x,M as y,y as z};