@makaio/framework 1.0.0-dev-1781117225170 → 1.0.0-dev-1781354548379

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 (342) hide show
  1. package/README.md +29 -0
  2. package/dist/.makaio-build.json +2 -2
  3. package/dist/adapter-UpcpZDOv.mjs +1 -0
  4. package/dist/adapters/config/index.d.mts +1 -1
  5. package/dist/adapters/config/index.mjs +1 -1
  6. package/dist/adapters/index.d.mts +13 -5
  7. package/dist/adapters/index.mjs +2 -2
  8. package/dist/adapters/node.d.mts +1 -1
  9. package/dist/adapters/node.mjs +1 -1
  10. package/dist/bus/index.mjs +1 -1
  11. package/dist/client-BJVDImPV.d.mts +175 -0
  12. package/dist/clients/index.d.mts +101 -1
  13. package/dist/clients/index.mjs +2 -2
  14. package/dist/contracts/adapter/index.d.mts +2 -2
  15. package/dist/contracts/adapter/index.mjs +1 -1
  16. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  17. package/dist/contracts/artifact/index.d.mts +1 -1
  18. package/dist/contracts/client/index.d.mts +2 -2
  19. package/dist/contracts/common/index.d.mts +1 -1
  20. package/dist/contracts/config/index.d.mts +1 -1
  21. package/dist/contracts/extension/index.d.mts +4 -4
  22. package/dist/contracts/extension/index.mjs +1 -1
  23. package/dist/contracts/facet/index.d.mts +1 -1
  24. package/dist/contracts/harness/index.d.mts +1 -1
  25. package/dist/contracts/host/index.d.mts +1 -1
  26. package/dist/contracts/index.d.mts +786 -108
  27. package/dist/contracts/index.mjs +1 -1
  28. package/dist/contracts/materialization/index.d.mts +3 -3
  29. package/dist/contracts/model-registry/index.d.mts +1 -1
  30. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  31. package/dist/contracts/platform/index.d.mts +1 -1
  32. package/dist/contracts/provider/index.d.mts +2 -2
  33. package/dist/contracts/session/index.d.mts +3 -3
  34. package/dist/contracts/session/index.mjs +1 -1
  35. package/dist/contracts/shared/index.d.mts +1 -1
  36. package/dist/contracts/skill/index.d.mts +1 -1
  37. package/dist/contracts/telemetry/index.d.mts +1 -1
  38. package/dist/contracts/timeout/index.d.mts +1 -1
  39. package/dist/contracts/variant/index.d.mts +1 -1
  40. package/dist/{definition-Cp-5xJp_.d.mts → definition-DqJOg6Lv.d.mts} +1 -1
  41. package/dist/{detached-extension-handle-oXbjv1tA.mjs → detached-extension-handle-Diiwgm13.mjs} +1 -1
  42. package/dist/drizzle/0001_messages_content_tsv.na.md +18 -0
  43. package/dist/drizzle/0012_legal_kate_bishop.sql +3 -0
  44. package/dist/drizzle/0013_eager_rhodey.sql +56 -0
  45. package/dist/drizzle/0014_fancy_ultimo.sql +1 -0
  46. package/dist/drizzle/0015_m_mqbh8q5b.sql +1 -0
  47. package/dist/drizzle/0016_m_mqbmq8h7.sql +1 -0
  48. package/dist/drizzle/0017_m_mqbnf924.sql +1 -0
  49. package/dist/drizzle/meta/0012_snapshot.json +2934 -0
  50. package/dist/drizzle/meta/0013_snapshot.json +2954 -0
  51. package/dist/drizzle/meta/0014_snapshot.json +2959 -0
  52. package/dist/drizzle/meta/0015_snapshot.json +2966 -0
  53. package/dist/drizzle/meta/0016_snapshot.json +2973 -0
  54. package/dist/drizzle/meta/0017_snapshot.json +2980 -0
  55. package/dist/drizzle/meta/_journal.json +42 -0
  56. package/dist/drizzle-wjquQK2m.mjs +1 -0
  57. package/dist/extension-DfNcE0zm.mjs +1 -0
  58. package/dist/extension-ZBN4BGre.mjs +1 -0
  59. package/dist/{filesystem-service-CBJT7A5w.mjs → filesystem-service-BjfrUmGS.mjs} +1 -1
  60. package/dist/{globby-C0lgTOUl.mjs → globby-BIH65cbN.mjs} +1 -1
  61. package/dist/handler-DqpiV9eA.mjs +1 -0
  62. package/dist/handlers-BAB4fQNH.mjs +41 -0
  63. package/dist/{index-uQl_1wQO.d.mts → index-BAhJKQLX.d.mts} +8 -8
  64. package/dist/{index-i7o6FtS0.d.mts → index-BDRKAxIV.d.mts} +129 -2
  65. package/dist/{index-CXfWW8cP.d.mts → index-BHAOu6Hs.d.mts} +20 -20
  66. package/dist/{index-t9Vt4Jbb.d.mts → index-BHzgDuRE.d.mts} +20 -3
  67. package/dist/{index-SFkbbDxs.d.mts → index-BYkOUd0x.d.mts} +1 -1
  68. package/dist/{index-CmGvjpUG.d.mts → index-BheaEhyI.d.mts} +6 -6
  69. package/dist/{index-Dsu1tPHm.d.mts → index-Bibt5jAX.d.mts} +8 -8
  70. package/dist/{index-Bw8SkcWG.d.mts → index-Bw_zL7Rs.d.mts} +1 -1
  71. package/dist/{index-ClgVA8Rz.d.mts → index-C3zfJg6s.d.mts} +6 -6
  72. package/dist/{index-v2kRZnfw2.d.mts → index-CH5U3zSA2.d.mts} +20 -10
  73. package/dist/{index-hWzUQtDn.d.mts → index-CTn_Xi-p.d.mts} +92 -19
  74. package/dist/{index-BY-fz0Jy.d.mts → index-DPIdX6kb.d.mts} +358 -110
  75. package/dist/{index-kLBWooVu.d.mts → index-Da4ABgRq.d.mts} +12 -12
  76. package/dist/{index-C1uZLARQ.d.mts → index-DrGLAuZc.d.mts} +1409 -72
  77. package/dist/{index-CT-zFurA.d.mts → index-Drz_a7kW.d.mts} +1 -1
  78. package/dist/{index-BELri1Hy.d.mts → index-IekAD8Gp.d.mts} +8 -8
  79. package/dist/{index-C_jIVT40.d.mts → index-fVgKVvta.d.mts} +1 -1
  80. package/dist/{index-BFaeVdsn2.d.mts → index-zgm2j9V92.d.mts} +44 -2
  81. package/dist/kernel/cli/index.d.mts +2 -2
  82. package/dist/kernel/cli/register.d.mts +1 -1
  83. package/dist/kernel/extension/index.d.mts +1 -1
  84. package/dist/kernel/extension/index.mjs +1 -1
  85. package/dist/kernel/index.d.mts +5 -5
  86. package/dist/kernel/index.mjs +1 -1
  87. package/dist/kernel/namespace/index.d.mts +1 -1
  88. package/dist/kernel/observability/index.d.mts +1 -1
  89. package/dist/kernel/providers/index.d.mts +1 -1
  90. package/dist/kernel/window/index.d.mts +1 -1
  91. package/dist/{lib-zuQKc8ym.mjs → lib-Cq5R6Tx9.mjs} +1 -1
  92. package/dist/{lib-IkUYa2Qs.mjs → lib-nlcl5kRW.mjs} +1 -1
  93. package/dist/{load-extensions-DE8qDIqi.d.mts → load-extensions-D9nbDIiW.d.mts} +1 -1
  94. package/dist/{load-extensions-CwxilDj1.mjs → load-extensions-wELQ4BBN.mjs} +1 -1
  95. package/dist/mcp-http-server/index.d.mts +132 -19
  96. package/dist/mcp-http-server/index.mjs +2 -2
  97. package/dist/{namespace-Dik_dNeE.d.mts → namespace--s0d86h-.d.mts} +144 -0
  98. package/dist/{namespace-ffepZB8Y.d.mts → namespace-B73Sxj5L.d.mts} +6 -6
  99. package/dist/{namespace-CZPu_jvy.d.mts → namespace-Boe6l5n9.d.mts} +82 -46
  100. package/dist/{namespace-Da_dHfdm.d.mts → namespace-BxxBhcV_.d.mts} +2 -2
  101. package/dist/namespace-Dfq6MDN9.mjs +1 -0
  102. package/dist/{namespace-DvHoeMUV.d.mts → namespace-aJJfBJU5.d.mts} +173 -3
  103. package/dist/node/bus-server/index.d.mts +1 -1
  104. package/dist/node/bus-server/index.mjs +1 -1
  105. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  106. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  107. package/dist/{orchestrator-shared-FnWrPS09.mjs → orchestrator-shared-BKFXaKPL.mjs} +1 -1
  108. package/dist/{package-B2HkKyRz.d.mts → package--RZnpN2J.d.mts} +2 -3
  109. package/dist/package-BzJvtM5O.mjs +1 -0
  110. package/dist/package-DzN_jdqd.mjs +1 -0
  111. package/dist/package.json +1 -1
  112. package/dist/primitive-runtime-CNC_bSac.mjs +1 -0
  113. package/dist/registry-RG-bkw3c.mjs +146 -0
  114. package/dist/rules/index.d.mts +1 -1
  115. package/dist/rules/index.mjs +1 -1
  116. package/dist/rules/schemas.d.mts +1 -1
  117. package/dist/runtime-bun/index.mjs +1 -1
  118. package/dist/runtime-node/bus/runtime/namespace.d.mts +8 -8
  119. package/dist/runtime-node/bus/runtime/schemas.d.mts +11 -4
  120. package/dist/runtime-node/bus/runtime/schemas.mjs +1 -1
  121. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  122. package/dist/runtime-node/extension-validation.d.mts +1 -1
  123. package/dist/runtime-node/extension-validation.mjs +1 -1
  124. package/dist/runtime-node/index.d.mts +77 -38
  125. package/dist/runtime-node/index.mjs +26 -53
  126. package/dist/runtime-node/makaio-config.d.mts +1 -1
  127. package/dist/runtime-node/makaio-config.mjs +1 -1
  128. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  129. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  130. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  131. package/dist/schema-C3TgjrsV.mjs +1 -0
  132. package/dist/schema-CzhOc7TV.mjs +1 -0
  133. package/dist/{schema-CfuF2cXW.d.mts → schema-DGMLvVoQ.d.mts} +237 -11
  134. package/dist/schemas-CuKayWhA.mjs +1 -0
  135. package/dist/{schemas-SPI-Y87l2.d.mts → schemas-kVcJMjjn2.d.mts} +6 -6
  136. package/dist/{schemas-BiMxSTUx.d.mts → schemas-t1VR6_b_.d.mts} +3 -3
  137. package/dist/services/adapter-runtime/index.d.mts +3 -3
  138. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  139. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  140. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  141. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  142. package/dist/services/agent-runtime/index.d.mts +2 -2
  143. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  144. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  145. package/dist/services/capability/index.d.mts +1 -1
  146. package/dist/services/codebase/index.d.mts +2 -2
  147. package/dist/services/codebase/namespace.d.mts +1 -1
  148. package/dist/services/codebase/schemas.d.mts +1 -1
  149. package/dist/services/compression/index.d.mts +2 -2
  150. package/dist/services/compression/namespace.d.mts +1 -1
  151. package/dist/services/compression/schemas.d.mts +1 -1
  152. package/dist/services/context-rules/index.d.mts +4 -4
  153. package/dist/services/execution-target/index.d.mts +3 -3
  154. package/dist/services/execution-target/namespace.d.mts +1 -1
  155. package/dist/services/execution-target/schemas.d.mts +1 -1
  156. package/dist/services/filesystem/index.d.mts +1 -1
  157. package/dist/services/filesystem/index.mjs +1 -1
  158. package/dist/services/filesystem/namespace.d.mts +6 -6
  159. package/dist/services/filesystem/schemas.d.mts +3 -3
  160. package/dist/services/harness/index.d.mts +31 -20
  161. package/dist/services/harness/index.mjs +1 -1
  162. package/dist/services/harness/storage/schema.d.mts +60 -16
  163. package/dist/services/harness/storage/schema.mjs +1 -1
  164. package/dist/services/index.d.mts +166 -69
  165. package/dist/services/index.mjs +1 -1
  166. package/dist/services/log-import/browser.d.mts +2 -2
  167. package/dist/services/log-import/index.d.mts +9 -15
  168. package/dist/services/log-import/index.mjs +2 -2
  169. package/dist/services/log-import/log-import.d.mts +1 -1
  170. package/dist/services/model-registry/index.d.mts +1 -1
  171. package/dist/services/preferences/index.d.mts +2 -2
  172. package/dist/services/preferences/schemas.d.mts +1 -1
  173. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  174. package/dist/services/provider-context/index.d.mts +1 -1
  175. package/dist/services/provider-context/index.mjs +1 -1
  176. package/dist/services/session/handlers/index.d.mts +1 -1
  177. package/dist/services/session/handlers/index.mjs +1 -1
  178. package/dist/services/session/index.d.mts +10 -10
  179. package/dist/services/session/index.mjs +1 -1
  180. package/dist/services/session/messages/namespace.d.mts +1 -1
  181. package/dist/services/session/messages/namespace.mjs +1 -1
  182. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  183. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  184. package/dist/services/session/session-events/namespace.d.mts +1 -1
  185. package/dist/services/session/session-events/namespace.mjs +1 -1
  186. package/dist/services/session/storage/namespace.d.mts +1 -1
  187. package/dist/services/session/storage/schema.d.mts +2 -2
  188. package/dist/services/session/storage/schema.mjs +1 -1
  189. package/dist/services/session/testing/index.d.mts +18 -2
  190. package/dist/services/session/testing/index.mjs +54 -3
  191. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  192. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  193. package/dist/services/session/turns/namespace.d.mts +1 -1
  194. package/dist/services/session/turns/namespace.mjs +1 -1
  195. package/dist/services/session-editor/index.d.mts +1 -1
  196. package/dist/services/settings/index.d.mts +3 -3
  197. package/dist/services/settings/index.mjs +1 -1
  198. package/dist/services/settings/namespace.d.mts +6 -6
  199. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  200. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  201. package/dist/services/settings/storage/index.d.mts +3 -3
  202. package/dist/services/settings/storage/index.mjs +1 -1
  203. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  204. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  205. package/dist/services/subagent/index.d.mts +1 -1
  206. package/dist/services/subagent/index.mjs +1 -1
  207. package/dist/services/subagent-template/index.d.mts +2 -2
  208. package/dist/services/subagent-template/namespace.d.mts +1 -1
  209. package/dist/services/subagent-template/schemas.d.mts +1 -1
  210. package/dist/services/tool-approval/index.d.mts +1 -1
  211. package/dist/services/tool-approval/index.mjs +1 -1
  212. package/dist/services/tools/index.d.mts +1 -1
  213. package/dist/services/tools/index.mjs +1 -1
  214. package/dist/services/tray-menu/index.d.mts +3 -3
  215. package/dist/services/tray-menu/namespace.d.mts +1 -1
  216. package/dist/services/tray-menu/schemas.d.mts +1 -1
  217. package/dist/services/turn/index.d.mts +1 -1
  218. package/dist/services/turn/namespace.d.mts +1 -1
  219. package/dist/services/turn/schemas.d.mts +72 -0
  220. package/dist/services/turn/schemas.mjs +1 -1
  221. package/dist/{session-C1Cami7U.mjs → session-BwX5_k47.mjs} +1 -1
  222. package/dist/session-P4nX60Xx.mjs +39 -0
  223. package/dist/{src-DI5TcYUW.mjs → src-CBG3IHUl.mjs} +1 -1
  224. package/dist/storage/drizzle/client.d.mts +2 -78
  225. package/dist/storage/drizzle/client.mjs +1 -1
  226. package/dist/storage/drizzle/columns/postgres.d.mts +88 -0
  227. package/dist/storage/drizzle/columns/postgres.mjs +1 -0
  228. package/dist/storage/drizzle/columns/sqlite.d.mts +81 -0
  229. package/dist/storage/drizzle/columns/sqlite.mjs +1 -0
  230. package/dist/storage/drizzle/index.d.mts +976 -23
  231. package/dist/storage/drizzle/index.mjs +1 -1
  232. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  233. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  234. package/dist/storage/handlers/index.d.mts +1 -1
  235. package/dist/storage/handlers/index.mjs +1 -1
  236. package/dist/testing/drizzle-harness.d.mts +52 -6
  237. package/dist/testing/drizzle-harness.mjs +1 -1
  238. package/dist/testing/index.d.mts +34 -2
  239. package/dist/testing/index.mjs +1 -1
  240. package/dist/{tool-approval-service-BgNcJvKx.mjs → tool-approval-service-DNHV5x0M.mjs} +1 -1
  241. package/dist/tools-CQImrHAp.mjs +1 -0
  242. package/dist/{types-CZHV05Lu.d.mts → types-BpuLMR2m.d.mts} +616 -433
  243. package/dist/{types-C5Uy3WEy.d.mts → types-D0fPFh-D.d.mts} +1 -1
  244. package/dist/{types-0u6hpELc.d.mts → types-D6jnDjP2.d.mts} +18 -5
  245. package/dist/ui-components/index.d.mts +36 -37
  246. package/dist/ui-kernel/index.d.mts +1 -1
  247. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  248. package/dist/ui-views/index.d.mts +2 -2
  249. package/dist/workflow-engine/index.d.mts +539 -110
  250. package/dist/workflow-engine/index.mjs +1 -1
  251. package/dist/workflow-engine/package.d.mts +1 -1
  252. package/dist/workflow-engine/package.mjs +1 -1
  253. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  254. package/dist/{workflow-worker-hDaQzTBl.mjs → workflow-worker-CK9Sqj7D.mjs} +1 -1
  255. package/package.json +49 -1
  256. package/dist/adapter-Dt2FDMs4.mjs +0 -1
  257. package/dist/drizzle-DpjZFY_j.mjs +0 -1
  258. package/dist/extension--5Q190u_.mjs +0 -1
  259. package/dist/extension-DFIZ3FCJ.mjs +0 -1
  260. package/dist/handlers-Bev7-xjL.mjs +0 -41
  261. package/dist/namespace-CDiM5Bcr.mjs +0 -1
  262. package/dist/namespace-h0HIuqx0.mjs +0 -1
  263. package/dist/package-C9wOiMK9.mjs +0 -1
  264. package/dist/package-OE9dMQsq.mjs +0 -1
  265. package/dist/primitive-runtime-1Z3JbRUj.mjs +0 -1
  266. package/dist/schema-DCJyzRHe.mjs +0 -1
  267. package/dist/schema-DOnJmAPw.mjs +0 -1
  268. package/dist/schemas-CSUwpaNm.mjs +0 -1
  269. package/dist/session-BnfsJoZi.mjs +0 -134
  270. package/dist/tools-B8d8Iqqx.mjs +0 -1
  271. package/dist/types-yTKQTAok.d.mts +0 -31
  272. /package/dist/{ajv-0JG5NFEd.mjs → ajv-BA2z5ztb.mjs} +0 -0
  273. /package/dist/{await-trigger-CHuOd5co.mjs → await-trigger-DREnXCEJ.mjs} +0 -0
  274. /package/dist/{base-orchestrator-D-S9v5VY.d.mts → base-orchestrator-M5mAB5-w.d.mts} +0 -0
  275. /package/dist/{cleanEnvForAdapter-BlpmyXYk.mjs → cleanEnvForAdapter-vZfPGi0X.mjs} +0 -0
  276. /package/dist/{clients-namespace-E97p_GKF.d.mts → clients-namespace-SFk7OTop.d.mts} +0 -0
  277. /package/dist/{config-namespace-R_34Wfps.d.mts → config-namespace-BzAvE2nY.d.mts} +0 -0
  278. /package/dist/{create-static-mount-B9Szo_7y.mjs → create-static-mount-BB1MIQ9J.mjs} +0 -0
  279. /package/dist/{cross-spawn-CTptpCy4.mjs → cross-spawn-BL6EvJBv.mjs} +0 -0
  280. /package/dist/{cursor-storage-YikwAZR5.mjs → cursor-storage-CmKjSvKY.mjs} +0 -0
  281. /package/dist/{definition-CYzWS2eR.d.mts → definition-BSghHJpQ.d.mts} +0 -0
  282. /package/dist/{definition-CvOuzWNT.d.mts → definition-q6iLw11H.d.mts} +0 -0
  283. /package/dist/{descriptor-to-package-9nrAH_D5.mjs → descriptor-to-package-CY8oc2gl.mjs} +0 -0
  284. /package/dist/{esm-CglYG5aA.mjs → esm-CQVFKEW5.mjs} +0 -0
  285. /package/dist/{extension-discovery-BD1-oNU_.d.mts → extension-discovery-CkV_VRdJ.d.mts} +0 -0
  286. /package/dist/{filesystem-service-BcwRp4k1.d.mts → filesystem-service-Ddngll0j.d.mts} +0 -0
  287. /package/dist/{index-DJQew2k-.d.mts → index-9IDJUJ4X.d.mts} +0 -0
  288. /package/dist/{index-CNYPKkyH.d.mts → index-BBvcP-P0.d.mts} +0 -0
  289. /package/dist/{index-DfUBcVtG.d.mts → index-BCKRUuI2.d.mts} +0 -0
  290. /package/dist/{index-Dn9Uum3F.d.mts → index-BMpRB6iE.d.mts} +0 -0
  291. /package/dist/{index-CdNDnxXR.d.mts → index-BbCjtc3h.d.mts} +0 -0
  292. /package/dist/{index-B6RGNugn.d.mts → index-BnQSPC6c.d.mts} +0 -0
  293. /package/dist/{index-DUPZKsd3.d.mts → index-BpXX9WZJ.d.mts} +0 -0
  294. /package/dist/{index-DUhXk_q6.d.mts → index-BpniJgxu.d.mts} +0 -0
  295. /package/dist/{index-ChG8ZUNP.d.mts → index-Bsp0O_sI.d.mts} +0 -0
  296. /package/dist/{index-CF7dnqQj.d.mts → index-Buo9H8RK.d.mts} +0 -0
  297. /package/dist/{index-9KnLzPYu.d.mts → index-BxFA1XcP.d.mts} +0 -0
  298. /package/dist/{index-AZ4iLe7O2.d.mts → index-C33Tq1ei2.d.mts} +0 -0
  299. /package/dist/{index--0CnhN0g.d.mts → index-C6BhKRnH.d.mts} +0 -0
  300. /package/dist/{index-BV8rSmDZ.d.mts → index-CDU_s69P.d.mts} +0 -0
  301. /package/dist/{index-BDlpFEsp2.d.mts → index-CGJjA-hR2.d.mts} +0 -0
  302. /package/dist/{index-DNGUXQGC.d.mts → index-Cz9JMjZK.d.mts} +0 -0
  303. /package/dist/{index-C-YBGCCG.d.mts → index-D0SUjZmU.d.mts} +0 -0
  304. /package/dist/{index-yNb7G73-.d.mts → index-D6Iyvz9T.d.mts} +0 -0
  305. /package/dist/{index-ziQTLYUO.d.mts → index-DOfq0qqv.d.mts} +0 -0
  306. /package/dist/{index-BYxgW2i0.d.mts → index-DSV1aFgK.d.mts} +0 -0
  307. /package/dist/{index-Dbwm5Y-Q.d.mts → index-Dsq2zKvu.d.mts} +0 -0
  308. /package/dist/{jsonl-transport-DBHQgcIm.mjs → jsonl-transport-C21tpVfe.mjs} +0 -0
  309. /package/dist/{lib-CaOdTS9F.mjs → lib-CNOQJtgs.mjs} +0 -0
  310. /package/dist/{namespace-DnZ4rS6T2.d.mts → namespace-B60mn8J-2.d.mts} +0 -0
  311. /package/dist/{namespace-DfYutvMT.d.mts → namespace-BBVtD1gu.d.mts} +0 -0
  312. /package/dist/{namespace-BaJJxBsI.d.mts → namespace-CHMszppN.d.mts} +0 -0
  313. /package/dist/{namespace-uGw5nK6d.d.mts → namespace-CqUGzG53.d.mts} +0 -0
  314. /package/dist/{namespace-13uMtVGj.d.mts → namespace-DRFJN-_z.d.mts} +0 -0
  315. /package/dist/{namespace-TfZGCy7N.d.mts → namespace-DzVf1hVH.d.mts} +0 -0
  316. /package/dist/{namespace-QTFnJWHC.d.mts → namespace-XTGCaSXj.d.mts} +0 -0
  317. /package/dist/{namespace-CTrNKkxY.d.mts → namespace-nlsvvMtD.d.mts} +0 -0
  318. /package/dist/{namespace-DkDvQJhB.d.mts → namespace-uuR0Fg5r.d.mts} +0 -0
  319. /package/dist/{orchestrator-shared-BZVeoRfr.d.mts → orchestrator-shared-D91Wk7z-.d.mts} +0 -0
  320. /package/dist/{out-CiFds_ap.mjs → out-C1JFb2Bp.mjs} +0 -0
  321. /package/dist/{provider-context-lfG0BpqX.mjs → provider-context-wp4VSJFI.mjs} +0 -0
  322. /package/dist/{providers-namespace-Cc9FQ-Zt.d.mts → providers-namespace-BqWYkydw.d.mts} +0 -0
  323. /package/dist/{schemas-BD-1NGmS.d.mts → schemas-B5ToLwIs.d.mts} +0 -0
  324. /package/dist/{schemas-Hy-lsBpg.d.mts → schemas-B77Gi8Xr.d.mts} +0 -0
  325. /package/dist/{schemas-BzK1I1eX.d.mts → schemas-C792eVAZ.d.mts} +0 -0
  326. /package/dist/{schemas-CYS6bkht.d.mts → schemas-Chyj6HuZ.d.mts} +0 -0
  327. /package/dist/{schemas-DL_bGYyZ.d.mts → schemas-DZUaRcYl.d.mts} +0 -0
  328. /package/dist/{schemas-DdZwjeF0.d.mts → schemas-Dv5FxHDT.d.mts} +0 -0
  329. /package/dist/{schemas-CsjB6gel.d.mts → schemas-Dyk7JuVl.d.mts} +0 -0
  330. /package/dist/{schemas-DFWGb4uj.d.mts → schemas-Kq33MTPY.d.mts} +0 -0
  331. /package/dist/{schemas-BFeP62V4.d.mts → schemas-lqvZ6UpK.d.mts} +0 -0
  332. /package/dist/{server-lifecycle-DVAbXQzg.d.mts → server-lifecycle-47mygK3E.d.mts} +0 -0
  333. /package/dist/{server-lifecycle-JTFuSJhg.mjs → server-lifecycle-Cg47L59Q.mjs} +0 -0
  334. /package/dist/{session-lineage-CxHc3_bm.d.mts → session-lineage-CKg6mErA.d.mts} +0 -0
  335. /package/dist/{shared-schemas-CKe2uN4-.mjs → shared-schemas-DYL7a-No.mjs} +0 -0
  336. /package/dist/{src-4_2jBceX.mjs → src-DedDL9iv.mjs} +0 -0
  337. /package/dist/{storage-namespace-I30TaZP7.d.mts → storage-namespace-BXmMUd7a.d.mts} +0 -0
  338. /package/dist/{storage-namespace-definition-ZNBL3v2h.d.mts → storage-namespace-definition-C3XbpiP8.d.mts} +0 -0
  339. /package/dist/{types-11QnNmpW.d.mts → types-5Gw3iVpK.d.mts} +0 -0
  340. /package/dist/{types-BKNpS4Xw.d.mts → types-B0BtvVAq.d.mts} +0 -0
  341. /package/dist/{types-BtMNh2FS.d.mts → types-D-bP8RRE.d.mts} +0 -0
  342. /package/dist/{window-registry-QD1rTk_f.d.mts → window-registry-CfEi_Ji4.d.mts} +0 -0
