@makaio/framework 1.0.0-dev-1783705652236 → 1.0.0-dev-1783940945655

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 (449) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/account-identity-BYfeWLe-.mjs +1 -0
  3. package/dist/adapter-auth-runtime-a4O7cSNP.mjs +1 -0
  4. package/dist/adapter-binding-DDUyv1JK.d.mts +254 -0
  5. package/dist/{adapter-CA8rPIUz.mjs → adapter-nl_xz9dz.mjs} +1 -1
  6. package/dist/adapter-subsystem/index.d.mts +110 -5
  7. package/dist/adapter-subsystem/index.mjs +1 -1
  8. package/dist/adapters/acp-client/index.d.mts +10 -0
  9. package/dist/adapters/acp-client/index.mjs +2 -2
  10. package/dist/adapters/config/index.d.mts +176 -153
  11. package/dist/adapters/config/index.mjs +1 -1
  12. package/dist/adapters/index.d.mts +1021 -1005
  13. package/dist/adapters/index.mjs +6 -6
  14. package/dist/adapters/node.d.mts +1 -1
  15. package/dist/adapters/node.mjs +1 -1
  16. package/dist/adapters/stream-session/index.d.mts +7 -5
  17. package/dist/adapters/stream-session/index.mjs +1 -1
  18. package/dist/auth-C3NOWqTU.mjs +1 -0
  19. package/dist/{base-orchestrator-J1WKAUkF.d.mts → base-orchestrator-BiShpVKL.d.mts} +6 -0
  20. package/dist/bus/index.d.mts +21 -21
  21. package/dist/bus/index.mjs +1 -1
  22. package/dist/{canonical-model-DV-Z8gsb.mjs → canonical-model-CVRCW9h7.mjs} +1 -1
  23. package/dist/client-BkpLM8Fx.mjs +1 -0
  24. package/dist/client-binary-version-verifier-BK_vIjIo.mjs +2 -0
  25. package/dist/client-binary-version-verifier-BwrMTAh2.d.mts +179 -0
  26. package/dist/clients/index.d.mts +74 -90
  27. package/dist/clients/index.mjs +1 -2
  28. package/dist/clients/managed-install.d.mts +2 -0
  29. package/dist/clients/managed-install.mjs +1 -0
  30. package/dist/{clients-namespace-Bt_VTkEU.d.mts → clients-namespace-B96QIJOs.d.mts} +224 -21
  31. package/dist/compression-CZ_6fYq8.mjs +1 -0
  32. package/dist/config-namespace-DTA6EQL8.mjs +1 -0
  33. package/dist/{config-namespace-DqdFE6zk.d.mts → config-namespace-x0fuhEXe.d.mts} +73 -1
  34. package/dist/contracts/adapter/index.d.mts +3 -3
  35. package/dist/contracts/adapter/index.mjs +1 -1
  36. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  37. package/dist/contracts/artifact/index.d.mts +1 -1
  38. package/dist/contracts/auth/index.d.mts +3 -0
  39. package/dist/contracts/auth/index.mjs +1 -0
  40. package/dist/contracts/canonical-model/index.d.mts +1 -1
  41. package/dist/contracts/canonical-model/index.mjs +1 -1
  42. package/dist/contracts/client/index.d.mts +3 -3
  43. package/dist/contracts/client/index.mjs +1 -1
  44. package/dist/contracts/common/index.d.mts +1 -1
  45. package/dist/contracts/config/index.d.mts +20 -93
  46. package/dist/contracts/config/index.mjs +1 -1
  47. package/dist/contracts/extension/index.d.mts +3 -3
  48. package/dist/contracts/extension/index.mjs +1 -1
  49. package/dist/contracts/facet/index.d.mts +1 -1
  50. package/dist/contracts/facet/index.mjs +1 -1
  51. package/dist/contracts/harness/index.d.mts +1 -1
  52. package/dist/contracts/harness/index.mjs +1 -1
  53. package/dist/contracts/host/index.d.mts +1 -1
  54. package/dist/contracts/host/index.mjs +1 -1
  55. package/dist/contracts/index.d.mts +1214 -261
  56. package/dist/contracts/index.mjs +1 -1
  57. package/dist/contracts/materialization/index.d.mts +3 -3
  58. package/dist/contracts/materialization/index.mjs +1 -1
  59. package/dist/contracts/model-registry/index.d.mts +1 -1
  60. package/dist/contracts/model-registry/index.mjs +1 -1
  61. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  62. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  63. package/dist/contracts/platform/index.d.mts +1 -1
  64. package/dist/contracts/platform/index.mjs +1 -1
  65. package/dist/contracts/provider/index.d.mts +2 -2
  66. package/dist/contracts/provider/index.mjs +1 -1
  67. package/dist/contracts/session/index.d.mts +2 -2
  68. package/dist/contracts/session/index.mjs +1 -1
  69. package/dist/contracts/shared/index.d.mts +2 -2
  70. package/dist/contracts/shared/index.mjs +1 -1
  71. package/dist/contracts/skill/index.d.mts +1 -1
  72. package/dist/contracts/skill/index.mjs +1 -1
  73. package/dist/contracts/telemetry/index.d.mts +1 -1
  74. package/dist/contracts/telemetry/index.mjs +1 -1
  75. package/dist/contracts/timeout/index.d.mts +1 -1
  76. package/dist/contracts/timeout/index.mjs +1 -1
  77. package/dist/contracts/toast/index.mjs +1 -1
  78. package/dist/contracts/variant/index.d.mts +1 -1
  79. package/dist/contracts/variant/index.mjs +1 -1
  80. package/dist/contracts/workflow/index.d.mts +2 -2
  81. package/dist/contracts/workflow/index.mjs +1 -1
  82. package/dist/{definition-s9PIua2B.d.mts → definition-Bj9Vr16H.d.mts} +1 -1
  83. package/dist/{definition-Cllhr9mi.d.mts → definition-BsTlOz99.d.mts} +36 -4
  84. package/dist/{definition-CuJvtYeG.d.mts → definition-Cbl0k6Fc.d.mts} +31 -1
  85. package/dist/definition-K3m51lgO.mjs +1 -0
  86. package/dist/definitions-C1pgx0Nq.mjs +1 -0
  87. package/dist/{detached-extension-handle-Cx6-0eqg.mjs → detached-extension-handle-CTaQoolf.mjs} +1 -1
  88. package/dist/execution-target-Bg2wpfML.mjs +1 -0
  89. package/dist/{extension-CJClssfp.mjs → extension-CjTu6mzW.mjs} +1 -1
  90. package/dist/extension-D4iKUUMG.mjs +1 -0
  91. package/dist/{filesystem-service-Bmyqo6po.mjs → filesystem-service-maY_P3yA.mjs} +1 -1
  92. package/dist/git/index.mjs +1 -1
  93. package/dist/{globby-D4SANVoq.mjs → globby-CisClzat.mjs} +1 -1
  94. package/dist/handlers-RGs3eC9X.mjs +57 -0
  95. package/dist/{harness-DkUpbsuY.mjs → harness-DflvHAGV.mjs} +1 -1
  96. package/dist/{index-C23g_M_J2.d.mts → index-5s_dN3cg2.d.mts} +18 -1
  97. package/dist/index-9dISOTLT.d.mts +174 -0
  98. package/dist/{index-B9d_8_V2.d.mts → index-9g0agW_p.d.mts} +55 -55
  99. package/dist/{index-DoEF9LAc.d.mts → index-BcejR1Jc.d.mts} +3 -3
  100. package/dist/index-BsEvzFey.d.mts +1175 -0
  101. package/dist/{index-ntS1EXlf.d.mts → index-BtL7ONuM.d.mts} +1 -1
  102. package/dist/index-BxuiHVFi.d.mts +284 -0
  103. package/dist/{index-PIlYSC73.d.mts → index-C9Q1E8Y-.d.mts} +66 -53
  104. package/dist/{index-CaerrEDH.d.mts → index-CB2XTzvd.d.mts} +3 -3
  105. package/dist/{index-Cx1Bm6WD.d.mts → index-CVs0Qxks.d.mts} +8 -8
  106. package/dist/{index-WHUV7neB.d.mts → index-CW6-0k3Z.d.mts} +105 -105
  107. package/dist/index-CagRgpXI2.d.mts +84 -0
  108. package/dist/{index-DZPNuWMc.d.mts → index-Cw3cjGAT.d.mts} +7 -7
  109. package/dist/{index-DnnKUwHm.d.mts → index-D5IEq4_E.d.mts} +36 -32
  110. package/dist/{index-h5go5Dtd.d.mts → index-D75FnT0B.d.mts} +1 -1
  111. package/dist/{index-O08Q2ikz.d.mts → index-DNc1yLQs.d.mts} +8 -8
  112. package/dist/{index-FFVwQMad.d.mts → index-DlUPWOh4.d.mts} +737 -97
  113. package/dist/{index-DScUb-hF.d.mts → index-Do7Wgio_2.d.mts} +35 -12
  114. package/dist/{index-C9FCWOhp.d.mts → index-DxatNFz7.d.mts} +124 -22
  115. package/dist/{index-BvTd61i5.d.mts → index-T96ydgVk.d.mts} +260 -160
  116. package/dist/{index-DLNRgZPo2.d.mts → index-j2YlW_Fc.d.mts} +1 -1
  117. package/dist/{index-BcvG3wPv.d.mts → index-p6dWV52m.d.mts} +513 -373
  118. package/dist/{index-B2DjrVb8.d.mts → index-sCOlgPyj.d.mts} +1589 -482
  119. package/dist/kernel/cli/index.d.mts +2 -2
  120. package/dist/kernel/cli/index.mjs +1 -1
  121. package/dist/kernel/cli/register.d.mts +1 -1
  122. package/dist/kernel/cli/register.mjs +1 -1
  123. package/dist/kernel/cli/schemas.mjs +1 -1
  124. package/dist/kernel/extension/index.d.mts +1 -1
  125. package/dist/kernel/extension/index.mjs +1 -1
  126. package/dist/kernel/index.d.mts +5 -5
  127. package/dist/kernel/index.mjs +1 -1
  128. package/dist/kernel/namespace/index.d.mts +1 -1
  129. package/dist/kernel/namespace/index.mjs +1 -1
  130. package/dist/kernel/observability/index.d.mts +1 -1
  131. package/dist/kernel/observability/index.mjs +1 -1
  132. package/dist/kernel/providers/index.d.mts +1 -1
  133. package/dist/kernel/providers/index.mjs +1 -1
  134. package/dist/kernel/window/index.d.mts +1 -1
  135. package/dist/kernel/window/index.mjs +1 -1
  136. package/dist/{lib-BOmKyjWD.mjs → lib-DIVnpS8e.mjs} +1 -1
  137. package/dist/{lib-DLZYp5z3.mjs → lib-DymjnkAP.mjs} +1 -1
  138. package/dist/{load-extensions-Cze1RHcG.mjs → load-extensions-BtUrq2_t.mjs} +1 -1
  139. package/dist/{load-extensions-DNRIy4zC.d.mts → load-extensions-_EnedkUp.d.mts} +1 -1
  140. package/dist/{loop-gate-handlers-o2B5FPdF.mjs → loop-gate-handlers-0a3dIY8O.mjs} +1 -1
  141. package/dist/mcp-http-server/index.mjs +1 -1
  142. package/dist/model-uE5IyUFJ.mjs +1 -0
  143. package/dist/namespace-C05pkLbN.mjs +1 -0
  144. package/dist/{namespace-D8P8Sxce2.d.mts → namespace-CGgOLxiW2.d.mts} +2 -2
  145. package/dist/{namespace-BGIeqwfU.d.mts → namespace-CQBSXm1U.d.mts} +20 -20
  146. package/dist/{namespace-CfvtDD_U.d.mts → namespace-CfgtqUWS.d.mts} +156 -156
  147. package/dist/{namespace-D9PLFmPQ.d.mts → namespace-CpyL93kW.d.mts} +27 -27
  148. package/dist/{namespace-CZK2ff3B.d.mts → namespace-D3SQQgxa2.d.mts} +1 -1
  149. package/dist/namespace-D7pE2QWv.mjs +1 -0
  150. package/dist/{namespace-dFBD2ZmS.mjs → namespace-DwQtzlY-.mjs} +1 -1
  151. package/dist/namespace-HsI0Jbbr.mjs +1 -0
  152. package/dist/namespace-VmsT_tLJ.d.mts +3729 -0
  153. package/dist/namespace-Xp9-g_r-.mjs +1 -0
  154. package/dist/{native-session-supervisor-7ElwM6Is.mjs → native-session-supervisor-CdtVGWA9.mjs} +1 -1
  155. package/dist/node/bus-server/index.d.mts +1 -1
  156. package/dist/node/bus-server/index.mjs +1 -1
  157. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  158. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  159. package/dist/node/transports/index.d.mts +36 -1
  160. package/dist/node/transports/index.mjs +2 -2
  161. package/dist/{orchestrator-shared-ChygCvR1.mjs → orchestrator-shared-DAkGOu9H.mjs} +1 -1
  162. package/dist/{orchestrator-shared-DFLb1otg.d.mts → orchestrator-shared-pxtyNu3W.d.mts} +13 -6
  163. package/dist/{package-Co_GO3UD.mjs → package-0gVhAVkO.mjs} +1 -1
  164. package/dist/package-BwvGaKwn.mjs +1 -0
  165. package/dist/package.json +1 -1
  166. package/dist/{profile-BMBXUqqh.mjs → profile-D2m94ZYD.mjs} +1 -1
  167. package/dist/provider-context-BYkMl--1.mjs +1 -0
  168. package/dist/provider-context-DOsjOjiR.mjs +1 -0
  169. package/dist/{providers-namespace-5GoTlHXz.d.mts → providers-namespace-O4de1tgO.d.mts} +161 -14
  170. package/dist/resolved-O2XXjTeu.mjs +1 -0
  171. package/dist/rules/index.d.mts +1 -1
  172. package/dist/rules/index.mjs +1 -1
  173. package/dist/rules/schemas.d.mts +1 -1
  174. package/dist/runtime-bun/index.mjs +1 -1
  175. package/dist/runtime-node/client-binary-strategy-dependencies.d.mts +34 -0
  176. package/dist/runtime-node/client-binary-strategy-dependencies.mjs +1 -0
  177. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  178. package/dist/runtime-node/extension-validation.d.mts +1 -1
  179. package/dist/runtime-node/extension-validation.mjs +1 -1
  180. package/dist/runtime-node/index.d.mts +32 -6
  181. package/dist/runtime-node/index.mjs +24 -24
  182. package/dist/runtime-node/makaio-config.d.mts +1 -1
  183. package/dist/runtime-node/makaio-config.mjs +1 -1
  184. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  185. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  186. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  187. package/dist/{schema-7aKBGB7S.mjs → schema-BI0aCHvV.mjs} +1 -1
  188. package/dist/{schema-B5vHi7Uu.d.mts → schema-BnTOFCdU.d.mts} +1 -1
  189. package/dist/{schemas-Br-rSxPE2.d.mts → schemas--uwN5dfK2.d.mts} +11 -11
  190. package/dist/schemas-C-J4W1ID.mjs +1 -0
  191. package/dist/{schemas-CoFCV42v.d.mts → schemas-C17AifUQ.d.mts} +156 -156
  192. package/dist/schemas-D6lj9NMg.mjs +1 -0
  193. package/dist/schemas-K3Td_WdR.d.mts +3175 -0
  194. package/dist/schemas-n9Ff6_RX.mjs +1 -0
  195. package/dist/selection-YRuVSdck.mjs +1 -0
  196. package/dist/services/adapter-runtime/index.d.mts +3 -3
  197. package/dist/services/adapter-runtime/index.mjs +1 -1
  198. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  199. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  200. package/dist/services/adapter-subsystem/index.d.mts +4 -3
  201. package/dist/services/adapter-subsystem/index.mjs +1 -1
  202. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  203. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  204. package/dist/services/agent-runtime/index.d.mts +2 -2
  205. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  206. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  207. package/dist/services/capability/index.d.mts +1 -1
  208. package/dist/services/capability/index.mjs +1 -1
  209. package/dist/services/codebase/index.d.mts +2 -2
  210. package/dist/services/codebase/namespace.d.mts +1 -1
  211. package/dist/services/codebase/schemas.d.mts +1 -1
  212. package/dist/services/compression/index.d.mts +2 -2
  213. package/dist/services/compression/namespace.d.mts +1 -1
  214. package/dist/services/compression/schemas.d.mts +1 -1
  215. package/dist/services/context-rules/index.d.mts +1 -1
  216. package/dist/services/context-rules/index.mjs +1 -1
  217. package/dist/services/definition/namespace.d.mts +1 -19
  218. package/dist/services/definition/schemas.d.mts +0 -9
  219. package/dist/services/definition/schemas.mjs +1 -1
  220. package/dist/services/execution-target/index.d.mts +4 -4
  221. package/dist/services/execution-target/index.mjs +1 -1
  222. package/dist/services/execution-target/namespace.d.mts +1 -1
  223. package/dist/services/execution-target/namespace.mjs +1 -1
  224. package/dist/services/execution-target/schemas.d.mts +1 -1
  225. package/dist/services/execution-target/schemas.mjs +1 -1
  226. package/dist/services/filesystem/index.d.mts +1 -1
  227. package/dist/services/filesystem/index.mjs +1 -1
  228. package/dist/services/filesystem/namespace.d.mts +6 -6
  229. package/dist/services/filesystem/schemas.d.mts +3 -3
  230. package/dist/services/git/namespace.mjs +1 -1
  231. package/dist/services/git/schemas.mjs +1 -1
  232. package/dist/services/harness/index.d.mts +6 -6
  233. package/dist/services/harness/index.mjs +1 -1
  234. package/dist/services/index.d.mts +1671 -253
  235. package/dist/services/index.mjs +1 -1
  236. package/dist/services/log-import/browser.d.mts +2 -2
  237. package/dist/services/log-import/index.d.mts +2 -2
  238. package/dist/services/log-import/log-import.d.mts +1 -1
  239. package/dist/services/log-import/log-import.mjs +1 -1
  240. package/dist/services/log-import/namespace.mjs +1 -1
  241. package/dist/services/log-import/schemas.mjs +1 -1
  242. package/dist/services/model-registry/index.d.mts +1 -1
  243. package/dist/services/model-registry/index.mjs +1 -1
  244. package/dist/services/preferences/index.d.mts +2 -2
  245. package/dist/services/preferences/schemas.d.mts +1 -1
  246. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  247. package/dist/services/provider-context/index.d.mts +2 -2
  248. package/dist/services/provider-context/index.mjs +1 -1
  249. package/dist/services/provider-runtime/index.d.mts +18 -0
  250. package/dist/services/provider-runtime/index.mjs +1 -1
  251. package/dist/services/session/handlers/index.d.mts +1 -1
  252. package/dist/services/session/handlers/index.mjs +1 -1
  253. package/dist/services/session/index.d.mts +10 -10
  254. package/dist/services/session/index.mjs +1 -1
  255. package/dist/services/session/messages/namespace.d.mts +1 -1
  256. package/dist/services/session/messages/namespace.mjs +1 -1
  257. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  258. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  259. package/dist/services/session/session-events/namespace.d.mts +1 -1
  260. package/dist/services/session/session-events/namespace.mjs +1 -1
  261. package/dist/services/session/storage/namespace.d.mts +1 -1
  262. package/dist/services/session/storage/schema.d.mts +1 -1
  263. package/dist/services/session/testing/index.d.mts +2 -2
  264. package/dist/services/session/testing/index.mjs +10 -10
  265. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  266. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  267. package/dist/services/session/turns/namespace.d.mts +1 -1
  268. package/dist/services/session/turns/namespace.mjs +1 -1
  269. package/dist/services/session-editor/index.d.mts +1 -1
  270. package/dist/services/session-editor/index.mjs +1 -1
  271. package/dist/services/settings/index.d.mts +3 -3
  272. package/dist/services/settings/index.mjs +1 -1
  273. package/dist/services/settings/namespace.d.mts +18 -25
  274. package/dist/services/settings/namespace.mjs +1 -1
  275. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  276. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  277. package/dist/services/settings/storage/index.d.mts +3 -3
  278. package/dist/services/settings/storage/index.mjs +1 -1
  279. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  280. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  281. package/dist/services/subagent/index.d.mts +2 -2
  282. package/dist/services/subagent/index.mjs +1 -1
  283. package/dist/services/subagent-template/index.d.mts +2 -2
  284. package/dist/services/subagent-template/namespace.d.mts +1 -1
  285. package/dist/services/subagent-template/schemas.d.mts +1 -1
  286. package/dist/services/tool-approval/index.d.mts +1 -1
  287. package/dist/services/tool-approval/index.mjs +1 -1
  288. package/dist/services/tools/index.d.mts +1 -1
  289. package/dist/services/tools/index.mjs +1 -1
  290. package/dist/services/tray-menu/index.d.mts +3 -3
  291. package/dist/services/tray-menu/index.mjs +1 -1
  292. package/dist/services/tray-menu/namespace.d.mts +1 -1
  293. package/dist/services/tray-menu/schemas.d.mts +1 -1
  294. package/dist/services/turn/index.d.mts +1 -1
  295. package/dist/services/turn/namespace.d.mts +1 -1
  296. package/dist/session-CAjudDuJ.mjs +76 -0
  297. package/dist/{session-DBfQkgdy.mjs → session-lRd8HZNZ.mjs} +1 -1
  298. package/dist/{session-lineage-C1M7-O3C.d.mts → session-lineage-BLw8iWAj.d.mts} +1 -1
  299. package/dist/{shared-BVW-3Dhy.mjs → shared-RP_KARKF.mjs} +1 -1
  300. package/dist/{skill-N-ttlp1i.mjs → skill-CpNjWFuE.mjs} +1 -1
  301. package/dist/{src-Ck2sbaDa.mjs → src-Bo2eA51B.mjs} +1 -1
  302. package/dist/storage/drizzle/client.d.mts +1 -1
  303. package/dist/storage/drizzle/client.mjs +1 -1
  304. package/dist/storage/drizzle/index.d.mts +1 -1
  305. package/dist/storage/drizzle/index.mjs +1 -1
  306. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  307. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  308. package/dist/storage/handlers/index.d.mts +1 -1
  309. package/dist/storage/handlers/index.mjs +1 -1
  310. package/dist/{tool-approval-service-DEiMKTv9.mjs → tool-approval-service-Dh0XI21f.mjs} +1 -1
  311. package/dist/tools-C8vqn1KY.mjs +1 -0
  312. package/dist/{transition-OzGXyy3p.d.mts → transition-Bfe8VVc1.d.mts} +2 -2
  313. package/dist/{types-BWduCvRU.d.mts → types-B-xY9WW2.d.mts} +1 -1
  314. package/dist/{types-BrUOVfwe.d.mts → types-DvKaEOOn.d.mts} +252 -19
  315. package/dist/{types-CBLPaQXe.d.mts → types-q95p55BF.d.mts} +437 -287
  316. package/dist/ui-hooks/index.d.mts +103 -14
  317. package/dist/ui-hooks/index.mjs +1 -1
  318. package/dist/ui-kernel/index.d.mts +3 -3
  319. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  320. package/dist/utils/keychain.mjs +1 -1
  321. package/dist/{version-DoV_pSzT.mjs → version-C1-VD-XL.mjs} +1 -1
  322. package/dist/workflow-CvVAZ89A.mjs +1 -0
  323. package/dist/workflow-engine/index.d.mts +33 -33
  324. package/dist/workflow-engine/index.mjs +1 -1
  325. package/dist/workflow-engine/package.d.mts +1 -1
  326. package/dist/workflow-engine/package.mjs +1 -1
  327. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  328. package/dist/{workflow-worker-dH70EbjE.mjs → workflow-worker-CudfEstp.mjs} +1 -1
  329. package/package.json +5 -1
  330. package/dist/account-identity-C7Kx_ieU.mjs +0 -1
  331. package/dist/cleanEnvForAdapter-BooAgM2R.mjs +0 -1
  332. package/dist/client-DaR4mzqn.mjs +0 -1
  333. package/dist/compression-C5JAWdgZ.mjs +0 -1
  334. package/dist/config-namespace-CY9leBnE.mjs +0 -1
  335. package/dist/credential-ref-YWQQENEo.mjs +0 -1
  336. package/dist/definition-C-GVz7uw.mjs +0 -1
  337. package/dist/execution-target-BR8bLkCR.mjs +0 -1
  338. package/dist/extension-BS_4BOeO.mjs +0 -1
  339. package/dist/handlers-B74FvKlA.mjs +0 -57
  340. package/dist/index-BcwOnvUh.d.mts +0 -749
  341. package/dist/index-D6aAzr32.d.mts +0 -997
  342. package/dist/index-DtwGhFFQ.d.mts +0 -40
  343. package/dist/namespace-B4cV_pk3.d.mts +0 -1317
  344. package/dist/namespace-BO3tODGC.mjs +0 -1
  345. package/dist/namespace-CVMZVqB5.mjs +0 -1
  346. package/dist/namespace-DBHwyhME.mjs +0 -1
  347. package/dist/namespace-DibbhCPP.mjs +0 -1
  348. package/dist/package-CF_Zm2v4.mjs +0 -1
  349. package/dist/provider-context-CqMgPOWF.mjs +0 -1
  350. package/dist/provider-context-DC_eq7es.mjs +0 -1
  351. package/dist/schemas-CVo8qAK-.mjs +0 -1
  352. package/dist/schemas-CuG17U3L.mjs +0 -1
  353. package/dist/session-CX6QDhi2.mjs +0 -76
  354. package/dist/tools-CGFZkB7F.mjs +0 -1
  355. package/dist/workflow-C3dgVwTY.mjs +0 -1
  356. /package/dist/{ajv-B5dPIck0.mjs → ajv-DfHhgdS5.mjs} +0 -0
  357. /package/dist/{await-trigger-DwVldnMt.mjs → await-trigger-D623tvig.mjs} +0 -0
  358. /package/dist/{capability-service-XlymTzz1.mjs → capability-service-Dg2bU8qc.mjs} +0 -0
  359. /package/dist/{client-CebV_fZc.d.mts → client-DmJwprw1.d.mts} +0 -0
  360. /package/dist/{create-static-mount-DkK28kKW.mjs → create-static-mount-CBTXRtbN.mjs} +0 -0
  361. /package/dist/{cross-spawn-CDXy3BjE.mjs → cross-spawn-D9WWFl2a.mjs} +0 -0
  362. /package/dist/{cursor-storage-luQAg7E_.mjs → cursor-storage-Bw-7ROzx.mjs} +0 -0
  363. /package/dist/{descriptor-to-package-DdpjpT7n.mjs → descriptor-to-package-D5SWf6TL.mjs} +0 -0
  364. /package/dist/{drizzle-DVTAl7Us.mjs → drizzle-DYfaDzlO.mjs} +0 -0
  365. /package/dist/{esm-CQG9Pc7n.mjs → esm-oHhRYTEn.mjs} +0 -0
  366. /package/dist/{event-DguYjV6D.mjs → event-DTM0-qWP.mjs} +0 -0
  367. /package/dist/{extension-discovery-CIZn5bkq.d.mts → extension-discovery-APMf1Tes.d.mts} +0 -0
  368. /package/dist/{extension-namespace-v3K0qVry.mjs → extension-namespace-vrh4ERXR.mjs} +0 -0
  369. /package/dist/{facet-BM4y4aQP.mjs → facet-DqPBpqkl.mjs} +0 -0
  370. /package/dist/{filesystem-service-Cwp0sWNc.d.mts → filesystem-service-Bx0bR2Lb.d.mts} +0 -0
  371. /package/dist/{handler-BFNvtv5t.mjs → handler-4pKQi3eo.mjs} +0 -0
  372. /package/dist/{host-vY07gek-.mjs → host-BfgdjlII.mjs} +0 -0
  373. /package/dist/{identity-DC3Pk0ps.mjs → identity-2qUT1NME.mjs} +0 -0
  374. /package/dist/{index-COI1tjAf.d.mts → index-BZ_DSGnE.d.mts} +0 -0
  375. /package/dist/{index-D7rWAEY0.d.mts → index-Bd52mmj9.d.mts} +0 -0
  376. /package/dist/{index-Dfi8Rorw.d.mts → index-BkAKfh4d.d.mts} +0 -0
  377. /package/dist/{index-CuHqL95P.d.mts → index-Bv9lm0Kf.d.mts} +0 -0
  378. /package/dist/{index-C4nStEdA.d.mts → index-C18Pn3zP.d.mts} +0 -0
  379. /package/dist/{index-Cr9lh21j.d.mts → index-CarbJsC92.d.mts} +0 -0
  380. /package/dist/{index-BjoOSg95.d.mts → index-Ctw617Tj.d.mts} +0 -0
  381. /package/dist/{index-DUD7wikz2.d.mts → index-D0eUQjTU2.d.mts} +0 -0
  382. /package/dist/{index-DEzdNQum.d.mts → index-DfVSWBBp.d.mts} +0 -0
  383. /package/dist/{index-D3ahzHwb.d.mts → index-DnWZdG6C.d.mts} +0 -0
  384. /package/dist/{index-CpKikwK4.d.mts → index-DoLdETfR.d.mts} +0 -0
  385. /package/dist/{index-B92mToDo2.d.mts → index-DvaPrL6C.d.mts} +0 -0
  386. /package/dist/{index-D7Hkmrr3.d.mts → index-DwDBa2mb.d.mts} +0 -0
  387. /package/dist/{index-Y8rMeYYX.d.mts → index-FDyqQIt5.d.mts} +0 -0
  388. /package/dist/{index-BWIkf5oJ.d.mts → index-Lp0T_V1W.d.mts} +0 -0
  389. /package/dist/{index-OGIC4puQ.d.mts → index-Rhcr4YNA.d.mts} +0 -0
  390. /package/dist/{index-BvLXySoB2.d.mts → index-S-mAqWwq.d.mts} +0 -0
  391. /package/dist/{index-DOOrKin9.d.mts → index-_zsihEmk.d.mts} +0 -0
  392. /package/dist/{index-wq7XeqyG.d.mts → index-iJP-l15K.d.mts} +0 -0
  393. /package/dist/{json-value-DtIkQN7g.d.mts → json-value-C8duSh9X.d.mts} +0 -0
  394. /package/dist/{jsonl-transport-CGPgD8iU.mjs → jsonl-transport-l5NPcQ_2.mjs} +0 -0
  395. /package/dist/{lib-ZKtnbCqH.mjs → lib-ClRTNIuz.mjs} +0 -0
  396. /package/dist/{materialization-CUYxZCfk.mjs → materialization-BwTORtBr.mjs} +0 -0
  397. /package/dist/{model-registry-C2VXobZj.mjs → model-registry-BneK5SGo.mjs} +0 -0
  398. /package/dist/{model-registry-rYICIwyR.mjs → model-registry-C8MInDtX.mjs} +0 -0
  399. /package/dist/{namespace-65uwTpbg.d.mts → namespace-3YVLQ_bM.d.mts} +0 -0
  400. /package/dist/{namespace-CQ8uza7o.d.mts → namespace-BcDHt-ww.d.mts} +0 -0
  401. /package/dist/{namespace-BigVYQyx.d.mts → namespace-BhVlHfoO.d.mts} +0 -0
  402. /package/dist/{namespace-j7vFsmYL.d.mts → namespace-Bl1UhLnK.d.mts} +0 -0
  403. /package/dist/{namespace-Dk4OslmY.d.mts → namespace-BsEoWXV_.d.mts} +0 -0
  404. /package/dist/{namespace-DYSFDC2G.mjs → namespace-C238RqwB.mjs} +0 -0
  405. /package/dist/{namespace-BdO4e1Fm.mjs → namespace-CDO4rY11.mjs} +0 -0
  406. /package/dist/{namespace-wke7juzy.mjs → namespace-DDx4NVJm.mjs} +0 -0
  407. /package/dist/{namespace-D1_9WVCo.d.mts → namespace-Dar3O6iT.d.mts} +0 -0
  408. /package/dist/{namespace-DAj_riOn.d.mts → namespace-DoNigVgx.d.mts} +0 -0
  409. /package/dist/{namespace-D2s-4pyg.d.mts → namespace-Dvi66QS6.d.mts} +0 -0
  410. /package/dist/{out-BoEZjBNz.mjs → out-BB6Kb4Xu.mjs} +0 -0
  411. /package/dist/{package-DmVZxufT.d.mts → package-CdBiknf3.d.mts} +0 -0
  412. /package/dist/{platform-DnbSvm2u.mjs → platform-CWhGFQFX.mjs} +0 -0
  413. /package/dist/{providers-Bd7BOZs0.mjs → providers-CUnrif24.mjs} +0 -0
  414. /package/dist/{quick-lru-6e7I1Bgf.mjs → quick-lru-BLaSzINB.mjs} +0 -0
  415. /package/dist/{registry-U_3aYSin.mjs → registry-TJjQgTgp.mjs} +0 -0
  416. /package/dist/{schema-CHp6I33k.mjs → schema-cus0dJ81.mjs} +0 -0
  417. /package/dist/{schema-introspection-B7xODt4I.mjs → schema-introspection-BsWLmoFp.mjs} +0 -0
  418. /package/dist/{schemas-KlH1hB7u.d.mts → schemas-9QJf1FtS.d.mts} +0 -0
  419. /package/dist/{schemas-CJ2JvA7d.d.mts → schemas-BolSW7pQ.d.mts} +0 -0
  420. /package/dist/{schemas-D4zaFE2p.d.mts → schemas-CLsbsX1W.d.mts} +0 -0
  421. /package/dist/{schemas-XeIBqwvE.mjs → schemas-CMyv7l7-.mjs} +0 -0
  422. /package/dist/{schemas-CPI00yvh.mjs → schemas-CWxf_Yut.mjs} +0 -0
  423. /package/dist/{schemas-BemsLc_V.d.mts → schemas-D_9X_CRo.d.mts} +0 -0
  424. /package/dist/{schemas-DZGnr9Tl.mjs → schemas-DwfTUQIa.mjs} +0 -0
  425. /package/dist/{schemas-B6tEKf9T.d.mts → schemas-XRhqOgVE.d.mts} +0 -0
  426. /package/dist/{schemas-DKncXGnb.d.mts → schemas-fRLDhefF.d.mts} +0 -0
  427. /package/dist/{schemas-DWfo0wp4.d.mts → schemas-jDRSOXJL.d.mts} +0 -0
  428. /package/dist/{schemas-lnE9YoG7.d.mts → schemas-qpo1Goit.d.mts} +0 -0
  429. /package/dist/{schemas-t6h9oSct.d.mts → schemas-qt5QTjVc.d.mts} +0 -0
  430. /package/dist/{semver-CIhHqMkw.mjs → semver-BccS1s9R.mjs} +0 -0
  431. /package/dist/{server-lifecycle-C5Z5PSMD.mjs → server-lifecycle-D-jxVr_0.mjs} +0 -0
  432. /package/dist/{server-lifecycle-_AA6EfzL.d.mts → server-lifecycle-r5Tkk8bU.d.mts} +0 -0
  433. /package/dist/{shared-schemas-BEVG96xW.mjs → shared-schemas-BNCPgGYP.mjs} +0 -0
  434. /package/dist/{src-_VODAJnf.mjs → src-Ci_WY9uw.mjs} +0 -0
  435. /package/dist/{storage-namespace-D5q9CrBp.mjs → storage-namespace-BzE2M4Hq.mjs} +0 -0
  436. /package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-DWKFqEW-.d.mts} +0 -0
  437. /package/dist/{storage-namespace-definition-CzXPW45M.mjs → storage-namespace-definition-4UYuij1r.mjs} +0 -0
  438. /package/dist/{storage-namespace-definition-BffdI5Bz.d.mts → storage-namespace-definition-BZJGSaX3.d.mts} +0 -0
  439. /package/dist/{supports-color-DcXkvGDF.mjs → supports-color-Dzp6WuF5.mjs} +0 -0
  440. /package/dist/{telemetry-Cvi4rxiE.mjs → telemetry-B42EMbZt.mjs} +0 -0
  441. /package/dist/{timeout-XsYIOKrc.mjs → timeout-CvONPl0l.mjs} +0 -0
  442. /package/dist/{tray-menu-service-B2AxiQqL.mjs → tray-menu-service-Bonl2KXf.mjs} +0 -0
  443. /package/dist/{types-Bo78h9e3.d.mts → types-BCW9kr4L.d.mts} +0 -0
  444. /package/dist/{types-DCvp_swt.d.mts → types-CrJ7KEZ0.d.mts} +0 -0
  445. /package/dist/{types-BNW5n6qm.d.mts → types-DWNoZ3Sd.d.mts} +0 -0
  446. /package/dist/{ui-config-9bDRwFZr.mjs → ui-config-B2L3Xgqo.mjs} +0 -0
  447. /package/dist/{variant-5huHjUTm.mjs → variant-ByI-RZua.mjs} +0 -0
  448. /package/dist/{window-registry-PkrFIwX2.mjs → window-registry-DsWnCc8z.mjs} +0 -0
  449. /package/dist/{window-registry-ofIUQnfo.d.mts → window-registry-WsWu-rcK.d.mts} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "version": 1,
