@cleocode/cleo 2026.9.7 → 2026.9.10

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 (691) hide show
  1. package/dist/cli/index.js +3873 -2234
  2. package/package.json +14 -13
  3. package/scripts/check-cleo-tarball-size.mjs +105 -0
  4. package/scripts/copy-studio-dist.mjs +33 -9
  5. package/studio-dist/client/_app/immutable/chunks/{wI_OOyoh.js → BB7zPpV2.js} +1 -1
  6. package/studio-dist/client/_app/immutable/chunks/{D8NsLz6i.js → BOnrCZaR.js} +1 -1
  7. package/studio-dist/client/_app/immutable/chunks/{eK8hf4s7.js → BSRBuVG3.js} +1 -1
  8. package/studio-dist/client/_app/immutable/chunks/C6jhAnil.js +1 -0
  9. package/studio-dist/client/_app/immutable/chunks/C87Q3uxm.js +1 -0
  10. package/studio-dist/client/_app/immutable/chunks/{DVHIxkgs.js → CLZBEpLY.js} +1 -1
  11. package/studio-dist/client/_app/immutable/chunks/{CqF5Lomf.js → CTLGzgdN.js} +1 -1
  12. package/studio-dist/client/_app/immutable/chunks/{o1PZ6Kzq.js → CY3heNub.js} +1 -1
  13. package/studio-dist/client/_app/immutable/chunks/{RptFUp2P.js → Cge6qiwc.js} +1 -1
  14. package/studio-dist/client/_app/immutable/chunks/{BRgWBQlV.js → CnwXLaZJ.js} +1 -1
  15. package/studio-dist/client/_app/immutable/chunks/{Bxz2A0ZC.js → DEH43YwF.js} +1 -1
  16. package/studio-dist/client/_app/immutable/chunks/DGftG5oL.js +3 -0
  17. package/studio-dist/client/_app/immutable/chunks/DX_JOBSO.js +1 -0
  18. package/studio-dist/client/_app/immutable/chunks/{CEqOYim7.js → DZrdToAH.js} +1 -1
  19. package/studio-dist/client/_app/immutable/chunks/EZwHPWle.js +2 -0
  20. package/studio-dist/client/_app/immutable/chunks/cWVw9W0E.js +3 -0
  21. package/studio-dist/client/_app/immutable/chunks/{B9psmq5-.js → rB_71s8h.js} +1 -1
  22. package/studio-dist/client/_app/immutable/chunks/{JPJd4fEI.js → rUtW7Hx6.js} +1 -1
  23. package/studio-dist/client/_app/immutable/entry/app.tvu3-wbp.js +2 -0
  24. package/studio-dist/client/_app/immutable/entry/start.BS-rpdjH.js +1 -0
  25. package/studio-dist/client/_app/immutable/nodes/{0.CZzEEyVh.js → 0.DMP7swbx.js} +1 -1
  26. package/studio-dist/client/_app/immutable/nodes/{1.Bj3Opbua.js → 1.CYZMFpIp.js} +1 -1
  27. package/studio-dist/client/_app/immutable/nodes/{10.xe_Mc2Ko.js → 10.3rxHNnSx.js} +1 -1
  28. package/studio-dist/client/_app/immutable/nodes/{11.DuKPA7JD.js → 11.B6jWv3Kz.js} +1 -1
  29. package/studio-dist/client/_app/immutable/nodes/{12.BoZ_QrUS.js → 12.BrDHeTEq.js} +1 -1
  30. package/studio-dist/client/_app/immutable/nodes/{13.DFJiUiv8.js → 13.CE5bd4JV.js} +1 -1
  31. package/studio-dist/client/_app/immutable/nodes/{14.eaAlFU4w.js → 14.DgXD2LRx.js} +1 -1
  32. package/studio-dist/client/_app/immutable/nodes/{15.BfXgiwMC.js → 15.Cz1KI9Fv.js} +1 -1
  33. package/studio-dist/client/_app/immutable/nodes/{16.mEwy9cqh.js → 16.K9wYQPhb.js} +1 -1
  34. package/studio-dist/client/_app/immutable/nodes/{17.DP2QtQGn.js → 17.CtUmdfMg.js} +1 -1
  35. package/studio-dist/client/_app/immutable/nodes/{18.Bu0054sX.js → 18.mtosd0sL.js} +1 -1
  36. package/studio-dist/client/_app/immutable/nodes/{19.UWt6QbCm.js → 19.su55K8y_.js} +1 -1
  37. package/studio-dist/client/_app/immutable/nodes/{2.y5jKpHiR.js → 2.mqgFVWFQ.js} +1 -1
  38. package/studio-dist/client/_app/immutable/nodes/{20.B1AIHdkP.js → 20.NJuHLxuS.js} +1 -1
  39. package/studio-dist/client/_app/immutable/nodes/{21.CpAN71H8.js → 21.BhwhdQCq.js} +1 -1
  40. package/studio-dist/client/_app/immutable/nodes/{22.CrYKrN4c.js → 22.BmJEWwER.js} +1 -1
  41. package/studio-dist/client/_app/immutable/nodes/{23.pGRaHQjq.js → 23.CAVIJEH-.js} +1 -1
  42. package/studio-dist/client/_app/immutable/nodes/{24.BUoUu37z.js → 24.CMuXs5Sy.js} +1 -1
  43. package/studio-dist/client/_app/immutable/nodes/25.DhMBJYAo.js +39 -0
  44. package/studio-dist/client/_app/immutable/nodes/26.CJ4FA5FS.js +1 -0
  45. package/studio-dist/client/_app/immutable/nodes/{28.DcmYM7lb.js → 28.D64RBcfs.js} +1 -1
  46. package/studio-dist/client/_app/immutable/nodes/{29.lbHbMqNO.js → 29.yfuBeH1x.js} +1 -1
  47. package/studio-dist/client/_app/immutable/nodes/{3.Dyir4xXj.js → 3.y115j1d5.js} +1 -1
  48. package/studio-dist/client/_app/immutable/nodes/{30.DXj0Wm2A.js → 30.1WUv5bh9.js} +1 -1
  49. package/studio-dist/client/_app/immutable/nodes/4.D6vXYBoQ.js +1 -0
  50. package/studio-dist/client/_app/immutable/nodes/{5.VWSdP7oc.js → 5.hjw2O-4e.js} +1 -1
  51. package/studio-dist/client/_app/immutable/nodes/{6.Dl-XLwOj.js → 6.CAoDfDt6.js} +1 -1
  52. package/studio-dist/client/_app/immutable/nodes/{7.CFuC5L-y.js → 7.CLgPSQ8Z.js} +1 -1
  53. package/studio-dist/client/_app/immutable/nodes/{8.BCJ0DhOb.js → 8.zuaO1Hik.js} +1 -1
  54. package/studio-dist/client/_app/immutable/nodes/{9.Bq4SUzL9.js → 9.Cdsd85m2.js} +1 -1
  55. package/studio-dist/client/_app/version.json +1 -1
  56. package/studio-dist/server/chunks/0-BQvtFOrC.js +41 -0
  57. package/studio-dist/server/chunks/1-Bx2_yoiK.js +9 -0
  58. package/studio-dist/server/chunks/{10-DvOD4ksa.js → 10-CYLc3d5x.js} +3 -3
  59. package/studio-dist/server/chunks/{11-DMnBZ02H.js → 11-DcIYR5vm.js} +3 -3
  60. package/studio-dist/server/chunks/{12-CCyRyRWX.js → 12-WE1u104t.js} +3 -3
  61. package/studio-dist/server/chunks/{13-Dx1c3a_X.js → 13-joBDoxhK.js} +3 -3
  62. package/studio-dist/server/chunks/{14-Bo-dTCaZ.js → 14-Doj5F4uJ.js} +3 -3
  63. package/studio-dist/server/chunks/{15-BvUNl3KL.js → 15-nQTeHGD1.js} +3 -3
  64. package/studio-dist/server/chunks/{16-De6EzPSa.js → 16-CcTN0e8k.js} +5 -4
  65. package/studio-dist/server/chunks/{17-CZNsiZhi.js → 17-DWiFnzES.js} +10 -93
  66. package/studio-dist/server/chunks/{18-CbxxjZox.js → 18-Dcc9GnPo.js} +5 -4
  67. package/studio-dist/server/chunks/{19-DqHyladS.js → 19-BAQHPrMB.js} +3 -3
  68. package/studio-dist/server/chunks/{2-COvmA-ZA.js → 2-DXSVVaej.js} +10 -93
  69. package/studio-dist/server/chunks/20-DfQlGHPW.js +57 -0
  70. package/studio-dist/server/chunks/{21-DXK9ptAC.js → 21-qhGjkW41.js} +4 -31
  71. package/studio-dist/server/chunks/{22-DD5CLWJC.js → 22-Byy16hFA.js} +3 -3
  72. package/studio-dist/server/chunks/23-CZpFrGp4.js +97 -0
  73. package/studio-dist/server/chunks/24-EEysaT9T.js +67 -0
  74. package/studio-dist/server/chunks/{25-CAg6Xcmn.js → 25-CgiYn70L.js} +15 -96
  75. package/studio-dist/server/chunks/{26-_nfVTvNi.js → 26-Cfd6BaUb.js} +12 -93
  76. package/studio-dist/server/chunks/{27-C9edghG4.js → 27-Cqzlh9gZ.js} +3 -2
  77. package/studio-dist/server/chunks/{28-VemTJGyc.js → 28-DeYe2rpm.js} +8 -62
  78. package/studio-dist/server/chunks/{29-CXP-m29t.js → 29-6pjLM0Z1.js} +10 -93
  79. package/studio-dist/server/chunks/{3-B8KhfvHp.js → 3-E_fWDAkq.js} +9 -25
  80. package/studio-dist/server/chunks/{30-QiM1S4cJ.js → 30-Dw317sSW.js} +10 -93
  81. package/studio-dist/server/chunks/{31-BwdY9NnB.js → 31-Q4kHbp8j.js} +3 -2
  82. package/studio-dist/server/chunks/{4-CSaG4HjO.js → 4-C9BMSh4K.js} +4 -3
  83. package/studio-dist/server/chunks/{5-i5ry4y3C.js → 5-C0CF4WKG.js} +3 -3
  84. package/studio-dist/server/chunks/{6-DR1GWBMT.js → 6-BWyOJust.js} +3 -3
  85. package/studio-dist/server/chunks/{7-DSNwn3aQ.js → 7-CK4MK5gy.js} +3 -3
  86. package/studio-dist/server/chunks/{8-Bj0bx07K.js → 8-CiX7Xk9k.js} +3 -3
  87. package/studio-dist/server/chunks/{9-B3Tz0mZq.js → 9-Be5118w4.js} +3 -3
  88. package/studio-dist/server/chunks/{HeroHeader-v4Q9vaGr.js → HeroHeader-BrGN5WPw.js} +2 -2
  89. package/studio-dist/server/chunks/{Sparkline-BJ-GuhRd.js → Sparkline-DU_NVxz9.js} +2 -2
  90. package/studio-dist/server/chunks/{StatBlock-DHJMmOCx.js → StatBlock-jNsxycS1.js} +2 -2
  91. package/studio-dist/server/chunks/{Tabs-DzG6Bn9a.js → Tabs-DQKDflnT.js} +2 -2
  92. package/studio-dist/server/chunks/_dispatch-DTWViLGL.js +145 -0
  93. package/studio-dist/server/chunks/{_layout.svelte-BEIGQcIv.js → _layout.svelte-CL6GfET2.js} +7 -9
  94. package/studio-dist/server/chunks/{_page.svelte-al08ovKm.js → _page.svelte-6iMiGR11.js} +5 -5
  95. package/studio-dist/server/chunks/{_page.svelte-Byz2djto.js → _page.svelte-B-YXGvAW.js} +5 -5
  96. package/studio-dist/server/chunks/{_page.svelte-tYN7_LXI.js → _page.svelte-B5E6RqVb.js} +9 -11
  97. package/studio-dist/server/chunks/{_page.svelte-UYiF7YBK.js → _page.svelte-BCRyjlk2.js} +5 -5
  98. package/studio-dist/server/chunks/{_page.svelte-CCoTp89s.js → _page.svelte-BoYafqft.js} +3 -3
  99. package/studio-dist/server/chunks/{_page.svelte-nzffIbBP.js → _page.svelte-C7Wm6_HB.js} +3 -3
  100. package/studio-dist/server/chunks/{_page.svelte-C_VSL8NW.js → _page.svelte-Cgqt7ucn.js} +13 -71
  101. package/studio-dist/server/chunks/{_page.svelte-CophUar3.js → _page.svelte-CqI6hqMm.js} +5 -5
  102. package/studio-dist/server/chunks/{_page.svelte-BgwL2Gyu.js → _page.svelte-CvQ2rZZ1.js} +11 -13
  103. package/studio-dist/server/chunks/{_page.svelte-l4Z_xjl9.js → _page.svelte-CvTyJEyS.js} +9 -11
  104. package/studio-dist/server/chunks/{_page.svelte-DOWw416I.js → _page.svelte-CvzAttO9.js} +11 -13
  105. package/studio-dist/server/chunks/{_page.svelte-DYNorA0S.js → _page.svelte-Cx9Ptecp.js} +10 -67
  106. package/studio-dist/server/chunks/{_page.svelte-Wfx7ww_h.js → _page.svelte-Cx9dPjsT.js} +11 -13
  107. package/studio-dist/server/chunks/{_page.svelte-2cgtvHwW.js → _page.svelte-DGN5j-At.js} +13 -71
  108. package/studio-dist/server/chunks/{_page.svelte-BVVTrzTL.js → _page.svelte-DaheDIRs.js} +5 -5
  109. package/studio-dist/server/chunks/{_page.svelte-M5D2QnMS.js → _page.svelte-Dm8y5a8S.js} +10 -67
  110. package/studio-dist/server/chunks/{_page.svelte-B_pq-Z98.js → _page.svelte-DqXxyNsF.js} +7 -7
  111. package/studio-dist/server/chunks/{_page.svelte-C3aIui4o.js → _page.svelte-DqsbnAhk.js} +4 -4
  112. package/studio-dist/server/chunks/{_page.svelte-ksTJUXce.js → _page.svelte-Dt0_c1T-.js} +3 -3
  113. package/studio-dist/server/chunks/{_page.svelte-bGhsrIjS.js → _page.svelte-Dv6iwhu7.js} +3 -3
  114. package/studio-dist/server/chunks/{_page.svelte-BXyoMME1.js → _page.svelte-GPiHej3P.js} +5 -5
  115. package/studio-dist/server/chunks/{_page.svelte-CYDjW1R0.js → _page.svelte-LuRm8XxE.js} +5 -5
  116. package/studio-dist/server/chunks/{_page.svelte-Clbkk1gm.js → _page.svelte-Z7nL9SC-.js} +8 -9
  117. package/studio-dist/server/chunks/{_page.svelte-DUWbZjC7.js → _page.svelte-_kntHS6v.js} +4 -4
  118. package/studio-dist/server/chunks/{_page.svelte-BIlhmugm.js → _page.svelte-eiomv6Pa.js} +11 -13
  119. package/studio-dist/server/chunks/{_page.svelte-9OQphlnm.js → _page.svelte-jXJbd8Mx.js} +14 -69
  120. package/studio-dist/server/chunks/{_page.svelte-CHzXuw2Q.js → _page.svelte-me5SUosG.js} +3 -3
  121. package/studio-dist/server/chunks/{_server.ts-DSzRdt1U.js → _server.ts--2m_U4SL.js} +11 -94
  122. package/studio-dist/server/chunks/{_server.ts-ujoDR2_g.js → _server.ts--sGLmBsz.js} +10 -92
  123. package/studio-dist/server/chunks/{_server.ts-k2fApwOp.js → _server.ts-0ukyuE0I.js} +5 -60
  124. package/studio-dist/server/chunks/_server.ts-1eW2mTeh.js +40 -0
  125. package/studio-dist/server/chunks/{_server.ts-Bfr4u3EP.js → _server.ts-3LzqLzt0.js} +10 -92
  126. package/studio-dist/server/chunks/_server.ts-40h9Y46Y.js +122 -0
  127. package/studio-dist/server/chunks/_server.ts-5euivmMj.js +38 -0
  128. package/studio-dist/server/chunks/{_server.ts-CShsBkeE.js → _server.ts-B0uoay97.js} +7 -23
  129. package/studio-dist/server/chunks/{_server.ts-hL92cV7Z.js → _server.ts-B5vYKkI6.js} +9 -63
  130. package/studio-dist/server/chunks/{_server.ts-_RJXtmfi.js → _server.ts-B8dTbPHd.js} +8 -23
  131. package/studio-dist/server/chunks/{_server.ts-C3Jo-ju8.js → _server.ts-BA8Xdegq.js} +10 -92
  132. package/studio-dist/server/chunks/_server.ts-BBClE0n9.js +54 -0
  133. package/studio-dist/server/chunks/{_server.ts-ZS1_yMwR.js → _server.ts-BDwMoyZ_.js} +6 -32
  134. package/studio-dist/server/chunks/{_server.ts-sv4pA808.js → _server.ts-BE-Uhx4N.js} +5 -46
  135. package/studio-dist/server/chunks/{_server.ts-DV6pzF-M.js → _server.ts-BSHADOUJ.js} +4 -3
  136. package/studio-dist/server/chunks/_server.ts-BcsqAqXt.js +67 -0
  137. package/studio-dist/server/chunks/_server.ts-Bl9tMqwZ.js +159 -0
  138. package/studio-dist/server/chunks/_server.ts-BlzDnRI0.js +51 -0
  139. package/studio-dist/server/chunks/{_server.ts-DnE0f-iC.js → _server.ts-BtuemCsf.js} +4 -3
  140. package/studio-dist/server/chunks/{_server.ts-BPcErnS0.js → _server.ts-C2nYqbd9.js} +10 -92
  141. package/studio-dist/server/chunks/{_server.ts-4p6cp9ke.js → _server.ts-C6IDM_3I.js} +10 -92
  142. package/studio-dist/server/chunks/_server.ts-C8Z32vuL.js +45 -0
  143. package/studio-dist/server/chunks/_server.ts-CBXyadsy.js +26 -0
  144. package/studio-dist/server/chunks/{_server.ts-Do9RIPRo.js → _server.ts-CE6h2ATE.js} +5 -32
  145. package/studio-dist/server/chunks/_server.ts-CH06JVqZ.js +65 -0
  146. package/studio-dist/server/chunks/_server.ts-CNqcws-M.js +29 -0
  147. package/studio-dist/server/chunks/{_server.ts-CJA1djzJ.js → _server.ts-CPf8necd.js} +8 -92
  148. package/studio-dist/server/chunks/{_server.ts-uUx7uT2Y.js → _server.ts-CYv5YuHd.js} +6 -43
  149. package/studio-dist/server/chunks/{_server.ts-B2E7fxo9.js → _server.ts-CZ5GZRWX.js} +6 -91
  150. package/studio-dist/server/chunks/{_server.ts-DSAv66wD.js → _server.ts-CbThsyhY.js} +4 -3
  151. package/studio-dist/server/chunks/{_server.ts-DgbY5EB3.js → _server.ts-CeQolQOK.js} +10 -92
  152. package/studio-dist/server/chunks/_server.ts-ChoGyX5C.js +61 -0
  153. package/studio-dist/server/chunks/_server.ts-CjJYkLJH.js +61 -0
  154. package/studio-dist/server/chunks/{_server.ts-lPlBUIJX.js → _server.ts-CtjArzxf.js} +5 -60
  155. package/studio-dist/server/chunks/{_server.ts-Cq60m8Pw.js → _server.ts-D3QWZwt_.js} +4 -3
  156. package/studio-dist/server/chunks/{_server.ts-CkoJ2HCW.js → _server.ts-D6wP5bCh.js} +10 -92
  157. package/studio-dist/server/chunks/{_server.ts-DwTRjS4y.js → _server.ts-D7JwQTun.js} +10 -93
  158. package/studio-dist/server/chunks/_server.ts-DKFJdXPK.js +97 -0
  159. package/studio-dist/server/chunks/_server.ts-DNAPGKEF.js +55 -0
  160. package/studio-dist/server/chunks/_server.ts-DQiTiY3E.js +78 -0
  161. package/studio-dist/server/chunks/{_server.ts-BT0Uq2yq.js → _server.ts-DUyeSXbV.js} +10 -92
  162. package/studio-dist/server/chunks/{_server.ts-DRVz9D-J.js → _server.ts-DY7BwZCv.js} +9 -24
  163. package/studio-dist/server/chunks/{_server.ts-Cz0zgaUV.js → _server.ts-D_E276ms.js} +3 -2
  164. package/studio-dist/server/chunks/{_server.ts-B5g3eScF.js → _server.ts-DgtmTAp5.js} +5 -60
  165. package/studio-dist/server/chunks/{_server.ts-CboRJY0Q.js → _server.ts-DhTKaw7h.js} +10 -63
  166. package/studio-dist/server/chunks/_server.ts-DqKBSCPT.js +31 -0
  167. package/studio-dist/server/chunks/{_server.ts-CpmMp5D8.js → _server.ts-DyXBNnRD.js} +4 -3
  168. package/studio-dist/server/chunks/_server.ts-DzjUpduu.js +25 -0
  169. package/studio-dist/server/chunks/{_server.ts-CGiAXy5i.js → _server.ts-Dznqw6Dg.js} +8 -23
  170. package/studio-dist/server/chunks/{_server.ts-tKMjUFUP.js → _server.ts-EVwS7UXb.js} +4 -3
  171. package/studio-dist/server/chunks/_server.ts-J17j25VG.js +62 -0
  172. package/studio-dist/server/chunks/{_server.ts-BdN4AJ6o.js → _server.ts-VQchZxXq.js} +10 -91
  173. package/studio-dist/server/chunks/{_server.ts-C4BcDGqS.js → _server.ts-XLV5SvjH.js} +7 -63
  174. package/studio-dist/server/chunks/_server.ts-jZgqFIJz.js +45 -0
  175. package/studio-dist/server/chunks/{_server.ts-Bw7A4zgb.js → _server.ts-lyiGGv7w.js} +5 -3
  176. package/studio-dist/server/chunks/{brain-CXR7ZT7S.js → brain-xt_NeshR.js} +2 -2
  177. package/studio-dist/server/chunks/cleo-home-_XIqkZaL.js +109 -0
  178. package/studio-dist/server/chunks/{cli-action-DQcaqcfn.js → cli-action-VJPEn1pY.js} +2 -2
  179. package/studio-dist/server/chunks/{client-CgX38JBu.js → client-D71MZ7Vi.js} +5 -6
  180. package/studio-dist/server/chunks/cluster-label-layer-CysRMvhi.js +6721 -0
  181. package/studio-dist/server/chunks/connections-CWLPjwBP.js +15 -0
  182. package/studio-dist/server/chunks/{connections2-mi7mZqJM.js → connections2-DHVs5ytW.js} +32 -19
  183. package/studio-dist/server/chunks/{dev-BNpEUZI3.js → dev-Br5zieNA.js} +2 -2
  184. package/studio-dist/server/chunks/dist-BzgWhfUR.js +18748 -0
  185. package/studio-dist/server/chunks/{error.svelte-CplNulnS.js → error.svelte-BIToUowC.js} +6 -8
  186. package/studio-dist/server/chunks/{explorer-loader-BN_mkt3_.js → explorer-loader-B_uCSs9_.js} +2 -2
  187. package/studio-dist/server/chunks/exports-Dg-gdPPq.js +124 -0
  188. package/studio-dist/server/chunks/{hooks.server-DBsyphiX.js → hooks.server-CWBRp8NI.js} +10 -93
  189. package/studio-dist/server/chunks/{http-CRTZe306.js → http-DPU3HHl2.js} +3 -4
  190. package/studio-dist/server/chunks/{index-server-DocJvixA.js → index-server-BgfA6C0S.js} +17 -4
  191. package/studio-dist/server/chunks/{internal-D6eWgsHJ.js → internal-DPnIJYMs.js} +56 -92
  192. package/studio-dist/server/chunks/{memory2-Cgc_4D5q.js → memory-BZHnDZzu.js} +4 -4
  193. package/studio-dist/server/chunks/{nexus-adapter-9EL_VlGI.js → nexus-adapter-D1ryYG1Z.js} +5 -5
  194. package/studio-dist/server/chunks/{no-face-up-DcejJLy-.js → no-face-up-B_3h6Hgs.js} +2 -2
  195. package/studio-dist/server/chunks/project-context-BAXQmgch.js +188 -0
  196. package/studio-dist/server/chunks/{src-BUqGet2c.js → src-D2rW9bIF.js} +422 -5
  197. package/studio-dist/server/chunks/{stores-5DmdjPCH.js → stores-BZdYTyl7.js} +3 -3
  198. package/studio-dist/server/chunks/{tasks2-Bf9VHrv-.js → tasks-sWuEmiGW.js} +2349 -9
  199. package/studio-dist/server/chunks/{ui-DR8zOSpC.js → ui-CkQ-pCs3.js} +2 -2
  200. package/studio-dist/server/chunks/utils-g564cUMV.js +151 -0
  201. package/studio-dist/server/index.js +5 -16
  202. package/studio-dist/server/manifest.js +88 -88
  203. package/dist/cli/index.js.map +0 -6
  204. package/studio-dist/client/_app/immutable/assets/parse-worker.CSEr67Qi.js +0 -1127
  205. package/studio-dist/client/_app/immutable/chunks/2mEksghu2.js +0 -1
  206. package/studio-dist/client/_app/immutable/chunks/3KebaI-z.js +0 -53
  207. package/studio-dist/client/_app/immutable/chunks/3y2yNYEk2.js +0 -3
  208. package/studio-dist/client/_app/immutable/chunks/7UXYlaI1.js +0 -1
  209. package/studio-dist/client/_app/immutable/chunks/83VLmCvk.js +0 -4
  210. package/studio-dist/client/_app/immutable/chunks/84Rhmi6r.js +0 -2
  211. package/studio-dist/client/_app/immutable/chunks/9CV9TXTg2.js +0 -92
  212. package/studio-dist/client/_app/immutable/chunks/9LFtcz24.js +0 -1
  213. package/studio-dist/client/_app/immutable/chunks/9bLMgKwu2.js +0 -1
  214. package/studio-dist/client/_app/immutable/chunks/9kKqohVR2.js +0 -37
  215. package/studio-dist/client/_app/immutable/chunks/B-Ye28EY.js +0 -7
  216. package/studio-dist/client/_app/immutable/chunks/B-jnUl7o.js +0 -1
  217. package/studio-dist/client/_app/immutable/chunks/B0ORuy8x2.js +0 -1
  218. package/studio-dist/client/_app/immutable/chunks/B0xCM1wN2.js +0 -1
  219. package/studio-dist/client/_app/immutable/chunks/B0zCN4sX.js +0 -1
  220. package/studio-dist/client/_app/immutable/chunks/B1wt-iGW.js +0 -7
  221. package/studio-dist/client/_app/immutable/chunks/B2F3KUIU.js +0 -1
  222. package/studio-dist/client/_app/immutable/chunks/B2_6RrlL2.js +0 -1
  223. package/studio-dist/client/_app/immutable/chunks/B2qKEYxA2.js +0 -1
  224. package/studio-dist/client/_app/immutable/chunks/B2u2rNyI2.js +0 -8
  225. package/studio-dist/client/_app/immutable/chunks/B3_X3Lhd2.js +0 -1
  226. package/studio-dist/client/_app/immutable/chunks/B3sNtbqf.js +0 -1
  227. package/studio-dist/client/_app/immutable/chunks/B4NQP1Ax2.js +0 -6
  228. package/studio-dist/client/_app/immutable/chunks/BAtZg5v5.js +0 -2
  229. package/studio-dist/client/_app/immutable/chunks/BB6WKLm82.js +0 -1
  230. package/studio-dist/client/_app/immutable/chunks/BBX8UDtn.js +0 -1
  231. package/studio-dist/client/_app/immutable/chunks/BBs1U1iU.js +0 -1
  232. package/studio-dist/client/_app/immutable/chunks/BEli_4Jp2.js +0 -1
  233. package/studio-dist/client/_app/immutable/chunks/BEt2wIUt.js +0 -1
  234. package/studio-dist/client/_app/immutable/chunks/BEyM8qSW2.js +0 -1
  235. package/studio-dist/client/_app/immutable/chunks/BFZA3Dsk2.js +0 -1
  236. package/studio-dist/client/_app/immutable/chunks/BGdPweG1.js +0 -2
  237. package/studio-dist/client/_app/immutable/chunks/BGiusSqE.js +0 -1
  238. package/studio-dist/client/_app/immutable/chunks/BGmpyfzD.js +0 -1
  239. package/studio-dist/client/_app/immutable/chunks/BH5rhSIR.js +0 -1
  240. package/studio-dist/client/_app/immutable/chunks/BHciFt922.js +0 -2
  241. package/studio-dist/client/_app/immutable/chunks/BHnFwTQY.js +0 -1
  242. package/studio-dist/client/_app/immutable/chunks/BIvye3XP2.js +0 -59
  243. package/studio-dist/client/_app/immutable/chunks/BJ8mcpQA2.js +0 -1
  244. package/studio-dist/client/_app/immutable/chunks/BK17qSHw.js +0 -2
  245. package/studio-dist/client/_app/immutable/chunks/BLkgUtyb.js +0 -1
  246. package/studio-dist/client/_app/immutable/chunks/BMUko3r62.js +0 -5
  247. package/studio-dist/client/_app/immutable/chunks/BMwzdEaa.js +0 -2
  248. package/studio-dist/client/_app/immutable/chunks/BQZx6brg.js +0 -2
  249. package/studio-dist/client/_app/immutable/chunks/BUPJTTTd.js +0 -2
  250. package/studio-dist/client/_app/immutable/chunks/BVNGAeZe2.js +0 -146
  251. package/studio-dist/client/_app/immutable/chunks/BWfLryGm.js +0 -1
  252. package/studio-dist/client/_app/immutable/chunks/BXIfeogw.js +0 -1
  253. package/studio-dist/client/_app/immutable/chunks/BXTfFyUU.js +0 -1
  254. package/studio-dist/client/_app/immutable/chunks/BYJC6_MM.js +0 -2
  255. package/studio-dist/client/_app/immutable/chunks/BZV1ZJzH.js +0 -2
  256. package/studio-dist/client/_app/immutable/chunks/BZu9rehd.js +0 -1
  257. package/studio-dist/client/_app/immutable/chunks/Bbzm48C52.js +0 -1
  258. package/studio-dist/client/_app/immutable/chunks/BfGnlwjH.js +0 -1
  259. package/studio-dist/client/_app/immutable/chunks/Bfjb9LPp.js +0 -2
  260. package/studio-dist/client/_app/immutable/chunks/BieFfu-R.js +0 -1
  261. package/studio-dist/client/_app/immutable/chunks/Bmv63uXe2.js +0 -1
  262. package/studio-dist/client/_app/immutable/chunks/BtBW1A0u.js +0 -1
  263. package/studio-dist/client/_app/immutable/chunks/BxISGQCl2.js +0 -1
  264. package/studio-dist/client/_app/immutable/chunks/ByNR_KvT.js +0 -2
  265. package/studio-dist/client/_app/immutable/chunks/BzjhD6Hr2.js +0 -2
  266. package/studio-dist/client/_app/immutable/chunks/BzpWnq0c2.js +0 -1
  267. package/studio-dist/client/_app/immutable/chunks/C-yJVcyI2.js +0 -1
  268. package/studio-dist/client/_app/immutable/chunks/C0cQ-8kS2.js +0 -1
  269. package/studio-dist/client/_app/immutable/chunks/C1vWmhYe.js +0 -48
  270. package/studio-dist/client/_app/immutable/chunks/C1w6bBje.js +0 -1
  271. package/studio-dist/client/_app/immutable/chunks/C243sn7r.js +0 -4
  272. package/studio-dist/client/_app/immutable/chunks/C2oZaDvt.js +0 -67
  273. package/studio-dist/client/_app/immutable/chunks/C3OziSQx.js +0 -1
  274. package/studio-dist/client/_app/immutable/chunks/C3hFPbMK.js +0 -2
  275. package/studio-dist/client/_app/immutable/chunks/C4P9oFvU2.js +0 -6
  276. package/studio-dist/client/_app/immutable/chunks/C5Nlanei.js +0 -8
  277. package/studio-dist/client/_app/immutable/chunks/C6KBAXPl.js +0 -15
  278. package/studio-dist/client/_app/immutable/chunks/C8MZnWta.js +0 -1
  279. package/studio-dist/client/_app/immutable/chunks/CAoan3K12.js +0 -1
  280. package/studio-dist/client/_app/immutable/chunks/CBpcINYH.js +0 -29
  281. package/studio-dist/client/_app/immutable/chunks/CE7phgWq.js +0 -1
  282. package/studio-dist/client/_app/immutable/chunks/CFb4Co_K.js +0 -2
  283. package/studio-dist/client/_app/immutable/chunks/CGWoRK3t2.js +0 -1
  284. package/studio-dist/client/_app/immutable/chunks/CH3t4xo1.js +0 -1
  285. package/studio-dist/client/_app/immutable/chunks/CHJgk6g-.js +0 -1
  286. package/studio-dist/client/_app/immutable/chunks/CHgPjuDQ.js +0 -17
  287. package/studio-dist/client/_app/immutable/chunks/CHkCZrnr.js +0 -1
  288. package/studio-dist/client/_app/immutable/chunks/CI_91WUN.js +0 -4
  289. package/studio-dist/client/_app/immutable/chunks/CJ7-hP0H.js +0 -1
  290. package/studio-dist/client/_app/immutable/chunks/CKIrNnkY2.js +0 -1
  291. package/studio-dist/client/_app/immutable/chunks/CKoQ7Ko5.js +0 -1
  292. package/studio-dist/client/_app/immutable/chunks/CM8O4zqs.js +0 -56
  293. package/studio-dist/client/_app/immutable/chunks/CMz3AVRO.js +0 -1
  294. package/studio-dist/client/_app/immutable/chunks/CNToUR3P.js +0 -13
  295. package/studio-dist/client/_app/immutable/chunks/CNuQG1yl2.js +0 -1
  296. package/studio-dist/client/_app/immutable/chunks/CQLIZtxj.js +0 -2
  297. package/studio-dist/client/_app/immutable/chunks/CQYVNgM0.js +0 -20
  298. package/studio-dist/client/_app/immutable/chunks/CQeVOmFO2.js +0 -1
  299. package/studio-dist/client/_app/immutable/chunks/CSPHHq09.js +0 -1
  300. package/studio-dist/client/_app/immutable/chunks/CTJEdbIn.js +0 -1
  301. package/studio-dist/client/_app/immutable/chunks/CTTT3wYw.js +0 -35
  302. package/studio-dist/client/_app/immutable/chunks/CV4ck7fz.js +0 -2
  303. package/studio-dist/client/_app/immutable/chunks/CXQrVnHf.js +0 -11
  304. package/studio-dist/client/_app/immutable/chunks/CXTCtOUQ.js +0 -1
  305. package/studio-dist/client/_app/immutable/chunks/C_CsU7Qq.js +0 -1
  306. package/studio-dist/client/_app/immutable/chunks/C_IZx3682.js +0 -2
  307. package/studio-dist/client/_app/immutable/chunks/CbTnu2Po2.js +0 -1
  308. package/studio-dist/client/_app/immutable/chunks/Cba8RZ1a2.js +0 -8
  309. package/studio-dist/client/_app/immutable/chunks/Cc8xxDr5.js +0 -1
  310. package/studio-dist/client/_app/immutable/chunks/CdPxoldu.js +0 -1
  311. package/studio-dist/client/_app/immutable/chunks/CdqDTozW.js +0 -1
  312. package/studio-dist/client/_app/immutable/chunks/CdsmcCfC.js +0 -25
  313. package/studio-dist/client/_app/immutable/chunks/CeYPAoY9.js +0 -1
  314. package/studio-dist/client/_app/immutable/chunks/Cf4kGS9y.js +0 -1
  315. package/studio-dist/client/_app/immutable/chunks/CfWEqXtJ2.js +0 -1
  316. package/studio-dist/client/_app/immutable/chunks/Cg7Wj2b9.js +0 -2
  317. package/studio-dist/client/_app/immutable/chunks/CgTpKZfi2.js +0 -1
  318. package/studio-dist/client/_app/immutable/chunks/Chpy9ca7.js +0 -2
  319. package/studio-dist/client/_app/immutable/chunks/CiLKuLrQ.js +0 -4
  320. package/studio-dist/client/_app/immutable/chunks/CjNDJjwu.js +0 -1
  321. package/studio-dist/client/_app/immutable/chunks/Cjde0ZKr2.js +0 -1
  322. package/studio-dist/client/_app/immutable/chunks/Cjgnade02.js +0 -3
  323. package/studio-dist/client/_app/immutable/chunks/Ckp90om52.js +0 -2
  324. package/studio-dist/client/_app/immutable/chunks/ClAPVhCD.js +0 -1
  325. package/studio-dist/client/_app/immutable/chunks/ClT89UdO.js +0 -11
  326. package/studio-dist/client/_app/immutable/chunks/CnJf5tML.js +0 -1
  327. package/studio-dist/client/_app/immutable/chunks/CpF4Rrcc2.js +0 -1
  328. package/studio-dist/client/_app/immutable/chunks/CqCka5yX2.js +0 -1
  329. package/studio-dist/client/_app/immutable/chunks/CqtqZrOl.js +0 -1
  330. package/studio-dist/client/_app/immutable/chunks/CrJdywQt.js +0 -1
  331. package/studio-dist/client/_app/immutable/chunks/Cs0zC2l2.js +0 -1
  332. package/studio-dist/client/_app/immutable/chunks/CsMn5fBs.js +0 -141
  333. package/studio-dist/client/_app/immutable/chunks/CsvKLHQQ2.js +0 -2
  334. package/studio-dist/client/_app/immutable/chunks/Ctaresvj.js +0 -1
  335. package/studio-dist/client/_app/immutable/chunks/Ctetf8vc2.js +0 -2
  336. package/studio-dist/client/_app/immutable/chunks/Cv7yW6MG.js +0 -1
  337. package/studio-dist/client/_app/immutable/chunks/CxRIz-Zd.js +0 -1
  338. package/studio-dist/client/_app/immutable/chunks/CxbvtjIH.js +0 -3
  339. package/studio-dist/client/_app/immutable/chunks/CxfeoXkZ.js +0 -2
  340. package/studio-dist/client/_app/immutable/chunks/CySLscL2.js +0 -2
  341. package/studio-dist/client/_app/immutable/chunks/D0PKQAbM.js +0 -87
  342. package/studio-dist/client/_app/immutable/chunks/D0WQsLTu.js +0 -1
  343. package/studio-dist/client/_app/immutable/chunks/D1LBVx6r2.js +0 -1
  344. package/studio-dist/client/_app/immutable/chunks/D1NlFXu9.js +0 -1
  345. package/studio-dist/client/_app/immutable/chunks/D1QfC4hu2.js +0 -1
  346. package/studio-dist/client/_app/immutable/chunks/D1yrHAn72.js +0 -1
  347. package/studio-dist/client/_app/immutable/chunks/D2pa4reh.js +0 -7
  348. package/studio-dist/client/_app/immutable/chunks/D3QsWcIw2.js +0 -2
  349. package/studio-dist/client/_app/immutable/chunks/D4OkQuPl2.js +0 -1
  350. package/studio-dist/client/_app/immutable/chunks/D6UDnATk2.js +0 -1
  351. package/studio-dist/client/_app/immutable/chunks/D7w7HllH.js +0 -38
  352. package/studio-dist/client/_app/immutable/chunks/D93KpglN.js +0 -1
  353. package/studio-dist/client/_app/immutable/chunks/D99fQj2G2.js +0 -1
  354. package/studio-dist/client/_app/immutable/chunks/DB5ifLM-.js +0 -3
  355. package/studio-dist/client/_app/immutable/chunks/DBhP8ifO2.js +0 -15
  356. package/studio-dist/client/_app/immutable/chunks/DF_4OWhj.js +0 -2
  357. package/studio-dist/client/_app/immutable/chunks/DFpNK1vs2.js +0 -1
  358. package/studio-dist/client/_app/immutable/chunks/DGRYMk-W.js +0 -142
  359. package/studio-dist/client/_app/immutable/chunks/DH3CcQwq.js +0 -1
  360. package/studio-dist/client/_app/immutable/chunks/DHQfJeLU.js +0 -4
  361. package/studio-dist/client/_app/immutable/chunks/DL89yEDy2.js +0 -1
  362. package/studio-dist/client/_app/immutable/chunks/DLRku_0p2.js +0 -2
  363. package/studio-dist/client/_app/immutable/chunks/DMZkjPYT2.js +0 -1
  364. package/studio-dist/client/_app/immutable/chunks/DNP72foU.js +0 -1
  365. package/studio-dist/client/_app/immutable/chunks/DO2GztVm.js +0 -1
  366. package/studio-dist/client/_app/immutable/chunks/DOVNXmCK2.js +0 -1
  367. package/studio-dist/client/_app/immutable/chunks/DOqzs8kl2.js +0 -1
  368. package/studio-dist/client/_app/immutable/chunks/DQnR63hh2.js +0 -7
  369. package/studio-dist/client/_app/immutable/chunks/DTxtWPkw.js +0 -1
  370. package/studio-dist/client/_app/immutable/chunks/DVDgCC9A2.js +0 -20
  371. package/studio-dist/client/_app/immutable/chunks/DVVCJYjz.js +0 -1
  372. package/studio-dist/client/_app/immutable/chunks/DWRhYUMj2.js +0 -1
  373. package/studio-dist/client/_app/immutable/chunks/DWavBJBI.js +0 -4
  374. package/studio-dist/client/_app/immutable/chunks/DXDSWRw-.js +0 -1
  375. package/studio-dist/client/_app/immutable/chunks/DXoHaH4a.js +0 -2
  376. package/studio-dist/client/_app/immutable/chunks/DXpCX2Hi.js +0 -1
  377. package/studio-dist/client/_app/immutable/chunks/DYP3EJMY.js +0 -1
  378. package/studio-dist/client/_app/immutable/chunks/DYQphR_V.js +0 -1
  379. package/studio-dist/client/_app/immutable/chunks/DYUlIivP.js +0 -1
  380. package/studio-dist/client/_app/immutable/chunks/DYo2ye8X2.js +0 -1
  381. package/studio-dist/client/_app/immutable/chunks/DYxFu8yV.js +0 -1
  382. package/studio-dist/client/_app/immutable/chunks/DZ66sRb6.js +0 -1
  383. package/studio-dist/client/_app/immutable/chunks/D_XTiylm2.js +0 -1
  384. package/studio-dist/client/_app/immutable/chunks/DaRv9jn22.js +0 -1
  385. package/studio-dist/client/_app/immutable/chunks/DaXb9i_E.js +0 -1
  386. package/studio-dist/client/_app/immutable/chunks/Dccf4VP2.js +0 -24
  387. package/studio-dist/client/_app/immutable/chunks/DdODs-Sb.js +0 -1
  388. package/studio-dist/client/_app/immutable/chunks/DdekYWer.js +0 -2
  389. package/studio-dist/client/_app/immutable/chunks/DeHaovsF.js +0 -1
  390. package/studio-dist/client/_app/immutable/chunks/DeRRkRO52.js +0 -1
  391. package/studio-dist/client/_app/immutable/chunks/DeWI5qCn.js +0 -1
  392. package/studio-dist/client/_app/immutable/chunks/DfivR-Md.js +0 -1
  393. package/studio-dist/client/_app/immutable/chunks/DgmxpSo7.js +0 -1
  394. package/studio-dist/client/_app/immutable/chunks/DhPLWrun2.js +0 -1
  395. package/studio-dist/client/_app/immutable/chunks/DhhrVdfi.js +0 -2
  396. package/studio-dist/client/_app/immutable/chunks/Djr2dbcc2.js +0 -37
  397. package/studio-dist/client/_app/immutable/chunks/DjuRo5vv.js +0 -1
  398. package/studio-dist/client/_app/immutable/chunks/Djz4EDzO.js +0 -1
  399. package/studio-dist/client/_app/immutable/chunks/DkRfaw-K2.js +0 -1
  400. package/studio-dist/client/_app/immutable/chunks/DksB5g4W2.js +0 -1
  401. package/studio-dist/client/_app/immutable/chunks/Dmqenb5z2.js +0 -1
  402. package/studio-dist/client/_app/immutable/chunks/DnbToVyf.js +0 -2
  403. package/studio-dist/client/_app/immutable/chunks/DpGZwlmj.js +0 -1
  404. package/studio-dist/client/_app/immutable/chunks/Dq0lE5C32.js +0 -1
  405. package/studio-dist/client/_app/immutable/chunks/Dq54XqHT2.js +0 -1
  406. package/studio-dist/client/_app/immutable/chunks/DqK84mbb.js +0 -1
  407. package/studio-dist/client/_app/immutable/chunks/DqjFtSJD.js +0 -2
  408. package/studio-dist/client/_app/immutable/chunks/DrKWWDpL.js +0 -1
  409. package/studio-dist/client/_app/immutable/chunks/DsQIgu-4.js +0 -1
  410. package/studio-dist/client/_app/immutable/chunks/DsqdgJHS2.js +0 -1
  411. package/studio-dist/client/_app/immutable/chunks/DtNkZUkq.js +0 -17
  412. package/studio-dist/client/_app/immutable/chunks/DutIls4V2.js +0 -1
  413. package/studio-dist/client/_app/immutable/chunks/DvxYFW4C.js +0 -1
  414. package/studio-dist/client/_app/immutable/chunks/Dwp-76GQ.js +0 -2
  415. package/studio-dist/client/_app/immutable/chunks/DxSZd548.js +0 -1
  416. package/studio-dist/client/_app/immutable/chunks/DxiUMhk0.js +0 -5
  417. package/studio-dist/client/_app/immutable/chunks/DxslLswf.js +0 -23
  418. package/studio-dist/client/_app/immutable/chunks/Dy7EjGgb2.js +0 -9
  419. package/studio-dist/client/_app/immutable/chunks/DyGQ_VXC.js +0 -3
  420. package/studio-dist/client/_app/immutable/chunks/DySe3kTV2.js +0 -1
  421. package/studio-dist/client/_app/immutable/chunks/DyzE2Uxw.js +0 -1
  422. package/studio-dist/client/_app/immutable/chunks/DzhuJaxE2.js +0 -2
  423. package/studio-dist/client/_app/immutable/chunks/FmMHyrh6.js +0 -1
  424. package/studio-dist/client/_app/immutable/chunks/Gxs0J274.js +0 -5
  425. package/studio-dist/client/_app/immutable/chunks/HwtzDYxN.js +0 -2
  426. package/studio-dist/client/_app/immutable/chunks/ITRz_Q7H2.js +0 -15
  427. package/studio-dist/client/_app/immutable/chunks/KDNP98XY2.js +0 -1
  428. package/studio-dist/client/_app/immutable/chunks/LmVjFhpk2.js +0 -1
  429. package/studio-dist/client/_app/immutable/chunks/MiAejGV_.js +0 -1
  430. package/studio-dist/client/_app/immutable/chunks/Ml4JR6Jz2.js +0 -2
  431. package/studio-dist/client/_app/immutable/chunks/NU5S3nNs2.js +0 -2
  432. package/studio-dist/client/_app/immutable/chunks/Oh5zPjv3.js +0 -2
  433. package/studio-dist/client/_app/immutable/chunks/QZkvJ9vi.js +0 -1
  434. package/studio-dist/client/_app/immutable/chunks/Rbn8UpBm.js +0 -1
  435. package/studio-dist/client/_app/immutable/chunks/SPX3gYwn2.js +0 -1
  436. package/studio-dist/client/_app/immutable/chunks/TX-23QW3.js +0 -3
  437. package/studio-dist/client/_app/immutable/chunks/UyeQuL132.js +0 -12
  438. package/studio-dist/client/_app/immutable/chunks/VQszoXcV.js +0 -1
  439. package/studio-dist/client/_app/immutable/chunks/VtZsEMxD.js +0 -1
  440. package/studio-dist/client/_app/immutable/chunks/W2IeK61p2.js +0 -1
  441. package/studio-dist/client/_app/immutable/chunks/Wadww7ZG.js +0 -1
  442. package/studio-dist/client/_app/immutable/chunks/WgfA1zWk2.js +0 -1
  443. package/studio-dist/client/_app/immutable/chunks/WxIgAS1f.js +0 -21
  444. package/studio-dist/client/_app/immutable/chunks/XrsBoOj9.js +0 -2
  445. package/studio-dist/client/_app/immutable/chunks/Y3PX4poR.js +0 -2
  446. package/studio-dist/client/_app/immutable/chunks/YxfwqiF32.js +0 -1
  447. package/studio-dist/client/_app/immutable/chunks/Z7uO1YaO.js +0 -1
  448. package/studio-dist/client/_app/immutable/chunks/_4ykQk_8.js +0 -1
  449. package/studio-dist/client/_app/immutable/chunks/_kRcZFVn.js +0 -1
  450. package/studio-dist/client/_app/immutable/chunks/aQNM7eVA2.js +0 -1
  451. package/studio-dist/client/_app/immutable/chunks/bHKz_Fb2.js +0 -45
  452. package/studio-dist/client/_app/immutable/chunks/bJRyRGSZ.js +0 -1
  453. package/studio-dist/client/_app/immutable/chunks/dlzF6lnR.js +0 -1
  454. package/studio-dist/client/_app/immutable/chunks/fjRbpfEr2.js +0 -26
  455. package/studio-dist/client/_app/immutable/chunks/imLk4if5.js +0 -3
  456. package/studio-dist/client/_app/immutable/chunks/lgRG0R-32.js +0 -1
  457. package/studio-dist/client/_app/immutable/chunks/mFhCjxQJ2.js +0 -1
  458. package/studio-dist/client/_app/immutable/chunks/mgnH6qYg.js +0 -1
  459. package/studio-dist/client/_app/immutable/chunks/n6M_5LoW.js +0 -1
  460. package/studio-dist/client/_app/immutable/chunks/nLIOiDZp2.js +0 -1
  461. package/studio-dist/client/_app/immutable/chunks/nab7WB3u2.js +0 -1
  462. package/studio-dist/client/_app/immutable/chunks/orUmAKoW2.js +0 -1
  463. package/studio-dist/client/_app/immutable/chunks/p-fLQDfY2.js +0 -63
  464. package/studio-dist/client/_app/immutable/chunks/s0-WkOGk2.js +0 -1
  465. package/studio-dist/client/_app/immutable/chunks/sPuXfbUF.js +0 -1
  466. package/studio-dist/client/_app/immutable/chunks/t4h0vrqR2.js +0 -2
  467. package/studio-dist/client/_app/immutable/chunks/uE83FKL-.js +0 -1
  468. package/studio-dist/client/_app/immutable/chunks/uzhXlm0g2.js +0 -1
  469. package/studio-dist/client/_app/immutable/chunks/vTrEsGlD2.js +0 -1
  470. package/studio-dist/client/_app/immutable/chunks/xJgCk3dx2.js +0 -28
  471. package/studio-dist/client/_app/immutable/chunks/z0Mt579s2.js +0 -13
  472. package/studio-dist/client/_app/immutable/entry/app.BoQ7cgT2.js +0 -2
  473. package/studio-dist/client/_app/immutable/entry/start.Cg1v8DU4.js +0 -1
  474. package/studio-dist/client/_app/immutable/nodes/25.ddZ1_EFk.js +0 -1
  475. package/studio-dist/client/_app/immutable/nodes/26.6OcmQbLV.js +0 -1
  476. package/studio-dist/client/_app/immutable/nodes/4.CCjOEwVU.js +0 -1
  477. package/studio-dist/server/chunks/0-CvsKDxQ6.js +0 -126
  478. package/studio-dist/server/chunks/1-ck_x2Hf0.js +0 -9
  479. package/studio-dist/server/chunks/20-DVU22np7.js +0 -142
  480. package/studio-dist/server/chunks/23-D_tUnnoc.js +0 -181
  481. package/studio-dist/server/chunks/24-CVlymvLF.js +0 -151
  482. package/studio-dist/server/chunks/AwsRestJsonProtocol-BZuoNBmL.js +0 -416
  483. package/studio-dist/server/chunks/UnionSerde-BflIkhKj.js +0 -2653
  484. package/studio-dist/server/chunks/_dispatch-ncuRztUQ.js +0 -5597
  485. package/studio-dist/server/chunks/_server.ts-4NyKAneX.js +0 -116
  486. package/studio-dist/server/chunks/_server.ts-7hGdxdEI.js +0 -136
  487. package/studio-dist/server/chunks/_server.ts-B6b3b-yA.js +0 -131
  488. package/studio-dist/server/chunks/_server.ts-BOgGqaZp.js +0 -144
  489. package/studio-dist/server/chunks/_server.ts-BV1HiKZ0.js +0 -120
  490. package/studio-dist/server/chunks/_server.ts-BWp3g6Cr.js +0 -110
  491. package/studio-dist/server/chunks/_server.ts-C5NF-UgC.js +0 -122
  492. package/studio-dist/server/chunks/_server.ts-CDMurH5m.js +0 -2301
  493. package/studio-dist/server/chunks/_server.ts-COJHCgbq.js +0 -127
  494. package/studio-dist/server/chunks/_server.ts-CUl-Utkt.js +0 -148
  495. package/studio-dist/server/chunks/_server.ts-D0GAFJRb.js +0 -156
  496. package/studio-dist/server/chunks/_server.ts-DA6p3pmi.js +0 -117
  497. package/studio-dist/server/chunks/_server.ts-DThYFaZj.js +0 -160
  498. package/studio-dist/server/chunks/_server.ts-D_3Pm0gr.js +0 -179
  499. package/studio-dist/server/chunks/_server.ts-DcHxdMsm.js +0 -144
  500. package/studio-dist/server/chunks/_server.ts-Dlfadh2I.js +0 -144
  501. package/studio-dist/server/chunks/_server.ts-JallJnps.js +0 -240
  502. package/studio-dist/server/chunks/_server.ts-NEFTbJpM.js +0 -142
  503. package/studio-dist/server/chunks/_server.ts-d-2NvRwX.js +0 -122
  504. package/studio-dist/server/chunks/_server.ts-rUWMLkIw.js +0 -146
  505. package/studio-dist/server/chunks/abort-events-CDRAJSqb.js +0 -30
  506. package/studio-dist/server/chunks/adapters-BkMgPNUM.js +0 -359
  507. package/studio-dist/server/chunks/adapters2-CQ3PzoaK.js +0 -28
  508. package/studio-dist/server/chunks/api-mode2-3W-I1-XO.js +0 -36
  509. package/studio-dist/server/chunks/api2-CmNQzb0b.js +0 -96
  510. package/studio-dist/server/chunks/attention-consolidate-CidG1jfH.js +0 -485
  511. package/studio-dist/server/chunks/audit3-DMO_fUGp.js +0 -52
  512. package/studio-dist/server/chunks/auto-extract-B84La1Vs.js +0 -34
  513. package/studio-dist/server/chunks/brain-consolidator-JGm6mzFf.js +0 -373
  514. package/studio-dist/server/chunks/brain-doctor-Dc2WqVbs.js +0 -311
  515. package/studio-dist/server/chunks/brain-embedding-Djw9ekXu.js +0 -42
  516. package/studio-dist/server/chunks/brain-lifecycle-BOOa876K.js +0 -969
  517. package/studio-dist/server/chunks/brain-maintenance-U6VvsvmK.js +0 -133
  518. package/studio-dist/server/chunks/brain-maintenance2-CwVSmfDT.js +0 -43
  519. package/studio-dist/server/chunks/brain-retrieval2-exR8mdgh.js +0 -751
  520. package/studio-dist/server/chunks/brain-search-CpSh-SNi.js +0 -48
  521. package/studio-dist/server/chunks/brain-search2-CwI2cXgg.js +0 -716
  522. package/studio-dist/server/chunks/brain-similarity-DI4yzm9e.js +0 -113
  523. package/studio-dist/server/chunks/brain-stdp2-BxSBIlSr.js +0 -960
  524. package/studio-dist/server/chunks/brain-writer-handlers-Dwu0QCAA.js +0 -188
  525. package/studio-dist/server/chunks/brain-writer-thread-6n7wI7Gy.js +0 -360
  526. package/studio-dist/server/chunks/branch-lock-Cq7zzmFK.js +0 -1118
  527. package/studio-dist/server/chunks/branch-lock2-CmDc4CZW.js +0 -45
  528. package/studio-dist/server/chunks/cancelled-child-waiver-audit-DkesrN83.js +0 -54
  529. package/studio-dist/server/chunks/catalog-model-resolver-Bas9qnoP.js +0 -9
  530. package/studio-dist/server/chunks/catalog-model-resolver2-Cexk2TN0.js +0 -237
  531. package/studio-dist/server/chunks/catalog-resolver-CLot3XJO.js +0 -260
  532. package/studio-dist/server/chunks/catalog-resolver2-JmKb91kY.js +0 -33
  533. package/studio-dist/server/chunks/chunk-DDP5xfzh.js +0 -39
  534. package/studio-dist/server/chunks/cleo-home-CCfe6kAQ.js +0 -64
  535. package/studio-dist/server/chunks/concrete-session2-bb_vxJ2N.js +0 -43
  536. package/studio-dist/server/chunks/config-DHj9CcFs.js +0 -386
  537. package/studio-dist/server/chunks/config2-F6PPIn7D.js +0 -35
  538. package/studio-dist/server/chunks/connections-BMGJVYcS.js +0 -98
  539. package/studio-dist/server/chunks/credential-pool-vF6NdtT9.js +0 -4600
  540. package/studio-dist/server/chunks/credentials-C7EJFf5O.js +0 -35
  541. package/studio-dist/server/chunks/credentials-store-CFygIuB2.js +0 -35
  542. package/studio-dist/server/chunks/cross-db-cleanup-1LWTUKPi.js +0 -147
  543. package/studio-dist/server/chunks/data-accessor-CWgVndbR.js +0 -72
  544. package/studio-dist/server/chunks/data-safety-central-DaFxK27G.js +0 -683
  545. package/studio-dist/server/chunks/decisions-CmVXV2-H.js +0 -574
  546. package/studio-dist/server/chunks/decisions2-XQsSYdxa.js +0 -48
  547. package/studio-dist/server/chunks/depends-waiver-audit-CUmlBYHx.js +0 -56
  548. package/studio-dist/server/chunks/dialectic-evaluator2-BOyyXhdI.js +0 -96
  549. package/studio-dist/server/chunks/dist-es2-DQy2Mjn_.js +0 -43
  550. package/studio-dist/server/chunks/dist-es3-CBygU4n5.js +0 -365
  551. package/studio-dist/server/chunks/dist-es4-CavbNu4B.js +0 -162
  552. package/studio-dist/server/chunks/dist-es5-Crpm8Wsl.js +0 -465
  553. package/studio-dist/server/chunks/dist-es6-CgePHzh4.js +0 -99
  554. package/studio-dist/server/chunks/dist-es7-k6c5GEd7.js +0 -311
  555. package/studio-dist/server/chunks/dist-es8-Bd9v0_pE.js +0 -91
  556. package/studio-dist/server/chunks/dist3-23bsJhRw.js +0 -27
  557. package/studio-dist/server/chunks/dist4-DmC1zSXi.js +0 -35618
  558. package/studio-dist/server/chunks/dual-scope-db-DKnWu1KM.js +0 -5672
  559. package/studio-dist/server/chunks/dual-scope-db2-Dht3luRw.js +0 -31
  560. package/studio-dist/server/chunks/duplicate-bypass-audit-BN5w1H2y.js +0 -36
  561. package/studio-dist/server/chunks/duplicate-detector-CaVFMKdE.js +0 -692
  562. package/studio-dist/server/chunks/edge-types-CgBvb0w1.js +0 -28
  563. package/studio-dist/server/chunks/embedding-local-xEnym8Ho.js +0 -92
  564. package/studio-dist/server/chunks/event-streams-Bi2p_fVo.js +0 -232
  565. package/studio-dist/server/chunks/execution-learning-BVCw7Plq.js +0 -278
  566. package/studio-dist/server/chunks/exodus-BBuuN6aA.js +0 -2594
  567. package/studio-dist/server/chunks/externalDataInterceptor-C3C4cObe.js +0 -21
  568. package/studio-dist/server/chunks/extraction-gate-DDNBq7gu.js +0 -48
  569. package/studio-dist/server/chunks/extraction-gate2-D77EZBQ6.js +0 -375
  570. package/studio-dist/server/chunks/getSSOTokenFromFile-yZAJxDci.js +0 -21
  571. package/studio-dist/server/chunks/governor2-CtfV3wfX.js +0 -923
  572. package/studio-dist/server/chunks/graph-auto-populate-Dmsr9ZJM.js +0 -42
  573. package/studio-dist/server/chunks/graph-auto-populate2-Cz0qeebM.js +0 -156
  574. package/studio-dist/server/chunks/graph-memory-bridge-CY8ft_d7.js +0 -43
  575. package/studio-dist/server/chunks/graph-memory-bridge2-Cd0XZwqc.js +0 -429
  576. package/studio-dist/server/chunks/handler-helpers-AANBGA_p.js +0 -49
  577. package/studio-dist/server/chunks/hash-Cm6yMET4.js +0 -14
  578. package/studio-dist/server/chunks/health-monitor-FepUZN1m.js +0 -106
  579. package/studio-dist/server/chunks/identity-DRpurt56.js +0 -30
  580. package/studio-dist/server/chunks/identity2-DeAB5RXE.js +0 -114
  581. package/studio-dist/server/chunks/index-61916rmV.js +0 -632
  582. package/studio-dist/server/chunks/index-DAgVDouG.js +0 -268
  583. package/studio-dist/server/chunks/index-Dtt_h58T.js +0 -2116
  584. package/studio-dist/server/chunks/indexes-DZ52grq6.js +0 -615
  585. package/studio-dist/server/chunks/json-Bfixam3g.js +0 -126
  586. package/studio-dist/server/chunks/learnings-D6Y3YGMU.js +0 -47
  587. package/studio-dist/server/chunks/learnings2-MwBdR9vb.js +0 -171
  588. package/studio-dist/server/chunks/lifecycle-ops2-V2CR5-7X.js +0 -121
  589. package/studio-dist/server/chunks/list-BhObczvn.js +0 -229
  590. package/studio-dist/server/chunks/living-brain2-j0B_Ir8j.js +0 -285
  591. package/studio-dist/server/chunks/llm-backend-resolver-D4ANvUPL.js +0 -295
  592. package/studio-dist/server/chunks/llm-extraction-DVCu4heR.js +0 -408
  593. package/studio-dist/server/chunks/loadSharedConfigFiles-umvW7kuz.js +0 -73
  594. package/studio-dist/server/chunks/loadSso-iidd5iKx.js +0 -599
  595. package/studio-dist/server/chunks/local-model-fit-B0TxifnX.js +0 -53
  596. package/studio-dist/server/chunks/local-model-fit2-BMqo6GJm.js +0 -2664
  597. package/studio-dist/server/chunks/lock-CA7d6lj7.js +0 -57
  598. package/studio-dist/server/chunks/logger-DQIoyZbq.js +0 -34
  599. package/studio-dist/server/chunks/memory-BUbicBbE.js +0 -618
  600. package/studio-dist/server/chunks/memory-accessor-i3P-RHSg.js +0 -42
  601. package/studio-dist/server/chunks/memory-accessor2-B981tHDR.js +0 -467
  602. package/studio-dist/server/chunks/memory-bridge-BOlEWg9w.js +0 -424
  603. package/studio-dist/server/chunks/memory-sqlite2-B7dq8doO.js +0 -42
  604. package/studio-dist/server/chunks/model-runner2-B71xjp4y.js +0 -43
  605. package/studio-dist/server/chunks/mvi-helpers-BNsJ8ZpQ.js +0 -59
  606. package/studio-dist/server/chunks/nexus-plasticity-BTfU8cW_.js +0 -269
  607. package/studio-dist/server/chunks/nexus-risk-audit-p379-TU5.js +0 -54
  608. package/studio-dist/server/chunks/nexus-schema-zeygY8OD.js +0 -11
  609. package/studio-dist/server/chunks/nexus-schema2-DP0Qd7CA.js +0 -444
  610. package/studio-dist/server/chunks/nexus-sqlite-BVNIpwc7.js +0 -36
  611. package/studio-dist/server/chunks/nexus-sqlite2-BBfY2xnY.js +0 -1103
  612. package/studio-dist/server/chunks/node-http-handler-CJI8kn7X.js +0 -386
  613. package/studio-dist/server/chunks/observe-Bo9veHGe.js +0 -47
  614. package/studio-dist/server/chunks/observe2-wzO0MaMY.js +0 -245
  615. package/studio-dist/server/chunks/observer-reflector-BwNOuq1d.js +0 -62
  616. package/studio-dist/server/chunks/observer-reflector2-ggtC1hmk.js +0 -478
  617. package/studio-dist/server/chunks/on-open-Wpcw7DV4.js +0 -740
  618. package/studio-dist/server/chunks/open-cleo-db--8sYNaYY.js +0 -70
  619. package/studio-dist/server/chunks/parseKnownFiles-Dg0pMFcT.js +0 -18
  620. package/studio-dist/server/chunks/parseUrl-qgGfl-Vh.js +0 -120
  621. package/studio-dist/server/chunks/paths-CV7S5-Zm.js +0 -30012
  622. package/studio-dist/server/chunks/patterns-lh5kn13I.js +0 -48
  623. package/studio-dist/server/chunks/patterns2-CzIcT-ai.js +0 -177
  624. package/studio-dist/server/chunks/pipeline-stage-IB_pOft-.js +0 -63
  625. package/studio-dist/server/chunks/prediction-D1lSGJ4c.js +0 -217
  626. package/studio-dist/server/chunks/premature-close-audit-VG09uAco.js +0 -53
  627. package/studio-dist/server/chunks/project-context-BjiqfEBi.js +0 -166
  628. package/studio-dist/server/chunks/provider-registry2-Cu7rAF0R.js +0 -35
  629. package/studio-dist/server/chunks/quality-feedback-CuCGEI6S.js +0 -371
  630. package/studio-dist/server/chunks/quality-scoring-CCPuRQmJ.js +0 -160
  631. package/studio-dist/server/chunks/query-ops-DCrjbZb9.js +0 -78
  632. package/studio-dist/server/chunks/query-promise-BkPmGPJy.js +0 -1257
  633. package/studio-dist/server/chunks/readFile-CxwXhymG.js +0 -31
  634. package/studio-dist/server/chunks/registry-CL2gN1zd.js +0 -27
  635. package/studio-dist/server/chunks/registry2-DoPYJnUW.js +0 -233
  636. package/studio-dist/server/chunks/registry3-BajEb-ll.js +0 -42
  637. package/studio-dist/server/chunks/registry4-DCqffZkT.js +0 -142
  638. package/studio-dist/server/chunks/retry-B3oEKYpp.js +0 -105
  639. package/studio-dist/server/chunks/role-executor-CC8BU54L.js +0 -25379
  640. package/studio-dist/server/chunks/role-resolver-D9QaDT0e.js +0 -6544
  641. package/studio-dist/server/chunks/role-resolver2-nkhzS1oy.js +0 -37
  642. package/studio-dist/server/chunks/rollup-CiefjN_Y.js +0 -194
  643. package/studio-dist/server/chunks/safety-data-accessor-CniDmGJO.js +0 -276
  644. package/studio-dist/server/chunks/service-connections-accessor-yBCdcgU-.js +0 -282
  645. package/studio-dist/server/chunks/session-factory-vbengc42.js +0 -96
  646. package/studio-dist/server/chunks/session-grade-BF4ZZtN_.js +0 -244
  647. package/studio-dist/server/chunks/session-journal-Bvey70Ur.js +0 -235
  648. package/studio-dist/server/chunks/session-narrative-BirZINSU.js +0 -304
  649. package/studio-dist/server/chunks/session-store--N_xHxUH.js +0 -557
  650. package/studio-dist/server/chunks/session-store2-DAM-eVTH.js +0 -43
  651. package/studio-dist/server/chunks/sessions-33DD4hkt.js +0 -2273
  652. package/studio-dist/server/chunks/sessions2-BHswKRDP.js +0 -50
  653. package/studio-dist/server/chunks/sigil-B-RznFXz.js +0 -33
  654. package/studio-dist/server/chunks/sigil2-jRMG5DuR.js +0 -47
  655. package/studio-dist/server/chunks/signin-BAsW3mM8.js +0 -644
  656. package/studio-dist/server/chunks/sleep-consolidation-BnSwXrvq.js +0 -823
  657. package/studio-dist/server/chunks/specialists-B_ZbpQlK.js +0 -441
  658. package/studio-dist/server/chunks/sqlite-Bm5LzbPs.js +0 -5977
  659. package/studio-dist/server/chunks/sqlite-backup-CFG1-b2e.js +0 -42
  660. package/studio-dist/server/chunks/sqlite-data-accessor-DD_RFX6r.js +0 -987
  661. package/studio-dist/server/chunks/sqlite-data-accessor2-CRmgNBnq.js +0 -44
  662. package/studio-dist/server/chunks/sqlite-native-BwlIqtbs.js +0 -42
  663. package/studio-dist/server/chunks/sqlite2-CUPut2fh.js +0 -42
  664. package/studio-dist/server/chunks/src2-DK8DKufK.js +0 -290
  665. package/studio-dist/server/chunks/src3-BJjf7XRG.js +0 -798
  666. package/studio-dist/server/chunks/src4-DNleK_t_.js +0 -28
  667. package/studio-dist/server/chunks/sso-oidc-eUvwseuL.js +0 -861
  668. package/studio-dist/server/chunks/storage-B9UA3BHR.js +0 -198
  669. package/studio-dist/server/chunks/sts-g7LDMLEd.js +0 -4655
  670. package/studio-dist/server/chunks/surprisal-CwTfWQi8.js +0 -224
  671. package/studio-dist/server/chunks/surprisal-tree-7dfHsuw1.js +0 -230
  672. package/studio-dist/server/chunks/system-resolver2-Bzhue_zQ.js +0 -53
  673. package/studio-dist/server/chunks/tasks-SHX7UPGY.js +0 -19694
  674. package/studio-dist/server/chunks/tasks-schema2-CTMoQKQy.js +0 -42
  675. package/studio-dist/server/chunks/temporal-supersession-DP4GPG_B.js +0 -298
  676. package/studio-dist/server/chunks/token-cAhAD9f9.js +0 -139
  677. package/studio-dist/server/chunks/token-util-D6drEz8_.js +0 -353
  678. package/studio-dist/server/chunks/token-util2-8UPSGvbb.js +0 -97
  679. package/studio-dist/server/chunks/transcript-scanner-kJWhWmlg.js +0 -53
  680. package/studio-dist/server/chunks/transformers.node-_xbxmK5p.js +0 -38475
  681. package/studio-dist/server/chunks/typed-query-l1D_QElt.js +0 -18
  682. package/studio-dist/server/chunks/unique-constraint-BZrrwgwc.js +0 -88
  683. package/studio-dist/server/chunks/update-B2YVBZG0.js +0 -1594
  684. package/studio-dist/server/chunks/user-profile-B61ZhVmC.js +0 -89
  685. package/studio-dist/server/chunks/utils-BPSZyajG.js +0 -1176
  686. package/studio-dist/server/chunks/validation-rules-CE27rtoF.js +0 -44
  687. package/studio-dist/server/chunks/zod-DsAeKNLm.js +0 -141
  688. /package/studio-dist/client/_app/immutable/chunks/{CQCxd1p9.js → B8WnZMYa.js} +0 -0
  689. /package/studio-dist/client/_app/immutable/chunks/{D13Quv9e2.js → B_0_YCYG.js} +0 -0
  690. /package/studio-dist/client/_app/immutable/chunks/{djL6V-tr.js → CqgtdAx_.js} +0 -0
  691. /package/studio-dist/client/_app/immutable/chunks/{_FU7h_8p2.js → KrUPZzXZ.js} +0 -0