@@ -49,7 +49,7 @@ declare const SessionStorageNamespace$1: {
49
49
  length: number | undefined;
50
50
  }>;
51
51
  createdAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
52
- name: "created_at";
52
+ name: string;
53
53
  tableName: "sessions";
54
54
  dataType: "number";
55
55
  columnType: "SQLiteInteger";
@@ -66,7 +66,7 @@ declare const SessionStorageNamespace$1: {
66
66
  generated: undefined;
67
67
  }, {}, {}>;
68
68
  lastActivityAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
69
- name: "last_activity_at";
69
+ name: string;
70
70
  tableName: "sessions";
71
71
  dataType: "number";
72
72
  columnType: "SQLiteInteger";
@@ -87,7 +87,7 @@ declare const SessionStorageNamespace$1: {
87
87
  tableName: "sessions";
88
88
  dataType: "string";
89
89
  columnType: "SQLiteText";
90
- data: "discovered" | "closed" | "active" | "archived";
90
+ data: "closed" | "discovered" | "active" | "archived";
91
91
  driverParam: string;
92
92
  notNull: true;
93
93
  hasDefault: false;
@@ -330,7 +330,7 @@ declare const SessionStorageNamespace$1: {
330
330
  length: number | undefined;
331
331
  }>;
332
332
  isOrchestrated: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
333
- name: "is_orchestrated";
333
+ name: string;
334
334
  tableName: "sessions";
335
335
  dataType: "boolean";
336
336
  columnType: "SQLiteBoolean";
@@ -385,7 +385,7 @@ declare const SessionStorageNamespace$1: {
385
385
  length: number | undefined;
386
386
  }>;
387
387
  summaryUpdatedAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
388
- name: "summary_updated_at";
388
+ name: string;
389
389
  tableName: "sessions";
390
390
  dataType: "number";
391
391
  columnType: "SQLiteInteger";
@@ -402,7 +402,7 @@ declare const SessionStorageNamespace$1: {
402
402
  generated: undefined;
403
403
  }, {}, {}>;
404
404
  isImported: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
405
- name: "is_imported";
405
+ name: string;
406
406
  tableName: "sessions";
407
407
  dataType: "boolean";
408
408
  columnType: "SQLiteBoolean";
@@ -571,7 +571,7 @@ declare const SessionStorageNamespace$1: {
571
571
  length: number | undefined;
572
572
  }>;
573
573
  discoveredAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
574
- name: "discovered_at";
574
+ name: string;
575
575
  tableName: "sessions";
576
576
  dataType: "number";
577
577
  columnType: "SQLiteInteger";
@@ -746,6 +746,25 @@ declare const SessionStorageNamespace$1: {
746
746
  }, {}, {
747
747
  length: number | undefined;
748
748
  }>;
749
+ allowedDirectories: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
750
+ name: string;
751
+ tableName: "agents";
752
+ dataType: "json";
753
+ columnType: "SQLiteTextJson";
754
+ data: string[];
755
+ driverParam: string;
756
+ notNull: false;
757
+ hasDefault: false;
758
+ isPrimaryKey: false;
759
+ isAutoincrement: false;
760
+ hasRuntimeDefault: false;
761
+ enumValues: undefined;
762
+ baseColumn: never;
763
+ identity: undefined;
764
+ generated: undefined;
765
+ }, {}, {
766
+ $type: string[];
767
+ }>;
749
768
  providerConfigId: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