3
- "fingerprint": "8ffadc741e4269410d04cacdf8ffc8987d1276b9861fb2562c15b58e5a881d96",
4
- "builtAt": "2026-07-10T17:48:41.489Z"
3
+ "fingerprint": "03a8031c3db961e4fe3677c3acddf243e48c6e1217d62f3fbc8d712f47fa660a",
4
+ "builtAt": "2026-07-13T11:10:14.890Z"
5
5
  }
@@ -0,0 +1 @@
1
+ import{t as e}from"./json-value-DmU8ibo_.mjs";import"./shared-RP_KARKF.mjs";import{g as t,h as n,m as r}from"./profile-D2m94ZYD.mjs";import{n as i}from"./version-C1-VD-XL.mjs";import{z as a}from"zod";const o=a.enum([`strong`,`alias`]),s=a.object({scheme:t,value:t,strength:o}),c=a.object({key:t,label:a.string(),usedPercentage:a.number().finite().min(0).max(100),resetsAt:n.optional()}),l=a.object({windows:a.array(c)}),u=a.record(a.string(),a.unknown()).optional(),d=a.object({clientId:t,found:a.boolean(),binaryPath:r.optional(),version:a.string().optional(),warningMessage:a.string().optional()}),f=a.object({clientId:t,binaryName:t,supportedVersions:i.optional()}),p=a.object({clientAccountId:t,clientId:t,observedAt:n,source:t,displayLabel:a.string().optional(),usage:l,metadata:u}),m=a.discriminatedUnion(`kind`,[a.object({kind:a.literal(`session`),sessionId:t}),a.object({kind:a.literal(`adapter-session`),adapterSessionId:t}),a.object({kind:a.literal(`both`),sessionId:t,adapterSessionId:t})]),h=a.object({clientId:a.string(),source:a.string(),kind:a.string(),observedAt:n,payload:e}),g={request:a.object({clientId:t,observedAt:n.optional(),displayLabel:a.string().optional(),identifiers:a.array(s).min(1),metadata:u}),response:a.object({clientAccountId:t,displayLabel:a.string().optional()})},_={request:h.extend({locator:m}),response:a.object({handled:a.boolean(),sessionId:t.nullable(),clientAccountId:t.nullable(),changed:a.boolean()})},v={request:a.object({clientId:t,observedAt:n,source:t,account:a.object({displayLabel:a.string().optional(),identifiers:a.array(s).min(1)}),usage:l,metadata:u}),response:a.object({clientAccountId:t,snapshot:p})};export{u as a,_ as c,p as d,c as f,h as i,m as l,g as n,d as o,l as p,o as r,f as s,s as t,v as u};
@@ -0,0 +1 @@
1
+ import{AuthenticationError as e}from"@makaio/framework/core";import{createBusInstance as t,openChannel as n}from"@makaio/framework/bus";import{AdapterProviderAuthSchema as r,CredentialSubjects as i,ResolvedProviderAuthSchema as a,assertAdapterAuthBindingMatchesMethod as o}from"@makaio/framework/contracts";import{ClientSubjects as s}from"@makaio/framework/contracts/client";import{resolveClientBinary as c}from"@makaio/framework/clients";function l(e,t={}){let n={};if(e)for(let[t,r]of Object.entries(e))r!==void 0&&(n[t]=r);delete n.NODE_OPTIONS,delete n.CLAUDECODE;for(let e of t.omitEnvVars??[])delete n[e];return n}var u=class extends e{reason;constructor(e,t){super(t),this.reason=e,this.name=`AdapterAuthError`}};function d(e){return e.auth.mode===`explicit`?e.auth.definition.fields.filter(e=>!e.required).map(e=>e.id):[]}function f(e){if(Array.isArray(e)){for(let t of e)f(t);return Object.freeze(e)}if(e&&typeof e==`object`){for(let t of Object.values(e))f(t);return Object.freeze(e)}return e}function p(e,t){return e.owner!==t.owner||e.methodId!==t.methodId?!1:e.owner===`provider`?t.owner===`provider`&&e.providerDefinitionId===t.providerDefinitionId:t.owner===`client`&&e.clientId===t.clientId}function m(e,t){return e.bindings.filter(e=>p(e.method,t))}function h(e,t){let n=m(e,t);if(n.length===0)throw new u(`binding-missing`,`No adapter authentication binding matches the selected method.`);if(n.length>1)throw new u(`binding-ambiguous`,`Multiple adapter authentication bindings match the selected method.`);return n[0]}function g(e,t){let n=new Set;for(let e of t){for(let t of e.scrubEnvVars)n.add(t);for(let t of e.bindings)for(let e of t.deliveries)if(e.kind===`process-env`)for(let t of Object.values(e.fields))n.add(t)}if(e.mode===`explicit`)for(let t of Object.values(e.credentialRefs))t.startsWith(`env:`)&&n.add(t.slice(4));return[...n]}function _(e){let t=a.safeParse(e.auth);if(!t.success)throw Error(`Resolved provider authentication is invalid.`);if(m(e.adapterProviderAuth,t.data.method).length>1)throw new u(`binding-ambiguous`,`Multiple adapter authentication bindings match the selected method.`);let n=r.safeParse(e.adapterProviderAuth);if(!n.success)throw Error(`Selected adapter authentication declaration is invalid.`);let i=[n.data];for(let t of e.compatibleProviderAuths??[]){let e=r.safeParse(t);if(!e.success)throw Error(`Compatible adapter authentication declaration is invalid.`);i.push(e.data)}let s=h(n.data,t.data.method);return o(s,t.data.definition),f({auth:t.data,binding:s,scrubEnvVars:g(t.data,i)})}async function v(e,t){let n=await y(e.auth,t),r=[],i=[];for(let t of e.binding.deliveries){if(t.kind===`process-env`){r.push(...b(n,t.fields));continue}if(t.kind!==`connector`)continue;let e=Object.fromEntries(b(n,t.fields)),a={...t.constants,...e};i.push({target:t.target,values:a})}return f({processEnv:Object.fromEntries(r),connectorDeliveries:i,configInheritance:e.auth.mode===`inferred`?`auth-only`:`empty`})}async function y(e,t){if(e.mode!==`explicit`)return Object.freeze({});let n;try{n=await t(e.credentialRefs)}catch(e){throw e instanceof u?e:new u(`credential-resolution-failed`,`Failed to resolve adapter authentication credentials.`)}if(typeof n!=`object`||!n)throw Error(`Credential resolver returned invalid authentication values.`);let r;try{r=Object.entries(n)}catch{throw Error(`Credential resolver returned invalid authentication values.`)}let i=new Set(Object.keys(e.credentialRefs)),a=new Map;for(let[e,t]of r){if(!i.has(e)||typeof t!=`string`)throw Error(`Credential resolver returned values outside the selected authentication fields.`);a.set(e,t)}let o=[];for(let t of e.definition.fields){let e=a.get(t.id);if(typeof e==`string`&&e.length>0)o.push([t.id,e]);else if(t.required)throw new u(`credential-missing`,`Required authentication field "${t.id}" could not be resolved.`)}return Object.freeze(Object.fromEntries(o))}function b(e,t){let n=[];for(let[r,i]of Object.entries(t)){if(!Object.hasOwn(e,r))continue;let t=e[r];typeof t==`string`&&n.push([i,t])}return n}var x=class extends Error{code;constructor(e){super(e===`credential-unavailable`?`A selected credential is unavailable.`:`Credential resolution failed.`),this.code=e,this.name=`ConnectorCredentialResolutionError`}};async function S(e,r,a={}){let o=Object.entries(r);if(o.length===0)return{};let s={},c=new Set(a.optionalFields),l=e.getContext(),{token:u}=await t({context:l}).request(i.getChannelToken,{}),d=await n(l,`credentials`,{token:u,transports:[]});try{let e=await Promise.all(o.map(async([e,t])=>{try{let n=await d.request(i.resolve,{ref:t});if(n.value===null){if(c.has(e))return;throw new x(`credential-unavailable`)}return[e,n.value]}catch(e){throw e instanceof x?e:new x(`credential-request-failed`)}}));for(let[t,n]of e.filter(e=>e!==void 0))s[t]=n}finally{d.close()}return s}async function C(e){let{globalBus:t,clientId:n,baseEnv:r={},sessionEnv:i={},binaryEnv:a={},scrubEnvVars:o=[],leaseEnv:s={},selectedAuthEnv:u={}}=e,d;if(n!==void 0){if(t===void 0)throw Error(`Client binary resolution requires the adapter runtime global bus.`);d=await c(t,n)}let f={...r,...i,...d?.env??{},...a},p={...f,...s},m=Object.keys(s),h=l(f,{omitEnvVars:[...new Set([...o,...m])]}),g={...l(p,{omitEnvVars:o}),...u};return Object.freeze(h),Object.freeze(g),{resolvedBinary:d,connectorEnv:g,contextEnv:h}}var w=class{bus;clientId;leaseId;releasePromise;constructor(e,t,n){this.bus=e,this.clientId=t,this.leaseId=n}release(){return this.releasePromise??=this.destroy(),this.releasePromise}async destroy(){if(!(await this.bus.request(s.sessionConfig.destroy,{clientId:this.clientId,leaseId:this.leaseId})).success)throw Error(`Client config lease release was unsuccessful.`)}};async function T(e){let t=e.boundProviderAuth;if(t===void 0){let t=Object.freeze({...e.env??{}});return{config:{...e,env:Object.freeze({...t}),contextEnv:t}}}let n=D(e.globalBus);O(t,e.clientId);let r=await v(t,async e=>{try{return await S(n,e,{optionalFields:d(t)})}catch(e){throw e instanceof x&&e.code===`credential-unavailable`?new u(`credential-missing`,`A required authentication credential is unavailable.`):e}}),i=await k(n,e,r);try{A(t,i);let a=await C({globalBus:n,clientId:e.clientId,baseEnv:e.env,scrubEnvVars:t.scrubEnvVars,leaseEnv:i?.env,selectedAuthEnv:r.processEnv}),{boundProviderAuth:o,...s}=e;return{config:{...s,env:a.connectorEnv,contextEnv:a.contextEnv,adapterAuth:r,...a.resolvedBinary!==void 0&&{clientExecution:a.resolvedBinary}},...i!==void 0&&{lease:i.handle}}}catch(e){throw await j(i?.handle,e,`Adapter auth preparation and lease rollback both failed.`),e}}async function E(e,t){let n=M(t.selectorValidatedAuth),r=await C({baseEnv:e.env,sessionEnv:t.sessionEnv,binaryEnv:t.binaryEnv,leaseEnv:t.leaseEnv,scrubEnvVars:t.scrubEnvVars,selectedAuthEnv:n.processEnv}),{boundProviderAuth:i,...a}=e;return{...a,env:r.connectorEnv,contextEnv:r.contextEnv,adapterAuth:n}}function D(e){if(e===void 0)throw new u(`runtime-bus-missing`,`Normalized adapter authentication requires a global bus.`);return e}function O(e,t){let n=e.auth.method;if(n.owner===`client`&&n.clientId!==t)throw new u(`client-mismatch`,`Selected authentication client does not match the adapter runtime client.`)}async function k(e,t,n){if(t.clientId===void 0)return;let r=crypto.randomUUID(),i=await e.request(s.sessionConfig.create,{clientId:t.clientId,leaseId:r,...t.sessionId!==void 0&&{ownerSessionId:t.sessionId},...t.clientProfileName!==void 0&&{profileName:t.clientProfileName},projectDir:t.cwd,configInheritance:n.configInheritance});return{handle:new w(e,t.clientId,r),env:Object.freeze({...i.env}),authMaterialized:i.authMaterialized}}function A(e,t){if(e.auth.mode===`inferred`&&t?.authMaterialized!==!0)throw new u(`native-auth-unavailable`,`Selected native client authentication could not be materialized.`)}async function j(e,t,n){if(e!==void 0)try{await e.release()}catch(e){throw AggregateError([t,e],n,{cause:t})}}function M(e){let t=e.connectorDeliveries.map(e=>Object.freeze({target:e.target,values:Object.freeze({...e.values})}));return Object.freeze({processEnv:Object.freeze({...e.processEnv}),connectorDeliveries:Object.freeze(t),configInheritance:e.configInheritance})}export{S as a,d as c,x as i,v as l,T as n,u as o,C as r,_ as s,E as t,l as u};
@@ -0,0 +1,254 @@
1
+ import { z } from "zod";
2
+
3
+ //#region core/contracts/src/auth/selection.d.ts
4
+ /**
5
+ * Credential reference accepted by normalized authentication selections.
6
+ *
7
+ * Account identity is carried separately through
8
+ * {@link NativeAccountSelectionSchema}; credential refs identify only
9
+ * resolvable secret sources.
10
+ */
11
+ declare const AuthCredentialRefSchema: z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">;
12
+ /** Reference to an authentication method owned by a provider definition. */
13
+ declare const ProviderAuthMethodRefSchema: z.ZodObject<{
14
+ owner: z.ZodLiteral<"provider">;
15
+ providerDefinitionId: z.ZodString;
16
+ methodId: z.ZodString;
17
+ }, z.core.$strict>;
18
+ /** Reference to an authentication method owned by a native client definition. */
19
+ declare const ClientAuthMethodRefSchema: z.ZodObject<{
20
+ owner: z.ZodLiteral<"client">;
21
+ clientId: z.ZodString;
22
+ methodId: z.ZodString;
23
+ }, z.core.$strict>;
24
+ /** Reference to either provider-owned or client-owned authentication. */
25
+ declare const AuthMethodRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ owner: z.ZodLiteral<"provider">;
27
+ providerDefinitionId: z.ZodString;
28
+ methodId: z.ZodString;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ owner: z.ZodLiteral<"client">;
31
+ clientId: z.ZodString;
32
+ methodId: z.ZodString;
33
+ }, z.core.$strict>], "owner">;
34
+ /** Optional native account selected for an inferred authentication method. */
35
+ declare const NativeAccountSelectionSchema: z.ZodObject<{
36
+ managerId: z.ZodString;
37
+ accountId: z.ZodString;
38
+ }, z.core.$strict>;
39
+ /** Lifecycle manager for a persisted provider configuration. */
40
+ declare const ProviderConfigManagerSchema: z.ZodObject<{
41
+ kind: z.ZodLiteral<"client">;
42
+ clientId: z.ZodString;
43
+ }, z.core.$strict>;
44
+ /** Persisted selection of exactly one authentication mode and method. */
45
+ declare const ProviderConfigAuthSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
+ mode: z.ZodLiteral<"explicit">;
47
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
48
+ owner: z.ZodLiteral<"provider">;
49
+ providerDefinitionId: z.ZodString;
50
+ methodId: z.ZodString;
51
+ }, z.core.$strict>, z.ZodObject<{
52
+ owner: z.ZodLiteral<"client">;
53
+ clientId: z.ZodString;
54
+ methodId: z.ZodString;
55
+ }, z.core.$strict>], "owner">;
56
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ mode: z.ZodLiteral<"inferred">;
59
+ method: z.ZodObject<{
60
+ owner: z.ZodLiteral<"client">;
61
+ clientId: z.ZodString;
62
+ methodId: z.ZodString;
63
+ }, z.core.$strict>;
64
+ account: z.ZodOptional<z.ZodObject<{
65
+ managerId: z.ZodString;
66
+ accountId: z.ZodString;
67
+ }, z.core.$strict>>;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ mode: z.ZodLiteral<"none">;
70
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ owner: z.ZodLiteral<"provider">;
72
+ providerDefinitionId: z.ZodString;
73
+ methodId: z.ZodString;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ owner: z.ZodLiteral<"client">;
76
+ clientId: z.ZodString;
77
+ methodId: z.ZodString;
78
+ }, z.core.$strict>], "owner">;
79
+ }, z.core.$strict>], "mode">;
80
+ type ProviderAuthMethodRef = z.infer<typeof ProviderAuthMethodRefSchema>;
81
+ type ClientAuthMethodRef = z.infer<typeof ClientAuthMethodRefSchema>;
82
+ type AuthMethodRef = z.infer<typeof AuthMethodRefSchema>;
83
+ type AuthCredentialRef = z.infer<typeof AuthCredentialRefSchema>;
84
+ type NativeAccountSelection = z.infer<typeof NativeAccountSelectionSchema>;
85
+ type ProviderConfigManager = z.infer<typeof ProviderConfigManagerSchema>;
86
+ type ProviderConfigAuth = z.infer<typeof ProviderConfigAuthSchema>;
87
+ //#endregion
88
+ //#region core/contracts/src/auth/adapter-binding.d.ts
89
+ /** JSON-safe literal supported by connector auth delivery constants. */
90
+ declare const AdapterAuthConstantSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
91
+ /** Map resolved credential fields into a spawned process environment. */
92
+ declare const ProcessEnvAdapterAuthDeliverySchema: z.ZodObject<{
93
+ kind: z.ZodLiteral<"process-env">;
94
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
95
+ }, z.core.$strict>;
96
+ /** Map resolved fields and JSON constants into an adapter-owned operation. */
97
+ declare const ConnectorAdapterAuthDeliverySchema: z.ZodObject<{
98
+ kind: z.ZodLiteral<"connector">;
99
+ target: z.ZodString;
100
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
101
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
102
+ }, z.core.$strict>;
103
+ /** Delegate authentication materialization to a native client. */
104
+ declare const NativeClientAdapterAuthDeliverySchema: z.ZodObject<{
105
+ kind: z.ZodLiteral<"native-client">;
106
+ clientId: z.ZodString;
107
+ }, z.core.$strict>;
108
+ /** Declare that the selected path performs no authentication delivery. */
109
+ declare const NoAdapterAuthDeliverySchema: z.ZodObject<{
110
+ kind: z.ZodLiteral<"none">;
111
+ }, z.core.$strict>;
112
+ /** One runtime-only adapter delivery strategy for a selected auth method. */
113
+ declare const AdapterAuthDeliverySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
114
+ kind: z.ZodLiteral<"process-env">;
115
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"connector">;
118
+ target: z.ZodString;
119
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
120
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
121
+ }, z.core.$strict>, z.ZodObject<{
122
+ kind: z.ZodLiteral<"native-client">;
123
+ clientId: z.ZodString;
124
+ }, z.core.$strict>, z.ZodObject<{
125
+ kind: z.ZodLiteral<"none">;
126
+ }, z.core.$strict>], "kind">;
127
+ /** Runtime-only compatibility and delivery declaration for one auth method. */
128
+ declare const AdapterAuthBindingSchema: z.ZodObject<{
129
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
130
+ owner: z.ZodLiteral<"provider">;
131
+ providerDefinitionId: z.ZodString;
132
+ methodId: z.ZodString;
133
+ }, z.core.$strict>, z.ZodObject<{
134
+ owner: z.ZodLiteral<"client">;
135
+ clientId: z.ZodString;
136
+ methodId: z.ZodString;
137
+ }, z.core.$strict>], "owner">;
138
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
139
+ kind: z.ZodLiteral<"process-env">;
140
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ kind: z.ZodLiteral<"connector">;
143
+ target: z.ZodString;
144
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
145
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
146
+ }, z.core.$strict>, z.ZodObject<{
147
+ kind: z.ZodLiteral<"native-client">;
148
+ clientId: z.ZodString;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ kind: z.ZodLiteral<"none">;
151
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ kind: z.ZodLiteral<"process-env">;
153
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
154
+ }, z.core.$strict>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"connector">;
156
+ target: z.ZodString;
157
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
158
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"native-client">;
161
+ clientId: z.ZodString;
162
+ }, z.core.$strict>, z.ZodObject<{
163
+ kind: z.ZodLiteral<"none">;
164
+ }, z.core.$strict>], "kind">>;
165
+ }, z.core.$strict>;
166
+ /** Complete runtime-only authentication metadata for one adapter/provider ref. */
167
+ declare const AdapterProviderAuthSchema: z.core.$ZodBranded<z.ZodObject<{
168
+ bindings: z.ZodArray<z.ZodObject<{
169
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
+ owner: z.ZodLiteral<"provider">;
171
+ providerDefinitionId: z.ZodString;
172
+ methodId: z.ZodString;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ owner: z.ZodLiteral<"client">;
175
+ clientId: z.ZodString;
176
+ methodId: z.ZodString;
177
+ }, z.core.$strict>], "owner">;
178
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
179
+ kind: z.ZodLiteral<"process-env">;
180
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
181
+ }, z.core.$strict>, z.ZodObject<{
182
+ kind: z.ZodLiteral<"connector">;
183
+ target: z.ZodString;
184
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
185
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
186
+ }, z.core.$strict>, z.ZodObject<{
187
+ kind: z.ZodLiteral<"native-client">;
188
+ clientId: z.ZodString;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ kind: z.ZodLiteral<"none">;
191
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
192
+ kind: z.ZodLiteral<"process-env">;
193
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"connector">;
196
+ target: z.ZodString;
197
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
198
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"native-client">;
201
+ clientId: z.ZodString;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ kind: z.ZodLiteral<"none">;
204
+ }, z.core.$strict>], "kind">>;
205
+ }, z.core.$strict>>;
206
+ scrubEnvVars: z.ZodArray<z.ZodString>;
207
+ }, z.core.$strict>, "AdapterProviderAuth", "out">;
208
+ type AdapterAuthConstant = z.infer<typeof AdapterAuthConstantSchema>;
209
+ /** Readonly declaration shape for process-environment auth delivery. */
210
+ interface ProcessEnvAdapterAuthDelivery {
211
+ readonly kind: 'process-env';
212
+ readonly fields: Readonly<Record<string, string>>;
213
+ }
214
+ /** Readonly declaration shape for connector auth delivery. */
215
+ interface ConnectorAdapterAuthDelivery {
216
+ readonly kind: 'connector';
217
+ readonly target: string;
218
+ readonly fields: Readonly<Record<string, string>>;
219
+ readonly constants?: Readonly<Record<string, AdapterAuthConstant>>;
220
+ }
221
+ /** Readonly declaration shape for native-client auth delivery. */
222
+ interface NativeClientAdapterAuthDelivery {
223
+ readonly kind: 'native-client';
224
+ readonly clientId: string;
225
+ }
226
+ /** Readonly declaration shape for an explicit no-delivery binding. */
227
+ interface NoAdapterAuthDelivery {
228
+ readonly kind: 'none';
229
+ }
230
+ type AdapterAuthDelivery = ProcessEnvAdapterAuthDelivery | ConnectorAdapterAuthDelivery | NativeClientAdapterAuthDelivery | NoAdapterAuthDelivery;
231
+ /** Readonly runtime declaration for one method binding. */
232
+ interface AdapterAuthBinding {
233
+ readonly method: AuthMethodRef;
234
+ readonly deliveries: readonly [AdapterAuthDelivery, ...AdapterAuthDelivery[]];
235
+ }
236
+ /** Unvalidated readonly declaration accepted by {@link defineAdapterProviderAuth}. */
237
+ interface AdapterProviderAuthInput {
238
+ readonly bindings: readonly AdapterAuthBinding[];
239
+ readonly scrubEnvVars: readonly string[];
240
+ }
241
+ /** Validated runtime declaration attached to an adapter/provider ref. */
242
+ type AdapterProviderAuth = z.infer<typeof AdapterProviderAuthSchema>;
243
+ /**
244
+ * Validate and clone one runtime-only adapter/provider auth declaration.
245
+ *
246
+ * Adapter definitions call this at declaration time so invalid target names,
247
+ * duplicate bindings, and inconsistent native-client ownership fail before
248
+ * the adapter enters the runtime registry.
249
+ * @param auth - Authentication declaration to validate.
250
+ * @returns Parsed authentication declaration.
251
+ */
252
+ declare function defineAdapterProviderAuth(auth: AdapterProviderAuthInput): AdapterProviderAuth;
253
+ //#endregion
254
+ export { ProviderConfigAuthSchema as A, ClientAuthMethodRef as C, ProviderAuthMethodRef as D, NativeAccountSelectionSchema as E, ProviderConfigManagerSchema as M, ProviderAuthMethodRefSchema as O, AuthMethodRefSchema as S, NativeAccountSelection as T, ProcessEnvAdapterAuthDeliverySchema as _, AdapterAuthDelivery as a, AuthCredentialRefSchema as b, AdapterProviderAuthInput as c, ConnectorAdapterAuthDeliverySchema as d, NativeClientAdapterAuthDelivery as f, ProcessEnvAdapterAuthDelivery as g, NoAdapterAuthDeliverySchema as h, AdapterAuthConstantSchema as i, ProviderConfigManager as j, ProviderConfigAuth as k, AdapterProviderAuthSchema as l, NoAdapterAuthDelivery as m, AdapterAuthBindingSchema as n, AdapterAuthDeliverySchema as o, NativeClientAdapterAuthDeliverySchema as p, AdapterAuthConstant as r, AdapterProviderAuth as s, AdapterAuthBinding as t, ConnectorAdapterAuthDelivery as u, defineAdapterProviderAuth as v, ClientAuthMethodRefSchema as w, AuthMethodRef as x, AuthCredentialRef as y };
@@ -1 +1 @@
1
- import{_ as e,b as t,c as n,d as r,f as i,g as a,h as o,ht as s,l as c,m as l,o as u,p as d,s as f,t as p,u as m,v as h,y as g}from"./schemas-CVo8qAK-.mjs";import"./compression-C5JAWdgZ.mjs";import"./provider-context-CqMgPOWF.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as _}from"@makaio/framework/core";const v={getCapabilities:s,startAgent:t,infer:g,listAgents:h,getAgent:e,stopAgent:a,rehydrateAgent:o,getConfigSchema:l,"agent.created":d,"session.created":i,"session.discovered":p,"session.usage":r,"session.closed":m,log:c,error:n,initialized:f,quota:u},y=_(`adapter`,v),b=y.subjects;export{b as n,v as r,y as t};
1
+ import{_ as e,b as t,c as n,d as r,f as i,g as a,h as o,ht as s,l as c,m as l,o as u,p as d,s as f,t as p,u as m,v as h,y as g}from"./schemas-n9Ff6_RX.mjs";import"./compression-CZ_6fYq8.mjs";import"./provider-context-DOsjOjiR.mjs";import"./contracts/adapter/schemas/session-lineage.mjs";import{createBusNamespace as _}from"@makaio/framework/core";const v={getCapabilities:s,startAgent:t,infer:g,listAgents:h,getAgent:e,stopAgent:a,rehydrateAgent:o,getConfigSchema:l,"agent.created":d,"session.created":i,"session.discovered":p,"session.usage":r,"session.closed":m,log:c,error:n,initialized:f,quota:u},y=_(`adapter`,v),b=y.subjects;export{b as n,v as r,y as t};
@@ -1,9 +1,12 @@
1
1
  import { z } from "zod";
