@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 @@
1
+ import{PageSubjects as e}from"./pages/namespace.mjs";import{z as t}from"zod";import{createBusNamespace as n}from"@makaio/framework/core";import{localSubject as r}from"@makaio/framework/bus";import{isRecord as i}from"@makaio/framework/utils";import{KernelSubjects as a}from"@makaio/framework/kernel";const o=new class{scopes=new Map([[`global`,{label:`Global`,description:`Available in global UI contexts`}],[`any`,{label:`Any`,description:`Available in every UI context`}]]);listeners=new Set;register(e,t){if(this.scopes.has(e)){console.warn(`Widget scope '${e}' already registered`);return}this.scopes.set(e,t),this.notify()}has(e){return this.scopes.has(e)}getAll(){return new Map(this.scopes)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}notify(){this.listeners.forEach(e=>e())}};function s(e,t,n=!0){let r=Array.isArray(e)?e:[e];return r.includes(t)||n&&r.includes(`any`)}const c=Object.freeze({level:`root`,values:Object.freeze({})});function l(e){return e}const u=new Set([`small`,`medium`,`large`,`full-width`]);function d(e){return typeof e==`number`&&Number.isFinite(e)}function f(e){return!i(e)||typeof e.instanceId!=`string`||typeof e.widgetId!=`string`||!d(e.col)||!d(e.row)||typeof e.size!=`string`||!u.has(e.size)||e.w!==void 0&&!d(e.w)||e.h!==void 0&&!d(e.h)||e.locked!==void 0&&typeof e.locked!=`boolean`?!1:e.config===void 0||i(e.config)}function p(e){return!i(e)||e.version!==1||!Array.isArray(e.placements)?!1:e.placements.every(e=>f(e))}var m=class{items=new Map;listeners=new Set;subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}notify(){let e,t=!1;if(this.listeners.forEach(n=>{try{n()}catch(n){t||=(e=n,!0)}}),t)throw e}has(e){return this.items.has(e)}size(){return this.items.size}},h=class extends m{cachedAll=null;register(e){return this.items.has(e.id)?!1:(this.items.set(e.id,l(e)),this.cachedAll=null,this.notify(),!0)}registerAll(e){e.forEach(e=>this.register(e))}get(e){return this.items.get(e)}getAll(){return this.cachedAll===null&&(this.cachedAll=Object.freeze(Array.from(this.items.values()))),this.cachedAll}getByScope(e,t=!0){return this.getAll().filter(n=>s(n.scope,e,t))}unregister(e){let t=this.items.delete(e);return t&&(this.cachedAll=null,this.notify()),t}clear(){this.items.size!==0&&(this.items.clear(),this.cachedAll=null,this.notify())}};const g=new h,_=t.string(),v=t.enum([`small`,`medium`,`large`,`full-width`]),ee=t.object({pageId:t.string().optional(),windowId:t.string().optional(),onActivate:t.unknown().refine(e=>typeof e==`function`,{message:`onActivate must be a function`}).optional()}),y=t.object({id:t.string(),name:t.string(),scope:t.union([_,t.array(_)]),description:t.string().optional(),supportedSizes:t.array(v),defaultSize:v,component:t.unknown().refine(e=>e!==void 0,{message:`component is required`}),defaultConfig:t.unknown().optional(),allowMultiple:t.boolean().optional(),activate:ee.optional()}),b=t.object({widgetId:t.string()}),x=t.object({widgetId:t.string(),instanceId:t.string()}),S=t.object({scope:_.optional()}),C=t.object({widgets:t.array(y)}),w={register:r(y),unregister:r(b),list:r({request:S,response:C}),activated:r(x)},te={register:y,unregister:b,list:{request:S,response:C},activated:x},T=n(`widget`,w),E=T.subjects,ne=480,re=500,ie=8,ae=2,oe=60,D=[8,8],se=464,O={small:1,medium:2,large:3,"full-width":4},ce=Object.freeze([]);function le(e,t=ce){let n=e.filter(e=>s(e.scope,`tray`,!1)),r=new Set(t),i=new Map(n.map(e=>[e.id,e])),a=1,o=[],c=new Set;for(let e of t){if(c.has(e))continue;c.add(e);let t=i.get(e);if(!t)continue;let n=t.trayDefaultSize??t.defaultSize,r=O[n];o.push({col:1,h:r,instanceId:`tray:locked:${e}`,locked:!0,row:a,size:n,w:2,widgetId:e}),a+=r}for(let e of n){if(r.has(e.id))continue;let t=e.trayDefaultSize??e.defaultSize,n=O[t];o.push({col:1,h:n,instanceId:`tray:item:${e.id}`,row:a,size:t,w:2,widgetId:e.id}),a+=n}return{placements:o,version:1}}function k(e,t){return g.register(t)?(e.emit(E.register,{id:t.id,name:t.name,scope:t.scope,description:t.description,supportedSizes:t.supportedSizes,defaultSize:t.defaultSize,component:t.component,defaultConfig:t.defaultConfig,allowMultiple:t.allowMultiple,activate:t.activate}).catch(e=>{console.error(`[widget-register] Failed to emit register for "${t.id}":`,e)}),!0):!1}function ue(e,t){return t.flatMap(t=>k(e,t)?[t.id]:[])}function A(e,t){return g.unregister(t)?(e.emit(E.unregister,{widgetId:t}).catch(e=>{console.error(`[widget-register] Failed to emit unregister for "${t}":`,e)}),!0):!1}const j=new WeakMap;function de(e){let t=j.get(e);if(t)return t.refCount+=1,()=>{--t.refCount,t.refCount===0&&(t.cleanup(),j.delete(e))};let n=[];n.push(e.on(E.register,e=>{let t=e.payload;g.has(t.id)||g.register(t)})),n.push(e.on(E.unregister,e=>{g.unregister(e.payload.widgetId)})),n.push(e.on(E.list,e=>{let{scope:t}=e.payload,n=t?g.getByScope(t):Array.from(g.getAll());e.setResult({widgets:n})}));let r=()=>n.forEach(e=>e()),i={cleanup:r,refCount:1};return j.set(e,i),()=>{--i.refCount,i.refCount===0&&(r(),j.delete(e))}}const M=new Map;function N(e){if(typeof e!=`string`)throw Error(`Extension name must be a non-empty string.`);let t=e.trim();if(t.length===0)throw Error(`Extension name must be a non-empty string.`);return t}function fe(e,t){let n=N(e);if(typeof t!=`function`)throw Error(`Browser factory must be a function.`);let r=M.get(n);if(r!==void 0&&r!==t)throw Error(`Browser factory already registered for extension "${n}".`);M.set(n,t)}function P(e){let t=N(e);M.delete(t)}function F(){M.clear()}function I(e){let t=N(e);return M.get(t)}function L(e,t){let n=R(e)?e:t;return n===void 0?{kind:`invalid`,reason:`expected function, got default export ${typeof e} and registry fallback ${t===void 0?`undefined`:typeof t}`}:{kind:`resolved`,factory:n}}function R(e){return typeof e==`function`}function z(e,t){for(let n of[...e].reverse())try{n()}catch(e){console.error(`${t} Cleanup failed:`,e)}}function B(e,t){return e===`any`||t===`any`?!0:e===t}function V(e,t){return e.surface?e.surface.surfaces?e.surface.surfaces.includes(t):!1:!0}function H(e,t={}){let{mode:n,level:r,group:i,surface:a,includeHidden:o=!1}=t;return e.filter(e=>{if(n&&e.mode!==n||r&&!B(e.level,r)||i&&e.group!==i||a&&!V(e,a))return!1;if(!o&&e.when)try{if(!e.when())return!1}catch(t){return console.warn(`[PageDefinitionRegistry] Page "when" callback threw, hiding page.`,{pageId:e.id,error:t}),!1}return!0})}function pe(e){if(e)return Object.freeze({...e,...e.surfaces?{surfaces:Object.freeze([...e.surfaces])}:{},...e.requiredCapabilities?{requiredCapabilities:Object.freeze([...e.requiredCapabilities])}:{}})}function me(e){if(!e.id||typeof e.id!=`string`)throw Error(`PageDefinition must have a non-empty string id`);if(!e.name||typeof e.name!=`string`)throw Error(`PageDefinition "${e.id}" must have a non-empty name`);if(e.mode!==`switch`&&e.mode!==`peek`&&e.mode!==`cover`&&e.mode!==`sheet`)throw Error(`PageDefinition "${e.id}" must have mode 'switch', 'peek', 'cover', or 'sheet'`);if(typeof e.level!=`string`||e.level.trim().length===0)throw Error(`PageDefinition "${e.id}" must have a non-empty level`);if(typeof e.component!=`function`)throw Error(`PageDefinition "${e.id}" must have a component loader function`);if(e.surface){let t=e.surface.surfaces,n=e.surface.requiredCapabilities;if(t!==void 0==(n!==void 0))throw Error(`PageDefinition "${e.id}" surface must specify exactly one of "surfaces" or "requiredCapabilities"`);if(t&&t.length===0)throw Error(`PageDefinition "${e.id}" surface.surfaces must be a non-empty array`);if(n&&n.length===0)throw Error(`PageDefinition "${e.id}" surface.requiredCapabilities must be a non-empty array`)}}var U=class extends m{cachedAll=null;register(e){if(this.items.has(e.id))throw Error(`PageDefinition "${e.id}" is already registered`);me(e);let t=Object.freeze({order:50,group:`navigate`,...e,surface:pe(e.surface)});return this.items.set(t.id,t),this.invalidateCache(),this.notify(),()=>{this.items.get(t.id)===t&&this.unregister(t.id)}}get(e){return this.items.get(e)}getAll(){return this.cachedAll||=Object.freeze(Array.from(this.items.values()).sort((e,t)=>(e.order??50)-(t.order??50))),this.cachedAll}query(e={}){return H(this.getAll(),e)}unregister(e){let t=this.items.delete(e);return t&&(this.invalidateCache(),this.notify()),t}clear(){this.items.clear(),this.invalidateCache(),this.notify()}invalidateCache(){this.cachedAll=null}};const W=new U;function he(e){o.has(e.scope)||console.warn(`[PageRegistry] Page "${e.id}" uses unregistered scope "${e.scope}". Consider registering it via widgetScopeRegistry.`);let t=new Set(e.slots.map(e=>e.id));for(let n of Object.keys(e.defaultContent))if(!t.has(n))throw Error(`Page "${e.id}" has defaultContent for slot "${n}" but slot is not declared in slots array`);if(t.size!==e.slots.length)throw Error(`Page "${e.id}" has duplicate slot IDs`);for(let t of e.slots){if(t.minColumnWidth<=0)throw Error(`Slot "${t.id}" in page "${e.id}" has invalid minColumnWidth (must be > 0)`);if(t.maxColumns<=0)throw Error(`Slot "${t.id}" in page "${e.id}" has invalid maxColumns (must be > 0)`);if(t.acceptsSizes.length===0)throw Error(`Slot "${t.id}" in page "${e.id}" has empty acceptsSizes array`)}for(let[t,n]of Object.entries(e.defaultContent))if(n)for(let r of n){if(!r.instanceId)throw Error(`Page "${e.id}" slot "${t}" has placement missing instanceId`);if(r.content.type===`widget`&&!r.content.widgetId)throw Error(`Page "${e.id}" slot "${t}" has widget placement with empty widgetId`);if(r.content.type===`view`&&!r.content.viewId)throw Error(`Page "${e.id}" slot "${t}" has view placement with empty viewId`)}}var G=class extends m{cachedAll=null;register(e){if(this.items.has(e.id))throw Error(`Page "${e.id}" is already registered`);if(e.route!==void 0){for(let t of this.items.values())if(t.route===e.route)throw Error(`Route "${e.route}" is already registered by page "${t.id}"`)}return he(e),this.items.set(e.id,e),this.invalidateCache(),this.notify(),()=>{this.items.get(e.id)===e&&this.unregister(e.id)}}get(e){return this.items.get(e)}getAll(){return this.cachedAll===null&&(this.cachedAll=Object.freeze(Array.from(this.items.values()))),this.cachedAll}getRoutablePages(){return this.getAll().filter(e=>e.route!==void 0)}getByScope(e,t=!0){return this.getAll().filter(n=>n.scope===e||t&&n.scope===`any`)}getByLevel(e,t=!0){return this.getAll().filter(n=>n.level===e||t&&(n.level===`any`||n.level===void 0))}unregister(e){let t=this.items.delete(e);return t&&(this.invalidateCache(),this.notify()),t}clear(){this.items.size!==0&&(this.items.clear(),this.invalidateCache(),this.notify())}invalidateCache(){this.cachedAll=null}};const K=new G;function ge(e,t,n){let r=[];try{if(n.pages)for(let e of n.pages)r.push(K.register(e));if(n.pageDefinitions)for(let e of n.pageDefinitions)r.push(W.register(e));return n.widgets&&n.widgets.forEach(n=>{k(e,n)?r.push(()=>A(e,n.id)):console.warn(`[registerExtensionUI] Widget "${n.id}" from extension "${t}" was already registered.`)}),()=>z(r,`[registerExtensionUI] ${t}`)}catch(e){throw z(r,`[registerExtensionUI] ${t}`),e}}const q=`#0d1117`,_e=`#e9eaed`,ve=`system-ui, sans-serif`;function ye(e,t=3e4){let n=!1,r,i,o=()=>{},s,c=new Promise((e,t)=>{r=e,i=e=>t(e)}),l=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},u=()=>{n||(n=!0,l(),o(),r(`ready`))},d=()=>{n||(n=!0,l(),o(),r(`cancelled`))},f=()=>{n||(n=!0,l(),o(),r(`timeout`))},p=e=>{n||(n=!0,l(),o(),i(e instanceof Error?e:Error(String(e))))};return t>0&&(s=setTimeout(f,t)),o=e.on(a.ready,()=>{u()}),(async()=>{try{let t=await e.requestOptional(a.isReady,{});if(n)return;t.handled&&t.data.ready&&u()}catch(e){p(Error(`[waitForRuntimeReady] Readiness probe failed`,{cause:e}))}})(),{cleanup:d,ready:c}}function be(e){return e===`peek`||e===`cover`||e===`sheet`}var J=class extends m{cachedByParent=null;register(e){let t=this.makeKey(e.parentPageId,e.id);return this.items.has(t)?()=>void 0:(this.items.set(t,e),this.invalidateCache(),this.notify(),()=>{this.items.get(t)===e&&this.unregister(e.parentPageId,e.id)})}get(e,t){let n=this.makeKey(e,t);return this.items.get(n)}getByParent(e){this.cachedByParent||=new Map;let t=this.cachedByParent.get(e);return t||(t=Array.from(this.items.values()).filter(t=>t.parentPageId===e).sort((e,t)=>(e.order??100)-(t.order??100)),this.cachedByParent.set(e,t)),t}getByParentAndCategory(e,t){return this.getByParent(e).filter(e=>e.category===t)}unregister(e,t){let n=this.makeKey(e,t),r=this.items.delete(n);return r&&(this.invalidateCache(),this.notify()),r}clear(){this.items.clear(),this.invalidateCache(),this.notify()}makeKey(e,t){return`${e}:${t}`}invalidateCache(){this.cachedByParent=null}};const xe=new J;function Se(t){return t.on(e.list,e=>{let{surface:t}=e.payload,n=W.query(t?{surface:t}:{});e.setResult({pages:n.map(e=>({id:e.id,name:e.name,description:e.description,mode:e.mode,level:e.level,surfaces:e.surface===void 0?`all`:e.surface.surfaces?[...e.surface.surfaces]:void 0}))})})}function Ce(e,t){return`page-layout:${e}:${t.contextId!==null&&t.contextId!==void 0?`${t.scope}:${t.contextId}`:t.scope}`}const we={layout:`page-layout`,slotState:`page-slot-state`,editMode:`page-edit-mode`},Te=new Set([`focus`,`page`,`command`,`callback`,`external`]);function Ee(e){if(!e.id||typeof e.id!=`string`)throw Error(`NavigationTarget must have a non-empty string id`);if(!e.label||typeof e.label!=`string`)throw Error(`NavigationTarget "${e.id}" must have a non-empty label`);if(!e.action||typeof e.action.type!=`string`||!Te.has(e.action.type))throw Error(`NavigationTarget "${e.id}" must have a valid action`);if(typeof e.level!=`string`||e.level.trim().length===0)throw Error(`NavigationTarget "${e.id}" must have a non-empty level`)}function De(e,t){return e.level===`any`||t===`any`?!0:e.level===t}var Y=class extends m{cachedAll=null;register(e){if(this.items.has(e.id))throw Error(`NavigationTarget "${e.id}" is already registered`);Ee(e);let t=Object.freeze({...e,order:e.order??50,group:e.group??`navigate`,action:Object.freeze({...e.action})});return this.items.set(t.id,t),this.invalidateCache(),this.notify(),()=>{this.items.get(t.id)===t&&this.unregister(t.id)}}get(e){return this.items.get(e)}getAll(){return this.cachedAll||=Object.freeze(Array.from(this.items.values()).sort((e,t)=>(e.order??50)-(t.order??50))),this.cachedAll}query(e={}){let{level:t,group:n,includeHidden:r=!1}=e;return this.getAll().filter(e=>{if(t&&!De(e,t)||n&&e.group!==n)return!1;if(!r&&e.when)try{if(!e.when())return!1}catch(t){return console.warn(`[NavigationRegistry] Target "when" callback threw, hiding target.`,{targetId:e.id,error:t}),!1}return!0})}getByLevel(e){return this.query({level:e})}getByGroup(e){return this.query({group:e})}unregister(e){let t=this.items.delete(e);return t&&(this.invalidateCache(),this.notify()),t}clear(){this.items.clear(),this.invalidateCache(),this.notify()}invalidateCache(){this.cachedAll=null}};const Oe=new Y,ke=Object.freeze([Object.freeze({id:`navigate`,label:`Navigate`,order:0}),Object.freeze({id:`analytics`,label:`Analytics`,order:5}),Object.freeze({id:`quick-access`,label:`Quick Access`,order:10})]),Ae=new Set([`project-overview`,`control-center`,`agent-manager`]);function je(e){let t=(e.split(`#`)[0].split(`?`)[0].replace(/\/+$/,``)||`/`).split(`/`).filter(Boolean);return t.length===0?`_blank`:t[0]===`apps`&&t[1]?`apps-${t[1]}`:t[0]===`project`&&t[1]?`project-${t[1]}`:t[0]===`chat`?t[1]?`chat-${t[1]}`:`_blank`:t.length===1&&Ae.has(t[0])?t[0]:`_blank`}const Me=t.enum([`electron`,`electrobun`,`web`,`mobile`,`tray`]),X={ready:t.object({surface:Me,timestamp:t.number()}),navigate:{request:t.object({url:t.string().regex(/^\/(?!\/)/,`url must be an internal app path starting with a single /`)}),response:t.object({action:t.enum([`opened`,`focused`,`navigated`])})},"popover.show":{request:t.object({x:t.number().optional(),y:t.number().optional()}),response:t.object({shown:t.boolean()})},"shortcut.triggered":t.object({accelerator:t.string()})},Z=n(`ui`,X),Ne=Z.subjects;function Pe(e){return!!(typeof e==`function`||typeof e==`object`&&e&&`$$typeof`in e)}function Fe(e){if(!e.id||typeof e.id!=`string`)throw Error(`OnboardingStepDefinition must have a non-empty string id`);if(!e.title||typeof e.title!=`string`)throw Error(`OnboardingStepDefinition "${e.id}" must have a non-empty title`);if(typeof e.order!=`number`||!isFinite(e.order))throw Error(`OnboardingStepDefinition "${e.id}" must have a finite numeric order`);if(!Pe(e.component))throw Error(`OnboardingStepDefinition "${e.id}" must have a component`)}var Q=class extends m{cachedAll=null;register(e){return Fe(e),this.items.has(e.id)&&this.items.delete(e.id),this.items.set(e.id,e),this.invalidateCache(),this.notify(),()=>{this.items.get(e.id)===e&&this.unregister(e.id)}}get(e){return this.items.get(e)}getAll(){return this.cachedAll||=Object.freeze(Array.from(this.items.values()).sort((e,t)=>e.order-t.order)),this.cachedAll}unregister(e){let t=this.items.delete(e);return t&&(this.invalidateCache(),this.notify()),t}clear(){this.items.clear(),this.invalidateCache(),this.notify()}invalidateCache(){this.cachedAll=null}};const Ie=new Q,$=[{label:`Essential`,members:new Set([`hash-trigger`,`tool-tracking`,`artifacts`,`coordinator`]),defaultEnabled:!0,alwaysEnabled:!0},{label:`Recommended`,members:new Set([`context-advisor`,`terminal`,`conversation-timeline`,`skill-injector`,`code-annotations`,`agent-notes`,`pin-message`,`file-history`,`lock`]),defaultEnabled:!0,alwaysEnabled:!1},{label:`Developer Workflow`,members:new Set([`github`,`pr-review`,`worktree`,`drift-detector`]),defaultEnabled:!0,alwaysEnabled:!1},{label:`Advanced`,members:new Set([`routine`,`loop`,`summarize`,`vision`,`instruction-guard`,`question-extractor`]),defaultEnabled:!1,alwaysEnabled:!1},{label:`Integrations`,members:new Set([`pushover`,`linear-tasks`,`opencode`]),defaultEnabled:!1,alwaysEnabled:!1},{label:`Debug`,members:new Set([]),defaultEnabled:!1,alwaysEnabled:!1}];function Le(e){return e.alwaysEnabled||e.defaultEnabled}const Re={label:`Other`,members:new Set,defaultEnabled:!1,alwaysEnabled:!1};function ze(e){return $.find(t=>t.members.has(e))??Re}export{c as DEFAULT_WIDGET_UI_CONTEXT,Y as NavigationRegistry,Q as OnboardingStepRegistry,we as PAGE_PREFERENCE_CATEGORIES,$ as PLUGIN_CATEGORIES,U as PageDefinitionRegistry,G as PageRegistry,J as PageSectionRegistry,m as RegistryBase,q as SHELL_BG_COLOR,ve as SHELL_FONT_FAMILY,_e as SHELL_TEXT_COLOR,ie as TRAY_CANVAS_HORIZONTAL_PADDING_PX,D as TRAY_CELL_MARGIN,ae as TRAY_GRID_COLS,se as TRAY_GRID_WIDTH_PX,oe as TRAY_ROW_HEIGHT_PX,re as TRAY_WINDOW_HEIGHT_PX,ne as TRAY_WINDOW_WIDTH_PX,Z as UiNamespace,X as UiSchemas,Ne as UiSubjects,T as WidgetNamespace,te as WidgetRawSchemas,h as WidgetRegistry,w as WidgetSchemas,E as WidgetSubjects,Ce as buildPageLayoutKey,F as clearExtensionBrowserFactories,ye as createRuntimeReadyWaiter,ke as defaultNavigationGroups,je as deriveBrowserTarget,Le as deriveDefaultEnabled,le as deriveTrayLayout,l as eraseWidgetConfig,ze as findCategory,I as getRegisteredExtensionBrowserFactory,be as isOverlayMode,p as isWidgetLayout,f as isWidgetPlacement,Oe as navigationRegistry,Ie as onboardingStepRegistry,W as pageDefinitionRegistry,K as pageRegistry,xe as pageSectionRegistry,H as queryPageDefinitions,fe as registerExtensionBrowserFactory,ge as registerExtensionUI,Se as registerPageBusHandler,k as registerWidget,ue as registerWidgets,L as resolveExtensionBrowserFactory,z as runCleanupsInReverse,de as subscribeToWidgetEvents,P as unregisterExtensionBrowserFactory,A as unregisterWidget,s as widgetMatchesScope,g as widgetRegistry,o as widgetScopeRegistry};
@@ -0,0 +1,88 @@
1
+ import * as _$zod from "zod";
2
+ import * as _$_makaio_core0 from "@makaio/framework/core";
3
+ import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
4
+ import * as _$zod_v4_core0 from "zod/v4/core";
5
+
6
+ //#region ui/kernel/src/pages/namespace.d.ts
7
+ /**
8
+ * Page namespace registration.
9
+ *
10
+ * Provides type-safe subjects for querying page metadata over the bus.
11
+ * Used by slash commands, navigation, and surface-aware page filtering.
12
+ */
13
+ declare const PageNamespace: _$_makaio_core0.BusNamespaceDefinition<"pages", {
14
+ readonly list: {
15
+ readonly request: _$zod.ZodObject<{
16
+ surface: _$zod.ZodOptional<_$zod.ZodEnum<{
17
+ web: "web";
18
+ mobile: "mobile";
19
+ electron: "electron";
20
+ electrobun: "electrobun";
21
+ tray: "tray";
22
+ }>>;
23
+ }, _$zod_v4_core0.$strip>;
24
+ readonly response: _$zod.ZodObject<{
25
+ pages: _$zod.ZodArray<_$zod.ZodObject<{
26
+ id: _$zod.ZodString;
27
+ name: _$zod.ZodString;
28
+ description: _$zod.ZodOptional<_$zod.ZodString>;
29
+ mode: _$zod.ZodEnum<{
30
+ switch: "switch";
31
+ peek: "peek";
32
+ cover: "cover";
33
+ sheet: "sheet";
34
+ }>;
35
+ level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
36
+ surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
37
+ web: "web";
38
+ mobile: "mobile";
39
+ electron: "electron";
40
+ electrobun: "electrobun";
41
+ tray: "tray";
42
+ }>>]>>;
43
+ }, _$zod_v4_core0.$strip>>;
44
+ }, _$zod_v4_core0.$strip>;
45
+ };
46
+ }>;
47
+ /**
48
+ * Page bus subjects for querying page metadata.
49
+ *
50
+ * Subjects available:
51
+ * - `PageSubjects.list` — Query available pages with optional surface filter (RPC)
52
+ */
53
+ declare const PageSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatSubjectDefinitions<"pages", {
54
+ readonly list: {
55
+ readonly request: _$zod.ZodObject<{
56
+ surface: _$zod.ZodOptional<_$zod.ZodEnum<{
57
+ web: "web";
58
+ mobile: "mobile";
59
+ electron: "electron";
60
+ electrobun: "electrobun";
61
+ tray: "tray";
62
+ }>>;
63
+ }, _$zod_v4_core0.$strip>;
64
+ readonly response: _$zod.ZodObject<{
65
+ pages: _$zod.ZodArray<_$zod.ZodObject<{
66
+ id: _$zod.ZodString;
67
+ name: _$zod.ZodString;
68
+ description: _$zod.ZodOptional<_$zod.ZodString>;
69
+ mode: _$zod.ZodEnum<{
70
+ switch: "switch";
71
+ peek: "peek";
72
+ cover: "cover";
73
+ sheet: "sheet";
74
+ }>;
75
+ level: _$zod.ZodCustom<_$_makaio_contracts0.UiNavigationLevel, _$_makaio_contracts0.UiNavigationLevel>;
76
+ surfaces: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodLiteral<"all">, _$zod.ZodArray<_$zod.ZodEnum<{
77
+ web: "web";
78
+ mobile: "mobile";
79
+ electron: "electron";
80
+ electrobun: "electrobun";
81
+ tray: "tray";
82
+ }>>]>>;
83
+ }, _$zod_v4_core0.$strip>>;
84
+ }, _$zod_v4_core0.$strip>;
85
+ };
86
+ }>, "pages">;
87
+ //#endregion
88
+ export { PageNamespace, PageSubjects };
@@ -0,0 +1 @@
1
+ import{PageSchemas as e}from"./schemas.mjs";import{createBusNamespace as t}from"@makaio/framework/core";const n=t(`pages`,e),r=n.subjects;export{n as PageNamespace,r as PageSubjects};
@@ -0,0 +1,2 @@
1
+ import { a as SurfaceCapabilitySchema, c as SurfaceIdSchema, i as SurfaceCapability, l as isPageVisibleOnSurface, n as PageSchemas, o as SurfaceDeclaration, r as PageSurfaceConfig, s as SurfaceId, t as PageMetadata } from "../../schemas-DVF1A4DF.mjs";
2
+ export { PageMetadata, PageSchemas, PageSurfaceConfig, SurfaceCapability, SurfaceCapabilitySchema, SurfaceDeclaration, SurfaceId, SurfaceIdSchema, isPageVisibleOnSurface };
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";const t=e.enum([`web`,`mobile`,`electron`,`electrobun`,`tray`]),n=e.enum([`dom`,`native`,`filesystem`,`multi-window`,`touch`]);function r(e,t){return e.surfaces?e.surfaces.includes(t.id):e.requiredCapabilities?e.requiredCapabilities.every(e=>t.capabilities.includes(e)):!0}const i=e.custom(e=>typeof e==`string`&&e.length>0,`UI navigation level must be a non-empty string`),a=e.object({id:e.string(),name:e.string(),description:e.string().optional(),mode:e.enum([`switch`,`peek`,`cover`,`sheet`]),level:i,surfaces:e.union([e.literal(`all`),e.array(t)]).optional()}),o={list:{request:e.object({surface:t.optional()}),response:e.object({pages:e.array(a)})}};export{o as PageSchemas,n as SurfaceCapabilitySchema,t as SurfaceIdSchema,r as isPageVisibleOnSurface};
@@ -0,0 +1,487 @@
1
+ import { Component, ErrorInfo, FC, JSX, ReactNode, RefObject } from "react";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ import { ShellProps, WidgetDefinition, WidgetLayout, WidgetSize } from "@makaio/framework/ui-kernel";
4
+ import { IMakaioBus } from "@makaio/framework/bus";
5
+ import { UiContextSnapshot } from "@makaio/framework/contracts";
6
+ import { Layout } from "react-grid-layout";
7
+
8
+ //#region ui/views/src/widgets/WidgetContainer.d.ts
9
+ interface WidgetContainerProps {
10
+ /**
11
+ * Widget instance ID
12
+ */
13
+ instanceId: string;
14
+ /**
15
+ * Widget title
16
+ */
17
+ title: string;
18
+ /**
19
+ * Current size
20
+ */
21
+ size: WidgetSize;
22
+ /**
23
+ * Widget content
24
+ */
25
+ children: ReactNode;
26
+ /**
27
+ * Called when remove button clicked
28
+ */
29
+ onRemove?: () => void;
30
+ }
31
+ /**
32
+ * WidgetContainer component
33
+ *
34
+ * Wraps widget content with chrome (title bar, remove button).
35
+ * Applies size-based styling.
36
+ * @param props - Component props
37
+ * @returns React component
38
+ */
39
+ declare function WidgetContainer({
40
+ instanceId,
41
+ title,
42
+ size,
43
+ children,
44
+ onRemove
45
+ }: WidgetContainerProps): _$react_jsx_runtime0.JSX.Element;
46
+ //#endregion
47
+ //#region ui/views/src/widgets/built-in/StatusWidget.d.ts
48
+ /**
49
+ * Framework-owned built-in widget definition that surfaces runtime and extension state.
50
+ *
51
+ * Register this definition by passing it as a `builtIn` to {@link useWidgets} so it
52
+ * is available in the dashboard palette and can be placed on any global-scope canvas.
53
+ */
54
+ declare const frameworkStatusWidgetDefinition: WidgetDefinition;
55
+ //#endregion
56
+ //#region ui/views/src/widget-canvas/WidgetGrid.d.ts
57
+ /**
58
+ * Configuration for the widget grid layout engine.
59
+ *
60
+ * A discriminated union on `responsive` ensures that the non-responsive branch
61
+ * always receives the mandatory `cols` and `width` values it requires, making
62
+ * silent misconfiguration a compile-time error.
63
+ * @example Responsive mode (default — omit `gridConfig` or pass this shape):
64
+ * ```tsx
65
+ * <WidgetCanvas gridConfig={{ responsive: true }} … />
66
+ * ```
67
+ * @example Fixed-column mode for constrained surfaces such as the tray popover:
68
+ * ```tsx
69
+ * <WidgetCanvas gridConfig={{ responsive: false, cols: 2, width: 480 }} … />
70
+ * ```
71
+ */
72
+ type WidgetGridConfig = {
73
+ /**
74
+ * Enables react-grid-layout's `Responsive` component with automatic
75
+ * breakpoint detection. This is the default mode.
76
+ */
77
+ responsive: true;
78
+ } | {
79
+ /**
80
+ * Disables breakpoint-responsive behaviour. A plain `GridLayout` is
81
+ * rendered with a fixed column count and an explicit pixel width.
82
+ * Use for constrained surfaces (e.g. tray popovers) where column
83
+ * changes on resize are undesirable.
84
+ */
85
+ responsive: false; /** Number of columns in the fixed grid. */
86
+ cols: number; /** Total grid width in pixels. Required to prevent silent misconfiguration. */
87
+ width: number; /** Row height in px. Falls back to the `WidgetGrid` `rowHeight` prop. */
88
+ rowHeight?: number; /** [horizontal, vertical] gap in px. Defaults to `[8, 8]`. */
89
+ margin?: [number, number];
90
+ };
91
+ interface WidgetGridProps {
92
+ /** Persisted widget layout. */
93
+ layout: WidgetLayout;
94
+ /** Widget definitions for rendering grid items. */
95
+ widgets: ReadonlyArray<WidgetDefinition>;
96
+ /** Whether the grid is in edit mode (draggable/removable). */
97
+ isEditing: boolean;
98
+ /**
99
+ * Called when the user changes the grid layout.
100
+ * @param layout - Updated widget layout.
101
+ */
102
+ onLayoutChange: (layout: WidgetLayout) => void;
103
+ /**
104
+ * Called when the user removes a widget from the grid.
105
+ * @param instanceId - Instance ID of the widget to remove.
106
+ */
107
+ onRemoveWidget: (instanceId: string) => void;
108
+ /** Height of a single grid row in pixels. */
109
+ rowHeight?: number;
110
+ /** Per-widget context values merged into each widget's config. */
111
+ widgetContext?: Record<string, Record<string, unknown>>;
112
+ /** Active host UI context for widgets rendered in this grid. */
113
+ uiContext?: UiContextSnapshot;
114
+ /** RGL dropping placeholder item. */
115
+ droppingItem?: {
116
+ i: string;
117
+ w: number;
118
+ h: number;
119
+ };
120
+ /**
121
+ * Called when a widget is dropped onto the grid from the palette.
122
+ * @param layout - Current RGL layout array.
123
+ * @param item - Drop target position.
124
+ * @param event - Native drag event carrying widget drag data.
125
+ */
126
+ onDrop?: (layout: Layout[], item: Layout, event: DragEvent) => void;
127
+ /** Optional layout engine configuration. When absent, defaults to responsive mode. */
128
+ gridConfig?: WidgetGridConfig;
129
+ }
130
+ /** Maps semantic widget sizes to their default grid dimensions. */
131
+ declare const SIZE_MAPPING: Record<WidgetSize, {
132
+ w: number;
133
+ h: number;
134
+ }>;
135
+ /**
136
+ * Derive a semantic widget size from actual grid dimensions.
137
+ *
138
+ * Height is the primary signal because vertical space determines whether
139
+ * a widget can show detailed content (extension list) or must show a
140
+ * compact summary. Width is handled naturally by CSS within each tier.
141
+ * @param h - Current grid height in rows.
142
+ * @returns Semantic size for the widget's responsive rendering prop.
143
+ */
144
+ declare function deriveWidgetSize(h: number): WidgetSize;
145
+ /**
146
+ * Responsive grid that renders widget placements using react-grid-layout.
147
+ * @param props - Grid configuration including layout, widgets, and edit-mode callbacks.
148
+ * @returns Responsive grid with drag/resize support in edit mode.
149
+ */
150
+ declare const WidgetGrid: FC<WidgetGridProps>;
151
+ //#endregion
152
+ //#region ui/views/src/widget-canvas/types.d.ts
153
+ /**
154
+ * Props for the {@link WidgetCanvas} component.
155
+ */
156
+ interface WidgetCanvasProps {
157
+ /** Height of a single grid row in pixels. */
158
+ rowHeight?: number;
159
+ /** Widget definitions available for placement on this canvas. */
160
+ widgets: ReadonlyArray<WidgetDefinition>;
161
+ /** Persisted layout loaded from preferences; `null` while loading. */
162
+ savedLayout?: WidgetLayout | null;
163
+ /** Whether the canvas is in a loading state. */
164
+ isLoading?: boolean;
165
+ /** Error from loading the layout, if any. */
166
+ error?: Error | null;
167
+ /**
168
+ * Persist the current layout.
169
+ * @param layout - Layout to persist.
170
+ */
171
+ onSaveLayout: (layout: WidgetLayout) => Promise<void>;
172
+ /**
173
+ * Called on every layout change (including unsaved in-progress edits).
174
+ * @param layout - Updated layout.
175
+ */
176
+ onLayoutChange?: (layout: WidgetLayout) => void;
177
+ /** Per-widget context values merged into each widget's config. */
178
+ widgetContext?: Record<string, Record<string, unknown>>;
179
+ /** Active host UI context for widgets rendered on this canvas. */
180
+ uiContext?: UiContextSnapshot;
181
+ /** Whether edit mode is externally controlled. */
182
+ isEditing?: boolean;
183
+ /** Toggle edit mode from the parent when `isEditing` is controlled. */
184
+ onToggleEdit?: () => void;
185
+ /**
186
+ * Optional fixed-grid configuration for non-responsive canvases (e.g. the
187
+ * tray surface). When `responsive: false` the canvas renders in a fixed
188
+ * pixel-width mode and delegates column layout to the host.
189
+ */
190
+ gridConfig?: WidgetGridConfig;
191
+ }
192
+ /**
193
+ * Internal editing state snapshot for the widget canvas.
194
+ */
195
+ interface WidgetCanvasState {
196
+ /** Whether the canvas is in edit mode. */
197
+ isEditing: boolean;
198
+ /** In-flight layout awaiting persistence, if any. */
199
+ pendingLayout: WidgetLayout | null;
200
+ /** Widget ID currently being dragged from the palette, if any. */
201
+ draggingWidget: string | null;
202
+ }
203
+ /**
204
+ * Props for the floating {@link WidgetPalette} panel.
205
+ */
206
+ interface WidgetPaletteProps {
207
+ /** Widget definitions shown in the palette. */
208
+ widgets: ReadonlyArray<WidgetDefinition>;
209
+ /** Current canvas layout (used to check which widgets are already placed). */
210
+ currentLayout: WidgetLayout;
211
+ /**
212
+ * Called when the user begins dragging a widget from the palette.
213
+ * @param widgetId - ID of the widget being dragged.
214
+ */
215
+ onDragStart: (widgetId: string) => void;
216
+ /** Called when a palette drag operation ends. */
217
+ onDragEnd: () => void;
218
+ /** Called when the user saves and exits edit mode via the palette close button. */
219
+ onClose: () => void;
220
+ /** Ref to the canvas container; used to clamp the floating palette position. */
221
+ containerRef?: RefObject<HTMLDivElement | null>;
222
+ }
223
+ //#endregion
224
+ //#region ui/views/src/widget-canvas/WidgetCanvas.d.ts
225
+ /**
226
+ * Editable widget dashboard that manages layout state and edit-mode lifecycle.
227
+ * @param props - Canvas configuration including widgets, saved layout, and save callback.
228
+ * @returns Widget canvas with grid, palette, and error/loading states.
229
+ */
230
+ declare const WidgetCanvas: FC<WidgetCanvasProps>;
231
+ //#endregion
232
+ //#region ui/views/src/widget-canvas/WidgetPalette.d.ts
233
+ /**
234
+ * Floating palette panel listing available widgets for drag-drop onto the canvas.
235
+ * @param props - Palette configuration including widget list and drag/close callbacks.
236
+ * @returns Draggable floating palette, or null until the container position is available.
237
+ */
238
+ declare const WidgetPalette: FC<WidgetPaletteProps>;
239
+ //#endregion
240
+ //#region ui/views/src/widget-canvas/WidgetErrorBoundary.d.ts
241
+ /**
242
+ * Props for {@link WidgetErrorBoundary}.
243
+ */
244
+ interface WidgetErrorBoundaryProps {
245
+ /** The widget subtree to protect. */
246
+ children: ReactNode;
247
+ /**
248
+ * The widget ID, used to identify which widget crashed in log output.
249
+ */
250
+ widgetId: string;
251
+ }
252
+ /**
253
+ * Internal state for {@link WidgetErrorBoundary}.
254
+ */
255
+ interface WidgetErrorBoundaryState {
256
+ /** Whether a render error has been caught. */
257
+ hasError: boolean;
258
+ }
259
+ /**
260
+ * A minimal React error boundary that catches render errors thrown by a
261
+ * single widget and displays an inline recovery UI.
262
+ *
263
+ * React error boundaries must be class components; this component exists
264
+ * solely at the framework layer and intentionally uses inline styles so it
265
+ * carries no dependency on CSS modules or host theme tokens.
266
+ * @example
267
+ * ```tsx
268
+ * <WidgetErrorBoundary widgetId={placement.widgetId}>
269
+ * <Widget ... />
270
+ * </WidgetErrorBoundary>
271
+ * ```
272
+ */
273
+ declare class WidgetErrorBoundary extends Component<WidgetErrorBoundaryProps, WidgetErrorBoundaryState> {
274
+ state: WidgetErrorBoundaryState;
275
+ /**
276
+ * Update state so the next render shows the fallback UI.
277
+ * @param _error - The error that was thrown.
278
+ * @returns The updated state slice.
279
+ */
280
+ static getDerivedStateFromError(_error: unknown): WidgetErrorBoundaryState;
281
+ /**
282
+ * Log the caught error to the console with contextual widget information.
283
+ * @param error - The error that was thrown during rendering.
284
+ * @param info - React-supplied component stack information.
285
+ */
286
+ componentDidCatch(error: unknown, info: ErrorInfo): void;
287
+ /**
288
+ * Reset the error state so the widget is allowed to re-render.
289
+ */
290
+ private readonly handleRetry;
291
+ render(): ReactNode;
292
+ }
293
+ //#endregion
294
+ //#region ui/views/src/widget-canvas/drag-payload.d.ts
295
+ interface WidgetDragPayload {
296
+ widgetId: string;
297
+ }
298
+ interface DataTransferLike {
299
+ getData(type: string): string;
300
+ setData(type: string, data: string): void;
301
+ }
302
+ declare const WIDGET_DRAG_DATA_TYPE = "application/vnd.makaio.widget+json";
303
+ declare const setWidgetDragData: (dataTransfer: DataTransferLike, payload: WidgetDragPayload) => void;
304
+ declare const getWidgetDragData: (dataTransfer: DataTransferLike | null | undefined) => WidgetDragPayload | null;
305
+ //#endregion
306
+ //#region ui/views/src/shell/FrameworkShell.d.ts
307
+ /**
308
+ * Minimal framework-owned shell shown when no host shell is available.
309
+ * @param props - Shell props supplied by the extension loader.
310
+ * @returns Framework dashboard chrome with status widgets.
311
+ */
312
+ declare function FrameworkShell(props: ShellProps): JSX.Element;
313
+ //#endregion
314
+ //#region ui/views/src/shell/BusStatusIndicator.d.ts
315
+ /**
316
+ * Colored dot with text indicating bus connection state.
317
+ *
318
+ * Polls `KernelSubjects.isReady` every 5 seconds; shows green when the
319
+ * round-trip succeeds and red on failure. StrictMode-safe via run-ID pattern.
320
+ * @returns Inline status indicator element.
321
+ */
322
+ declare function BusStatusIndicator(): JSX.Element;
323
+ //#endregion
324
+ //#region ui/views/src/shell/SheetOverlay.d.ts
325
+ /**
326
+ * Framework-owned sheet overlay renderer.
327
+ *
328
+ * Subscribes to {@link usePageOverlayStore} and renders a fullscreen overlay
329
+ * when a sheet/cover page is active. Renders nothing when no page is active.
330
+ *
331
+ * Mount this once as a sibling of the main shell content so it floats above
332
+ * the widget canvas without disrupting the layout flow.
333
+ * @returns Overlay element (always mounted; empty when no page is active).
334
+ */
335
+ declare function SheetOverlay(): JSX.Element;
336
+ //#endregion
337
+ //#region ui/views/src/shell/tray-view.d.ts
338
+ /**
339
+ * Tray surface root.
340
+ *
341
+ * Registers framework built-ins on mount, derives the tray layout from the
342
+ * widget registry, and renders a fixed 2-column `WidgetCanvas`.
343
+ * @returns Tray canvas populated with tray-scoped widgets.
344
+ */
345
+ declare function TrayView(): JSX.Element;
346
+ //#endregion
347
+ //#region ui/views/src/extensions/ExtensionBrowserLoader.d.ts
348
+ /**
349
+ * Discovers, loads, and activates all extension browser entry points.
350
+ *
351
+ * On mount it waits for `kernel.isReady` (or the `kernel.ready` event if
352
+ * not yet ready), then delegates browser discovery/import/registration to
353
+ * {@link loadExtensionBrowserContributions}. This component owns the React
354
+ * state machine and cleanup wiring around that shared loader. If no
355
+ * contribution provides a `shell`, the framework-owned fallback shell is
356
+ * rendered as the root workspace chrome.
357
+ *
358
+ * Uses the run-ID pattern instead of a `mounted` flag to remain safe under
359
+ * React StrictMode double-invocation (see lessons-learned.md).
360
+ * @returns Resolved extension shell or a framework fallback.
361
+ */
362
+ declare function ExtensionBrowserLoader(): JSX.Element;
363
+ //#endregion
364
+ //#region ui/views/src/extensions/EmptyStateUI.d.ts
365
+ /**
366
+ * Props for {@link EmptyStateUI}.
367
+ */
368
+ interface EmptyStateUIProps {
369
+ /** Optional heading override for error variants. */
370
+ title?: string;
371
+ /** Primary message shown below the heading. */
372
+ message?: string;
373
+ /** Optional supporting detail line. */
374
+ detail?: string;
375
+ }
376
+ /**
377
+ * Minimal shell-level status surface for loader error states.
378
+ *
379
+ * Displays a minimal branded splash with a short explanation. Uses inline
380
+ * styles deliberately — this is a shell-level fallback that must not depend
381
+ * on the theme system or any CSS module pipeline.
382
+ * @param props - Optional copy overrides for loader error states.
383
+ * @returns Fallback shell-level status UI.
384
+ */
385
+ declare function EmptyStateUI({
386
+ title,
387
+ message,
388
+ detail
389
+ }?: EmptyStateUIProps): JSX.Element;
390
+ //#endregion
391
+ //#region ui/views/src/page/PageErrorBoundary.d.ts
392
+ /**
393
+ * Props for {@link PageErrorBoundary}.
394
+ */
395
+ interface PageErrorBoundaryProps {
396
+ /** Page ID for error reporting. */
397
+ pageId: string;
398
+ /** Child components. */
399
+ children: ReactNode;
400
+ /** Optional fallback UI rendered instead of the default error card. */
401
+ fallback?: ReactNode;
402
+ }
403
+ /**
404
+ * Internal state for {@link PageErrorBoundary}.
405
+ */
406
+ interface PageErrorBoundaryState {
407
+ /** Whether a render error has been caught. */
408
+ hasError: boolean;
409
+ /** The caught error, if any. */
410
+ error: Error | null;
411
+ }
412
+ /**
413
+ * Error boundary for page rendering.
414
+ *
415
+ * Catches render errors thrown inside a page's component tree and shows a
416
+ * user-friendly fallback with a retry button. If a `fallback` prop is
417
+ * supplied it is rendered instead of the default error card.
418
+ */
419
+ declare class PageErrorBoundary extends Component<PageErrorBoundaryProps, PageErrorBoundaryState> {
420
+ constructor(props: PageErrorBoundaryProps);
421
+ /**
422
+ * Transition to error state so the next render shows the fallback UI.
423
+ * @param error - The error thrown during rendering.
424
+ * @returns Updated state slice.
425
+ */
426
+ static getDerivedStateFromError(error: Error): PageErrorBoundaryState;
427
+ /**
428
+ * Log the caught error with page context for debugging.
429
+ * @param error - The error that was thrown.
430
+ * @param errorInfo - React component stack information.
431
+ */
432
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
433
+ /**
434
+ * Reset the error state so the page is allowed to re-render.
435
+ */
436
+ private readonly handleRetry;
437
+ render(): ReactNode;
438
+ }
439
+ //#endregion
440
+ //#region ui/views/src/nav/Sidebar.d.ts
441
+ /**
442
+ * Sidebar navigation component.
443
+ *
444
+ * Reads page definitions from registry, groups by NavigationGroup,
445
+ * and delegates rendering to NavSidebar. Collapsed state is persisted
446
+ * per navigation level via useSidebarStore (localStorage).
447
+ * @returns Sidebar navigation UI, or null if no pages are available.
448
+ */
449
+ declare function Sidebar(): ReactNode;
450
+ //#endregion
451
+ //#region ui/views/src/toast/ToastProvider.d.ts
452
+ interface ToastProviderProps {
453
+ /**
454
+ * The bus instance to use for toast communication
455
+ */
456
+ bus: IMakaioBus;
457
+ /**
458
+ * Optional application content to render alongside the Toaster.
459
+ */
460
+ children?: ReactNode;
461
+ }
462
+ /**
463
+ * Toast notification provider.
464
+ *
465
+ * Renders the <Toaster /> component and listens for toast.show events on the bus.
466
+ * Emits toast.interacted and toast.dismissed events for action handling and cleanup.
467
+ * @param props - Component properties containing the bus instance
468
+ * @example
469
+ * ```tsx
470
+ * import { ToastProvider } from '@makaio/framework/ui-views';
471
+ * import { MakaioBus } from '@makaio/framework/bus';
472
+ *
473
+ * function App() {
474
+ * return (
475
+ * <ToastProvider bus={MakaioBus}>
476
+ * <YourAppContent />
477
+ * </ToastProvider>
478
+ * );
479
+ * }
480
+ * ```
481
+ */
482
+ declare function ToastProvider({
483
+ bus,
484
+ children
485
+ }: ToastProviderProps): React.ReactElement;
486
+ //#endregion
487
+ export { BusStatusIndicator, type DataTransferLike, EmptyStateUI, type EmptyStateUIProps, ExtensionBrowserLoader, FrameworkShell, PageErrorBoundary, SIZE_MAPPING, SheetOverlay, Sidebar, ToastProvider, type ToastProviderProps, TrayView, WIDGET_DRAG_DATA_TYPE, WidgetCanvas, type WidgetCanvasProps, type WidgetCanvasState, WidgetContainer, type WidgetContainerProps, type WidgetDragPayload, WidgetErrorBoundary, WidgetGrid, WidgetPalette, type WidgetPaletteProps, deriveWidgetSize, frameworkStatusWidgetDefinition, getWidgetDragData, setWidgetDragData };