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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{adapter-C4v_gNTI.mjs → adapter-DSRgsh2d.mjs} +1 -1
  3. package/dist/adapter-subsystem/index.d.mts +15 -7
  4. package/dist/adapter-subsystem/index.mjs +1 -1
  5. package/dist/adapters/claude/index.mjs +3 -3
  6. package/dist/adapters/config/index.d.mts +1 -1
  7. package/dist/adapters/index.d.mts +2 -2
  8. package/dist/adapters/node.d.mts +1 -1
  9. package/dist/{attempt-record-codec-DaQ3WHUs.mjs → attempt-record-codec-DXpdMgyI.mjs} +1 -1
  10. package/dist/bus/index.d.mts +120 -8
  11. package/dist/bus/index.mjs +1 -1
  12. package/dist/bus-ceMF9rsq.mjs +9 -0
  13. package/dist/client-DWSwtFyI.mjs +1 -0
  14. package/dist/clients/index.d.mts +179 -12
  15. package/dist/clients/index.mjs +1 -1
  16. package/dist/clients/managed-install.d.mts +1 -1
  17. package/dist/code-execution/worker-entry.d.mts +1 -1
  18. package/dist/code-execution/worker-entry.mjs +1 -1
  19. package/dist/{code-execution-pUF4IO462.mjs → code-execution-DWSux6k1.mjs} +1 -1
  20. package/dist/contracts/adapter/index.d.mts +2 -2
  21. package/dist/contracts/adapter/index.mjs +1 -1
  22. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  23. package/dist/contracts/artifact/index.d.mts +2 -2
  24. package/dist/contracts/auth/index.d.mts +2 -2
  25. package/dist/contracts/automation-trigger/index.d.mts +3 -3
  26. package/dist/contracts/canonical-model/index.d.mts +1 -1
  27. package/dist/contracts/capabilities/index.d.mts +1 -1
  28. package/dist/contracts/client/index.d.mts +3 -3
  29. package/dist/contracts/client/index.mjs +1 -1
  30. package/dist/contracts/code-execution/index.d.mts +1 -1
  31. package/dist/contracts/common/index.d.mts +1 -1
  32. package/dist/contracts/config/index.d.mts +2 -47
  33. package/dist/contracts/context-projection/index.d.mts +232 -0
  34. package/dist/contracts/context-projection/index.mjs +1 -0
  35. package/dist/contracts/extension/index.d.mts +6 -6
  36. package/dist/contracts/extension/index.mjs +1 -1
  37. package/dist/contracts/facet/index.d.mts +1 -1
  38. package/dist/contracts/harness/index.d.mts +1 -1
  39. package/dist/contracts/host/index.d.mts +1 -1
  40. package/dist/contracts/index.d.mts +43 -43
  41. package/dist/contracts/index.mjs +1 -1
  42. package/dist/contracts/materialization/index.d.mts +2 -2
  43. package/dist/contracts/model-registry/index.d.mts +1 -1
  44. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  45. package/dist/contracts/platform/index.d.mts +1 -1
  46. package/dist/contracts/provider/index.d.mts +2 -2
  47. package/dist/contracts/reaction/index.d.mts +1 -1
  48. package/dist/contracts/session/index.d.mts +3 -3
  49. package/dist/contracts/session/index.mjs +1 -1
  50. package/dist/contracts/shared/index.d.mts +2 -2
  51. package/dist/contracts/skill/index.d.mts +1 -1
  52. package/dist/contracts/telemetry/index.d.mts +1 -1
  53. package/dist/contracts/timeout/index.d.mts +1 -1
  54. package/dist/contracts/variant/index.d.mts +1 -1
  55. package/dist/contracts/worker/index.d.mts +2 -2
  56. package/dist/contracts/workflow/index.d.mts +2 -2
  57. package/dist/{contribution-DDbHzCPF.d.mts → contribution-1GL7Rjaq.d.mts} +2 -2
  58. package/dist/credential-ref-w4ZYpYW0.d.mts +49 -0
  59. package/dist/{definition-CuaBQyde.d.mts → definition-DeIGoROj.d.mts} +1 -1
  60. package/dist/{descriptor-to-package-Dw8dnl5E.mjs → descriptor-to-package-BPIArq6N.mjs} +1 -1
  61. package/dist/{detached-extension-handle-DN3aqLyq.mjs → detached-extension-handle-W5_yfCyE.mjs} +1 -1
  62. package/dist/drizzle/0040_session_generation.sql +1 -0
  63. package/dist/drizzle/0041_session_principal_owner.sql +1 -0
  64. package/dist/drizzle/meta/_journal.json +14 -0
  65. package/dist/{execution-attempt-owner-recovery-CE_rvHKE.mjs → execution-attempt-owner-recovery-BZOEVYFH.mjs} +1 -1
  66. package/dist/extension-C6ANjR33.mjs +1 -0
  67. package/dist/{extension-context-BH31eOMv.d.mts → extension-context-pQ7Uio_s.d.mts} +44 -1
  68. package/dist/{extension-discovery-CA2IhDRo.d.mts → extension-discovery-Rup-gANp.d.mts} +114 -15
  69. package/dist/extension-kOwzAMud.mjs +1 -0
  70. package/dist/extension-namespace-CeRpt6C8.mjs +1 -0
  71. package/dist/{framework-packages-Bg4edkkM.mjs → framework-packages-U4Xhouxe.mjs} +1 -1
  72. package/dist/{hook-responses-Dq16X3Cb.d.mts → hook-responses-B882RcQc.d.mts} +48 -5
  73. package/dist/{index-Dm3d490n.d.mts → index-B2bxgKiK.d.mts} +1 -1
  74. package/dist/{index-7CVumCjj.d.mts → index-BTpkpHIS.d.mts} +65 -9
  75. package/dist/{index-Bh57xARQ.d.mts → index-BUv9gfRT.d.mts} +3 -3
  76. package/dist/{index-C6e9cwAl2.d.mts → index-BjQtqMxP2.d.mts} +4 -4
  77. package/dist/{index-B-u0Tu8X.d.mts → index-Bqi44ODz.d.mts} +37 -37
  78. package/dist/{index-CIzvBH8O.d.mts → index-C8two8wz.d.mts} +1 -1
  79. package/dist/{index-oxZt93RL.d.mts → index-CESqYf8a.d.mts} +2 -2
  80. package/dist/{index-C87P0WpY2.d.mts → index-CmCLAMNs.d.mts} +1 -1
  81. package/dist/index-CyEE1RI5.d.mts +869 -0
  82. package/dist/{index-De_oh9M-2.d.mts → index-D6Uq1btG.d.mts} +87 -10
  83. package/dist/{index-CRZ1jrxp.d.mts → index-DDSt0uS2.d.mts} +160 -12
  84. package/dist/{index-B6WkHnCQ.d.mts → index-DRxgmrad.d.mts} +1 -1
  85. package/dist/{index-U--ajOHy.d.mts → index-DUYjTfHD.d.mts} +1 -1
  86. package/dist/{index-HJkz7i4E.d.mts → index-DdJKsdya.d.mts} +188 -10
  87. package/dist/{index-B4pPwpKk.d.mts → index-DfREUyAk.d.mts} +1 -1
  88. package/dist/{index-ClKwF6LE.d.mts → index-Di-R1gmo.d.mts} +2 -2
  89. package/dist/{index-DWANFpTG.d.mts → index-Jdju2W3y.d.mts} +1 -1
  90. package/dist/{index-DQKVQPUS.d.mts → index-L6mssyeZ.d.mts} +1 -1
  91. package/dist/{index-B8v1-2-V2.d.mts → index-anIxF_eT.d.mts} +1 -1
  92. package/dist/{index-iVisrVdC2.d.mts → index-bYBnDBl32.d.mts} +539 -4
  93. package/dist/{index-Bg3WVL8n.d.mts → index-gNdH1F6r.d.mts} +531 -26
  94. package/dist/{index-zmDRR8gv2.d.mts → index-m5ZQFglW2.d.mts} +1 -1
  95. package/dist/{index-mTaFX2HH2.d.mts → index-uk8icWON2.d.mts} +419 -19
  96. package/dist/kernel/cli/index.d.mts +2 -2
  97. package/dist/kernel/cli/register.d.mts +1 -1
  98. package/dist/kernel/extension/index.d.mts +3 -2
  99. package/dist/kernel/extension/index.mjs +1 -1
  100. package/dist/kernel/index.d.mts +6 -6
  101. package/dist/kernel/index.mjs +1 -1
  102. package/dist/kernel/namespace/index.d.mts +1 -1
  103. package/dist/kernel/observability/index.d.mts +2 -2
  104. package/dist/kernel/observability/index.mjs +1 -1
  105. package/dist/kernel/providers/index.d.mts +1 -1
  106. package/dist/kernel/window/index.d.mts +1 -1
  107. package/dist/{lib-BF5XBSfw.mjs → lib-BdyGVjpO.mjs} +1 -1
  108. package/dist/{lib-Dljw2Cqh.mjs → lib-DxP3tPm9.mjs} +1 -1
  109. package/dist/load-extensions-BGfSWW_R.mjs +1 -0
  110. package/dist/{load-extensions-DGstT4_p.d.mts → load-extensions-Be_lOjm_.d.mts} +27 -14
  111. package/dist/mcp-http-server/index.mjs +1 -1
  112. package/dist/{namespace-BMdYJN_t.mjs → namespace-CqJhR19O.mjs} +1 -1
  113. package/dist/{namespace-Cmu-5_P9.d.mts → namespace-DudchWPb.d.mts} +457 -0
  114. package/dist/{namespace-BEbQb19g.d.mts → namespace-Eir1wQ_r.d.mts} +2 -2
  115. package/dist/node/bus-server/index.d.mts +1 -1
  116. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  117. package/dist/node/transports/index.d.mts +102 -4
  118. package/dist/node/transports/index.mjs +2 -2
  119. package/dist/{orchestrator-shared-CtPB6PAr.mjs → orchestrator-shared-CF-jPH91.mjs} +1 -1
  120. package/dist/ownership-memory-handler-C-y9zQf8.mjs +1 -0
  121. package/dist/package-AlsbnlSt.mjs +159 -0
  122. package/dist/{package-CDj3F-L3.d.mts → package-CwyC-Krg.d.mts} +1 -1
  123. package/dist/{package-DYScYC0D.mjs → package-kkPGlxMm.mjs} +1 -1
  124. package/dist/package.json +1 -1
  125. package/dist/{registry-DNMjJ-Oj.mjs → registry-DtaRGU8i.mjs} +1 -0
  126. package/dist/rules/index.d.mts +1 -1
  127. package/dist/rules/index.mjs +1 -1
  128. package/dist/rules/schemas.d.mts +1 -1
  129. package/dist/runtime-bun/index.d.mts +2 -2
  130. package/dist/runtime-bun/index.mjs +1 -1
  131. package/dist/runtime-node/boot-config.d.mts +45 -0
  132. package/dist/runtime-node/boot-config.mjs +1 -0
  133. package/dist/runtime-node/code-execution/index.d.mts +2 -2
  134. package/dist/runtime-node/code-execution/index.mjs +1 -1
  135. package/dist/runtime-node/extension-discovery.d.mts +2 -2
  136. package/dist/runtime-node/extension-discovery.mjs +1 -1
  137. package/dist/runtime-node/extension-validation.d.mts +1 -1
  138. package/dist/runtime-node/extension-validation.mjs +1 -1
  139. package/dist/runtime-node/index.d.mts +345 -27
  140. package/dist/runtime-node/index.mjs +21 -24
  141. package/dist/runtime-node/makaio-config.d.mts +1 -1
  142. package/dist/runtime-node/makaio-config.mjs +1 -1
  143. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  144. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  145. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  146. package/dist/{schema-BA1cHBbc.d.mts → schema-FY0EakKe.d.mts} +56 -0
  147. package/dist/schemas-CkxAK13D.mjs +1 -0
  148. package/dist/{schemas-CaYEFzK_.d.mts → schemas-FgVQek-j.d.mts} +2 -2
  149. package/dist/services/adapter-runtime/index.d.mts +3 -3
  150. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  151. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  152. package/dist/services/adapter-subsystem/index.d.mts +3 -3
  153. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  154. package/dist/services/agent-runtime/index.d.mts +2 -2
  155. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  156. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  157. package/dist/services/automation-trigger/index.d.mts +19 -0
  158. package/dist/services/capability/index.d.mts +2 -2
  159. package/dist/services/code-execution/index.d.mts +1 -1
  160. package/dist/services/codebase/index.d.mts +2 -2
  161. package/dist/services/codebase/namespace.d.mts +1 -1
  162. package/dist/services/codebase/schemas.d.mts +1 -1
  163. package/dist/services/compression/index.d.mts +2 -2
  164. package/dist/services/compression/namespace.d.mts +1 -1
  165. package/dist/services/compression/schemas.d.mts +1 -1
  166. package/dist/services/context-projection/index.d.mts +94 -0
  167. package/dist/services/context-projection/index.mjs +1 -0
  168. package/dist/services/context-rules/index.d.mts +1 -1
  169. package/dist/services/execution-target/index.d.mts +3 -3
  170. package/dist/services/execution-target/namespace.d.mts +1 -1
  171. package/dist/services/execution-target/schemas.d.mts +1 -1
  172. package/dist/services/filesystem/index.d.mts +1 -1
  173. package/dist/services/index.d.mts +45 -40
  174. package/dist/services/index.mjs +1 -1
  175. package/dist/services/log-import/browser.d.mts +2 -2
  176. package/dist/services/log-import/index.d.mts +2 -2
  177. package/dist/services/log-import/log-import.d.mts +1 -1
  178. package/dist/services/materialization/index.d.mts +1 -1
  179. package/dist/services/model-registry/index.d.mts +1 -1
  180. package/dist/services/preferences/index.d.mts +2 -2
  181. package/dist/services/preferences/schemas.d.mts +1 -1
  182. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  183. package/dist/services/provider-context/index.d.mts +1 -1
  184. package/dist/services/session/handlers/index.d.mts +1 -1
  185. package/dist/services/session/index.d.mts +9 -9
  186. package/dist/services/session/index.mjs +1 -1
  187. package/dist/services/session/messages/namespace.d.mts +1 -1
  188. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  189. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  190. package/dist/services/session/session-events/namespace.d.mts +1 -1
  191. package/dist/services/session/storage/namespace.d.mts +1 -1
  192. package/dist/services/session/storage/schema.d.mts +1 -1
  193. package/dist/services/session/storage/schema.mjs +1 -1
  194. package/dist/services/session/testing/index.mjs +4 -2
  195. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  196. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  197. package/dist/services/session/turns/namespace.d.mts +1 -1
  198. package/dist/services/session-editor/index.d.mts +1 -1
  199. package/dist/services/settings/index.d.mts +3 -3
  200. package/dist/services/settings/namespace.d.mts +232 -3
  201. package/dist/services/settings/namespace.mjs +1 -1
  202. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  203. package/dist/services/settings/storage/index.d.mts +3 -3
  204. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  205. package/dist/services/subagent/index.d.mts +1 -1
  206. package/dist/services/subagent-template/index.d.mts +2 -2
  207. package/dist/services/subagent-template/namespace.d.mts +1 -1
  208. package/dist/services/subagent-template/schemas.d.mts +1 -1
  209. package/dist/services/tool-approval/index.d.mts +1 -1
  210. package/dist/services/tool-approval/index.mjs +1 -1
  211. package/dist/services/tools/index.d.mts +1 -1
  212. package/dist/services/tools/index.mjs +1 -1
  213. package/dist/services/tray-menu/index.d.mts +3 -3
  214. package/dist/services/tray-menu/namespace.d.mts +1 -1
  215. package/dist/services/tray-menu/schemas.d.mts +1 -1
  216. package/dist/services/turn/index.d.mts +1 -1
  217. package/dist/services/turn/namespace.d.mts +1 -1
  218. package/dist/services/workflow-transitions/index.d.mts +1 -1
  219. package/dist/services/workflow-transitions/index.mjs +1 -1
  220. package/dist/session-BNiMZnfF.mjs +1 -0
  221. package/dist/session-CMbztxNO.mjs +95 -0
  222. package/dist/src-BZdw54VU.mjs +1 -0
  223. package/dist/{src-CbAw9kjJ.mjs → src-C0sw_Vs_.mjs} +1 -1
  224. package/dist/{src-Xn6SS74f.mjs → src-CqQSqLQI.mjs} +1 -1
  225. package/dist/storage/drizzle/client.d.mts +1 -1
  226. package/dist/storage/drizzle/client.mjs +1 -1
  227. package/dist/storage/drizzle/index.d.mts +1 -1
  228. package/dist/storage/drizzle/index.mjs +1 -1
  229. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  230. package/dist/storage/handlers/index.d.mts +1 -1
  231. package/dist/{tool-approval-service-pbkGcAV8.mjs → tool-approval-service-CRo3fZRF.mjs} +1 -1
  232. package/dist/{tools-C5Gy0IQG.mjs → tools-CKaxi3Mb.mjs} +1 -1
  233. package/dist/{transition-D-Lgbp1j.d.mts → transition-DMv8cgEd.d.mts} +2 -2
  234. package/dist/{types-CjYcHDPo2.d.mts → types-7L3BrU9m2.d.mts} +1 -1
  235. package/dist/{types-DhbllltK.d.mts → types-DNYO_Rxj.d.mts} +12 -3
  236. package/dist/ui-hooks/index.d.mts +17 -24
  237. package/dist/ui-hooks/index.mjs +1 -1
  238. package/dist/ui-kernel/index.d.mts +11 -2
  239. package/dist/ui-kernel/index.mjs +1 -1
  240. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  241. package/dist/ui-views/index.mjs +1 -1
  242. package/dist/utils/index.d.mts +31 -1
  243. package/dist/utils/index.mjs +2 -2
  244. package/dist/{view-builder-CHUTXJDl.d.mts → view-builder-DJGz9I-u.d.mts} +2 -2
  245. package/dist/workflow-engine/execution-attempt-repository.d.mts +1 -1
  246. package/dist/workflow-engine/execution-attempt-repository.mjs +1 -1
  247. package/dist/workflow-engine/index.d.mts +2 -2
  248. package/dist/workflow-engine/index.mjs +1 -1
  249. package/dist/workflow-engine/package.d.mts +1 -1
  250. package/dist/workflow-engine/package.mjs +1 -1
  251. package/dist/workflow-engine/provider-operation.d.mts +1 -1
  252. package/dist/workflow-engine/testing/conformance.d.mts +1 -1
  253. package/dist/workflow-engine/testing/conformance.mjs +1 -1
  254. package/dist/workflow-engine/testing/index.d.mts +1 -1
  255. package/dist/workflow-engine/testing/index.mjs +1 -1
  256. package/dist/workflow-engine/testing/sqlite.d.mts +1 -1
  257. package/dist/workflow-engine/testing/sqlite.mjs +1 -1
  258. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  259. package/dist/{workflow-transitions-C0sg3kar.mjs → workflow-transitions-t0ORS1F5.mjs} +1 -1
  260. package/dist/workflow-worker-DXCXb3g-.mjs +3 -0
  261. package/package.json +9 -1
  262. package/dist/bus-BQ64i3DN.mjs +0 -9
  263. package/dist/client-Bg3_IdaF.mjs +0 -1
  264. package/dist/extension-CfrTp3rC.mjs +0 -1
  265. package/dist/extension-CnNcY1hR.mjs +0 -1
  266. package/dist/extension-namespace-Ct9L6SKr.mjs +0 -1
  267. package/dist/index-D_j_T3nS.d.mts +0 -435
  268. package/dist/load-extensions-BVgxTj_y.mjs +0 -1
  269. package/dist/ownership-memory-handler-xex7sLiX.mjs +0 -1
  270. package/dist/schemas-ClkcU_N5.mjs +0 -1
  271. package/dist/session-6UG5udTX.mjs +0 -95
  272. package/dist/session-BB0s7c2B.mjs +0 -1
  273. package/dist/workflow-worker-ChrMIcKm.mjs +0 -2
  274. /package/dist/{adapter-binding-BxjUfkOn.d.mts → adapter-binding-CaYBrIkL.d.mts} +0 -0
  275. /package/dist/{attempt-control-evidence-7lwRG73Y.mjs → attempt-control-evidence-CHBnJoqN.mjs} +0 -0
  276. /package/dist/{attempt-fixtures-DHdYmr3o.mjs → attempt-fixtures-D3IsP0KH.mjs} +0 -0
  277. /package/dist/{authority-state-bootstrap-CvuWPywM.mjs → authority-state-bootstrap-4F5Wc_6l.mjs} +0 -0
  278. /package/dist/{base-orchestrator-CrXiMJzf.d.mts → base-orchestrator-1ofFsqUz.d.mts} +0 -0
  279. /package/dist/{bootstrap-start-client-C1ZHbv6e.mjs → bootstrap-start-client-9nOdeDYl.mjs} +0 -0
  280. /package/dist/{capability-service-CQ1aw_p-.d.mts → capability-service-CUN0MIS7.d.mts} +0 -0
  281. /package/dist/{client-ByjHcS78.d.mts → client-BY3sBW2L.d.mts} +0 -0
  282. /package/dist/{client-binary-version-verifier-C4fEAUdo.d.mts → client-binary-version-verifier-BeO4Eptw.d.mts} +0 -0
  283. /package/dist/{clients-namespace-D4BxF2Nw.d.mts → clients-namespace-D92YsbKI.d.mts} +0 -0
  284. /package/dist/{config-namespace-B1zyOYwH.d.mts → config-namespace-OEckUfVE.d.mts} +0 -0
  285. /package/dist/{create-static-mount-Dgxgi4W3.mjs → create-static-mount-4B-mNtx1.mjs} +0 -0
  286. /package/dist/{cross-spawn-BMCAyqrN.mjs → cross-spawn-DGqEuNyT.mjs} +0 -0
  287. /package/dist/{definition-ClWxAKQ2.d.mts → definition-DLJg-P4G.d.mts} +0 -0
  288. /package/dist/{esm-Ccx-3z8E.mjs → esm-DwiWcwH0.mjs} +0 -0
  289. /package/dist/{execution-attempt-repository-aabFKcXN.mjs → execution-attempt-repository-CY289HlC.mjs} +0 -0
  290. /package/dist/{execution-attempt-repository-BUah8hma.d.mts → execution-attempt-repository-DOb5V4N2.d.mts} +0 -0
  291. /package/dist/{extension-package-provenance-C7oO5JAE.mjs → extension-package-provenance-ClpN3GHp.mjs} +0 -0
  292. /package/dist/{filesystem-service-CDYoiwWY.d.mts → filesystem-service-BmavE-uO.d.mts} +0 -0
  293. /package/dist/{index-BbkcbY6d.d.mts → index--gbsE1W0.d.mts} +0 -0
  294. /package/dist/{index-DdVpWkaI.d.mts → index-B36rL4gp.d.mts} +0 -0
  295. /package/dist/{index-DM72_93s.d.mts → index-BD1SbHpP.d.mts} +0 -0
  296. /package/dist/{index-KdlZRuTp.d.mts → index-BDcK7jqJ2.d.mts} +0 -0
  297. /package/dist/{index-DAaQ--ki.d.mts → index-BQYGOXY5.d.mts} +0 -0
  298. /package/dist/{index-gAyARaKS.d.mts → index-BneZFJ7x.d.mts} +0 -0
  299. /package/dist/{index-D8ELwT5y.d.mts → index-BujgCaKt.d.mts} +0 -0
  300. /package/dist/{index-DfU8s_xP.d.mts → index-C2StVLk4.d.mts} +0 -0
  301. /package/dist/{index-BGnQ0EyD.d.mts → index-CCTzitBA.d.mts} +0 -0
  302. /package/dist/{index-CVRT01082.d.mts → index-Cj_V1aRL.d.mts} +0 -0
  303. /package/dist/{index-nkix3hP7.d.mts → index-CpN2C9jq.d.mts} +0 -0
  304. /package/dist/{index-D6p17KPs.d.mts → index-CsRPJ9FV.d.mts} +0 -0
  305. /package/dist/{index-BPNfYEA22.d.mts → index-CvdvuhTL2.d.mts} +0 -0
  306. /package/dist/{index-DmX9W3xH2.d.mts → index-D3peNmHN2.d.mts} +0 -0
  307. /package/dist/{index-DiZ4LmyE.d.mts → index-D7smT-YD.d.mts} +0 -0
  308. /package/dist/{index-B78CRVi9.d.mts → index-DEx4ZFkz.d.mts} +0 -0
  309. /package/dist/{index-CjDQn6lw.d.mts → index-DGoJayJg.d.mts} +0 -0
  310. /package/dist/{index-F7cVpFJ9.d.mts → index-DTvYp2GT.d.mts} +0 -0
  311. /package/dist/{index-Htfr-K5U2.d.mts → index-DqliLe_D2.d.mts} +0 -0
  312. /package/dist/{index-BCU5oByg.d.mts → index-DubyRZD9.d.mts} +0 -0
  313. /package/dist/{index-DjSUOMlr.d.mts → index-DwOpaQAE.d.mts} +0 -0
  314. /package/dist/{index-BZoOYV-y.d.mts → index-DxkSkszz.d.mts} +0 -0
  315. /package/dist/{index-tbjIqwa3.d.mts → index-TBJ1kIGA.d.mts} +0 -0
  316. /package/dist/{index-DXQTkwLB.d.mts → index-YOXWpZAS.d.mts} +0 -0
  317. /package/dist/{index-CXpgL3gz2.d.mts → index-aIJ7A4DC2.d.mts} +0 -0
  318. /package/dist/{index-D6liU_KS.d.mts → index-fxh7TB0q.d.mts} +0 -0
  319. /package/dist/{index-xsaaa85T.d.mts → index-qczb9Yx3.d.mts} +0 -0
  320. /package/dist/{index-C_kOkO3E.d.mts → index-zqo2mX_Z.d.mts} +0 -0
  321. /package/dist/{json-value-Ymw2f8i_.d.mts → json-value-Bjl8jzom.d.mts} +0 -0
  322. /package/dist/{jsonl-transport-Bg033Ng0.mjs → jsonl-transport-Ct1RWs0h.mjs} +0 -0
  323. /package/dist/{lib-BizqbepU.mjs → lib-DomKag_k.mjs} +0 -0
  324. /package/dist/{namespace-rJ3ycPMg.d.mts → namespace-Bhx72V7S.d.mts} +0 -0
  325. /package/dist/{namespace-BCVKdu-U.d.mts → namespace-CxEQv9iZ.d.mts} +0 -0
  326. /package/dist/{namespace-COHHDh2I.d.mts → namespace-D09uQ231.d.mts} +0 -0
  327. /package/dist/{namespace-UFcDEBJB.d.mts → namespace-D5DkpaaN.d.mts} +0 -0
  328. /package/dist/{namespace-CvK86QFk.d.mts → namespace-DHLwz4o3.d.mts} +0 -0
  329. /package/dist/{namespace-B5IFLQc-.d.mts → namespace-DHbrNQYD.d.mts} +0 -0
  330. /package/dist/{namespace-s0e215xO.d.mts → namespace-DyD06b5-.d.mts} +0 -0
  331. /package/dist/{namespace-C1pPZKtI.d.mts → namespace-Dz5_Hrz7.d.mts} +0 -0
  332. /package/dist/{namespace-Phxf0Lep.d.mts → namespace-Lkv2nyzb.d.mts} +0 -0
  333. /package/dist/{namespace-DM5vykb7.d.mts → namespace-hlhPqSsw.d.mts} +0 -0
  334. /package/dist/{namespace-DlOQmhgX.d.mts → namespace-x-gk5SmK.d.mts} +0 -0
  335. /package/dist/{namespace-f6Kz5cwX.d.mts → namespace-zusFEJPh.d.mts} +0 -0
  336. /package/dist/{orchestrator-shared--srEeSaY.d.mts → orchestrator-shared-ChU5qRSe.d.mts} +0 -0
  337. /package/dist/{packages-B98-WETs.d.mts → packages-D2s51nGU.d.mts} +0 -0
  338. /package/dist/{providers-namespace-DRcl03bo.d.mts → providers-namespace-BLVt8OyP.d.mts} +0 -0
  339. /package/dist/{runtime-inputs-DBtVIy9h.d.mts → runtime-inputs-BU_kBrP7.d.mts} +0 -0
  340. /package/dist/{schemas-CEJe8O6P.d.mts → schemas-3KTmPuZg.d.mts} +0 -0
  341. /package/dist/{schemas-D_-iXLQ9.d.mts → schemas-B-5_Dp4_.d.mts} +0 -0
  342. /package/dist/{schemas-CeItAAQM.d.mts → schemas-BLxdGZkr.d.mts} +0 -0
  343. /package/dist/{schemas-Cj6Gbqch.d.mts → schemas-BegArpU_.d.mts} +0 -0
  344. /package/dist/{schemas-Ca5RILd-2.d.mts → schemas-BzB6z9oX2.d.mts} +0 -0
  345. /package/dist/{schemas-CtzZDp29.d.mts → schemas-CBBzvIh0.d.mts} +0 -0
  346. /package/dist/{schemas-Cq1d5tid.d.mts → schemas-CD3Mq-jC.d.mts} +0 -0
  347. /package/dist/{schemas-LiiyNNpr.d.mts → schemas-Cl7fPlRv.d.mts} +0 -0
  348. /package/dist/{schemas-DJ2vMsgm.d.mts → schemas-CqawCYTY.d.mts} +0 -0
  349. /package/dist/{schemas-2_D4iVbb.d.mts → schemas-DEg6R9ph.d.mts} +0 -0
  350. /package/dist/{schemas-JjyFxrC0.d.mts → schemas-rMUsvzeJ.d.mts} +0 -0
  351. /package/dist/{server-lifecycle-DUKp1Fbf.d.mts → server-lifecycle-CTJvpdeL.d.mts} +0 -0
  352. /package/dist/{session-lineage-C3myyt5x.d.mts → session-lineage-BuGN3RZs.d.mts} +0 -0
  353. /package/dist/{storage-namespace-IvLOIP7j.d.mts → storage-namespace-B5r_ScUz.d.mts} +0 -0
  354. /package/dist/{storage-namespace-definition-Cv0XiTXb.d.mts → storage-namespace-definition-DiYr8UNl.d.mts} +0 -0
  355. /package/dist/{types-hkExapGH.d.mts → types-BSx8YYlc.d.mts} +0 -0
  356. /package/dist/{types-BYEybzjX.d.mts → types-CpEoQapk.d.mts} +0 -0
  357. /package/dist/{types-QRSc2AUU.d.mts → types-Cuhnt15L.d.mts} +0 -0
  358. /package/dist/{types-QsyX4H21.d.mts → types-DEGuc-fn.d.mts} +0 -0
  359. /package/dist/{types-BRM1AZaP.d.mts → types-DciLiPMd.d.mts} +0 -0
  360. /package/dist/{types-CsmvIK25.mjs → types-wwuw7RkB.mjs} +0 -0
  361. /package/dist/{window-registry-DeG37kt8.d.mts → window-registry-C3W2wtlX.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import { l as JsonValue$1 } from "./json-value-Ymw2f8i_.mjs";
1
+ import { l as JsonValue$1 } from "./json-value-Bjl8jzom.mjs";
2
2
  import { z } from "zod";
3
3
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
4
 
@@ -148,10 +148,10 @@ type BuiltinWidget = 'tags' | 'textarea-array' | 'password' | 'slider' | 'capabi
148
148
  * Plugin widget registry - augment to add custom widgets.
149
149
  * @example Augmenting from a plugin
150
150
  * ```typescript
151
- * // extensions/loop/src/types.ts
151
+ * // extensions/my-extension/src/types.ts
152
152
  * declare module '@makaio/framework/contracts' {
153
153
  * interface PluginWidgetRegistry {
154
- * 'success-criteria': true;
154
+ * 'star-rating': true;
155
155
  * }
156
156
  * }
157
157
  * ```
@@ -242,8 +242,8 @@ type EntityUIConfig$1 = z.infer<typeof EntityUIConfigSchema$1>;
242
242
  * controls continue to use `type: 'number'` with `widget: 'slider'`.
243
243
  *
244
244
  * Use `'custom'` when field rendering is fully delegated to the widget
245
- * specified in `widget` — SchemaForm will route the field to the registered
246
- * widget and ignore the type for rendering purposes.
245
+ * specified in `widget` — the host-owned form layout routes the field to the
246
+ * registered widget and ignores the type for rendering purposes.
247
247
  */
248
248
  type FieldType = 'text' | 'password' | 'number' | 'boolean' | 'select' | 'array' | 'custom';
249
249
  /**
@@ -307,12 +307,38 @@ type FieldDefinition = StandardFieldDefinition | CustomFieldDefinition;
307
307
  * Defines the contract between the form rendering infrastructure and
308
308
  * individual field components. Both framework extensions and host UI
309
309
  * implement components that accept this interface.
310
+ *
311
+ * ### Control id contract
312
+ *
313
+ * The host-owned form layout/shell owns label rendering for single-control
314
+ * field types: it sets {@link controlId} and targets it with
315
+ * `<label htmlFor>`. Components **must** set this id on their focusable
316
+ * control (`id={controlId ?? inputId ?? field.key}`, where `inputId` is a
317
+ * component-local prop some field components additionally accept for
318
+ * standalone usage without a shell); a component that ignores `controlId`
319
+ * renders with a dangling `htmlFor` and an unlabelled control. Composite
320
+ * field types, which render more than one control and therefore have no
321
+ * single element `controlId` could target, opt out by declaring
322
+ * `composite: true` in their `ExtensionFieldTypeRegistration` contribution
323
+ * metadata and are named through `aria-labelledby` on a wrapping group
324
+ * instead — the shell does not set `controlId` for those field types.
325
+ *
326
+ * ### Error ownership
327
+ *
328
+ * Components render their control only; the validation error message,
329
+ * like the label and description, belongs to the owning form layout. A
330
+ * component therefore receives the invalid *state* ({@link invalid}) and the
331
+ * id of the message element ({@link describedById}), never the message text
332
+ * — a component that rendered the text as well would display and announce
333
+ * the same error twice.
310
334
  * @param field - Field definition describing what to render
311
335
  * @param value - Current value of the field
312
336
  * @param onChange - Callback when the field value changes
313
337
  * @param className - Optional additional CSS class
314
- * @param idPrefix - Optional id prefix (defaults to 'field')
315
- * @param error - Error state message (when present, field shows error styling)
338
+ * @param idPrefix - Namespace supplied by the owning form layout that every id the component generates internally must carry
339
+ * @param controlId - Id the component must set on its focusable control, when supplied by the owning form layout
340
+ * @param invalid - Whether the control should render as invalid for assistive technology
341
+ * @param describedById - Id(s) of the element(s) that describe this control, forwarded to the control's `aria-describedby`
316
342
  */
317
343
  interface FormFieldProps {
318
344
  /** Field definition describing what to render. */
@@ -323,10 +349,61 @@ interface FormFieldProps {
323
349
  onChange: (value: unknown) => void;
324
350
  /** Optional additional CSS class. */
325
351
  className?: string;
326
- /** Optional id prefix (defaults to 'field'). */
352
+ /**
353
+ * Namespace every DOM id this component generates internally must carry.
354
+ *
355
+ * Supplied by the owning form layout, which derives it from its own form
356
+ * instance, so two layouts rendering the same field definitions on one
357
+ * page never produce colliding ids. A component that generates ids of its
358
+ * own — a composite field naming its sub-controls, for instance — must
359
+ * scope them under this prefix *and* the field key, or those ids collide
360
+ * across instances even though the shell's own ids do not.
361
+ *
362
+ * The prefix is used verbatim, so it is already a valid id fragment
363
+ * (no whitespace). Anything the component appends to it is not: field
364
+ * keys and option values are arbitrary strings, where a raw space would
365
+ * split one id into two dangling references in an
366
+ * `aria-labelledby`/`aria-describedby` IDREF list, and an unescaped
367
+ * separator would blur the boundary between id segments. Components
368
+ * therefore compose ids through the host's shared id encoder rather than
369
+ * by string concatenation.
370
+ *
371
+ * `undefined` for standalone usage without an owning form layout; a
372
+ * component rendering on its own picks its own per-instance namespace.
373
+ */
327
374
  idPrefix?: string;
328
- /** Error message (when present, field shows error styling). */
329
- error?: string;
375
+ /**
376
+ * Id the component must set on its focusable control (`id={controlId}`),
377
+ * when supplied by the form layout that owns label rendering — see the
378
+ * control id contract above. `undefined` for standalone usage without an
379
+ * owning shell, and for composite field types, which have no single
380
+ * control this id could target.
381
+ */
382
+ controlId?: string;
383
+ /**
384
+ * Whether the control should render as invalid for assistive technology
385
+ * and error styling.
386
+ *
387
+ * The validation error *message* is not part of this contract: the owning
388
+ * form layout renders it (see the error ownership note above) and points
389
+ * the control at it through {@link describedById}, so a component must
390
+ * never render the message itself — doing so would show it twice and
391
+ * announce it twice.
392
+ */
393
+ invalid?: boolean;
394
+ /**
395
+ * Id(s) of the element(s) that describe this control (error message,
396
+ * description, provenance hint), space-separated per the
397
+ * `aria-describedby` attribute contract.
398
+ *
399
+ * Set by a form layout that owns description/error rendering outside the
400
+ * control, for single-control field types only — composite field types
401
+ * keep their description attached to the surrounding group instead, since
402
+ * no single control could carry it correctly. Cooperating field
403
+ * components spread this directly onto their control's
404
+ * `aria-describedby`.
405
+ */
406
+ describedById?: string;
330
407
  }
331
408
  //#endregion
332
409
  //#region core/contracts/src/shared/index.d.ts
@@ -1,4 +1,4 @@
1
- import { D as ClientDefinitionInput, E as ClientDefinition } from "./hook-responses-Dq16X3Cb.mjs";
1
+ import { A as ClientDefinitionInput, k as ClientDefinition } from "./hook-responses-B882RcQc.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
4
  import * as _$_makaio_core0 from "@makaio/framework/core";
@@ -17,8 +17,8 @@ declare const ClientExecutionContextSchema: z.ZodObject<{
17
17
  env: z.ZodRecord<z.ZodString, z.ZodString>;
18
18
  configDir: z.ZodNullable<z.ZodString>;
19
19
  source: z.ZodEnum<{
20
- global: "global";
21
20
  managed: "managed";
21
+ global: "global";
22
22
  }>;
23
23
  version: z.ZodNullable<z.ZodString>;
24
24
  }, z.core.$strip>;
@@ -39,8 +39,8 @@ declare const ClientResolveBinarySchema: {
39
39
  sessionId: z.ZodOptional<z.ZodString>;
40
40
  projectDir: z.ZodOptional<z.ZodString>;
41
41
  preferSource: z.ZodOptional<z.ZodEnum<{
42
- global: "global";
43
42
  managed: "managed";
43
+ global: "global";
44
44
  }>>;
45
45
  harnessId: z.ZodOptional<z.ZodString>;
46
46
  }, z.core.$strip>;
@@ -49,8 +49,8 @@ declare const ClientResolveBinarySchema: {
49
49
  env: z.ZodRecord<z.ZodString, z.ZodString>;
50
50
  configDir: z.ZodNullable<z.ZodString>;
51
51
  source: z.ZodEnum<{
52
- global: "global";
53
52
  managed: "managed";
53
+ global: "global";
54
54
  }>;
55
55
  version: z.ZodNullable<z.ZodString>;
56
56
  }, z.core.$strip>;
@@ -231,6 +231,7 @@ declare const ClientSchemas: {
231
231
  producer: z.ZodString;
232
232
  }, z.core.$strip>;
233
233
  observedAt: z.ZodNumber;
234
+ adapterSessionTransition: z.ZodOptional<z.ZodLiteral<"root-clear">>;
234
235
  supervisorSessionId: z.ZodOptional<z.ZodString>;
235
236
  pid: z.ZodOptional<z.ZodNumber>;
236
237
  parentPid: z.ZodOptional<z.ZodNumber>;
@@ -246,6 +247,20 @@ declare const ClientSchemas: {
246
247
  promoted: z.ZodBoolean;
247
248
  }, z.core.$strip>;
248
249
  };
250
+ 'runtime.resolveBySupervisorSessionId': {
251
+ request: z.ZodObject<{
252
+ clientId: z.ZodString;
253
+ supervisorSessionId: z.ZodString;
254
+ }, z.core.$strict>;
255
+ response: z.ZodObject<{
256
+ runtime: z.ZodNullable<z.ZodObject<{
257
+ clientId: z.ZodString;
258
+ supervisorSessionId: z.ZodString;
259
+ adapterSessionId: z.ZodOptional<z.ZodString>;
260
+ sessionId: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strict>>;
262
+ }, z.core.$strict>;
263
+ };
249
264
  'runtime.started': z.ZodObject<{
250
265
  supervisorSessionId: z.ZodOptional<z.ZodString>;
251
266
  pid: z.ZodOptional<z.ZodNumber>;
@@ -597,6 +612,16 @@ declare const ClientSchemas: {
597
612
  turnId: z.ZodOptional<z.ZodString>;
598
613
  agentTranscriptPath: z.ZodOptional<z.ZodString>;
599
614
  }, z.core.$strip>;
615
+ 'session.token.get': {
616
+ request: z.ZodObject<{
617
+ clientId: z.ZodString;
618
+ adapterSessionId: z.ZodString;
619
+ agentId: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>;
621
+ response: z.ZodObject<{
622
+ token: z.ZodNullable<z.ZodString>;
623
+ }, z.core.$strip>;
624
+ };
600
625
  'wiring.list': {
601
626
  request: z.ZodObject<{
602
627
  clientId: z.ZodOptional<z.ZodString>;
@@ -734,8 +759,8 @@ declare const ClientSchemas: {
734
759
  sessionId: z.ZodOptional<z.ZodString>;
735
760
  projectDir: z.ZodOptional<z.ZodString>;
736
761
  preferSource: z.ZodOptional<z.ZodEnum<{
737
- global: "global";
738
762
  managed: "managed";
763
+ global: "global";
739
764
  }>>;
740
765
  harnessId: z.ZodOptional<z.ZodString>;
741
766
  }, z.core.$strip>;
@@ -744,8 +769,8 @@ declare const ClientSchemas: {
744
769
  env: z.ZodRecord<z.ZodString, z.ZodString>;
745
770
  configDir: z.ZodNullable<z.ZodString>;
746
771
  source: z.ZodEnum<{
747
- global: "global";
748
772
  managed: "managed";
773
+ global: "global";
749
774
  }>;
750
775
  version: z.ZodNullable<z.ZodString>;
751
776
  }, z.core.$strip>;
@@ -1379,6 +1404,7 @@ declare const ClientRuntimeObserveSchema: {
1379
1404
  producer: z.ZodString;
1380
1405
  }, z.core.$strip>;
1381
1406
  observedAt: z.ZodNumber;
1407
+ adapterSessionTransition: z.ZodOptional<z.ZodLiteral<"root-clear">>;
1382
1408
  supervisorSessionId: z.ZodOptional<z.ZodString>;
1383
1409
  pid: z.ZodOptional<z.ZodNumber>;
1384
1410
  parentPid: z.ZodOptional<z.ZodNumber>;
@@ -1396,6 +1422,29 @@ declare const ClientRuntimeObserveSchema: {
1396
1422
  };
1397
1423
  type ClientRuntimeObserveRequest = z.infer<typeof ClientRuntimeObserveSchema.request>;
1398
1424
  type ClientRuntimeObserveResponse = z.infer<typeof ClientRuntimeObserveSchema.response>;
1425
+ /**
1426
+ * Request and response schemas for `client.runtime.resolveBySupervisorSessionId`.
1427
+ *
1428
+ * Reads the correlation recorded for a supervisor session ID and client ID.
1429
+ * This is not a current process liveness check and does not authorize access
1430
+ * to the runtime.
1431
+ */
1432
+ declare const ClientRuntimeResolveBySupervisorSessionIdSchema: {
1433
+ request: z.ZodObject<{
1434
+ clientId: z.ZodString;
1435
+ supervisorSessionId: z.ZodString;
1436
+ }, z.core.$strict>;
1437
+ response: z.ZodObject<{
1438
+ runtime: z.ZodNullable<z.ZodObject<{
1439
+ clientId: z.ZodString;
1440
+ supervisorSessionId: z.ZodString;
1441
+ adapterSessionId: z.ZodOptional<z.ZodString>;
1442
+ sessionId: z.ZodOptional<z.ZodString>;
1443
+ }, z.core.$strict>>;
1444
+ }, z.core.$strict>;
1445
+ };
1446
+ type ClientRuntimeResolveBySupervisorSessionIdRequest = z.infer<typeof ClientRuntimeResolveBySupervisorSessionIdSchema.request>;
1447
+ type ClientRuntimeResolveBySupervisorSessionIdResponse = z.infer<typeof ClientRuntimeResolveBySupervisorSessionIdSchema.response>;
1399
1448
  /**
1400
1449
  * Payload for `client.runtime.started`.
1401
1450
  *
@@ -1775,6 +1824,52 @@ declare const ClientWiringEntrySchema: z.ZodObject<{
1775
1824
  /** A single wiring entry in a list response. */
1776
1825
  type ClientWiringEntry = z.infer<typeof ClientWiringEntrySchema>;
1777
1826
  //#endregion
1827
+ //#region core/contracts/src/client/session-token.d.ts
1828
+ /**
1829
+ * Scope that identifies a session (or a subagent within a session) for token
1830
+ * operations.
1831
+ *
1832
+ * - `clientId` — stable string identity of the client that produced the hook
1833
+ * (e.g. `'claude-code'`, `'codex'`). Two client providers may report the
1834
+ * same provider-local session id; including the client id in the key
1835
+ * prevents a Codex record from overwriting a Claude Code token, and prevents
1836
+ * a subagent-completion event from one client from deleting the other's
1837
+ * entry. An MCP server that runs under Claude Code knows it belongs to that
1838
+ * client because `CLAUDE_CODE_SESSION_ID` is set in its environment.
1839
+ * - `adapterSessionId` — Claude Code hook payload `session_id`; equals
1840
+ * `CLAUDE_CODE_SESSION_ID` in stdio MCP servers.
1841
+ * - `agentId` — present only for SubagentStart events; absent for
1842
+ * top-level SessionStart events.
1843
+ */
1844
+ declare const ClientSessionTokenScopeSchema: z.ZodObject<{
1845
+ clientId: z.ZodString;
1846
+ adapterSessionId: z.ZodString;
1847
+ agentId: z.ZodOptional<z.ZodString>;
1848
+ }, z.core.$strip>;
1849
+ type ClientSessionTokenScope = z.infer<typeof ClientSessionTokenScopeSchema>;
1850
+ /**
1851
+ * Request payload for `client.session.token.get`.
1852
+ *
1853
+ * Issued by MCP servers over the WebSocket bus to retrieve a previously
1854
+ * recorded correlation token by its scope.
1855
+ */
1856
+ declare const ClientSessionTokenGetRequestSchema: z.ZodObject<{
1857
+ clientId: z.ZodString;
1858
+ adapterSessionId: z.ZodString;
1859
+ agentId: z.ZodOptional<z.ZodString>;
1860
+ }, z.core.$strip>;
1861
+ type ClientSessionTokenGetRequest = z.infer<typeof ClientSessionTokenGetRequestSchema>;
1862
+ /**
1863
+ * Response payload for `client.session.token.get`.
1864
+ *
1865
+ * Returns the stored token, or `null` when no token has been recorded for
1866
+ * the given scope (e.g. no SessionToken effect was contributed at hook time).
1867
+ */
1868
+ declare const ClientSessionTokenGetResponseSchema: z.ZodObject<{
1869
+ token: z.ZodNullable<z.ZodString>;
1870
+ }, z.core.$strip>;
1871
+ type ClientSessionTokenGetResponse = z.infer<typeof ClientSessionTokenGetResponseSchema>;
1872
+ //#endregion
1778
1873
  //#region core/contracts/src/client/namespace.d.ts
1779
1874
  /**
1780
1875
  * Client namespace definition.
@@ -1788,7 +1883,10 @@ type ClientWiringEntry = z.infer<typeof ClientWiringEntrySchema>;
1788
1883
  * `client.session.turn.started`, `client.session.turn.completed`,
1789
1884
  * `client.session.tool.pre`, `client.session.tool.post`,
1790
1885
  * `client.session.compaction.pre`, `client.session.subagent.started`,
1791
- * `client.session.subagent.completed`), the global
1886
+ * `client.session.subagent.completed`), the session correlation-token
1887
+ * subject (`client.session.token.get` as a normal bus request reachable by
1888
+ * remote MCP servers — the token is handed to the runtime in-process via
1889
+ * {@link ClientSessionTokenSink}, never over the bus), the global
1792
1890
  * wiring aggregator (`client.wiring.list`), the binary management
1793
1891
  * subjects (`client.list`, `client.install`, `client.uninstall`,
1794
1892
  * `client.update`, `client.setActive`, `client.installJob.progress`,
@@ -1974,6 +2072,7 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1974
2072
  producer: _$zod.ZodString;
1975
2073
  }, _$zod_v4_core0.$strip>;
1976
2074
  observedAt: _$zod.ZodNumber;
2075
+ adapterSessionTransition: _$zod.ZodOptional<_$zod.ZodLiteral<"root-clear">>;
1977
2076
  supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1978
2077
  pid: _$zod.ZodOptional<_$zod.ZodNumber>;
1979
2078
  parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -1989,6 +2088,20 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
1989
2088
  promoted: _$zod.ZodBoolean;
1990
2089
  }, _$zod_v4_core0.$strip>;
1991
2090
  };
2091
+ 'runtime.resolveBySupervisorSessionId': {
2092
+ request: _$zod.ZodObject<{
2093
+ clientId: _$zod.ZodString;
2094
+ supervisorSessionId: _$zod.ZodString;
2095
+ }, _$zod_v4_core0.$strict>;
2096
+ response: _$zod.ZodObject<{
2097
+ runtime: _$zod.ZodNullable<_$zod.ZodObject<{
2098
+ clientId: _$zod.ZodString;
2099
+ supervisorSessionId: _$zod.ZodString;
2100
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2101
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2102
+ }, _$zod_v4_core0.$strict>>;
2103
+ }, _$zod_v4_core0.$strict>;
2104
+ };
1992
2105
  'runtime.started': _$zod.ZodObject<{
1993
2106
  supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1994
2107
  pid: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -2324,6 +2437,16 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2324
2437
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
2325
2438
  agentTranscriptPath: _$zod.ZodOptional<_$zod.ZodString>;
2326
2439
  }, _$zod_v4_core0.$strip>;
2440
+ 'session.token.get': {
2441
+ request: _$zod.ZodObject<{
2442
+ clientId: _$zod.ZodString;
2443
+ adapterSessionId: _$zod.ZodString;
2444
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
2445
+ }, _$zod_v4_core0.$strip>;
2446
+ response: _$zod.ZodObject<{
2447
+ token: _$zod.ZodNullable<_$zod.ZodString>;
2448
+ }, _$zod_v4_core0.$strip>;
2449
+ };
2327
2450
  'wiring.list': {
2328
2451
  request: _$zod.ZodObject<{
2329
2452
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2461,8 +2584,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2461
2584
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2462
2585
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
2463
2586
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
2464
- global: "global";
2465
2587
  managed: "managed";
2588
+ global: "global";
2466
2589
  }>>;
2467
2590
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
2468
2591
  }, _$zod_v4_core0.$strip>;
@@ -2471,8 +2594,8 @@ declare const ClientNamespace: _$_makaio_core0.BusNamespaceDefinition<"client",
2471
2594
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
2472
2595
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
2473
2596
  source: _$zod.ZodEnum<{
2474
- global: "global";
2475
2597
  managed: "managed";
2598
+ global: "global";
2476
2599
  }>;
2477
2600
  version: _$zod.ZodNullable<_$zod.ZodString>;
2478
2601
  }, _$zod_v4_core0.$strip>;
@@ -2650,6 +2773,7 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2650
2773
  producer: _$zod.ZodString;
2651
2774
  }, _$zod_v4_core0.$strip>;
2652
2775
  observedAt: _$zod.ZodNumber;
2776
+ adapterSessionTransition: _$zod.ZodOptional<_$zod.ZodLiteral<"root-clear">>;
2653
2777
  supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2654
2778
  pid: _$zod.ZodOptional<_$zod.ZodNumber>;
2655
2779
  parentPid: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -2665,6 +2789,20 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
2665
2789
  promoted: _$zod.ZodBoolean;
2666
2790
  }, _$zod_v4_core0.$strip>;
2667
2791
  };
2792
+ 'runtime.resolveBySupervisorSessionId': {
2793
+ request: _$zod.ZodObject<{
2794
+ clientId: _$zod.ZodString;
2795
+ supervisorSessionId: _$zod.ZodString;
2796
+ }, _$zod_v4_core0.$strict>;
2797
+ response: _$zod.ZodObject<{
2798
+ runtime: _$zod.ZodNullable<_$zod.ZodObject<{
2799
+ clientId: _$zod.ZodString;
2800
+ supervisorSessionId: _$zod.ZodString;
2801
+ adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2802
+ sessionId: _$zod.ZodOptional<_$zod.ZodString>;
2803
+ }, _$zod_v4_core0.$strict>>;
2804
+ }, _$zod_v4_core0.$strict>;
2805
+ };
2668
2806
  'runtime.started': _$zod.ZodObject<{
2669
2807
  supervisorSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2670
2808
  pid: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -3000,6 +3138,16 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
3000
3138
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
3001
3139
  agentTranscriptPath: _$zod.ZodOptional<_$zod.ZodString>;
3002
3140
  }, _$zod_v4_core0.$strip>;
3141
+ 'session.token.get': {
3142
+ request: _$zod.ZodObject<{
3143
+ clientId: _$zod.ZodString;
3144
+ adapterSessionId: _$zod.ZodString;
3145
+ agentId: _$zod.ZodOptional<_$zod.ZodString>;
3146
+ }, _$zod_v4_core0.$strip>;
3147
+ response: _$zod.ZodObject<{
3148
+ token: _$zod.ZodNullable<_$zod.ZodString>;
3149
+ }, _$zod_v4_core0.$strip>;
3150
+ };
3003
3151
  'wiring.list': {
3004
3152
  request: _$zod.ZodObject<{
3005
3153
  clientId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -3137,8 +3285,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
3137
3285
  sessionId: _$zod.ZodOptional<_$zod.ZodString>;
3138
3286
  projectDir: _$zod.ZodOptional<_$zod.ZodString>;
3139
3287
  preferSource: _$zod.ZodOptional<_$zod.ZodEnum<{
3140
- global: "global";
3141
3288
  managed: "managed";
3289
+ global: "global";
3142
3290
  }>>;
3143
3291
  harnessId: _$zod.ZodOptional<_$zod.ZodString>;
3144
3292
  }, _$zod_v4_core0.$strip>;
@@ -3147,8 +3295,8 @@ declare const ClientSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSu
3147
3295
  env: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>;
3148
3296
  configDir: _$zod.ZodNullable<_$zod.ZodString>;
3149
3297
  source: _$zod.ZodEnum<{
3150
- global: "global";
3151
3298
  managed: "managed";
3299
+ global: "global";
3152
3300
  }>;
3153
3301
  version: _$zod.ZodNullable<_$zod.ZodString>;
3154
3302
  }, _$zod_v4_core0.$strip>;
@@ -3531,4 +3679,4 @@ type SessionConfigDestroyResponse = z.infer<(typeof ClientSessionConfigSchemas)[
3531
3679
  type SessionConfigCleanupRequest = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['request']>;
3532
3680
  type SessionConfigCleanupResponse = z.infer<(typeof ClientSessionConfigSchemas)['sessionConfig.cleanup']['response']>;
3533
3681
  //#endregion
3534
- export { ClientSessionStartModeSchema as $, ClientVersionChanged as $t, SessionConfigInheritance as A, ClientSessionLocator as An, ClientRuntimeStarted as At, SessionConfigTeardownResponseSchema as B, ClientUsageWindowsSchema as Bn, ClientInstallSchema as Bt, SessionConfigCleanupRequest as C, ClientScanResult as Cn, ClientRuntimeObserveRequest as Ct, SessionConfigDestroyRequest as D, ClientSessionAccountObserveRequest as Dn, ClientRuntimeSourceLayer as Dt, SessionConfigCreateResponse as E, ClientScanTargetSchema as En, ClientRuntimeSource as Et, SessionConfigSetupResponse as F, ClientUsageSnapshot as Fn, ClientInstallCompletedSchema as Ft, CLIENT_SESSION_START_MODES as G, ClientResolveBinaryResponse as Gn, ClientSetActiveResponse as Gt, ClientNamespace as H, ClientExecutionContext as Hn, ClientListResponse as Ht, SessionConfigSetupResponseSchema as I, ClientUsageSnapshotSchema as In, ClientInstallProgress as It, ClientSessionCompactionTrigger as J, ClientUninstallResponse as Jt, ClientSessionCompactionPre as K, ClientResolveBinarySchema as Kn, ClientSetActiveSchema as Kt, SessionConfigTeardownRequest as L, ClientUsageWindow as Ln, ClientInstallProgressSchema as Lt, SessionConfigLeaseIdSchema as M, ClientUsageIngestRequest as Mn, ClientBinaryListEntry as Mt, SessionConfigSetupRequest as N, ClientUsageIngestResponse as Nn, ClientBinaryListEntrySchema as Nt, SessionConfigDestroyResponse as O, ClientSessionAccountObserveResponse as On, ClientRuntimeSourceLayerSchema as Ot, SessionConfigSetupRequestSchema as P, ClientUsageIngestSchema as Pn, ClientInstallCompleted as Pt, ClientSessionStartMode as Q, ClientUpdateSchema as Qt, SessionConfigTeardownRequestSchema as R, ClientUsageWindowSchema as Rn, ClientInstallRequest as Rt, ProfileUpdateResponse as S, ClientMetadataSchema as Sn, ClientRuntimeIsAdapterManagedSchema as St, SessionConfigCreateRequest as T, ClientScanTarget as Tn, ClientRuntimeObserveSchema as Tt, ClientSubjects as U, ClientExecutionContextSchema as Un, ClientListSchema as Ut, createClientDefinition as V, ClientSchemas as Vn, ClientListRequest as Vt, CLIENT_SESSION_COMPACTION_TRIGGERS as W, ClientResolveBinaryRequest as Wn, ClientSetActiveRequest as Wt, ClientSessionObservedBase as X, ClientUpdateRequest as Xt, ClientSessionCompactionTriggerSchema as Y, ClientUninstallSchema as Yt, ClientSessionObservedBaseSchema as Z, ClientUpdateResponse as Zt, ProfileListRequest as _, ClientAccountObserveSchema as _n, ClientWiringEntrySchema as _t, ClientConfigPrimeSchema as a, InstalledVersionEntry as an, ClientSessionSubagentStartedSchema as at, ProfileSetDefaultResponse as b, ClientIdentityObservation as bn, ClientRuntimeIsAdapterManagedRequest as bt, ClientProfileSchema as c, ManagedInstallStrategySchema as cn, ClientSessionToolPre as ct, ProfileCreateRequest as d, ClientSessionUsageSnapshot as dn, ClientSessionTurnCompletedSchema as dt, ClientVersionChangedSchema as en, ClientSessionStarted as et, ProfileCreateResponse as f, ClientSessionUsageSnapshotSchema as fn, ClientSessionTurnStarted as ft, ProfileGetResponse as g, ClientAccountObserveResponse as gn, ClientWiringEntry as gt, ProfileGetRequest as h, ClientAccountObserveRequest as hn, ClientSessionUserPromptSubmittedSchema as ht, ClientConfigPrimeResponse as i, InstallStageSchema as in, ClientSessionSubagentStarted as it, SessionConfigInheritanceSchema as j, ClientSessionLocatorSchema as jn, ClientRuntimeStartedSchema as jt, SessionConfigEnvSchema as k, ClientSessionAccountObserveSchema as kn, ClientRuntimeSourceSchema as kt, ClientProfileSchemas as l, ClientSessionUsageCostProvenance as ln, ClientSessionToolPreSchema as lt, ProfileDeleteResponse as m, ClientAccountIdentifierSchema as mn, ClientSessionUserPromptSubmitted as mt, ClientConfigPrimePhaseSchema as n, InstallErrorSchema as nn, ClientSessionSubagentCompleted as nt, ClientProfile as o, InstalledVersionEntrySchema as on, ClientSessionToolPost as ot, ProfileDeleteRequest as p, ClientAccountIdentifier as pn, ClientSessionTurnStartedSchema as pt, ClientSessionCompactionPreSchema as q, ClientUninstallRequest as qt, ClientConfigPrimeRequest as r, InstallStage as rn, ClientSessionSubagentCompletedSchema as rt, ClientProfileNameSchema as s, ManagedInstallStrategy as sn, ClientSessionToolPostSchema as st, ClientConfigPrimePhase as t, InstallError as tn, ClientSessionStartedSchema as tt, ClientSessionConfigSchemas as u, ClientSessionUsageCostProvenanceSchema as un, ClientSessionTurnCompleted as ut, ProfileListResponse as v, ClientIdentifierStrength as vn, ClientRuntimeEvidenceBase as vt, SessionConfigCleanupResponse as w, ClientScanResultSchema as wn, ClientRuntimeObserveResponse as wt, ProfileUpdateRequest as x, ClientIdentityObservationSchema as xn, ClientRuntimeIsAdapterManagedResponse as xt, ProfileSetDefaultRequest as y, ClientIdentifierStrengthSchema as yn, ClientRuntimeEvidenceBaseSchema as yt, SessionConfigTeardownResponse as z, ClientUsageWindows as zn, ClientInstallResponse as zt };
3682
+ export { ClientSessionCompactionPreSchema as $, ClientResolveBinaryRequest as $n, ClientSetActiveRequest as $t, SessionConfigInheritance as A, ClientIdentityObservationSchema as An, ClientRuntimeObserveResponse as At, SessionConfigTeardownResponseSchema as B, ClientSessionLocatorSchema as Bn, ClientRuntimeStartedSchema as Bt, SessionConfigCleanupRequest as C, ClientAccountIdentifierSchema as Cn, ClientWiringEntrySchema as Ct, SessionConfigDestroyRequest as D, ClientIdentifierStrength as Dn, ClientRuntimeIsAdapterManagedResponse as Dt, SessionConfigCreateResponse as E, ClientAccountObserveSchema as En, ClientRuntimeIsAdapterManagedRequest as Et, SessionConfigSetupResponse as F, ClientScanTargetSchema as Fn, ClientRuntimeSource as Ft, ClientSessionTokenGetRequestSchema as G, ClientUsageSnapshotSchema as Gn, ClientInstallProgress as Gt, ClientNamespace as H, ClientUsageIngestResponse as Hn, ClientBinaryListEntrySchema as Ht, SessionConfigSetupResponseSchema as I, ClientSessionAccountObserveRequest as In, ClientRuntimeSourceLayer as It, ClientSessionTokenScope as J, ClientUsageWindows as Jn, ClientInstallResponse as Jt, ClientSessionTokenGetResponse as K, ClientUsageWindow as Kn, ClientInstallProgressSchema as Kt, SessionConfigTeardownRequest as L, ClientSessionAccountObserveResponse as Ln, ClientRuntimeSourceLayerSchema as Lt, SessionConfigLeaseIdSchema as M, ClientScanResult as Mn, ClientRuntimeResolveBySupervisorSessionIdRequest as Mt, SessionConfigSetupRequest as N, ClientScanResultSchema as Nn, ClientRuntimeResolveBySupervisorSessionIdResponse as Nt, SessionConfigDestroyResponse as O, ClientIdentifierStrengthSchema as On, ClientRuntimeIsAdapterManagedSchema as Ot, SessionConfigSetupRequestSchema as P, ClientScanTarget as Pn, ClientRuntimeResolveBySupervisorSessionIdSchema as Pt, ClientSessionCompactionPre as Q, ClientExecutionContextSchema as Qn, ClientListSchema as Qt, SessionConfigTeardownRequestSchema as R, ClientSessionAccountObserveSchema as Rn, ClientRuntimeSourceSchema as Rt, ProfileUpdateResponse as S, ClientAccountIdentifier as Sn, ClientWiringEntry as St, SessionConfigCreateRequest as T, ClientAccountObserveResponse as Tn, ClientRuntimeEvidenceBaseSchema as Tt, ClientSubjects as U, ClientUsageIngestSchema as Un, ClientInstallCompleted as Ut, createClientDefinition as V, ClientUsageIngestRequest as Vn, ClientBinaryListEntry as Vt, ClientSessionTokenGetRequest as W, ClientUsageSnapshot as Wn, ClientInstallCompletedSchema as Wt, CLIENT_SESSION_COMPACTION_TRIGGERS as X, ClientSchemas as Xn, ClientListRequest as Xt, ClientSessionTokenScopeSchema as Y, ClientUsageWindowsSchema as Yn, ClientInstallSchema as Yt, CLIENT_SESSION_START_MODES as Z, ClientExecutionContext as Zn, ClientListResponse as Zt, ProfileListRequest as _, ManagedInstallStrategySchema as _n, ClientSessionTurnCompletedSchema as _t, ClientConfigPrimeSchema as a, ClientUpdateRequest as an, ClientSessionStartModeSchema as at, ProfileSetDefaultResponse as b, ClientSessionUsageSnapshot as bn, ClientSessionUserPromptSubmitted as bt, ClientProfileSchema as c, ClientVersionChanged as cn, ClientSessionSubagentCompleted as ct, ProfileCreateRequest as d, InstallErrorSchema as dn, ClientSessionSubagentStartedSchema as dt, ClientSetActiveResponse as en, ClientResolveBinaryResponse as er, ClientSessionCompactionTrigger as et, ProfileCreateResponse as f, InstallStage as fn, ClientSessionToolPost as ft, ProfileGetResponse as g, ManagedInstallStrategy as gn, ClientSessionTurnCompleted as gt, ProfileGetRequest as h, InstalledVersionEntrySchema as hn, ClientSessionToolPreSchema as ht, ClientConfigPrimeResponse as i, ClientUninstallSchema as in, ClientSessionStartMode as it, SessionConfigInheritanceSchema as j, ClientMetadataSchema as jn, ClientRuntimeObserveSchema as jt, SessionConfigEnvSchema as k, ClientIdentityObservation as kn, ClientRuntimeObserveRequest as kt, ClientProfileSchemas as l, ClientVersionChangedSchema as ln, ClientSessionSubagentCompletedSchema as lt, ProfileDeleteResponse as m, InstalledVersionEntry as mn, ClientSessionToolPre as mt, ClientConfigPrimePhaseSchema as n, ClientUninstallRequest as nn, ClientSessionObservedBase as nt, ClientProfile as o, ClientUpdateResponse as on, ClientSessionStarted as ot, ProfileDeleteRequest as p, InstallStageSchema as pn, ClientSessionToolPostSchema as pt, ClientSessionTokenGetResponseSchema as q, ClientUsageWindowSchema as qn, ClientInstallRequest as qt, ClientConfigPrimeRequest as r, ClientUninstallResponse as rn, ClientSessionObservedBaseSchema as rt, ClientProfileNameSchema as s, ClientUpdateSchema as sn, ClientSessionStartedSchema as st, ClientConfigPrimePhase as t, ClientSetActiveSchema as tn, ClientResolveBinarySchema as tr, ClientSessionCompactionTriggerSchema as tt, ClientSessionConfigSchemas as u, InstallError as un, ClientSessionSubagentStarted as ut, ProfileListResponse as v, ClientSessionUsageCostProvenance as vn, ClientSessionTurnStarted as vt, SessionConfigCleanupResponse as w, ClientAccountObserveRequest as wn, ClientRuntimeEvidenceBase as wt, ProfileUpdateRequest as x, ClientSessionUsageSnapshotSchema as xn, ClientSessionUserPromptSubmittedSchema as xt, ProfileSetDefaultRequest as y, ClientSessionUsageCostProvenanceSchema as yn, ClientSessionTurnStartedSchema as yt, SessionConfigTeardownResponse as z, ClientSessionLocator as zn, ClientRuntimeStarted as zt };
@@ -1,4 +1,4 @@
1
- import { f as ResolveLiveIdentityResponse, o as ResolveIdRequest, u as ResolveLiveIdentityRequest } from "./schemas-2_D4iVbb.mjs";
1
+ import { f as ResolveLiveIdentityResponse, o as ResolveIdRequest, u as ResolveLiveIdentityRequest } from "./schemas-DEg6R9ph.mjs";
2
2
  import { IMakaioBus } from "@makaio/framework/bus";
3
3
 
4
4
  //#region services/core/src/adapter-runtime/identity.d.ts
@@ -1,4 +1,4 @@
1
- import { r as ExecutionTarget } from "./schemas-CEJe8O6P.mjs";
1
+ import { r as ExecutionTarget } from "./schemas-3KTmPuZg.mjs";
2
2
  import { IMakaioSession, MakaioSessionAgent, Message, MessageInput, MessageOutcome, ReasoningLevelMap, ResponseSchemaDescriptor, SessionContext, SessionOwnershipRecoveryGuard, TurnInitiator } from "@makaio/framework/contracts";
3
3
  import { IMakaioBus } from "@makaio/framework/bus";
4
4