2
2
  import { IMakaioBus } from "@makaio/framework/bus";
3
3
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
- import { AdapterClientRef, AdapterProviderDefinitionContract, AdapterProviderRef, MakaioNodeExtension, ProtocolId } from "@makaio/framework/contracts";
4
+ import { AdapterClientRef, AdapterProviderDefinitionContract, AdapterProviderRef, MakaioNodeExtension, ProtocolId, ResolvedProviderContext } from "@makaio/framework/contracts";
5
5
  import { BaseService } from "@makaio/framework/service-base";
6
+ import { ClientAuthMethodDefinition, ProviderAuthMethodDefinition, ProviderConfigAuth } from "@makaio/framework/contracts/auth";
6
7
  import { AdapterFile, ProviderConfigFile } from "@makaio/framework/contracts/config";
8
+ import { ClientDefinition as ClientDefinition$1 } from "@makaio/framework/contracts/client";
9
+ import { ClientRecord, ProviderRecord } from "@makaio/framework/services/settings/storage";
7
10
  import { ContributionProcessor, ExtensionCoordinator } from "@makaio/framework/kernel";
8
11
  import { AdapterFileConfigSet, IAdapterConfigRepository, IAdapterConfigRepository as IAdapterConfigRepository$1, ProviderConfigFileSet } from "@makaio/framework/services/adapter-subsystem";
