@makaio/framework 1.0.0-dev-1790114433794 → 1.0.0-dev-1790165411632

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 (290) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-subsystem/index.mjs +1 -1
  3. package/dist/adapters/claude/index.d.mts +24 -24
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/index.d.mts +2 -2
  6. package/dist/adapters/node.d.mts +1 -1
  7. package/dist/bus/index.d.mts +46 -21
  8. package/dist/bus/index.mjs +1 -1
  9. package/dist/{bus-CX0d5tTa.mjs → bus-D4DBDaoS.mjs} +1 -1
  10. package/dist/clients/index.d.mts +2 -1
  11. package/dist/clients/index.mjs +1 -1
  12. package/dist/clients/managed-install.d.mts +1 -1
  13. package/dist/code-execution/worker-entry.d.mts +1 -1
  14. package/dist/contracts/adapter/index.d.mts +2 -2
  15. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  16. package/dist/contracts/artifact/index.d.mts +2 -2
  17. package/dist/contracts/auth/index.d.mts +2 -2
  18. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  19. package/dist/contracts/canonical-model/index.d.mts +1 -1
  20. package/dist/contracts/capabilities/index.d.mts +1 -1
  21. package/dist/contracts/client/index.d.mts +2 -2
  22. package/dist/contracts/code-execution/index.d.mts +1 -1
  23. package/dist/contracts/common/index.d.mts +1 -1
  24. package/dist/contracts/config/index.d.mts +2 -2
  25. package/dist/contracts/extension/index.d.mts +5 -5
  26. package/dist/contracts/facet/index.d.mts +1 -1
  27. package/dist/contracts/harness/index.d.mts +1 -1
  28. package/dist/contracts/host/index.d.mts +1 -1
  29. package/dist/contracts/index.d.mts +179 -179
  30. package/dist/contracts/index.mjs +1 -1
  31. package/dist/contracts/materialization/index.d.mts +2 -2
  32. package/dist/contracts/model-registry/index.d.mts +1 -1
  33. package/dist/contracts/native-session-supervisor/index.d.mts +2 -2
  34. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  35. package/dist/contracts/platform/index.d.mts +1 -1
  36. package/dist/contracts/provider/index.d.mts +2 -2
  37. package/dist/contracts/reaction/index.d.mts +1 -1
  38. package/dist/contracts/session/index.d.mts +2 -2
  39. package/dist/contracts/shared/index.d.mts +2 -2
  40. package/dist/contracts/skill/index.d.mts +1 -1
  41. package/dist/contracts/telemetry/index.d.mts +1 -1
  42. package/dist/contracts/timeout/index.d.mts +1 -1
  43. package/dist/contracts/variant/index.d.mts +1 -1
  44. package/dist/contracts/worker/index.d.mts +2 -2
  45. package/dist/contracts/workflow/index.d.mts +2 -2
  46. package/dist/{contribution-1GL7Rjaq.d.mts → contribution-DTb65rRN.d.mts} +2 -2
  47. package/dist/{definition-DeIGoROj.d.mts → definition-DWhjp0db.d.mts} +1 -1
  48. package/dist/{detached-extension-handle-W5_yfCyE.mjs → detached-extension-handle-QrXVNUR2.mjs} +1 -1
  49. package/dist/{extension-context-pQ7Uio_s.d.mts → extension-context-DH84KOm9.d.mts} +1 -1
  50. package/dist/filesystem-service-CIaAqTRi.mjs +1 -0
  51. package/dist/{framework-packages-U4Xhouxe.mjs → framework-packages-C2tvdFmP.mjs} +1 -1
  52. package/dist/{hook-responses-B882RcQc.d.mts → hook-responses-OETFKaAL.d.mts} +1 -1
  53. package/dist/{index-BtMWM80d.d.mts → index-8hJCLlAE.d.mts} +12 -12
  54. package/dist/{index-DfREUyAk.d.mts → index-B1uHTa1l.d.mts} +1 -1
  55. package/dist/{index-UjNxC0VC2.d.mts → index-B7KgjUmJ2.d.mts} +4 -4
  56. package/dist/{index-DGoJayJg.d.mts → index-BDTcg6tu.d.mts} +100 -100
  57. package/dist/{index-DQU8ZoJr.d.mts → index-BM53WQaQ.d.mts} +1 -1
  58. package/dist/{index-CmCLAMNs.d.mts → index-BRF5X-EZ.d.mts} +1 -1
  59. package/dist/{index-D6Uq1btG.d.mts → index-BUxs65tf.d.mts} +2 -2
  60. package/dist/{index-ConhyAnB.d.mts → index-BVG-RaIu.d.mts} +102 -102
  61. package/dist/{index-L6mssyeZ.d.mts → index-BfFi98B_.d.mts} +1 -1
  62. package/dist/{index-FyY9jdCQ2.d.mts → index-BnNNfBck.d.mts} +12 -12
  63. package/dist/{index-CESqYf8a.d.mts → index-C0Jfr8UK.d.mts} +2 -2
  64. package/dist/{index-DqliLe_D2.d.mts → index-C9Dz8UoK2.d.mts} +242 -7
  65. package/dist/{index-D2TphOHU2.d.mts → index-CDuEmakt2.d.mts} +383 -383
  66. package/dist/{index-DOD7Lmgu.d.mts → index-CI5ss_XH.d.mts} +357 -357
  67. package/dist/{index-DUYjTfHD.d.mts → index-CLwnkYRD.d.mts} +1 -1
  68. package/dist/{index-C8two8wz.d.mts → index-CdkIg4Gu.d.mts} +1 -1
  69. package/dist/{index-Di-R1gmo.d.mts → index-CmTVBNCe.d.mts} +288 -288
  70. package/dist/{index-DJxg7U2X.d.mts → index-D5BLD2Pw.d.mts} +7 -3
  71. package/dist/{index-B2bxgKiK.d.mts → index-D9BLsMs8.d.mts} +1 -1
  72. package/dist/{index-DdJKsdya.d.mts → index-D9hIDsPr.d.mts} +1 -1
  73. package/dist/{index-m5ZQFglW2.d.mts → index-DPsQ_cFG2.d.mts} +1 -1
  74. package/dist/{index-DpLjyQ-Z.d.mts → index-DRSeELQh.d.mts} +3 -3
  75. package/dist/{index-6bsTWnnc.d.mts → index-DyzmUD1S.d.mts} +27 -27
  76. package/dist/{index-aIJ7A4DC2.d.mts → index-QYdQSOnc2.d.mts} +6 -6
  77. package/dist/{index-DJVQG6Nn.d.mts → index-qtH2O8j_.d.mts} +14 -14
  78. package/dist/{index-Jdju2W3y.d.mts → index-t6LnywuE.d.mts} +1 -1
  79. package/dist/kernel/cli/index.d.mts +2 -2
  80. package/dist/kernel/cli/register.d.mts +1 -1
  81. package/dist/kernel/extension/index.d.mts +2 -2
  82. package/dist/kernel/index.d.mts +5 -5
  83. package/dist/kernel/namespace/index.d.mts +1 -1
  84. package/dist/kernel/observability/index.d.mts +1 -1
  85. package/dist/kernel/providers/index.d.mts +1 -1
  86. package/dist/kernel/window/index.d.mts +1 -1
  87. package/dist/{load-extensions-Be_lOjm_.d.mts → load-extensions-CCzTHlUE.d.mts} +1 -1
  88. package/dist/{load-extensions-BGfSWW_R.mjs → load-extensions-eyXZhbRn.mjs} +1 -1
  89. package/dist/{namespace-D5DkpaaN.d.mts → namespace-B0__88KU.d.mts} +154 -154
  90. package/dist/{namespace-Bhx72V7S.d.mts → namespace-BaUgxONS.d.mts} +2 -2
  91. package/dist/{namespace-B1CgZ0oQ.d.mts → namespace-BhpzgnH3.d.mts} +1 -1
  92. package/dist/{namespace-BtOBQybk.d.mts → namespace-Bz0ZDWhE.d.mts} +18 -18
  93. package/dist/{namespace-zusFEJPh.d.mts → namespace-CNX4llM5.d.mts} +6 -6
  94. package/dist/native-session-supervisor-BmnAZuia.mjs +1 -0
  95. package/dist/node/bus-server/index.d.mts +1 -1
  96. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  97. package/dist/node/transports/index.d.mts +53 -1
  98. package/dist/node/transports/index.mjs +2 -2
  99. package/dist/node-bridge-backend-DtRT--yn.mjs +1 -0
  100. package/dist/node-pty-backend-C72EgRws.mjs +1 -0
  101. package/dist/{package-kkPGlxMm.mjs → package-CeEUAKHI.mjs} +1 -1
  102. package/dist/{package-CwyC-Krg.d.mts → package-jjugnMVh.d.mts} +2 -2
  103. package/dist/package.json +1 -1
  104. package/dist/rules/index.d.mts +1 -1
  105. package/dist/rules/schemas.d.mts +1 -1
  106. package/dist/runtime-bun/index.d.mts +5 -0
  107. package/dist/runtime-bun/index.mjs +1 -1
  108. package/dist/runtime-node/bridge/pty-bridge.cjs +222 -0
  109. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  110. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  111. package/dist/runtime-node/extension-validation.d.mts +1 -1
  112. package/dist/runtime-node/extension-validation.mjs +1 -1
  113. package/dist/runtime-node/index.d.mts +5 -5
  114. package/dist/runtime-node/index.mjs +25 -21
  115. package/dist/runtime-node/makaio-config.d.mts +1 -1
  116. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  117. package/dist/{schemas-B7YzDHLs.d.mts → schemas-CjFPsYeV.d.mts} +4 -4
  118. package/dist/{schemas-BLxdGZkr.d.mts → schemas-D9pXu76T.d.mts} +4 -4
  119. package/dist/{schemas-CD3Mq-jC.d.mts → schemas-DFamD1UF.d.mts} +154 -154
  120. package/dist/{schemas-DNNHiY8g2.d.mts → schemas-DPtj1sPC2.d.mts} +7 -7
  121. package/dist/{schemas--wiEYYQs.d.mts → schemas-KyQQPGjX.d.mts} +11 -11
  122. package/dist/service-base/index.d.mts +35 -5
  123. package/dist/service-base/index.mjs +1 -1
  124. package/dist/services/adapter-runtime/index.d.mts +3 -3
  125. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  126. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  127. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  128. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  129. package/dist/services/agent-runtime/index.d.mts +2 -2
  130. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  131. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  132. package/dist/services/capability/index.d.mts +2 -2
  133. package/dist/services/code-execution/index.d.mts +1 -1
  134. package/dist/services/codebase/index.d.mts +2 -2
  135. package/dist/services/codebase/namespace.d.mts +1 -1
  136. package/dist/services/codebase/schemas.d.mts +1 -1
  137. package/dist/services/compression/index.d.mts +2 -2
  138. package/dist/services/compression/namespace.d.mts +1 -1
  139. package/dist/services/compression/schemas.d.mts +1 -1
  140. package/dist/services/context-rules/index.d.mts +1 -1
  141. package/dist/services/execution-target/index.d.mts +3 -3
  142. package/dist/services/execution-target/namespace.d.mts +1 -1
  143. package/dist/services/execution-target/schemas.d.mts +1 -1
  144. package/dist/services/filesystem/index.d.mts +1 -1
  145. package/dist/services/filesystem/index.mjs +1 -1
  146. package/dist/services/filesystem/namespace.d.mts +12 -12
  147. package/dist/services/filesystem/schemas.d.mts +6 -6
  148. package/dist/services/git/namespace.d.mts +2 -2
  149. package/dist/services/git/schemas.d.mts +2 -2
  150. package/dist/services/index.d.mts +134 -134
  151. package/dist/services/index.mjs +1 -1
  152. package/dist/services/log-import/browser.d.mts +2 -2
  153. package/dist/services/log-import/index.d.mts +2 -2
  154. package/dist/services/log-import/log-import.d.mts +1 -1
  155. package/dist/services/materialization/index.d.mts +1 -1
  156. package/dist/services/model-registry/index.d.mts +1 -1
  157. package/dist/services/preferences/index.d.mts +2 -2
  158. package/dist/services/preferences/schemas.d.mts +1 -1
  159. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  160. package/dist/services/provider-context/index.d.mts +1 -1
  161. package/dist/services/session/handlers/index.d.mts +1 -1
  162. package/dist/services/session/index.d.mts +9 -9
  163. package/dist/services/session/index.mjs +1 -1
  164. package/dist/services/session/messages/namespace.d.mts +1 -1
  165. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  166. package/dist/services/session/session-events/namespace.d.mts +1 -1
  167. package/dist/services/session/storage/namespace.d.mts +1 -1
  168. package/dist/services/session/storage/schema.d.mts +1 -1
  169. package/dist/services/session/testing/index.mjs +1 -1
  170. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  171. package/dist/services/session/turns/namespace.d.mts +1 -1
  172. package/dist/services/session-editor/index.d.mts +1 -1
  173. package/dist/services/settings/index.d.mts +3 -3
  174. package/dist/services/settings/namespace.d.mts +8 -8
  175. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  176. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  177. package/dist/services/settings/storage/index.d.mts +3 -3
  178. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  179. package/dist/services/subagent/index.d.mts +1 -1
  180. package/dist/services/subagent-template/index.d.mts +2 -2
  181. package/dist/services/subagent-template/namespace.d.mts +1 -1
  182. package/dist/services/subagent-template/schemas.d.mts +1 -1
  183. package/dist/services/tool-approval/index.d.mts +1 -1
  184. package/dist/services/tool-approval/index.mjs +1 -1
  185. package/dist/services/tools/index.d.mts +1 -1
  186. package/dist/services/tools/index.mjs +1 -1
  187. package/dist/services/tray-menu/index.d.mts +3 -3
  188. package/dist/services/tray-menu/namespace.d.mts +1 -1
  189. package/dist/services/tray-menu/schemas.d.mts +1 -1
  190. package/dist/services/turn/index.d.mts +1 -1
  191. package/dist/services/turn/namespace.d.mts +1 -1
  192. package/dist/services/workflow-transitions/index.d.mts +1 -1
  193. package/dist/services/workflow-transitions/index.mjs +1 -1
  194. package/dist/{session-CMbztxNO.mjs → session-D38UuGGX.mjs} +1 -1
  195. package/dist/{session-lineage-BuGN3RZs.d.mts → session-lineage-CmP7L5g2.d.mts} +1 -1
  196. package/dist/storage/drizzle/client.d.mts +1 -1
  197. package/dist/storage/drizzle/index.d.mts +1 -1
  198. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  199. package/dist/storage/handlers/index.d.mts +1 -1
  200. package/dist/{storage-namespace-DaCB01dg.d.mts → storage-namespace-CwwiV3kt.d.mts} +10 -10
  201. package/dist/{tool-approval-service-CRo3fZRF.mjs → tool-approval-service-vG2mEC9p.mjs} +1 -1
  202. package/dist/{tools-CKaxi3Mb.mjs → tools-ByDy0ueE.mjs} +1 -1
  203. package/dist/{transition-DMv8cgEd.d.mts → transition-CAtcgdUp.d.mts} +2 -2
  204. package/dist/{types-Dvsn8TOX.d.mts → types-BbqmHOM-.d.mts} +341 -341
  205. package/dist/{types-7L3BrU9m2.d.mts → types-DyBD5MdV2.d.mts} +1 -1
  206. package/dist/ui-kernel/index.d.mts +4 -4
  207. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  208. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  209. package/dist/{view-builder-BVIbIS_J.d.mts → view-builder-6YQFmKD6.d.mts} +2 -2
  210. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  211. package/dist/workflow-engine/index.d.mts +59 -59
  212. package/dist/workflow-engine/index.mjs +1 -1
  213. package/dist/workflow-engine/package.d.mts +1 -1
  214. package/dist/workflow-engine/package.mjs +1 -1
  215. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  216. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  217. package/dist/workflow-engine/testing/index.d.mts +1 -1
  218. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  219. package/dist/{workflow-transitions-t0ORS1F5.mjs → workflow-transitions-UOXY-VZa.mjs} +1 -1
  220. package/package.json +2 -1
  221. package/dist/filesystem-service-ClZEAw7E.mjs +0 -1
  222. package/dist/native-session-supervisor-DtuN1Dgs.mjs +0 -1
  223. package/dist/{adapter-binding-CaYBrIkL.d.mts → adapter-binding-DF-j-XHg.d.mts} +0 -0
  224. package/dist/{base-orchestrator-1ofFsqUz.d.mts → base-orchestrator-FNFJ6Cwf.d.mts} +0 -0
  225. package/dist/{capability-service-CUN0MIS7.d.mts → capability-service-BHcRd1td.d.mts} +0 -0
  226. package/dist/{client-BY3sBW2L.d.mts → client-Sx_N8LXo.d.mts} +0 -0
  227. package/dist/{client-binary-version-verifier-BeO4Eptw.d.mts → client-binary-version-verifier-C8gtKQFO.d.mts} +0 -0
  228. package/dist/{clients-namespace-D92YsbKI.d.mts → clients-namespace-CASHxXUM.d.mts} +0 -0
  229. package/dist/{config-namespace-OEckUfVE.d.mts → config-namespace-CeTODseW.d.mts} +0 -0
  230. package/dist/{credential-ref-w4ZYpYW0.d.mts → credential-ref-MsnUkz9G.d.mts} +0 -0
  231. package/dist/{definition-DLJg-P4G.d.mts → definition-D2SO1tX-.d.mts} +0 -0
  232. package/dist/{execution-attempt-repository-DOb5V4N2.d.mts → execution-attempt-repository-C2XKRZ3O.d.mts} +0 -0
  233. package/dist/{extension-discovery-Rup-gANp.d.mts → extension-discovery-BqSPn73R.d.mts} +0 -0
  234. package/dist/{filesystem-service-BmavE-uO.d.mts → filesystem-service-5Ecp3nSV.d.mts} +0 -0
  235. package/dist/{index-DubyRZD9.d.mts → index-62OoZLGr.d.mts} +0 -0
  236. package/dist/{index-DEx4ZFkz.d.mts → index-BCuWtlv5.d.mts} +0 -0
  237. package/dist/{index-BneZFJ7x.d.mts → index-BEPn58tG.d.mts} +0 -0
  238. package/dist/{index-CpN2C9jq.d.mts → index-BOxMyaqG.d.mts} +0 -0
  239. package/dist/{index-fxh7TB0q.d.mts → index-BTd3fTkW.d.mts} +0 -0
  240. package/dist/{index--gbsE1W0.d.mts → index-B_Hf4XPX.d.mts} +0 -0
  241. package/dist/{index-BQYGOXY5.d.mts → index-BjrbddkU.d.mts} +0 -0
  242. package/dist/{index-D7smT-YD.d.mts → index-BleQ0SR7.d.mts} +0 -0
  243. package/dist/{index-BDcK7jqJ2.d.mts → index-Bmb7jPIe2.d.mts} +0 -0
  244. package/dist/{index-CvdvuhTL2.d.mts → index-By1UhKYU2.d.mts} +0 -0
  245. package/dist/{index-YOXWpZAS.d.mts → index-CURT4JaX.d.mts} +0 -0
  246. package/dist/{index-CCTzitBA.d.mts → index-Ce6-SiB3.d.mts} +0 -0
  247. package/dist/{index-DxkSkszz.d.mts → index-CwVSr7Ow.d.mts} +0 -0
  248. package/dist/{index-C2StVLk4.d.mts → index-DAqAa9aL.d.mts} +0 -0
  249. package/dist/{index-CsRPJ9FV.d.mts → index-DDnY7JhE.d.mts} +0 -0
  250. package/dist/{index-DTvYp2GT.d.mts → index-DMgbNdEU.d.mts} +0 -0
  251. package/dist/{index-BD1SbHpP.d.mts → index-DOui-7u2.d.mts} +0 -0
  252. package/dist/{index-BujgCaKt.d.mts → index-DsmyofuM.d.mts} +0 -0
  253. package/dist/{index-DwOpaQAE.d.mts → index-N0-r5Hcd.d.mts} +0 -0
  254. package/dist/{index-Cj_V1aRL.d.mts → index-_OD_Nz3m.d.mts} +0 -0
  255. package/dist/{index-TBJ1kIGA.d.mts → index-rik4Uc5G.d.mts} +0 -0
  256. package/dist/{index-D3peNmHN2.d.mts → index-u0EteHlR2.d.mts} +0 -0
  257. package/dist/{index-B36rL4gp.d.mts → index-w1AeWV4F.d.mts} +0 -0
  258. package/dist/{index-anIxF_eT.d.mts → index-wGlFWRXg.d.mts} +0 -0
  259. package/dist/{index-zqo2mX_Z.d.mts → index-z_wA9LhQ.d.mts} +0 -0
  260. package/dist/{json-value-Bjl8jzom.d.mts → json-value--pv1-OHx.d.mts} +0 -0
  261. package/dist/{namespace-DudchWPb.d.mts → namespace-6O0G1s65.d.mts} +0 -0
  262. package/dist/{namespace-hlhPqSsw.d.mts → namespace-CHSwZhH7.d.mts} +0 -0
  263. package/dist/{namespace-D09uQ231.d.mts → namespace-CJ5sH_Bp.d.mts} +0 -0
  264. package/dist/{namespace-DHLwz4o3.d.mts → namespace-CL9OyrHs.d.mts} +0 -0
  265. package/dist/{namespace-DHbrNQYD.d.mts → namespace-D38Fmd0E.d.mts} +0 -0
  266. package/dist/{namespace-MW-Eg_yB.d.mts → namespace-D6W4Erwp.d.mts} +0 -0
  267. package/dist/{namespace-CxEQv9iZ.d.mts → namespace-DbtfwD5Z.d.mts} +0 -0
  268. package/dist/{namespace-Dz5_Hrz7.d.mts → namespace-QV_2m25r.d.mts} +0 -0
  269. package/dist/{namespace-DyD06b5-.d.mts → namespace-Sd6qj6w22.d.mts} +0 -0
  270. package/dist/{orchestrator-shared-ChU5qRSe.d.mts → orchestrator-shared-Bvo0u-1D.d.mts} +0 -0
  271. package/dist/{packages-D2s51nGU.d.mts → packages-KX9yofCa.d.mts} +0 -0
  272. package/dist/{providers-namespace-BLVt8OyP.d.mts → providers-namespace-B-l-OQZk.d.mts} +0 -0
  273. package/dist/{runtime-inputs-BU_kBrP7.d.mts → runtime-inputs-B7nWstrY.d.mts} +0 -0
  274. package/dist/{schema-FY0EakKe.d.mts → schema-De6d0FWI.d.mts} +0 -0
  275. package/dist/{schemas-CqawCYTY.d.mts → schemas-BGTuiO3u.d.mts} +0 -0
  276. package/dist/{schemas-3KTmPuZg.d.mts → schemas-BXkSHQaF.d.mts} +0 -0
  277. package/dist/{schemas-B-5_Dp4_.d.mts → schemas-C0Fb2-LN.d.mts} +0 -0
  278. package/dist/{schemas-DiXL8NfA.d.mts → schemas-Cb9OJ9va.d.mts} +0 -0
  279. package/dist/{schemas-rMUsvzeJ.d.mts → schemas-CuOZoC08.d.mts} +8 -8
  280. /package/dist/{schemas-CBBzvIh0.d.mts → schemas-Dxfk39-v.d.mts} +0 -0
  281. /package/dist/{schemas-BegArpU_.d.mts → schemas-feb64ScA.d.mts} +0 -0
  282. /package/dist/{server-lifecycle-CTJvpdeL.d.mts → server-lifecycle-BINetU26.d.mts} +0 -0
  283. /package/dist/{src-C0sw_Vs_.mjs → src-CkKKoY0M.mjs} +0 -0
  284. /package/dist/{storage-namespace-definition-DiYr8UNl.d.mts → storage-namespace-definition-DV3IipmH.d.mts} +0 -0
  285. /package/dist/{types-DEGuc-fn.d.mts → types-B_mVEuYd.d.mts} +0 -0
  286. /package/dist/{types-CpEoQapk.d.mts → types-BrsmFcWl.d.mts} +0 -0
  287. /package/dist/{types-DciLiPMd.d.mts → types-CjoaGe_E.d.mts} +0 -0
  288. /package/dist/{types-BSx8YYlc.d.mts → types-CqVuKsLC.d.mts} +0 -0
  289. /package/dist/{types-Cuhnt15L.d.mts → types-D7WtaoMR.d.mts} +0 -0
  290. /package/dist/{window-registry-C3W2wtlX.d.mts → window-registry-1jI3f9ir.d.mts} +0 -0
