@makaio/framework 1.0.0-dev-1781022866275 → 1.0.0-dev-1781023871421

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 (456) hide show
  1. package/dist/.makaio-build.json +5 -0
  2. package/dist/account-identity-DT5NOtFi.mjs +1 -0
  3. package/dist/adapter-C1eI-fGV.mjs +1 -0
  4. package/dist/adapters/acp-client/index.d.mts +6208 -0
  5. package/dist/adapters/acp-client/index.mjs +3 -0
  6. package/dist/adapters/config/index.d.mts +429 -0
  7. package/dist/adapters/config/index.mjs +1 -0
  8. package/dist/adapters/index.d.mts +4202 -0
  9. package/dist/adapters/index.mjs +18 -0
  10. package/dist/adapters/node.d.mts +263 -0
  11. package/dist/adapters/node.mjs +4 -0
  12. package/dist/adapters/stream-session/index.d.mts +1414 -0
  13. package/dist/adapters/stream-session/index.mjs +1 -0
  14. package/dist/adapters/stream-session/testing/index.d.mts +29 -0
  15. package/dist/adapters/stream-session/testing/index.mjs +1 -0
  16. package/dist/artifact-B3npq1cy.mjs +1 -0
  17. package/dist/base-orchestrator-wyumsn3b.d.mts +772 -0
  18. package/dist/bus/index.d.mts +3994 -0
  19. package/dist/bus/index.mjs +1 -0
  20. package/dist/bus-Caz3Jpbc.mjs +1 -0
  21. package/dist/bus-Hb-LGzgb.mjs +2 -0
  22. package/dist/capability-service-CJbmhfv9.mjs +1 -0
  23. package/dist/chunk-DTipWd-i.mjs +1 -0
  24. package/dist/chunk-cpUYaJdV.mjs +1 -0
  25. package/dist/cleanEnvForAdapter-KkYzQa1f.mjs +1 -0
  26. package/dist/client-bx74gm4R.mjs +1 -0
  27. package/dist/clients/index.d.mts +2639 -0
  28. package/dist/clients/index.mjs +2 -0
  29. package/dist/clients-namespace-GmSJpBUV.d.mts +332 -0
  30. package/dist/config-namespace-CPY9YsR8.d.mts +638 -0
  31. package/dist/config-namespace-ncYg2ct_.mjs +1 -0
  32. package/dist/contracts/adapter/index.d.mts +3 -0
  33. package/dist/contracts/adapter/index.mjs +1 -0
  34. package/dist/contracts/adapter/schemas/session-lineage.d.mts +2 -0
  35. package/dist/contracts/adapter/schemas/session-lineage.mjs +1 -0
  36. package/dist/contracts/artifact/index.d.mts +2 -0
  37. package/dist/contracts/artifact/index.mjs +1 -0
  38. package/dist/contracts/client/index.d.mts +3 -0
  39. package/dist/contracts/client/index.mjs +1 -0
  40. package/dist/contracts/common/index.d.mts +2 -0
  41. package/dist/contracts/common/index.mjs +1 -0
  42. package/dist/contracts/config/index.d.mts +455 -0
  43. package/dist/contracts/config/index.mjs +1 -0
  44. package/dist/contracts/extension/index.d.mts +4 -0
  45. package/dist/contracts/extension/index.mjs +1 -0
  46. package/dist/contracts/facet/index.d.mts +2 -0
  47. package/dist/contracts/facet/index.mjs +1 -0
  48. package/dist/contracts/harness/index.d.mts +2 -0
  49. package/dist/contracts/harness/index.mjs +1 -0
  50. package/dist/contracts/host/index.d.mts +2 -0
  51. package/dist/contracts/host/index.mjs +1 -0
  52. package/dist/contracts/index.d.mts +23046 -0
  53. package/dist/contracts/index.mjs +1 -0
  54. package/dist/contracts/materialization/index.d.mts +4 -0
  55. package/dist/contracts/materialization/index.mjs +1 -0
  56. package/dist/contracts/model-registry/index.d.mts +2 -0
  57. package/dist/contracts/model-registry/index.mjs +1 -0
  58. package/dist/contracts/native-session-supervisor/index.d.mts +2 -0
  59. package/dist/contracts/native-session-supervisor/index.mjs +1 -0
  60. package/dist/contracts/platform/index.d.mts +2 -0
  61. package/dist/contracts/platform/index.mjs +1 -0
  62. package/dist/contracts/provider/index.d.mts +3 -0
  63. package/dist/contracts/provider/index.mjs +1 -0
  64. package/dist/contracts/session/index.d.mts +3 -0
  65. package/dist/contracts/session/index.mjs +1 -0
  66. package/dist/contracts/shared/index.d.mts +2 -0
  67. package/dist/contracts/shared/index.mjs +1 -0
  68. package/dist/contracts/skill/index.d.mts +2 -0
  69. package/dist/contracts/skill/index.mjs +1 -0
  70. package/dist/contracts/telemetry/index.d.mts +2 -0
  71. package/dist/contracts/telemetry/index.mjs +1 -0
  72. package/dist/contracts/timeout/index.d.mts +2 -0
  73. package/dist/contracts/timeout/index.mjs +1 -0
  74. package/dist/contracts/toast/index.d.mts +198 -0
  75. package/dist/contracts/toast/index.mjs +1 -0
  76. package/dist/contracts/variant/index.d.mts +2 -0
  77. package/dist/contracts/variant/index.mjs +1 -0
  78. package/dist/core/index.d.mts +1263 -0
  79. package/dist/core/index.mjs +1 -0
  80. package/dist/credential-ref-YWQQENEo.mjs +1 -0
  81. package/dist/cursor-storage-CtVJ3JzB.mjs +1 -0
  82. package/dist/definition-BLCdXGzh.d.mts +383 -0
  83. package/dist/definition-CrgHIpTK.d.mts +60 -0
  84. package/dist/definition-DZMXOnjX.mjs +1 -0
  85. package/dist/definition-pkJ6szUl.d.mts +158 -0
  86. package/dist/drizzle-Eq8W1EbD.mjs +1 -0
  87. package/dist/event-Ca2yUf5i.mjs +1 -0
  88. package/dist/execution-target-CRPTfZlc.mjs +1 -0
  89. package/dist/extension-C-4BHMRI.mjs +1 -0
  90. package/dist/extension-CpIUgBKI.mjs +1 -0
  91. package/dist/extension-namespace-cMh_mMiL.mjs +1 -0
  92. package/dist/facet-BuwhrThl.mjs +1 -0
  93. package/dist/filesystem-service-B8rhBRgB.mjs +1 -0
  94. package/dist/filesystem-service-p_iJVHd4.d.mts +66 -0
  95. package/dist/git/index.d.mts +210 -0
  96. package/dist/git/index.mjs +18 -0
  97. package/dist/globby-rtWVaFHv.mjs +41 -0
  98. package/dist/handlers-CkTsQLra.mjs +41 -0
  99. package/dist/harness-BRCMcvQN.mjs +1 -0
  100. package/dist/hooks/index.d.mts +423 -0
  101. package/dist/hooks/index.mjs +1 -0
  102. package/dist/host-Br9VuOyr.mjs +1 -0
  103. package/dist/identity-Cz2IeEtm.mjs +1 -0
  104. package/dist/index-472sOmsW.d.mts +218 -0
  105. package/dist/index-8SZkg7s6.d.mts +353 -0
  106. package/dist/index-B3PK4FIn.d.mts +5116 -0
  107. package/dist/index-B80L4YqA.d.mts +180 -0
  108. package/dist/index-BFg9BUpx.d.mts +355 -0
  109. package/dist/index-BGfWS6GE.d.mts +483 -0
  110. package/dist/index-BVgfS-AJ.d.mts +109 -0
  111. package/dist/index-B_zQC98V.d.mts +995 -0
  112. package/dist/index-Bh_Ne7LF.d.mts +1008 -0
  113. package/dist/index-Bvb2mMH6.d.mts +1730 -0
  114. package/dist/index-CCGVh9BF2.d.mts +749 -0
  115. package/dist/index-CGmcS0Ma.d.mts +412 -0
  116. package/dist/index-CHQ1SqT0.d.mts +117 -0
  117. package/dist/index-CLpjm52M.d.mts +183 -0
  118. package/dist/index-Caig6TeF.d.mts +6746 -0
  119. package/dist/index-CelJCBjk.d.mts +2992 -0
  120. package/dist/index-ChunCFu4.d.mts +11 -0
  121. package/dist/index-Cm0dUkWL.d.mts +4651 -0
  122. package/dist/index-CokQYGVP.d.mts +184 -0
  123. package/dist/index-Cs0kZXIz2.d.mts +37 -0
  124. package/dist/index-D5d5HeWI2.d.mts +259 -0
  125. package/dist/index-D90OmGmV.d.mts +389 -0
  126. package/dist/index-D9MwJ2Q8.d.mts +67 -0
  127. package/dist/index-DANINzMu.d.mts +40 -0
  128. package/dist/index-DBw-89vC2.d.mts +3640 -0
  129. package/dist/index-DGBu6bHi2.d.mts +438 -0
  130. package/dist/index-DKC62dY5.d.mts +146 -0
  131. package/dist/index-DKia0MX1.d.mts +43 -0
  132. package/dist/index-DMKnON5s.d.mts +28 -0
  133. package/dist/index-DUaw0Dw8.d.mts +14747 -0
  134. package/dist/index-De3kPhlN.d.mts +72 -0
  135. package/dist/index-L4GjJDKb.d.mts +822 -0
  136. package/dist/index-U-A8eyGT.d.mts +1490 -0
  137. package/dist/index-eemAKwsB.d.mts +362 -0
  138. package/dist/index-mNec7V-9.d.mts +1075 -0
  139. package/dist/index-soFznFCy2.d.mts +89 -0
  140. package/dist/index-vtXJuwrz.d.mts +40 -0
  141. package/dist/index-x_lVDp_J.d.mts +134 -0
  142. package/dist/json-value-CmhSGMLv.mjs +1 -0
  143. package/dist/kernel/cli/index.d.mts +143 -0
  144. package/dist/kernel/cli/index.mjs +1 -0
  145. package/dist/kernel/cli/schemas.d.mts +64 -0
  146. package/dist/kernel/cli/schemas.mjs +1 -0
  147. package/dist/kernel/extension/index.d.mts +2 -0
  148. package/dist/kernel/extension/index.mjs +1 -0
  149. package/dist/kernel/index.d.mts +296 -0
  150. package/dist/kernel/index.mjs +1 -0
  151. package/dist/kernel/namespace/index.d.mts +2 -0
  152. package/dist/kernel/namespace/index.mjs +1 -0
  153. package/dist/kernel/observability/index.d.mts +2 -0
  154. package/dist/kernel/observability/index.mjs +1 -0
  155. package/dist/kernel/providers/index.d.mts +2 -0
  156. package/dist/kernel/providers/index.mjs +1 -0
  157. package/dist/kernel/window/index.d.mts +2 -0
  158. package/dist/kernel/window/index.mjs +1 -0
  159. package/dist/materialization-CuUBu4XI.mjs +1 -0
  160. package/dist/model-registry-CfXytvzx.mjs +1 -0
  161. package/dist/model-registry-Scn_MC2d.mjs +1 -0
  162. package/dist/namespace-5QQqbF-B.d.mts +3133 -0
  163. package/dist/namespace-BM7Djng9.d.mts +189 -0
  164. package/dist/namespace-BoD94mrN.mjs +1 -0
  165. package/dist/namespace-BwzZJqTV.mjs +1 -0
  166. package/dist/namespace-CFLAmQfh.mjs +1 -0
  167. package/dist/namespace-CTm3nEvh.d.mts +51 -0
  168. package/dist/namespace-CaaNnKcR.d.mts +921 -0
  169. package/dist/namespace-CaoZ3S78.d.mts +43 -0
  170. package/dist/namespace-CxhsoFUP.d.mts +607 -0
  171. package/dist/namespace-DD8Oiqo7.d.mts +580 -0
  172. package/dist/namespace-DLovh2Ws.d.mts +1313 -0
  173. package/dist/namespace-DgqkaOVu.d.mts +768 -0
  174. package/dist/namespace-DkRgbZYn.mjs +1 -0
  175. package/dist/namespace-Dr8K0MCp.d.mts +2047 -0
  176. package/dist/namespace-DuXK5AYN.mjs +1 -0
  177. package/dist/namespace-EQniz-Aw.d.mts +142 -0
  178. package/dist/namespace-IV1QK__V.d.mts +159 -0
  179. package/dist/namespace-LViZ-EQk.mjs +1 -0
  180. package/dist/namespace-TyiTsLFv.d.mts +3020 -0
  181. package/dist/namespace-Yna5-Pws.mjs +1 -0
  182. package/dist/namespace-xcmbQlxh.mjs +1 -0
  183. package/dist/native-session-supervisor-B1TnaPUF.mjs +1 -0
  184. package/dist/node/bus-server/index.d.mts +178 -0
  185. package/dist/node/bus-server/index.mjs +1 -0
  186. package/dist/node/bus-server/server-lifecycle.d.mts +2 -0
  187. package/dist/node/bus-server/server-lifecycle.mjs +1 -0
  188. package/dist/node/machine-identity/index.d.mts +85 -0
  189. package/dist/node/machine-identity/index.mjs +3 -0
  190. package/dist/node/transports/index.d.mts +1945 -0
  191. package/dist/node/transports/index.mjs +2 -0
  192. package/dist/orchestrator-shared-CIDiFJMD.mjs +1 -0
  193. package/dist/orchestrator-shared-Dfa7FMyw.d.mts +249 -0
  194. package/dist/package-DKVlsMP3.mjs +1 -0
  195. package/dist/platform-DZ7z-wXD.mjs +1 -0
  196. package/dist/profile-6ynCD5k3.mjs +1 -0
  197. package/dist/provider-context-CK6B4X_8.mjs +1 -0
  198. package/dist/providers/index.d.mts +135 -0
  199. package/dist/providers/index.mjs +1 -0
  200. package/dist/providers-namespace-DSEpli4A.d.mts +583 -0
  201. package/dist/providers-u8i15co9.mjs +1 -0
  202. package/dist/schema-CoyE6mPt.mjs +1 -0
  203. package/dist/schema-M5YTvSAG.d.mts +949 -0
  204. package/dist/schema-e0wU_lcV.mjs +1 -0
  205. package/dist/schema-introspection-Dn1jWQs1.mjs +1 -0
  206. package/dist/schemas-Bd0OjRQf.d.mts +46 -0
  207. package/dist/schemas-C46QfKzv.d.mts +459 -0
  208. package/dist/schemas-CDBSjg7o.d.mts +237 -0
  209. package/dist/schemas-CR1Rripy.mjs +1 -0
  210. package/dist/schemas-CVvwIfG4.mjs +1 -0
  211. package/dist/schemas-CaLhkkLn.mjs +1 -0
  212. package/dist/schemas-ClOOT1W6.d.mts +174 -0
  213. package/dist/schemas-DATniTHb.d.mts +182 -0
  214. package/dist/schemas-DE-GNmSD.mjs +1 -0
  215. package/dist/schemas-DVF1A4DF.d.mts +160 -0
  216. package/dist/schemas-DaRSfYLf.d.mts +73 -0
  217. package/dist/schemas-DiYVzG6e.d.mts +315 -0
  218. package/dist/schemas-hSrzflwZ.mjs +1 -0
  219. package/dist/schemas-j7ivZ2HI.d.mts +944 -0
  220. package/dist/schemas-jFe1AuI-.mjs +1 -0
  221. package/dist/schemas-wg_6PAdV.d.mts +153 -0
  222. package/dist/scoped-bus-04pwo1uM.mjs +1 -0
  223. package/dist/server-lifecycle-FXTPW39-.mjs +1 -0
  224. package/dist/server-lifecycle-YoSGFGnU.d.mts +160 -0
  225. package/dist/service-base/index.d.mts +98 -0
  226. package/dist/service-base/index.mjs +1 -0
  227. package/dist/services/adapter-runtime/index.d.mts +4 -0
  228. package/dist/services/adapter-runtime/index.mjs +1 -0
  229. package/dist/services/adapter-runtime/namespace.d.mts +2 -0
  230. package/dist/services/adapter-runtime/namespace.mjs +1 -0
  231. package/dist/services/adapter-runtime/schemas.d.mts +2 -0
  232. package/dist/services/adapter-runtime/schemas.mjs +1 -0
  233. package/dist/services/adapter-subsystem/index.d.mts +3 -0
  234. package/dist/services/adapter-subsystem/index.mjs +1 -0
  235. package/dist/services/adapter-subsystem/namespace.d.mts +2 -0
  236. package/dist/services/adapter-subsystem/namespace.mjs +1 -0
  237. package/dist/services/agent-runtime/index.d.mts +3 -0
  238. package/dist/services/agent-runtime/index.mjs +1 -0
  239. package/dist/services/agent-runtime/namespace.d.mts +2 -0
  240. package/dist/services/agent-runtime/namespace.mjs +1 -0
  241. package/dist/services/agent-runtime/schemas.d.mts +2 -0
  242. package/dist/services/agent-runtime/schemas.mjs +1 -0
  243. package/dist/services/capability/index.d.mts +2 -0
  244. package/dist/services/capability/index.mjs +1 -0
  245. package/dist/services/cli-detection/namespace.d.mts +56 -0
  246. package/dist/services/cli-detection/namespace.mjs +1 -0
  247. package/dist/services/codebase/index.d.mts +3 -0
  248. package/dist/services/codebase/index.mjs +1 -0
  249. package/dist/services/codebase/namespace.d.mts +2 -0
  250. package/dist/services/codebase/namespace.mjs +1 -0
  251. package/dist/services/codebase/schemas.d.mts +2 -0
  252. package/dist/services/codebase/schemas.mjs +1 -0
  253. package/dist/services/compression/index.d.mts +3 -0
  254. package/dist/services/compression/index.mjs +1 -0
  255. package/dist/services/compression/namespace.d.mts +2 -0
  256. package/dist/services/compression/namespace.mjs +1 -0
  257. package/dist/services/compression/schemas.d.mts +2 -0
  258. package/dist/services/compression/schemas.mjs +1 -0
  259. package/dist/services/context-rules/index.d.mts +412 -0
  260. package/dist/services/context-rules/index.mjs +1 -0
  261. package/dist/services/credential-change/index.d.mts +17 -0
  262. package/dist/services/credential-change/index.mjs +1 -0
  263. package/dist/services/definition/index.d.mts +2 -0
  264. package/dist/services/definition/index.mjs +1 -0
  265. package/dist/services/definition/namespace.d.mts +71 -0
  266. package/dist/services/definition/namespace.mjs +1 -0
  267. package/dist/services/definition/schemas.d.mts +38 -0
  268. package/dist/services/definition/schemas.mjs +1 -0
  269. package/dist/services/dialog/namespace.d.mts +105 -0
  270. package/dist/services/dialog/namespace.mjs +1 -0
  271. package/dist/services/dialog/schemas.d.mts +109 -0
  272. package/dist/services/dialog/schemas.mjs +1 -0
  273. package/dist/services/execution-target/index.d.mts +4 -0
  274. package/dist/services/execution-target/index.mjs +1 -0
  275. package/dist/services/execution-target/namespace.d.mts +2 -0
  276. package/dist/services/execution-target/namespace.mjs +1 -0
  277. package/dist/services/execution-target/schemas.d.mts +2 -0
  278. package/dist/services/execution-target/schemas.mjs +1 -0
  279. package/dist/services/filesystem/index.d.mts +3 -0
  280. package/dist/services/filesystem/index.mjs +1 -0
  281. package/dist/services/filesystem/namespace.d.mts +432 -0
  282. package/dist/services/filesystem/namespace.mjs +1 -0
  283. package/dist/services/filesystem/schemas.d.mts +240 -0
  284. package/dist/services/filesystem/schemas.mjs +1 -0
  285. package/dist/services/git/namespace.d.mts +1163 -0
  286. package/dist/services/git/namespace.mjs +1 -0
  287. package/dist/services/git/schemas.d.mts +932 -0
  288. package/dist/services/git/schemas.mjs +1 -0
  289. package/dist/services/harness/index.d.mts +861 -0
  290. package/dist/services/harness/index.mjs +1 -0
  291. package/dist/services/harness/storage/schema.d.mts +424 -0
  292. package/dist/services/harness/storage/schema.mjs +1 -0
  293. package/dist/services/index.d.mts +6185 -0
  294. package/dist/services/index.mjs +1 -0
  295. package/dist/services/local-notification/index.d.mts +25 -0
  296. package/dist/services/local-notification/index.mjs +1 -0
  297. package/dist/services/local-notification/namespace.d.mts +73 -0
  298. package/dist/services/local-notification/namespace.mjs +1 -0
  299. package/dist/services/local-notification/schemas.d.mts +88 -0
  300. package/dist/services/local-notification/schemas.mjs +1 -0
  301. package/dist/services/log-import/browser.d.mts +3 -0
  302. package/dist/services/log-import/browser.mjs +1 -0
  303. package/dist/services/log-import/index.d.mts +274 -0
  304. package/dist/services/log-import/index.mjs +2 -0
  305. package/dist/services/log-import/log-import.d.mts +3 -0
  306. package/dist/services/log-import/log-import.mjs +1 -0
  307. package/dist/services/log-import/namespace.d.mts +327 -0
  308. package/dist/services/log-import/namespace.mjs +1 -0
  309. package/dist/services/log-import/schemas.d.mts +217 -0
  310. package/dist/services/log-import/schemas.mjs +1 -0
  311. package/dist/services/model-registry/index.d.mts +2 -0
  312. package/dist/services/model-registry/index.mjs +1 -0
  313. package/dist/services/preferences/index.d.mts +3 -0
  314. package/dist/services/preferences/index.mjs +1 -0
  315. package/dist/services/preferences/schemas.d.mts +2 -0
  316. package/dist/services/preferences/schemas.mjs +1 -0
  317. package/dist/services/preferences/storage-namespace.d.mts +3 -0
  318. package/dist/services/preferences/storage-namespace.mjs +1 -0
  319. package/dist/services/provider-context/index.d.mts +2 -0
  320. package/dist/services/provider-context/index.mjs +1 -0
  321. package/dist/services/provider-runtime/index.d.mts +136 -0
  322. package/dist/services/provider-runtime/index.mjs +1 -0
  323. package/dist/services/session/handlers/index.d.mts +2 -0
  324. package/dist/services/session/handlers/index.mjs +1 -0
  325. package/dist/services/session/index.d.mts +10 -0
  326. package/dist/services/session/index.mjs +1 -0
  327. package/dist/services/session/messages/namespace.d.mts +2 -0
  328. package/dist/services/session/messages/namespace.mjs +1 -0
  329. package/dist/services/session/orchestrator-testing/index.d.mts +2 -0
  330. package/dist/services/session/orchestrator-testing/index.mjs +1 -0
  331. package/dist/services/session/session-events/namespace.d.mts +2 -0
  332. package/dist/services/session/session-events/namespace.mjs +1 -0
  333. package/dist/services/session/storage/namespace.d.mts +2 -0
  334. package/dist/services/session/storage/namespace.mjs +1 -0
  335. package/dist/services/session/storage/schema.d.mts +2 -0
  336. package/dist/services/session/storage/schema.mjs +1 -0
  337. package/dist/services/session/testing/index.d.mts +35 -0
  338. package/dist/services/session/testing/index.mjs +65 -0
  339. package/dist/services/session/testing/orchestrator-shared.d.mts +2 -0
  340. package/dist/services/session/testing/orchestrator-shared.mjs +1 -0
  341. package/dist/services/session/turns/namespace.d.mts +2 -0
  342. package/dist/services/session/turns/namespace.mjs +1 -0
  343. package/dist/services/session-editor/index.d.mts +119 -0
  344. package/dist/services/session-editor/index.mjs +1 -0
  345. package/dist/services/settings/index.d.mts +47 -0
  346. package/dist/services/settings/index.mjs +1 -0
  347. package/dist/services/settings/namespace.d.mts +663 -0
  348. package/dist/services/settings/namespace.mjs +1 -0
  349. package/dist/services/settings/storage/clients-namespace.d.mts +2 -0
  350. package/dist/services/settings/storage/clients-namespace.mjs +1 -0
  351. package/dist/services/settings/storage/extension-configs/namespace.d.mts +184 -0
  352. package/dist/services/settings/storage/extension-configs/namespace.mjs +1 -0
  353. package/dist/services/settings/storage/index.d.mts +4 -0
  354. package/dist/services/settings/storage/index.mjs +1 -0
  355. package/dist/services/settings/storage/providers-namespace.d.mts +2 -0
  356. package/dist/services/settings/storage/providers-namespace.mjs +1 -0
  357. package/dist/services/subagent/index.d.mts +2 -0
  358. package/dist/services/subagent/index.mjs +1 -0
  359. package/dist/services/subagent-template/index.d.mts +3 -0
  360. package/dist/services/subagent-template/index.mjs +1 -0
  361. package/dist/services/subagent-template/namespace.d.mts +2 -0
  362. package/dist/services/subagent-template/namespace.mjs +1 -0
  363. package/dist/services/subagent-template/schemas.d.mts +2 -0
  364. package/dist/services/subagent-template/schemas.mjs +1 -0
  365. package/dist/services/tool-approval/index.d.mts +2 -0
  366. package/dist/services/tool-approval/index.mjs +1 -0
  367. package/dist/services/tools/index.d.mts +2 -0
  368. package/dist/services/tools/index.mjs +1 -0
  369. package/dist/services/tray-menu/index.d.mts +4 -0
  370. package/dist/services/tray-menu/index.mjs +1 -0
  371. package/dist/services/tray-menu/namespace.d.mts +2 -0
  372. package/dist/services/tray-menu/namespace.mjs +1 -0
  373. package/dist/services/tray-menu/schemas.d.mts +2 -0
  374. package/dist/services/tray-menu/schemas.mjs +1 -0
  375. package/dist/services/turn/index.d.mts +2 -0
  376. package/dist/services/turn/index.mjs +1 -0
  377. package/dist/services/turn/namespace.d.mts +2 -0
  378. package/dist/services/turn/namespace.mjs +1 -0
  379. package/dist/services/turn/schemas.d.mts +335 -0
  380. package/dist/services/turn/schemas.mjs +1 -0
  381. package/dist/session-BoldSdNZ2.mjs +134 -0
  382. package/dist/session-DuVOYctZ.mjs +1 -0
  383. package/dist/session-lineage-CRsc9g1x.d.mts +65 -0
  384. package/dist/shared-DpOEfD8F.mjs +1 -0
  385. package/dist/shared-schemas-CPShiLNp.mjs +1 -0
  386. package/dist/skill-CQO4mDqK.mjs +1 -0
  387. package/dist/storage/drizzle/client.d.mts +78 -0
  388. package/dist/storage/drizzle/client.mjs +1 -0
  389. package/dist/storage/drizzle/index.d.mts +137 -0
  390. package/dist/storage/drizzle/index.mjs +1 -0
  391. package/dist/storage/handlers/drizzle/index.d.mts +2 -0
  392. package/dist/storage/handlers/drizzle/index.mjs +1 -0
  393. package/dist/storage/handlers/index.d.mts +33 -0
  394. package/dist/storage/handlers/index.mjs +1 -0
  395. package/dist/storage/index.d.mts +192 -0
  396. package/dist/storage/index.mjs +1 -0
  397. package/dist/storage-namespace-BXkoh5Sy.d.mts +221 -0
  398. package/dist/storage-namespace-DWsYLAXa.mjs +1 -0
  399. package/dist/storage-namespace-definition-Bkx5rSto.d.mts +17 -0
  400. package/dist/storage-namespace-definition-CqSdsuCC.mjs +1 -0
  401. package/dist/style.css +3782 -0
  402. package/dist/telemetry-CvdLBWuk.mjs +1 -0
  403. package/dist/testing/drizzle-harness.d.mts +130 -0
  404. package/dist/testing/drizzle-harness.mjs +1 -0
  405. package/dist/testing/index.d.mts +106 -0
  406. package/dist/testing/index.mjs +1 -0
  407. package/dist/timeout-XsYIOKrc.mjs +1 -0
  408. package/dist/tool-approval-service-BvZWhYZp.mjs +1 -0
  409. package/dist/tools/index.d.mts +835 -0
  410. package/dist/tools/index.mjs +1 -0
  411. package/dist/tools/testing/index.d.mts +53 -0
  412. package/dist/tools/testing/index.mjs +1 -0
  413. package/dist/tools-D-luYcDw.mjs +1431 -0
  414. package/dist/tray-menu-service-DuXq5k22.mjs +1 -0
  415. package/dist/types-BCMUtBj1.d.mts +1106 -0
  416. package/dist/types-C2Ob9zz_.d.mts +128 -0
  417. package/dist/types-CCdqjeuH.d.mts +262 -0
  418. package/dist/types-DZHvOc_Q.d.mts +305 -0
  419. package/dist/types-Dy3YTcTF.d.mts +6777 -0
  420. package/dist/types-MfJZ67e9.d.mts +315 -0
  421. package/dist/types-dyP-bXXE.d.mts +31 -0
  422. package/dist/ui-components/index.d.mts +2342 -0
  423. package/dist/ui-components/index.mjs +8 -0
  424. package/dist/ui-config-9bDRwFZr.mjs +1 -0
  425. package/dist/ui-hooks/index.d.mts +1915 -0
  426. package/dist/ui-hooks/index.mjs +1 -0
  427. package/dist/ui-kernel/index.d.mts +2793 -0
  428. package/dist/ui-kernel/index.mjs +1 -0
  429. package/dist/ui-kernel/pages/namespace.d.mts +88 -0
  430. package/dist/ui-kernel/pages/namespace.mjs +1 -0
  431. package/dist/ui-kernel/pages/schemas.d.mts +2 -0
  432. package/dist/ui-kernel/pages/schemas.mjs +1 -0
  433. package/dist/ui-views/index.d.mts +487 -0
  434. package/dist/ui-views/index.mjs +30 -0
  435. package/dist/utils/health-probe.d.mts +26 -0
  436. package/dist/utils/health-probe.mjs +1 -0
  437. package/dist/utils/index.d.mts +262 -0
  438. package/dist/utils/index.mjs +2 -0
  439. package/dist/utils/keychain.d.mts +31 -0
  440. package/dist/utils/keychain.mjs +1 -0
  441. package/dist/utils/project-manifest.d.mts +130 -0
  442. package/dist/utils/project-manifest.mjs +1 -0
  443. package/dist/utils/resolve-package-root.d.mts +12 -0
  444. package/dist/utils/resolve-package-root.mjs +1 -0
  445. package/dist/utils/scope-paths.d.mts +33 -0
  446. package/dist/utils/scope-paths.mjs +1 -0
  447. package/dist/utils/workspace-packages.d.mts +59 -0
  448. package/dist/utils/workspace-packages.mjs +1 -0
  449. package/dist/utils/workspace-root.d.mts +24 -0
  450. package/dist/utils/workspace-root.mjs +2 -0
  451. package/dist/variant-CT6XBP6T.mjs +1 -0
  452. package/dist/version-BeT3ASEe.mjs +1 -0
  453. package/dist/visibility-Cb62p9bv.mjs +1 -0
  454. package/dist/window-registry-CBcrGTv4.d.mts +130 -0
  455. package/dist/window-registry-DW-dKRjQ.mjs +1 -0
  456. package/package.json +1 -1