9
12
  import { AvailableAdapter, HelpLink } from "@makaio/framework/services/settings";
@@ -65,6 +68,13 @@ interface AdapterInitOptions {
65
68
  * downstream consumers where the runtime bus differs from the default singleton.
66
69
  */
67
70
  globalBus?: IMakaioBus;
71
+ /**
72
+ * Trusted host-layer auth preparer forwarded opaquely to the adapter factory.
73
+ *
74
+ * The core subsystem never invokes or serializes this value, avoiding a
75
+ * dependency on the host adapter runtime types.
76
+ */
77
+ prepareAuthRuntime?: unknown;
68
78
  }
69
79
  /**
70
80
  * Minimal adapter instance surface returned by the adapter factory.
@@ -133,8 +143,6 @@ interface LoadedAdapter {
133
143
  providers: LoadedAdapterProvider[];
134
144
  /** Adapter-level provider config schema applied during delayed provider resolution. */
135
145
  providerConfigSchema?: z.ZodObject<z.ZodRawShape>;
136
- /** Adapter-level provider credential schema applied during delayed provider resolution. */
137
- providerCredentialSchema?: z.ZodObject<z.ZodRawShape>;
138
146
  /** Help links for documentation. */
139
147
  helpLinks?: readonly HelpLink[];
140
148
  /** Setup instructions in Markdown format. */