@@ -585,8 +585,8 @@ declare const SessionEventStorageNamespace$1: {
585
585
  type: _$zod.ZodLiteral<"locality.degraded">;
586
586
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
587
587
  intent: _$zod.ZodEnum<{
588
- resume: "resume";
589
588
  fork: "fork";
589
+ resume: "resume";
590
590
  }>;
591
591
  verdictKind: _$zod.ZodLiteral<"degrade">;
592
592
  reason: _$zod.ZodEnum<{
@@ -611,8 +611,8 @@ declare const SessionEventStorageNamespace$1: {
611
611
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
612
612
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
613
613
  intent: _$zod.ZodEnum<{
614
- resume: "resume";
615
614
  fork: "fork";
615
+ resume: "resume";
616
616
  }>;
617
617
  verdictKind: _$zod.ZodLiteral<"foreign">;
618
618
  foreignMachineId: _$zod.ZodString;
@@ -967,8 +967,8 @@ declare const SessionEventStorageNamespace$1: {
967
967
  type: _$zod.ZodLiteral<"locality.degraded">;
968
968
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
969
969
  intent: _$zod.ZodEnum<{
970
- resume: "resume";
971
970
  fork: "fork";
971
+ resume: "resume";
972
972
  }>;
973
973
  verdictKind: _$zod.ZodLiteral<"degrade">;
974
974
  reason: _$zod.ZodEnum<{
@@ -993,8 +993,8 @@ declare const SessionEventStorageNamespace$1: {
993
993
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
994
994
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
995
995
  intent: _$zod.ZodEnum<{
996
- resume: "resume";
997
996
  fork: "fork";
997
+ resume: "resume";
998
998
  }>;
999
999
  verdictKind: _$zod.ZodLiteral<"foreign">;
1000
1000
  foreignMachineId: _$zod.ZodString;
@@ -1339,8 +1339,8 @@ declare const SessionEventStorageNamespace$1: {
1339
1339
  type: _$zod.ZodLiteral<"locality.degraded">;
1340
1340
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1341
1341
  intent: _$zod.ZodEnum<{
1342
- resume: "resume";
1343
1342
  fork: "fork";
1343
+ resume: "resume";
1344
1344
  }>;
1345
1345
  verdictKind: _$zod.ZodLiteral<"degrade">;
1346
1346
  reason: _$zod.ZodEnum<{
@@ -1365,8 +1365,8 @@ declare const SessionEventStorageNamespace$1: {
1365
1365
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1366
1366
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1367
1367
  intent: _$zod.ZodEnum<{
1368
- resume: "resume";
1369
1368
  fork: "fork";
1369
+ resume: "resume";
1370
1370
  }>;
1371
1371
  verdictKind: _$zod.ZodLiteral<"foreign">;
1372
1372
  foreignMachineId: _$zod.ZodString;
@@ -1719,8 +1719,8 @@ declare const SessionEventStorageNamespace$1: {
1719
1719
  type: _$zod.ZodLiteral<"locality.degraded">;
1720
1720
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
1721
1721
  intent: _$zod.ZodEnum<{
1722
- resume: "resume";
1723
1722
  fork: "fork";
1723
+ resume: "resume";
1724
1724
  }>;
1725
1725
  verdictKind: _$zod.ZodLiteral<"degrade">;
1726
1726
  reason: _$zod.ZodEnum<{
@@ -1745,8 +1745,8 @@ declare const SessionEventStorageNamespace$1: {
1745
1745
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
1746
1746
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
1747
1747
  intent: _$zod.ZodEnum<{
1748
- resume: "resume";
1749
1748
  fork: "fork";
1749
+ resume: "resume";
1750
1750
  }>;
1751
1751
  verdictKind: _$zod.ZodLiteral<"foreign">;
1752
1752
  foreignMachineId: _$zod.ZodString;
@@ -2087,8 +2087,8 @@ declare const SessionEventStorageNamespace$1: {
2087
2087
  type: _$zod.ZodLiteral<"locality.degraded">;
2088
2088
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2089
2089
  intent: _$zod.ZodEnum<{
2090
- resume: "resume";
2091
2090
  fork: "fork";
2091
+ resume: "resume";
2092
2092
  }>;
2093
2093
  verdictKind: _$zod.ZodLiteral<"degrade">;
2094
2094
  reason: _$zod.ZodEnum<{
@@ -2113,8 +2113,8 @@ declare const SessionEventStorageNamespace$1: {
2113
2113
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2114
2114
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2115
2115
  intent: _$zod.ZodEnum<{
2116
- resume: "resume";
2117
2116
  fork: "fork";
2117
+ resume: "resume";
2118
2118
  }>;
2119
2119
  verdictKind: _$zod.ZodLiteral<"foreign">;
2120
2120
  foreignMachineId: _$zod.ZodString;
@@ -2469,8 +2469,8 @@ declare const SessionEventStorageNamespace$1: {
2469
2469
  type: _$zod.ZodLiteral<"locality.degraded">;
2470
2470
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2471
2471
  intent: _$zod.ZodEnum<{
2472
- resume: "resume";
2473
2472
  fork: "fork";
2473
+ resume: "resume";
2474
2474
  }>;
2475
2475
  verdictKind: _$zod.ZodLiteral<"degrade">;
2476
2476
  reason: _$zod.ZodEnum<{
@@ -2495,8 +2495,8 @@ declare const SessionEventStorageNamespace$1: {
2495
2495
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2496
2496
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2497
2497
  intent: _$zod.ZodEnum<{
2498
- resume: "resume";
2499
2498
  fork: "fork";
2499
+ resume: "resume";
2500
2500
  }>;
2501
2501
  verdictKind: _$zod.ZodLiteral<"foreign">;
2502
2502
  foreignMachineId: _$zod.ZodString;
@@ -2841,8 +2841,8 @@ declare const SessionEventStorageNamespace$1: {
2841
2841
  type: _$zod.ZodLiteral<"locality.degraded">;
2842
2842
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
2843
2843
  intent: _$zod.ZodEnum<{
2844
- resume: "resume";
2845
2844
  fork: "fork";
2845
+ resume: "resume";
2846
2846
  }>;
2847
2847
  verdictKind: _$zod.ZodLiteral<"degrade">;
2848
2848
  reason: _$zod.ZodEnum<{
@@ -2867,8 +2867,8 @@ declare const SessionEventStorageNamespace$1: {
2867
2867
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2868
2868
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
2869
2869
  intent: _$zod.ZodEnum<{
2870
- resume: "resume";
2871
2870
  fork: "fork";
2871
+ resume: "resume";
2872
2872
  }>;
2873
2873
  verdictKind: _$zod.ZodLiteral<"foreign">;
2874
2874
  foreignMachineId: _$zod.ZodString;
@@ -3221,8 +3221,8 @@ declare const SessionEventStorageNamespace$1: {
3221
3221
  type: _$zod.ZodLiteral<"locality.degraded">;
3222
3222
  payload: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3223
3223
  intent: _$zod.ZodEnum<{
3224
- resume: "resume";
3225
3224
  fork: "fork";
3225
+ resume: "resume";
3226
3226
  }>;
3227
3227
  verdictKind: _$zod.ZodLiteral<"degrade">;
3228
3228
  reason: _$zod.ZodEnum<{
@@ -3247,8 +3247,8 @@ declare const SessionEventStorageNamespace$1: {
3247
3247
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3248
3248
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3249
3249
  intent: _$zod.ZodEnum<{
3250
- resume: "resume";
3251
3250
  fork: "fork";
3251
+ resume: "resume";
3252
3252
  }>;
3253
3253
  verdictKind: _$zod.ZodLiteral<"foreign">;
3254
3254
  foreignMachineId: _$zod.ZodString;
@@ -3537,14 +3537,14 @@ declare const SessionEventStorageNamespace$1: {
3537
3537
  timestamp: number;
3538
3538
  type: "locality.degraded";
3539
3539
  payload: {
3540
- intent: "resume" | "fork";
3540
+ intent: "fork" | "resume";
3541
3541
  verdictKind: "degrade";
3542
3542
  reason: "adapter-unsupported" | "adapter-mismatch" | "no-adapter-session" | "missing-machine-id" | "machine-mismatch" | "cwd-mismatch" | "transforms-present" | "compression-present" | "connector-swap" | "mid-history-unsupported" | "hybrid-imported-orchestrated" | "native-attempt-failed" | "agent-already-started" | "fork-point-unresolvable" | "adapter-session-moved";
3543
3543
  agentId?: string | undefined;
3544
3544
  adapterId?: string | undefined;
3545
3545
  turnId?: string | undefined;
3546
3546
  } | {
3547
- intent: "resume" | "fork";
3547
+ intent: "fork" | "resume";
3548
3548
  verdictKind: "foreign";
3549
3549
  foreignMachineId: string;
3550
3550
  agentId?: string | undefined;
@@ -17,13 +17,13 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
17
17
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
18
18
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
19
19
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
20
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
20
21
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
21
22
  label: _$zod.ZodString;
22
23
  url: _$zod.ZodString;
23
24
  }, _$zod_v4_core0.$strict>>>;
24
25
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
25
26
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
26
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
27
27
  name: _$zod.ZodString;
28
28
  enabled: _$zod.ZodBoolean;
29
29
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -42,13 +42,13 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
42
42
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
43
43
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
44
44
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
45
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
45
46
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
46
47
  label: _$zod.ZodString;
47
48
  url: _$zod.ZodString;
48
49
  }, _$zod_v4_core0.$strict>>>;
49
50
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
50
51
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
51
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
52
52
  name: _$zod.ZodString;
53
53
  enabled: _$zod.ZodBoolean;
54
54
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1653,13 +1653,13 @@ declare const AdapterSubsystemNamespace: _$_makaio_core0.BusNamespaceDefinition<
1653
1653
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1654
1654
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1655
1655
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1656
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1656
1657
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1657
1658
  label: _$zod.ZodString;
1658
1659
  url: _$zod.ZodString;
1659
1660
  }, _$zod_v4_core0.$strict>>>;
1660
1661
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1661
1662
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1662
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1663
1663
  name: _$zod.ZodString;
1664
1664
  enabled: _$zod.ZodBoolean;
1665
1665
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1878,13 +1878,13 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1878
1878
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1879
1879
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1880
1880
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1881
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1881
1882
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1882
1883
  label: _$zod.ZodString;
1883
1884
  url: _$zod.ZodString;
1884
1885
  }, _$zod_v4_core0.$strict>>>;
1885
1886
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1886
1887
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1887
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1888
1888
  name: _$zod.ZodString;
1889
1889
  enabled: _$zod.ZodBoolean;
1890
1890
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -1903,13 +1903,13 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
1903
1903
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
1904
1904
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
1905
1905
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
1906
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1906
1907
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
1907
1908
  label: _$zod.ZodString;
1908
1909
  url: _$zod.ZodString;
1909
1910
  }, _$zod_v4_core0.$strict>>>;
1910
1911
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
1911
1912
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1912
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1913
1913
  name: _$zod.ZodString;
1914
1914
  enabled: _$zod.ZodBoolean;
1915
1915
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -3514,13 +3514,13 @@ declare const AdapterSubsystemSubjects: _$_makaio_core0.BusSubjects<_$_makaio_co
3514
3514
  displayName: _$zod.ZodOptional<_$zod.ZodString>;
3515
3515
  protocol: _$zod.ZodOptional<_$zod.ZodString>;
3516
3516
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
3517
+ settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3517
3518
  helpLinks: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
3518
3519
  label: _$zod.ZodString;
3519
3520
  url: _$zod.ZodString;
3520
3521
  }, _$zod_v4_core0.$strict>>>;
3521
3522
  instructions: _$zod.ZodOptional<_$zod.ZodString>;
3522
3523
  providerDefinitionIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
3523
- settings: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3524
3524
  name: _$zod.ZodString;
3525
3525
  enabled: _$zod.ZodBoolean;
3526
3526
  bindings: _$zod.ZodArray<_$zod.ZodObject<{
@@ -0,0 +1 @@
1
+ import{r as e}from"./profile-1fvMljlJ.mjs";import{z as t}from"zod";import{createBusNamespace as n,hostLocalRequest as r}from"@makaio/framework/core";const i=t.enum([`running`,`stopped`,`exited`,`unknown`]),a={request:t.object({clientId:t.string(),cwd:t.string(),command:t.string(),args:t.array(t.string()),env:t.record(t.string(),t.string()).optional(),sessionId:t.string().optional(),clientProfileName:e.optional(),adapterSessionId:t.string().optional(),metadata:t.record(t.string(),t.unknown()).optional()}),response:t.object({supervisorSessionId:t.string(),pid:t.number().int().positive()})},o={request:t.union([t.object({supervisorSessionId:t.string()}).strict(),t.object({sessionId:t.string()}).strict(),t.object({adapterSessionId:t.string()}).strict()]),response:t.object({success:t.boolean(),supervisorSessionId:t.string().optional(),pid:t.number().int().positive().optional(),terminalAttachment:t.object({canAttach:t.boolean()}).optional()})},s=r({request:t.object({attachmentId:t.string().uuid(),locator:o.request}),response:t.object({success:t.boolean(),supervisorSessionId:t.string().optional(),pid:t.number().int().positive().optional(),bufferedOutput:t.string().optional(),wasTruncated:t.boolean().optional(),lastSeq:t.number().int().nonnegative().optional()})}),c=r({request:t.object({attachmentId:t.string().uuid(),data:t.string().min(1)}),response:t.object({success:t.boolean()})}),l=r({request:t.object({attachmentId:t.string().uuid(),cols:t.number().int().positive(),rows:t.number().int().positive()}),response:t.object({success:t.boolean()})}),u=r({request:t.object({attachmentId:t.string().uuid()}),response:t.object({success:t.boolean()})}),d=t.object({attachmentId:t.string().uuid(),seq:t.number().int().positive(),data:t.string()}),f=t.object({attachmentId:t.string().uuid()}),p={request:t.object({supervisorSessionId:t.string(),signal:t.string().optional()}),response:t.object({success:t.boolean()})},m=t.object({supervisorSessionId:t.string(),clientId:t.string(),pid:t.number().int().positive().nullable(),status:i,cwd:t.string(),sessionId:t.string().optional(),adapterSessionId:t.string().optional(),startedAt:t.number().int().nonnegative(),stoppedAt:t.number().int().nonnegative().optional()}),h={request:t.union([t.object({}).strict(),t.object({supervisorSessionId:t.string()}).strict(),t.object({sessionId:t.string()}).strict(),t.object({adapterSessionId:t.string()}).strict()]),response:t.object({runtimes:t.array(m)})},g={launch:a,attach:o,"terminal.open":s,"terminal.input":c,"terminal.resize":l,"terminal.close":u,"terminal.output":d,"terminal.closed":f,stop:p,status:h},_=n(`native-session-supervisor`,g),v=_.subjects;export{a,u as c,s as d,d as f,i as h,o as i,f as l,m,v as n,h as o,l as p,g as r,p as s,_ as t,c as u};
@@ -1,4 +1,4 @@
1
- import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-CTJvpdeL.mjs";
1
+ import { i as BusServerConfig, n as startBusServer, r as BusServer, t as StartBusServerOptions } from "../../server-lifecycle-BINetU26.mjs";
2
2
  import { BusBroadcastMessage, BusMessage, BusRequestMessage, BusTransport, BusTransportError } from "@makaio/framework/bus";
3
3
  import { TransportAuth, WebSocketLike, WebSocketServerLike, WebSocketServerLike as WebSocketServerLike$1 } from "@makaio/framework/node/transports";
4
4
 
@@ -1,2 +1,2 @@
1
- import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-CTJvpdeL.mjs";
1
+ import { n as startBusServer, t as StartBusServerOptions } from "../../server-lifecycle-BINetU26.mjs";
2
2
  export { StartBusServerOptions, startBusServer };
@@ -1,3 +1,4 @@
1
+ import * as _$_makaio_core0 from "@makaio/framework/core";
1
2
  import { PayloadFilter, TransportPeerContext, TransportReceiveContext } from "@makaio/framework/core";
2
3
  import { BusBroadcastMessage, BusEventMessage, BusMessage, BusReceiveHandler, BusRequestMessage, BusTransport, BusTransportError, SubscriptionDeliveryClass } from "@makaio/framework/bus";
3
4
 
@@ -180,6 +181,8 @@ declare class HmacAuth implements TransportAuth {
180
181
  * Cleaned up in `cleanupSocket()` when the socket disconnects.
181
182
  */
182
183
  private serverAuthenticatedPeers;
184
+ /** Stable, server-generated connection identities for authenticated sockets. */
185
+ private serverConnectionIds;
183
186
  /**
184
187
  * Maps each identity-bound socket to the secret it authenticated with.
185
188
  *
@@ -343,6 +346,20 @@ declare class HmacAuth implements TransportAuth {
343
346
  cleanup(): void;
344
347
  }
345
348
  //#endregion
349
+ //#region transports/ws/src/auth/local-cli-identity.d.ts
350
+ /** Stable identity presented by CLI WebSocket clients on the same host. */
351
+ declare const MAKAIO_LOCAL_CLI_HMAC_IDENTITY_ID = "makaio-cli-local:v1";
352
+ /** Peer kind hosts accept for local CLI supervisor controls. */
353
+ declare const MAKAIO_LOCAL_CLI_PEER_KIND = "makaio-cli-local";
354
+ /**
355
+ * Register the local CLI identity for the lifetime of a host transport.
356
+ * The shared host bus secret is the trust boundary; this peer kind is not a
357
+ * separate credential from other processes that already possess that secret.
358
+ * @param secret - Existing authenticated-bus secret shared with the CLI.
359
+ * @returns Cleanup function that unregisters this registration generation.
360
+ */
361
+ declare function registerMakaioLocalCliHmacIdentity(secret: string): () => void;
362
+ //#endregion
346
363
  //#region transports/ws/src/auth/identity-secret-registry.d.ts
347
364
  /** Options for registering an HMAC identity secret. */
348
365
  interface HmacIdentitySecretRegistrationOptions {
@@ -839,6 +856,19 @@ declare class DispatchingAuth implements TransportAuth {
839
856
  * @returns true if the message was handled as an auth message, false otherwise
840
857
  */
841
858
  handleAuthMessage(message: unknown, socket?: WebSocketLike): boolean;
859
+ /**
860
+ * Return trusted receive context from the strategy selected for this socket.
861
+ * Single-strategy dispatchers delegate directly because no per-socket route is recorded.
862
+ * @param socket - Optional server-side socket.
863
+ * @returns Trusted receive context, or undefined when the selected strategy has none.
864
+ */
865
+ getReceiveContext(socket?: WebSocketLike): _$_makaio_core0.TransportReceiveContext | undefined;
866
+ /**
867
+ * Return whether the strategy selected for a socket still authorizes it.
868
+ * @param socket - Server-side socket whose authorization should be checked.
869
+ * @returns True when no selected strategy provides a liveness check, otherwise its result.
870
+ */
871
+ isSocketAuthenticated(socket: WebSocketLike): boolean;
842
872
  /**
843
873
  * Clean up authentication resources for a specific socket.
844
874
  *
@@ -869,6 +899,12 @@ declare class DispatchingAuth implements TransportAuth {
869
899
  * @returns The sole configured strategy, or `undefined`
870
900
  */
871
901
  private resolveSingleStrategy;
902
+ /**
903
+ * Resolve a socket's selected strategy, with direct fallback for single-strategy dispatchers.
904
+ * @param socket - Optional server-side socket.
905
+ * @returns The selected or sole strategy, or undefined when no route is available.
906
+ */
907
+ private resolveSocketStrategy;
872
908
  /**
873
909
  * Select the appropriate strategy based on the first auth message type.
874
910
  *
@@ -1546,6 +1582,7 @@ declare class ServerTransport implements BusTransport {
1546
1582
  private readonly broadcastAggregator;
1547
1583
  private readonly correlations;
1548
1584
  private connectionListener;
1585
+ private readonly connectionClosedHandlers;
1549
1586
  /**
1550
1587
  * @param options - Server transport configuration
1551
1588
  */
@@ -1590,6 +1627,21 @@ declare class ServerTransport implements BusTransport {
1590
1627
  * @returns Promise resolving to `true` if delivered to at least one client, `false` otherwise
1591
1628
  */
1592
1629
  send(message: BusMessage, timeout?: number): Promise<boolean>;
1630
+ /**
1631
+ * Deliver an event to exactly one server-generated WebSocket connection.
1632
+ * @param message - Event to deliver.
1633
+ * @param connectionId - Server-generated connection identity.
1634
+ * @returns Whether the target is still connected and received the event.
1635
+ */
1636
+ sendToConnection(message: Extract<BusMessage, {
1637
+ type: 'event';
1638
+ }>, connectionId: string): Promise<boolean>;
1639
+ /**
1640
+ * Subscribe to server-owned WebSocket connection teardown.
1641
+ * @param handler - Called after a connection is no longer routable.
1642
+ * @returns Unsubscribe function.
1643
+ */
1644
+ onConnectionClosed(handler: (connectionId: string) => void): () => void;
1593
1645
  /**
1594
1646
  * Register a handler for incoming messages from clients.
1595
1647
  * @param handler - Handler function for incoming messages
@@ -2251,4 +2303,4 @@ declare module '@makaio/framework/bus' {
2251
2303
  }
2252
2304
  }
2253
2305
  //#endregion
2254
- export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReadinessMode, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, resolveHmacIdentityAllowedMessageSubjects, resolveHmacIdentityAllowedSubscriptionSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };
2306
+ export { type ClientTransportCodec, DispatchingAuth, E2EAuth, E2ERelayAuth, type E2ERelayAuthOptions, HmacAuth, type HmacIdentitySecretRegistrationOptions, type HmacIdentitySecretRotationOptions, MAKAIO_LOCAL_CLI_HMAC_IDENTITY_ID, MAKAIO_LOCAL_CLI_PEER_KIND, type RelayControlBusMessage, type RelayControlEnvelopeMessage, type RelayControlHelpers, type RelayControlRegistry, ServerTransport, type TransportAuth, WebSocketClientTransport, type WebSocketClientTransportHeartbeatOptions, type WebSocketClientTransportOptions, type WebSocketClientTransportReadinessMode, type WebSocketClientTransportReconnectOptions, type WebSocketCloseEvent, WebSocketConnectionError, type WebSocketConnectionErrorCode, type WebSocketLike, type WebSocketServerLike, captureHmacIdentitySecretCleanup, clearHmacIdentitySecretsForTesting, createE2EClientTransport, createE2ERelayClientTransport, createE2ERelayCodec, createRelayControlHelpers, createRelayControlRegistry, createWebSocketCloseEvent, createWebSocketTransport, index_d_exports as crypto, extractSocketErrorMessage, registerHmacIdentitySecret, registerMakaioLocalCliHmacIdentity, resolveHmacIdentityAllowedMessageSubjects, resolveHmacIdentityAllowedSubscriptionSubjects, resolveHmacIdentityPeer, resolveHmacIdentitySecret, rotateHmacIdentitySecret };