@@ -1 +0,0 @@
1
- import{C as e,D as t,E as n,O as r,S as i,T as a,w as o,x as s}from"./CNToUR3P.js";import{C as c,T as l,_ as u,d,f,g as p,i as m,n as h,v as g,w as _}from"./DHQfJeLU.js";import{t as v}from"./BWfLryGm.js";var y=class extends a{async serializeRequest(e,n,r){let a=n&&typeof n==`object`?n:{},o=this.serializer,c={},l={},u=await r.endpoint(),d=s.of(e?.input),f=[],p=[],m=!1,h,g=new v({protocol:``,hostname:``,port:void 0,path:``,fragment:void 0,query:c,headers:l,body:void 0});if(u){this.updateServiceEndpoint(g,u),this.setHostPrefix(g,e,a);let t=i(e.traits);if(t.http){g.method=t.http[0];let[e,n]=t.http[1].split(`?`);g.path==`/`?g.path=e:g.path+=e;let r=new URLSearchParams(n??``);for(let[e,t]of r)c[e]=t}}for(let[e,n]of d.structIterator()){let r=n.getMergedTraits()??{},i=a[e];if(i==null&&!n.isIdempotencyToken()){if(r.httpLabel&&(g.path.includes(`{${e}+}`)||g.path.includes(`{${e}}`)))throw Error(`No value provided for input HTTP label: ${e}.`);continue}if(r.httpPayload)n.isStreaming()?n.isStructSchema()?a[e]&&(h=await this.serializeEventStream({eventStream:a[e],requestSchema:d})):h=i:(o.write(n,i),h=o.flush());else if(r.httpLabel){o.write(n,i);let r=o.flush();g.path.includes(`{${e}+}`)?g.path=g.path.replace(`{${e}+}`,r.split(`/`).map(t).join(`/`)):g.path.includes(`{${e}}`)&&(g.path=g.path.replace(`{${e}}`,t(r)))}else if(r.httpHeader)o.write(n,i),l[r.httpHeader.toLowerCase()]=String(o.flush());else if(typeof r.httpPrefixHeaders==`string`)for(let e in i){let t=i[e],a=r.httpPrefixHeaders+e;o.write([n.getValueSchema(),{httpHeader:a}],t),l[a.toLowerCase()]=o.flush()}else r.httpQuery||r.httpQueryParams?this.serializeQuery(n,i,c):(m=!0,f.push(e),p.push(n))}if(m&&a){let[e,t]=(d.getName(!0)??`#Unknown`).split(`#`),n=d.getSchema()[6],r=[3,e,t,d.getMergedTraits(),f,p,void 0];n?r[6]=n:r.pop(),o.write(r,a),h=o.flush()}return g.headers=l,g.query=c,g.body=h,g}serializeQuery(e,t,n){let r=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(let r in t)if(!(r in n)){let a=t[r],o=e.getValueSchema();Object.assign(o.getMergedTraits(),{...i,httpQuery:r,httpQueryParams:void 0}),this.serializeQuery(o,a,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,o=[];for(let n of t){r.write([e.getValueSchema(),i],n);let t=r.flush();(a||t!==void 0)&&o.push(t)}n[i.httpQuery]=o}else r.write([e,i],t),n[i.httpQuery]=r.flush()}async deserializeResponse(e,t,n){let i=this.deserializer,a=s.of(e.output),o={};if(n.statusCode>=300){let a=await r(n.body,t);throw a.byteLength>0&&Object.assign(o,await i.read(15,a)),await this.handleError(e,t,n,o,this.deserializeMetadata(n)),Error(`@smithy/core/protocols - HTTP Protocol error handler failed to throw.`)}for(let e in n.headers){let t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}let c=await this.deserializeHttpMessage(a,t,n,o);if(c.length){let e=await r(n.body,t);if(e.byteLength>0){let t=await i.read(a,e);for(let e of c)t[e]!=null&&(o[e]=t[e])}}else c.discardResponseBody&&await r(n.body,t);return o.$metadata=this.deserializeMetadata(n),o}async deserializeHttpMessage(e,t,n,i,a){let o;o=i instanceof Set?a:i;let c=!0,l=this.deserializer,u=s.of(e),p=[];for(let[e,i]of u.structIterator()){let a=i.getMemberTraits();if(a.httpPayload){if(c=!1,i.isStreaming())i.isStructSchema()?o[e]=await this.deserializeEventStream({response:n,responseSchema:u}):o[e]=m(n.body);else if(n.body){let a=await r(n.body,t);a.byteLength>0&&(o[e]=await l.read(i,a))}}else if(a.httpHeader){let t=String(a.httpHeader).toLowerCase(),r=n.headers[t];if(r!=null)if(i.isListSchema()){let n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let a;a=n.isTimestampSchema()&&n.getSchema()===4?f(r,`,`,2):d(r);let s=[];for(let e of a)s.push(await l.read(n,e.trim()));o[e]=s}else o[e]=await l.read(i,r)}else if(a.httpPrefixHeaders!==void 0){o[e]={};for(let t in n.headers)if(t.startsWith(a.httpPrefixHeaders)){let r=n.headers[t],s=i.getValueSchema();s.getMergedTraits().httpHeader=t,o[e][t.slice(a.httpPrefixHeaders.length)]=await l.read(s,r)}}else a.httpResponseCode?o[e]=n.statusCode:p.push(e)}return p.discardResponseBody=c,p}},b=class extends n{codecDeserializer;stringDeserializer;constructor(t,n){super(),this.codecDeserializer=t,this.stringDeserializer=new e(n)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){let n=s.of(e),r=n.getMergedTraits(),i=this.serdeContext?.utf8Encoder??c;if(r.httpHeader||r.httpResponseCode)return this.stringDeserializer.read(n,i(t));if(r.httpPayload){if(n.isBlobSchema()){let e=this.serdeContext?.utf8Decoder??l;return typeof t==`string`?e(t):t}else if(n.isStringSchema())return`byteLength`in t?i(t):t}return this.codecDeserializer.read(n,t)}},x=class extends n{settings;stringBuffer=``;constructor(e){super(),this.settings=e}write(e,t){let n=s.of(e);switch(typeof t){case`object`:if(t===null){this.stringBuffer=`null`;return}if(n.isTimestampSchema()){if(!(t instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(!0)}`);switch(o(n,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(`.000Z`,`Z`);break;case 6:this.stringBuffer=g(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn(`Missing timestamp format, using epoch seconds`,t),this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&`byteLength`in t){this.stringBuffer=(this.serdeContext?.base64Encoder??_)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e=``;for(let r of t){this.write([n.getValueSchema(),n.getMergedTraits()],r);let t=this.flush(),i=n.getValueSchema().isTimestampSchema()?t:p(t);e!==``&&(e+=`, `),e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case`string`:let e=n.getMergedTraits().mediaType,r=t;if(e&&((e===`application/json`||e.endsWith(`+json`))&&(r=u.from(r)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??_)(r.toString());return}this.stringBuffer=t;break;default:n.isIdempotencyToken()?this.stringBuffer=h():this.stringBuffer=String(t)}}flush(){let e=this.stringBuffer;return this.stringBuffer=``,e}},S=class{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new x(t)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){let n=s.of(e),r=n.getMergedTraits();if(r.httpHeader||r.httpLabel||r.httpQuery){this.stringSerializer.write(n,t),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}};export{b as n,y as r,S as t};
@@ -1 +0,0 @@
1
- import{Kn as e,Un as t,Wn as n}from"./CdqDTozW.js";function r(e,t,n,r,i,a,o,s){return{code:e,name:t,category:n,message:r,httpStatus:i,recoverable:a,lafsCode:o,fix:s}}var i=new Map([[t.SUCCESS,r(t.SUCCESS,`SUCCESS`,`INTERNAL`,`Success`,200,!1,`E_CLEO_SUCCESS`)],[t.GENERAL_ERROR,r(t.GENERAL_ERROR,`GENERAL_ERROR`,`INTERNAL`,`General error`,500,!0,`E_CLEO_GENERAL`,`Check command syntax and parameters`)],[t.INVALID_INPUT,r(t.INVALID_INPUT,`INVALID_INPUT`,`VALIDATION`,`Invalid input`,400,!1,`E_CLEO_INVALID_INPUT`,`Verify command parameters`)],[t.FILE_ERROR,r(t.FILE_ERROR,`FILE_ERROR`,`INTERNAL`,`File system error`,500,!1,`E_CLEO_FILE_ERROR`,`Check file permissions and disk space`)],[t.NOT_FOUND,r(t.NOT_FOUND,`NOT_FOUND`,`NOT_FOUND`,`Task or resource not found`,404,!1,`E_CLEO_NOT_FOUND`)],[t.DEPENDENCY_ERROR,r(t.DEPENDENCY_ERROR,`DEPENDENCY_ERROR`,`VALIDATION`,`Dependency error`,422,!1,`E_CLEO_DEPENDENCY`)],[t.VALIDATION_ERROR,r(t.VALIDATION_ERROR,`VALIDATION_ERROR`,`VALIDATION`,`Validation error`,422,!1,`E_CLEO_VALIDATION`)],[t.LOCK_TIMEOUT,r(t.LOCK_TIMEOUT,`LOCK_TIMEOUT`,`CONFLICT`,`File lock timeout`,409,!0,`E_CLEO_LOCK_TIMEOUT`,`Wait for concurrent operation to complete, then retry`)],[t.CONFIG_ERROR,r(t.CONFIG_ERROR,`CONFIG_ERROR`,`VALIDATION`,`Configuration error`,422,!1,`E_CLEO_CONFIG`,`Check configuration file: .cleo/config.json`)],[t.PARENT_NOT_FOUND,r(t.PARENT_NOT_FOUND,`PARENT_NOT_FOUND`,`NOT_FOUND`,`Parent task not found`,404,!1,`E_CLEO_PARENT_NOT_FOUND`,`Create parent task first or remove --parent flag`)],[t.DEPTH_EXCEEDED,r(t.DEPTH_EXCEEDED,`DEPTH_EXCEEDED`,`VALIDATION`,`Max hierarchy depth exceeded`,422,!1,`E_CLEO_DEPTH_EXCEEDED`)],[t.SIBLING_LIMIT,r(t.SIBLING_LIMIT,`SIBLING_LIMIT`,`VALIDATION`,`Max sibling count exceeded`,422,!1,`E_CLEO_SIBLING_LIMIT`)],[t.INVALID_PARENT_TYPE,r(t.INVALID_PARENT_TYPE,`INVALID_PARENT_TYPE`,`VALIDATION`,`Invalid parent task type`,422,!1,`E_CLEO_INVALID_PARENT_TYPE`)],[t.CIRCULAR_REFERENCE,r(t.CIRCULAR_REFERENCE,`CIRCULAR_REFERENCE`,`VALIDATION`,`Circular dependency detected`,422,!1,`E_CLEO_CIRCULAR_REF`)],[t.ORPHAN_DETECTED,r(t.ORPHAN_DETECTED,`ORPHAN_DETECTED`,`VALIDATION`,`Orphan task detected`,422,!1,`E_CLEO_ORPHAN`)],[t.HAS_CHILDREN,r(t.HAS_CHILDREN,`HAS_CHILDREN`,`CONFLICT`,`Task has children`,409,!1,`E_CLEO_HAS_CHILDREN`)],[t.TASK_COMPLETED,r(t.TASK_COMPLETED,`TASK_COMPLETED`,`CONFLICT`,`Task already completed`,409,!1,`E_CLEO_TASK_COMPLETED`)],[t.CASCADE_FAILED,r(t.CASCADE_FAILED,`CASCADE_FAILED`,`INTERNAL`,`Cascade operation failed`,500,!1,`E_CLEO_CASCADE_FAILED`)],[t.HAS_DEPENDENTS,r(t.HAS_DEPENDENTS,`HAS_DEPENDENTS`,`CONFLICT`,`Task has dependents`,409,!1,`E_CLEO_HAS_DEPENDENTS`)],[t.CHECKSUM_MISMATCH,r(t.CHECKSUM_MISMATCH,`CHECKSUM_MISMATCH`,`CONFLICT`,`Checksum mismatch`,409,!0,`E_CLEO_CHECKSUM_MISMATCH`)],[t.CONCURRENT_MODIFICATION,r(t.CONCURRENT_MODIFICATION,`CONCURRENT_MODIFICATION`,`CONFLICT`,`Concurrent modification`,409,!0,`E_CLEO_CONCURRENT_MOD`)],[t.ID_COLLISION,r(t.ID_COLLISION,`ID_COLLISION`,`CONFLICT`,`ID collision`,409,!0,`E_CLEO_ID_COLLISION`)],[t.SESSION_EXISTS,r(t.SESSION_EXISTS,`SESSION_EXISTS`,`CONFLICT`,`Session already exists`,409,!1,`E_CLEO_SESSION_EXISTS`)],[t.SESSION_NOT_FOUND,r(t.SESSION_NOT_FOUND,`SESSION_NOT_FOUND`,`NOT_FOUND`,`Session not found`,404,!1,`E_CLEO_SESSION_NOT_FOUND`)],[t.SCOPE_CONFLICT,r(t.SCOPE_CONFLICT,`SCOPE_CONFLICT`,`CONFLICT`,`Session scope conflict`,409,!1,`E_CLEO_SCOPE_CONFLICT`)],[t.SCOPE_INVALID,r(t.SCOPE_INVALID,`SCOPE_INVALID`,`VALIDATION`,`Invalid scope`,422,!1,`E_CLEO_SCOPE_INVALID`)],[t.TASK_NOT_IN_SCOPE,r(t.TASK_NOT_IN_SCOPE,`TASK_NOT_IN_SCOPE`,`VALIDATION`,`Task not in session scope`,422,!1,`E_CLEO_TASK_NOT_IN_SCOPE`)],[t.TASK_CLAIMED,r(t.TASK_CLAIMED,`TASK_CLAIMED`,`CONFLICT`,`Task claimed by another session`,409,!1,`E_CLEO_TASK_CLAIMED`)],[t.SESSION_REQUIRED,r(t.SESSION_REQUIRED,`SESSION_REQUIRED`,`CONTRACT`,`Active session required`,428,!1,`E_CLEO_SESSION_REQUIRED`)],[t.SESSION_CLOSE_BLOCKED,r(t.SESSION_CLOSE_BLOCKED,`SESSION_CLOSE_BLOCKED`,`CONFLICT`,`Session close blocked`,409,!1,`E_CLEO_SESSION_CLOSE_BLOCKED`)],[t.ACTIVE_TASK_REQUIRED,r(t.ACTIVE_TASK_REQUIRED,`ACTIVE_TASK_REQUIRED`,`CONTRACT`,`Active task required`,428,!1,`E_CLEO_ACTIVE_TASK_REQUIRED`)],[t.NOTES_REQUIRED,r(t.NOTES_REQUIRED,`NOTES_REQUIRED`,`VALIDATION`,`Notes required`,422,!1,`E_CLEO_NOTES_REQUIRED`)],[t.VERIFICATION_INIT_FAILED,r(t.VERIFICATION_INIT_FAILED,`VERIFICATION_INIT_FAILED`,`VALIDATION`,`Verification initialization failed`,422,!1,`E_CLEO_VERIFICATION_INIT_FAILED`)],[t.GATE_UPDATE_FAILED,r(t.GATE_UPDATE_FAILED,`GATE_UPDATE_FAILED`,`VALIDATION`,`Gate update failed`,422,!1,`E_CLEO_GATE_UPDATE_FAILED`)],[t.INVALID_GATE,r(t.INVALID_GATE,`INVALID_GATE`,`VALIDATION`,`Invalid gate name`,422,!1,`E_CLEO_INVALID_GATE`)],[t.INVALID_AGENT,r(t.INVALID_AGENT,`INVALID_AGENT`,`VALIDATION`,`Invalid agent name`,422,!1,`E_CLEO_INVALID_AGENT`)],[t.MAX_ROUNDS_EXCEEDED,r(t.MAX_ROUNDS_EXCEEDED,`MAX_ROUNDS_EXCEEDED`,`VALIDATION`,`Maximum implementation rounds exceeded`,422,!1,`E_CLEO_MAX_ROUNDS_EXCEEDED`)],[t.GATE_DEPENDENCY,r(t.GATE_DEPENDENCY,`GATE_DEPENDENCY`,`VALIDATION`,`Gate dependency not met`,422,!1,`E_CLEO_GATE_DEPENDENCY`)],[t.VERIFICATION_LOCKED,r(t.VERIFICATION_LOCKED,`VERIFICATION_LOCKED`,`CONFLICT`,`Verification locked`,409,!1,`E_CLEO_VERIFICATION_LOCKED`)],[t.ROUND_MISMATCH,r(t.ROUND_MISMATCH,`ROUND_MISMATCH`,`VALIDATION`,`Round number mismatch`,422,!1,`E_CLEO_ROUND_MISMATCH`)],[t.CONTEXT_WARNING,r(t.CONTEXT_WARNING,`CONTEXT_WARNING`,`CONTRACT`,`Context warning threshold reached`,429,!1,`E_CLEO_CONTEXT_WARNING`)],[t.CONTEXT_CAUTION,r(t.CONTEXT_CAUTION,`CONTEXT_CAUTION`,`CONTRACT`,`Context caution threshold reached`,429,!1,`E_CLEO_CONTEXT_CAUTION`)],[t.CONTEXT_CRITICAL,r(t.CONTEXT_CRITICAL,`CONTEXT_CRITICAL`,`CONTRACT`,`Context critical threshold reached`,429,!1,`E_CLEO_CONTEXT_CRITICAL`)],[t.CONTEXT_EMERGENCY,r(t.CONTEXT_EMERGENCY,`CONTEXT_EMERGENCY`,`CONTRACT`,`Context emergency threshold reached`,429,!1,`E_CLEO_CONTEXT_EMERGENCY`)],[t.CONTEXT_STALE,r(t.CONTEXT_STALE,`CONTEXT_STALE`,`CONTRACT`,`Context state file is stale`,429,!1,`E_CLEO_CONTEXT_STALE`)],[t.PROTOCOL_MISSING,r(t.PROTOCOL_MISSING,`PROTOCOL_MISSING`,`CONTRACT`,`Protocol missing`,422,!1,`E_CLEO_PROTOCOL_MISSING`)],[t.INVALID_RETURN_MESSAGE,r(t.INVALID_RETURN_MESSAGE,`INVALID_RETURN_MESSAGE`,`CONTRACT`,`Invalid return message`,422,!1,`E_CLEO_INVALID_RETURN`)],[t.MANIFEST_ENTRY_MISSING,r(t.MANIFEST_ENTRY_MISSING,`MANIFEST_ENTRY_MISSING`,`CONTRACT`,`Manifest entry missing`,422,!1,`E_CLEO_MANIFEST_MISSING`)],[t.SPAWN_VALIDATION_FAILED,r(t.SPAWN_VALIDATION_FAILED,`SPAWN_VALIDATION_FAILED`,`VALIDATION`,`Spawn validation failed`,422,!0,`E_CLEO_SPAWN_FAILED`)],[t.AUTONOMOUS_BOUNDARY,r(t.AUTONOMOUS_BOUNDARY,`AUTONOMOUS_BOUNDARY`,`CONTRACT`,`Autonomous boundary reached`,403,!1,`E_CLEO_AUTONOMOUS_BOUNDARY`)],[t.HANDOFF_REQUIRED,r(t.HANDOFF_REQUIRED,`HANDOFF_REQUIRED`,`CONTRACT`,`Human handoff required`,403,!1,`E_CLEO_HANDOFF_REQUIRED`)],[t.RESUME_FAILED,r(t.RESUME_FAILED,`RESUME_FAILED`,`INTERNAL`,`Session resume failed`,500,!0,`E_CLEO_RESUME_FAILED`)],[t.CONCURRENT_SESSION,r(t.CONCURRENT_SESSION,`CONCURRENT_SESSION`,`CONFLICT`,`Concurrent session detected`,409,!1,`E_CLEO_CONCURRENT_SESSION`)],[t.NEXUS_NOT_INITIALIZED,r(t.NEXUS_NOT_INITIALIZED,`NEXUS_NOT_INITIALIZED`,`INTERNAL`,`Nexus not initialized`,500,!1,`E_CLEO_NEXUS_NOT_INITIALIZED`,`Initialize Nexus: cleo nexus init`)],[t.NEXUS_PROJECT_NOT_FOUND,r(t.NEXUS_PROJECT_NOT_FOUND,`NEXUS_PROJECT_NOT_FOUND`,`NOT_FOUND`,`Project not found in global registry`,404,!1,`E_CLEO_NEXUS_PROJECT_NOT_FOUND`)],[t.NEXUS_PERMISSION_DENIED,r(t.NEXUS_PERMISSION_DENIED,`NEXUS_PERMISSION_DENIED`,`PERMISSION`,`Insufficient permission for cross-project operation`,403,!1,`E_CLEO_NEXUS_PERMISSION_DENIED`)],[t.NEXUS_INVALID_SYNTAX,r(t.NEXUS_INVALID_SYNTAX,`NEXUS_INVALID_SYNTAX`,`VALIDATION`,`Invalid task reference syntax`,422,!1,`E_CLEO_NEXUS_INVALID_SYNTAX`)],[t.NEXUS_SYNC_FAILED,r(t.NEXUS_SYNC_FAILED,`NEXUS_SYNC_FAILED`,`TRANSIENT`,`Failed to sync project metadata`,503,!0,`E_CLEO_NEXUS_SYNC_FAILED`)],[t.NEXUS_REGISTRY_CORRUPT,r(t.NEXUS_REGISTRY_CORRUPT,`NEXUS_REGISTRY_CORRUPT`,`INTERNAL`,`Nexus registry corrupted`,500,!1,`E_CLEO_NEXUS_REGISTRY_CORRUPT`)],[t.NEXUS_PROJECT_EXISTS,r(t.NEXUS_PROJECT_EXISTS,`NEXUS_PROJECT_EXISTS`,`CONFLICT`,`Project already registered`,409,!1,`E_CLEO_NEXUS_PROJECT_EXISTS`)],[t.NEXUS_QUERY_FAILED,r(t.NEXUS_QUERY_FAILED,`NEXUS_QUERY_FAILED`,`TRANSIENT`,`Cross-project query failed`,503,!0,`E_CLEO_NEXUS_QUERY_FAILED`)],[t.NEXUS_GRAPH_ERROR,r(t.NEXUS_GRAPH_ERROR,`NEXUS_GRAPH_ERROR`,`INTERNAL`,`Graph operation error`,500,!0,`E_CLEO_NEXUS_GRAPH_ERROR`)],[t.NEXUS_IMPACT_CRITICAL,r(t.NEXUS_IMPACT_CRITICAL,`NEXUS_IMPACT_CRITICAL`,`VALIDATION`,`Code change has critical impact risk`,422,!1,`E_CLEO_NEXUS_IMPACT_CRITICAL`,`Either fix the CRITICAL symbols or pass --acknowledge-risk "<reason>" to bypass`)],[t.LIFECYCLE_GATE_FAILED,r(t.LIFECYCLE_GATE_FAILED,`LIFECYCLE_GATE_FAILED`,`CONTRACT`,`Lifecycle gate failed`,422,!1,`E_CLEO_LIFECYCLE_GATE`)],[t.AUDIT_MISSING,r(t.AUDIT_MISSING,`AUDIT_MISSING`,`CONTRACT`,`Audit trail missing`,422,!1,`E_CLEO_AUDIT_MISSING`)],[t.CIRCULAR_VALIDATION,r(t.CIRCULAR_VALIDATION,`CIRCULAR_VALIDATION`,`CONTRACT`,`Circular validation detected`,422,!1,`E_CLEO_CIRCULAR_VALIDATION`)],[t.LIFECYCLE_TRANSITION_INVALID,r(t.LIFECYCLE_TRANSITION_INVALID,`LIFECYCLE_TRANSITION_INVALID`,`CONTRACT`,`Invalid lifecycle transition`,422,!1,`E_CLEO_LIFECYCLE_INVALID`)],[t.PROVENANCE_REQUIRED,r(t.PROVENANCE_REQUIRED,`PROVENANCE_REQUIRED`,`CONTRACT`,`Provenance metadata required`,422,!1,`E_CLEO_PROVENANCE_REQUIRED`)],[t.ARTIFACT_TYPE_UNKNOWN,r(t.ARTIFACT_TYPE_UNKNOWN,`ARTIFACT_TYPE_UNKNOWN`,`VALIDATION`,`Unknown artifact type`,422,!1,`E_CLEO_ARTIFACT_TYPE_UNKNOWN`)],[t.ARTIFACT_VALIDATION_FAILED,r(t.ARTIFACT_VALIDATION_FAILED,`ARTIFACT_VALIDATION_FAILED`,`VALIDATION`,`Artifact validation failed`,422,!1,`E_CLEO_ARTIFACT_VALIDATION_FAILED`)],[t.ARTIFACT_BUILD_FAILED,r(t.ARTIFACT_BUILD_FAILED,`ARTIFACT_BUILD_FAILED`,`INTERNAL`,`Artifact build failed`,500,!0,`E_CLEO_ARTIFACT_BUILD_FAILED`)],[t.ARTIFACT_PUBLISH_FAILED,r(t.ARTIFACT_PUBLISH_FAILED,`ARTIFACT_PUBLISH_FAILED`,`INTERNAL`,`Artifact publish failed`,500,!0,`E_CLEO_ARTIFACT_PUBLISH_FAILED`)],[t.ARTIFACT_ROLLBACK_FAILED,r(t.ARTIFACT_ROLLBACK_FAILED,`ARTIFACT_ROLLBACK_FAILED`,`INTERNAL`,`Artifact rollback failed`,500,!1,`E_CLEO_ARTIFACT_ROLLBACK_FAILED`)],[t.PROVENANCE_CONFIG_INVALID,r(t.PROVENANCE_CONFIG_INVALID,`PROVENANCE_CONFIG_INVALID`,`VALIDATION`,`Provenance config invalid`,422,!1,`E_CLEO_PROVENANCE_CONFIG_INVALID`)],[t.SIGNING_KEY_MISSING,r(t.SIGNING_KEY_MISSING,`SIGNING_KEY_MISSING`,`VALIDATION`,`Signing key missing`,422,!1,`E_CLEO_SIGNING_KEY_MISSING`)],[t.SIGNATURE_INVALID,r(t.SIGNATURE_INVALID,`SIGNATURE_INVALID`,`VALIDATION`,`Signature invalid`,422,!1,`E_CLEO_SIGNATURE_INVALID`)],[t.DIGEST_MISMATCH,r(t.DIGEST_MISMATCH,`DIGEST_MISMATCH`,`VALIDATION`,`Digest mismatch`,422,!1,`E_CLEO_DIGEST_MISMATCH`)],[t.ATTESTATION_INVALID,r(t.ATTESTATION_INVALID,`ATTESTATION_INVALID`,`VALIDATION`,`Attestation invalid`,422,!1,`E_CLEO_ATTESTATION_INVALID`)],[t.ADAPTER_NOT_FOUND,r(t.ADAPTER_NOT_FOUND,`ADAPTER_NOT_FOUND`,`NOT_FOUND`,`Provider adapter not found`,404,!1,`E_CLEO_ADAPTER_NOT_FOUND`)],[t.ADAPTER_INIT_FAILED,r(t.ADAPTER_INIT_FAILED,`ADAPTER_INIT_FAILED`,`INTERNAL`,`Provider adapter initialization failed`,500,!0,`E_CLEO_ADAPTER_INIT_FAILED`)],[t.ADAPTER_HOOK_FAILED,r(t.ADAPTER_HOOK_FAILED,`ADAPTER_HOOK_FAILED`,`INTERNAL`,`Provider adapter hook execution failed`,500,!0,`E_CLEO_ADAPTER_HOOK_FAILED`)],[t.ADAPTER_SPAWN_FAILED,r(t.ADAPTER_SPAWN_FAILED,`ADAPTER_SPAWN_FAILED`,`INTERNAL`,`Provider adapter process spawn failed`,500,!0,`E_CLEO_ADAPTER_SPAWN_FAILED`)],[t.ADAPTER_INSTALL_FAILED,r(t.ADAPTER_INSTALL_FAILED,`ADAPTER_INSTALL_FAILED`,`INTERNAL`,`Provider adapter installation failed`,500,!1,`E_CLEO_ADAPTER_INSTALL_FAILED`)],[t.NO_DATA,r(t.NO_DATA,`NO_DATA`,`INTERNAL`,`No data to process`,200,!1,`E_CLEO_NO_DATA`)],[t.ALREADY_EXISTS,r(t.ALREADY_EXISTS,`ALREADY_EXISTS`,`CONFLICT`,`Resource already exists`,200,!1,`E_CLEO_ALREADY_EXISTS`)],[t.NO_CHANGE,r(t.NO_CHANGE,`NO_CHANGE`,`INTERNAL`,`No changes needed`,200,!1,`E_CLEO_NO_CHANGE`)],[t.TESTS_SKIPPED,r(t.TESTS_SKIPPED,`TESTS_SKIPPED`,`INTERNAL`,`Tests skipped`,200,!1,`E_CLEO_TESTS_SKIPPED`)]]);function a(e){return i.get(e)}function o(e){let n=a(e);if(n)return n.category;if(e>=1&&e<=9)switch(e){case t.NOT_FOUND:return`NOT_FOUND`;case t.VALIDATION_ERROR:return`VALIDATION`;case t.CONFIG_ERROR:return`VALIDATION`;case t.LOCK_TIMEOUT:return`CONFLICT`;default:return`INTERNAL`}return e>=10&&e<=19?`VALIDATION`:e>=20&&e<=29?`CONFLICT`:e>=30&&e<=39?`CONTRACT`:e>=40&&e<=47?`VALIDATION`:e>=50&&e<=54||e>=60&&e<=67?`CONTRACT`:e>=70&&e<=79?`INTERNAL`:e>=80&&e<=84?`CONTRACT`:e>=85&&e<=89||e>=90&&e<=94?`VALIDATION`:`INTERNAL`}function s(e){let t=a(e);if(t)return t.lafsCode;let r=n(e);return`E_${o(e)}_${r}`}var c=class extends Error{code;fix;alternatives;details;constructor(e,t,n){super(t,{cause:n?.cause}),this.name=`CleoError`,this.code=e,this.fix=n?.fix,this.alternatives=n?.alternatives,this.details=n?.details}toLAFSError(){return{code:s(this.code),message:this.message,category:o(this.code),retryable:e(this.code),retryAfterMs:null,details:{exitCode:this.code,name:n(this.code),...this.fix&&{fix:this.fix},...this.alternatives&&{alternatives:this.alternatives},...this.details&&{fieldDetails:this.details}}}}toProblemDetails(){let t=a(this.code);return{type:`urn:cleo:error:${this.code}`,title:n(this.code),status:t?.httpStatus??this.getHttpStatus(),detail:this.message,instance:void 0,extensions:{code:this.code,lafsCode:s(this.code),category:o(this.code),recoverable:e(this.code),...this.fix&&{fix:this.fix},...this.alternatives&&{alternatives:this.alternatives},...this.details&&{fieldDetails:this.details}}}}toJSON(){return{success:!1,error:{code:this.code,name:n(this.code),message:this.message,...this.fix&&{fix:this.fix},...this.alternatives&&{alternatives:this.alternatives},...this.details&&{details:this.details}}}}getHttpStatus(){let e=this.code;return e===0||e>=100?200:e===t.NOT_FOUND||e===t.PARENT_NOT_FOUND||e===t.SESSION_NOT_FOUND?404:e>=20&&e<=29||e===t.LOCK_TIMEOUT?409:e>=50&&e<=54?429:e>=1&&e<=9?500:422}};export{c as t};
@@ -1 +0,0 @@
1
- import"./CdqDTozW.js";
@@ -1,8 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dq0lE5C32.js","./fjRbpfEr2.js","./DrKWWDpL.js","./DsQIgu-4.js","./DtNkZUkq.js","./Cc8xxDr5.js","./DOqzs8kl2.js","./DYP3EJMY.js","./DF_4OWhj.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./Bbzm48C52.js","./DaXb9i_E.js","./B2_6RrlL2.js","./DXpCX2Hi.js","./BYJC6_MM.js","./Ml4JR6Jz2.js","./CsvKLHQQ2.js","./KDNP98XY2.js","./DfivR-Md.js","./Chpy9ca7.js","./C8MZnWta.js","./C5Nlanei.js","./CHkCZrnr.js","./D2pa4reh.js","./C1vWmhYe.js","./DTxtWPkw.js","./BK17qSHw.js","./DO2GztVm.js","./BQZx6brg.js","./CV4ck7fz.js","./VQszoXcV.js","./D93KpglN.js","./C2oZaDvt.js","./7UXYlaI1.js","./CKoQ7Ko5.js","./orUmAKoW2.js","./D6UDnATk2.js","./DVVCJYjz.js","./vTrEsGlD2.js","./CySLscL2.js","./9bLMgKwu2.js","./Ckp90om52.js","./CnJf5tML.js","./Oh5zPjv3.js","./DzhuJaxE2.js","./NU5S3nNs2.js","./CeYPAoY9.js","./BHciFt922.js","./Djz4EDzO.js","./Dccf4VP2.js","./CFb4Co_K.js","./CqCka5yX2.js","./DXDSWRw-.js"])))=>i.map(i=>d[i]);
2
- import{s as e}from"./DrKWWDpL.js";import{n as t,t as n}from"./DsQIgu-4.js";import{t as r}from"./DYP3EJMY.js";import{n as i,r as a}from"./BAtZg5v5.js";import{s as o}from"./Chpy9ca7.js";import{n as s}from"./9bLMgKwu2.js";import{r as c,t as l}from"./DzhuJaxE2.js";import{r as u,t as d}from"./BHciFt922.js";import{i as f}from"./DeRRkRO52.js";var p=e(r(),1);t();var m=[{keywords:[`bug`,`fix`,`error`,`crash`],type:`bugfix`},{keywords:[`refactor`,`rename`,`extract`,`move`],type:`refactor`},{keywords:[`add`,`create`,`implement`,`new`],type:`feature`},{keywords:[`decide`,`chose`,`pick`,`instead`],type:`decision`},{keywords:[`update`,`change`,`modify`,`upgrade`],type:`change`}];function h(e){let t=e.toLowerCase();for(let{keywords:e,type:n}of m)for(let r of e)if(t.includes(r))return n;return`discovery`}var g=0;async function _(e,t,r){let{sessionStatus:i}=await n(async()=>{let{sessionStatus:e}=await import(`./Dq0lE5C32.js`);return{sessionStatus:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]),import.meta.url),a=await i(e,{});if(!a)return;let o=a.taskWork?.taskId;o&&await r.addLink({memoryType:`observation`,memoryId:t,taskId:o,linkType:`produced_by`})}async function v(e,t){let{text:r,title:m,type:v,project:y,sourceSessionId:b,sourceType:x,agent:S,sourceConfidence:C,crossRef:w,attachmentRefs:T,origin:E,provenanceChain:D,_skipGate:O,_skipQueue:k}=t;if(!r?.trim())throw Error(`Observation text is required`);if(!k){let r=b;if(b){let t,n=null;try{n=await o(e),await i(b,n)&&(t=!0)}catch{}if(t!==!0)try{t=await a(b,n,e)}catch{}t===!1&&(r=void 0)}let{enqueueBrainWrite:s}=await n(async()=>{let{enqueueBrainWrite:e}=await import(`./Ckp90om52.js`);return{enqueueBrainWrite:e}},__vite__mapDeps([43,2,3,8,7,26,23,4,5,17,6,9,10,11,14,27,28]),import.meta.url),c=await s({kind:`observe`,projectRoot:e,params:{...t,sourceSessionId:r}});if(c.kind!==`observe`)throw Error(`Unexpected writer result kind: ${c.kind}`);return c.result}if(!O){let{verifyCandidate:t}=await n(async()=>{let{verifyCandidate:e}=await import(`./CnJf5tML.js`);return{verifyCandidate:e}},__vite__mapDeps([44,45,2,3,46,47,42,4,31,5,32,8,7,9,10,11,26,23,17,6,14,27,28,29,33,48,49]),import.meta.url),i=m??r.slice(0,120),a=C??(x===`manual`?`owner`:x===`session-debrief`?`task-outcome`:`agent`),o=await t(e,{text:r,title:i,memoryType:`episodic`,tier:`short`,confidence:.6,source:x===`manual`?`manual`:`transcript`,sourceSessionId:b,sourceConfidence:a,trusted:a===`owner`||a===`task-outcome`});if(o.action!==`stored`){let e=new Date().toISOString().replace(`T`,` `).slice(0,19);return{id:o.id??`O-gate-${Date.now().toString(36)}`,type:v??`observation`,createdAt:e}}}let A=v??h(r),j=m??r.slice(0,120),M=new Date().toISOString().replace(`T`,` `).slice(0,19),N=C??(x===`manual`?`owner`:x===`session-debrief`?`task-outcome`:`agent`),P=r.match(/T\d+/g)??[],F=new Set(P).size>=2,I=Array.isArray(w)&&w.length>=1,L=F||I?`medium`:`short`,R=N===`owner`||N===`task-outcome`,z=(0,p.createHash)(`sha256`).update(r.trim().toLowerCase()).digest(`hex`).slice(0,16),{getBrainNativeDb:B}=await n(async()=>{let{getBrainNativeDb:e}=await import(`./Djz4EDzO.js`);return{getBrainNativeDb:e}},__vite__mapDeps([50,31,2,3,4,5,32,8,7,9,10,11,26,23,17,6,14,27,28,29,33]),import.meta.url),V=B(),H=b??null,U=f({text:r,title:j,sourceConfidence:N,memoryTier:L}),W=`O-${Date.now().toString(36)}-${(g++%1e3).toString(36)}`,G=await s(e),K=await G.addObservation({id:W,type:A,title:j,narrative:r,contentHash:z,project:y??null,sourceSessionId:H,sourceType:x??`agent`,agent:S??null,qualityScore:U,createdAt:M,memoryTier:L,memoryType:`episodic`,sourceConfidence:N,verified:R,...T&&T.length>0?{attachmentsJson:JSON.stringify(T)}:{},...E==null?{}:{origin:E},...D&&D.length>0?{provenanceChain:JSON.stringify(D)}:{}});c()&&setImmediate(()=>{l(r).then(e=>{e&&V&&V.prepare(`INSERT OR REPLACE INTO brain_embeddings (id, embedding) VALUES (?, ?)`).run(W,Buffer.from(e.buffer))}).catch(()=>{})}),A===`decision`&&n(async()=>{let{refreshMemoryBridge:e}=await import(`./Dccf4VP2.js`);return{refreshMemoryBridge:e}},__vite__mapDeps([51,2,3,40,9,10,11,7,14,20,4,21,5,22,23,24,8,17,6,25,26,27,28,29,30,15,16,31,32,33,34,35,36,37,38,39,41,52,53]),import.meta.url).then(({refreshMemoryBridge:t})=>t(e)).catch(()=>{}),H&&_(e,K.id,G).catch(()=>{});try{await u(e,`observation:${K.id}`,`observation`,K.title.substring(0,200),K.qualityScore??.5,K.narrative??K.title,{sourceType:K.sourceType,agent:K.agent??void 0}),H&&(await u(e,`session:${H}`,`session`,H,.8,``),await d(e,`observation:${K.id}`,`session:${H}`,`produced_by`,1,`auto:observe`))}catch{}return{id:K.id,type:K.type,createdAt:K.createdAt}}async function y(e,t){if(!c())return{processed:0,skipped:0,errors:0};let{getBrainDb:r,getBrainNativeDb:i}=await n(async()=>{let{getBrainDb:e,getBrainNativeDb:t}=await import(`./Djz4EDzO.js`);return{getBrainDb:e,getBrainNativeDb:t}},__vite__mapDeps([50,31,2,3,4,5,32,8,7,9,10,11,26,23,17,6,14,27,28,29,33]),import.meta.url);await r(e);let a=i(e);if(!a)return{processed:0,skipped:0,errors:0};let o=t?.batchSize??50,{onProgress:s}=t??{},u=0,d=0,f=0,{typedAll:p}=await n(async()=>{let{typedAll:e}=await import(`./DXDSWRw-.js`);return{typedAll:e}},__vite__mapDeps([54,48]),import.meta.url),m=p(a.prepare(`
3
- SELECT o.id, o.narrative, o.title
4
- FROM brain_observations o
5
- LEFT JOIN brain_embeddings e ON o.id = e.id
6
- WHERE e.id IS NULL AND o.narrative IS NOT NULL
7
- ORDER BY o.created_at DESC
8
- `)),h=m.length,g=0;for(let e=0;e<m.length;e+=o){let t=m.slice(e,e+o);for(let e of t){try{let t=await l(e.narrative||e.title);t?(a.prepare(`INSERT OR REPLACE INTO brain_embeddings (id, embedding) VALUES (?, ?)`).run(e.id,Buffer.from(t.buffer)),u++):d++}catch{f++}g++,s?.(g,h)}}return{processed:u,skipped:d,errors:f}}export{y as n,v as t};
@@ -1 +0,0 @@
1
- import{$ as e,A as t,B as n,C as r,Ct as i,D as a,E as o,F as s,G as c,H as l,I as u,J as d,K as f,L as p,M as m,N as h,O as g,P as _,Q as v,R as y,S as b,St as x,T as S,U as C,V as w,W as T,X as E,Y as D,Z as O,_ as k,_t as A,a as j,at as M,b as N,bt as P,c as F,ct as I,d as L,dt as R,et as z,f as B,ft as V,g as H,gt as U,h as W,ht as G,i as K,it as q,j as J,k as Y,l as X,lt as Z,m as Q,mt as $,n as ee,nt as te,o as ne,ot as re,p as ie,pt as ae,q as oe,r as se,rt as ce,s as le,st as ue,t as de,tt as fe,u as pe,ut as me,v as he,vt as ge,w as _e,x as ve,xt as ye,y as be,yt as xe,z as Se}from"./CqCka5yX2.js";export{oe as AGENT_ACTIONS,ae as BUDGET_EXCEEDED_CODE,ve as CATEGORY_ACTION_MAP,Z as CircuitBreaker,me as CircuitBreakerError,R as CircuitBreakerRegistry,p as ComplianceError,O as LAFSFlagError,b as LAFS_SCHEMA_URL,r as LafsError,d as MVI_LEVELS,le as PROBLEM_DETAILS_CONTENT_TYPE,P as TokenEstimator,_e as WarningCollector,$ as applyBudgetEnforcement,k as applyFieldFilter,y as assertCompliance,T as assertEnvelope,G as checkBudget,V as circuitBreakerMiddleware,U as composeMiddleware,Se as createComplianceMiddleware,L as createDatabaseHealthCheck,S as createEnvelope,B as createExternalServiceHealthCheck,o as currentWarningCollector,ye as defaultEstimator,J as describeOperation,_ as detectDeprecatedEnvelopeFields,m as discoveryFastifyPlugin,h as discoveryMiddleware,s as emitDeprecationWarnings,n as enforceCompliance,X as estimateProjectedTokens,x as estimateTokens,i as estimateTokensJSON,he as extractFieldFromEnvelope,be as extractFieldFromResult,de as forceShutdown,e as getAgentAction,re as getChecksForTier,ue as getConformanceProfiles,a as getCurrentWarningCollector,u as getDeprecationRegistry,z as getDocUrl,fe as getErrorRegistry,te as getRegistryCode,ee as getShutdownState,ce as getTransportMapping,q as getTypeUri,se as gracefulShutdown,ie as healthCheck,D as isAgentAction,E as isMVILevel,f as isNativeAvailable,M as isRegisteredErrorCode,K as isShuttingDown,F as lafsErrorToProblemDetails,Q as livenessProbe,g as parseLafsResponse,pe as projectEnvelope,Y as pushWarning,W as readinessProbe,N as resolveFieldExtraction,H as resolveFlags,v as resolveOutputFormat,l as runEnvelopeConformance,C as runFlagConformance,j as shutdownMiddleware,I as validateConformanceProfiles,c as validateEnvelope,ne as waitForShutdown,A as withBudget,ge as withBudgetSync,w as withCompliance,t as withWarningCollector,xe as wrapWithBudget};
@@ -1 +0,0 @@
1
- function e(e){return typeof e==`object`&&!!e&&(`name`in e&&e.name===`AbortError`||`message`in e&&String(e.message).includes(`FetchRequestCanceledException`))}var t=e=>{if(e instanceof Error)return e;if(typeof e==`object`&&e){try{if(Object.prototype.toString.call(e)===`[object Error]`){let t=Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)},n=class extends Error{},r=class e extends n{constructor(t,n,r,i,a){super(`${e.makeMessage(t,n,r)}`),this.status=t,this.headers=i,this.requestID=i?.get(`request-id`),this.error=n,this.type=a??null}static makeMessage(e,t,n){let r=t?.message?typeof t.message==`string`?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?`${e} ${r}`:e?`${e} status code (no body)`:r||`(no status code or body)`}static generate(n,r,i,o){if(!n||!o)return new a({message:i,cause:t(r)});let h=r,g=h?.error?.type;return n===400?new s(n,h,i,o,g):n===401?new c(n,h,i,o,g):n===403?new l(n,h,i,o,g):n===404?new u(n,h,i,o,g):n===409?new d(n,h,i,o,g):n===422?new f(n,h,i,o,g):n===429?new p(n,h,i,o,g):n>=500?new m(n,h,i,o,g):new e(n,h,i,o,g)}},i=class extends r{constructor({message:e}={}){super(void 0,void 0,e||`Request was aborted.`,void 0)}},a=class extends r{constructor({message:e,cause:t}){super(void 0,void 0,e||`Connection error.`,void 0),t&&(this.cause=t)}},o=class extends a{constructor({message:e}={}){super({message:e??`Request timed out.`})}},s=class extends r{},c=class extends r{},l=class extends r{},u=class extends r{},d=class extends r{},f=class extends r{},p=class extends r{},m=class extends r{},h=/^[a-z][a-z0-9+.-]*:/i,g=e=>h.test(e),_=e=>(_=Array.isArray,_(e)),v=_;function y(e){return typeof e==`object`?e??{}:{}}function b(e){if(!e)return!0;for(let t in e)return!1;return!0}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var S=(e,t)=>{if(typeof t!=`number`||!Number.isInteger(t))throw new n(`${e} must be an integer`);if(t<0)throw new n(`${e} must be a positive integer`);return t},C=e=>{try{return JSON.parse(e)}catch{return}},w=(e,t)=>{let n=e[t];return delete e[t],n};export{e as C,t as S,m as _,y as a,p as b,S as c,r as d,i as f,d as g,s as h,v as i,a as l,c as m,g as n,w as o,n as p,b as r,C as s,x as t,o as u,u as v,f as x,l as y};
@@ -1,6 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Wadww7ZG.js","./DYP3EJMY.js","./DrKWWDpL.js","./B3_X3Lhd2.js","./CqCka5yX2.js","./84Rhmi6r.js","./DsQIgu-4.js","./DtNkZUkq.js","./C5Nlanei.js","./Cc8xxDr5.js","./C8MZnWta.js","./CHkCZrnr.js","./VQszoXcV.js","./xJgCk3dx2.js","./D1QfC4hu2.js","./Bmv63uXe2.js","./D3QsWcIw2.js","./DksB5g4W2.js","./Dmqenb5z2.js","./BzjhD6Hr2.js","./D1yrHAn72.js","./D7w7HllH.js","./DB5ifLM-.js","./DXoHaH4a.js"])))=>i.map(i=>d[i]);
2
- import{s as e}from"./DrKWWDpL.js";import{n as t,t as n}from"./DsQIgu-4.js";import{t as r}from"./DYP3EJMY.js";import{Cn as i,In as a,Jn as o,Sn as s,Tt as c,Yn as l,jn as u,kt as d,ln as f,vt as p,xt as ee,zt as te}from"./D7w7HllH.js";import{i as ne,n as re,r as ie,t as ae}from"./CxbvtjIH.js";import{a as oe,i as se,o as ce,r as le}from"./xJgCk3dx2.js";import{t as ue}from"./D1QfC4hu2.js";import{$ as de,A as fe,B as pe,C as m,D as me,E as h,F as he,G as ge,H as _e,I as ve,J as g,K as ye,L as be,M as xe,N as Se,O as _,P as Ce,Q as we,R as v,S as Te,T as Ee,U as De,V as Oe,W as ke,X as Ae,Y as je,Z as Me,_ as Ne,_t as Pe,at as Fe,b as Ie,ct as Le,d as Re,dt as ze,et as Be,f as Ve,ft as He,g as y,gt as Ue,h as We,ht as Ge,it as Ke,j as b,k as qe,lt as Je,m as Ye,mt as Xe,nt as Ze,ot as Qe,p as $e,pt as et,q as tt,rt as nt,st as rt,t as it,tt as at,ut as ot,v as st,w as ct,x as lt,y as ut,z as dt}from"./BzpWnq0c2.js";import{n as ft,t as x}from"./D3QsWcIw2.js";import"./B0xCM1wN2.js";var S=o([u(a(),l()),c(l()),a(),s(),d(),ee()]),C=a(),pt=a(),w=i({role:p([`system`,`user`,`assistant`]),content:a()}),T=i({system:a().optional(),messages:c(w).min(1,`At least one message is required`),temperature:s().min(0).max(2).optional(),max_tokens:s().int().positive().optional()}),E={"prompt-v1":T};function D(e){return e in E}function O(e){return E[e]}var mt=i({content:a().min(1,`Content is required`),format:p([`json`,`text`,`markdown`]).optional().default(`text`),schema:a().optional(),metadata:u(a(),l()).optional()}),ht=i({slug:a().min(1,`Document slug is required`)}),gt=i({query:a().min(1,`Search query is required`),slugs:c(a().min(1)).min(1,`At least one slug is required`)});function k(e){return e.issues.map(e=>({path:e.path.join(`.`),message:e.message,code:e.code}))}function A(e,t){let n;if(typeof e==`string`)try{n=JSON.parse(e)}catch(e){return{success:!1,errors:[{path:``,message:`Invalid JSON: ${e instanceof Error?e.message:`Unknown error`}`,code:`invalid_json`}]}}else n=e;let r=S.safeParse(n);if(!r.success)return{success:!1,errors:k(r.error)};if(t){if(!D(t))return{success:!1,errors:[{path:`schema`,message:`Unknown schema '${t}'. Available schemas: ${Object.keys(E).join(`, `)}`,code:`unknown_schema`}]};let e=O(t);if(e){let t=e.safeParse(n);return t.success?{success:!0,data:t.data,format:`json`}:{success:!1,errors:k(t.error)}}}return{success:!0,data:r.data,format:`json`}}function j(e){let t=C.safeParse(e);return t.success?{success:!0,data:t.data,format:`text`}:{success:!1,errors:k(t.error)}}function _t(e){return b(e)}var vt=5*1024*1024,yt=64*1024;function M(e,t,n){let r=typeof n==`string`?{schemaName:n}:n??{},i=r.maxBytes??5242880;if(i>0&&typeof e==`string`){let t=Buffer.byteLength(e,`utf-8`);if(t>i){let e=(i/(1024*1024)).toFixed(1);return{success:!1,errors:[{path:``,message:`Content size ${(t/(1024*1024)).toFixed(2)} MB exceeds maximum ${e} MB`,code:`content_too_large`}]}}}if((r.rejectBinary??!0)&&typeof e==`string`&&m(e))return{success:!1,errors:[{path:``,message:`Content contains binary control characters (0x00-0x08). Only text content is accepted.`,code:`binary_content`}]};let a=r.maxLineBytes??65536;if(a>0&&typeof e==`string`){let t=v(e,a);if(t!==0)return{success:!1,errors:[{path:``,message:`Line near position ${t} exceeds maximum line length of ${(a/1024).toFixed(0)} KB`,code:`line_too_long`}]}}switch(t){case`json`:return A(e,r.schemaName);case`text`:case`markdown`:return j(e);default:return{success:!1,errors:[{path:`format`,message:`Invalid format '${t}'. Must be 'json', 'text', or 'markdown'`,code:`invalid_format`}]}}}function bt(e,t){return typeof e==`string`?M(e,_t(e),t):{success:!1,errors:[{path:``,message:`Content must be a string`,code:`invalid_type`}]}}var xt=class{cache;maxSize;defaultTtl;stats;constructor(e={}){this.cache=new Map,this.maxSize=e.maxSize??1e3,this.defaultTtl=e.ttl??1440*60*1e3,this.stats={hits:0,misses:0}}get(e){let t=this.cache.get(e);if(!t){this.stats.misses++;return}if(Date.now()>t.expiresAt){this.cache.delete(e),this.stats.misses++;return}return this.cache.delete(e),this.cache.set(e,t),this.stats.hits++,t.value}set(e,t,n){let r=n??this.defaultTtl,i={value:t,expiresAt:Date.now()+r};if(this.cache.delete(e),this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e!==void 0&&this.cache.delete(e)}this.cache.set(e,i)}delete(e){this.cache.delete(e)}clear(){this.cache.clear(),this.stats.hits=0,this.stats.misses=0}size(){let e=Date.now();for(let[t,n]of this.cache.entries())e>n.expiresAt&&this.cache.delete(t);return this.cache.size}has(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),!1):!0:!1}getStats(){let e=this.stats.hits+this.stats.misses;return{hits:this.stats.hits,misses:this.stats.misses,size:this.size(),maxSize:this.maxSize,hitRate:e>0?parseFloat((this.stats.hits/e*100).toFixed(2)):0}}resetStats(){this.stats.hits=0,this.stats.misses=0}},St=e(r(),1);function Ct(e,t){return Ie(e.slug,e.agentId,e.conversationId,e.expiresAt,t)}function N(e,t,n){return lt(e.slug,e.agentId,e.conversationId,e.expiresAt,t,n)}function P(e,t){let n=t.signatureLength??16,r=N(e,t.secret,n),i=new URL(I(e.slug,t.pathPrefix),t.baseUrl);return i.searchParams.set(`agent`,e.agentId),i.searchParams.set(`conv`,e.conversationId),i.searchParams.set(`exp`,String(e.expiresAt)),i.searchParams.set(`sig`,r),i.toString()}function wt(e,t){let n=typeof e==`string`?new URL(e):e,r=L(n),i=n.searchParams.get(`agent`),a=n.searchParams.get(`conv`),o=n.searchParams.get(`exp`),s=n.searchParams.get(`sig`);if(!r||!i||!a||!o||!s)return{valid:!1,reason:`missing_params`};let c=parseInt(o,10);if(isNaN(c)||R(c))return{valid:!1,reason:`expired`};let l={slug:r,agentId:i,conversationId:a,expiresAt:c},u=N(l,t,s.length),d=Buffer.from(s,`utf-8`),f=Buffer.from(u,`utf-8`);return d.length!==f.length||!(0,St.timingSafeEqual)(d,f)?{valid:!1,reason:`invalid_signature`}:{valid:!0,params:l}}function Tt(e,t){return st(e.slug,e.agentId,e.conversationId,e.orgId,e.expiresAt,t)}function F(e,t,n){return ut(e.slug,e.agentId,e.conversationId,e.orgId,e.expiresAt,t,n)}function Et(e,t){let n=t.signatureLength??32,r=F(e,t.secret,n),i=new URL(I(e.slug,t.pathPrefix),t.baseUrl);return i.searchParams.set(`agent`,e.agentId),i.searchParams.set(`conv`,e.conversationId),i.searchParams.set(`org`,e.orgId),i.searchParams.set(`exp`,String(e.expiresAt)),i.searchParams.set(`sig`,r),i.toString()}function Dt(e,t){let n=typeof e==`string`?new URL(e):e,r=L(n),i=n.searchParams.get(`agent`),a=n.searchParams.get(`conv`),o=n.searchParams.get(`org`),s=n.searchParams.get(`exp`),c=n.searchParams.get(`sig`);if(!r||!i||!a||!o||!s||!c)return{valid:!1,reason:`missing_params`};let l=parseInt(s,10);if(isNaN(l)||R(l))return{valid:!1,reason:`expired`};let u={slug:r,agentId:i,conversationId:a,orgId:o,expiresAt:l},d=F(u,t,c.length),f=Buffer.from(c,`utf-8`),p=Buffer.from(d,`utf-8`);return f.length!==p.length||!(0,St.timingSafeEqual)(f,p)?{valid:!1,reason:`invalid_signature`}:{valid:!0,params:u,orgId:o}}function Ot(e,t,n=3600*1e3){return P({...e,expiresAt:Date.now()+n},t)}function kt(e){return qe(e)}function I(e,t=``){let n=t.replace(/\/+$/,``).replace(/^([^/])/,`/$1`);return n?`${n}/${e}`:`/${e}`}function L(e){return e.pathname.split(`/`).filter(Boolean).at(-1)??``}function R(e){return e==null?!1:tt(e)}var At=new Set([`POST`,`PUT`,`DELETE`,`PATCH`]),jt={maxDocumentSize:10*1024*1024,maxPatchSize:1*1024*1024,maxBatchSize:50,maxVersionsPerDocument:1e3,maxDocumentsPerUser:1e4,maxWebhooksPerUser:20,maxMergeSources:10},z={1:{version:1,deprecated:!1}},Mt=1,Nt=Math.max(...Object.keys(z).map(Number)),Pt=[`references`,`depends_on`,`derived_from`,`supersedes`,`related`],Ft=`
3
-
4
- `,It=`llmtxt_`,Lt=50,Rt=15,zt={owner:[`read`,`write`,`delete`,`manage`,`approve`],editor:[`read`,`write`,`approve`],viewer:[`read`]};t();async function B(t,r,i){let a=Buffer.byteLength(t,`utf-8`),o=Math.ceil(a/4),s=await y(t),c=s.length,l=c>0?a/c:1,{createHash:u}=await n(async()=>{let{createHash:t}=await import(`./Wadww7ZG.js`).then(t=>e(t.default,1));return{createHash:t}},__vite__mapDeps([0,1,2]),import.meta.url),d=u(`sha256`).update(t).digest(`hex`);return{meta:{sessionId:r,agentId:i,createdAt:new Date().toISOString(),originalSize:a,compressedSize:c,compressionRatio:l,tokens:o,contentHash:d},data:s}}async function V(t,r){let i=await _(t);if(r){let{createHash:t}=await n(async()=>{let{createHash:t}=await import(`./Wadww7ZG.js`).then(t=>e(t.default,1));return{createHash:t}},__vite__mapDeps([0,1,2]),import.meta.url),a=t(`sha256`).update(i).digest(`hex`);if(a!==r)throw Error(`Snapshot integrity check failed: expected ${r.slice(0,16)}..., got ${a.slice(0,16)}...`)}return i}async function Bt(e,t,n,r={}){let{includeDecisions:i=!0,includeObservations:a=!0,maxSize:o=5*1024*1024}=r,s={...e};!i&&`decisions`in s&&delete s.decisions,!a&&`observations`in s&&delete s.observations;let c=JSON.stringify(s);if(Buffer.byteLength(c,`utf-8`)>o)throw Error(`Snapshot exceeds max size: ${Buffer.byteLength(c,`utf-8`)} > ${o}`);return B(c,t,n)}async function Vt(e,t){let n=await V(e,t);return JSON.parse(n)}function Ht(e){return[`Session: ${e.sessionId}`,`Agent: ${e.agentId}`,`Size: ${e.originalSize} → ${e.compressedSize} bytes (${e.compressionRatio.toFixed(1)}x)`,`Tokens: ~${e.tokens}`,`Hash: ${e.contentHash.slice(0,16)}...`,`Created: ${e.createdAt}`].join(`
5
- `)}t();var H;async function Ut(){if(H!==void 0)return H;try{return H=(await n(()=>import(`./B3_X3Lhd2.js`),__vite__mapDeps([3,4,2,1]),import.meta.url)).parseLafsResponse,H}catch{return H=!1,!1}}async function U(e){let t=e,n=await Ut();if(n&&`$schema`in t)return n(e);if(t.success===!1){let e=t.error;throw Error(e?.message??`Request failed`)}return t.result??t.data}function Wt(e){let t={Authorization:`Bearer ${e.apiKey}`,"X-Agent-Id":e.agentId,"Content-Type":`application/json`};return{async upload(n,r,i={}){let{format:a=`markdown`,title:o,expiresIn:s=3600}=i,c=await fetch(`${e.apiBase}/conversations/${n}/attachments`,{method:`POST`,headers:t,body:JSON.stringify({content:r,format:a,title:o,expiresIn:s})});if(!c.ok)throw Error(`Upload failed (${c.status}): ${await c.text()}`);return U(await c.json())},async fetch(e){let n=await fetch(e,{headers:t});if(!n.ok)throw Error(`Fetch failed (${n.status}): ${await n.text()}`);return U(await n.json())},async fetchFromConversation(n,r){let i=new URL(`${e.apiBase}/attachments/${n}`);i.searchParams.set(`conv`,r);let a=await fetch(i,{headers:t});if(!a.ok)throw Error(`Conversation fetch failed (${a.status}): ${await a.text()}`);return U(await a.json())},async fetchOwned(n){let r=await fetch(`${e.apiBase}/attachments/${n}`,{headers:t});if(!r.ok)throw Error(`Owner fetch failed (${r.status}): ${await r.text()}`);return U(await r.json())},async reshare(n,r={}){let{expiresIn:i=3600,mode:a=`signed_url`}=r,o=await fetch(`${e.apiBase}/attachments/${n}/reshare`,{method:`POST`,headers:t,body:JSON.stringify({expiresIn:i,mode:a})});if(!o.ok)throw Error(`Reshare failed (${o.status}): ${await o.text()}`);return U(await o.json())},async resign(e,t={}){return this.reshare(e,t)},createVersionPatch(e,t){return h(e,t)},async addVersion(n,r,i={}){let a=await fetch(`${e.apiBase}/attachments/${n}/versions`,{method:`POST`,headers:t,body:JSON.stringify({patchText:r,...i})});if(!a.ok)throw Error(`Add version failed (${a.status}): ${await a.text()}`);return U(await a.json())},async addVersionFromContent(e,t,n,r={}){let i=h(t,n);return this.addVersion(e,i,r)},isValid(e){try{let t=new URL(e).searchParams.get(`exp`);return t?Date.now()<parseInt(t,10):!1}catch{return!1}}}}var Gt=e(ue(),1);function Kt(e){let t;t=typeof e==`string`?new TextEncoder().encode(e):(Buffer.isBuffer(e),e);let n=Gt.classify_content_wasm(t),r;try{r=JSON.parse(n)}catch{throw Error(`classifyContent: WASM returned invalid JSON: ${n}`)}if(r.error)throw Error(`classifyContent: WASM serialization error: ${String(r.error)}`);return{mimeType:typeof r.mimeType==`string`?r.mimeType:`application/octet-stream`,category:r.category??`unknown`,format:r.format??`unknown`,confidence:typeof r.confidence==`number`?r.confidence:0,isExtractable:typeof r.isExtractable==`boolean`?r.isExtractable:!1}}function qt(e){return e.format===`json`?`json`:e.format===`markdown`?`markdown`:[`javascript`,`typescript`,`python`,`rust`,`go`].includes(e.format)?`code`:`text`}var W=[100,500,2e3,1e4],G=6e4,Jt=5;async function*Yt(e){let t=new TextDecoder(`utf-8`),n=``,r={};for(;;){let{done:i,value:a}=await e.read();if(i)break;n+=t.decode(a,{stream:!0});let o;for(;(o=n.indexOf(`
6
- `))!==-1;){let e=n.slice(0,o).replace(/\r$/,``);if(n=n.slice(o+1),e===``){(r.data!==void 0||r.id!==void 0||r.event!==void 0)&&(yield r,r={});continue}if(e.startsWith(`:`))continue;let t=e.indexOf(`:`);if(t===-1)continue;let i=e.slice(0,t).trim(),a=e.slice(t+1).replace(/^ /,``);i===`id`?r.id=a:i===`event`?r.event=a:i===`data`&&(r.data=a)}}(r.data!==void 0||r.id!==void 0)&&(yield r)}async function*Xt(e,t,n={}){let{apiKey:r,signal:i}=n,a=n.maxReconnects??Jt,o=n.fromSeq===void 0?void 0:String(n.fromSeq),s=0,c=Date.now(),l=0;for(;;){if(i?.aborted)return;let n=new URL(`${e.replace(/\/$/,``)}/api/v1/documents/${t}/events/stream`);o!==void 0&&n.searchParams.set(`since`,o);let u={Accept:`text/event-stream`};o!==void 0&&(u[`Last-Event-ID`]=o),r&&(u.Authorization=`Bearer ${r}`);let d;try{let e=await fetch(n.toString(),{headers:u,signal:i,cache:`no-store`});if(!e.ok)throw Error(`watchDocument: HTTP ${e.status} ${e.statusText}`);if(!e.body)throw Error(`watchDocument: response body is null`);d=e.body.getReader();for await(let e of Yt(d)){if(i?.aborted)return;if(e.id&&(o=e.id),e.event===`error`)throw Error(`watchDocument: server sent error event: ${e.data}`);if(!e.data)continue;let t;try{t=JSON.parse(e.data)}catch{continue}yield t}}catch(e){if(i?.aborted)return;if(e instanceof Error&&e.message.startsWith(`watchDocument: server sent error`))throw e}finally{d?.releaseLock?.()}let f=Date.now();if(f-c>G&&(s=0,c=f,l=0),s++,s>a)throw Error(`watchDocument: circuit breaker open — ${s} reconnects in ${G}ms`);let p=W[Math.min(l,W.length-1)];if(l++,await new Promise((e,t)=>{let n=setTimeout(e,p);i?.addEventListener(`abort`,()=>{clearTimeout(n),t(Error(`aborted`))},{once:!0})}).catch(()=>{}),i?.aborted)return}}await ft();var Zt=1,Qt=2,$t=3,en=4;function tn(e,t){let n=new Uint8Array(1+t.length);return n[0]=e,n.set(t,1),n}function nn(e){return{msgType:e[0],payload:e.subarray(1)}}function rn(e,t,n,r={}){let{baseUrl:i=`https://api.llmtxt.my`,token:a,onError:o,onAwareness:s}=r,c=i.replace(/^http:\/\//,`ws://`).replace(/^https:\/\//,`wss://`),l=a?`?token=${encodeURIComponent(a)}`:``,u=`${c}/api/v1/documents/${encodeURIComponent(e)}/sections/${encodeURIComponent(t)}/collab${l}`,d={doc:new x,ws:null,closed:!1};d.doc.getText(`content`);function f(){d.ws=new WebSocket(u,[`loro-sync-v1`]),d.ws.binaryType=`arraybuffer`,d.ws.onopen=()=>{if(!d.ws||d.closed)return;let e=on(d.doc);d.ws.send(tn(Zt,e))},d.ws.onmessage=r=>{if(d.closed)return;let i=(r.data instanceof ArrayBuffer,new Uint8Array(r.data));if(i.length===0||i[0]===0||i[0]===123)return;let{msgType:a,payload:o}=nn(i);if(a===Qt||a===$t){try{d.doc.import(o)}catch{return}n({slug:e,sectionId:t,text:d.doc.getText(`content`).toString(),updateBytes:o,receivedAt:Date.now()})}else a===en&&s&&s(o)},d.ws.onerror=e=>{o&&o(e)},d.ws.onclose=()=>{}}return f(),()=>{d.closed=!0,d.ws&&(d.ws.readyState===WebSocket.OPEN||d.ws.readyState===WebSocket.CONNECTING)&&d.ws.close(1e3,`client unsubscribed`)}}async function an(e,t,n={}){let{baseUrl:r=`https://api.llmtxt.my`,token:i}=n,a=`${r}/v1/documents/${encodeURIComponent(e)}/sections/${encodeURIComponent(t)}/crdt-state`,o={"Content-Type":`application/json`};i&&(o.Authorization=`Bearer ${i}`);let s=await fetch(a,{headers:o});if(s.status===503)return null;if(!s.ok)throw Error(`getSectionText: HTTP ${s.status} from ${a}`);let c=await s.json(),l=Uint8Array.from(atob(c.stateBase64),e=>e.charCodeAt(0)),u=new x;return u.getText(`content`),l.length>0&&u.import(l),u.getText(`content`).toString()}function on(e){return e.oplogVersion().encode()}var K=3,q=new Map,J=new Map;function Y(e){let t=[];for(;e>127;)t.push(e&127|128),e>>>=7;return t.push(e&127),new Uint8Array(t)}function X(e,t){let n=0,r=0;for(;t<e.length;){let i=e[t++];if(n|=(i&127)<<r,r+=7,!(i&128))break}return[n,t]}function sn(e){let t=new TextEncoder().encode(e),n=Y(t.length),r=new Uint8Array(n.length+t.length);return r.set(n,0),r.set(t,n.length),r}function cn(e,t){let[n,r]=X(e,t);return[new TextDecoder().decode(e.subarray(r,r+n)),r+n]}function ln(e,t,n){let r=Y(1),i=Y(e),a=Y(t),o=sn(n?JSON.stringify(n):`null`),s=r.length+i.length+a.length+o.length,c=new Uint8Array(s),l=0;return c.set(r,l),l+=r.length,c.set(i,l),l+=i.length,c.set(a,l),l+=a.length,c.set(o,l),c}function un(e){let t=[],n=0,[r,i]=X(e,n);n=i;for(let i=0;i<r;i++){let[r,i]=X(e,n);n=i;let[a,o]=X(e,n);n=o;let[s,c]=cn(e,n);n=c;let l=null;try{let e=JSON.parse(s);typeof e==`object`&&e&&(l=e)}catch{}t.push([r,a,l])}return t}var dn=Math.floor(Math.random()*2147483647);function fn(){return dn}var pn=new Map;function mn(e,t){let n=fn(),r=(pn.get(e)??0)+1;pn.set(e,r);let i=q.get(e);i||(i=new Map,q.set(e,i)),i.set(n,t);let a=ln(n,r,t),o=new Uint8Array(1+a.length);o[0]=K,o.set(a,1);try{e.send(o)}catch{}}function hn(e,t){let n=J.get(e);n||(n=new Set,J.set(e,n)),n.add(t);let r=q.get(e)??new Map;q.has(e)||q.set(e,r);let i=t=>{let n;if(t instanceof Uint8Array)n=t;else if(Buffer.isBuffer(t))n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);else if(typeof t==`object`&&`data`in t){let e=t.data;if(e instanceof ArrayBuffer)n=new Uint8Array(e);else if(e instanceof Uint8Array)n=e;else return}else return;if(n.length===0||n[0]!==K)return;let r=n.subarray(1);try{let t=un(r),n=q.get(e)??new Map;for(let[e,,r]of t)r===null?n.delete(e):n.set(e,r);q.set(e,n);let i=J.get(e);if(i)for(let e of i)e(new Map(n))}catch{}},a=e;typeof a.on==`function`&&a.on(`message`,i);let o=e;return typeof o.addEventListener==`function`&&o.addEventListener(`message`,i),()=>{let n=J.get(e);n&&n.delete(t)}}function gn(e){return new Map(q.get(e)??[])}var Z=class extends Error{holder;expiresAt;constructor(e,t){super(`Section is already leased by ${e} until ${t}`),this.name=`LeaseConflictError`,this.holder=e,this.expiresAt=t}},_n=class{baseUrl;apiKey;_leaseId=null;_expiresAt=null;_slug=null;_sectionId=null;_autoRenewTimer=null;constructor(e,t){this.baseUrl=e.replace(/\/$/,``),this.apiKey=t}leaseUrl(e,t){return`${this.baseUrl}/api/v1/documents/${encodeURIComponent(e)}/sections/${encodeURIComponent(t)}/lease`}headers(){return{Authorization:`Bearer ${this.apiKey}`,"Content-Type":`application/json`}}async acquire(e,t,n,r){let i=this.leaseUrl(e,t),a={leaseDurationSeconds:n};r!==void 0&&(a.reason=r);let o=await fetch(i,{method:`POST`,headers:this.headers(),body:JSON.stringify(a)});if(o.status===409){let e=await o.json();throw new Z(e.holder??`unknown`,e.expiresAt??``)}if(!o.ok){let e=await o.text();throw Error(`acquire failed: ${o.status} ${e}`)}let s=await o.json();return this._leaseId=s.leaseId,this._expiresAt=s.expiresAt,this._slug=e,this._sectionId=t,s}async release(){if(!this._slug||!this._sectionId)return;this.stopAutoRenew();let e=this.leaseUrl(this._slug,this._sectionId),t=await fetch(e,{method:`DELETE`,headers:this.headers()});if(!t.ok&&t.status!==404){let e=await t.text();throw Error(`release failed: ${t.status} ${e}`)}this._leaseId=null,this._expiresAt=null,this._slug=null,this._sectionId=null}async renew(e){if(!this._slug||!this._sectionId)throw Error(`No active lease to renew`);let t=this.leaseUrl(this._slug,this._sectionId),n=await fetch(t,{method:`PATCH`,headers:this.headers(),body:JSON.stringify({leaseDurationSeconds:e})});if(!n.ok){let e=await n.text();throw Error(`renew failed: ${n.status} ${e}`)}let r=await n.json();return this._expiresAt=r.expiresAt,r}startAutoRenew(e=10){this._autoRenewTimer===null&&(this._autoRenewTimer=setInterval(()=>{this._expiresAt&&new Date(this._expiresAt).getTime()-Date.now()<e*1e3&&this.renew(60).catch(()=>{})},1e3))}stopAutoRenew(){this._autoRenewTimer!==null&&(clearInterval(this._autoRenewTimer),this._autoRenewTimer=null)}get leaseId(){return this._leaseId}get expiresAt(){return this._expiresAt}};function vn(e,t,n){let{baseUrl:r,apiKey:i,mode:a,since:o}=t,s=new URL(`${r.replace(/\/$/,``)}/api/v1/subscribe`);s.searchParams.set(`path`,e),o!==void 0&&s.searchParams.set(`since`,String(o));let c=a===`diff`?`application/vnd.llmtxt.diff+json`:`application/json`;s.searchParams.set(`token`,i);let l=null,u=!1;function d(){if(u)return;let t=typeof EventSource<`u`?EventSource:globalThis.EventSource;if(!t)throw Error(`EventSource is not available. Install the eventsource npm package for Node.js.`);l=new t(s.toString(),{headers:{Authorization:`Bearer ${i}`,Accept:c}}),l.onmessage=t=>{try{let r=JSON.parse(t.data),i=t.lastEventId,a=i?parseInt(i,10):0,o=t.type===`message`?`message`:t.type,s;r&&typeof r==`object`&&`delta`in r&&(s=r.delta),n({seq:a,type:o,path:e,payload:r,...s===void 0?{}:{delta:s}})}catch{}}}return d(),()=>{u=!0,l&&=(l.close(),null)}}async function yn(e,t,n,r){let{baseUrl:i,apiKey:a}=r,o=`${i.replace(/\/$/,``)}/api/v1/documents/${encodeURIComponent(e)}/sections/${encodeURIComponent(t)}?since=${n}`,s=await fetch(o,{headers:{Authorization:`Bearer ${a}`,Accept:`application/json`}});if(!s.ok){let e=await s.text();throw Error(`fetchSectionDelta failed: ${s.status} ${e}`)}return await s.json()}var Q=class extends Error{code;field;constructor(e,t,n){super(e),this.name=`TopologyConfigError`,this.code=t,n!==void 0&&(this.field=n),Object.setPrototypeOf(this,new.target.prototype)}},bn=i({topology:f(`standalone`),storagePath:a().optional(),identityPath:a().optional(),crsqlite:d().optional(),crsqliteExtPath:a().optional()}),xn=i({topology:f(`hub-spoke`),hubUrl:a().min(1),apiKey:a().optional(),identityPath:a().optional(),persistLocally:d().optional(),storagePath:a().optional()}),Sn=i({topology:f(`mesh`),storagePath:a().min(1),identityPath:a().optional(),peers:c(a()).optional(),meshDir:a().optional(),transport:p([`unix`,`http`]).optional(),port:s().int().positive().optional()}),Cn=te(`topology`,[bn,xn,Sn]);function wn(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e,n=t.topology;if(n!==void 0&&n!==`standalone`&&n!==`hub-spoke`&&n!==`mesh`)throw new Q(`unknown topology: ${String(n)}`,`INVALID_TOPOLOGY_MODE`,`topology`);if(n===`hub-spoke`){if(t.hubUrl===void 0||t.hubUrl===null||t.hubUrl===``)throw new Q(`hub-spoke topology requires hubUrl`,`MISSING_HUB_URL`,`hubUrl`);if(t.persistLocally===!0&&(t.storagePath===void 0||t.storagePath===null||t.storagePath===``))throw new Q(`hub-spoke with persistLocally=true requires storagePath`,`MISSING_STORAGE_PATH_PERSIST`,`storagePath`)}if(n===`mesh`&&(t.storagePath===void 0||t.storagePath===null||t.storagePath===``))throw new Q(`mesh topology requires storagePath (cr-sqlite)`,`MISSING_STORAGE_PATH_MESH`,`storagePath`)}let t=Cn.safeParse(e);if(!t.success){let e=t.error.issues[0],n=e?.path?.map(String).join(`.`)??void 0;throw new Q(e?.message??`invalid topology config`,`INVALID_TOPOLOGY_MODE`,n)}return t.data}t();var Tn=class extends Error{code=`MESH_NOT_IMPLEMENTED`;constructor(e){super(`MeshBackend.${e}() is not yet implemented. The P2P mesh sync engine ships in T386. Use topology: "standalone" for local-only operation or topology: "hub-spoke" for multi-agent coordination until T386 is available.`),this.name=`MeshNotImplementedError`,Object.setPrototypeOf(this,new.target.prototype)}},En=class extends Error{code=`HUB_UNREACHABLE`;cause;constructor(e,t){let n=t instanceof Error?t.message:String(t);super(`HubUnreachableError: hub is unreachable during "${e}". Writes must not be silently dropped. Cause: ${n}. Check network connectivity and hub URL. (ARCH-T429 §7.1)`),this.name=`HubUnreachableError`,this.cause=t,Object.setPrototypeOf(this,new.target.prototype)}},Dn=class extends Error{code=`HUB_WRITE_QUEUE_FULL`;queueSize;constructor(e){super(`HubWriteQueueFullError: persistent spoke write queue is full (${e} entries). Maximum queue size is 1000 entries (ARCH-T429 §7.1). Resolve hub connectivity before issuing more writes.`),this.name=`HubWriteQueueFullError`,this.queueSize=e,Object.setPrototypeOf(this,new.target.prototype)}},On=class{config;local;remote;constructor(e){this.local=e.local,this.remote=e.remote,this.config=e.config}async _hubWrite(e,t){try{return await t()}catch(t){throw new En(e,t)}}async open(){await this.local.open(),await this.remote.open()}async close(){await this.remote.close(),await this.local.close()}async createDocument(e){return this._hubWrite(`createDocument`,()=>this.remote.createDocument(e))}async getDocument(e){return this.local.getDocument(e)}async getDocumentBySlug(e){return this.local.getDocumentBySlug(e)}async listDocuments(e){return this.local.listDocuments(e)}async deleteDocument(e){return this._hubWrite(`deleteDocument`,()=>this.remote.deleteDocument(e))}async publishVersion(e){return this._hubWrite(`publishVersion`,()=>this.remote.publishVersion(e))}async getVersion(e,t){return this.local.getVersion(e,t)}async listVersions(e){return this.local.listVersions(e)}async transitionVersion(e){return this._hubWrite(`transitionVersion`,()=>this.remote.transitionVersion(e))}async submitSignedApproval(e){return this._hubWrite(`submitSignedApproval`,()=>this.remote.submitSignedApproval(e))}async getApprovalProgress(e,t){return this._hubWrite(`getApprovalProgress`,()=>this.remote.getApprovalProgress(e,t))}async getApprovalPolicy(e){return this._hubWrite(`getApprovalPolicy`,()=>this.remote.getApprovalPolicy(e))}async setApprovalPolicy(e,t){return this._hubWrite(`setApprovalPolicy`,()=>this.remote.setApprovalPolicy(e,t))}async listContributors(e){return this.local.listContributors(e)}async getApprovalChain(e){return this.remote.getApprovalChain(e)}async appendEvent(e){return this._hubWrite(`appendEvent`,()=>this.remote.appendEvent(e))}async queryEvents(e){return this.local.queryEvents(e)}subscribeStream(e){return this.local.subscribeStream(e)}async applyCrdtUpdate(e){return this._hubWrite(`applyCrdtUpdate`,()=>this.remote.applyCrdtUpdate(e))}async getCrdtState(e,t){return this.local.getCrdtState(e,t)}subscribeSection(e,t){return this.local.subscribeSection(e,t)}async acquireLease(e){return this._hubWrite(`acquireLease`,()=>this.remote.acquireLease(e))}async renewLease(e,t,n){return this._hubWrite(`renewLease`,()=>this.remote.renewLease(e,t,n))}async releaseLease(e,t){return this._hubWrite(`releaseLease`,()=>this.remote.releaseLease(e,t))}async getLease(e){return this.remote.getLease(e)}async joinPresence(e,t,n){return this.local.joinPresence(e,t,n)}async leavePresence(e,t){return this.local.leavePresence(e,t)}async listPresence(e){return this.local.listPresence(e)}async heartbeatPresence(e,t){return this.local.heartbeatPresence(e,t)}async sendScratchpad(e){return this._hubWrite(`sendScratchpad`,()=>this.remote.sendScratchpad(e))}async pollScratchpad(e,t){return this._hubWrite(`pollScratchpad`,()=>this.remote.pollScratchpad(e,t))}async deleteScratchpadMessage(e,t){return this._hubWrite(`deleteScratchpadMessage`,()=>this.remote.deleteScratchpadMessage(e,t))}async sendA2AMessage(e){return this._hubWrite(`sendA2AMessage`,()=>this.remote.sendA2AMessage(e))}async pollA2AInbox(e,t,n,r){return this._hubWrite(`pollA2AInbox`,()=>this.remote.pollA2AInbox(e,t,n,r))}async deleteA2AMessage(e,t){return this._hubWrite(`deleteA2AMessage`,()=>this.remote.deleteA2AMessage(e,t))}async indexDocument(e,t){return this.local.indexDocument(e,t)}async search(e){return this.local.search(e)}async registerAgentPubkey(e,t,n){return this.remote.registerAgentPubkey(e,t,n)}async lookupAgentPubkey(e){return this.remote.lookupAgentPubkey(e)}async listAgentPubkeys(e){return this.remote.listAgentPubkeys(e)}async revokeAgentPubkey(e,t){return this.remote.revokeAgentPubkey(e,t)}async recordSignatureNonce(e,t,n){return this.remote.recordSignatureNonce(e,t,n)}async hasNonceBeenUsed(e,t){return this.remote.hasNonceBeenUsed(e,t)}async createCollection(e){return this.remote.createCollection(e)}async getCollection(e){return this.local.getCollection(e)}async listCollections(e){return this.local.listCollections(e)}async addDocToCollection(e,t,n){return this.remote.addDocToCollection(e,t,n)}async removeDocFromCollection(e,t){return this.remote.removeDocFromCollection(e,t)}async reorderCollection(e,t){return this.remote.reorderCollection(e,t)}async exportCollection(e){return this.remote.exportCollection(e)}async createDocumentLink(e){return this.remote.createDocumentLink(e)}async getDocumentLinks(e){return this.local.getDocumentLinks(e)}async deleteDocumentLink(e,t){return this.remote.deleteDocumentLink(e,t)}async getGlobalGraph(e){return this.local.getGlobalGraph(e)}async createWebhook(e){return this.remote.createWebhook(e)}async listWebhooks(e){return this.remote.listWebhooks(e)}async deleteWebhook(e,t){return this.remote.deleteWebhook(e,t)}async testWebhook(e){return this.remote.testWebhook(e)}async createSignedUrl(e){return this.remote.createSignedUrl(e)}async verifySignedUrl(e){return this.remote.verifySignedUrl(e)}async getDocumentAccess(e){return this.remote.getDocumentAccess(e)}async grantDocumentAccess(e,t){return this.remote.grantDocumentAccess(e,t)}async revokeDocumentAccess(e,t){return this.remote.revokeDocumentAccess(e,t)}async setDocumentVisibility(e,t){return this.remote.setDocumentVisibility(e,t)}async createOrganization(e){return this.remote.createOrganization(e)}async getOrganization(e){return this.remote.getOrganization(e)}async listOrganizations(e){return this.remote.listOrganizations(e)}async addOrgMember(e,t,n){return this.remote.addOrgMember(e,t,n)}async removeOrgMember(e,t){return this.remote.removeOrgMember(e,t)}async createApiKey(e){return this.remote.createApiKey(e)}async listApiKeys(e){return this.remote.listApiKeys(e)}async deleteApiKey(e,t){return this.remote.deleteApiKey(e,t)}async rotateApiKey(e,t){return this.remote.rotateApiKey(e,t)}async attachBlob(e){return this.local.attachBlob(e)}async getBlob(e,t,n){return this.local.getBlob(e,t,n)}async listBlobs(e){return this.local.listBlobs(e)}async detachBlob(e,t,n){return this.local.detachBlob(e,t,n)}async fetchBlobByHash(e){return this.local.fetchBlobByHash(e)}async exportDocument(e){return this.local.exportDocument(e)}async exportAll(e){return this.local.exportAll(e)}async importDocument(e){return this.local.importDocument(e)}async getChangesSince(e){return this.local.getChangesSince(e)}async applyChanges(e){return this.local.applyChanges(e)}},$=class{config;local;meshConfig;constructor(e){this.local=e.local,this.meshConfig=e.meshConfig,this.config=e.config}async open(){await this.local.open(),process.emitWarning(`MeshBackend: P2P sync engine is not started. Mesh peers configured: ${JSON.stringify(this.meshConfig.peers??[])}. Documents written locally will NOT sync to peers until T386 is installed. See: https://github.com/llmtxt/llmtxt/issues (T386)`,{code:`mesh:sync-engine-not-started`})}async close(){await this.local.close()}async createDocument(e){return this.local.createDocument(e)}async getDocument(e){return this.local.getDocument(e)}async getDocumentBySlug(e){return this.local.getDocumentBySlug(e)}async listDocuments(e){return this.local.listDocuments(e)}async deleteDocument(e){return this.local.deleteDocument(e)}async publishVersion(e){return this.local.publishVersion(e)}async getVersion(e,t){return this.local.getVersion(e,t)}async listVersions(e){return this.local.listVersions(e)}async transitionVersion(e){return this.local.transitionVersion(e)}async submitSignedApproval(e){return this.local.submitSignedApproval(e)}async getApprovalProgress(e,t){return this.local.getApprovalProgress(e,t)}async getApprovalPolicy(e){return this.local.getApprovalPolicy(e)}async setApprovalPolicy(e,t){return this.local.setApprovalPolicy(e,t)}async listContributors(e){return this.local.listContributors(e)}async getApprovalChain(e){return this.local.getApprovalChain(e)}async appendEvent(e){return this.local.appendEvent(e)}async queryEvents(e){return this.local.queryEvents(e)}subscribeStream(e){return this.local.subscribeStream(e)}async applyCrdtUpdate(e){return this.local.applyCrdtUpdate(e)}async getCrdtState(e,t){return this.local.getCrdtState(e,t)}subscribeSection(e,t){return this.local.subscribeSection(e,t)}async acquireLease(e){return this.local.acquireLease(e)}async renewLease(e,t,n){return this.local.renewLease(e,t,n)}async releaseLease(e,t){return this.local.releaseLease(e,t)}async getLease(e){return this.local.getLease(e)}async joinPresence(e,t,n){return this.local.joinPresence(e,t,n)}async leavePresence(e,t){return this.local.leavePresence(e,t)}async listPresence(e){return this.local.listPresence(e)}async heartbeatPresence(e,t){return this.local.heartbeatPresence(e,t)}async sendScratchpad(e){return this.local.sendScratchpad(e)}async pollScratchpad(e,t){return this.local.pollScratchpad(e,t)}async deleteScratchpadMessage(e,t){return this.local.deleteScratchpadMessage(e,t)}async sendA2AMessage(e){return this.local.sendA2AMessage(e)}async pollA2AInbox(e,t,n,r){return this.local.pollA2AInbox(e,t,n,r)}async deleteA2AMessage(e,t){return this.local.deleteA2AMessage(e,t)}async indexDocument(e,t){return this.local.indexDocument(e,t)}async search(e){return this.local.search(e)}async registerAgentPubkey(e,t,n){return this.local.registerAgentPubkey(e,t,n)}async lookupAgentPubkey(e){return this.local.lookupAgentPubkey(e)}async listAgentPubkeys(e){return this.local.listAgentPubkeys(e)}async revokeAgentPubkey(e,t){return this.local.revokeAgentPubkey(e,t)}async recordSignatureNonce(e,t,n){return this.local.recordSignatureNonce(e,t,n)}async hasNonceBeenUsed(e,t){return this.local.hasNonceBeenUsed(e,t)}async createCollection(e){return this.local.createCollection(e)}async getCollection(e){return this.local.getCollection(e)}async listCollections(e){return this.local.listCollections(e)}async addDocToCollection(e,t,n){return this.local.addDocToCollection(e,t,n)}async removeDocFromCollection(e,t){return this.local.removeDocFromCollection(e,t)}async reorderCollection(e,t){return this.local.reorderCollection(e,t)}async exportCollection(e){return this.local.exportCollection(e)}async createDocumentLink(e){return this.local.createDocumentLink(e)}async getDocumentLinks(e){return this.local.getDocumentLinks(e)}async deleteDocumentLink(e,t){return this.local.deleteDocumentLink(e,t)}async getGlobalGraph(e){return this.local.getGlobalGraph(e)}async createWebhook(e){return this.local.createWebhook(e)}async listWebhooks(e){return this.local.listWebhooks(e)}async deleteWebhook(e,t){return this.local.deleteWebhook(e,t)}async testWebhook(e){return this.local.testWebhook(e)}async createSignedUrl(e){return this.local.createSignedUrl(e)}async verifySignedUrl(e){return this.local.verifySignedUrl(e)}async getDocumentAccess(e){return this.local.getDocumentAccess(e)}async grantDocumentAccess(e,t){return this.local.grantDocumentAccess(e,t)}async revokeDocumentAccess(e,t){return this.local.revokeDocumentAccess(e,t)}async setDocumentVisibility(e,t){return this.local.setDocumentVisibility(e,t)}async createOrganization(e){return this.local.createOrganization(e)}async getOrganization(e){return this.local.getOrganization(e)}async listOrganizations(e){return this.local.listOrganizations(e)}async addOrgMember(e,t,n){return this.local.addOrgMember(e,t,n)}async removeOrgMember(e,t){return this.local.removeOrgMember(e,t)}async createApiKey(e){return this.local.createApiKey(e)}async listApiKeys(e){return this.local.listApiKeys(e)}async deleteApiKey(e,t){return this.local.deleteApiKey(e,t)}async rotateApiKey(e,t){return this.local.rotateApiKey(e,t)}async attachBlob(e){return this.local.attachBlob(e)}async getBlob(e,t,n){return this.local.getBlob(e,t,n)}async listBlobs(e){return this.local.listBlobs(e)}async detachBlob(e,t,n){return this.local.detachBlob(e,t,n)}async fetchBlobByHash(e){return this.local.fetchBlobByHash(e)}async exportDocument(e){return this.local.exportDocument(e)}async exportAll(e){return this.local.exportAll(e)}async importDocument(e){return this.local.importDocument(e)}async getChangesSince(e){return this.local.getChangesSince(e)}async applyChanges(e){return this.local.applyChanges(e)}};async function kn(e){switch(wn(e),e.topology){case`standalone`:{let{LocalBackend:t}=await n(async()=>{let{LocalBackend:e}=await import(`./84Rhmi6r.js`);return{LocalBackend:e}},__vite__mapDeps([5,2,6,7,8,9,1,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url);return new t({storagePath:e.storagePath,identityPath:e.identityPath,...e.crsqliteExtPath===void 0?{}:{crsqliteExtPath:e.crsqliteExtPath}})}case`hub-spoke`:{let t={baseUrl:e.hubUrl,apiKey:e.apiKey,identityPath:e.identityPath};if(e.persistLocally===!0){let r={storagePath:e.storagePath,identityPath:e.identityPath},[{LocalBackend:i},{RemoteBackend:a}]=await Promise.all([n(()=>import(`./84Rhmi6r.js`),__vite__mapDeps([5,2,6,7,8,9,1,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),n(()=>import(`./DXoHaH4a.js`),__vite__mapDeps([23,13,2,14,1,19,6]),import.meta.url)]);return new On({local:new i(r),remote:new a(t),config:{...r,...t}})}let{RemoteBackend:r}=await n(async()=>{let{RemoteBackend:e}=await import(`./DXoHaH4a.js`);return{RemoteBackend:e}},__vite__mapDeps([23,13,2,14,1,19,6]),import.meta.url);return new r(t)}case`mesh`:{let t={storagePath:e.storagePath,identityPath:e.identityPath},{LocalBackend:r}=await n(async()=>{let{LocalBackend:e}=await import(`./84Rhmi6r.js`);return{LocalBackend:e}},__vite__mapDeps([5,2,6,7,8,9,1,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url);return new $({local:new r(t),meshConfig:e,config:t})}}}export{Rt as API_KEY_DISPLAY_LENGTH,Lt as API_KEY_LENGTH,It as API_KEY_PREFIX,z as API_VERSION_REGISTRY,ae as AgentIdentity,Ft as COLLECTION_EXPORT_SEPARATOR,jt as CONTENT_LIMITS,Mt as CURRENT_API_VERSION,vt as DEFAULT_MAX_CONTENT_BYTES,yt as DEFAULT_MAX_LINE_BYTES,On as HubSpokeBackend,En as HubUnreachableError,Dn as HubWriteQueueFullError,Nt as LATEST_API_VERSION,xt as LRUCache,Z as LeaseConflictError,_n as LeaseManager,it as LlmtxtDocument,$ as MeshBackend,$ as MeshBackendStub,Tn as MeshNotImplementedError,zt as ROLE_PERMISSIONS,At as STATE_CHANGING_METHODS,Q as TopologyConfigError,Pt as VALID_LINK_TYPES,Re as applyPatch,bt as autoValidate,re as bodyHashHex,ie as buildCanonicalPayload,Ve as buildGraph,$e as calculateCompressionRatio,Ye as calculateTokens,We as cherryPickMerge,Kt as classifyContent,y as compress,mt as compressRequestSchema,Bt as compressSessionData,B as compressSnapshot,Ne as computeDiff,Tt as computeOrgSignature,F as computeOrgSignatureWithLength,Ct as computeSignature,N as computeSignatureWithLength,Te as constantTimeEqHex,m as containsBinaryContent,ct as contentSimilarity,Ee as cosineSimilarity,kn as createBackend,Wt as createClient,h as createPatch,me as decodeBase62,_ as decompress,ht as decompressRequestSchema,Vt as decompressSessionData,V as decompressSnapshot,kt as deriveSigningKey,fe as detectDocumentFormat,b as detectFormat,qt as detectFormatFromClassification,xe as encodeBase62,Se as extractDirectives,Ce as extractMentions,he as extractNgrams,ve as extractTags,be as extractWordShingles,yn as fetchSectionDelta,v as findOverlongLine,dt as fingerprintSimilarity,pe as fnv1aHash,oe as formatJson,le as formatLlmtxt,ce as formatMarkdown,se as formatTxt,Oe as generateId,Et as generateOrgSignedUrl,_e as generateOverview,P as generateSignedUrl,Ot as generateTimedUrl,gn as getAwarenessStates,De as getLineRange,O as getPredefinedSchema,ke as getSection,an as getSectionText,ge as hashBlob,ye as hashContent,xn as hubSpokeConfigSchema,R as isExpired,D as isPredefinedSchema,g as jaccardSimilarity,g as textSimilarity,S as jsonFormatSchema,je as l2Normalize,pt as markdownFormatSchema,Sn as meshConfigSchema,Ae as minHashFingerprint,Me as multiWayDiff,hn as onAwarenessChange,E as predefinedSchemas,w as promptMessageSchema,T as promptV1Schema,we as queryJsonPath,ne as randomNonceHex,de as rankBySimilarity,Be as reconstructVersion,at as roleHasPermission,Ze as rolePermissions,nt as searchContent,gt as searchRequestSchema,Ke as semanticConsensus,Fe as semanticDiff,mn as setLocalAwarenessState,Qe as signWebhookPayload,rt as slugify,Ht as snapshotSummary,Le as squashPatchesWasm,bn as standaloneConfigSchema,Je as structuredDiff,vn as subscribe,rn as subscribeSection,C as textFormatSchema,ot as tfidfEmbed,ze as tfidfEmbedBatch,He as threeWayMerge,et as topAgents,Xe as topTopics,Cn as topologyConfigSchema,M as validateContent,A as validateJson,j as validateText,wn as validateTopologyConfig,Ge as verifyContentHash,Dt as verifyOrgSignedUrl,wt as verifySignedUrl,Xt as watchDocument,Ue as zstdCompressBytes,Pe as zstdDecompressBytes};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CE7phgWq.js","./CdqDTozW.js","./DrKWWDpL.js","./D7w7HllH.js","./DB5ifLM-.js","./DYP3EJMY.js","./CKoQ7Ko5.js","./DtNkZUkq.js","./Cc8xxDr5.js","./VQszoXcV.js","./D93KpglN.js","./DeWI5qCn.js","./Cv7yW6MG.js","./CHkCZrnr.js","./DZ66sRb6.js","./C1vWmhYe.js","./DsQIgu-4.js","./C5Nlanei.js","./DF_4OWhj.js","./Ml4JR6Jz2.js","./DOqzs8kl2.js","./B2_6RrlL2.js","./DTxtWPkw.js","./BK17qSHw.js","./B0ORuy8x2.js","./orUmAKoW2.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";import{Y as n}from"./DtNkZUkq.js";import{i as r,p as i}from"./CV4ck7fz.js";e();async function a(e,t){let a=null;try{a=await r(t)}catch{return}try{await a.update(i).set({sourceSessionId:null}).where(n(i.sourceSessionId,e))}catch{}}async function o(e,n){let{tasks:r}=await t(async()=>{let{tasks:e}=await import(`./CE7phgWq.js`);return{tasks:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),{eq:i}=await t(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([11,7,12,13]),import.meta.url);return(await n.select({id:r.id}).from(r).where(i(r.id,e)).all()).length>0}async function s(e,n){let{sessions:r}=await t(async()=>{let{sessions:e}=await import(`./CE7phgWq.js`);return{sessions:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),{eq:i}=await t(async()=>{let{eq:e}=await import(`./DeWI5qCn.js`);return{eq:e}},__vite__mapDeps([11,7,12,13]),import.meta.url);return(await n.select({id:r.id}).from(r).where(i(r.id,e)).all()).length>0}var c=3,l=25;function u(e,t,n){let r=e.prepare(`SELECT name FROM sqlite_master WHERE type = 'table' AND name IN (?, ?)`).all(...n),i=new Set;for(let e of r){let t=e.name;(t===`sessions`||t===`tasks_sessions`||t===`tasks`||t===`tasks_tasks`)&&i.add(t)}for(let r of n)if(i.has(r)&&e.prepare(`SELECT 1 AS present FROM ${r} WHERE id = ? LIMIT 1`).get(t)!==void 0)return!0;return!1}async function d(e,n,r,i){let[{resolveDualScopeDbPath:a},{openNativeDatabase:o}]=await Promise.all([t(()=>import(`./DZ66sRb6.js`),__vite__mapDeps([14,15,2,16,17,7,8,5,18,19,20,1,3,4,21,22,23]),import.meta.url),t(()=>import(`./B0ORuy8x2.js`),__vite__mapDeps([24,25,2,23,5]),import.meta.url)]),s=r?.$client,d=i===void 0?s?.location()??a(`project`):a(`project`,i),f=s?.location(),p=t=>{let r=o(t,{readonly:!0});try{return u(r,e,n)}finally{r.close()}},m=f!=null&&f!==d?[d,f]:[d],h=!1;for(let t=0;t<c;t+=1){for(let e of m)try{let t=p(e);if(h=!0,t)return!0}catch{}if(s?.isOpen)try{let t=u(s,e,n);if(h=!0,t)return!0}catch{}t+1<c&&await new Promise(e=>setTimeout(e,l))}if(h)return!1;throw Error(`Unable to verify project record ${e}: no readable tasks database candidate`)}async function f(e,t,n){return d(e,[`sessions`,`tasks_sessions`],t,n)}export{o as i,s as n,f as r,a as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./9CV9TXTg2.js";export{e as runConsolidation};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import"./Ml4JR6Jz2.js";import"./CgTpKZfi2.js";import"./BieFfu-R.js";import"./DyzE2Uxw.js";import"./DYxFu8yV.js";var n=e(t(),1);(0,n.promisify)(n.execFile),(0,n.promisify)(n.execFile);var r=[{id:`release-fanout`,kind:`workflow`,sourcePath:`packages/core/templates/workflows/release-fanout.yml.tmpl`,installPath:`.github/workflows/release-fanout.yml`,substitution:`regex-tmpl`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`release-prepare`,kind:`workflow`,sourcePath:`packages/core/templates/workflows/release-prepare.yml.tmpl`,installPath:`.github/workflows/release-prepare.yml`,substitution:`regex-tmpl`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`release-publish`,kind:`workflow`,sourcePath:`packages/core/templates/workflows/release-publish.yml.tmpl`,installPath:`.github/workflows/release-publish.yml`,substitution:`regex-tmpl`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`release-rollback`,kind:`workflow`,sourcePath:`packages/core/templates/workflows/release-rollback.yml.tmpl`,installPath:`.github/workflows/release-rollback.yml`,substitution:`regex-tmpl`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`agent-registry`,kind:`config`,sourcePath:`packages/core/templates/agent-registry.json`,installPath:`.cleo/agent-registry.json`,substitution:`static`,placeholders:[],updateStrategy:`immutable`},{id:`cleo-config`,kind:`config`,sourcePath:`packages/core/templates/config.template.json`,installPath:`.cleo/config.json`,substitution:`json-merge`,placeholders:[],updateStrategy:`manifest-merge`},{id:`cleo-gitignore`,kind:`config`,sourcePath:`packages/core/templates/cleo-gitignore`,installPath:`.cleo/.gitignore`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`git-hook-commit-msg`,kind:`config`,sourcePath:`packages/core/templates/git-hooks/commit-msg`,installPath:`.git/hooks/commit-msg`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`git-hook-pre-commit`,kind:`config`,sourcePath:`packages/core/templates/git-hooks/pre-commit`,installPath:`.git/hooks/pre-commit`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`git-hook-pre-push`,kind:`config`,sourcePath:`packages/core/templates/git-hooks/pre-push`,installPath:`.git/hooks/pre-push`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`git-hook-pre-push-t1595-extension`,kind:`config`,sourcePath:`packages/core/templates/git-hooks/pre-push.t1595-extension.sh`,installPath:`.git/hooks/pre-push.t1595-extension.sh`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`global-config`,kind:`config`,sourcePath:`packages/core/templates/global-config.template.json`,installPath:`config.json`,substitution:`json-merge`,placeholders:[],updateStrategy:`manifest-merge`},{id:`issue-bug-report`,kind:`config`,sourcePath:`packages/core/templates/github/ISSUE_TEMPLATE/bug_report.yml`,installPath:`.github/ISSUE_TEMPLATE/bug_report.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-config`,kind:`config`,sourcePath:`packages/core/templates/github/ISSUE_TEMPLATE/config.yml`,installPath:`.github/ISSUE_TEMPLATE/config.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-feature-request`,kind:`config`,sourcePath:`packages/core/templates/github/ISSUE_TEMPLATE/feature_request.yml`,installPath:`.github/ISSUE_TEMPLATE/feature_request.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-help-question`,kind:`config`,sourcePath:`packages/core/templates/github/ISSUE_TEMPLATE/help_question.yml`,installPath:`.github/ISSUE_TEMPLATE/help_question.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-template-bug-report-legacy`,kind:`config`,sourcePath:`packages/core/templates/issue-templates/bug_report.yml`,installPath:`.github/ISSUE_TEMPLATE/bug_report.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-template-config-legacy`,kind:`config`,sourcePath:`packages/core/templates/issue-templates/config.yml`,installPath:`.github/ISSUE_TEMPLATE/config.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-template-feature-request-legacy`,kind:`config`,sourcePath:`packages/core/templates/issue-templates/feature_request.yml`,installPath:`.github/ISSUE_TEMPLATE/feature_request.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`issue-template-help-question-legacy`,kind:`config`,sourcePath:`packages/core/templates/issue-templates/help_question.yml`,installPath:`.github/ISSUE_TEMPLATE/help_question.yml`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`skillsmp-example`,kind:`config`,sourcePath:`packages/core/templates/skillsmp.json.example`,installPath:`.cleo/skillsmp.json`,substitution:`static`,placeholders:[],updateStrategy:`immutable`},{id:`worktreeinclude`,kind:`config`,sourcePath:`packages/core/templates/worktreeinclude`,installPath:`.worktreeinclude`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`project-code-worker`,kind:`agent`,sourcePath:`packages/agents/templates/project-code-worker.cant`,installPath:`.cleo/cant/agents/project-code-worker.cant`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`project-dev-lead`,kind:`agent`,sourcePath:`packages/agents/templates/project-dev-lead.cant`,installPath:`.cleo/cant/agents/project-dev-lead.cant`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`project-docs-worker`,kind:`agent`,sourcePath:`packages/agents/templates/project-docs-worker.cant`,installPath:`.cleo/cant/agents/project-docs-worker.cant`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`project-orchestrator`,kind:`agent`,sourcePath:`packages/agents/templates/project-orchestrator.cant`,installPath:`.cleo/cant/agents/project-orchestrator.cant`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`project-security-worker`,kind:`agent`,sourcePath:`packages/agents/templates/project-security-worker.cant`,installPath:`.cleo/cant/agents/project-security-worker.cant`,substitution:`static`,placeholders:[],updateStrategy:`diff-prompt`},{id:`contribution-init`,kind:`skill`,sourcePath:`packages/skills/skills/ct-contribution/templates/contribution-init.json`,installPath:`.cleo/skills/ct-contribution/contribution-init.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-claude-code-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/claude-code/manifest.json`,installPath:`.cleo/providers/claude-code/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-claude-code-orchestrator-cmd`,kind:`provider`,sourcePath:`packages/adapters/src/providers/claude-code/commands/orchestrator.md`,installPath:`.claude/commands/orchestrator.md`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-codex-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/codex/manifest.json`,installPath:`.cleo/providers/codex/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-cursor-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/cursor/manifest.json`,installPath:`.cleo/providers/cursor/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-gemini-cli-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/gemini-cli/manifest.json`,installPath:`.cleo/providers/gemini-cli/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-kimi-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/kimi/manifest.json`,installPath:`.cleo/providers/kimi/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-openai-sdk-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/openai-sdk/manifest.json`,installPath:`.cleo/providers/openai-sdk/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-opencode-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/opencode/manifest.json`,installPath:`.cleo/providers/opencode/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`provider-pi-manifest`,kind:`provider`,sourcePath:`packages/adapters/src/providers/pi/manifest.json`,installPath:`.cleo/providers/pi/manifest.json`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`cleo-injection`,kind:`doc`,sourcePath:`packages/core/templates/CLEO-INJECTION.md`,installPath:`templates/CLEO-INJECTION.md`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`},{id:`handoff-redirect-stub`,kind:`doc`,sourcePath:`packages/core/templates/HANDOFF-REDIRECT-STUB.md`,installPath:`.cleo/agent-outputs/NEXT-SESSION-HANDOFF.md`,substitution:`static`,placeholders:[],updateStrategy:`overwrite-on-bump`}];function i(){let e=(0,n.dirname)((0,n.fileURLToPath)(import.meta.url)),t=(0,n.resolve)(`/`);for(let r=0;r<12;r+=1){if((0,n.existsSync)((0,n.join)(e,`pnpm-workspace.yaml`)))return e;let r=(0,n.dirname)(e);if(r===e||r===t)return null;e=r}return null}function a(){let e=i();if(e!==null){for(let t of r)if(!(0,n.existsSync)((0,n.join)(e,t.sourcePath)))throw Error(`TemplateManifest: missing sourcePath: ${t.sourcePath}`)}}try{a()}catch(e){throw e instanceof Error?e:Error(String(e))}
@@ -1 +0,0 @@
1
- import{s as e}from"./Cs0zC2l2.js";export{e as fromEnv};
@@ -1 +0,0 @@
1
- import{t as e}from"./Dmqenb5z2.js";export{e as CrSqliteNotLoadedError};
@@ -1 +0,0 @@
1
- import{t as e}from"./CM8O4zqs.js";import{t}from"./bJRyRGSZ.js";import{i as n}from"./CQLIZtxj.js";function r(t,n,r){return e.buildTransportFromCredential(t,n,r)}function i(e){return{provider:e.provider,label:e.label??`default`,token:e.apiKey,authType:e.authType,expiresAt:null,refreshToken:null,extraHeaders:{},baseUrl:null,awsProfile:null}}var a=class{_defaultRetryPolicy;constructor(e){this._defaultRetryPolicy=e?.retryPolicy}async createForRole(e){return this.create({role:e})}async create(e){if(!e.role&&(!e.providerId||!e.model))throw Error(`DefaultLlmSessionFactory.create: must supply either role or (providerId + model)`);if(e.role){let a=await n(e.role);if(!a.sealedCredential||!a.credential)throw Error(`No credential available for role '${e.role}' / provider '${a.provider}'`);let o=(await a.sealedCredential.fetch()).value,s=i({provider:a.provider,apiKey:o,authType:a.credential.authType,label:a.credentialLabel});return new t({transport:r(a.provider,s),model:a.model,credential:s,retryPolicy:e.retryPolicy??this._defaultRetryPolicy})}throw Error(`DefaultLlmSessionFactory.create: providerId+model path requires a resolved credential. Use createForRole() or wire the explicit credential via ConcreteSession directly.`)}};export{a as DefaultLlmSessionFactory};
@@ -1 +0,0 @@
1
- import{i as e,n as t,r as n,t as r}from"./DksB5g4W2.js";n();export{e as default,r as default_init,t as initSync};
@@ -1 +0,0 @@
1
- import{t as e}from"./CsvKLHQQ2.js";export{e as isAutoCaptureEnabled};
@@ -1,2 +0,0 @@
1
- import{o as e}from"./CV4ck7fz.js";var t=8,n=3,r=1536;function i(e){let t=[],n=0;for(let r=0;r<e;r+=2){let i=Math.random()||1e-300,a=Math.random(),o=Math.sqrt(-2*Math.log(i)),s=2*Math.PI*a,c=o*Math.cos(s),l=o*Math.sin(s);t.push(c),n+=c*c,r+1<e&&(t.push(l),n+=l*l)}let r=Math.sqrt(n)||1;return t.map(e=>e/r)}function a(e,t){let n=0,r=Math.min(e.length,t.length);for(let i=0;i<r;i++)n+=(e[i]??0)*(t[i]??0);return n}function o(e){if(e.length===0)return null;let t=e[0]?.length??0,n=Array(t).fill(0);for(let r of e)for(let e=0;e<t;e++)n[e]=(n[e]??0)+(r[e]??0);return n.map(t=>t/e.length)}function s(e,t,n,c,l){let u=e.map(e=>e.embedding),d=o(u);if(e.length<=l||t>=c)return{depth:t,leafIds:e.map(e=>e.id),centroid:d,parentDbId:n,children:[]};let f=i(u[0]?.length??r),p=e.map(e=>({obs:e,proj:a(e.embedding,f)})),m=p.map(e=>e.proj).sort((e,t)=>e-t),h=m[Math.floor(m.length/2)]??0,g=p.filter(e=>e.proj<=h).map(e=>e.obs),_=p.filter(e=>e.proj>h).map(e=>e.obs);return g.length===0||_.length===0?{depth:t,leafIds:e.map(e=>e.id),centroid:d,parentDbId:n,children:[]}:{depth:t,leafIds:[],centroid:d,parentDbId:n,children:[s(g,t+1,null,c,l),s(_,t+1,null,c,l)]}}function c(e,t,n){let r=e.centroid?JSON.stringify(e.centroid):null,i=JSON.stringify(e.leafIds),a=new Date().toISOString(),o=t.prepare(`INSERT INTO brain_memory_trees (depth, leaf_ids, centroid, parent_id, created_at)
2
- VALUES (?, ?, ?, ?, ?)`).run(e.depth,i,r,n,a),s=Number(o.lastInsertRowid);for(let n of e.children)c(n,t,s);return s}function l(e,t,n,r){if(e.leafIds.length>0)for(let n of e.leafIds)r.set(n,t);if(e.children.length>0){let e=n.prepare(`SELECT id, leaf_ids FROM brain_memory_trees WHERE parent_id = ?`).all(t);for(let t of e){let e=JSON.parse(t.leaf_ids);if(e.length>0)for(let n of e)r.set(n,t.id)}}}function u(r,i={}){let{maxDepth:a=t,minLeafSize:o=n,db:u}=i,d={nodesWritten:0,obsAssigned:0,actualMaxDepth:0},f=r.filter(e=>e.embedding.length>0);if(f.length<2)return d;let p=u===void 0?e():u;if(!p)return console.warn(`[surprisal-tree] No database available; skipping tree build.`),d;try{p.exec(`DELETE FROM brain_memory_trees`);let e=s(f,0,null,a,o),t=c(e,p,null);d.nodesWritten=p.prepare(`SELECT COUNT(*) AS cnt FROM brain_memory_trees`).get()?.cnt??0,d.actualMaxDepth=p.prepare(`SELECT MAX(depth) AS maxd FROM brain_memory_trees`).get()?.maxd??0;let n=new Map;l(e,t,p,n);let r=p.prepare(`SELECT id, leaf_ids FROM brain_memory_trees WHERE leaf_ids != '[]'`).all();for(let e of r){let t=JSON.parse(e.leaf_ids);for(let r of t)n.set(r,e.id)}for(let[e,t]of n)p.prepare(`UPDATE brain_observations SET tree_id = ? WHERE id = ?`).run(t,e),d.obsAssigned++;return d}catch(e){return console.warn(`[surprisal-tree] Error building tree:`,e),d}}export{u as buildSurprisalTree};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{r as n}from"./DOqzs8kl2.js";var r=e(t(),1),i=`device-id`,a=null;function o(){if(a!==null)return a;let e=(0,r.join)(n(),i);if((0,r.existsSync)(e))try{let t=(0,r.readFileSync)(e,`utf-8`).trim();if(t.length>0)return a=t,t}catch{}let t=(0,r.randomUUID)();try{let n=(0,r.dirname)(e);(0,r.existsSync)(n)||(0,r.mkdirSync)(n,{recursive:!0});let i=`${e}.tmp.${process.pid}`;(0,r.writeFileSync)(i,t,{mode:384}),(0,r.renameSync)(i,e)}catch{}return a=t,t}var s=`https://api.kimi.com/coding`,c=`kimi-k2-coding`;function l(){return{"X-Msh-Platform":`cleo`,"X-Msh-Version":`1`,"X-Msh-Device-Name":`cleo-cli`,"X-Msh-Device-Model":`cleo`,"X-Msh-Os-Version":process.version,"X-Msh-Device-Id":o()}}function u(e){return e.startsWith(`sk-kimi-`)}var d={name:`kimi-code`,displayName:`Kimi Code (Moonshot)`,authTypes:[`api_key`,`oauth`],baseUrl:s,defaultModel:c,aliases:[`kimi`,`moonshot-coding`,`kimi-coding`],defaultHeaders:l(),envVars:[`KIMI_CODE_API_KEY`,`KIMI_API_KEY`],buildApiKwargsExtras(){return{reasoning_effort:`high`}}};export{u as n,d as r,l as t};
@@ -1 +0,0 @@
1
- import"./TX-23QW3.js";
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";var n=e(t(),1);async function r(e){let t=(0,n.join)((0,n.homedir)(),`.claude`,`projects`);try{let r=await(0,n.readdir)(t,{withFileTypes:!0});for(let i of r){if(!i.isDirectory())continue;let r=(0,n.join)(t,i.name,`${e}.jsonl`);try{return await(0,n.stat)(r),r}catch{}}}catch{}return null}export{r as findSessionTranscriptPath};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BFZA3Dsk2.js","./CsvKLHQQ2.js","./DsQIgu-4.js","./DrKWWDpL.js"])))=>i.map(i=>d[i]);
2
- import{s as e}from"./DrKWWDpL.js";import{n as t,t as n}from"./DsQIgu-4.js";import{t as r}from"./DYP3EJMY.js";import{t as i}from"./DF_4OWhj.js";import{h as a,i as o,m as s}from"./CV4ck7fz.js";var c=e(r(),1);t();var l=i(`brain-graph`);async function u(e){try{let{isAutoCaptureEnabled:t}=await n(async()=>{let{isAutoCaptureEnabled:e}=await import(`./BFZA3Dsk2.js`);return{isAutoCaptureEnabled:e}},__vite__mapDeps([0,1,2,3]),import.meta.url);return t(e)}catch{return!1}}async function d(e,t,n,r,i,s,d){try{if(!await u(e))return;let l=await o(e),f=new Date().toISOString().replace(`T`,` `).slice(0,19),p=s.trim().toLowerCase(),m=p?(0,c.createHash)(`sha256`).update(p).digest(`hex`).substring(0,16):null;await l.insert(a).values({id:t,nodeType:n,label:r.substring(0,200),qualityScore:i,contentHash:m,metadataJson:d?JSON.stringify(d):null,lastActivityAt:f,createdAt:f,updatedAt:f}).onConflictDoUpdate({target:a.id,set:{label:r.substring(0,200),qualityScore:i,lastActivityAt:f,updatedAt:f,metadataJson:d?JSON.stringify(d):null}})}catch(e){l.warn({err:e},`upsertGraphNode failed`)}}async function f(e,t,n,r,i=1,a){try{if(!await u(e))return;let c=await o(e),l=new Date().toISOString().replace(`T`,` `).slice(0,19);await c.insert(s).values({fromId:t,toId:n,edgeType:r,weight:i,provenance:a??null,createdAt:l}).onConflictDoNothing()}catch(e){l.warn({err:e},`addGraphEdge failed`)}}async function p(e,t,n,r){try{await d(e,`task:${t}`,`task`,`${t}: ${n}`.substring(0,200),.7,n,r)}catch(e){l.warn({err:e},`ensureTaskNode failed`)}}export{p as n,d as r,f as t};
@@ -1 +0,0 @@
1
- var e;(function(e){e.HTTP=`http`,e.HTTPS=`https`})(e||={});var t=`__smithy_context`,n=e=>e.__smithy_context||={},r=e=>{if(typeof e==`function`)return e;let t=Promise.resolve(e);return()=>t},i=async e=>void 0,a=async e=>{let t=e?.Bucket||``;if(typeof e.Bucket==`string`&&(e.Bucket=t.replace(/#/g,`%23`).replace(/\?/g,`%3F`)),u(t)){if(e.ForcePathStyle===!0)throw Error(`Path-style addressing cannot be used with ARN buckets`)}else (!l(t)||t.indexOf(`.`)!==-1&&!String(e.Endpoint).startsWith(`http:`)||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},o=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,s=/(\d+\.){3}\d+/,c=/\.\./,l=e=>o.test(e)&&!s.test(e)&&!c.test(e),u=e=>{let[t,n,r,,,i]=e.split(`:`),a=t===`arn`&&e.split(`:`).length>=6,o=!!(a&&n&&r&&i);if(a&&!o)throw Error(`Invalid ARN: ${e} was an invalid ARN.`);return o},d=(e,t,n,r=!1)=>{let i=async()=>{let i;return i=r?n.clientContextParams?.[e]??n[e]??n[t]:n[e]??n[t],typeof i==`function`?i():i};return e===`credentialScope`||t===`CredentialScope`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:e===`accountId`||t===`AccountId`?async()=>{let e=typeof n.credentials==`function`?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:e===`endpoint`||t===`endpoint`?async()=>{if(n.isCustomEndpoint===!1)return;let e=await i();if(e&&typeof e==`object`){if(`url`in e)return e.url.href;if(`hostname`in e){let{protocol:t,hostname:n,port:r,path:i}=e;return`${t}//${n}${r?`:`+r:``}${i}`}}return e}:i},f=e=>{if(typeof e==`object`){if(`url`in e){let t=J(e.url);if(e.headers){t.headers={};for(let n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(`, `)}return t}return e}return J(e)};function p(e){return async(t,n,r,i)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve(f(t)),r.isCustomEndpoint=!0)}let a=await m(t,n,r);if(typeof r.endpointProvider!=`function`)throw Error(`config.endpointProvider is not set.`);let o=r.endpointProvider(a,i);if(r.isCustomEndpoint&&r.endpoint){let e=await r.endpoint();if(e?.headers){o.headers??={};for(let[t,n]of Object.entries(e.headers))o.headers[t]=Array.isArray(n)?n:[n]}}return o}}var m=async(e,t,n)=>{let r={},i=t?.getEndpointParameterInstructions?.()||{};for(let[t,a]of Object.entries(i))switch(a.type){case`staticContextParams`:r[t]=a.value;break;case`contextParams`:r[t]=e[a.name];break;case`clientContextParams`:case`builtInParams`:r[t]=await d(a.name,t,n,a.type!==`builtInParams`)();break;case`operationContextParams`:r[t]=a.get(e);break;default:throw Error(`Unrecognized endpoint parameter instruction: `+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()===`s3`&&await a(r),r};function h(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}function g(e){let t=p(e);return({config:e,instructions:r})=>(i,a)=>async o=>{e.isCustomEndpoint&&h(a,`ENDPOINT_OVERRIDE`,`N`);let s=await t(o.input,{getEndpointParameterInstructions(){return r}},{...e},a);a.endpointV2=s,a.authSchemes=s.properties?.authSchemes;let c=a.authSchemes?.[0];if(c){a.signing_region=c.signingRegion,a.signing_service=c.signingName;let e=n(a)?.selectedHttpAuthScheme?.httpAuthOption;e&&(e.signingProperties=Object.assign(e.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return i({...o})}}var _={step:`serialize`,tags:[`ENDPOINT_PARAMETERS`,`ENDPOINT_V2`,`ENDPOINT`],name:`endpointV2Middleware`,override:!0,relation:`before`,toMiddleware:{name:`serializerMiddleware`,step:`serialize`,tags:[`SERIALIZER`],override:!0}.name};function v(e){let t=g(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),_)}})}function ee(e){return t=>{let n=t.tls??!0,{endpoint:i,useDualstackEndpoint:a,useFipsEndpoint:o}=t,s=Object.assign(t,{endpoint:i==null?void 0:async()=>f(await r(i)()),tls:n,isCustomEndpoint:!!i,useDualstackEndpoint:r(a??!1),useFipsEndpoint:r(o??!1)}),c;return s.serviceConfiguredEndpoint=async()=>(t.serviceId&&!c&&(c=e(t.serviceId)),c),s}}var te=class e{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(t,n,r,i){return new e(t,n,r,i)}},y=class{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){let n=this.hash(e);if(n===!1)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let e=this.data.keys(),t=0;for(;;){let{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t=``,{parameters:n}=this;if(n.length===0)return!1;for(let r of n){let n=String(e[r]??``);if(n.includes(`|;`))return!1;t+=n+`|;`}return t}},b=class extends Error{constructor(e){super(e),this.name=`EndpointError`}},x=`endpoints`;function S(e){return typeof e!=`object`||!e?e:`ref`in e?`$${S(e.ref)}`:`fn`in e?`${e.fn}(${(e.argv||[]).map(S).join(`, `)})`:JSON.stringify(e,null,2)}var C={},w=(e,t)=>e===t;function T(...e){for(let t of e)if(t!=null)return t}var E=e=>{let t=e.split(`.`),n=[];for(let r of t){let t=r.indexOf(`[`);if(t!==-1){if(r.indexOf(`]`)!==r.length-1)throw new b(`Path: '${e}' does not end with ']'`);let i=r.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new b(`Invalid array index: '${i}' in path: '${e}'`);t!==0&&n.push(r.slice(0,t)),n.push(i)}else n.push(r)}return n},D=(e,t)=>E(t).reduce((n,r)=>{if(typeof n!=`object`)throw new b(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){let e=parseInt(r);return n[e<0?n.length+e:e]}return n[r]},e),ne=e=>e!=null,re=RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`),O=(e,t=!1)=>{if(!t)return re.test(e);let n=e.split(`.`);for(let e of n)if(!O(e))return!1;return!0};function ie(e,t,n){return e?t:n}var ae=e=>!e,oe=RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`),k=e=>oe.test(e)||e.startsWith(`[`)&&e.endsWith(`]`),A={[e.HTTP]:80,[e.HTTPS]:443},j=t=>{let n=(()=>{try{if(t instanceof URL)return t;if(typeof t==`object`&&`hostname`in t){let{hostname:e,port:n,protocol:r=``,path:i=``,query:a={}}=t,o=new URL(`${r}//${e}${n?`:${n}`:``}${i}`);return o.search=Object.entries(a).map(([e,t])=>`${e}=${t}`).join(`&`),o}return new URL(t)}catch{return null}})();if(!n)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=n.href,{host:i,hostname:a,pathname:o,protocol:s,search:c}=n;if(c)return null;let l=s.slice(0,-1);if(!Object.values(e).includes(l))return null;let u=k(a);return{scheme:l,authority:`${i}${r.includes(`${i}:${A[l]}`)||typeof t==`string`&&t.includes(`${i}:${A[l]}`)?`:${A[l]}`:``}`,path:o,normalizedPath:o.endsWith(`/`)?o:`${o}/`,isIp:u}};function M(e,t,n){if(n===1)return[e];if(e===``)return[``];let r=e.split(t);return n===0?r:r.slice(0,n-1).concat(r.slice(1).join(t))}var N={booleanEquals:w,coalesce:T,getAttr:D,isSet:ne,isValidHostLabel:O,ite:ie,not:ae,parseURL:j,split:M,stringEquals:(e,t)=>e===t,substring:(e,t,n,r)=>e==null||t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},P=(e,t)=>{let n=[],{referenceRecord:r,endpointParams:i}=t,a=0;for(;a<e.length;){let t=e.indexOf(`{`,a);if(t===-1){n.push(e.slice(a));break}n.push(e.slice(a,t));let o=e.indexOf(`}`,t);if(o===-1){n.push(e.slice(t));break}e[t+1]===`{`&&e[o+1]===`}`&&(n.push(e.slice(t+1,o)),a=o+2);let s=e.substring(t+1,o);if(s.includes(`#`)){let[e,t]=s.split(`#`);n.push(D(r[e]??i[e],t))}else n.push(r[s]??i[s]);a=o+1}return n.join(``)},F=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e],I=(e,t,n)=>{if(typeof e==`string`)return P(e,n);if(e.fn)return R.callFunction(e,n);if(e.ref)return F(e,n);throw new b(`'${t}': ${String(e)} is not a string, function or reference.`)},L=({fn:e,argv:t},n)=>{let r=Array(t.length);for(let e=0;e<r.length;++e){let i=t[e];typeof i==`boolean`||typeof i==`number`?r[e]=i:r[e]=R.evaluateExpression(i,`arg`,n)}let i=e.indexOf(`.`);if(i!==-1){let t=C[e.slice(0,i)]?.[e.slice(i+1)];if(typeof t==`function`)return t(...r)}let a=N[e];if(typeof a==`function`)return a(...r);throw Error(`function ${e} not loaded in endpointFunctions.`)},R={evaluateExpression:I,callFunction:L},z=(e,t)=>{let{assign:n}=e;if(n&&n in t.referenceRecord)throw new b(`'${n}' is already defined in Reference Record.`);let r=L(e,t);t.logger?.debug?.(`${x} evaluateCondition: ${S(e)} = ${S(r)}`);let i=r===``?!0:!!r;return n==null?{result:i}:{result:i,toAssign:{name:n,value:r}}},B=(e,t)=>Object.entries(e??{}).reduce((e,[n,r])=>(e[n]=r.map(e=>{let r=I(e,`Header value entry`,t);if(typeof r!=`string`)throw new b(`Header '${n}' value '${r}' is not a string`);return r}),e),{}),V=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=U.getEndpointProperty(r,t),e),{}),H=(e,t)=>{if(Array.isArray(e))return e.map(e=>H(e,t));switch(typeof e){case`string`:return P(e,t);case`object`:if(e===null)throw new b(`Unexpected endpoint property: ${e}`);return U.getEndpointProperties(e,t);case`boolean`:return e;default:throw new b(`Unexpected endpoint property type: ${typeof e}`)}},U={getEndpointProperty:H,getEndpointProperties:V},W=(e,t)=>{let n=I(e,`Endpoint URL`,t);if(typeof n==`string`)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new b(`Endpoint URL must be a string, got ${typeof n}`)},G=1e8,K=(e,t)=>{let{nodes:n,root:r,results:i,conditions:a}=e,o=r,s={},c={referenceRecord:s,endpointParams:t.endpointParams,logger:t.logger};for(;o!==1&&o!==-1&&o<G;){let e=3*(Math.abs(o)-1),[t,r,i]=[n[e],n[e+1],n[e+2]],[l,u,d]=a[t],f=z({fn:l,assign:d,argv:u},c);if(f.toAssign){let{name:e,value:t}=f.toAssign;s[e]=t}o=o>=0===f.result?r:i}if(o>=G){let e=i[o-G];if(e[0]===-1){let[,t]=e;throw new b(I(t,`Error`,c))}let[t,n,r]=e;return{url:W(t,c),properties:V(n,c),headers:B(r??{},c)}}throw new b(`No matching endpoint.`)},q=ee(i);g(i);var se=v(i);function ce(e){let t={};if(e=e.replace(/^\?/,``),e)for(let n of e.split(`&`)){let[e,r=null]=n.split(`=`);e=decodeURIComponent(e),r&&=decodeURIComponent(r),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}var J=e=>{if(typeof e==`string`)return J(new URL(e));let{hostname:t,pathname:n,port:r,protocol:i,search:a}=e,o;return a&&(o=ce(a)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}},Y=class e extends Error{name=`ProviderError`;tryNextLink;constructor(t,n=!0){let r,i=!0;typeof n==`boolean`?(r=void 0,i=n):typeof n==`object`&&n&&(r=n.logger,i=n.tryNextLink??!0),super(t),this.tryNextLink=i,Object.setPrototypeOf(this,e.prototype),r?.debug?.(`@smithy/property-provider ${i?`->`:`(!)`} ${t}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}},le=class e extends Y{name=`CredentialsProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}},ue=class e extends Y{name=`TokenProviderError`;constructor(t,n=!0){super(t,n),Object.setPrototypeOf(this,e.prototype)}},de=(...e)=>async()=>{if(e.length===0)throw new Y(`No providers in chain`);let t;for(let n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t},fe=(e,t,n)=>{let r,i,a,o=!1,s=async()=>{i||=e();try{r=await i,a=!0,o=!1}finally{i=void 0}return r};return t===void 0?async e=>((!a||e?.forceRefresh)&&(r=await s()),r):async e=>((!a||e?.forceRefresh)&&(r=await s()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await s(),r))},X=new Set,pe=(e,t=O)=>{if(!X.has(e)&&!t(e))if(e===`*`)console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);else throw Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else X.add(e)},Z=e=>typeof e==`string`&&(e.startsWith(`fips-`)||e.endsWith(`-fips`)),me=e=>Z(e)?[`fips-aws-global`,`aws-fips`].includes(e)?`us-east-1`:e.replace(/fips-(dkr-|prod-)?|-fips/,``):e,he=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw Error(`Region is missing`);return Object.assign(e,{region:async()=>{let e=me(typeof t==`function`?await t():t);return pe(e),e},useFipsEndpoint:async()=>Z(typeof t==`string`?t:await t())?!0:typeof n==`function`?n():Promise.resolve(!!n)})},ge=[`in-region`,`cross-region`,`mobile`,`standard`,`legacy`],_e=({defaultsMode:e}={})=>fe(async()=>{let t=typeof e==`function`?await e():e;switch(t?.toLowerCase()){case`auto`:return Promise.resolve(ve()?`mobile`:`standard`);case`mobile`:case`in-region`:case`cross-region`:case`standard`:case`legacy`:return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve(`legacy`);default:throw Error(`Invalid parameter for "defaultsMode", expect ${ge.join(`, `)}, got ${t}`)}}),ve=()=>{let e=window?.navigator;if(e?.connection){let{effectiveType:t,rtt:n,downlink:r}=e?.connection;if(typeof t==`string`&&t!==`4g`||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||typeof e?.maxTouchPoints==`number`&&e?.maxTouchPoints>1},Q=Symbol.for(`node-only`),ye=Q,be=Q,$=Q,xe=Q,Se=Q,Ce=Q,we=Q,Te=Q,Ee=Q;export{e as A,y as C,r as D,f as E,n as O,C as S,m as T,se as _,xe as a,k as b,Ce as c,he as d,de as f,J as g,Y as h,$ as i,t as k,Te as l,le as m,we as n,Ee as o,ue as p,be as r,Se as s,ye as t,_e as u,q as v,te as w,O as x,K as y};
@@ -1,59 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import"./CdqDTozW.js";var n=e(t(),1),r={ts:`typescript`,tsx:`tsx`,mts:`typescript`,cts:`typescript`,js:`javascript`,jsx:`javascript`,mjs:`javascript`,cjs:`javascript`,py:`python`,pyi:`python`,go:`go`,rs:`rust`,java:`java`,c:`c`,h:`c`,cpp:`cpp`,cc:`cpp`,cxx:`cpp`,hpp:`cpp`,hh:`cpp`,rb:`ruby`};function i(e){let t=e.split(`.`).pop()?.toLowerCase();if(t)return r[t]}[...new Set(Object.values(r))];var a=(0,n.createRequire)(import.meta.url);function o(e){try{return a(e)}catch{return null}}var s=null,c=null,l=null,u=!1,d=!1;function f(){if(u)return d;u=!0;let e=o(`tree-sitter`);return e===null?(d=!1,!1):(s=e,c=e.Query??null,d=s!==null&&c!==null,d)}function p(){if(l)return l;if(!f()||s===null)throw Error(`tree-sitter native module not available. Run: pnpm install (tree-sitter is a bundled dependency)`);return l=new s,l}var m=new Map,h={typescript:{pkg:`tree-sitter-typescript`,prop:`typescript`},tsx:{pkg:`tree-sitter-typescript`,prop:`tsx`},javascript:{pkg:`tree-sitter-javascript`},python:{pkg:`tree-sitter-python`},go:{pkg:`tree-sitter-go`},rust:{pkg:`tree-sitter-rust`},java:{pkg:`tree-sitter-java`},c:{pkg:`tree-sitter-c`},cpp:{pkg:`tree-sitter-cpp`},ruby:{pkg:`tree-sitter-ruby`}};function g(e){if(m.has(e))return m.get(e)??null;let t=h[e];if(!t)return null;let n=o(t.pkg);if(n===null)return m.set(e,null),null;let r=t.prop?n[t.prop]:n;return m.set(e,r??null),r??null}var _={typescript:`
2
- (function_declaration name: (identifier) @name) @definition.function
3
- (method_definition name: (property_identifier) @name) @definition.method
4
- (class_declaration name: (type_identifier) @name) @definition.class
5
- (interface_declaration name: (type_identifier) @name) @definition.interface
6
- (type_alias_declaration name: (type_identifier) @name) @definition.type
7
- (enum_declaration name: (identifier) @name) @definition.enum
8
- (lexical_declaration (variable_declarator name: (identifier) @name)) @definition.variable
9
- (export_statement (function_declaration name: (identifier) @name)) @definition.function
10
- (export_statement (class_declaration name: (type_identifier) @name)) @definition.class
11
- (arrow_function) @definition.function
12
- `,javascript:`
13
- (function_declaration name: (identifier) @name) @definition.function
14
- (method_definition name: (property_identifier) @name) @definition.method
15
- (class_declaration name: (identifier) @name) @definition.class
16
- (lexical_declaration (variable_declarator name: (identifier) @name)) @definition.variable
17
- (export_statement (function_declaration name: (identifier) @name)) @definition.function
18
- (export_statement (class_declaration name: (identifier) @name)) @definition.class
19
- (arrow_function) @definition.function
20
- `,python:`
21
- (function_definition name: (identifier) @name) @definition.function
22
- (class_definition name: (identifier) @name) @definition.class
23
- (decorated_definition (function_definition name: (identifier) @name)) @definition.function
24
- (decorated_definition (class_definition name: (identifier) @name)) @definition.class
25
- `,go:`
26
- (function_declaration name: (identifier) @name) @definition.function
27
- (method_declaration name: (field_identifier) @name) @definition.method
28
- (type_declaration (type_spec name: (type_identifier) @name)) @definition.type
29
- `,rust:`
30
- (function_item name: (identifier) @name) @definition.function
31
- (impl_item type: (type_identifier) @name) @definition.impl
32
- (struct_item name: (type_identifier) @name) @definition.struct
33
- (enum_item name: (type_identifier) @name) @definition.enum
34
- (trait_item name: (type_identifier) @name) @definition.trait
35
- (type_item name: (type_identifier) @name) @definition.type
36
- (mod_item name: (identifier) @name) @definition.module
37
- `,ruby:`
38
- (method name: (identifier) @name) @definition.method
39
- (class name: (constant) @name) @definition.class
40
- (module name: (constant) @name) @definition.module
41
- (singleton_method name: (identifier) @name) @definition.method
42
- `,java:`
43
- (method_declaration name: (identifier) @name) @definition.method
44
- (class_declaration name: (identifier) @name) @definition.class
45
- (interface_declaration name: (identifier) @name) @definition.interface
46
- (enum_declaration name: (identifier) @name) @definition.enum
47
- `,c:`
48
- (function_definition declarator: (function_declarator declarator: (identifier) @name)) @definition.function
49
- (struct_specifier name: (type_identifier) @name) @definition.struct
50
- (enum_specifier name: (type_identifier) @name) @definition.enum
51
- (type_definition declarator: (type_identifier) @name) @definition.type
52
- `,cpp:`
53
- (function_definition declarator: (function_declarator declarator: (qualified_identifier) @name)) @definition.function
54
- (function_definition declarator: (function_declarator declarator: (identifier) @name)) @definition.function
55
- (class_specifier name: (type_identifier) @name) @definition.class
56
- (struct_specifier name: (type_identifier) @name) @definition.struct
57
- (enum_specifier name: (type_identifier) @name) @definition.enum
58
- (namespace_definition name: (identifier) @name) @definition.module
59
- `};function v(e){return e===`tsx`?`typescript`:e}function y(e){return{function:`function`,method:`method`,class:`class`,interface:`interface`,type:`type`,enum:`enum`,variable:`variable`,constant:`constant`,module:`module`,import:`import`,export:`export`,struct:`struct`,trait:`trait`,impl:`impl`}[e]??`function`}var b=new Map;function x(e,t,n){let r=t;if(b.has(r))return b.get(r)??null;if(c===null)return null;try{let t=new c(e,n);return b.set(r,t),t}catch{return null}}function S(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.name.startsWith(`definition.`)){let o=y(a.name.slice(11)),s=a.node.startPosition.row+1,c=a.node.endPosition.row+1,l=e[i+1];if(l&&l.name===`name`){let e=l.node.text;e&&r.push({name:e,kind:o,startLine:s,endLine:c,filePath:t,language:n}),i+=2;continue}}i++}return r}function C(e,t){let r=(0,n.relative)(t??process.cwd(),e),a=i(e);if(!a)return{filePath:r,language:`unknown`,symbols:[],errors:[`Unsupported language`]};if(!f())return{filePath:r,language:a,symbols:[],errors:[`tree-sitter native module not available. Run: pnpm install (tree-sitter is a bundled dependency)`]};let o=v(a),s=_[o];if(!s)return{filePath:r,language:a,symbols:[],errors:[`No query pattern for ${a}`]};let c=g(a);if(!c)return{filePath:r,language:a,symbols:[],errors:[`Grammar package not installed for ${a}`]};let l;try{l=(0,n.readFileSync)(e,`utf-8`)}catch(e){return{filePath:r,language:a,symbols:[],errors:[`Failed to read file: ${e instanceof Error?e.message:String(e)}`]}}try{let e=p();e.setLanguage(c);let t=e.parse(l),n=x(c,o,s);return n?{filePath:r,language:a,symbols:S(n.captures(t.rootNode),r,a),errors:[]}:{filePath:r,language:a,symbols:[],errors:[`Failed to compile query for ${a}`]}}catch(e){return{filePath:r,language:a,symbols:[],errors:[e instanceof Error?e.message:String(e)]}}}function w(e,t){let r=t??process.cwd(),a=[],o=[];for(let t of e){if(!i(t)){o.push((0,n.relative)(r,t));continue}a.push(C(t,r))}return{results:a,skipped:o,totalSymbols:a.reduce((e,t)=>e+t.symbols.length,0)}}function T(e,t){let r=new Set([`node_modules`,`dist`,`.git`,`.cleo`,`target`,`__pycache__`,`.next`,`.nuxt`,`build`,`coverage`,`.turbo`,`.cache`]),a=[];function o(s){let c;try{c=(0,n.readdirSync)(s,{withFileTypes:!0,encoding:`utf-8`})}catch{return}for(let l of c)if(l.isDirectory())!r.has(l.name)&&!l.name.startsWith(`.`)&&o((0,n.join)(s,l.name));else if(l.isFile()){let r=(0,n.join)(s,l.name),o=i(l.name);if(!o||t.language&&o!==t.language)continue;if(t.filePattern){let i=(0,n.relative)(e,r);if(t.filePattern.startsWith(`*.`)){let e=t.filePattern.slice(1);if(!l.name.endsWith(e))continue}else if(!i.includes(t.filePattern.replace(`/**`,``)))continue}a.push(r)}}return o(e),a}function E(e,t){let n=t.toLowerCase(),r=e.name.toLowerCase(),i=e.filePath.toLowerCase();if(r===n)return{score:10,matchType:`exact`};if(r.includes(n))return{score:5,matchType:`substring`};if(i.includes(n))return{score:3,matchType:`path`};let a=0;for(let e=0;e<r.length&&a<n.length;e++)r[e]===n[a]&&a++;return a===n.length?{score:1,matchType:`fuzzy`}:{score:0,matchType:`fuzzy`}}function D(e,t={}){let n=t.rootDir??process.cwd(),r=t.maxResults??20,i=w(T(n,t),n),a=[];for(let t of i.results)for(let n of t.symbols){let{score:t,matchType:r}=E(n,e);t>0&&a.push({symbol:n,score:t,matchType:r})}return a.sort((e,t)=>t.score-e.score||e.symbol.name.localeCompare(t.symbol.name)),a.slice(0,r)}var O=new Set([`imports`,`extends`,`implements`]),k=[`calls`,`imports`,`extends`,`implements`,`method_overrides`,`method_implements`];function A(e,t,n,r,i){let a=t.length,o=a+n.length+r.length,s=e.filePath,c=i.filter(e=>O.has(e.type)&&e.source!==s&&e.target!==s).length;return e.exported&&c>=5&&o>=10||e.exported&&a>=10?`critical`:a>=10||a>=5&&c>=3?`high`:a>=4||c>=2?`medium`:`low`}function j(e,t,n,r){let i=t.toUpperCase();return r===0?`${e}: no dependants found — risk ${i}`:`${e}: ${n} direct dependant(s), ${r} total affected node(s) — risk ${i}`}function M(e,t,n,r){let i=new Map;for(let a of e){if(!t.has(a.type)||a.confidence<r)continue;let e=n===`upstream`?a.target:a.source,o=n===`upstream`?a.source:a.target,s=i.get(e);s||(s=new Set,i.set(e,s)),s.add(o)}return i}function N(e,t,n,r){let i=r?.maxDepth??3,a=r?.direction??`upstream`,o=r?.minConfidence??0,s=r?.relationTypes?new Set(r.relationTypes):new Set(k),c=new Map,l=new Map;for(let e of t)c.set(e.id,e),l.has(e.name)||l.set(e.name,e);let u=l.get(e)??c.get(e);if(!u)return{target:e,riskLevel:`low`,summary:`${e}: not found in graph`,affectedByDepth:{depth1_willBreak:[],depth2_likelyAffected:[],depth3_mayNeedTesting:[]},totalAffected:0};let d=M(n,s,a,o),f=new Set([u.id]),p=[],m=[],h=[],g=[u.id];for(let e=1;e<=Math.min(i,3);e++){let t=[];for(let n of g){let r=d.get(n);if(r)for(let n of r){if(f.has(n))continue;f.add(n);let r=c.get(n);r&&(t.push(n),e===1?p.push(r):e===2?m.push(r):e===3&&h.push(r))}}if(g=t,g.length===0)break}let _=p.length+m.length+h.length,v=A(u,p,m,h,n);return{target:e,riskLevel:v,summary:j(e,v,p.length,_),affectedByDepth:{depth1_willBreak:p,depth2_likelyAffected:m,depth3_mayNeedTesting:h},totalAffected:_}}Object.freeze({get:()=>void 0,getInsensitive:()=>void 0,getFilesInDir:()=>[]});var P=(0,n.createRequire)(import.meta.url);P(`graphology`),P(`@aflsolutions/graphology-communities-leiden`),(0,n.createRequire)(import.meta.url);export{N as analyzeImpact,D as smartSearch};
@@ -1 +0,0 @@
1
- import{t as e}from"./DySe3kTV2.js";export{e as openCleoDb};
@@ -1,2 +0,0 @@
1
- var e={version:1,pragmas:[[`busy_timeout`,`30000`],[`journal_mode`,`WAL`],[`synchronous`,`NORMAL`],[`foreign_keys`,`ON`],[`cache_size`,`-64000`],[`mmap_size`,`268435456`],[`temp_store`,`MEMORY`],[`wal_autocheckpoint`,`1000`]]}.pragmas;function t(e){let[t,n]=e;return`PRAGMA ${t} = ${n}`}e.map(t).join(`;
2
- `);function n(t,n={}){let{enableWal:i=!0,enableForeignKeys:a=!{}.VITEST,cacheSizeKb:o,mmapSizeBytes:s,busyTimeoutMs:c}=n;for(let n of e){let[e,l]=n,u=r(e,l,{enableWal:i,enableForeignKeys:a,cacheSizeKb:o,mmapSizeBytes:s,busyTimeoutMs:c});u!==null&&t.exec(`PRAGMA ${e} = ${u}`)}}function r(e,t,n){switch(e){case`journal_mode`:return n.enableWal?t:null;case`foreign_keys`:return n.enableForeignKeys?t:null;case`busy_timeout`:return n.busyTimeoutMs===void 0?t:String(n.busyTimeoutMs);case`cache_size`:return n.cacheSizeKb===void 0?t:`-${n.cacheSizeKb}`;case`mmap_size`:return n.mmapSizeBytes===void 0?t:n.mmapSizeBytes>0?String(n.mmapSizeBytes):null;default:return t}}export{n as t};
@@ -1 +0,0 @@
1
- var e=class{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==`number`&&typeof t.headers==`object`}},t=e=>encodeURIComponent(e).replace(/[!'()*]/g,n),n=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function r(e){let n=[];for(let r of Object.keys(e).sort()){let i=e[r];if(r=t(r),Array.isArray(i))for(let e=0,a=i.length;e<a;e++)n.push(`${r}=${t(i[e])}`);else{let e=r;(i||typeof i==`string`)&&(e+=`=${t(i)}`),n.push(e)}}return n.join(`&`)}function i(e,t){return new Request(e,t)}function a(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{let t=Error(`Request did not complete within ${e} ms`);t.name=`TimeoutError`,n(t)},e)})}var o={supported:void 0},s=class t{config;configProvider;static create(e){return typeof e?.handle==`function`?e:new t(e)}constructor(e){typeof e==`function`?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),o.supported===void 0&&(o.supported=typeof Request<`u`&&`keepalive`in i(`https://[::1]`))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:s}={}){this.config||=await this.configProvider;let l=s??this.config.requestTimeout,u=this.config.keepAlive===!0,d=this.config.credentials;if(n?.aborted){let e=c(n);return Promise.reject(e)}let f=t.path,p=r(t.query||{});p&&(f+=`?${p}`),t.fragment&&(f+=`#${t.fragment}`);let m=``;(t.username!=null||t.password!=null)&&(m=`${t.username??``}:${t.password??``}@`);let{port:h,method:g}=t,_=`${t.protocol}//${m}${t.hostname}${h?`:${h}`:``}${f}`,v=g===`GET`||g===`HEAD`?void 0:t.body,y={body:v,headers:new Headers(t.headers),method:g,credentials:d};this.config?.cache&&(y.cache=this.config.cache),v&&(y.duplex=`half`),typeof AbortController<`u`&&(y.signal=n),o.supported&&(y.keepalive=u),typeof this.config.requestInit==`function`&&Object.assign(y,this.config.requestInit(t));let b=()=>{},x=i(_,y),S=[fetch(x).then(t=>{let n=t.headers,r={};for(let e of n.entries())r[e[0]]=e[1];return t.body==null?t.blob().then(n=>({response:new e({headers:r,reason:t.statusText,statusCode:t.status,body:n})})):{response:new e({headers:r,reason:t.statusText,statusCode:t.status,body:t.body})}}),a(l)];return n&&S.push(new Promise((e,t)=>{let r=()=>{t(c(n))};if(typeof n.addEventListener==`function`){let e=n;e.addEventListener(`abort`,r,{once:!0}),b=()=>e.removeEventListener(`abort`,r)}else n.onabort=r})),Promise.race(S).finally(b)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}httpHandlerConfigs(){return this.config??{}}};function c(e){let t=e&&typeof e==`object`&&`reason`in e?e.reason:void 0;if(t){if(t instanceof Error){let e=Error(`Request aborted`);return e.name=`AbortError`,e.cause=t,e}let e=Error(String(t));return e.name=`AbortError`,e}let n=Error(`Request aborted`);return n.name=`AbortError`,n}export{t as n,e as r,s as t};
@@ -1,5 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BZu9rehd.js","./Bbzm48C52.js","./DrKWWDpL.js","./DaXb9i_E.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./DYP3EJMY.js","./B2_6RrlL2.js","./DXpCX2Hi.js","./BYJC6_MM.js","./Ml4JR6Jz2.js","./DsQIgu-4.js","./DOqzs8kl2.js","./MiAejGV_.js","./CsMn5fBs.js","./CXQrVnHf.js","./DF_4OWhj.js","./Djr2dbcc2.js","./BVNGAeZe2.js","./NU5S3nNs2.js","./DzhuJaxE2.js","./9bLMgKwu2.js","./DtNkZUkq.js","./CV4ck7fz.js","./Cc8xxDr5.js","./VQszoXcV.js","./C1vWmhYe.js","./C5Nlanei.js","./DTxtWPkw.js","./BK17qSHw.js","./DO2GztVm.js","./D93KpglN.js","./CeYPAoY9.js","./DeRRkRO52.js","./B2u2rNyI2.js","./BHciFt922.js","./Chpy9ca7.js","./C8MZnWta.js","./CHkCZrnr.js","./D2pa4reh.js","./BQZx6brg.js","./C2oZaDvt.js","./7UXYlaI1.js","./CKoQ7Ko5.js","./orUmAKoW2.js","./D6UDnATk2.js","./BAtZg5v5.js","./aQNM7eVA2.js","./BUPJTTTd.js","./CHgPjuDQ.js","./C3OziSQx.js","./B2qKEYxA2.js","./CnJf5tML.js","./Oh5zPjv3.js"])))=>i.map(i=>d[i]);
2
- import{s as e}from"./DrKWWDpL.js";import{n as t,t as n}from"./DsQIgu-4.js";import{t as r}from"./DYP3EJMY.js";import{Vn as i,d as a,f as o,p as s}from"./CdqDTozW.js";import{i as c}from"./BAtZg5v5.js";import{s as l}from"./Chpy9ca7.js";import{n as u}from"./9bLMgKwu2.js";import{r as d,t as f}from"./BHciFt922.js";import{n as p}from"./DeRRkRO52.js";import{n as m,t as h}from"./UyeQuL132.js";var g=e(r(),1),_=/(?:^|[\s`"'([\]{,])((\/[\w.\-/]+|[\w.-]+(?:\/[\w.-]+)+)\.(ts|tsx|js|jsx|rs|json))(?=$|[\s`"')[\]{,])/gm,v=/(?<![`"'/\w.])(?:[A-Z][a-zA-Z0-9]{2,}|[a-z][a-zA-Z0-9]*(?:[A-Z][a-zA-Z0-9]*)+|[a-z][a-z0-9]*(?:_[a-z][a-z0-9]*){2,})(?![`"'/\w])/g;function y(e){let t=new Set,n=[];for(let r of e.matchAll(_)){let e=r[1];if(!e)continue;let i=`file:${e}`;t.has(i)||(t.add(i),n.push({raw:e,nodeId:i,nodeType:`file`,label:e}))}for(let r of e.matchAll(v)){let e=r[0];if(!e||e.length<4||b.has(e.toLowerCase()))continue;let i=`symbol:${e}`;t.has(i)||(t.add(i),n.push({raw:e,nodeId:i,nodeType:`symbol`,label:e}))}return n}var b=new Set(`this.that.with.from.into.when.then.also.both.each.such.over.after.before.always.never.should.must.will.would.could.have.been.there.their.they.them.these.those.some.only.just.more.most.many.much.well.very.here.where.which.what.why.how.the.and.but.for.not.are.was.were.has.had.its.the.data.true.false.null.none.type.test.spec.todo.fixme.note.example.index.config.error.value.input.output.result.return.default.source.target.import.export.class.interface.function.const.async.await`.split(`.`));async function x(e,t,n){let r=`decision:${t}`,i=n.map(async t=>{await d(e,t.nodeId,t.nodeType,t.label,.5,t.raw),await f(e,r,t.nodeId,`applies_to`,1,`auto:decision-cross-link`)});await Promise.allSettled(i)}async function S(e,t,n,r){try{let i=y(`${n} ${r}`);if(i.length===0)return;await x(e,t,i)}catch{}}t();var C=.7;async function w(e){try{let{getRawConfigValue:t}=await n(async()=>{let{getRawConfigValue:e}=await import(`./BZu9rehd.js`);return{getRawConfigValue:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),r=await t(`decisions.validatorConfidenceThreshold`,e);if(typeof r==`number`&&r>=0&&r<=1)return r}catch{}return C}async function T(e,t){let r={collisions:[],contradictions:[],supersession_graph_violations:[],confidence:1};if({}.CLEO_ENV===`test`||!e.adrPath)return r;let i=[],a=[],o=[],s=(e.decision.trim()+` `+e.rationale.trim()).toLowerCase();for(let e of t){let t=(e.decision.trim()+` `+e.rationale.trim()).toLowerCase(),n=new Set(s.match(/\b\w{4,}\b/g)??[]),r=new Set(t.match(/\b\w{4,}\b/g)??[]),a=[...n].filter(e=>r.has(e)).length,o=new Set([...n,...r]).size;(o>0?a/o:0)>=.65&&i.push(e.id)}if(e.supersedes){let n=t.find(t=>t.id===e.supersedes);n?n.supersedes&&o.push(`supersedes:${e.supersedes}:already-superseded-by:${n.supersedes}`):o.push(`supersedes:${e.supersedes}:not-found`)}let c=1;try{let{evaluateDialectic:r}=await n(async()=>{let{evaluateDialectic:e}=await import(`./MiAejGV_.js`);return{evaluateDialectic:e}},__vite__mapDeps([14,15,2,16,5,6,17,7,18,12,19,20,21,22,23,24,25,26,4,27,28,11,13,8,29,30,31,32,33,34,35,36,37,38,39,40,41,9,10,42,43,44,45,46,47,48,49,50,51,52]),import.meta.url),o=t.length===0?`No existing decisions in the database.`:t.slice(0,20).map(e=>`[${e.id}] ${e.decision}: ${e.rationale}`).join(`
3
- `),s=(await r({userMessage:`Candidate ADR decision for conflict checking:\nType: ${e.type}\nDecision: ${e.decision}\nRationale: ${e.rationale}\n`+(e.adrPath?`ADR path: ${e.adrPath}\n`:``)+(i.length>0?`\nPossible near-duplicates detected: ${i.join(`, `)}\n`:``),systemResponse:`Existing architectural decisions in the system:\n${o}\n\nTask: Identify whether the candidate decision contradicts any existing decisions. Assign a confidence score where 1.0 = no conflicts and 0.0 = severe contradiction.`,activePeerId:`decision-validator`,sessionId:`validate:${(0,g.createHash)(`sha256`).update(e.decision).digest(`hex`).slice(0,8)}`})).peerInsights.filter(e=>e.key.includes(`contradict`)||e.key.includes(`conflict`)||e.key.includes(`collision`));if(s.length>0)for(let e of s){let t=e.value.match(/\bD\d{3,}\b/g)??[];for(let e of t)a.includes(e)||a.push(e);c=Math.min(c,e.confidence)}s.length===0&&(c=Math.max(0,1-i.length*.15))}catch{c=1}let l=o.length*.3;return{collisions:i,contradictions:a,supersession_graph_violations:o,confidence:Math.max(0,c-l)}}var E=16;function D(e){if(!(e instanceof Error))return!1;let t=e.errcode;return(t===1555||t===2067||/UNIQUE constraint failed/i.test(e.message))&&/brain_decisions\.id/.test(e.message)}async function O(e,t){if(!t.decision?.trim())throw Error(`Decision text is required`);if(!t.rationale?.trim())throw Error(`Rationale is required`);if(t.type){let e=s.default.validate([t.type]);if(e.length>0)throw new o(`Invalid decision type '${t.type}'. Valid types: ${a.join(`, `)}. Use 'cleo taxonomy list --axis type' to see all valid type tags.`,e)}if(!t._skipGate&&t.adrPath){let n=await(await u(e)).findDecisions({}),r=await T({decision:t.decision,rationale:t.rationale,type:t.type,adrPath:t.adrPath,supersedes:t.supersedes},n.map(e=>({id:e.id,decision:e.decision,rationale:e.rationale,supersedes:e.supersedes}))),a=await w(e);if(r.confidence<a){let e=[...r.collisions.map(e=>`collision:${e}`),...r.contradictions.map(e=>`contradiction:${e}`),...r.supersession_graph_violations];throw new i(t.decision.trim().slice(0,120),r.confidence,e)}}if(!t._skipGate){let{verifyCandidate:r}=await n(async()=>{let{verifyCandidate:e}=await import(`./CnJf5tML.js`);return{verifyCandidate:e}},__vite__mapDeps([53,54,2,12,21,20,22,23,24,25,26,17,7,4,5,6,27,28,11,13,8,29,30,31,32,33,36]),import.meta.url),i=t.confidence===`high`?.85:t.confidence===`medium`?.65:.45,a=await r(e,{text:(t.decision.trim()+`
4
- `+t.rationale.trim()).toLowerCase(),title:t.decision.trim().slice(0,120),memoryType:`semantic`,tier:`medium`,confidence:i,source:`manual`,sourceConfidence:`owner`,trusted:!0});if(a.action!==`stored`){let t=a.id?await(await u(e)).getDecision(a.id).catch(()=>null):null;if(t)return t}}let r=await u(e),_=(await r.findDecisions({type:t.type})).find(e=>e.decision.toLowerCase()===t.decision.toLowerCase());if(_){let n=new Date().toISOString().replace(`T`,` `).slice(0,19);await r.updateDecision(_.id,{rationale:t.rationale.trim(),confidence:t.confidence,outcome:t.outcome??_.outcome,alternativesJson:t.alternatives?JSON.stringify(t.alternatives):_.alternativesJson,updatedAt:n});let i=await r.getDecision(_.id),a=p({confidence:t.confidence,rationale:t.rationale.trim(),contextTaskId:t.contextTaskId??null});return d(e,`decision:${_.id}`,`decision`,t.decision.trim().substring(0,200),a,t.decision.trim()+t.rationale.trim(),{type:t.type,confidence:t.confidence}).catch(()=>{}),i}let v=t.contextEpicId,y=t.contextTaskId;if(v||y){let t=await l(e);v&&!await c(v,t)&&(v=void 0),y&&!await c(y,t)&&(y=void 0)}let b=`medium`,x=`owner`,C=p({confidence:t.confidence,rationale:t.rationale.trim(),contextTaskId:y??null,sourceConfidence:x,memoryTier:b}),O=(0,g.createHash)(`sha256`).update((t.decision.trim()+`
5
- `+t.rationale.trim()).toLowerCase()).digest(`hex`).slice(0,16),k={id:`D000`,type:t.type,decision:t.decision.trim(),rationale:t.rationale.trim(),confidence:t.confidence,outcome:t.outcome,alternativesJson:t.alternatives?JSON.stringify(t.alternatives):void 0,contextEpicId:v,contextTaskId:y,contextPhase:t.contextPhase,qualityScore:C,memoryTier:b,memoryType:`semantic`,sourceConfidence:x,verified:!0,contentHash:O,adrPath:t.adrPath,supersedes:t.supersedes,confirmationState:t.confirmationState,decidedBy:t.decidedBy},A,j;for(let e=0;e<E;e++)try{A=await r.addDecisionWithSequentialId(k);break}catch(e){if(D(e)){j=e;continue}throw e}if(!A)throw Error(`Failed to allocate a unique brain_decisions.id after ${E} attempts under concurrent writes`+(j instanceof Error?`: ${j.message}`:``));try{await d(e,`decision:${A.id}`,`decision`,A.decision.substring(0,200),C,A.decision+A.rationale,{type:A.type,confidence:A.confidence}),y&&(await d(e,`task:${y}`,`task`,y,1,``),await f(e,`decision:${A.id}`,`task:${y}`,`applies_to`,1,`auto:store-decision`)),v&&(await d(e,`epic:${v}`,`epic`,v,1,``),await f(e,`decision:${A.id}`,`epic:${v}`,`applies_to`,1,`auto:store-decision`)),S(e,A.id,A.decision,A.rationale).catch(()=>{})}catch{}return h(e,{id:A.id,text:A.decision+` `+A.rationale,createdAt:A.createdAt??new Date().toISOString().replace(`T`,` `).slice(0,19)}).then(t=>{for(let n of t)m(e,n.existingId,A.id,`auto:decision-supersedes — high overlap detected at store time`).catch(()=>{})}).catch(()=>{}),A}export{T as n,O as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CI_91WUN.js","./BHnFwTQY.js","./BWfLryGm.js","./BLkgUtyb.js","./DHQfJeLU.js","./nab7WB3u2.js","./DrKWWDpL.js","./DYP3EJMY.js","./BBs1U1iU.js","./Cs0zC2l2.js","./_4ykQk_8.js","./CpF4Rrcc2.js","./CNToUR3P.js","./DsQIgu-4.js","./imLk4if5.js","./D1LBVx6r2.js","./C1w6bBje.js","./B2F3KUIU.js","./BxISGQCl2.js","./Ctetf8vc2.js","./nLIOiDZp2.js"])))=>i.map(i=>d[i]);
2
- import{s as e}from"./DrKWWDpL.js";import{n as t,t as n}from"./DsQIgu-4.js";import{t as r}from"./DYP3EJMY.js";import{t as i}from"./_4ykQk_8.js";import{c as a,f as o,l as s,m as c,r as l}from"./BHnFwTQY.js";import{t as u}from"./BWfLryGm.js";t();var d=(e,t,r)=>{let i={EcsContainer:async e=>{let{fromHttp:t}=await n(async()=>{let{fromHttp:e}=await import(`./CI_91WUN.js`);return{fromHttp:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url),{fromContainerMetadata:i}=await n(async()=>{let{fromContainerMetadata:e}=await import(`./nab7WB3u2.js`);return{fromContainerMetadata:e}},__vite__mapDeps([5,6,1,7]),import.meta.url);return r?.debug(`@aws-sdk/credential-provider-ini - credential_source is EcsContainer`),async()=>o(t(e??{}),i(e))().then(f)},Ec2InstanceMetadata:async e=>{r?.debug(`@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata`);let{fromInstanceMetadata:t}=await n(async()=>{let{fromInstanceMetadata:e}=await import(`./nab7WB3u2.js`);return{fromInstanceMetadata:e}},__vite__mapDeps([5,6,1,7]),import.meta.url);return async()=>t(e)().then(f)},Environment:async e=>{r?.debug(`@aws-sdk/credential-provider-ini - credential_source is Environment`);let{fromEnv:t}=await n(async()=>{let{fromEnv:e}=await import(`./BBs1U1iU.js`);return{fromEnv:e}},__vite__mapDeps([8,9,10,1]),import.meta.url);return async()=>t(e)().then(f)}};if(e in i)return i[e];throw new c(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},f=e=>i(e,`CREDENTIALS_PROFILE_NAMED_PROVIDER`,`p`);t();var p=(e,{profile:t=`default`,logger:n}={})=>!!e&&typeof e==`object`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1&&[`undefined`,`string`].indexOf(typeof e.external_id)>-1&&[`undefined`,`string`].indexOf(typeof e.mfa_serial)>-1&&(m(e,{profile:t,logger:n})||h(e,{profile:t,logger:n})),m=(e,{profile:t,logger:n})=>{let r=typeof e.source_profile==`string`&&e.credential_source===void 0;return r&&n?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),r},h=(e,{profile:t,logger:n})=>{let r=typeof e.credential_source==`string`&&e.source_profile===void 0;return r&&n?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),r},g=async(e,t,r,a,o={},s)=>{r.logger?.debug(`@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)`);let u=t[e],{source_profile:f,region:p}=u;if(!r.roleAssumer){let{getDefaultRoleAssumer:e}=await n(async()=>{let{getDefaultRoleAssumer:e}=await import(`./CpF4Rrcc2.js`);return{getDefaultRoleAssumer:e}},__vite__mapDeps([11,12,13,6,1,2,3,4,14,10]),import.meta.url);r.roleAssumer=e({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...a,...r?.parentClientConfig,region:p??r?.parentClientConfig?.region??a?.region}},r.clientPlugins)}if(f&&f in o)throw new c(`Detected a cycle attempting to resolve credentials for profile ${l(r)}. Profiles visited: `+Object.keys(o).join(`, `),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${f?`source_profile=[${f}]`:`profile=[${e}]`}`);let m=f?s(f,t,r,a,{...o,[f]:!0},_(t[f]??{})):(await d(u.credential_source,e,r.logger)(r))();if(_(u))return m.then(e=>i(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`));{let t={RoleArn:u.role_arn,RoleSessionName:u.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:u.external_id,DurationSeconds:parseInt(u.duration_seconds||`3600`,10)},{mfa_serial:n}=u;if(n){if(!r.mfaCodeProvider)throw new c(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});t.SerialNumber=n,t.TokenCode=await r.mfaCodeProvider(n)}let a=await m;return r.roleAssumer(a,t).then(e=>i(e,`CREDENTIALS_PROFILE_SOURCE_PROFILE`,`o`))}},_=e=>!e.role_arn&&!!e.credential_source,v=e(r());t();var y=class e{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,t,n){this.profileData=e,this.init=t,this.callerClientConfig=n}async loadCredentials(){let t=await this.loadToken();if(!t)throw new c(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=t.accessToken,r=Date.now();return new Date(n.expiresAt).getTime()-r<=e.REFRESH_THRESHOLD?this.refresh(t):{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:t,CreateOAuth2TokenCommand:r}=await n(async()=>{let{SigninClient:e,CreateOAuth2TokenCommand:t}=await import(`./D1LBVx6r2.js`);return{SigninClient:e,CreateOAuth2TokenCommand:t}},__vite__mapDeps([15,12,13,6,1,2,3,4,14,10,16,17]),import.meta.url),{logger:i,userAgentAppId:a}=this.callerClientConfig??{},o=(e=>e?.metadata?.handlerProtocol===`h2`)(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,s=new t({credentials:{accessKeyId:``,secretAccessKey:``},region:this.profileData.region??await this.callerClientConfig?.region?.()??{}.AWS_REGION,requestHandler:o,logger:i,userAgentAppId:a,...this.init?.clientConfig});this.createDPoPInterceptor(s.middlewareStack);let l={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:`refresh_token`}};try{let t=await s.send(new r(l)),{accessKeyId:n,secretAccessKey:i,sessionToken:a}=t.tokenOutput?.accessToken??{},{refreshToken:o,expiresIn:u}=t.tokenOutput??{};if(!n||!i||!a||!o)throw new c(`Token refresh response missing required fields`,{logger:this.logger,tryNextLink:!1});let d=(u??900)*1e3,f=new Date(Date.now()+d),p={...e,accessToken:{...e.accessToken,accessKeyId:n,secretAccessKey:i,sessionToken:a,expiresAt:f.toISOString()},refreshToken:o};await this.saveToken(p);let m=p.accessToken;return{accessKeyId:m.accessKeyId,secretAccessKey:m.secretAccessKey,sessionToken:m.sessionToken,accountId:m.accountId,expiration:f}}catch(e){if(e.name===`AccessDeniedException`){let t=e.error,n;switch(t){case`TOKEN_EXPIRED`:n=`Your session has expired. Please reauthenticate.`;break;case`USER_CREDENTIALS_CHANGED`:n=`Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.`;break;case`INSUFFICIENT_PERMISSIONS`:n=`Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.`;break;default:n=`Failed to refresh token: ${String(e)}. Please re-authenticate using \`aws login\``}throw new c(n,{logger:this.logger,tryNextLink:!1})}throw new c(`Failed to refresh token: ${String(e)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t;try{t=await s(e,{ignoreCache:this.init?.ignoreCache})}catch{t=await v.promises.readFile(e,`utf8`)}let n=JSON.parse(t),r=[`accessToken`,`clientId`,`refreshToken`,`dpopKey`].filter(e=>!n[e]);if(n.accessToken?.accountId||r.push(`accountId`),r.length>0)throw new c(`Token validation failed, missing fields: ${r.join(`, `)}`,{logger:this.logger,tryNextLink:!1});return n}catch(t){throw new c(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),n=(0,v.dirname)(t);try{await v.promises.mkdir(n,{recursive:!0})}catch{}await v.promises.writeFile(t,JSON.stringify(e,null,2),`utf8`)}getTokenFilePath(){let e={}.AWS_LOGIN_CACHE_DIRECTORY??(0,v.join)((0,v.homedir)(),`.aws`,`login`,`cache`),t=Buffer.from(this.loginSession,`utf8`);return(0,v.join)(e,`${(0,v.createHash)(`sha256`).update(t).digest(`hex`)}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw Error(`Invalid DER signature`);t++;let n=e[t++],r=e.subarray(t,t+n);if(t+=n,e[t]!==2)throw Error(`Invalid DER signature`);t++;let i=e[t++],a=e.subarray(t,t+i);r=r[0]===0?r.subarray(1):r,a=a[0]===0?a.subarray(1):a;let o=Buffer.concat([Buffer.alloc(32-r.length),r]),s=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([o,s])}createDPoPInterceptor(e){e.add(e=>async t=>{if(u.isInstance(t.request)){let e=t.request,n=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:``}${e.path}`,r=await this.generateDpop(e.method,n);e.headers={...e.headers,DPoP:r}}return e(t)},{step:`finalizeRequest`,name:`dpopInterceptor`,override:!0})}async generateDpop(e=`POST`,t){let n=await this.loadToken();try{let r=(0,v.createPrivateKey)({key:n.dpopKey,format:`pem`,type:`sec1`}),i=(0,v.createPublicKey)(r).export({format:`der`,type:`spki`}),a=-1;for(let e=0;e<i.length;e++)if(i[e]===4){a=e;break}let o=i.slice(a+1,a+33),s=i.slice(a+33,a+65),c={alg:`ES256`,typ:`dpop+jwt`,jwk:{kty:`EC`,crv:`P-256`,x:o.toString(`base64url`),y:s.toString(`base64url`)}},l={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1e3)},u=`${Buffer.from(JSON.stringify(c)).toString(`base64url`)}.${Buffer.from(JSON.stringify(l)).toString(`base64url`)}`,d=(0,v.sign)(`sha256`,Buffer.from(u),r);return`${u}.${this.derToRawSignature(d).toString(`base64url`)}`}catch(e){throw new c(`Failed to generate Dpop proof: ${e instanceof Error?e.message:String(e)}`,{logger:this.logger,tryNextLink:!1})}}},b=e=>async({callerClientConfig:t}={})=>{e?.logger?.debug?.(`@aws-sdk/credential-providers - fromLoginCredentials`);let n=await a(e||{}),r=l({profile:e?.profile??t?.profile}),o=n[r];if(!o?.login_session)throw new c(`Profile ${r} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});return i(await new y(o,e,t).loadCredentials(),`CREDENTIALS_LOGIN`,`AD`)},x=e=>!!(e&&e.login_session),S=async(e,t,n)=>i(await b({...t,profile:e})({callerClientConfig:n}),`CREDENTIALS_PROFILE_LOGIN`,`AC`);t();var C=e=>!!e&&typeof e==`object`&&typeof e.credential_process==`string`,w=async(e,t)=>n(async()=>{let{fromProcess:e}=await import(`./BxISGQCl2.js`);return{fromProcess:e}},__vite__mapDeps([18,6,10,1,7]),import.meta.url).then(({fromProcess:n})=>n({...e,profile:t})().then(e=>i(e,`CREDENTIALS_PROFILE_PROCESS`,`v`)));t();var T=async(e,t,r={},a)=>{let{fromSSO:o}=await n(async()=>{let{fromSSO:e}=await import(`./Ctetf8vc2.js`);return{fromSSO:e}},__vite__mapDeps([19,6,13,10,1,7]),import.meta.url);return o({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:a}).then(e=>t.sso_session?i(e,`CREDENTIALS_PROFILE_SSO`,`r`):i(e,`CREDENTIALS_PROFILE_SSO_LEGACY`,`t`))},E=e=>e&&(typeof e.sso_start_url==`string`||typeof e.sso_account_id==`string`||typeof e.sso_session==`string`||typeof e.sso_region==`string`||typeof e.sso_role_name==`string`),D=e=>!!e&&typeof e==`object`&&typeof e.aws_access_key_id==`string`&&typeof e.aws_secret_access_key==`string`&&[`undefined`,`string`].indexOf(typeof e.aws_session_token)>-1&&[`undefined`,`string`].indexOf(typeof e.aws_account_id)>-1,O=async(e,t)=>(t?.logger?.debug(`@aws-sdk/credential-provider-ini - resolveStaticCredentials`),i({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}},`CREDENTIALS_PROFILE`,`n`));t();var k=e=>!!e&&typeof e==`object`&&typeof e.web_identity_token_file==`string`&&typeof e.role_arn==`string`&&[`undefined`,`string`].indexOf(typeof e.role_session_name)>-1,A=async(e,t,r)=>n(async()=>{let{fromTokenFile:e}=await import(`./nLIOiDZp2.js`);return{fromTokenFile:e}},__vite__mapDeps([20,6,7]),import.meta.url).then(({fromTokenFile:n})=>n({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r}).then(e=>i(e,`CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN`,`q`))),j=async(e,t,n,r,i={},a=!1)=>{let o=t[e];if(Object.keys(i).length>0&&D(o))return O(o,n);if(a||p(o,{profile:e,logger:n.logger}))return g(e,t,n,r,i,j);if(D(o))return O(o,n);if(k(o))return A(o,n,r);if(C(o))return w(n,e);if(E(o))return await T(e,o,n,r);if(x(o))return S(e,n,r);throw new c(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:n.logger})},M=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-ini - fromIni`);let n=await a(e);return j(l({profile:e.profile??t?.profile}),n,e,t)};export{M as fromIni};
@@ -1,2 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{S as n,c as r,g as i,h as a,y as o}from"./C1vWmhYe.js";import{t as s}from"./BK17qSHw.js";import{i as c,r as l,s as u}from"./DO2GztVm.js";var d=e(t(),1),f=(0,d.createRequire)(import.meta.url),{DatabaseSync:p}=f(`node:sqlite`),m=null;function h(){return m===null&&(m=f(`drizzle-orm/node-sqlite`).drizzle),m}var g=`2026.4.23`;function _(e){return r(`project`,e)}function v(){return i(`drizzle-conduit`)}function y(e){let t=v();n(e,t,`_conduit_meta`,`conduit`,a(`drizzle-conduit`)),o(h()({client:e}),{migrationsFolder:t})}async function b(e){let t=_(e),n=u(`conduit`,e)!==null||(0,d.existsSync)(t);return await x(e),{action:n?`exists`:`created`,path:t}}async function x(e){return l(`conduit`,e,e=>(y(e),e.exec(`INSERT OR REPLACE INTO _conduit_meta (key, value, updated_at)
2
- VALUES ('schema_version', '${g}', strftime('%s', 'now'))`),e))}function S(e){return c(`conduit`,e)}function C(e){let t=new p(_(e));return s(t),t}export{C as i,_ as n,S as r,b as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ClT89UdO.js","./CXQrVnHf.js","./D7w7HllH.js","./DrKWWDpL.js","./DB5ifLM-.js","./9kKqohVR2.js","./DsQIgu-4.js","./DqK84mbb.js","./CxRIz-Zd.js","./DOqzs8kl2.js","./DYP3EJMY.js","./DF_4OWhj.js","./CdqDTozW.js","./Bbzm48C52.js","./DaXb9i_E.js","./B2_6RrlL2.js","./DXpCX2Hi.js","./BYJC6_MM.js","./Ml4JR6Jz2.js","./CTJEdbIn.js","./BGiusSqE.js","./ClAPVhCD.js","./HwtzDYxN.js","./CHJgk6g-.js","./uE83FKL-.js","./Bfjb9LPp.js","./CQLIZtxj.js","./CTTT3wYw.js","./B3sNtbqf.js","./mgnH6qYg.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";e();var n=[`gemma4:e4b-it`,`gemma4:e2b-it`,`gemma4:e2b`,`phi4-mini`,`llama3.2:3b`,`llama3.2`],r=`claude-sonnet-4-6`,i=`onnx-community/Qwen2.5-0.5B-Instruct`;async function a(e){return await d()||(e===`warm`?await o()||await s()||a(`cold`):e===`cold`?await c(r):null)}async function o(){try{let e=await fetch(`http://localhost:11434/api/tags`,{signal:AbortSignal.timeout(2e3)});if(!e.ok)return null;let r=((await e.json()).models??[]).map(e=>e.name??e.model??``).filter(Boolean);if(r.length===0)return null;let i;for(let e of n)if(r.some(t=>t===e||t.startsWith(e.split(`:`)[0]))){i=e;break}i||=r[0];let{createOpenAICompatible:a}=await t(async()=>{let{createOpenAICompatible:e}=await import(`./ClT89UdO.js`);return{createOpenAICompatible:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return{model:a({baseURL:`http://localhost:11434/v1`,name:`ollama`})(i),name:`ollama`,modelId:i}}catch{return null}}async function s(){try{let{env:e}=await t(async()=>{let{env:e}=await import(`./9kKqohVR2.js`);return{env:e}},__vite__mapDeps([5,3,6]),import.meta.url);return e===void 0?null:{model:null,name:`transformers`,modelId:i}}catch{return null}}async function c(e){try{let{resolveCredentials:n}=await t(async()=>{let{resolveCredentials:e}=await import(`./DqK84mbb.js`);return{resolveCredentials:e}},__vite__mapDeps([7,8,3,9,10,11,12,2,4,13,14,15,16,17,18,6,19,20,21,22]),import.meta.url),r=n(`anthropic`).apiKey;if(!r)return null;let{createAnthropic:i}=await t(async()=>{let{createAnthropic:e}=await import(`./CHJgk6g-.js`);return{createAnthropic:e}},__vite__mapDeps([23,1,2,3,4]),import.meta.url);return{model:i({apiKey:r})(e),name:`anthropic`,modelId:e}}catch{return null}}var l=`http://localhost:11434/v1`;async function u(e){if(e===`ollama`)return l;try{let{getProviderProfile:n}=await t(async()=>{let{getProviderProfile:e}=await import(`./uE83FKL-.js`);return{getProviderProfile:e}},__vite__mapDeps([24,19,3,6,20,9,10,18,12,2,4,15]),import.meta.url),r=await n(e);if(r?.baseUrl)return r.baseUrl}catch{}if(e===`openai`)return`https://api.openai.com/v1`}async function d(){try{let{resolveLLMForSystem:e}=await t(async()=>{let{resolveLLMForSystem:e}=await import(`./Bfjb9LPp.js`);return{resolveLLMForSystem:e}},__vite__mapDeps([25,6,3,11,10,12,2,4,26,27,28,13,14,15,16,17,18,9,29,8,19,20,21,22]),import.meta.url),n=await e({kind:`role`,id:`extraction`},{skipCatalogDefault:!0}),r=n.sealedCredential?(await n.sealedCredential.fetch()).value:null;if(n.provider===`anthropic`){if(!r)return null;let{createAnthropic:e}=await t(async()=>{let{createAnthropic:e}=await import(`./CHJgk6g-.js`);return{createAnthropic:e}},__vite__mapDeps([23,1,2,3,4]),import.meta.url);return{model:e({apiKey:r})(n.model),name:`anthropic`,modelId:n.model}}if(n.provider===`openai`||n.provider===`ollama`){let e=await u(n.provider);if(!e)return null;let{createOpenAICompatible:i}=await t(async()=>{let{createOpenAICompatible:e}=await import(`./ClT89UdO.js`);return{createOpenAICompatible:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return{model:i({baseURL:e,name:n.provider,...r?{apiKey:r}:{}})(n.model),name:n.provider===`ollama`?`ollama`:`openai`,modelId:n.model}}return null}catch{return null}}export{a as t};