@@ -143,6 +151,8 @@ interface LoadedAdapter {
143
151
  defaultPresetId?: string;
144
152
  /** Client extensions this adapter can delegate to, with compatible version ranges. */
145
153
  clients?: readonly AdapterClientRef[];
154
+ /** Authoritative definitions for every client this adapter may execute. */
155
+ clientDefinitions?: readonly ClientDefinition$1[];
146
156
  /** Wire protocol this adapter speaks (e.g., `'anthropic'`, `'openai'`). */
147
157
  protocol?: ProtocolId;
148
158
  }
@@ -230,6 +240,8 @@ interface AdapterSubsystemServiceOptions {
230
240
  * Platform-provided defaults forwarded to adapter factories.
231
241
  */
232
242
  readonly platformDefaults: PlatformDefaults;
243
+ /** Trusted host-layer auth preparer forwarded opaquely to adapter factories. */
244
+ readonly prepareAuthRuntime?: unknown;
233
245
  }
234
246
  /**
235
247
  * File-backed adapter subsystem service.
@@ -273,6 +285,8 @@ declare class AdapterSubsystemService extends BaseService {
273
285
  protected onInit(): Promise<void>;
274
286
  private registerBusHandlers;
275
287
  private registerReadHandlers;
288
+ private registerConfigReadHandlers;
289
+ private registerRuntimeReadHandlers;
276
290
  private registerMutationHandlers;
277
291
  /**
278
292
  * Shut down adapter instances and clear in-memory state on destroy.
@@ -357,7 +371,9 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
357
371
  loadAdapterConfigs(): Promise<AdapterFileConfigSet>;
358
372
  /**
359
373
  * Load all validated provider config files from disk.
360
- * Invalid JSON or schema mismatches are skipped.
374
+ *
375
+ * Structurally invalid provider configs fail the load with a typed diagnostic
376
+ * so legacy authentication semantics are never silently ignored.
361
377
  * @returns Validated provider config file set.
362
378
  */