@@ -0,0 +1,262 @@
1
+ //#region packages/utils/src/deferred-promise.d.ts
2
+ declare class DeferredPromise<T> {
3
+ private deferred;
4
+ private isTracked;
5
+ getPromise(): Promise<T>;
6
+ resolve(value: T): void;
7
+ reject(error: Error): void;
8
+ }
9
+ //#endregion
10
+ //#region packages/utils/src/cli.d.ts
11
+ /** Exit codes shared by framework CLI commands. */
12
+ declare const CLI_EXIT_CODES: {
13
+ /** Generic command failure. */readonly failure: 1; /** GNU `timeout` convention. */
14
+ readonly timeout: 124; /** Shell Ctrl-C convention. */
15
+ readonly abort: 130;
16
+ };
17
+ /** Process signals that should abort a local CLI command cooperatively. */
18
+ declare const CLI_COMMAND_ABORT_SIGNALS: readonly ["SIGINT", "SIGTERM", "SIGHUP"];
19
+ /** Signal-specific shell exit codes for cooperative CLI command shutdown. */
20
+ declare const CLI_COMMAND_SIGNAL_EXIT_CODES: Record<(typeof CLI_COMMAND_ABORT_SIGNALS)[number], number>;
21
+ /** Known command error categories that map to stable CLI exit codes. */
22
+ type CliCommandErrorKind = 'abort' | 'timeout' | 'failure';
23
+ /**
24
+ * Read all stdin bytes when input is piped into the process.
25
+ * @param signal - Optional command abort signal that cancels the stdin read.
26
+ * @returns The stdin content, or `null` when stdin is attached to a TTY.
27
+ */
28
+ declare function readStdin(signal?: AbortSignal): Promise<string | null>;
29
+ /**
30
+ * Classify bus wait errors for user-facing CLI handling.
31
+ *
32
+ * Uses the stable error `name` instead of importing bus-core error classes so
33
+ * this package remains a zero-internal-dependency utility layer.
34
+ * @param error - Caught command error.
35
+ * @returns The CLI error category.
36
+ */
37
+ declare function classifyCliCommandError(error: unknown): CliCommandErrorKind;
38
+ /**
39
+ * Resolve a process-signal abort reason to its conventional CLI exit code.
40
+ * @param reason - AbortSignal reason captured from the process signal handler.
41
+ * @returns Signal-specific exit code, or `undefined` when the reason is not a known command signal.
42
+ */
43
+ declare function resolveCliSignalExitCode(reason: unknown): number | undefined;
44
+ //#endregion
45
+ //#region packages/utils/src/is-record.d.ts
46
+ /**
47
+ * Check whether a value is a non-array object (a "record").
48
+ * @param value - Value to check.
49
+ * @returns True when the value is a plain record.
50
+ */
51
+ declare function isRecord(value: unknown): value is Record<string, unknown>;
52
+ //#endregion
53
+ //#region packages/utils/src/extract-json.d.ts
54
+ /**
55
+ * Extract a JSON object from text that may contain surrounding content.
56
+ *
57
+ * LLM responses often wrap JSON in markdown fences or prose. This function
58
+ * finds the first `{` and last `}` in the text and returns the substring
59
+ * between them (inclusive).
60
+ *
61
+ * Returns the original text unchanged when no valid brace pair is found.
62
+ * @param text - Raw text potentially containing a JSON object
63
+ * @returns Extracted JSON substring, or the original text if no braces found
64
+ */
65
+ declare function extractJson(text: string): string;
66
+ //#endregion
67
+ //#region packages/utils/src/getErrorString.d.ts
68
+ /**
69
+ * Extracts error message string from various error types
70
+ * @param error - Error value to extract message from
71
+ * @returns Error message string or 'Unknown error'
72
+ */
73
+ declare function getErrorString(error: string | Error | undefined): string;
74
+ //#endregion
75
+ //#region packages/utils/src/normalize-bus-secret.d.ts
76
+ /**
77
+ * Shared normalization for the `MAKAIO_BUS_SECRET` environment variable.
78
+ *
79
+ * Applies consistent trim-and-reject logic so every entry-point (CLI serve,
80
+ * config provider, …) behaves identically when reading the secret.
81
+ */
82
+ /**
83
+ * Normalize a raw `MAKAIO_BUS_SECRET` value.
84
+ *
85
+ * - `undefined` (variable unset) → returns `undefined`
86
+ * - Non-empty string after trimming → returns the trimmed value
87
+ * - Empty string or whitespace-only → throws, because a secret that collapses
88
+ * to the empty string is almost certainly a misconfiguration and must not
89
+ * silently fall back to unauthenticated mode.
90
+ * @param raw - The raw environment variable value, or `undefined` when unset.
91
+ * @returns The trimmed secret string, or `undefined` when the variable is unset.
92
+ * @throws When the variable is set but evaluates to an empty string after trimming.
93
+ */
94
+ declare function normalizeBusSecret(raw: string | undefined): string | undefined;
95
+ //#endregion
96
+ //#region packages/utils/src/runtime.d.ts
97
+ /**
98
+ * Runtime detection utilities.
99
+ *
100
+ * Provides a single, canonical implementation of runtime checks used across
101
+ * framework packages and host extensions.
102
+ * @packageDocumentation
103
+ */
104
+ /**
105
+ * Returns `true` when the current process is running under the Bun runtime.
106
+ *
107
+ * Detection is based on the presence of the `Bun` property on `globalThis`,
108
+ * which Bun always exposes. Uses a bracket-access check to avoid a TypeScript
109
+ * error on environments where the `Bun` global is not declared.
110
+ * @returns Whether the current runtime is Bun.
111
+ */
112
+ declare function isBunRuntime(): boolean;
113
+ //#endregion
114
+ //#region packages/utils/src/safe-stringify.d.ts
115
+ /**
116
+ * JSON-stringify a value, handling BigInt and circular references gracefully.
117
+ * @param value - Value to serialize.
118
+ * @returns JSON string, never throws.
119
+ */
120
+ declare function safeStringify(value: unknown): string;
121
+ //#endregion
122
+ //#region packages/utils/src/timeout/types.d.ts
123
+ /**
124
+ * Timeout configuration types for AI adapter operations.
125
+ *
126
+ * Each category represents a distinct phase with different performance
127
+ * characteristics and failure modes.
128
+ */
129
+ /**
130
+ * Categories of timeouts in the adapter lifecycle.
131
+ */
132
+ type TimeoutCategory = 'initialization' | 'acknowledgement' | 'completion' | 'toolApproval' | 'eventWait';
133
+ /**
134
+ * Complete timeout configuration where all categories are required.
135
+ * Used by adapters to declare their mandatory defaults.
136
+ */
137
+ type RequiredTimeoutConfig = Record<TimeoutCategory, number>;
138
+ /**
139
+ * Layer that provided a timeout value (for provenance tracking).
140
+ */
141
+ type TimeoutLayer = 'global' | 'adapter' | 'runtime' | 'call';
142
+ /**
143
+ * Provenance tracking: which layer set each timeout value.
144
+ */
145
+ type TimeoutSources = Record<TimeoutCategory, {
146
+ layer: TimeoutLayer;
147
+ source: string;
148
+ }>;
149
+ /**
150
+ * Resolved timeout configuration with provenance tracking.
151
+ * Enables debugging "why is this timeout X?"
152
+ */
153
+ interface TrackedTimeoutConfig {
154
+ /** Resolved timeout values in milliseconds */
155
+ values: RequiredTimeoutConfig;
156
+ /** Source information for each timeout value */
157
+ sources: TimeoutSources;
158
+ }
159
+ /**
160
+ * Global default timeout values (milliseconds).
161
+ *
162
+ * Philosophy:
163
+ * - initialization: Allow time for cold starts and auth
164
+ * - acknowledgement: Fast feedback that message was received
165
+ * - completion: Account for complex reasoning
166
+ * - toolApproval: Short for responsiveness (user is waiting)
167
+ * - eventWait: Default for once() calls waiting for events
168
+ */
169
+ declare const DEFAULT_TIMEOUTS: RequiredTimeoutConfig;
170
+ /**
171
+ * All timeout categories as array (for iteration).
172
+ */
173
+ declare const TIMEOUT_CATEGORIES: readonly TimeoutCategory[];
174
+ /**
175
+ * Partial timeout configuration for user overrides.
176
+ * All fields are optional - missing values inherit from lower layers.
177
+ */
178
+ type TimeoutConfig = Partial<RequiredTimeoutConfig>;
179
+ //#endregion
180
+ //#region packages/utils/src/timeout/resolve.d.ts
181
+ /**
182
+ * Input for a single layer in the timeout resolution chain.
183
+ */
184
+ interface TimeoutLayerInput {
185
+ /** Which layer this config comes from */
186
+ layer: TimeoutLayer;
187
+ /** Human-readable source identifier (e.g., 'openai-node', 'config.ts') */
188
+ source: string;
189
+ /** Partial timeout config - undefined values are skipped */
190
+ config: TimeoutConfig | undefined;
191
+ }
192
+ /**
193
+ * Resolve timeout configuration by merging layers in order.
194
+ *
195
+ * Resolution order (later overrides earlier):
196
+ * 1. Global defaults (DEFAULT_TIMEOUTS)
197
+ * 2. Adapter defaults (from adapterDefinition.defaultTimeouts)
198
+ * 3. Runtime config (from adapter config.ts / environment)
199
+ * 4. Per-call overrides (passed to individual operations)
200
+ * @param layers - Array of layer inputs to merge
201
+ * @returns TrackedTimeoutConfig with resolved values and provenance
202
+ * @example
203
+ * ```typescript
204
+ * const timeouts = resolveTimeouts([
205
+ * { layer: 'adapter', source: 'openai-node', config: adapterDefinition.defaultTimeouts },
206
+ * { layer: 'runtime', source: 'config.ts', config: runtimeOverrides },
207
+ * ]);
208
+ * // timeouts.values.completion -> resolved value
209
+ * // timeouts.sources.completion -> { layer: 'adapter', source: 'openai-node' }
210
+ * ```
211
+ */
212
+ declare function resolveTimeouts(layers: TimeoutLayerInput[]): TrackedTimeoutConfig;
213
+ /**
214
+ * Debug helper: explain why a timeout has its current value.
215
+ * @param tracked - Resolved timeout config with provenance
216
+ * @param category - Which timeout category to explain
217
+ * @returns Human-readable explanation string
218
+ * @example
219
+ * ```typescript
220
+ * console.debug(explainTimeout(timeouts, 'completion'));
221
+ * // "completion=120000ms (from adapter: openai-node)"
222
+ * ```
223
+ */
224
+ declare function explainTimeout(tracked: TrackedTimeoutConfig, category: TimeoutCategory): string;
225
+ /**
226
+ * Debug helper: explain all timeout values and their sources.
227
+ * @param tracked - Resolved timeout config with provenance
228
+ * @returns Multi-line string with all timeouts explained
229
+ */
230
+ declare function explainAllTimeouts(tracked: TrackedTimeoutConfig): string;
231
+ //#endregion
232
+ //#region packages/utils/src/timeout/signal.d.ts
233
+ /**
234
+ * An AbortSignal paired with a cleanup handle for its backing timer.
235
+ */
236
+ interface TimeoutSignal {
237
+ /** AbortSignal that aborts when the timeout elapses. */
238
+ signal: AbortSignal;
239
+ /** Cancel the backing timer before it fires, preventing the abort. */
240
+ clear: () => void;
241
+ }
242
+ /**
243
+ * Create an `AbortSignal` that aborts after `timeoutMs` milliseconds.
244
+ *
245
+ * Always call {@link TimeoutSignal.clear} in a `finally` block to prevent
246
+ * the timer from leaking when the guarded operation completes before the
247
+ * timeout elapses.
248
+ * @param timeoutMs - Timeout duration in milliseconds.
249
+ * @returns A {@link TimeoutSignal} containing the signal and a `clear` callback.
250
+ * @example
251
+ * ```typescript
252
+ * const timeout = createTimeoutSignal(5_000);
253
+ * try {
254
+ * const response = await fetch(url, { signal: timeout.signal });
255
+ * } finally {
256
+ * timeout.clear();
257
+ * }
258
+ * ```
259
+ */
260
+ declare function createTimeoutSignal(timeoutMs: number): TimeoutSignal;
261
+ //#endregion
262
+ export { CLI_COMMAND_ABORT_SIGNALS, CLI_COMMAND_SIGNAL_EXIT_CODES, CLI_EXIT_CODES, type CliCommandErrorKind, DEFAULT_TIMEOUTS, DeferredPromise, type RequiredTimeoutConfig, TIMEOUT_CATEGORIES, type TimeoutCategory, type TimeoutConfig, type TimeoutLayer, type TimeoutLayerInput, type TimeoutSignal, type TimeoutSources, type TrackedTimeoutConfig, classifyCliCommandError, createTimeoutSignal, explainAllTimeouts, explainTimeout, extractJson, getErrorString, isBunRuntime, isRecord, normalizeBusSecret, readStdin, resolveCliSignalExitCode, resolveTimeouts, safeStringify };
@@ -0,0 +1,2 @@
1
+ function e(){let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}var t=class{deferred=e();isTracked=!1;getPromise(){return this.isTracked=!0,this.deferred.promise}resolve(e){this.deferred.resolve(e)}reject(e){this.isTracked&&this.deferred.reject(e)}};const n={failure:1,timeout:124,abort:130},r=[`SIGINT`,`SIGTERM`,`SIGHUP`],i={SIGINT:130,SIGTERM:143,SIGHUP:129};async function a(e){if(process.stdin.isTTY)return null;if(e?.aborted===!0)throw c(e.reason);let t=[],n=process.stdin,r=(async()=>{for await(let e of n)t.push(Buffer.from(e));return Buffer.concat(t).toString(`utf-8`)})();if(r.catch(()=>void 0),e===void 0)return await r;let i,a=new Promise((t,r)=>{i=()=>{let t=c(e.reason);n.destroy(t),r(t)},e.addEventListener(`abort`,i,{once:!0})});try{return await Promise.race([r,a])}finally{i!==void 0&&e.removeEventListener(`abort`,i)}}function o(e){return e instanceof Error&&e.name===`OnceAbortError`?`abort`:e instanceof Error&&e.name===`OnceTimeoutError`?`timeout`:`failure`}function s(e){return typeof e==`string`&&Object.hasOwn(i,e)?i[e]:void 0}function c(e){let t=Error(e===void 0?`Command aborted`:String(e));return t.name=`OnceAbortError`,t}function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function u(e){let t=e.indexOf(`{`),n=e.lastIndexOf(`}`);return t===-1||n===-1||n<=t?e:e.slice(t,n+1)}function d(e){return e?typeof e==`string`?e:e.message||`Unknown error`:`Unknown error`}function f(e){if(e===void 0)return;let t=e.trim();if(t===``)throw Error(`MAKAIO_BUS_SECRET is set but empty after trimming; refusing to use an empty secret`);return t}function p(){return globalThis.Bun!==void 0}function m(e){if(e===void 0)return`null`;let t=[];try{return JSON.stringify(e,function(e,n){if(typeof n==`bigint`)return n.toString();for(;t.length>0&&t[t.length-1]!==this;)t.pop();if(typeof n==`object`&&n){if(t.includes(n))return`[Circular]`;t.push(n)}return n})??JSON.stringify(String(e))??`"[Unserializable]"`}catch{try{return JSON.stringify(String(e))??`"[Unserializable]"`}catch{return`"[Unserializable]"`}}}const h={initialization:3e4,acknowledgement:3e4,completion:6e4,toolApproval:5e3,eventWait:1e4},g=[`initialization`,`acknowledgement`,`completion`,`toolApproval`,`eventWait`];function _(e){let t={...h},n={};for(let e of g)n[e]={layer:`global`,source:`DEFAULT_TIMEOUTS`};for(let{layer:r,source:i,config:a}of e)if(a)for(let e of g){let o=a[e];o!==void 0&&(t[e]=o,n[e]={layer:r,source:i})}return{values:t,sources:n}}function v(e,t){let{layer:n,source:r}=e.sources[t];return`${t}=${e.values[t]}ms (from ${n}: ${r})`}function y(e){return g.map(t=>v(e,t)).join(`
2
+ `)}function b(e){let t=new AbortController,n=setTimeout(()=>t.abort(),e);return{signal:t.signal,clear:()=>clearTimeout(n)}}export{r as CLI_COMMAND_ABORT_SIGNALS,i as CLI_COMMAND_SIGNAL_EXIT_CODES,n as CLI_EXIT_CODES,h as DEFAULT_TIMEOUTS,t as DeferredPromise,g as TIMEOUT_CATEGORIES,o as classifyCliCommandError,b as createTimeoutSignal,y as explainAllTimeouts,v as explainTimeout,u as extractJson,d as getErrorString,p as isBunRuntime,l as isRecord,f as normalizeBusSecret,a as readStdin,s as resolveCliSignalExitCode,_ as resolveTimeouts,m as safeStringify};
@@ -0,0 +1,31 @@
1
+ //#region packages/utils/src/keychain.d.ts
2
+ /**
3
+ * Reads a generic password from the macOS keychain.
4
+ *
5
+ * Uses `/usr/bin/security` directly with argv arrays so shell expansion is not
6
+ * involved. Returns `null` when the entry does not exist.
7
+ * @param service - Keychain service name.
8
+ * @param account - Optional keychain account name.
9
+ * @returns Stored password value, or `null` when absent.
10
+ */
11
+ declare function keychainRead(service: string, account?: string): Promise<string | null>;
12
+ /**
13
+ * Writes a generic password to the macOS keychain.
14
+ *
15
+ * Uses `-U` to update existing entries and `-X` so arbitrary UTF-8 JSON values
16
+ * round-trip without shell quoting or locale assumptions.
17
+ * @param service - Keychain service name.
18
+ * @param account - Keychain account name.
19
+ * @param value - Password value to store.
20
+ */
21
+ declare function keychainWrite(service: string, account: string, value: string): Promise<void>;
22
+ /**
23
+ * Deletes a generic password from the macOS keychain.
24
+ *
25
+ * Missing entries are treated as already deleted.
26
+ * @param service - Keychain service name.
27
+ * @param account - Optional keychain account name.
28
+ */
29
+ declare function keychainDelete(service: string, account?: string): Promise<void>;
30
+ //#endregion
31
+ export { keychainDelete, keychainRead, keychainWrite };
@@ -0,0 +1 @@
1
+ import{execFile as e}from"node:child_process";import{promisify as t}from"node:util";const n=t(e);function r(e){let t=/^password: 0x([0-9A-Fa-f]+)/m.exec(e);if(t)return Buffer.from(t[1],`hex`).toString(`utf-8`);let n=/^password: "(.*)"/m.exec(e);if(n)return n[1];let r=e.replace(/^password:.*$/gm,`password: [REDACTED]`);throw Error(`Unexpected security output format: ${r}`)}async function i(e,t){let i=[`find-generic-password`,`-s`,e,`-g`];t&&i.push(`-a`,t);try{let{stderr:e}=await n(`/usr/bin/security`,i);return r(e)}catch(e){if(e instanceof Error){let t=e.code;if(t===`ENOENT`)throw e;if(t===44)return null}throw e}}async function a(e,t,r){await n(`/usr/bin/security`,[`add-generic-password`,`-U`,`-s`,e,`-a`,t,`-X`,Buffer.from(r,`utf-8`).toString(`hex`)])}async function o(e,t){let r=[`delete-generic-password`,`-s`,e];t&&r.push(`-a`,t);try{await n(`/usr/bin/security`,r)}catch(e){if(e instanceof Error){let t=e.code;if(t===`ENOENT`)throw e;if(t===44)return}throw e}}export{o as keychainDelete,i as keychainRead,a as keychainWrite};
@@ -0,0 +1,130 @@
1
+ import { z } from "zod";
2
+
3
+ //#region packages/utils/src/project-manifest.d.ts
4
+ /** Basename of the project manifest file within the Makaio project directory. */
5
+ declare const PROJECT_MANIFEST_BASENAME = "manifest.json";
6
+ /**
7
+ * Relative path from a repository root to the project manifest file.
8
+ * For example, `.makaio/manifest.json`.
9
+ */
10
+ declare const PROJECT_MANIFEST_FILE: string;
11
+ /** Schema identifier used in the `$schema` field of the manifest. */
12
+ declare const PROJECT_MANIFEST_SCHEMA_ID = "makaio/project-manifest/v1";
13
+ /**
14
+ * A parsed extension spec that has been validated to contain an exact semantic version.
15
+ */
16
+ interface ExactExtensionSpec {
17
+ /** Fully-qualified npm package name (e.g. `@makaio/extension-workflow`). */
18
+ readonly packageName: string;
19
+ /** Exact semantic version string (e.g. `0.1.4`). */
20
+ readonly version: string;
21
+ /** Original spec string passed by the caller (e.g. `@makaio/extension-workflow@0.1.4`). */
22
+ readonly spec: string;
23
+ }
24
+ /** Installed extension version shape used when comparing a project manifest with local state. */
25
+ interface InstalledExtensionVersion {
26
+ /** npm package name without any version suffix. */
27
+ readonly name: string;
28
+ /** Installed package version. */
29
+ readonly version: string;
30
+ }
31
+ /** A manifest pin that is already installed at the requested version. */
32
+ interface SatisfiedProjectManifestExtension {
33
+ /** Parsed exact manifest pin. */
34
+ readonly manifest: ExactExtensionSpec;
35
+ /** Installed version matching the manifest pin. */
36
+ readonly installedVersion: string;
37
+ }
38
+ /** A manifest pin whose package is installed at a different version. */
39
+ interface MismatchedProjectManifestExtension {
40
+ /** Parsed exact manifest pin. */
41
+ readonly manifest: ExactExtensionSpec;
42
+ /** Version currently installed in the singleton Makaio home. */
43
+ readonly installedVersion: string;
44
+ }
45
+ /** Comparison result for project manifest extension pins against installed state. */
46
+ interface ProjectManifestExtensionDiff {
47
+ /** Manifest pins already satisfied by installed state. */
48
+ readonly satisfied: readonly SatisfiedProjectManifestExtension[];
49
+ /** Manifest pins whose package is absent from installed state. */
50
+ readonly missing: readonly ExactExtensionSpec[];
51
+ /** Manifest pins whose package is installed at a different version. */
52
+ readonly mismatched: readonly MismatchedProjectManifestExtension[];
53
+ }
54
+ /**
55
+ * Extracts the package name from an npm specifier, stripping any version suffix.
56
+ * Handles both scoped (`@scope/pkg@ver`) and unscoped (`pkg@ver`) packages.
57
+ * Returns the full string unchanged if no version separator is found.
58
+ * @param spec - npm package specifier (e.g. `@makaio/extension-workflow@0.1.4` or `@makaio/extension-workflow`)
59
+ * @returns The package name without version
60
+ */
61
+ declare function extractNpmPackageName(spec: string): string;
62
+ /**
63
+ * Parse and validate an extension spec string as an exact semantic version reference.
64
+ *
65
+ * Version ranges (e.g. `^1.0.0`, `~1.0.0`) are rejected because the project manifest
66
+ * must pin extensions to reproducible, auditable versions.
67
+ * @param spec - An npm-style package-at-version string, e.g. `@makaio/extension-workflow@0.1.4`.
68
+ * @returns Parsed {@link ExactExtensionSpec} with the package name, version, and original spec.
69
+ * @throws If the spec does not contain an `@`-separated exact semantic version.
70
+ */
71
+ declare function parseExactExtensionSpec(spec: string): ExactExtensionSpec;
72
+ /**
73
+ * Format an npm package name and exact version as a project manifest extension spec.
74
+ * @param packageName - npm package name without a version suffix.
75
+ * @param version - Exact semantic version.
76
+ * @returns A validated `package@version` manifest spec.
77
+ */
78
+ declare function formatExactExtensionSpec(packageName: string, version: string): string;
79
+ /**
80
+ * Compare exact project manifest extension pins with installed singleton state.
81
+ * @param manifestSpecs - Exact extension specs from `.makaio/manifest.json`.
82
+ * @param installedExtensions - Installed extension package versions.
83
+ * @returns Satisfied, missing, and version-mismatched manifest entries.
84
+ */
85
+ declare function compareProjectManifestExtensions(manifestSpecs: readonly string[], installedExtensions: readonly InstalledExtensionVersion[]): ProjectManifestExtensionDiff;
86
+ /**
87
+ * Zod schema for the project manifest.
88
+ *
89
+ * Uses `.passthrough()` to preserve host-owned namespace keys that are outside
90
+ * the framework's knowledge (e.g. `hosts`, custom tooling keys).
91
+ */
92
+ declare const ProjectManifestSchema: z.ZodObject<{
93
+ $schema: z.ZodOptional<z.ZodString>;
94
+ extensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
95
+ }, z.core.$loose>;
96
+ /** Shape of a validated project manifest, including passthrough host-owned keys. */
97
+ type ProjectManifest = z.infer<typeof ProjectManifestSchema>;
98
+ /**
99
+ * Walk upward from `startDir` looking for a Makaio project manifest, stopping at the git root.
100
+ *
101
+ * The search terminates at the first directory containing a `.git` entry; if no manifest is
102
+ * found by that point, `null` is returned.
103
+ * @param startDir - Absolute path to the directory where the upward search begins.
104
+ * @returns Absolute path to the manifest file, or `null` if none was found.
105
+ */
106
+ declare function findProjectManifestPath(startDir: string): Promise<string | null>;
107
+ /**
108
+ * Read and validate a project manifest from disk.
109
+ * @param manifestPath - Absolute path to the manifest JSON file.
110
+ * @returns Validated {@link ProjectManifest}.
111
+ * @throws If the file cannot be read or the content fails schema validation.
112
+ */
113
+ declare function readProjectManifest(manifestPath: string): Promise<ProjectManifest>;
114
+ /**
115
+ * Write a project manifest to disk as pretty-printed JSON.
116
+ *
117
+ * The write is performed atomically via a temporary file and rename to avoid
118
+ * partial reads by concurrent processes.
119
+ * @param manifestPath - Absolute path where the manifest should be written.
120
+ * @param manifest - Manifest data to serialise and persist.
121
+ */
122
+ declare function writeProjectManifest(manifestPath: string, manifest: ProjectManifest): Promise<void>;
123
+ /**
124
+ * Checks whether a filesystem path exists.
125
+ * @param candidate - Path to check
126
+ * @returns true if the path exists and is accessible
127
+ */
128
+ declare function pathExists(candidate: string): Promise<boolean>;
129
+ //#endregion
130
+ export { ExactExtensionSpec, InstalledExtensionVersion, MismatchedProjectManifestExtension, PROJECT_MANIFEST_BASENAME, PROJECT_MANIFEST_FILE, PROJECT_MANIFEST_SCHEMA_ID, ProjectManifest, ProjectManifestExtensionDiff, ProjectManifestSchema, SatisfiedProjectManifestExtension, compareProjectManifestExtensions, extractNpmPackageName, findProjectManifestPath, formatExactExtensionSpec, parseExactExtensionSpec, pathExists, readProjectManifest, writeProjectManifest };
@@ -0,0 +1 @@
1
+ import{MAKAIO_PROJECT_DIR as e}from"./scope-paths.mjs";import{z as t}from"zod";import n from"node:fs/promises";import r from"node:path";import{randomUUID as i}from"node:crypto";const a=`manifest.json`,o=r.join(e,a),s=`makaio/project-manifest/v1`,c=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?$/u,l=/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u;function u(e){if(e.startsWith(`@`)){let t=e.indexOf(`@`,1);return t===-1?e:e.slice(0,t)}let t=e.indexOf(`@`);return t===-1?e:e.slice(0,t)}function d(e){let t=u(e),n=t.length<e.length?e.slice(t.length+1):``;if(t.length===0||n.length===0)throw Error(`Project manifest extension specs must include an exact version: ${e}`);if(!l.test(t)||t.length>214)throw Error(`Project manifest extension specs must use npm package names: ${e}`);if(!c.test(n))throw Error(`Project manifest extension specs must use exact semantic versions: ${e}`);return{packageName:t,version:n,spec:e}}function f(e,t){return d(`${e}@${t}`).spec}function p(e,t){let n=new Map(t.map(e=>[e.name,e.version])),r=[],i=[],a=[];for(let t of e){let e=d(t),o=n.get(e.packageName);o===void 0?i.push(e):o===e.version?r.push({manifest:e,installedVersion:o}):a.push({manifest:e,installedVersion:o})}return{satisfied:r,missing:i,mismatched:a}}const m=t.string().superRefine((e,t)=>{try{d(e)}catch(e){t.addIssue({code:`custom`,message:e instanceof Error?e.message:String(e)})}}),h=t.object({$schema:t.string().optional(),extensions:t.array(m).default([])}).passthrough();async function g(e){let t=r.resolve(e);for(;;){let e=r.join(t,o),[n,i]=await Promise.all([y(e),y(r.join(t,`.git`))]);if(n)return e;if(i)return null;let a=r.dirname(t);if(a===t)return null;t=a}}async function _(e){let t=await n.readFile(e,`utf-8`);return h.parse(JSON.parse(t))}async function v(e,t){let a=h.parse(t);await n.mkdir(r.dirname(e),{recursive:!0});let o=`${e}.${process.pid}.${Date.now()}.${i()}.tmp`;await n.writeFile(o,`${JSON.stringify(a,null,2)}\n`,`utf-8`);try{await n.rename(o,e)}catch(e){throw await n.unlink(o).catch(()=>void 0),e}}async function y(e){try{return await n.access(e),!0}catch{return!1}}export{a as PROJECT_MANIFEST_BASENAME,o as PROJECT_MANIFEST_FILE,s as PROJECT_MANIFEST_SCHEMA_ID,h as ProjectManifestSchema,p as compareProjectManifestExtensions,u as extractNpmPackageName,g as findProjectManifestPath,f as formatExactExtensionSpec,d as parseExactExtensionSpec,y as pathExists,_ as readProjectManifest,v as writeProjectManifest};
@@ -0,0 +1,12 @@
1
+ //#region packages/utils/src/resolve-package-root.d.ts
2
+ /**
3
+ * Resolve a server-side package root from an ESM import meta object.
4
+ *
5
+ * Browser imports intentionally return `undefined` so package declarations can
6
+ * be evaluated by UI bundles without resolving filesystem paths.
7
+ * @param importMeta - Module import metadata from the package entrypoint.
8
+ * @returns Parent directory of the package entrypoint, or `undefined` in browser/non-file contexts.
9
+ */
10
+ declare function resolvePackageRoot(importMeta: Pick<ImportMeta, 'url'>): string | undefined;
11
+ //#endregion
12
+ export { resolvePackageRoot };
@@ -0,0 +1 @@
1
+ import{fileURLToPath as e}from"node:url";function t(t){return globalThis.window===void 0&&t.url.startsWith(`file:`)?e(new URL(`..`,t.url)):void 0}export{t as resolvePackageRoot};
@@ -0,0 +1,33 @@
1
+ //#region packages/utils/src/scope-paths.d.ts
2
+ /** Directory name for project-scoped Makaio configuration and assets. */
3
+ declare const MAKAIO_PROJECT_DIR = ".makaio";
4
+ /** Portable relative path for personal, untracked project-local Makaio assets. */
5
+ declare const MAKAIO_PERSONAL_DIR = ".makaio/personal";
6
+ /** Scope layer identifier for resolved Makaio asset paths. */
7
+ type ScopePathLayer = 'global' | 'project' | 'personal';
8
+ /** Resolved asset directory for a single scope layer. */
9
+ interface ResolvedScopePath {
10
+ /** Scope layer this path represents. */
11
+ readonly layer: ScopePathLayer;
12
+ /** Resolved filesystem path to the asset directory. */
13
+ readonly path: string;
14
+ }
15
+ interface ResolveScopePathsOptions {
16
+ /** Asset subdirectory name, for example `workflows`, `skills`, or `config`. */
17
+ readonly asset: string;
18
+ /** Resolved Makaio home directory. */
19
+ readonly makaioHome: string;
20
+ /** Active repository root path, when a project is open. */
21
+ readonly repoPath?: string;
22
+ }
23
+ /**
24
+ * Resolve layered Makaio asset paths from broadest to narrowest precedence.
25
+ *
26
+ * The function performs no filesystem I/O. Returned directories may or may not
27
+ * exist; callers own discovery, parsing, merge, and watch behavior.
28
+ * @param options - Asset name and scope roots to resolve.
29
+ * @returns Ordered scope-layer paths.
30
+ */
31
+ declare function resolveScopePaths(options: ResolveScopePathsOptions): ResolvedScopePath[];
32
+ //#endregion
33
+ export { MAKAIO_PERSONAL_DIR, MAKAIO_PROJECT_DIR, ResolveScopePathsOptions, ResolvedScopePath, ScopePathLayer, resolveScopePaths };
@@ -0,0 +1 @@
1
+ import e from"node:path";const t=`.makaio`,n=`${t}/personal`;function r(r){i(r.asset);let a=[{layer:`global`,path:e.join(r.makaioHome,r.asset)}];return r.repoPath!==void 0&&a.push({layer:`project`,path:e.join(r.repoPath,t,r.asset)},{layer:`personal`,path:e.join(r.repoPath,n,r.asset)}),a}function i(t){if(!(t.length>0&&t!==`.`&&t!==`..`&&!e.isAbsolute(t)&&!/[\\/]/u.test(t)))throw Error(`Scope path asset must be a single relative directory name. Received: "${t}"`)}export{n as MAKAIO_PERSONAL_DIR,t as MAKAIO_PROJECT_DIR,r as resolveScopePaths};
@@ -0,0 +1,59 @@
1
+ //#region packages/utils/src/workspace-packages.d.ts
2
+ /** Workspace glob entries normalized for package.json scanning. */
3
+ interface WorkspaceGlobResolution {
4
+ /** Positive workspace package descriptor patterns. */
5
+ readonly patterns: readonly string[];
6
+ /** Negative workspace patterns normalized for package descriptor matching. */
7
+ readonly ignore: readonly string[];
8
+ }
9
+ /** Options for workspace package descriptor discovery. */
10
+ interface DiscoverWorkspacePackageOptions {
11
+ /** Workspace globs to use instead of reading the root package.json. */
12
+ readonly patterns?: readonly string[];
13
+ }
14
+ /**
15
+ * Read package-manager workspace globs from a parsed package.json object.
16
+ *
17
+ * Supports both Yarn's array shape and npm/pnpm's `{ packages: [...] }` shape.
18
+ * Invalid entries are ignored so callers can decide whether an empty result is
19
+ * acceptable in their context.
20
+ * @param packageJson - Parsed root package.json value.
21
+ * @returns Workspace glob entries in declaration order.
22
+ */
23
+ declare function parseWorkspaceGlobs(packageJson: unknown): readonly string[];
24
+ /**
25
+ * Read workspace globs from the root package.json in `workspaceRoot`.
26
+ * @param workspaceRoot - Absolute workspace root directory.
27
+ * @returns Workspace glob entries in declaration order.
28
+ */
29
+ declare function readWorkspaceGlobs(workspaceRoot: string): Promise<readonly string[]>;
30
+ /**
31
+ * Convert workspace globs into package.json match patterns and ignore patterns.
32
+ *
33
+ * Package-manager workspaces describe package directories. Repository scanners
34
+ * in this codebase need package descriptors, so positive entries get
35
+ * `/package.json` appended while negated directory entries become ignore globs.
36
+ * @param workspaces - Raw workspace globs from a root package.json.
37
+ * @returns Positive descriptor patterns plus normalized ignores.
38
+ */
39
+ declare function resolveWorkspacePackageJsonGlobs(workspaces: readonly string[]): WorkspaceGlobResolution;
40
+ /**
41
+ * Discover package.json files declared by workspace globs.
42
+ * @param workspaceRoot - Absolute workspace root directory.
43
+ * @param options - Optional discovery overrides.
44
+ * @returns Absolute package.json paths.
45
+ */
46
+ declare function discoverWorkspacePackageJsonPaths(workspaceRoot: string, options?: DiscoverWorkspacePackageOptions): Promise<readonly string[]>;
47
+ /**
48
+ * Discover workspace packages as a package-name to directory index.
49
+ *
50
+ * Malformed or unnamed package descriptors are skipped; callers that need
51
+ * schema-specific validation should read the returned descriptor paths
52
+ * directly via {@link discoverWorkspacePackageJsonPaths}.
53
+ * @param workspaceRoot - Absolute workspace root directory.
54
+ * @param options - Optional discovery overrides.
55
+ * @returns Package-name to absolute package directory map.
56
+ */
57
+ declare function discoverWorkspacePackageIndex(workspaceRoot: string, options?: DiscoverWorkspacePackageOptions): Promise<ReadonlyMap<string, string>>;
58
+ //#endregion
59
+ export { DiscoverWorkspacePackageOptions, WorkspaceGlobResolution, discoverWorkspacePackageIndex, discoverWorkspacePackageJsonPaths, parseWorkspaceGlobs, readWorkspaceGlobs, resolveWorkspacePackageJsonGlobs };
@@ -0,0 +1 @@
1
+ import*as e from"node:fs/promises";import t from"node:path";import{glob as n}from"glob";function r(e){if(typeof e!=`object`||!e||Array.isArray(e))return[];let t=e.workspaces,n=Array.isArray(t)?t:c(t)?t.packages:void 0;return Array.isArray(n)?n.filter(e=>typeof e==`string`):[]}async function i(n){let i=t.join(n,`package.json`);return r(JSON.parse(await e.readFile(i,`utf-8`)))}function a(e){let t=[],n=[];for(let r of e)if(r.startsWith(`!`)){let e=r.slice(1);n.push(`${e}/**`)}else t.push(`${r}/package.json`);return{patterns:t,ignore:n}}async function o(e,t={}){let{patterns:r,ignore:o}=a(t.patterns??await i(e));return r.length===0?[]:(await n([...r],{cwd:e,absolute:!0,ignore:[...o,`**/node_modules/**`]})).sort()}async function s(e,n={}){let r=await o(e,n),i=new Map;for(let e of r){let n=(await l(e))?.name;typeof n==`string`&&n.length>0&&i.set(n,t.dirname(e))}return i}function c(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`packages`in e}async function l(t){try{let n=JSON.parse(await e.readFile(t,`utf-8`));if(typeof n==`object`&&n&&!Array.isArray(n))return n}catch{}}export{s as discoverWorkspacePackageIndex,o as discoverWorkspacePackageJsonPaths,r as parseWorkspaceGlobs,i as readWorkspaceGlobs,a as resolveWorkspacePackageJsonGlobs};
@@ -0,0 +1,24 @@
1
+ //#region packages/utils/src/workspace-root.d.ts
2
+ /**
3
+ * Resolve the workspace root from a package directory 2-4 levels below the root.
4
+ *
5
+ * Supports two source layouts:
6
+ * - **Prefixed source layout**: workspace root contains `framework/package.json`;
7
+ * the workspace root is the nearest ancestor (up to 4 levels) that contains
8
+ * `framework/package.json`.
9
+ * - **Package-root layout**: workspace root contains `package.json` directly;
10
+ * the workspace root is the nearest ancestor that contains `package.json`.
11
+ *
12
+ * Resolution walks bounded candidate depths from shallowest to deepest. A
13
+ * package root named `framework` is treated as nested source layout only when
14
+ * its parent also has a package manifest and contains that directory as a
15
+ * workspace marker; other package roots win immediately so checkouts embedded
16
+ * in another workspace do not overshoot.
17
+ * @param packageDir - Absolute path to a package directory inside the repo
18
+ * (e.g. the value of `path.dirname(fileURLToPath(import.meta.url))`).
19
+ * @returns Absolute path to the workspace root.
20
+ * @throws If neither supported source layout is detected at any candidate depth.
21
+ */
22
+ declare function resolveWorkspaceRoot(packageDir: string): string;
23
+ //#endregion
24
+ export { resolveWorkspaceRoot };
@@ -0,0 +1,2 @@
1
+ import e from"node:path";import{existsSync as t}from"node:fs";function n(n){if(!e.isAbsolute(n))throw Error(`[workspace-root] packageDir must be absolute. Received: "${n}"`);let r=[e.resolve(n,`../..`),e.resolve(n,`../../..`),e.resolve(n,`../../../..`)];for(let n of r)if(t(e.join(n,`package.json`))){let r=e.dirname(n);return e.basename(n)===`framework`&&t(e.join(r,`package.json`))&&t(e.join(r,`framework`,`package.json`))?r:n}throw Error(`[workspace-root] Could not resolve workspace root from "${n}". Checked:\n${r.map(e=>`- ${e}`).join(`
2
+ `)}`)}export{n as resolveWorkspaceRoot};
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{createBusNamespace as t}from"@makaio/framework/core";const n=e.enum([`base`,`cef`]),r=e.enum([`downloading`,`progress`,`applying`,`complete`,`error`]),i={getInfo:{request:e.object({}),response:e.object({variant:n,bundleCEF:e.boolean(),defaultRenderer:e.enum([`native`,`cef`])})},requestUpgrade:{request:e.object({targetVariant:n}),response:e.union([e.object({accepted:e.literal(!0),downloadSizeBytes:e.number().int().nonnegative().optional(),message:e.string().optional()}),e.object({accepted:e.literal(!1),message:e.string().min(1)})])},upgradeProgress:e.object({status:r,percent:e.number().min(0).max(100).optional(),message:e.string().optional()})},a=t(`host:variant`,i),o=a.subjects;export{r as a,i,o as n,n as r,a as t};