750
769
  name: "provider_config_id";
751
770
  tableName: "agents";
@@ -884,7 +903,7 @@ declare const SessionStorageNamespace$1: {
884
903
  tableName: "agents";
885
904
  dataType: "string";
886
905
  columnType: "SQLiteText";
887
- data: "active" | "idle" | "dead" | "disposed";
906
+ data: "idle" | "active" | "dead" | "disposed";
888
907
  driverParam: string;
889
908
  notNull: true;
890
909
  hasDefault: false;
@@ -899,7 +918,7 @@ declare const SessionStorageNamespace$1: {
899
918
  length: number | undefined;
900
919
  }>;
901
920
  createdAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
902
- name: "created_at";
921
+ name: string;
903
922
  tableName: "agents";
904
923
  dataType: "number";
905
924
  columnType: "SQLiteInteger";
@@ -916,7 +935,7 @@ declare const SessionStorageNamespace$1: {
916
935
  generated: undefined;
917
936
  }, {}, {}>;
918
937
  lastActivityAt: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
919
- name: "last_activity_at";
938
+ name: string;
920
939
  tableName: "agents";
921
940
  dataType: "number";
922
941
  columnType: "SQLiteInteger";
@@ -957,6 +976,7 @@ declare const SessionStorageNamespace$1: {
957
976
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
958
977
  model: _$zod.ZodOptional<_$zod.ZodString>;
959
978
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
979
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
960
980
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
961
981
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
962
982
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -972,8 +992,8 @@ declare const SessionStorageNamespace$1: {
972
992
  member: "member";
973
993
  }>;
974
994
  status: _$zod.ZodEnum<{
975
- active: "active";
976
995
  idle: "idle";
996
+ active: "active";
977
997
  dead: "dead";
978
998
  disposed: "disposed";
979
999
  }>;
@@ -981,8 +1001,8 @@ declare const SessionStorageNamespace$1: {
981
1001
  lastActivityAt: _$zod.ZodNumber;
982
1002
  }, _$zod_v4_core0.$strip>>;
983
1003
  status: _$zod.ZodEnum<{
984
- discovered: "discovered";
985
1004
  closed: "closed";
1005
+ discovered: "discovered";
986
1006
  active: "active";
987
1007
  archived: "archived";
988
1008
  }>;
@@ -1075,6 +1095,7 @@ declare const SessionStorageNamespace$1: {
1075
1095
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1076
1096
  model: _$zod.ZodOptional<_$zod.ZodString>;
1077
1097
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1098
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1078
1099
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1079
1100
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1080
1101
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1090,8 +1111,8 @@ declare const SessionStorageNamespace$1: {
1090
1111
  member: "member";
1091
1112
  }>;
1092
1113
  status: _$zod.ZodEnum<{
1093
- active: "active";
1094
1114
  idle: "idle";
1115
+ active: "active";
1095
1116
  dead: "dead";
1096
1117
  disposed: "disposed";
1097
1118
  }>;
@@ -1099,8 +1120,8 @@ declare const SessionStorageNamespace$1: {
1099
1120
  lastActivityAt: _$zod.ZodNumber;
1100
1121
  }, _$zod_v4_core0.$strip>>;
1101
1122
  status: _$zod.ZodEnum<{
1102
- discovered: "discovered";
1103
1123
  closed: "closed";
1124
+ discovered: "discovered";
1104
1125
  active: "active";
1105
1126
  archived: "archived";
1106
1127
  }>;
@@ -1195,8 +1216,8 @@ declare const SessionStorageNamespace$1: {
1195
1216
  request: _$zod.ZodObject<{
1196
1217
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1197
1218
  all: "all";
1198
- discovered: "discovered";
1199
1219
  closed: "closed";
1220
+ discovered: "discovered";
1200
1221
  active: "active";
1201
1222
  archived: "archived";
1202
1223
  }>>;
@@ -1218,6 +1239,7 @@ declare const SessionStorageNamespace$1: {
1218
1239
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1219
1240
  model: _$zod.ZodOptional<_$zod.ZodString>;
1220
1241
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1242
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1221
1243
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1222
1244
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1223
1245
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1233,8 +1255,8 @@ declare const SessionStorageNamespace$1: {
1233
1255
  member: "member";
1234
1256
  }>;
1235
1257
  status: _$zod.ZodEnum<{
1236
- active: "active";
1237
1258
  idle: "idle";
1259
+ active: "active";
1238
1260
  dead: "dead";
1239
1261
  disposed: "disposed";
1240
1262
  }>;
@@ -1242,8 +1264,8 @@ declare const SessionStorageNamespace$1: {
1242
1264
  lastActivityAt: _$zod.ZodNumber;
1243
1265
  }, _$zod_v4_core0.$strip>>;
1244
1266
  status: _$zod.ZodEnum<{
1245
- discovered: "discovered";
1246
1267
  closed: "closed";
1268
+ discovered: "discovered";
1247
1269
  active: "active";
1248
1270
  archived: "archived";
1249
1271
  }>;
@@ -1356,8 +1378,8 @@ declare const SessionStorageNamespace$1: {
1356
1378
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
1357
1379
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1358
1380
  all: "all";
1359
- discovered: "discovered";
1360
1381
  closed: "closed";
1382
+ discovered: "discovered";
1361
1383
  active: "active";
1362
1384
  archived: "archived";
1363
1385
  }>>;
@@ -1376,6 +1398,7 @@ declare const SessionStorageNamespace$1: {
1376
1398
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1377
1399
  model: _$zod.ZodOptional<_$zod.ZodString>;
1378
1400
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1401
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1379
1402
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1380
1403
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1381
1404
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1391,8 +1414,8 @@ declare const SessionStorageNamespace$1: {
1391
1414
  member: "member";
1392
1415
  }>;
1393
1416
  status: _$zod.ZodEnum<{
1394
- active: "active";
1395
1417
  idle: "idle";
1418
+ active: "active";
1396
1419
  dead: "dead";
1397
1420
  disposed: "disposed";
1398
1421
  }>;
@@ -1400,8 +1423,8 @@ declare const SessionStorageNamespace$1: {
1400
1423
  lastActivityAt: _$zod.ZodNumber;
1401
1424
  }, _$zod_v4_core0.$strip>>;
1402
1425
  status: _$zod.ZodEnum<{
1403
- discovered: "discovered";
1404
1426
  closed: "closed";
1427
+ discovered: "discovered";
1405
1428
  active: "active";
1406
1429
  archived: "archived";
1407
1430
  }>;
@@ -1488,8 +1511,8 @@ declare const SessionStorageNamespace$1: {
1488
1511
  request: _$zod.ZodObject<{
1489
1512
  sessionId: _$zod.ZodString;
1490
1513
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
1491
- discovered: "discovered";
1492
1514
  closed: "closed";
1515
+ discovered: "discovered";
1493
1516
  active: "active";
1494
1517
  archived: "archived";
1495
1518
  }>>;
@@ -1540,6 +1563,7 @@ declare const SessionStorageNamespace$1: {
1540
1563
  request: _$zod.ZodObject<{
1541
1564
  adapterSessionId: _$zod.ZodString;
1542
1565
  source: _$zod.ZodOptional<_$zod.ZodString>;
1566
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
1543
1567
  }, _$zod_v4_core0.$strip>;
1544
1568
  response: _$zod.ZodObject<{
1545
1569
  session: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -1554,6 +1578,7 @@ declare const SessionStorageNamespace$1: {
1554
1578
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1555
1579
  model: _$zod.ZodOptional<_$zod.ZodString>;
1556
1580
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1581
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1557
1582
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1558
1583
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1559
1584
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1569,8 +1594,8 @@ declare const SessionStorageNamespace$1: {
1569
1594
  member: "member";
1570
1595
  }>;
1571
1596
  status: _$zod.ZodEnum<{
1572
- active: "active";
1573
1597
  idle: "idle";
1598
+ active: "active";
1574
1599
  dead: "dead";
1575
1600
  disposed: "disposed";
1576
1601
  }>;
@@ -1578,8 +1603,8 @@ declare const SessionStorageNamespace$1: {
1578
1603
  lastActivityAt: _$zod.ZodNumber;
1579
1604
  }, _$zod_v4_core0.$strip>>;
1580
1605
  status: _$zod.ZodEnum<{
1581
- discovered: "discovered";
1582
1606
  closed: "closed";
1607
+ discovered: "discovered";
1583
1608
  active: "active";
1584
1609
  archived: "archived";
1585
1610
  }>;
@@ -1739,6 +1764,7 @@ declare const SessionStorageNamespace$1: {
1739
1764
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1740
1765
  model: _$zod.ZodOptional<_$zod.ZodString>;
1741
1766
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1767
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1742
1768
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1743
1769
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1744
1770
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1754,8 +1780,8 @@ declare const SessionStorageNamespace$1: {
1754
1780
  member: "member";
1755
1781
  }>;
1756
1782
  status: _$zod.ZodEnum<{
1757
- active: "active";
1758
1783
  idle: "idle";
1784
+ active: "active";
1759
1785
  dead: "dead";
1760
1786
  disposed: "disposed";
1761
1787
  }>;
@@ -1763,8 +1789,8 @@ declare const SessionStorageNamespace$1: {
1763
1789
  lastActivityAt: _$zod.ZodNumber;
1764
1790
  }, _$zod_v4_core0.$strip>>;
1765
1791
  status: _$zod.ZodEnum<{
1766
- discovered: "discovered";
1767
1792
  closed: "closed";
1793
+ discovered: "discovered";
1768
1794
  active: "active";
1769
1795
  archived: "archived";
1770
1796
  }>;
@@ -1864,6 +1890,7 @@ declare const SessionStorageNamespace$1: {
1864
1890
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
1865
1891
  model: _$zod.ZodOptional<_$zod.ZodString>;
1866
1892
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
1893
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
1867
1894
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
1868
1895
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
1869
1896
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -1879,8 +1906,8 @@ declare const SessionStorageNamespace$1: {
1879
1906
  member: "member";
1880
1907
  }>;
1881
1908
  status: _$zod.ZodEnum<{
1882
- active: "active";
1883
1909
  idle: "idle";
1910
+ active: "active";
1884
1911
  dead: "dead";
1885
1912
  disposed: "disposed";
1886
1913
  }>;
@@ -1888,8 +1915,8 @@ declare const SessionStorageNamespace$1: {
1888
1915
  lastActivityAt: _$zod.ZodNumber;
1889
1916
  }, _$zod_v4_core0.$strip>>;
1890
1917
  status: _$zod.ZodEnum<{
1891
- discovered: "discovered";
1892
1918
  closed: "closed";
1919
+ discovered: "discovered";
1893
1920
  active: "active";
1894
1921
  archived: "archived";
1895
1922
  }>;
@@ -2010,6 +2037,7 @@ declare const SessionStorageNamespace$1: {
2010
2037
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2011
2038
  model: _$zod.ZodOptional<_$zod.ZodString>;
2012
2039
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2040
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2013
2041
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2014
2042
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2015
2043
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2025,8 +2053,8 @@ declare const SessionStorageNamespace$1: {
2025
2053
  member: "member";
2026
2054
  }>;
2027
2055
  status: _$zod.ZodEnum<{
2028
- active: "active";
2029
2056
  idle: "idle";
2057
+ active: "active";
2030
2058
  dead: "dead";
2031
2059
  disposed: "disposed";
2032
2060
  }>;
@@ -2034,8 +2062,8 @@ declare const SessionStorageNamespace$1: {
2034
2062
  lastActivityAt: _$zod.ZodNumber;
2035
2063
  }, _$zod_v4_core0.$strip>>;
2036
2064
  status: _$zod.ZodEnum<{
2037
- discovered: "discovered";
2038
2065
  closed: "closed";
2066
+ discovered: "discovered";
2039
2067
  active: "active";
2040
2068
  archived: "archived";
2041
2069
  }>;
@@ -2128,6 +2156,7 @@ declare const SessionStorageNamespace$1: {
2128
2156
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2129
2157
  model: _$zod.ZodOptional<_$zod.ZodString>;
2130
2158
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2159
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2131
2160
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2132
2161
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2133
2162
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2143,8 +2172,8 @@ declare const SessionStorageNamespace$1: {
2143
2172
  member: "member";
2144
2173
  }>;
2145
2174
  status: _$zod.ZodEnum<{
2146
- active: "active";
2147
2175
  idle: "idle";
2176
+ active: "active";
2148
2177
  dead: "dead";
2149
2178
  disposed: "disposed";
2150
2179
  }>;
@@ -2152,8 +2181,8 @@ declare const SessionStorageNamespace$1: {
2152
2181
  lastActivityAt: _$zod.ZodNumber;
2153
2182
  }, _$zod_v4_core0.$strip>>;
2154
2183
  status: _$zod.ZodEnum<{
2155
- discovered: "discovered";
2156
2184
  closed: "closed";
2185
+ discovered: "discovered";
2157
2186
  active: "active";
2158
2187
  archived: "archived";
2159
2188
  }>;
@@ -2248,8 +2277,8 @@ declare const SessionStorageNamespace$1: {
2248
2277
  request: _$zod.ZodObject<{
2249
2278
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2250
2279
  all: "all";
2251
- discovered: "discovered";
2252
2280
  closed: "closed";
2281
+ discovered: "discovered";
2253
2282
  active: "active";
2254
2283
  archived: "archived";
2255
2284
  }>>;
@@ -2271,6 +2300,7 @@ declare const SessionStorageNamespace$1: {
2271
2300
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2272
2301
  model: _$zod.ZodOptional<_$zod.ZodString>;
2273
2302
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2303
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2274
2304
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2275
2305
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2276
2306
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2286,8 +2316,8 @@ declare const SessionStorageNamespace$1: {
2286
2316
  member: "member";
2287
2317
  }>;
2288
2318
  status: _$zod.ZodEnum<{
2289
- active: "active";
2290
2319
  idle: "idle";
2320
+ active: "active";
2291
2321
  dead: "dead";
2292
2322
  disposed: "disposed";
2293
2323
  }>;
@@ -2295,8 +2325,8 @@ declare const SessionStorageNamespace$1: {
2295
2325
  lastActivityAt: _$zod.ZodNumber;
2296
2326
  }, _$zod_v4_core0.$strip>>;
2297
2327
  status: _$zod.ZodEnum<{
2298
- discovered: "discovered";
2299
2328
  closed: "closed";
2329
+ discovered: "discovered";
2300
2330
  active: "active";
2301
2331
  archived: "archived";
2302
2332
  }>;
@@ -2409,8 +2439,8 @@ declare const SessionStorageNamespace$1: {
2409
2439
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
2410
2440
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2411
2441
  all: "all";
2412
- discovered: "discovered";
2413
2442
  closed: "closed";
2443
+ discovered: "discovered";
2414
2444
  active: "active";
2415
2445
  archived: "archived";
2416
2446
  }>>;
@@ -2429,6 +2459,7 @@ declare const SessionStorageNamespace$1: {
2429
2459
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2430
2460
  model: _$zod.ZodOptional<_$zod.ZodString>;
2431
2461
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2462
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2432
2463
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2433
2464
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2434
2465
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2444,8 +2475,8 @@ declare const SessionStorageNamespace$1: {
2444
2475
  member: "member";
2445
2476
  }>;
2446
2477
  status: _$zod.ZodEnum<{
2447
- active: "active";
2448
2478
  idle: "idle";
2479
+ active: "active";
2449
2480
  dead: "dead";
2450
2481
  disposed: "disposed";
2451
2482
  }>;
@@ -2453,8 +2484,8 @@ declare const SessionStorageNamespace$1: {
2453
2484
  lastActivityAt: _$zod.ZodNumber;
2454
2485
  }, _$zod_v4_core0.$strip>>;
2455
2486
  status: _$zod.ZodEnum<{
2456
- discovered: "discovered";
2457
2487
  closed: "closed";
2488
+ discovered: "discovered";
2458
2489
  active: "active";
2459
2490
  archived: "archived";
2460
2491
  }>;
@@ -2541,8 +2572,8 @@ declare const SessionStorageNamespace$1: {
2541
2572
  request: _$zod.ZodObject<{
2542
2573
  sessionId: _$zod.ZodString;
2543
2574
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
2544
- discovered: "discovered";
2545
2575
  closed: "closed";
2576
+ discovered: "discovered";
2546
2577
  active: "active";
2547
2578
  archived: "archived";
2548
2579
  }>>;
@@ -2593,6 +2624,7 @@ declare const SessionStorageNamespace$1: {
2593
2624
  request: _$zod.ZodObject<{
2594
2625
  adapterSessionId: _$zod.ZodString;
2595
2626
  source: _$zod.ZodOptional<_$zod.ZodString>;
2627
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
2596
2628
  }, _$zod_v4_core0.$strip>;
2597
2629
  response: _$zod.ZodObject<{
2598
2630
  session: _$zod.ZodNullable<_$zod.ZodObject<{
@@ -2607,6 +2639,7 @@ declare const SessionStorageNamespace$1: {
2607
2639
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2608
2640
  model: _$zod.ZodOptional<_$zod.ZodString>;
2609
2641
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2642
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2610
2643
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2611
2644
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2612
2645
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2622,8 +2655,8 @@ declare const SessionStorageNamespace$1: {
2622
2655
  member: "member";
2623
2656
  }>;
2624
2657
  status: _$zod.ZodEnum<{
2625
- active: "active";
2626
2658
  idle: "idle";
2659
+ active: "active";
2627
2660
  dead: "dead";
2628
2661
  disposed: "disposed";
2629
2662
  }>;
@@ -2631,8 +2664,8 @@ declare const SessionStorageNamespace$1: {
2631
2664
  lastActivityAt: _$zod.ZodNumber;
2632
2665
  }, _$zod_v4_core0.$strip>>;
2633
2666
  status: _$zod.ZodEnum<{
2634
- discovered: "discovered";
2635
2667
  closed: "closed";
2668
+ discovered: "discovered";
2636
2669
  active: "active";
2637
2670
  archived: "archived";
2638
2671
  }>;
@@ -2792,6 +2825,7 @@ declare const SessionStorageNamespace$1: {
2792
2825
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2793
2826
  model: _$zod.ZodOptional<_$zod.ZodString>;
2794
2827
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2828
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2795
2829
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2796
2830
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2797
2831
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2807,8 +2841,8 @@ declare const SessionStorageNamespace$1: {
2807
2841
  member: "member";
2808
2842
  }>;
2809
2843
  status: _$zod.ZodEnum<{
2810
- active: "active";
2811
2844
  idle: "idle";
2845
+ active: "active";
2812
2846
  dead: "dead";
2813
2847
  disposed: "disposed";
2814
2848
  }>;
@@ -2816,8 +2850,8 @@ declare const SessionStorageNamespace$1: {
2816
2850
  lastActivityAt: _$zod.ZodNumber;
2817
2851
  }, _$zod_v4_core0.$strip>>;
2818
2852
  status: _$zod.ZodEnum<{
2819
- discovered: "discovered";
2820
2853
  closed: "closed";
2854
+ discovered: "discovered";
2821
2855
  active: "active";
2822
2856
  archived: "archived";
2823
2857
  }>;
@@ -2917,6 +2951,7 @@ declare const SessionStorageNamespace$1: {
2917
2951
  adapterSessionId: _$zod.ZodOptional<_$zod.ZodString>;
2918
2952
  model: _$zod.ZodOptional<_$zod.ZodString>;
2919
2953
  cwd: _$zod.ZodOptional<_$zod.ZodString>;
2954
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
2920
2955
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
2921
2956
  personaId: _$zod.ZodOptional<_$zod.ZodString>;
2922
2957
  profileId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -2932,8 +2967,8 @@ declare const SessionStorageNamespace$1: {
2932
2967
  member: "member";
2933
2968
  }>;
2934
2969
  status: _$zod.ZodEnum<{
2935
- active: "active";
2936
2970
  idle: "idle";
2971
+ active: "active";
2937
2972
  dead: "dead";
2938
2973
  disposed: "disposed";
2939
2974
  }>;
@@ -2941,8 +2976,8 @@ declare const SessionStorageNamespace$1: {
2941
2976
  lastActivityAt: _$zod.ZodNumber;
2942
2977
  }, _$zod_v4_core0.$strip>>;
2943
2978
  status: _$zod.ZodEnum<{
2944
- discovered: "discovered";
2945
2979
  closed: "closed";
2980
+ discovered: "discovered";
2946
2981
  active: "active";
2947
2982
  archived: "archived";
2948
2983
  }>;
@@ -3064,12 +3099,13 @@ declare const SessionStorageNamespace$1: {
3064
3099
  adapterName: string;
3065
3100
  sessionId: string;
3066
3101
  role: "lead" | "member";
3067
- status: "active" | "idle" | "dead" | "disposed";
3102
+ status: "idle" | "active" | "dead" | "disposed";
3068
3103
  createdAt: number;
3069
3104
  lastActivityAt: number;
3070
3105
  adapterSessionId?: string | undefined;
3071
3106
  model?: string | undefined;
3072
3107
  cwd?: string | undefined;
3108
+ allowedDirectories?: string[] | undefined;
3073
3109
  providerConfigId?: string | undefined;
3074
3110
  personaId?: string | undefined;
3075
3111
  profileId?: string | undefined;
@@ -3077,7 +3113,7 @@ declare const SessionStorageNamespace$1: {
3077
3113
  clientId?: string | undefined;
3078
3114
  compressionMode?: "auto" | "manual" | "off" | undefined;
3079
3115
  }[];
3080
- status: "discovered" | "closed" | "active" | "archived";
3116
+ status: "closed" | "discovered" | "active" | "archived";
3081
3117
  leadAgentId?: string | undefined;
3082
3118
  parentSessionId?: string | undefined;
3083
3119
  contextInheritance?: "none" | "parent-history" | undefined;
@@ -32,7 +32,7 @@ declare const SessionEventStorageNamespace$1: {
32
32
  schema: undefined;
33
33
  columns: {
34
34
  id: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
35
- name: "id";
35
+ name: string;
36
36
  tableName: "session_events";
37
37
  dataType: "number";
38
38
  columnType: "SQLiteInteger";
@@ -87,7 +87,7 @@ declare const SessionEventStorageNamespace$1: {
87
87
  length: number | undefined;
88
88
  }>;
89
89
  timestamp: _$drizzle_orm_sqlite_core0.SQLiteColumn<{
90
- name: "timestamp";
90
+ name: string;
91
91
  tableName: "session_events";
92
92
  dataType: "number";
93
93
  columnType: "SQLiteInteger";
@@ -0,0 +1 @@
1
+ import{sessionsDual as e}from"./services/session/storage/schema.mjs";import{n as t}from"./schema-CzhOc7TV.mjs";import{t as n}from"./schema-C3TgjrsV.mjs";import{SessionEventStorageNamespace as r,SessionEventStorageSubjects as i}from"@makaio/framework/contracts";import{index as a}from"drizzle-orm/sqlite-core";import{customType as o,index as s,pgTable as c,text as l}from"drizzle-orm/pg-core";import{defineDialectSchema as u,defineDualTable as d}from"@makaio/framework/storage/drizzle";import{sql as f}from"drizzle-orm";import{epochMs as p}from"@makaio/framework/storage/drizzle/columns/postgres";const m=o({dataType(){return`tsvector`}}),h=c(`messages`,{messageId:l(`message_id`).primaryKey(),turnId:l(`turn_id`).references(()=>t.postgres.turnId,{onDelete:`cascade`}),sessionId:l(`session_id`).notNull().references(()=>e.postgres.sessionId,{onDelete:`cascade`}),role:l(`role`,{enum:[`user`,`assistant`]}).notNull(),contentText:l(`content_text`).notNull(),blocks:l(`blocks`).notNull().default(`[]`),agentId:l(`agent_id`),adapterSessionId:l(`adapter_session_id`),adapterMessageId:l(`adapter_message_id`),timestamp:p(`timestamp`).notNull(),editOf:l(`edit_of`).references(()=>h.messageId),origin:l(`origin`,{enum:[`voice`,`text`,`compact`]}),contentTsv:m(`content_tsv`).generatedAlwaysAs(f`to_tsvector('english', coalesce(content_text, ''))`)},e=>[s(`idx_messages_session`).on(e.sessionId,e.timestamp),s(`idx_messages_turn`).on(e.turnId,e.timestamp),s(`idx_messages_agent`).on(e.agentId,e.timestamp),s(`idx_messages_adapter_message_id`).on(e.adapterMessageId),s(`idx_messages_content_tsv`).using(`gin`,e.contentTsv)]),g=u({messages:n},{messages:h}),_=()=>({sqlite:n.messageId,postgres:h.messageId}),v=d(`session_events`,t=>({id:t.autoPk(`id`),sessionId:t.text(`session_id`).notNull().references(()=>e.columnPair(`sessionId`),{onDelete:`cascade`}),eventId:t.text(`event_id`).notNull().unique(),timestamp:t.epochMs(`timestamp`).notNull(),type:t.text(`type`).notNull(),agentId:t.text(`agent_id`),adapterId:t.text(`adapter_id`),originatingMessageId:t.text(`originating_message_id`),messageId:t.text(`message_id`).references(_,{onDelete:`cascade`}),turnId:t.text(`turn_id`),contentText:t.text(`content_text`),payload:t.text(`payload`).notNull()}),{sqlite:e=>[a(`idx_events_session_ts`).on(e.sessionId,e.timestamp),a(`idx_events_session_type`).on(e.sessionId,e.type),a(`idx_events_turn`).on(e.turnId),a(`idx_events_originating_message`).on(e.originatingMessageId)],postgres:e=>[s(`idx_events_session_ts`).on(e.sessionId,e.timestamp),s(`idx_events_session_type`).on(e.sessionId,e.type),s(`idx_events_turn`).on(e.turnId),s(`idx_events_originating_message`).on(e.originatingMessageId)]}),y=v.sqlite,b={...r,extensions:{drizzle:{sessionEvents:y}}};export{_ as a,v as i,i as n,g as o,y as r,b as t};