363
379
  loadProviderConfigs(): Promise<ProviderConfigFileSet>;
@@ -389,6 +405,7 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
389
405
  * Read raw JSON files from a directory, returning an empty array when missing.
390
406
  * @param directoryPath - Directory to scan.
391
407
  * @param label - Human-readable file label for warnings.
408
+ * @param invalidJsonPolicy - Whether malformed JSON is skipped or rejected.
392
409
  * @returns JSON file entries sorted by file name.
393
410
  */
394
411
  private readJsonFiles;
@@ -398,6 +415,13 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
398
415
  * @param filePath - Absolute path to the skipped file.
399
416
  */
400
417
  private warnInvalidFile;
418
+ /**
419
+ * Parse one canonical provider config without reinterpreting legacy fields.
420
+ * @param value - Raw JSON or repository write input.
421
+ * @param source - Safe provider-config ID used in diagnostics.
422
+ * @returns Validated canonical provider config.
423
+ */
424
+ private parseProviderConfig;
401
425
  /**
402
426
  * Check a loaded JSON file stem before accepting it as a canonical ID.
403
427
  * @param stem - File stem derived from the directory entry.
@@ -445,6 +469,85 @@ declare class FileAdapterConfigRepository implements IAdapterConfigRepository$1
445
469
  private assertCanonicalFileStem;
446
470
  }
447
471
  //#endregion
472
+ //#region subsystems/adapter/src/provider-config-diagnostic-error.d.ts
473
+ /** Stable diagnostic categories for rejected provider-config files. */
474
+ type ProviderConfigDiagnosticCode = 'legacy-provider-config' | 'unsupported-provider-config-version' | 'invalid-provider-config';
475
+ /**
476
+ * Typed startup/write diagnostic for a provider-config file that cannot be
477
+ * interpreted under the canonical normalized-auth contract.
478
+ */
479
+ declare class ProviderConfigDiagnosticError extends Error {
480
+ /** Stable machine-readable diagnostic code. */
481
+ readonly code: ProviderConfigDiagnosticCode;
482
+ /** Safe file name or provider-config identifier rejected by the repository. */
483
+ readonly source: string;
484
+ /**
485
+ * Create a provider-config diagnostic.
486
+ * @param code - Stable diagnostic category.
487
+ * @param source - Safe file name or config identifier being parsed.
488
+ * @param detail - Safe structural detail that contains no credential values.
489
+ */
490
+ constructor(code: ProviderConfigDiagnosticCode, source: string, detail: string);
491
+ }
492
+ //#endregion
493
+ //#region subsystems/adapter/src/provider-config-auth-validation.d.ts
494
+ /** Definition records captured while validating one auth selection. */
495
+ interface ValidatedProviderConfigAuth {
496
+ /** Exact declared method selected by the config. */
497
+ readonly method: ProviderAuthMethodDefinition | ClientAuthMethodDefinition;
498
+ /** Provider definition that owns the containing config. */
499
+ readonly provider: ProviderRecord;
500
+ /** Client definition when the selected method is client-owned. */
501
+ readonly client?: ClientRecord;
502
+ }
503
+ /**
504
+ * Require definition records selected by a structurally valid auth choice to
505
+ * be enabled before the provider config can become executable.
506
+ *
507
+ * Disabled configs may retain structurally valid selections that reference a
508
+ * disabled catalog record. The gate belongs at enable/runtime transitions so
509
+ * drafts and managed desired state remain persistable without becoming usable.
510
+ * @param validated - Definition records returned by structural auth validation.
511
+ */
512
+ declare function assertProviderConfigAuthDefinitionsEnabled(validated: ValidatedProviderConfigAuth): void;
513
+ /** Stable categories for definition-backed auth-selection validation. */
514
+ type ProviderConfigAuthValidationCode = 'provider-definition-not-found' | 'provider-definition-disabled' | 'client-definition-not-found' | 'client-definition-disabled' | 'auth-method-not-found' | 'auth-mode-mismatch' | 'auth-credential-fields-mismatch';
515
+ /** Typed validation failure for a provider-config auth selection. */
516
+ declare class ProviderConfigAuthValidationError extends Error {
517
+ readonly code: ProviderConfigAuthValidationCode;
518
+ /**
519
+ * Create a definition-backed validation error.
520
+ * @param code - Stable validation category.
521
+ * @param message - Human-readable diagnostic that contains no credential values.
522
+ */
523
+ constructor(code: ProviderConfigAuthValidationCode, message: string);
524
+ }
525
+ /**
526
+ * Validate a normalized auth selection against provider/client definition
527
+ * storage. No compatibility is inferred from provider IDs: client-owned
528
+ * methods are resolved only from the referenced client definition.
529
+ * @param bus - Bus used to read provider and client definitions.
530
+ * @param definitionId - Provider definition selected by the containing config.
531
+ * @param auth - Complete normalized auth selection.
532
+ * @param knownProvider - Optional provider record already fetched by the caller.
533
+ * @returns The validated method and definition records from one lookup snapshot.
534
+ */
535
+ declare function validateProviderConfigAuth(bus: IMakaioBus, definitionId: string, auth: ProviderConfigAuth, knownProvider?: ProviderRecord): Promise<ValidatedProviderConfigAuth>;
536
+ //#endregion
537
+ //#region subsystems/adapter/src/provider-runtime-view.d.ts
538
+ /** Stable runtime-context assembly failure categories. */
539
+ type ProviderRuntimeContextErrorCode = 'provider-config-disabled';
540
+ /** Typed failure raised before a config can reach adapter startup. */
541
+ declare class ProviderRuntimeContextError extends Error {
542
+ readonly code: ProviderRuntimeContextErrorCode;
543
+ /**
544
+ * Create a runtime provider-context failure.
545
+ * @param code - Stable failure category.
546
+ * @param message - Credential-free diagnostic.
547
+ */
548
+ constructor(code: ProviderRuntimeContextErrorCode, message: string);
549
+ }
550
+ //#endregion
448
551
  //#region subsystems/adapter/src/adapter-subsystem-contribution-factory.d.ts
449
552
  /**
450
553
  * Dependencies for the adapter subsystem contribution processor factory.
@@ -495,6 +598,8 @@ interface CreateAdapterSubsystemPackageOptions {
495
598
  * Platform-provided defaults forwarded to adapter factories.
496
599
  */
497
600
  readonly platformDefaults: PlatformDefaults;
601
+ /** Trusted host-layer auth preparer forwarded opaquely to adapter factories. */
602
+ readonly prepareAuthRuntime?: unknown;
498
603
  }
499
604
  /**
500
605
  * Create the adapter subsystem extension package.
@@ -509,4 +614,4 @@ interface CreateAdapterSubsystemPackageOptions {
509
614
  */
510
615
  declare function createAdapterSubsystemPackage(options: CreateAdapterSubsystemPackageOptions): MakaioNodeExtension<IMakaioBus>;
511
616
  //#endregion
512
- export { type AdapterInitOptions, type AdapterInstance, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName, initializeEnabledAdapters, shutdownAdapterInstances, toAvailableAdapter };
617
+ export { type AdapterInitOptions, type AdapterInstance, type AdapterLogImportConfig, AdapterSubsystemService, AdapterSubsystemToken, CreateAdapterSubsystemPackageOptions, FileAdapterConfigRepository, type IAdapterConfigRepository, type LoadedAdapter, type PlatformDefaults, type ProviderConfigAuthValidationCode, ProviderConfigAuthValidationError, type ProviderConfigDiagnosticCode, ProviderConfigDiagnosticError, ProviderRuntimeContextError, type ProviderRuntimeContextErrorCode, type ValidatedProviderConfigAuth, assertProviderConfigAuthDefinitionsEnabled, createAdapterSubsystemContributionProcessor, createAdapterSubsystemPackage, ensureAdapterConfigs, extractAdapterIdFromPackageName, initializeEnabledAdapters, shutdownAdapterInstances, toAvailableAdapter, validateProviderConfigAuth };