@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,146 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Djz4EDzO.js","./CV4ck7fz.js","./DrKWWDpL.js","./DsQIgu-4.js","./DtNkZUkq.js","./Cc8xxDr5.js","./VQszoXcV.js","./DF_4OWhj.js","./DYP3EJMY.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./C1vWmhYe.js","./C5Nlanei.js","./Ml4JR6Jz2.js","./DOqzs8kl2.js","./B2_6RrlL2.js","./DTxtWPkw.js","./BK17qSHw.js","./DO2GztVm.js","./D93KpglN.js","./BIvye3XP2.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";import{n}from"./9bLMgKwu2.js";import{t as r}from"./CeYPAoY9.js";import{t as i}from"./DeRRkRO52.js";import{t as a}from"./NU5S3nNs2.js";e();var o=null,s=null;function c(e){if(o!==null)return o;try{e.prepare(`CREATE VIRTUAL TABLE IF NOT EXISTS _fts5_check USING fts5(test)`).run(),e.prepare(`DROP TABLE IF EXISTS _fts5_check`).run(),o=!0}catch{o=!1}return o}function l(e,t){e.prepare(t).run()}function u(e){return c(e)?(l(e,`
3
- CREATE VIRTUAL TABLE IF NOT EXISTS brain_decisions_fts
4
- USING fts5(id, decision, rationale, content=brain_decisions, content_rowid=rowid)
5
- `),l(e,`
6
- CREATE VIRTUAL TABLE IF NOT EXISTS brain_patterns_fts
7
- USING fts5(id, pattern, context, content=brain_patterns, content_rowid=rowid)
8
- `),l(e,`
9
- CREATE VIRTUAL TABLE IF NOT EXISTS brain_learnings_fts
10
- USING fts5(id, insight, source, content=brain_learnings, content_rowid=rowid)
11
- `),l(e,`
12
- CREATE TRIGGER IF NOT EXISTS brain_decisions_ai AFTER INSERT ON brain_decisions BEGIN
13
- INSERT INTO brain_decisions_fts(rowid, id, decision, rationale)
14
- VALUES (new.rowid, new.id, new.decision, new.rationale);
15
- END
16
- `),l(e,`
17
- CREATE TRIGGER IF NOT EXISTS brain_decisions_ad AFTER DELETE ON brain_decisions BEGIN
18
- INSERT INTO brain_decisions_fts(brain_decisions_fts, rowid, id, decision, rationale)
19
- VALUES('delete', old.rowid, old.id, old.decision, old.rationale);
20
- END
21
- `),l(e,`
22
- CREATE TRIGGER IF NOT EXISTS brain_decisions_au AFTER UPDATE ON brain_decisions BEGIN
23
- INSERT INTO brain_decisions_fts(brain_decisions_fts, rowid, id, decision, rationale)
24
- VALUES('delete', old.rowid, old.id, old.decision, old.rationale);
25
- INSERT INTO brain_decisions_fts(rowid, id, decision, rationale)
26
- VALUES (new.rowid, new.id, new.decision, new.rationale);
27
- END
28
- `),l(e,`
29
- CREATE TRIGGER IF NOT EXISTS brain_patterns_ai AFTER INSERT ON brain_patterns BEGIN
30
- INSERT INTO brain_patterns_fts(rowid, id, pattern, context)
31
- VALUES (new.rowid, new.id, new.pattern, new.context);
32
- END
33
- `),l(e,`
34
- CREATE TRIGGER IF NOT EXISTS brain_patterns_ad AFTER DELETE ON brain_patterns BEGIN
35
- INSERT INTO brain_patterns_fts(brain_patterns_fts, rowid, id, pattern, context)
36
- VALUES('delete', old.rowid, old.id, old.pattern, old.context);
37
- END
38
- `),l(e,`
39
- CREATE TRIGGER IF NOT EXISTS brain_patterns_au AFTER UPDATE ON brain_patterns BEGIN
40
- INSERT INTO brain_patterns_fts(brain_patterns_fts, rowid, id, pattern, context)
41
- VALUES('delete', old.rowid, old.id, old.pattern, old.context);
42
- INSERT INTO brain_patterns_fts(rowid, id, pattern, context)
43
- VALUES (new.rowid, new.id, new.pattern, new.context);
44
- END
45
- `),l(e,`
46
- CREATE TRIGGER IF NOT EXISTS brain_learnings_ai AFTER INSERT ON brain_learnings BEGIN
47
- INSERT INTO brain_learnings_fts(rowid, id, insight, source)
48
- VALUES (new.rowid, new.id, new.insight, new.source);
49
- END
50
- `),l(e,`
51
- CREATE TRIGGER IF NOT EXISTS brain_learnings_ad AFTER DELETE ON brain_learnings BEGIN
52
- INSERT INTO brain_learnings_fts(brain_learnings_fts, rowid, id, insight, source)
53
- VALUES('delete', old.rowid, old.id, old.insight, old.source);
54
- END
55
- `),l(e,`
56
- CREATE TRIGGER IF NOT EXISTS brain_learnings_au AFTER UPDATE ON brain_learnings BEGIN
57
- INSERT INTO brain_learnings_fts(brain_learnings_fts, rowid, id, insight, source)
58
- VALUES('delete', old.rowid, old.id, old.insight, old.source);
59
- INSERT INTO brain_learnings_fts(rowid, id, insight, source)
60
- VALUES (new.rowid, new.id, new.insight, new.source);
61
- END
62
- `),l(e,`
63
- CREATE VIRTUAL TABLE IF NOT EXISTS brain_observations_fts
64
- USING fts5(id, title, narrative, content=brain_observations, content_rowid=rowid)
65
- `),l(e,`
66
- CREATE TRIGGER IF NOT EXISTS brain_observations_ai AFTER INSERT ON brain_observations BEGIN
67
- INSERT INTO brain_observations_fts(rowid, id, title, narrative)
68
- VALUES (new.rowid, new.id, new.title, new.narrative);
69
- END
70
- `),l(e,`
71
- CREATE TRIGGER IF NOT EXISTS brain_observations_ad AFTER DELETE ON brain_observations BEGIN
72
- INSERT INTO brain_observations_fts(brain_observations_fts, rowid, id, title, narrative)
73
- VALUES('delete', old.rowid, old.id, old.title, old.narrative);
74
- END
75
- `),l(e,`
76
- CREATE TRIGGER IF NOT EXISTS brain_observations_au AFTER UPDATE ON brain_observations BEGIN
77
- INSERT INTO brain_observations_fts(brain_observations_fts, rowid, id, title, narrative)
78
- VALUES('delete', old.rowid, old.id, old.title, old.narrative);
79
- INSERT INTO brain_observations_fts(rowid, id, title, narrative)
80
- VALUES (new.rowid, new.id, new.title, new.narrative);
81
- END
82
- `),!0):!1}function d(e){if(c(e)){e.prepare(`INSERT INTO brain_decisions_fts(brain_decisions_fts) VALUES('rebuild')`).run(),e.prepare(`INSERT INTO brain_patterns_fts(brain_patterns_fts) VALUES('rebuild')`).run(),e.prepare(`INSERT INTO brain_learnings_fts(brain_learnings_fts) VALUES('rebuild')`).run();try{e.prepare(`INSERT INTO brain_observations_fts(brain_observations_fts) VALUES('rebuild')`).run()}catch{}}}async function f(e,n,r){if(!n?.trim())return{decisions:[],patterns:[],learnings:[],observations:[]};let{getBrainDb:i,getBrainDbPath:a,getBrainNativeDb:o}=await t(async()=>{let{getBrainDb:e,getBrainDbPath:t,getBrainNativeDb:n}=await import(`./Djz4EDzO.js`);return{getBrainDb:e,getBrainDbPath:t,getBrainNativeDb:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url);await i(e);let c=o(e);if(!c)return{decisions:[],patterns:[],learnings:[],observations:[]};let l=r?.limit??10,f=r?.tables??[`decisions`,`patterns`,`learnings`,`observations`],p=r?.peerId,g=r?.includeGlobal??!0;return u(c)?(s!==a(e)&&(s=a(e),d(c)),m(c,n,f,l,p,g)):h(c,n,f,l,p,g)}function p(e,t,n){return t?n?{clause:` AND (${e}.peer_id = ? OR ${e}.peer_id = 'global')`,params:[t]}:{clause:` AND ${e}.peer_id = ?`,params:[t]}:{clause:``,params:[]}}function m(e,t,n,a,o,s=!0){let c={decisions:[],patterns:[],learnings:[],observations:[]},l=b(t);if(n.includes(`decisions`)){let{clause:n,params:u}=p(`d`,o,s);try{let t=e.prepare(`
83
- SELECT d.*
84
- FROM brain_decisions_fts fts
85
- JOIN brain_decisions d ON d.rowid = fts.rowid
86
- WHERE brain_decisions_fts MATCH ?
87
- AND (d.quality_score IS NULL OR d.quality_score >= ?)
88
- ${n}
89
- ORDER BY bm25(brain_decisions_fts)
90
- LIMIT ?
91
- `);c.decisions=x(e=>r(t,e,i,...u,a),l)}catch{c.decisions=g(e,t,a,o,s)}}if(n.includes(`patterns`)){let{clause:n,params:u}=p(`p`,o,s);try{let t=e.prepare(`
92
- SELECT p.*
93
- FROM brain_patterns_fts fts
94
- JOIN brain_patterns p ON p.rowid = fts.rowid
95
- WHERE brain_patterns_fts MATCH ?
96
- AND (p.quality_score IS NULL OR p.quality_score >= ?)
97
- ${n}
98
- ORDER BY bm25(brain_patterns_fts)
99
- LIMIT ?
100
- `);c.patterns=x(e=>r(t,e,i,...u,a),l)}catch{c.patterns=_(e,t,a,o,s)}}if(n.includes(`learnings`)){let{clause:n,params:u}=p(`l`,o,s);try{let t=e.prepare(`
101
- SELECT l.*
102
- FROM brain_learnings_fts fts
103
- JOIN brain_learnings l ON l.rowid = fts.rowid
104
- WHERE brain_learnings_fts MATCH ?
105
- AND (l.quality_score IS NULL OR l.quality_score >= ?)
106
- ${n}
107
- ORDER BY bm25(brain_learnings_fts)
108
- LIMIT ?
109
- `);c.learnings=x(e=>r(t,e,i,...u,a),l)}catch{c.learnings=v(e,t,a,o,s)}}if(n.includes(`observations`)){let{clause:n,params:u}=p(`o`,o,s);try{let t=e.prepare(`
110
- SELECT o.*
111
- FROM brain_observations_fts fts
112
- JOIN brain_observations o ON o.rowid = fts.rowid
113
- WHERE brain_observations_fts MATCH ?
114
- AND (o.quality_score IS NULL OR o.quality_score >= ?)
115
- ${n}
116
- ORDER BY bm25(brain_observations_fts)
117
- LIMIT ?
118
- `);c.observations=x(e=>r(t,e,i,...u,a),l)}catch{c.observations=y(e,t,a,o,s)}}return c}function h(e,t,n,r,i,a=!0){let o={decisions:[],patterns:[],learnings:[],observations:[]};return n.includes(`decisions`)&&(o.decisions=g(e,t,r,i,a)),n.includes(`patterns`)&&(o.patterns=_(e,t,r,i,a)),n.includes(`learnings`)&&(o.learnings=v(e,t,r,i,a)),n.includes(`observations`)&&(o.observations=y(e,t,r,i,a)),o}function g(e,t,n,a,o=!0){let s=`%${t}%`,{clause:c,params:l}=p(`brain_decisions`,a,o);return r(e.prepare(`
119
- SELECT * FROM brain_decisions
120
- WHERE (decision LIKE ? OR rationale LIKE ?)
121
- AND (quality_score IS NULL OR quality_score >= ?)
122
- ${c}
123
- ORDER BY created_at DESC
124
- LIMIT ?
125
- `),s,s,i,...l,n)}function _(e,t,n,a,o=!0){let s=`%${t}%`,{clause:c,params:l}=p(`brain_patterns`,a,o);return r(e.prepare(`
126
- SELECT * FROM brain_patterns
127
- WHERE (pattern LIKE ? OR context LIKE ?)
128
- AND (quality_score IS NULL OR quality_score >= ?)
129
- ${c}
130
- ORDER BY frequency DESC
131
- LIMIT ?
132
- `),s,s,i,...l,n)}function v(e,t,n,a,o=!0){let s=`%${t}%`,{clause:c,params:l}=p(`brain_learnings`,a,o);return r(e.prepare(`
133
- SELECT * FROM brain_learnings
134
- WHERE (insight LIKE ? OR source LIKE ?)
135
- AND (quality_score IS NULL OR quality_score >= ?)
136
- ${c}
137
- ORDER BY confidence DESC
138
- LIMIT ?
139
- `),s,s,i,...l,n)}function y(e,t,n,a,o=!0){let s=`%${t}%`,{clause:c,params:l}=p(`brain_observations`,a,o);return r(e.prepare(`
140
- SELECT * FROM brain_observations
141
- WHERE (title LIKE ? OR narrative LIKE ?)
142
- AND (quality_score IS NULL OR quality_score >= ?)
143
- ${c}
144
- ORDER BY created_at DESC
145
- LIMIT ?
146
- `),s,s,i,...l,n)}function b(e){let t=e.trim().split(/\s+/).filter(Boolean),n=new Set,r=[];for(let e of t){let t=e.replace(/^\W+|\W+$/g,``);if(t.length<2||!/\w/.test(t))continue;let i=t.toLowerCase();n.has(i)||(n.add(i),r.push(`"${t.replace(/"/g,`""`)}"*`))}return r.length===0?{and:`""`,or:`""`,termCount:0}:{and:r.join(` AND `),or:r.join(` OR `),termCount:r.length}}function x(e,t){let n=e(t.and);return n.length>0||t.termCount<2?n:e(t.or)}function S(e){let t=[],n=e.reduce((e,t)=>Math.max(e,t.length),0);for(let r=0;r<n;r++)for(let n of e){let e=n[r];e!==void 0&&t.push(e)}return t}function C(e,t=60){let n=new Map;for(let{source:r,hits:i}of e)for(let e=0;e<i.length;e++){let a=i[e],o=1/(t+e),s=n.get(a.id);s?(s.rrfScore+=o,s.sources.add(r),r===`fts`&&(s.ftsRank=e),r===`vec`&&(s.vecRank=e)):n.set(a.id,{rrfScore:o,type:a.type,title:a.title,text:a.text,sources:new Set([r]),ftsRank:r===`fts`?e:void 0,vecRank:r===`vec`?e:void 0})}return[...n.entries()].map(([e,t])=>({id:e,rrfScore:t.rrfScore,type:t.type,title:t.title,text:t.text,sources:[...t.sources],ftsRank:t.ftsRank,vecRank:t.vecRank})).sort((e,t)=>t.rrfScore-e.rrfScore)}async function w(e,r,i){if(!e?.trim())return[];let o=i?.limit??10,s=i?.rrfK??60,c=i?.includeCode??!1,l=[f(r,e,{limit:o*3}).catch(()=>({decisions:[],patterns:[],learnings:[],observations:[]})),a(e,r,o*3).catch(()=>[])],u=null;c&&(u=(async()=>{try{let{smartSearch:n}=await t(async()=>{let{smartSearch:e}=await import(`./BIvye3XP2.js`);return{smartSearch:e}},__vite__mapDeps([21,2,9,10,11,8]),import.meta.url);return n(e,{maxResults:o*2,rootDir:r}).map(e=>({id:`code:${e.symbol.filePath}:${e.symbol.name}:${e.symbol.startLine}`,title:e.symbol.name,kind:e.symbol.kind,score:e.score}))}catch{return[]}})(),l.push(u));let d=await Promise.all(l),p=d[0],m=d[1],h=c?d[2]??[]:[],g=S([p.decisions.map(e=>({id:e.id,type:`decision`,title:e.decision,text:`${e.decision} — ${e.rationale}`})),p.patterns.map(e=>({id:e.id,type:`pattern`,title:e.pattern,text:`${e.pattern} — ${e.context}`})),p.learnings.map(e=>({id:e.id,type:`learning`,title:e.insight,text:`${e.insight} (source: ${e.source})`})),p.observations.map(e=>({id:e.id,type:`observation`,title:e.title,text:e.narrative??e.title}))]),_=m.map(e=>({id:e.id,type:e.type,title:e.title,text:e.text})),v=h.map(e=>({id:e.id,type:`code-symbol`,title:e.title,text:`${e.title} (${e.kind})`})),y=[];g.length>0&&y.push({source:`fts`,hits:g}),_.length>0&&y.push({source:`vec`,hits:_}),v.length>0&&y.push({source:`code`,hits:v});try{let t=await n(r),i=[`concept:${e.toLowerCase().replace(/\s+/g,`-`)}`,`task:${e}`,`doc:${e}`],a=[];for(let e of i){if(!await t.getPageNode(e))continue;let n=await t.getNeighbors(e);for(let e of n)a.push({id:e.id,type:e.nodeType,title:e.label,text:e.label})}a.length>0&&y.push({source:`graph`,hits:a})}catch{}return C(y,s).slice(0,o).map(e=>({id:e.id,score:e.rrfScore,type:e.type,title:e.title,text:e.text,sources:e.sources,ftsRank:e.ftsRank,vecRank:e.vecRank}))}export{x as a,f as c,S as i,u as n,d as o,w as r,C as s,b as t};
@@ -1 +0,0 @@
1
- var e=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||`GET`,this.hostname=e.hostname||`localhost`,this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)===`:`?e.protocol:`${e.protocol}:`:`https:`,this.path=e.path?e.path.charAt(0)===`/`?e.path:`/${e.path}`:`/`,this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(n){let r=new e({...n,headers:{...n.headers}});return r.query&&=t(r.query),r}static isInstance(e){if(!e)return!1;let t=e;return`method`in t&&`protocol`in t&&`hostname`in t&&`path`in t&&typeof t.query==`object`&&typeof t.headers==`object`}clone(){return e.clone(this)}};function t(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}export{e as t};
@@ -1 +0,0 @@
1
- import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./DYQphR_V.js";export{d as Point,o as etc,l as getPublicKey,i as getPublicKeyAsync,e as hash,s as hashes,u as keygen,t as keygenAsync,a as sign,f as signAsync,n as utils,r as verify,c as verifyAsync};
@@ -1 +0,0 @@
1
- import{t as e}from"./CQYVNgM0.js";export{e as correlateOutcomes};
@@ -1,2 +0,0 @@
1
- import{t as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";var n=e(((e,n)=>{var r=t(),i=process.cwd,a=null,o={}.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}n.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),r=e(((e,n)=>{var r=t().Stream;n.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=64*1024,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.end===void 0)this.end=1/0;else if(typeof this.end!=`number`)throw TypeError(`end must be a Number`);if(this.start>this.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw Error(`start must be >= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),i=e(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),a=e(((e,a)=>{var o=t(),s=n(),c=r(),l=i(),u=t(),d,f;typeof Symbol==`function`&&typeof Symbol.for==`function`?(d=Symbol.for(`graceful-fs.queue`),f=Symbol.for(`graceful-fs.previous`)):(d=`___graceful-fs.queue`,f=`___graceful-fs.previous`);function p(){}function m(e,t){Object.defineProperty(e,d,{get:function(){return t}})}var h=p;u.debuglog?h=u.debuglog(`gfs4`):/\bgfs4\b/i.test({}.NODE_DEBUG||``)&&(h=function(){var e=u.format.apply(u,arguments);e=`GFS4: `+e.split(/\n/).join(`
2
- GFS4: `),console.error(e)}),o[d]||(m(o,global[d]||[]),o.close=(function(e){function t(t,n){return e.call(o,t,function(e){e||y(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,f,{value:e}),t})(o.close),o.closeSync=(function(e){function t(t){e.apply(o,arguments),y()}return Object.defineProperty(t,f,{value:e}),t})(o.closeSync),/\bgfs4\b/i.test({}.NODE_DEBUG||``)&&process.on(`exit`,function(){h(o[d]),t().equal(o[d].length,0)})),global[d]||m(global,o[d]),a.exports=g(l(o)),{}.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(a.exports=g(o),o.__patched=!0);function g(e){s(e),e.gracefulify=g,e.createReadStream=T,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?_([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?_([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var a=e.appendFile;a&&(e.appendFile=o);function o(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,o){return a(e,t,n,function(a){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?_([i,[e,t,n,r],a,o||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?_([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var m=c(e);x=m.ReadStream,C=m.WriteStream}var h=e.ReadStream;h&&(x.prototype=Object.create(h.prototype),x.prototype.open=S);var v=e.WriteStream;v&&(C.prototype=Object.create(v.prototype),C.prototype.open=w),Object.defineProperty(e,`ReadStream`,{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,`WriteStream`,{get:function(){return C},set:function(e){C=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,`FileReadStream`,{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=C;Object.defineProperty(e,`FileWriteStream`,{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(h.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function S(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function C(e,t){return this instanceof C?(v.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function w(){var e=this;O(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function T(t,n){return new e.ReadStream(t,n)}function E(t,n){return new e.WriteStream(t,n)}var D=e.open;e.open=O;function O(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return D(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?_([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function _(e){h(`ENQUEUE`,e[0].name,e[1]),o[d].push(e),b()}var v;function y(){for(var e=Date.now(),t=0;t<o[d].length;++t)o[d][t].length>2&&(o[d][t][3]=e,o[d][t][4]=e);b()}function b(){if(clearTimeout(v),v=void 0,o[d].length!==0){var e=o[d].shift(),t=e[0],n=e[1],r=e[2],i=e[3],a=e[4];if(i===void 0)h(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){h(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,r)}else{var c=Date.now()-a,l=Math.max(a-i,1);c>=Math.min(l*1.2,100)?(h(`RETRY`,t.name,n),t.apply(null,n.concat([i]))):o[d].push(e)}v===void 0&&(v=setTimeout(b,0))}}})),o=e(((e,t)=>{function n(e,t){typeof t==`boolean`&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error(`RetryOperation timeout occurred`)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1;var r=this,i=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n);return this._options.unref&&i.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log(`Using RetryOperation.try() is deprecated`),this.attempt(e)},n.prototype.start=function(e){console.log(`Using RetryOperation.start() is deprecated`),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=i,n=o)}return t}})),s=e((e=>{var t=o();e.operation=function(n){return new t(e.timeouts(n),{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error(`minTimeout is greater than maxTimeout`);for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*t.factor**+e);return r=Math.min(r,t.maxTimeout),r},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],t)typeof t[i]==`function`&&r.push(i);for(var a=0;a<r.length;a++){var o=r[a],s=t[o];t[o]=function(r){var i=e.operation(n),a=Array.prototype.slice.call(arguments,1),o=a.pop();a.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),o.apply(this,arguments))}),i.attempt(function(){r.apply(t,a)})}.bind(t,s),t[o].options=n}}})),c=e(((e,t)=>{t.exports=s()})),l=e(((e,t)=>{t.exports=[`SIGABRT`,`SIGALRM`,`SIGHUP`,`SIGINT`,`SIGTERM`],process.platform!==`win32`&&t.exports.push(`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&t.exports.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`,`SIGUNUSED`)})),u=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),d=e(((e,n)=>{var r=global.process,i=function(e){return e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`};if(!i(r))n.exports=function(){return function(){}};else{var a=t(),o=l(),s=/^win/i.test(r.platform),c=u();typeof c!=`function`&&(c=c.EventEmitter);var d;r.__signal_exit_emitter__?d=r.__signal_exit_emitter__:(d=r.__signal_exit_emitter__=new c,d.count=0,d.emitted={}),d.infinite||(d.setMaxListeners(1/0),d.infinite=!0),n.exports=function(e,t){if(!i(global.process))return function(){};a.equal(typeof e,`function`,`a callback must be provided for exit handler`),h===!1&&g();var n=`exit`;return t&&t.alwaysLast&&(n=`afterexit`),d.on(n,e),function(){d.removeListener(n,e),d.listeners(`exit`).length===0&&d.listeners(`afterexit`).length===0&&f()}};var f=function(){!h||!i(global.process)||(h=!1,o.forEach(function(e){try{r.removeListener(e,m[e])}catch{}}),r.emit=y,r.reallyExit=_,--d.count)};n.exports.unload=f;var p=function(e,t,n){d.emitted[e]||(d.emitted[e]=!0,d.emit(e,t,n))},m={};o.forEach(function(e){m[e]=function(){i(global.process)&&r.listeners(e).length===d.count&&(f(),p(`exit`,null,e),p(`afterexit`,null,e),s&&e===`SIGHUP`&&(e=`SIGINT`),r.kill(r.pid,e))}}),n.exports.signals=function(){return o};var h=!1,g=function(){h||!i(global.process)||(h=!0,d.count+=1,o=o.filter(function(e){try{return r.on(e,m[e]),!0}catch{return!1}}),r.emit=b,r.reallyExit=v)};n.exports.load=g;var _=r.reallyExit,v=function(e){i(global.process)&&(r.exitCode=e||0,p(`exit`,r.exitCode,null),p(`afterexit`,r.exitCode,null),_.call(r,r.exitCode))},y=r.emit,b=function(e,t){if(e===`exit`&&i(global.process)){t!==void 0&&(r.exitCode=t);var n=y.apply(this,arguments);return p(`exit`,r.exitCode,null),p(`afterexit`,r.exitCode,null),n}else return y.apply(this,arguments)}}})),f=e(((e,t)=>{var n=Symbol();function r(e,t,r){let i=t[n];if(i)return t.stat(e,(e,t)=>{if(e)return r(e);r(null,t.mtime,i)});let a=new Date(Math.ceil(Date.now()/1e3)*1e3+5);t.utimes(e,a,a,i=>{if(i)return r(i);t.stat(e,(e,i)=>{if(e)return r(e);let a=i.mtime.getTime()%1e3==0?`s`:`ms`;Object.defineProperty(t,n,{value:a}),r(null,i.mtime,a)})})}function i(e){let t=Date.now();return e===`s`&&(t=Math.ceil(t/1e3)*1e3),new Date(t)}t.exports.probe=r,t.exports.getMtime=i})),p=e(((e,n)=>{var r=t(),i=a(),o=c(),s=d(),l=f(),u={};function p(e,t){return t.lockfilePath||`${e}.lock`}function m(e,t,n){if(!t.realpath)return n(null,r.resolve(e));t.fs.realpath(e,n)}function h(e,t,n){let r=p(e,t);t.fs.mkdir(r,i=>{if(!i)return l.probe(r,t.fs,(e,i,a)=>{if(e)return t.fs.rmdir(r,()=>{}),n(e);n(null,i,a)});if(i.code!==`EEXIST`)return n(i);if(t.stale<=0)return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));t.fs.stat(r,(r,i)=>{if(r)return r.code===`ENOENT`?h(e,{...t,stale:0},n):n(r);if(!g(i,t))return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));_(e,t,r=>{if(r)return n(r);h(e,{...t,stale:0},n)})})})}function g(e,t){return e.mtime.getTime()<Date.now()-t.stale}function _(e,t,n){t.fs.rmdir(p(e,t),e=>{if(e&&e.code!==`ENOENT`)return n(e);n()})}function v(e,t){let n=u[e];n.updateTimeout||(n.updateDelay=n.updateDelay||t.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,t.fs.stat(n.lockfilePath,(r,i)=>{let a=n.lastUpdate+t.stale<Date.now();if(r)return r.code===`ENOENT`||a?y(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,v(e,t));if(n.mtime.getTime()!==i.mtime.getTime())return y(e,n,Object.assign(Error(`Unable to update lock within the stale threshold`),{code:`ECOMPROMISED`}));let o=l.getMtime(n.mtimePrecision);t.fs.utimes(n.lockfilePath,o,o,r=>{let i=n.lastUpdate+t.stale<Date.now();if(!n.released){if(r)return r.code===`ENOENT`||i?y(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,v(e,t));n.mtime=o,n.lastUpdate=Date.now(),n.updateDelay=null,v(e,t)}})})},n.updateDelay),n.updateTimeout.unref&&n.updateTimeout.unref())}function y(e,t,n){t.released=!0,t.updateTimeout&&clearTimeout(t.updateTimeout),u[e]===t&&delete u[e],t.options.onCompromised(n)}function b(e,t,n){t={stale:1e4,update:null,realpath:!0,retries:0,fs:i,onCompromised:e=>{throw e},...t},t.retries=t.retries||0,t.retries=typeof t.retries==`number`?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2e3),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1e3),m(e,t,(e,r)=>{if(e)return n(e);let i=o.operation(t.retries);i.attempt(()=>{h(r,t,(e,a,o)=>{if(i.retry(e))return;if(e)return n(i.mainError());let s=u[r]={lockfilePath:p(r,t),mtime:a,mtimePrecision:o,options:t,lastUpdate:Date.now()};v(r,t),n(null,e=>{if(s.released)return e&&e(Object.assign(Error(`Lock is already released`),{code:`ERELEASED`}));x(r,{...t,realpath:!1},e)})})})})}function x(e,t,n){t={fs:i,realpath:!0,...t},m(e,t,(e,r)=>{if(e)return n(e);let i=u[r];if(!i)return n(Object.assign(Error(`Lock is not acquired/owned by you`),{code:`ENOTACQUIRED`}));i.updateTimeout&&clearTimeout(i.updateTimeout),i.released=!0,delete u[r],_(r,t,n)})}function S(e,t,n){t={stale:1e4,realpath:!0,fs:i,...t},t.stale=Math.max(t.stale||0,2e3),m(e,t,(e,r)=>{if(e)return n(e);t.fs.stat(p(r,t),(e,r)=>e?e.code===`ENOENT`?n(null,!1):n(e):n(null,!g(r,t)))})}function C(){return u}s(()=>{for(let e in u){let t=u[e].options;try{t.fs.rmdirSync(p(e,t))}catch{}}}),n.exports.lock=b,n.exports.unlock=x,n.exports.check=S,n.exports.getLocks=C})),m=e(((e,t)=>{var n=a();function r(e){let t=[`mkdir`,`realpath`,`stat`,`rmdir`,`utimes`],n={...e};return t.forEach(t=>{n[t]=(...n)=>{let r=n.pop(),i;try{i=e[`${t}Sync`](...n)}catch(e){return r(e)}r(null,i)}}),n}function i(e){return(...t)=>new Promise((n,r)=>{t.push((e,t)=>{e?r(e):n(t)}),e(...t)})}function o(e){return(...t)=>{let n,r;if(t.push((e,t)=>{n=e,r=t}),e(...t),n)throw n;return r}}function s(e){if(e={...e},e.fs=r(e.fs||n),typeof e.retries==`number`&&e.retries>0||e.retries&&typeof e.retries.retries==`number`&&e.retries.retries>0)throw Object.assign(Error(`Cannot use retries with the sync api`),{code:`ESYNC`});return e}t.exports={toPromise:i,toSync:o,toSyncOptions:s}})),h=e(((e,t)=>{var n=p(),{toPromise:r,toSync:i,toSyncOptions:a}=m();async function o(e,t){return r(await r(n.lock)(e,t))}function s(e,t){return i(i(n.lock)(e,a(t)))}function c(e,t){return r(n.unlock)(e,t)}function l(e,t){return i(n.unlock)(e,a(t))}function u(e,t){return r(n.check)(e,t)}function d(e,t){return i(n.check)(e,a(t))}t.exports=o,t.exports.lock=o,t.exports.unlock=c,t.exports.lockSync=s,t.exports.unlockSync=l,t.exports.check=u,t.exports.checkSync=d}));export{h as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DeHaovsF.js","./CMz3AVRO.js","./DrKWWDpL.js","./DtNkZUkq.js","./Chpy9ca7.js","./DsQIgu-4.js","./Cc8xxDr5.js","./C8MZnWta.js","./C5Nlanei.js","./DYP3EJMY.js","./CHkCZrnr.js","./DF_4OWhj.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./Ml4JR6Jz2.js","./DOqzs8kl2.js","./B2_6RrlL2.js","./D2pa4reh.js","./C1vWmhYe.js","./DTxtWPkw.js","./BK17qSHw.js","./DO2GztVm.js","./BQZx6brg.js","./DXpCX2Hi.js","./BYJC6_MM.js","./CV4ck7fz.js","./VQszoXcV.js","./D93KpglN.js","./C2oZaDvt.js","./7UXYlaI1.js","./CKoQ7Ko5.js","./orUmAKoW2.js","./D6UDnATk2.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";import{a as n,s as r,t as i}from"./CMz3AVRO.js";e(),Object.freeze({maxRetries:3,baseDelayMs:1e3,maxDelayMs:3e4,backoffMultiplier:2,jitter:!0,retryOnUnknown:!0});async function a(e=3e4,a){let o=[],s=await i(e,a);for(let e of s)await r(e.id,{status:`crashed`,error:`Heartbeat timeout detected during recovery sweep`},a);let c=await n({status:`crashed`},a);for(let e of c){let{getAgentErrorHistory:n}=await t(async()=>{let{getAgentErrorHistory:e}=await import(`./DeHaovsF.js`);return{getAgentErrorHistory: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]),import.meta.url),i=await n(e.id,a),s=i.length>0?i[i.length-1]:null;if(e.errorCount>=5){await r(e.id,{status:`stopped`},a),o.push({agentId:e.id,recovered:!1,action:`abandoned`,reason:`Error count (${e.errorCount}) exceeds threshold (5)`});continue}if(s?.errorType===`permanent`){await r(e.id,{status:`stopped`},a),o.push({agentId:e.id,recovered:!1,action:`abandoned`,reason:`Permanent error: ${s.message}`});continue}await r(e.id,{status:`starting`},a),o.push({agentId:e.id,recovered:!0,action:`restarted`,reason:`Agent reset to starting for re-assignment`})}return o}export{a as recoverCrashedAgents};
@@ -1 +0,0 @@
1
- import{n as e,r as t}from"./Bbzm48C52.js";export{e as getRawConfigValue,t as loadConfig};
@@ -1 +0,0 @@
1
- import"./DrKWWDpL.js";import{t as e}from"./DYP3EJMY.js";import{o as t,s as n}from"./Ml4JR6Jz2.js";import{t as r}from"./DaXb9i_E.js";e();var i=`claude-haiku-4-5-20251001`,a={version:`2.10.0`,output:{defaultFormat:`json`,showColor:!0,showUnicode:!0,showProgressBars:!0,dateFormat:`relative`},backup:{maxOperationalBackups:10,maxSafetyBackups:5,compressionEnabled:!1},hierarchy:{maxDepth:3,maxSiblings:0,cascadeDelete:!1,maxActiveSiblings:0,countDoneInLimit:!1,enforcementProfile:`llm-agent-first`},session:{autoStart:!1,requireNotes:!1,multiSession:!1},enforcement:{acceptance:{mode:`block`,requiredForPriorities:[`critical`,`high`,`medium`,`low`],minimumCriteria:3},session:{requiredForMutate:!0}},verification:{enabled:!0,maxRounds:3,requiredGates:[`implemented`,`testsPassed`,`qaPassed`]},lifecycle:{mode:`strict`},logging:{level:`info`,filePath:`logs/cleo.log`,maxFileSize:10*1024*1024,maxFiles:5,auditRetentionDays:90,archiveBeforePrune:!0},sharing:{mode:`none`,commitAllowlist:[],denylist:[]},signaldock:{enabled:!1,mode:`http`,endpoint:`http://localhost:4000`,agentPrefix:`cleo-`,privacyTier:`private`},brain:{autoCapture:!0,captureFiles:!1,captureWork:!1,embedding:{enabled:!0,provider:`local`},memoryBridge:{autoRefresh:!0,contextAware:!0,maxTokens:2e3,mode:`cli`},summarization:{enabled:!0},llmExtraction:{enabled:!0,model:i,minImportance:.6,maxExtractions:7,maxTranscriptChars:6e4}},auth:{claudeCodeConsentGiven:!1,cooperativeWriteBack:!0},leadRollup:{mode:`passive`},daemon:{autoStart:!0}},o={CLEO_FORMAT:`output.defaultFormat`,CLEO_OUTPUT_DEFAULT_FORMAT:`output.defaultFormat`,CLEO_OUTPUT_SHOW_COLOR:`output.showColor`,CLEO_OUTPUT_SHOW_UNICODE:`output.showUnicode`,CLEO_OUTPUT_SHOW_PROGRESS_BARS:`output.showProgressBars`,CLEO_OUTPUT_DATE_FORMAT:`output.dateFormat`,CLEO_HIERARCHY_MAX_DEPTH:`hierarchy.maxDepth`,CLEO_HIERARCHY_MAX_SIBLINGS:`hierarchy.maxSiblings`,CLEO_HIERARCHY_MAX_ACTIVE_SIBLINGS:`hierarchy.maxActiveSiblings`,CLEO_HIERARCHY_ENFORCEMENT_PROFILE:`hierarchy.enforcementProfile`,CLEO_SESSION_AUTO_START:`session.autoStart`,CLEO_SESSION_REQUIRE_NOTES:`session.requireNotes`,CLEO_LIFECYCLE_MODE:`lifecycle.mode`,CLEO_LOG_LEVEL:`logging.level`,CLEO_LOG_FILE:`logging.filePath`,CLEO_AUDIT_RETENTION_DAYS:`logging.auditRetentionDays`,CLEO_SIGNALDOCK_ENABLED:`signaldock.enabled`,CLEO_SIGNALDOCK_ENDPOINT:`signaldock.endpoint`};function s(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function c(e,t,n){let r=t.split(`.`),i=e;for(let e=0;e<r.length-1;e++){let t=r[e];(i[t]===void 0||typeof i[t]!=`object`)&&(i[t]={}),i=i[t]}i[r[r.length-1]]=n}function l(e,t){let n={...e};for(let e of Object.keys(t)){let r=t[e],i=n[e];typeof r==`object`&&r&&!Array.isArray(r)&&typeof i==`object`&&i&&!Array.isArray(i)?n[e]=l(i,r):n[e]=r}return n}function u(e){if(e===`true`)return!0;if(e===`false`)return!1;let t=Number(e);return!Number.isNaN(t)&&e.trim()!==``?t:e}async function d(e){let i=JSON.parse(JSON.stringify(a)),s=await r(n());s&&(i=l(i,s));let d=await r(t(e));d&&(d.pinoLogging&&typeof d.pinoLogging==`object`&&(i.logging=l(i.logging??{},d.pinoLogging)),i=l(i,d));for(let[e,t]of Object.entries(o)){let n={}[e];n!==void 0&&c(i,t,u(n))}return i}async function f(e,i){for(let[t,n]of Object.entries(o))if(n===e&&{}[t]!==void 0)return{value:u({}[t]),source:`env`};let c=await r(t(i));if(c){let t=s(c,e);if(t!==void 0)return{value:t,source:`project`}}let l=await r(n());if(l){let t=s(l,e);if(t!==void 0)return{value:t,source:`global`}}return{value:s({...a},e),source:`default`}}async function p(e,n){let i=await r(t(n));if(i)return e?s(i,e):i}export{i,p as n,d as r,f as t};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{a as n}from"./DOqzs8kl2.js";var r=e(t(),1),i=(0,r.promisify)(r.execFile);async function a(e){try{let{stdout:t}=await i(`git`,[`rev-parse`,`--show-toplevel`],{cwd:(0,r.resolve)(e)});return(0,r.resolve)(t.trim())}catch{return null}}async function o(e){try{let{stdout:t}=await i(`git`,[`remote`,`get-url`,`origin`],{cwd:(0,r.resolve)(e)});return t.trim()||null}catch{return null}}async function s(e){try{let t=await(0,r.readFile)((0,r.join)(e,`.cleo`,`project-info.json`),`utf8`),n=JSON.parse(t);return(typeof n.name==`string`?n.name:void 0)||void 0}catch{return}}async function c(e){let t=(0,r.resolve)(e),[n,i,c]=await Promise.all([a(t),o(t),(async()=>s(await a(t)||t))()]),l=n??t,u=[l,c??``,i??``].join(`|`);return{id:(0,r.createHash)(`sha256`).update(u).digest(`hex`).substring(0,12),components:{gitRoot:l,...c!==void 0&&{projectName:c},...i!=null&&{remoteUrl:i}}}}export{c as canonicalProjectId,o as findGitRemoteUrl,n as legacyProjectId};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CxfeoXkZ.js","./DrKWWDpL.js","./DsQIgu-4.js","./DtNkZUkq.js","./Cc8xxDr5.js","./VQszoXcV.js","./DF_4OWhj.js","./DYP3EJMY.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./sPuXfbUF.js","./C1vWmhYe.js","./C5Nlanei.js","./Ml4JR6Jz2.js","./DOqzs8kl2.js","./B2_6RrlL2.js","./DTxtWPkw.js","./BK17qSHw.js","./CJ7-hP0H.js","./uE83FKL-.js","./CTJEdbIn.js","./BGiusSqE.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";import{Dt as n}from"./CdqDTozW.js";import{t as r}from"./DF_4OWhj.js";import{i,t as a}from"./CQLIZtxj.js";var o=.15,s=.25,c=.3,l=.2,u=.1;function d(e){let t=0,n=0;for(let r of e)r===`(`||r===`{`||r===`[`?(t+=1,t>n&&(n=t)):(r===`)`||r===`}`||r===`]`)&&(t=Math.max(t-1,0));return Math.min(n/5,1)}var f=[`why`,`should`,`compare`,`decide`,`explain`,`analyze`,`evaluate`,`consider`,`trade-off`,`tradeoff`];function p(e){let t=e.toLowerCase(),n=0;for(let e of f){let r=0;for(;;){let i=t.indexOf(e,r);if(i===-1)break;n+=1,r=i+e.length}}return n}function m(e){let t=0;for(let n of e)n!==n.toLowerCase()&&n===n.toUpperCase()&&(t+=1);return t}function h(e){let t=_(e).filter(e=>m(e)>=2).length;return Math.min(t/10,1)}function g(e){return _(e).filter(e=>e.includes(`/`)||e.endsWith(`.rs`)||e.endsWith(`.ts`)||e.endsWith(`.md`)||e.endsWith(`.json`)).length}function _(e){return e.split(/\s+/).filter(e=>e.length>0)}function v(e){return{tokenCount:_(e).length,syntacticComplexity:d(e),reasoningDepth:p(e),domainSpecificity:h(e),touchesFilesCount:g(e)}}function y(e,t,n){return Number.isNaN(e)?t:Math.min(Math.max(e,t),n)}function b(e){return{tokenCount:Math.min(e.tokenCount/1e3,1),syntacticComplexity:y(e.syntacticComplexity,0,1),reasoningDepth:Math.min(e.reasoningDepth/10,1),domainSpecificity:y(e.domainSpecificity,0,1),touchesFilesCount:Math.min(e.touchesFilesCount/20,1)}}function x(e){let t=b(e),n=o*t.tokenCount+s*t.syntacticComplexity+c*t.reasoningDepth+l*t.domainSpecificity+u*t.touchesFilesCount;return{score:n,tier:n>=.75?`high`:n>=.35?`mid`:`low`,features:e}}function S(e){return x(v(e)).tier}function C(e){switch(e){case`low`:return`hygiene`;case`mid`:return`consolidation`;case`high`:return`judgement`}}function w(e){return C(S(e))}e();var T=r(`llm-system-resolver`);function E(e){return typeof e==`object`&&!!e&&e.kind===`role`}function D(e,t){if(t?.roleOverride)return t.roleOverride;if(E(e))return e.id;let r=n[e]??null;if(r!==null)return r;if(t?.complexityPrompt!==void 0){let n=w(t.complexityPrompt);return T.debug({system:e,proposedRole:n},`system-resolver: derived role from L1 complexity classifier (no explicit tier/role)`),n}return null}async function O(e){if(e.source!==`implicit-fallback`)return e;try{let{resolveCatalogEntry:n}=await t(async()=>{let{resolveCatalogEntry:e}=await import(`./CxfeoXkZ.js`);return{resolveCatalogEntry:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]),import.meta.url),{catalogKeyForProvider:r}=await t(async()=>{let{catalogKeyForProvider:e}=await import(`./CJ7-hP0H.js`);return{catalogKeyForProvider:e}},__vite__mapDeps([19,11,1,7]),import.meta.url),i=await n(r(e.provider));if(i?.id&&i.id!==e.model)return T.debug({provider:e.provider,from:e.model,to:i.id,source:i.source},`system-resolver: upgrading implicit-fallback model to models_catalog default`),{...e,model:i.id};if(i?.id)return e;let{getProviderProfile:a}=await t(async()=>{let{getProviderProfile:e}=await import(`./uE83FKL-.js`);return{getProviderProfile:e}},__vite__mapDeps([20,21,1,2,22,15,7,14,8,9,10,16]),import.meta.url),o=await a(e.provider);return o?.defaultModel&&o.defaultModel!==e.model?(T.debug({provider:e.provider,from:e.model,to:o.defaultModel},`system-resolver: catalog empty — degrading to static builtin defaultModel floor`),{...e,model:o.defaultModel}):e}catch(t){return T.warn({err:t instanceof Error?t.message:String(t)},`system-resolver: catalog default lookup failed; keeping existing fallback model`),e}}async function k(e,t){let n=D(e,t),r=n??`consolidation`,o=t?.systemKey??(E(e)?void 0:e),s;try{s=await i(r,{projectRoot:t?.projectRoot,systemKey:o,...t?.profile===void 0?{}:{profileOverride:t.profile},...t?.excludeProviders===void 0?{}:{excludeProviders:t.excludeProviders}})}catch(t){T.warn({err:t instanceof Error?t.message:String(t),system:e,role:r},`system-resolver: resolveLLMForRole threw unexpectedly; returning null-credential envelope`),s={provider:a,model:`unknown`,client:null,credential:null,sealedCredential:null,source:`implicit-fallback`,apiMode:`anthropic_messages`,baseUrl:null,authType:null}}return{...t?.skipCatalogDefault?s:await O(s),system:e,resolvedRole:n}}export{k as resolveLLMForSystem};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";var n=e(t(),1),r=`checkpoint.git`;function i(e){return(0,n.join)(e,r)}export{i as t};
@@ -1 +0,0 @@
1
- import{n as e,r as t,s as n}from"./DrKWWDpL.js";import{t as r}from"./D1QfC4hu2.js";import{n as i,t as a}from"./D3QsWcIw2.js";var o=t({crdt_apply_to_local_doc:()=>_,crdt_apply_update:()=>u,crdt_diff_update:()=>p,crdt_encode_state_as_update:()=>l,crdt_get_text:()=>m,crdt_make_incremental_update:()=>g,crdt_make_state:()=>h,crdt_merge_updates:()=>d,crdt_new_doc:()=>c,crdt_state_vector:()=>f});function s(e){let t=0;for(let n of e)t+=4+n.length;let n=new Uint8Array(t),r=0;for(let t of e)new DataView(n.buffer,r,4).setUint32(0,t.length,!0),r+=4,n.set(t,r),r+=t.length;return n}function c(){return Buffer.from(v.crdt_new_doc())}function l(e){return Buffer.from(v.crdt_encode_state_as_update(new Uint8Array(e)))}function u(e,t){return Buffer.from(v.crdt_apply_update(new Uint8Array(e),new Uint8Array(t)))}function d(e){if(e.length===0)return c();let t=s(e);return Buffer.from(v.crdt_merge_updates_wasm(t))}function f(e){return Buffer.from(v.crdt_state_vector(new Uint8Array(e)))}function p(e,t){return Buffer.from(v.crdt_diff_update(new Uint8Array(e),new Uint8Array(t)))}function m(e){if(e.length===0)return``;let t=new a;return t.import(new Uint8Array(e)),t.getText(`content`).toString()}function h(e){let t=new a;t.getText(`content`).insert(0,e),t.commit();let n=t.export({mode:`snapshot`});return Buffer.from(n)}function g(e,t){let n=new a;e.length>0&&n.import(new Uint8Array(e));let r=n.version(),i=n.getText(`content`),o=i.length;i.insert(o,t),n.commit();let s=n.export({mode:`update`,from:r});return Buffer.from(s)}function _(e,t){return u(e,t)}var v,y=e((async()=>{await i(),v=n(r(),1)}));export{m as a,d as c,f as d,y as f,l as i,c as l,u as n,g as o,p as r,h as s,_ as t,o as u};
@@ -1 +0,0 @@
1
- import{Y as e}from"./DtNkZUkq.js";import{c as t,i as n}from"./7UXYlaI1.js";import"./C2oZaDvt.js";import"./B2qKEYxA2.js";new Set(n);function r(e){return{peerId:e.peerId,cantFile:e.cantFile??null,displayName:e.displayName,role:e.role,systemPromptFragment:e.systemPromptFragment??null,capabilityFlags:e.capabilityFlags??null,createdAt:new Date(e.createdAt).toISOString(),updatedAt:new Date(e.updatedAt).toISOString()}}async function i(n,i){let a=await n.select().from(t).where(e(t.peerId,i)).limit(1);return a.length===0?null:r(a[0])}export{i as getSigil};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";import{t as n}from"./_4ykQk_8.js";import{c as r,m as i,n as a,r as o}from"./BHnFwTQY.js";var s=e(t()),c=(e,t,r)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration)<n)throw Error(`Profile ${e} credential_process returned expired credentials.`)}let i=t.AccountId;!i&&r?.[e]?.aws_account_id&&(i=r[e].aws_account_id);let a={accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)},...t.CredentialScope&&{credentialScope:t.CredentialScope},...i&&{accountId:i}};return n(a,`CREDENTIALS_PROCESS`,`w`),a},l=async(e,t,n)=>{let r=t[e];if(t[e]){let o=r.credential_process;if(o!==void 0){let r=(0,s.promisify)(a?.getTokenRecord?.().exec??s.exec);try{let{stdout:n}=await r(o),i;try{i=JSON.parse(n.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return c(e,i,t)}catch(e){throw new i(e.message,{logger:n})}}else throw new i(`Profile ${e} did not contain credential_process.`,{logger:n})}else throw new i(`Profile ${e} could not be found in shared credentials file.`,{logger:n})},u=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug(`@aws-sdk/credential-provider-process - fromProcess`);let n=await r(e);return l(o({profile:e.profile??t?.profile}),n,e.logger)};export{u as fromProcess};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./9kKqohVR2.js","./DrKWWDpL.js","./DsQIgu-4.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./DsQIgu-4.js";import"./DzhuJaxE2.js";e();var n=`Xenova/all-MiniLM-L6-v2`,r=null,i=!1;async function a(){if(i)return;let{pipeline:e}=await t(async()=>{let{pipeline:e}=await import(`./9kKqohVR2.js`);return{pipeline:e}},__vite__mapDeps([0,1,2]),import.meta.url);r=await e(`feature-extraction`,n),i=!0}var o=class{dimensions=384;isAvailable(){return i}async embed(e){await a();let t=await r(e,{pooling:`mean`,normalize:!0});return Float32Array.from(t.data)}async embedBatch(e){await a();let t=[];for(let n of e){let e=await r(n,{pooling:`mean`,normalize:!0});t.push(Float32Array.from(e.data))}return t}};export{o as LocalEmbeddingProvider};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DWRhYUMj2.js","./CxbvtjIH.js","./DrKWWDpL.js","./DsQIgu-4.js","./DYQphR_V.js","./B0xCM1wN2.js","./Wadww7ZG.js","./DYP3EJMY.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{a as i,i as a,n as o,o as s,r as c}from"./xJgCk3dx2.js";var l=e(r(),1);t();var u={markdown:`md`,json:`json`,txt:`txt`,llmtxt:`llmtxt`};function d(e,t,n){let r={includeMetadata:n.includeMetadata!==!1};switch(t){case`markdown`:return s(e,r);case`json`:return i(e,r);case`txt`:return a(e);case`llmtxt`:return c(e,r);default:throw new o(`UNSUPPORTED_FORMAT`,`Unsupported export format: ${String(t)}`)}}function f(e,t){let n=l.default.dirname(e),r=e+`.tmp`;try{l.default.mkdirSync(n,{recursive:!0}),l.default.writeFileSync(r,t),l.default.renameSync(r,e)}catch(t){try{l.default.existsSync(r)&&l.default.unlinkSync(r)}catch{}throw new o(`WRITE_FAILED`,`Failed to write export file ${e}: ${t instanceof Error?t.message:String(t)}`)}}function p(e){return(0,l.createHash)(`sha256`).update(e).digest(`hex`)}function m(e){return(0,l.createHash)(`sha256`).update(Buffer.from(e,`utf8`)).digest(`hex`)}async function h(t,r){let{AgentIdentity:i}=await n(async()=>{let{AgentIdentity:e}=await import(`./DWRhYUMj2.js`);return{AgentIdentity:e}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),a=await i.load();if(!a&&r)try{let{promises:t}=await n(async()=>{let{promises:t}=await import(`./Wadww7ZG.js`).then(t=>e(t.default,1));return{promises:t}},__vite__mapDeps([6,7,2]),import.meta.url),o=await t.readFile(r,`utf-8`),s=JSON.parse(o),{fromHex:c}=await n(async()=>{let{fromHex:e}=await import(`./DWRhYUMj2.js`);return{fromHex:e}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),l=Buffer.from(s.sk,`hex`);a=await i.fromSeed(l)}catch{}if(!a)throw new o(`SIGN_FAILED`,"No Ed25519 identity found. Run `llmtxt identity generate` to create one.");let s=Buffer.from(t,`hex`),c=await a.sign(s);return Buffer.from(c).toString(`hex`)}async function g(e,t,n){let{format:r,outputPath:i,includeMetadata:a,sign:o}=t,s=l.default.resolve(i),c=d(e,r,{includeMetadata:a}),u=Buffer.from(c,`utf8`),m=p(u);f(s,u);let g=null;return o===!0&&(g=await h(m,n)),{filePath:s,slug:e.slug,version:e.version,fileHash:m,byteCount:u.byteLength,exportedAt:e.exportedAt,signatureHex:g}}function _(e,t,n){return l.default.join(e,`${t}.${u[n]}`)}export{_ as n,g as r,m as t};
@@ -1 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./D1QfC4hu2.js";import{a as n,c as r,n as i,r as a}from"./D1yrHAn72.js";var o=e(t(),1);async function s(e){let t=o.compress(e);return Buffer.from(t)}async function c(e){return o.decompress(new Uint8Array(e))}function l(e){return o.zstd_compress_bytes(e)}function u(e){return o.zstd_decompress_bytes(e)}function ee(e){return o.encode_base62(BigInt(e))}function te(e){return Number(o.decode_base62(e))}function ne(){return o.generate_id()}function d(e){return o.hash_content(e)}function re(e){return o.hashBlob(e)}function f(e){return o.calculate_tokens(e)}function ie(e,t){return o.calculate_compression_ratio(e,t)}function ae(e,t,n,r,i){return o.compute_signature(e,t,n,r,i)}function oe(e,t,n,r,i,a){return o.compute_signature_with_length(e,t,n,r,i,a)}function se(e,t,n,r,i,a){return o.compute_org_signature(e,t,n,r,i,a)}function ce(e,t,n,r,i,a,s){return o.compute_org_signature_with_length(e,t,n,r,i,a,s)}function le(e){return o.derive_signing_key(e)}function p(e,t){return o.create_patch(e,t)}function m(e,t){return o.apply_patch(e,t)}function h(e,t,n){return o.reconstruct_version(e,t,n)}function g(e,t){return o.squash_patches(e,t)}function ue(e){return o.is_expired(e)}function _(e,t){let n=o.compute_diff(e,t),r={addedLines:n.added_lines,removedLines:n.removed_lines,addedTokens:n.added_tokens,removedTokens:n.removed_tokens};return n.free(),r}function de(e,t){let n=o.structured_diff(e,t);return JSON.parse(n)}function v(e,t){let n=Array.isArray(t)?JSON.stringify(t):t,r=o.multi_way_diff_wasm(e,n),i=JSON.parse(r);if(i.error)throw Error(`multiWayDiff failed: ${i.error}`);return i}function y(e,t,n){let r=o.cherry_pick_merge_wasm(e,t,n),i=JSON.parse(r);if(i.error)throw Error(`cherryPickMerge failed: ${i.error}`);return i}function b(e,t,n){let r=o.three_way_merge_wasm(e,t,n),i=JSON.parse(r);if(i.error)throw Error(`threeWayMerge failed: ${i.error}`);return i}function x(e){return o.l2_normalize_wasm(e)}function S(e,t){return o.sign_webhook_payload(e,t)}function C(e,t){return o.constant_time_eq_hex(e,t)}function w(e,t){let n=o.hash_content(e);return o.constant_time_eq_hex(n,t)}function T(e,t){return o.cosine_similarity_wasm(e,t)}function E(e,t){let n=o.semantic_diff_wasm(e,t),r=JSON.parse(n);if(r.error)throw Error(`semanticDiff failed: ${r.error}`);return r}function D(e){return o.role_permissions(e)}function O(e,t){return o.role_has_permission(e,t)}function k(e){return o.slugify(e)}function A(e,t){let n=o.semantic_consensus_wasm(e,t),r=JSON.parse(n);if(r.error)throw Error(`semanticConsensus failed: ${r.error}`);return r}function j(e,t){return o.content_similarity_wasm(e,t)}function M(e){return o.detect_format(e)}function N(e){return o.contains_binary_content(e)}function P(e){return JSON.parse(o.extract_mentions_wasm(e))}function F(e,t=3){return JSON.parse(o.extract_ngrams_wasm(e,t))}function I(e){return JSON.parse(o.extract_tags_wasm(e))}function L(e){return JSON.parse(o.extract_directives_wasm(e))}function R(e,t=2){return JSON.parse(o.extract_word_shingles_wasm(e,t))}function z(e,t){return o.find_overlong_line(e,t)}function B(e,t){if(e.length!==t.length||e.length===0)return 0;let n=0;for(let r=0;r<e.length;r++)e[r]===t[r]&&n++;return n/e.length}function V(e){let t=o.build_graph_wasm(JSON.stringify(e)),n=JSON.parse(t);if(n.error)throw Error(`buildGraph failed: ${n.error}`);return n}function fe(e,t=10){let n=o.top_topics_wasm(JSON.stringify(e),t),r=JSON.parse(n);if(!Array.isArray(r)&&r.error)throw Error(`topTopics failed: ${r.error}`);return r}function pe(e,t=10){let n=o.top_agents_wasm(JSON.stringify(e),t),r=JSON.parse(n);if(!Array.isArray(r)&&r.error)throw Error(`topAgents failed: ${r.error}`);return r}function H(e,t){return o.jaccard_similarity_wasm(e,t)}function me(e){return o.detect_document_format_wasm(e)}function U(e){let t=o.generate_overview_wasm(e),n=JSON.parse(t);if(n.error)throw Error(`generateOverview failed: ${n.error}`);return n}function he(e,t,n){let r=o.get_line_range_wasm(e,t,n),i=JSON.parse(r);if(i.error)throw Error(`getLineRange failed: ${i.error}`);return i}function ge(e,t,n=2,r=20){let i=o.search_content_wasm(e,t,n,r),a=JSON.parse(i);if(!Array.isArray(a)&&a.error)throw Error(`searchContent failed: ${a.error}`);return a}function _e(e,t){let n=o.query_json_path_wasm(e,t),r=JSON.parse(n);if(`error`in r)throw Error(`queryJsonPath failed: ${r.error}`);return r}function W(e,t,n=!1){let r=o.get_section_wasm(e,t,n),i=JSON.parse(r);return i.error?null:i}function ve(e){return o.fnv1a_hash_wasm(e)}function ye(e,t=256){return JSON.parse(o.tfidf_embed_wasm(e,t))}function be(e,t=256){return JSON.parse(o.tfidf_embed_batch_wasm(JSON.stringify(e),t))}function xe(e,t=64,n=3){return JSON.parse(o.min_hash_fingerprint_wasm(e,t,n))}function G(e,t,n={}){let r=o.rank_by_similarity_wasm(e,JSON.stringify(t),JSON.stringify(n)),i=JSON.parse(r);if(!Array.isArray(i)&&i.error)throw Error(`rankBySimilarity failed: ${i.error}`);return i}function K(e,t,n){let r=[...t].sort((e,t)=>e.versionNumber-t.versionNumber),i=n??(r.length>0?r[r.length-1].versionNumber:0);if(i===0)return{content:e,version:0,patchesApplied:0,contentHash:d(e),tokenCount:f(e)};let a=r.filter(e=>e.versionNumber<=i).map(e=>e.patchText),o=h(e,JSON.stringify(a),a.length);return{content:o,version:i,patchesApplied:a.length,contentHash:d(o),tokenCount:f(o)}}function q(e,t){try{let n=m(e,t);return n===e&&t.trim().length>0?{applies:!1,error:`Patch did not modify content (possible conflict)`}:{applies:!0,resultContent:n}}catch(e){return{applies:!1,error:e instanceof Error?e.message:String(e)}}}function J(e,t){let n=[...t].sort((e,t)=>e.versionNumber-t.versionNumber),r=JSON.stringify(n.map(e=>e.patchText)),i=g(e,r),a=h(e,r,n.length);return{patchText:i,contentHash:d(a),tokenCount:f(a)}}function Se(e,t){return p(t,e)}function Y(e,t,n,r){let i=K(e,t,n).content,a=K(e,t,r).content,o=_(i,a),s=p(i,a);return{fromVersion:n,toVersion:r,addedLines:o.addedLines,removedLines:o.removedLines,addedTokens:o.addedTokens,removedTokens:o.removedTokens,patchText:s}}function X(e,t,n,r){let i=_(e,t),a=U(e),o=U(t),s=new Set(a.sections.map(e=>e.title)),c=new Set(o.sections.map(e=>e.title)),l=[];for(let e of c)s.has(e)||l.push(e);for(let e of s)c.has(e)||l.push(e);for(let e of o.sections)if(s.has(e.title)){let t=a.sections.find(t=>t.title===e.title);t&&t.tokenCount!==e.tokenCount&&l.push(e.title)}return{versionNumber:r.versionNumber,authorId:n,addedLines:i.addedLines,removedLines:i.removedLines,addedTokens:i.addedTokens,removedTokens:i.removedTokens,sectionsModified:[...new Set(l)],changelog:r.changelog,createdAt:r.createdAt}}function Z(e){let t=new Map;for(let n of e){let e=t.get(n.authorId);if(e){e.versionsAuthored++,e.totalTokensAdded+=n.addedTokens,e.totalTokensRemoved+=n.removedTokens,e.netTokens=e.totalTokensAdded-e.totalTokensRemoved,n.createdAt<e.firstContribution&&(e.firstContribution=n.createdAt),n.createdAt>e.lastContribution&&(e.lastContribution=n.createdAt);for(let t of n.sectionsModified)e.sectionsModified.includes(t)||e.sectionsModified.push(t)}else t.set(n.authorId,{agentId:n.authorId,versionsAuthored:1,totalTokensAdded:n.addedTokens,totalTokensRemoved:n.removedTokens,netTokens:n.addedTokens-n.removedTokens,firstContribution:n.createdAt,lastContribution:n.createdAt,sectionsModified:[...n.sectionsModified]})}return[...t.values()].sort((e,t)=>t.versionsAuthored-e.versionsAuthored)}function Q(e,t,n,r={}){let{minScore:i=.1,includeIntro:a=!0}=r;if(e.tokenCount<=t)return{sections:e.sections.map((e,t)=>({sectionIndex:t,title:e.title,tokenCount:e.tokenCount,reason:`budget-fit`})),totalTokens:e.tokenCount,budgetRemaining:t-e.tokenCount,tokensSaved:0,fullDocumentFits:!0};let o=e.sections.map((e,t)=>({section:e,index:t,score:n?H(n,e.title):0}));n&&o.sort((e,t)=>t.score-e.score);let s=[],c=t,l=new Set;if(a&&e.sections.length>0){let t=e.sections[0];t.tokenCount<=c&&(s.push({sectionIndex:0,title:t.title,tokenCount:t.tokenCount,reason:`structural`}),c-=t.tokenCount,l.add(0))}for(let{section:e,index:t,score:r}of o)l.has(t)||e.tokenCount>c||n&&r<i||(s.push({sectionIndex:t,title:e.title,tokenCount:e.tokenCount,reason:n?`query-match`:`budget-fit`,score:n?r:void 0}),c-=e.tokenCount,l.add(t));s.sort((e,t)=>e.sectionIndex-t.sectionIndex);let u=t-c;return{sections:s,totalTokens:u,budgetRemaining:c,tokensSaved:e.tokenCount-u,fullDocumentFits:!1}}function Ce(e,t){return t.reduce((t,n)=>{let r=e.sections[n];return t+(r?r.tokenCount:0)},0)}function $(e){return e.length>0?Math.max(...e.map(e=>e.versionNumber)):0}var we=class{slug;storage;constructor(e){this.slug=e.slug,this.storage=e.storage}async getContent(e){return this.storage.getContent(this.slug,e)}async reconstruct(e){return K(await this.storage.getContent(this.slug,0),await this.storage.getVersions(this.slug),e)}async overview(){return U(await this.storage.getContent(this.slug))}async section(e,t=!1){return W(await this.storage.getContent(this.slug),e,t)}async getVersions(){return this.storage.getVersions(this.slug)}async createVersion(e,t){let r=await this.storage.getState(this.slug);if(!n(r))throw Error(`Cannot create version: document is in `+r+` state`);let i=await this.storage.getContent(this.slug),o=p(i,e),s=q(i,o);if(!s.applies)throw Error(`Patch does not apply cleanly: `+(s.error||`unknown`));let c=$(await this.storage.getVersions(this.slug))+1,l={versionNumber:c,patchText:o,createdBy:t.agentId,changelog:t.changelog,contentHash:d(e),createdAt:Date.now()};await this.storage.putContent(this.slug,c,e),await this.storage.addVersion(this.slug,l);let u=a(await this.storage.getReviews(this.slug),c);for(let e of u)e.status===`STALE`&&await this.storage.addReview(this.slug,e);return l}async diff(e,t){return Y(await this.storage.getContent(this.slug,0),await this.storage.getVersions(this.slug),e,t)}async squash(){return J(await this.storage.getContent(this.slug,0),await this.storage.getVersions(this.slug))}async getState(){return this.storage.getState(this.slug)}async transition(e,t){let n=await this.storage.getState(this.slug),i=r(n,e);if(!i.valid)throw Error(i.reason);let a=await this.storage.getVersions(this.slug),o={from:n,to:e,changedBy:t.changedBy,changedAt:Date.now(),reason:t.reason,atVersion:$(a)};await this.storage.setState(this.slug,o)}async checkApproval(){return i(await this.storage.getReviews(this.slug),await this.storage.getApprovalPolicy(this.slug),$(await this.storage.getVersions(this.slug)))}async approve(e){let t=await this.storage.getVersions(this.slug);await this.storage.addReview(this.slug,{reviewerId:e.reviewerId,status:`APPROVED`,timestamp:Date.now(),reason:e.reason,atVersion:$(t)})}async reject(e){let t=await this.storage.getVersions(this.slug);await this.storage.addReview(this.slug,{reviewerId:e.reviewerId,status:`REJECTED`,timestamp:Date.now(),reason:e.reason,atVersion:$(t)})}async getAttributions(){let e=await this.storage.getContent(this.slug,0),t=[...await this.storage.getVersions(this.slug)].sort((e,t)=>e.versionNumber-t.versionNumber),n=[],r=e;for(let i of t){let{content:a}=K(e,t,i.versionNumber);n.push(X(r,a,i.createdBy,i)),r=a}return n}async getContributors(){return Z(await this.getAttributions())}async planRetrieval(e,t,n){return Q(U(await this.storage.getContent(this.slug)),e,t,n)}};export{G as $,me as A,ve as B,N as C,te as D,p as E,F,re as G,U as H,I,H as J,d as K,R as L,ee as M,L as N,c as O,P,_e as Q,z as R,C as S,T,he as U,ne as V,W,xe as X,x as Y,v as Z,_,u as _t,Z as a,E as at,ae as b,K as c,g as ct,m as d,be as dt,h as et,V as f,b as ft,s as g,l as gt,y as h,w as ht,X as i,A as it,M as j,le as k,J as l,de as lt,f as m,fe as mt,Ce as n,D as nt,Se as o,S as ot,ie as p,pe as pt,ue as q,Q as r,ge as rt,Y as s,k as st,we as t,O as tt,q as u,ye as ut,se as v,j as w,oe as x,ce as y,B as z};
@@ -1 +0,0 @@
1
- import{_ as e,b as t,g as n,h as r,t as i,y as a}from"./CNToUR3P.js";import{A as ee,C as te,D as ne,E as re,M as ie,N as ae,O as oe,P as se,S as ce,T as le,_ as ue,a as de,b as fe,d as pe,f as me,g as he,h as ge,i as _e,j as ve,k as ye,m as be,o as xe,p as Se,s as Ce,u as we,v as o,w as s,x as c,y as l}from"./imLk4if5.js";import{C as u,D as d,O as f,S as p,_ as m,d as h,g,u as _,v,w as y,y as b}from"./BHnFwTQY.js";import{C as x,E as S,T as C,s as w,w as T}from"./DHQfJeLU.js";import{t as E}from"./BLkgUtyb.js";import{t as D}from"./C1w6bBje.js";var O=async(e,t,n)=>({operation:f(t).operation,region:await d(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function k(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`awsssoportal`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Te(e){return{schemeId:`smithy.api#noAuth`}}var Ee=e=>{let t=[];switch(e.operation){case`GetRoleCredentials`:t.push(Te(e));break;default:t.push(k(e))}return t},De=e=>{let t=xe(e);return Object.assign(t,{authSchemePreference:d(e.authSchemePreference??[])})},Oe=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`awsssoportal`}),ke={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},A=`ref`,j=-1,M=!0,N=`isSet`,P=`PartitionResult`,F=`booleanEquals`,I=`getAttr`,L={[A]:`Endpoint`},R={[A]:P},z={},B=[{[A]:`Region`}],V={conditions:[[N,[L]],[N,B],[`aws.partition`,B,P],[F,[{[A]:`UseFIPS`},M]],[F,[{[A]:`UseDualStack`},M]],[F,[{fn:I,argv:[R,`supportsDualStack`]},M]],[F,[{fn:I,argv:[R,`supportsFIPS`]},M]],[`stringEquals`,[{fn:I,argv:[R,`name`]},`aws-us-gov`]]],results:[[j],[j,`Invalid Configuration: FIPS and custom endpoint are not supported`],[j,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[L,z],[`https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,z],[j,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://portal.sso.{Region}.amazonaws.com`,z],[`https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}`,z],[j,`FIPS is enabled but this partition does not support FIPS`],[`https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}`,z],[j,`DualStack is enabled but this partition does not support DualStack`],[`https://portal.sso.{Region}.{PartitionResult#dnsSuffix}`,z],[j,`Invalid Configuration: Missing Region`]]},Ae=2,H=1e8,je=new Int32Array([-1,1,-1,0,13,3,1,4,H+12,2,5,H+12,3,8,6,4,7,H+11,5,H+9,H+10,4,11,9,6,10,H+8,7,H+6,H+7,5,12,H+5,6,H+4,H+5,3,H+1,14,4,H+2,H+3]),Me=y.from(je,Ae,V.conditions,V.results),Ne=new u({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Pe=(e,t={})=>Ne.get(e,()=>b(Me,{endpointParams:e,logger:t.logger}));p.aws=me;var U=class e extends ne{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},Fe=class e extends U{name=`InvalidRequestException`;$fault=`client`;constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Ie=class e extends U{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Le=class e extends U{name=`TooManyRequestsException`;$fault=`client`;constructor(t){super({name:`TooManyRequestsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},W=class e extends U{name=`UnauthorizedException`;$fault=`client`;constructor(t){super({name:`UnauthorizedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},Re=`AccessTokenType`,ze=`GetRoleCredentials`,Be=`GetRoleCredentialsRequest`,Ve=`GetRoleCredentialsResponse`,He=`InvalidRequestException`,Ue=`RoleCredentials`,We=`ResourceNotFoundException`,Ge=`SecretAccessKeyType`,Ke=`SessionTokenType`,qe=`TooManyRequestsException`,Je=`UnauthorizedException`,Ye=`accountId`,Xe=`accessKeyId`,Ze=`accessToken`,Qe=`account_id`,G=`client`,K=`error`,$e=`expiration`,et=`http`,q=`httpError`,tt=`httpHeader`,J=`httpQuery`,Y=`message`,nt=`roleCredentials`,rt=`roleName`,it=`role_name`,X=`smithy.ts.sdk.synthetic.com.amazonaws.sso`,at=`secretAccessKey`,ot=`sessionToken`,st=`x-amz-sso_bearer_token`,Z=`com.amazonaws.sso`,Q=t.for(X),ct=[-3,X,`SSOServiceException`,0,[],[]];Q.registerError(ct,U);var $=t.for(Z),lt=[-3,Z,He,{[K]:G,[q]:400},[Y],[0]];$.registerError(lt,Fe);var ut=[-3,Z,We,{[K]:G,[q]:404},[Y],[0]];$.registerError(ut,Ie);var dt=[-3,Z,qe,{[K]:G,[q]:429},[Y],[0]];$.registerError(dt,Le);var ft=[-3,Z,Je,{[K]:G,[q]:401},[Y],[0]];$.registerError(ft,W);var pt=[Q,$],mt=[0,Z,Re,8,0],ht=[0,Z,Ge,8,0],gt=[0,Z,Ke,8,0],_t=[3,Z,Be,0,[rt,Ye,Ze],[[0,{[J]:it}],[0,{[J]:Qe}],[()=>mt,{[tt]:st}]],3],vt=[3,Z,Ve,0,[nt],[[()=>yt,0]]],yt=[3,Z,Ue,0,[Xe,at,ot,$e],[0,[()=>ht,0],[()=>gt,0],1]],bt=[9,Z,ze,{[et]:[`GET`,`/federation/credentials`,200]},()=>_t,()=>vt],xt=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??S,base64Encoder:e?.base64Encoder??T,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Pe,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ee,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Ce},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new he}],logger:e?.logger??new a,protocol:e?.protocol??D,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sso`,errorTypeRegistries:pt,version:`2019-06-10`,serviceTarget:`SWBPortalService`},serviceId:e?.serviceId??`SSO`,urlParser:e?.urlParser??g,utf8Decoder:e?.utf8Decoder??C,utf8Encoder:e?.utf8Encoder??x}),St=t=>{let n=_(t),r=()=>n().then(re),a=xt(t);return{...a,...t,runtime:`browser`,defaultsMode:n,bodyLengthChecker:t?.bodyLengthChecker??w,defaultUserAgentProvider:t?.defaultUserAgentProvider??Se({serviceId:a.serviceId,clientVersion:de.version}),maxAttempts:t?.maxAttempts??3,region:t?.region??se(`Region is missing`),requestHandler:E.create(t?.requestHandler??r),retryMode:t?.retryMode??(async()=>(await r()).retryMode||e),sha256:t?.sha256??i,streamCollector:t?.streamCollector??_e,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(!1))}},Ct=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},wt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),Tt=(e,t)=>{let n=Object.assign(we(e),s(e),ve(e),Ct(e));return t.forEach(e=>e.configure(n)),Object.assign(e,pe(n),le(n),ie(n),wt(n))},Et=class extends ae{config;constructor(...[e]){let t=St(e||{});super(t),this.initConfig=t,this.config=Tt(De(v(te(h(n(ge(Oe(t))))))),e?.extensions||[]),this.middlewareStack.use(ye(this.config)),this.middlewareStack.use(be(this.config)),this.middlewareStack.use(r(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(ce(this.config)),this.middlewareStack.use(c(this.config)),this.middlewareStack.use(fe(this.config)),this.middlewareStack.use(l(this.config,{httpAuthSchemeParametersProvider:O,identityProviderConfigProvider:async e=>new ue({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(o(this.config))}destroy(){super.destroy()}},Dt=class extends oe.classBuilder().ep(ke).m(function(e,t,n,r){return[m(n,e.getEndpointParameterInstructions())]}).s(`SWBPortalService`,`GetRoleCredentials`,{}).n(`SSOClient`,`GetRoleCredentialsCommand`).sc(bt).build(){};export{Dt as GetRoleCredentialsCommand,Et as SSOClient};
@@ -1 +0,0 @@
1
- import{C as e,T as t}from"./DHQfJeLU.js";var n=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:i}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=i}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){let r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i),o=this.serializer,s=this.defaultContentType,c=Symbol(`initialRequestMarker`),l={async*[Symbol.asyncIterator](){if(n){let e={":event-type":{type:`string`,value:`initial-request`},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:s}};o.write(t,n);let r=o.flush();yield{[c]:!0,headers:e,body:r}}for await(let t of e)yield t}};return r.serialize(l,e=>{if(e[c])return{headers:e.headers,body:e.body};let t=``;for(let n in e)if(n!==`__type`){t=n;break}let{additionalHeaders:n,body:r,eventType:i,explicitPayloadContentType:o}=this.writeEventBody(t,a,e);return{headers:{":event-type":{type:`string`,value:i},":message-type":{type:`string`,value:`event`},":content-type":{type:`string`,value:o??s},...n},body:r}})}async deserializeEventStream({response:t,responseSchema:n,initialResponseContainer:r}){let i=this.marshaller,a=n.getEventStreamMember(),o=n.getMemberSchema(a).getMemberSchemas(),s=Symbol(`initialResponseMarker`),c=i.deserialize(t.body,async t=>{let r=``;for(let e in t)if(e!==`__type`){r=e;break}let i=t[r].body;if(r===`initial-response`){let e=await this.deserializer.read(n,i);return delete e[a],{[s]:!0,...e}}else if(r in o){let n=o[r];if(n.isStructSchema()){let a={},o=!1;for(let[s,c]of n.structIterator()){let{eventHeader:n,eventPayload:l}=c.getMergedTraits();if(o||=!!(n||l),l)c.isBlobSchema()?a[s]=i:c.isStringSchema()?a[s]=(this.serdeContext?.utf8Encoder??e)(i):c.isStructSchema()&&(a[s]=await this.deserializer.read(c,i));else if(n){let e=t[r].headers[s]?.value;e!=null&&(c.isNumericSchema()?e&&typeof e==`object`&&`bytes`in e?a[s]=BigInt(e.toString()):a[s]=Number(e):a[s]=e)}}if(o)return{[r]:a};if(i.byteLength===0)return{[r]:{}}}return{[r]:await this.deserializer.read(n,i)}}else return{$unknown:t}}),l=c[Symbol.asyncIterator](),u=await l.next();if(u.done)return c;if(u.value?.[s]){if(!n)throw Error(`@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.`);for(let e in u.value)r[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){let{done:e,value:t}=await l.next();if(e)break;yield t}}}}writeEventBody(e,n,r){let i=this.serializer,a=e,o=null,s,c=n.getSchema()[4].includes(e),l={};if(c){let t=n.getMemberSchema(e);if(t.isStructSchema()){for(let[n,i]of t.structIterator()){let{eventHeader:t,eventPayload:a}=i.getMergedTraits();if(a)o=n;else if(t){let t=r[e][n],a=`binary`;i.isNumericSchema()?a=(-2)**31<=t&&t<=2**31-1?`integer`:`long`:i.isTimestampSchema()?a=`timestamp`:i.isStringSchema()?a=`string`:i.isBooleanSchema()&&(a=`boolean`),t!=null&&(l[n]={type:a,value:t},delete r[e][n])}}if(o!==null){let n=t.getMemberSchema(o);n.isBlobSchema()?s=`application/octet-stream`:n.isStringSchema()&&(s=`text/plain`),i.write(n,r[e][o])}else i.write(t,r[e])}else if(t.isUnitSchema())i.write(t,{});else throw Error(`@smithy/core/event-streams - non-struct member not supported in event stream union.`)}else{let[t,n]=r[e];a=t,i.write(15,n)}let u=i.flush()??new Uint8Array;return{body:typeof u==`string`?(this.serdeContext?.utf8Decoder??t)(u):u,eventType:a,explicitPayloadContentType:s,additionalHeaders:l}}};export{n as EventStreamSerde};
@@ -1,48 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DOVNXmCK2.js","./t4h0vrqR2.js","./DrKWWDpL.js","./DOqzs8kl2.js","./DYP3EJMY.js","./BYJC6_MM.js","./DF_4OWhj.js","./CdqDTozW.js","./D7w7HllH.js","./DB5ifLM-.js","./Ml4JR6Jz2.js","./DsQIgu-4.js","./B2_6RrlL2.js","./C243sn7r.js","./C_IZx3682.js","./DLRku_0p2.js","./DYxFu8yV.js","./DaXb9i_E.js","./DXpCX2Hi.js","./DyzE2Uxw.js","./n6M_5LoW.js","./DTxtWPkw.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{i,l as a}from"./Ml4JR6Jz2.js";import{t as o}from"./DF_4OWhj.js";import{i as s}from"./DTxtWPkw.js";import{i as c,s as l}from"./C5Nlanei.js";import{a as u,i as d,s as f,t as p}from"./Cc8xxDr5.js";import{t as m}from"./BK17qSHw.js";var h=4,g=100,ee=50;function _(e){if(!(e instanceof Error))return!1;let t=e.message.toLowerCase();return t.includes(`sqlite_busy`)||t.includes(`database is locked`)}async function v(e,t={}){let n=Math.max(1,t.maxAttempts??h),r=t.baseDelayMs??g,i=t.jitterMs??ee,a=t.onRetry,o;for(let t=1;t<=n;t++)try{return await e()}catch(e){if(!_(e))throw e;if(o=e,t===n)break;let s=r*2**(t-1),c=(Math.random()*2-1)*i,l=Math.max(0,s+c);a&&a(t,l,e),await y(l)}let s=Error(`E_WRITE_CONTENTION: SQLITE_BUSY persisted after ${n} attempts. Retry the operation after a brief delay. Underlying error: ${o instanceof Error?o.message:String(o)}`);throw s.code=`E_WRITE_CONTENTION`,s.cause=o,s}function y(e){return new Promise(t=>setTimeout(t,e))}var b=e(r(),1),x=5,te=100,ne=2e3;function S(e){return e.replace(/--[^\n]*/g,``).replace(/\/\*[\s\S]*?\*\//g,``)}function C(e){let t=/CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?/i,n=/DROP\s+TABLE\s+(?:IF\s+EXISTS\s+)?[`"]?(\w+)[`"]?/i,r=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+RENAME\s+TO\s+[`"]?(\w+)[`"]?/i,i=new Map,a=[...e].sort((e,t)=>e.folderMillis-t.folderMillis);for(let e of a){let a=Array.isArray(e.sql)?e.sql:[e.sql??``];for(let e of a){let a=S(e);for(let e of a.split(`;`)){let a=t.exec(e);if(a){i.set(a[1],!0);continue}let o=r.exec(e);if(o){i.set(o[2],!0);continue}let s=n.exec(e);s&&i.set(s[1],!1)}}}let o=new Set;for(let[e,t]of i)t||o.add(e);return o}var re=`20260531000001`,w=14;function ie(e){let t=(0,b.dirname)(e);for(let e of[`drizzle-cleo-project`,`drizzle-cleo-global`]){let n=(0,b.join)(t,e);if((0,b.existsSync)(n))try{let e=l({migrationsFolder:n}).find(e=>/-consolidation-cleo-/.test(e.name??``));if(e?.name)return e.name.slice(0,w)}catch{}}return re}function ae(e,t){let n=(e??``).slice(0,w);return n.length<w?!0:n<=t}function T(e,t){return!!e.prepare(`SELECT name FROM sqlite_master WHERE type='table' AND name=?`).get(t)}function oe(e){let t=e.replace(/\.db$/,`-pre-cleo.db.bak`);if(!(0,b.existsSync)(t))try{(0,b.copyFileSync)(e,t)}catch{}}function E(e,t,n,r){let i=e.prepare(`PRAGMA table_info("__drizzle_migrations")`).all(),a=new Set(i.map(e=>e.name));a.has(`name`)||e.exec(`ALTER TABLE "__drizzle_migrations" ADD COLUMN "name" text`),a.has(`applied_at`)||e.exec(`ALTER TABLE "__drizzle_migrations" ADD COLUMN "applied_at" TEXT`),e.exec(`INSERT OR IGNORE INTO "__drizzle_migrations" ("hash", "created_at", "name") VALUES ('${t}', ${n}, '${r}')`)}function se(e,t,n,r=new Set,i=re){let a=S((Array.isArray(t.sql)?t.sql:[t.sql??``]).join(`
3
- `)),s=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+ADD\s+COLUMN\s+[`"]?(\w+)[`"]?/gi,c=/CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?/gi,l=/CREATE\s+(?:UNIQUE\s+)?INDEX\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?/gi,u=/CREATE\s+TRIGGER\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?/gi,d=[];for(let e of a.matchAll(s))d.push({table:e[1],column:e[2]});let f=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+RENAME\s+TO\s+[`"]?(\w+)[`"]?/gi,p=new Map;for(let e of a.matchAll(f))p.set(e[1],e[2]);let m=!0,h=[];for(let e of a.matchAll(c)){let t=e[1];p.has(t)?h.push(p.get(t)):(m=!1,h.push(t))}let g=m&&h.length>0&&d.length===0,ee=p.size>0,_=/CREATE\s+(?:UNIQUE\s+)?INDEX\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?\s+ON\s+[`"]?(\w+)[`"]?/gi,v=new Map;for(let e of a.matchAll(_))v.set(e[1],e[2]);let y=[];if(!g&&!ee)for(let e of a.matchAll(l)){let t=e[1];r.has(v.get(t)??``)||y.push(t)}let b=[];for(let e of a.matchAll(u))b.push(e[1]);if(d.length+h.length+y.length+b.length===0)return ae(t.name,i)?(E(e,t.hash,t.folderMillis,t.name??``),o(n).debug({migration:t.name},`Zero-DDL pre-consolidation migration ${t.name} stamped applied (subsumed; not re-run).`),!0):!1;let x=d.every(({table:t,column:n})=>T(e,t)?e.prepare(`PRAGMA table_info(${t})`).all().some(e=>e.name===n):!1),te=h.every(t=>T(e,t)||r.has(t)),ne=y.every(t=>e.prepare(`SELECT name FROM sqlite_master WHERE type='index' AND name=?`).all(t).length>0),C=b.every(t=>e.prepare(`SELECT name FROM sqlite_master WHERE type='trigger' AND name=?`).all(t).length>0);return x&&te&&ne&&C?(E(e,t.hash,t.folderMillis,t.name??``),o(n).debug({migration:t.name,alters:d.length,tables:h.length,indexes:y.length,isRebuildOnly:g},`Migration ${t.name} DDL already present in schema — marked applied.`),!0):!1}function ce(e){try{return new Set(l({migrationsFolder:e}).map(e=>e.hash))}catch{return new Set}}function le(e){if(T(e,`__drizzle_migrations`))try{e.exec(`DELETE FROM "__drizzle_migrations" WHERE id NOT IN (SELECT MIN(id) FROM "__drizzle_migrations" GROUP BY hash)`),e.exec(`CREATE UNIQUE INDEX IF NOT EXISTS "idx_drizzle_migrations_hash" ON "__drizzle_migrations" ("hash")`)}catch{}}function D(e,t,n,r,i=[]){let a=C(l({migrationsFolder:t})),s=ie(t);if(T(e,n)&&!T(e,`__drizzle_migrations`)){let n=l({migrationsFolder:t})[0];n&&(e.exec(`
4
- CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (
5
- id INTEGER PRIMARY KEY,
6
- hash text NOT NULL,
7
- created_at numeric,
8
- name text,
9
- applied_at TEXT
10
- )
11
- `),E(e,n.hash,n.folderMillis,n.name??``))}if(le(e),T(e,`__drizzle_migrations`)&&T(e,n)){let n=l({migrationsFolder:t}),c=new Set(n.map(e=>e.hash)),u=new Set(c);for(let e of i)if(e!==t)for(let t of ce(e))u.add(t);let d=e.prepare(`SELECT id, hash FROM "__drizzle_migrations"`).all(),f=d.filter(e=>!u.has(e.hash));if(f.length>0){let t=new Set(d.map(e=>e.hash)),i=n.every(e=>t.has(e.hash)),c=o(r);if(i)c.debug({extra:f.length},`Migration journal has ${f.length} entries for migrations not known to this install (DB is ahead). Skipping reconciliation.`);else{c.warn({orphaned:f.length},`Detected ${f.length} true-orphan journal entries from a previous CLEO lineage. Reconciling via DDL probe.`);let t=e.prepare(`DELETE FROM "__drizzle_migrations" WHERE id = ?`);for(let e of f)t.run(e.id);let i=new Set(e.prepare(`SELECT hash FROM "__drizzle_migrations"`).all().map(e=>e.hash));for(let t of n)i.has(t.hash)||se(e,t,r,a,s)}}}if(T(e,`__drizzle_migrations`)&&T(e,n)){let n=l({migrationsFolder:t}),i=e.prepare(`SELECT hash FROM "__drizzle_migrations"`).all(),c=new Set(i.map(e=>e.hash));for(let t of n){if(c.has(t.hash))continue;let n=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+ADD\s+COLUMN\s+[`"]?(\w+)[`"]?\s*(.*?)(?:;|$)/gi,i=[],l=(Array.isArray(t.sql)?t.sql:[t.sql??``]).join(`
12
- `);for(let e of l.matchAll(n))i.push({table:e[1],column:e[2],ddl:(e[3]||``).trim()});if(i.length===0){if(S(l).trim()===``){o(r).debug({migration:t.name},`Migration ${t.name} is a comment-only baseline marker — marking applied on existing DB.`),E(e,t.hash,t.folderMillis,t.name??``);continue}let n=/ALTER\s+TABLE\s+[`"]?\w+[`"]?\s+RENAME\s+TO\s+[`"]?\w+[`"]?/i,i=/CREATE\s+TABLE/i;n.test(l)&&i.test(l)||i.test(l)||/CREATE\s+TRIGGER/i.test(l),se(e,t,r,a,s);continue}let u=[],d=[];for(let t of i){if(!T(e,t.table)){d.push(t);continue}e.prepare(`PRAGMA table_info(${t.table})`).all().some(e=>e.name===t.column)?u.push(t):d.push(t)}if(d.length===0){o(r).warn({migration:t.name,columns:i},`Detected partially-applied migration ${t.name} — columns exist but journal entry missing. Auto-reconciling.`),E(e,t.hash,t.folderMillis,t.name??``);continue}if(u.length>0&&d.length>0){let n=o(r);n.warn({migration:t.name,existingColumns:u.map(e=>`${e.table}.${e.column}`),missingColumns:d.map(e=>`${e.table}.${e.column}`)},`T920: Detected partial migration ${t.name} — some ALTER columns exist, some missing. Adding missing columns and marking applied.`);for(let{table:r,column:i,ddl:a}of d)if(T(e,r))try{e.exec(`ALTER TABLE ${r} ADD COLUMN ${i}${a?` ${a}`:``}`),n.warn({migration:t.name,table:r,column:i},`T920: Added missing column ${r}.${i} to complete partial migration.`)}catch{n.warn({migration:t.name,table:r,column:i},`T920: Could not add missing column ${r}.${i} — will let Drizzle migrate() handle it.`)}E(e,t.hash,t.folderMillis,t.name??``)}}}if(T(e,`__drizzle_migrations`)&&T(e,n)){if(!e.prepare(`PRAGMA table_info("__drizzle_migrations")`).all().some(e=>e.name===`name`))return;let n=l({migrationsFolder:t}),i=new Map(n.map(e=>[e.hash,e.name??``])),a=e.prepare(`SELECT id, hash FROM "__drizzle_migrations" WHERE name IS NULL`).all();for(let t of a){let n=i.get(t.hash);n&&(o(r).debug({id:t.id,hash:t.hash,name:n},`Backfilling missing name on journal entry id=${t.id} (Drizzle v1 beta legacy compat).`),e.exec(`UPDATE "__drizzle_migrations" SET "name" = '${n}' WHERE id = ${t.id}`))}}}function ue(e,t){e.exec(`
13
- CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (
14
- id INTEGER PRIMARY KEY,
15
- hash text NOT NULL,
16
- created_at numeric,
17
- name text,
18
- applied_at TEXT
19
- )
20
- `);let n=he(l({migrationsFolder:t})),r=new Set(e.prepare(`SELECT hash FROM "__drizzle_migrations"`).all().map(e=>e.hash)),i=C(n),a=/CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?[`"]?(\w+)[`"]?/gi,o=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+RENAME\s+TO\s+[`"]?(\w+)[`"]?/gi,s=/ALTER\s+TABLE\s+[`"]?(\w+)[`"]?\s+ADD\s+COLUMN\s+[`"]?(\w+)[`"]?/gi,c=(t,n)=>T(e,t)?e.prepare(`PRAGMA table_info("${t}")`).all().some(e=>e.name===n):!1,u=0,d=0;for(let t of n){if(r.has(t.hash))continue;let n=S(t.sql.join(`
21
- `)),l=new Map,f=[];for(let e of n.matchAll(o))l.set(e[1],e[2]),f.push(e[2]);let p=new Set(f);for(let e of n.matchAll(a)){let t=e[1];p.add(l.get(t)??t)}let m=[];for(let e of n.matchAll(s))m.push({table:e[1],column:e[2]});let h=p.size>0&&[...p].every(t=>T(e,t)||i.has(t)),g=p.size===0&&m.length>0&&m.every(({table:e,column:t})=>c(e,t));if(h||g){for(let n of t.sql){let t=S(n).trim();/^CREATE\s+(?:UNIQUE\s+)?INDEX\s+IF\s+NOT\s+EXISTS/i.test(t)&&!/CREATE\s+TABLE|ALTER\s+TABLE/i.test(t)&&e.exec(n)}E(e,t.hash,t.folderMillis,t.name??``),r.add(t.hash),u++;continue}for(let n of t.sql)e.exec(n);E(e,t.hash,t.folderMillis,t.name??``),r.add(t.hash),d++}return{marked:u,applied:d}}function de(e){let t=[],n=e;for(let e=0;n instanceof Error&&e<16;e++)t.push(n.message),n=n.cause;return t.join(`
22
- `)}function fe(e){return e instanceof Error?/duplicate column name/i.test(de(e)):!1}function pe(e){return e instanceof Error?/table .+ already exists/i.test(de(e)):!1}function me(e){return e.trim()===``?!1:e.replace(/--[^\n]*/g,``).replace(/\/\*[\s\S]*?\*\//g,``).trim()!==``}function he(e){return e.map(e=>({...e,sql:e.sql.filter(me)}))}function ge(e,t){c(he(l(t)),e._.session,t)}function O(e,t,n,r,i){let a=!1,s=!1;for(let c=1;c<=x;c++)try{ge(e,{migrationsFolder:t});return}catch(e){if(fe(e)&&!a&&n!==void 0&&r!==void 0&&i!==void 0){a=!0,D(n,t,r,i);continue}if(pe(e)&&!s&&n!==void 0&&r!==void 0&&i!==void 0){s=!0,o(i).warn({message:e.message},`[T9174] Migration "table already exists" — reconciling journal and retrying`),D(n,t,r,i);continue}if(!_(e)||c===x)throw e;let l=Math.min(te*2**(c-1)*(1+Math.random()*.5),ne);Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,Math.round(l))}}function _e(e,t,n,r,i=`legacy-upgrade`){if(!T(e,t)||n.length===0)return;let a=e.prepare(`PRAGMA table_info(${t})`).all(),s=new Set(a.map(e=>e.name));for(let a of n)if(!s.has(a.name)){let n=o(r),s=`Adding missing column ${t}.${a.name} via ALTER TABLE`,c={column:a.name,context:i};i===`fresh`?n.error(c,`${s} — MIGRATION DEFECT (fresh DB should not need repair)`):n.warn(c,s),e.exec(`ALTER TABLE ${t} ADD COLUMN ${a.name} ${a.ddl}`)}}function ve(e){return(0,b.dirname)((0,b.dirname)(e))}var ye=[`drizzle-tasks`,`drizzle-cleo-project`,`drizzle-nexus`,`drizzle-brain`,`drizzle-conduit`,`drizzle-cleo-global`,`drizzle-agent-registry`,`drizzle-skills`,`drizzle-telemetry`];function k(e){return ye.filter(t=>t!==e).map(e=>A(e))}function A(e){try{return(0,b.join)(ve((0,b.fileURLToPath)(import.meta.resolve(`@cleocode/core`,import.meta.url))),`migrations`,e)}catch{}let t=(0,b.createRequire)(import.meta.url);try{return(0,b.join)(ve(t.resolve(`@cleocode/core`)),`migrations`,e)}catch(t){throw Error(`resolveCorePackageMigrationsFolder("${e}"): cannot locate @cleocode/core from "${import.meta.url}". Ensure @cleocode/core is installed (workspace or npm). Original error: ${t.message}`)}}var j=`_writer_leases`,M=`_writer_queue`,be=`ux_writer_leases_active`;d(j,{id:f(`id`).primaryKey(),scope:u(`scope`).notNull(),lane:u(`lane`).notNull(),holderId:u(`holder_id`).notNull(),holderPid:f(`holder_pid`).notNull(),epoch:f(`epoch`).notNull(),acquiredAt:f(`acquired_at`).notNull(),heartbeatAt:f(`heartbeat_at`).notNull(),ttlMs:f(`ttl_ms`).notNull(),reentrancyDepth:f(`reentrancy_depth`).notNull().default(1),active:f(`active`).notNull().default(1)}),d(M,{ticket:f(`ticket`).primaryKey({autoIncrement:!0}),scope:u(`scope`).notNull(),lane:u(`lane`).notNull(),holderId:u(`holder_id`).notNull(),priority:f(`priority`).notNull().default(100),enqueuedAt:f(`enqueued_at`).notNull(),deadlineAt:f(`deadline_at`).notNull()},e=>[p(`ix_writer_queue_order`).on(e.scope,e.lane,e.priority,e.ticket)]);function xe(e){if(!e.prepare(`SELECT name FROM sqlite_master WHERE type = 'index' AND name = ?`).get(`ux_writer_leases_active`))throw Error(`E_WRITER_LEASE_INDEX_MISSING: partial-unique active-row index "${be}" is absent from this cleo.db. The lease baseline migration (drizzle-cleo-{project,global}/…_t11891-writer-leases) did not run, so the single-active-writer invariant (AC1) is unenforced.`)}var Se=100,Ce=3e4,we=25,N=null;function P(){return N===null&&(N=o(`writer-lease`)),N}var F=null,Te=!1;function Ee(){if(F!==null)return F;let e={}.CLEO_WRITER_LEASE_MODE;switch(e){case`supervisor`:case`local`:case`off`:case`require`:F=e;break;default:F=`local`;break}return F}function I(){let e=Ee();return e===`supervisor`?(Te||(Te=!0,P().info(`CLEO_WRITER_LEASE_MODE=supervisor but no IPC client is wired (ST-2); demoting to local-mode arbitration for the process lifetime.`)),`local`):e}var L=async(e,t)=>{let n;return n=t!==void 0&&t!==q(e)?e===`project`?await $(`project`,t):await $(`global`,t):e===`project`?await Q(`project`):await Q(`global`),{native:n.db.$client,dbPath:n.dbPath??t??q(e)}},De=q,R=new Map,z=new Map;function B(e,t,n){return`${e}::${t}::${n}`}function Oe(e){return e.startsWith(`test://`)||e.startsWith(`sentinel://`)?e:(0,b.resolve)(e)}function ke(e,t){return Object.freeze({scope:e,dbPath:(0,b.resolve)(t)})}var V=new WeakMap;function Ae(e,t){let n=V.get(e);if(n){if(n.scope===t.scope&&n.dbPath===t.dbPath)return;throw Error(`E_WRITER_LEASE_IDENTITY_MISMATCH: the same drizzle DB handle was previously registered as ${n.scope}::${n.dbPath} but is being re-registered as ${t.scope}::${t.dbPath}. A DB handle must carry exactly one immutable identity (T12042).`)}V.set(e,t)}function je(e){let t=V.get(e);if(!t)throw Error(`E_WRITER_LEASE_IDENTITY_UNREGISTERED: the drizzle DB handle has no registered writer-lease identity. Open the DB through the dual-scope chokepoint (openDualScopeDb/openDualScopeDbAtPath) or call registerDbIdentity(handle, identity) explicitly in tests. (T12042 — no ambient fallback)`);return t}function Me(e){return new Promise(t=>setTimeout(t,Math.max(0,Math.round(e))))}function Ne(e){try{return process.kill(e,0),!0}catch(e){return e.code===`EPERM`}}function Pe(e){return`pid-${process.pid}:${e}:${(0,b.randomUUID)().slice(0,8)}`}var Fe=class{scope;lane;epoch;holderId;dbPath;nativeDb;ttlMs;heartbeatTimer=null;released=!1;constructor(e){this.scope=e.scope,this.lane=e.lane,this.epoch=e.epoch,this.holderId=e.holderId,this.dbPath=e.dbPath,this.nativeDb=e.nativeDb,this.ttlMs=e.ttlMs,this.startHeartbeat()}startHeartbeat(){let e=Math.max(1,Math.floor(this.ttlMs/3));this.heartbeatTimer=setInterval(()=>this.heartbeat(),e),this.heartbeatTimer.unref?.()}heartbeat(){if(!this.released)try{this.nativeDb.prepare(`UPDATE ${j} SET heartbeat_at = ? WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(Date.now(),this.scope,this.lane,this.holderId,this.epoch)}catch(e){this.released=!0,this.heartbeatTimer&&=(clearInterval(this.heartbeatTimer),null),P().debug({scope:this.scope,lane:this.lane,err:e instanceof Error?e.message:e},`writer-lease heartbeat failed (native handle likely closed); stopping heartbeat`)}}releaseRow(e=this.nativeDb){this.released||(this.released=!0,this.heartbeatTimer&&=(clearInterval(this.heartbeatTimer),null));try{return e.prepare(`UPDATE ${j} SET active = 0, reentrancy_depth = 0 WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(this.scope,this.lane,this.holderId,this.epoch),!0}catch(e){return P().debug({scope:this.scope,lane:this.lane,err:e instanceof Error?e.message:e},`writer-lease releaseRow failed (native handle likely closed); fresh-handle retry required`),!1}}async release(){await We(this.scope,this.dbPath,this.lane)}},Ie=class extends Error{codeName=`E_LEASE_UNAVAILABLE`;constructor(e,t,n){super(`E_LEASE_UNAVAILABLE: could not acquire ${e}/${t} writer lease (mode=require): ${n}`),this.name=`LeaseUnavailableError`}},Le=class extends Error{codeName=`E_WRITER_LEASE_REQUIRED`;constructor(e,t){super(`E_WRITER_LEASE_REQUIRED: cannot open the ${e}/${t} writer handle without a held writer lease (AC4) — wrap the write in withWriterLease/acquireWriterLease, or set CLEO_WRITER_LEASE_MODE=off to bypass.`),this.name=`WriterLeaseRequiredError`}};function Re(e,t,n){let r=n?Oe(n):De(e),i=R.get(B(e,r,t));return i!==void 0&&i.refcount>0}function ze(e,t,n){if(I()!==`off`&&!Re(e,t,n))throw new Le(e,t)}function Be(e,t,n,r,i){let a=Date.now();e.exec(`BEGIN IMMEDIATE TRANSACTION`);try{let o=e.prepare(`SELECT id, holder_id, holder_pid, epoch, heartbeat_at, ttl_ms, reentrancy_depth FROM ${j} WHERE scope = ? AND lane = ? AND active = 1`).get(t,n);if(o===void 0){let o=e.prepare(`SELECT COALESCE(MAX(epoch), 0) + 1 AS e FROM _writer_leases WHERE scope = ? AND lane = ?`).get(t,n)?.e??1;return e.prepare(`INSERT INTO ${j} (scope, lane, holder_id, holder_pid, epoch, acquired_at, heartbeat_at, ttl_ms, reentrancy_depth, active) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 1, 1)`).run(t,n,r,process.pid,o,a,a,i),e.exec(`COMMIT`),o}if(o.holder_id===r)return e.prepare(`UPDATE ${j} SET reentrancy_depth = reentrancy_depth + 1, heartbeat_at = ? WHERE id = ?`).run(a,o.id),e.exec(`COMMIT`),o.epoch;if(a-o.heartbeat_at>o.ttl_ms&&!Ne(o.holder_pid)){let t=o.epoch+1;return e.prepare(`UPDATE ${j} SET holder_id = ?, holder_pid = ?, epoch = ?, acquired_at = ?, heartbeat_at = ?, ttl_ms = ?, reentrancy_depth = 1 WHERE id = ? AND epoch = ?`).run(r,process.pid,t,a,a,i,o.id,o.epoch),e.exec(`COMMIT`),t}return e.exec(`ROLLBACK`),null}catch(t){try{e.exec(`ROLLBACK`)}catch{}throw t}}function Ve(e,t,n,r,i,a){let o=Date.now();e.prepare(`SELECT ticket FROM _writer_queue WHERE scope = ? AND lane = ? AND holder_id = ?`).get(t,n,r)||e.prepare(`INSERT INTO ${M} (scope, lane, holder_id, priority, enqueued_at, deadline_at) VALUES (?, ?, ?, ?, ?, ?)`).run(t,n,r,i,o,o+a)}function H(e,t,n,r){e.prepare(`DELETE FROM ${M} WHERE scope = ? AND lane = ? AND holder_id = ?`).run(t,n,r)}async function He(e,t,n){let r=I(),i=n?.reentrant??!0;if(r===`off`)return Ge(e,t);let a=n?.dbPath?Oe(n.dbPath):De(e),o=B(e,a,t);if(i){let n=R.get(o);if(n){n.refcount+=1;try{let{native:r}=await L(e,a);r.prepare(`UPDATE ${j} SET reentrancy_depth = reentrancy_depth + 1 WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(e,t,n.handle.holderId,n.handle.epoch)}catch(e){throw--n.refcount,e}return n.handle}let r=z.get(o);if(r){let n=await r,i=R.get(o);if(i&&i.handle===n){i.refcount+=1;try{let{native:n}=await L(e,a);n.prepare(`UPDATE ${j} SET reentrancy_depth = reentrancy_depth + 1 WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(e,t,i.handle.holderId,i.handle.epoch)}catch(e){throw--i.refcount,e}return i.handle}}}let s=Ue(e,a,t,r,o,n);i&&z.set(o,s);try{return await s}finally{i&&z.get(o)===s&&z.delete(o)}}async function Ue(e,t,n,r,i,a){let{native:o}=await L(e,t);xe(o);let s=Pe(n),c=a?.ttlMs??3e4,l=a?.priority??Se,u=Math.min(Ce,Math.max(1,c)),d=Date.now()+u,f=!1;for(;;){let a=Be(o,e,n,s,c);if(a!==null){f&&H(o,e,n,s);let r=new Fe({scope:e,lane:n,epoch:a,holderId:s,dbPath:t,nativeDb:o,ttlMs:c});return R.set(i,{handle:r,refcount:1}),r}if(f||=(Ve(o,e,n,s,l,c),!0),Date.now()>=d){if(f&&H(o,e,n,s),r===`require`)throw new Ie(e,n,`live holder did not release within deadline`);let i=o.prepare(`SELECT holder_id, holder_pid, epoch, heartbeat_at, ttl_ms FROM ${j} WHERE scope = ? AND lane = ? AND active = 1`).get(e,n);return P().warn({scope:e,lane:n,dbPath:t,activeHolderId:i?.holder_id,activeHolderPid:i?.holder_pid,activeEpoch:i?.epoch,activeHeartbeatAgeMs:i===void 0?void 0:Math.max(0,Date.now()-i.heartbeat_at)},`writer-lease acquire deadline exceeded; proceeding under busy_timeout fallback (degraded)`),Ge(e,n)}await Me(we)}}async function We(e,t,n){let r=B(e,t,n),i=R.get(r);if(i){if(--i.refcount,i.refcount>0){let{native:r}=await L(e,t);r.prepare(`UPDATE ${j} SET reentrancy_depth = reentrancy_depth - 1 WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(e,n,i.handle.holderId,i.handle.epoch);return}if(R.delete(r),!i.handle.releaseRow())try{let{native:n}=await L(e,t);i.handle.releaseRow(n)}catch(r){P().debug({scope:e,lane:n,dbPath:t,err:r instanceof Error?r.message:r},`writer-lease fresh-handle release retry failed; row will expire by TTL`)}}}function Ge(e,t){return{scope:e,lane:t,epoch:0,async release(){},heartbeat(){}}}async function U(e,t,n,r){let i=await He(e,t,r);try{return await n(i)}finally{await i.release()}}var Ke=[`CREATE TABLE IF NOT EXISTS "__drizzle_migrations" (
23
- id INTEGER PRIMARY KEY,
24
- hash text NOT NULL,
25
- created_at numeric,
26
- name text,
27
- applied_at TEXT
28
- )`,`CREATE TABLE IF NOT EXISTS ${j} (
29
- id INTEGER PRIMARY KEY,
30
- scope TEXT NOT NULL,
31
- lane TEXT NOT NULL,
32
- holder_id TEXT NOT NULL,
33
- holder_pid INTEGER NOT NULL,
34
- epoch INTEGER NOT NULL,
35
- acquired_at INTEGER NOT NULL,
36
- heartbeat_at INTEGER NOT NULL,
37
- ttl_ms INTEGER NOT NULL,
38
- reentrancy_depth INTEGER NOT NULL DEFAULT 1,
39
- active INTEGER NOT NULL DEFAULT 1
40
- )`,`CREATE UNIQUE INDEX IF NOT EXISTS ${be} ON ${j} (scope, lane) WHERE active = 1`,`CREATE TABLE IF NOT EXISTS ${M} (
41
- ticket INTEGER PRIMARY KEY AUTOINCREMENT,
42
- scope TEXT NOT NULL,
43
- lane TEXT NOT NULL,
44
- holder_id TEXT NOT NULL,
45
- priority INTEGER NOT NULL DEFAULT 100,
46
- enqueued_at INTEGER NOT NULL,
47
- deadline_at INTEGER NOT NULL
48
- )`,`CREATE INDEX IF NOT EXISTS ix_writer_queue_order ON ${M} (scope, lane, priority ASC, ticket ASC)`];function qe(e){for(let t of Ke)e.exec(t)}async function Je(e,t,n,r){let i=I();if(i===`off`)return n();qe(t),xe(t);let a=`tasks`,o=Pe(a),s=r?.ttlMs??6e4,c=r?.priority??0,l=Math.min(Ce,Math.max(1,s)),u=Date.now()+l,d=!1,f=null;for(;;){if(f=Be(t,e,a,o,s),f!==null){d&&H(t,e,a,o);break}if(d||=(Ve(t,e,a,o,c,s),!0),Date.now()>=u){if(d&&H(t,e,a,o),i===`require`)throw new Ie(e,a,`cold-open: live holder did not release within deadline`);return P().warn({scope:e},`cold-open writer-lease acquire deadline exceeded; proceeding under busy_timeout fallback (degraded)`),n()}await Me(we)}try{return await n()}finally{t.prepare(`UPDATE ${j} SET active = 0, reentrancy_depth = 0 WHERE scope = ? AND lane = ? AND holder_id = ? AND epoch = ? AND active = 1`).run(e,a,o,f)}}t();var W=class extends Error{codeName=`E_EXODUS_ABORT_WRITE_UNSAFE`;detail;fix;constructor(e){super(`Refusing to write to consolidated ${e.scope} cleo.db — exodus-on-open ABORTED (${e.reason}). The DB is empty; legacy data is the source of truth. Run \`cleo doctor exodus-health\` then \`cleo exodus migrate\` (or restore via \`cleo doctor repair --role ${e.scope===`project`?`tasks`:`nexus`}\`) before writing.`),this.name=`ExodusAbortWriteUnsafeError`,this.detail=e,this.fix="Resolve the aborted migration (`cleo doctor exodus-health` → `cleo exodus migrate`) so the consolidated cleo.db carries your data before mutating it."}};function Ye(e){if(e.exodusAbort)throw new W(e.exodusAbort)}function Xe(){let e=s();if(e)throw new W(e)}var G=new Map;function K(e,t){return`${e}::${t}`}function q(e,t){return e===`project`?(0,b.join)(a(t),`cleo.db`):(0,b.join)(i(),`cleo.db`)}function J(e){return e===`project`?`drizzle-cleo-project`:`drizzle-cleo-global`}var Ze=(0,b.createRequire)(import.meta.url),Y=null;function Qe(){return Y===null&&(Y=Ze(`drizzle-orm/node-sqlite`).drizzle),Y}var X=null;function $e(){return X===null&&(X=Ze(`node:sqlite`).DatabaseSync),X}function Z(e){return e===`project`?`tasks_tasks`:`nexus_project_registry`}function et(){return{}.CLEO_SENTIENT_DAEMON===`1`||{}.CLEO_DB_FULL_MEM===`1`?{}:{mmapSizeBytes:0,cacheSizeKb:8e3}}async function Q(e,t){let n=q(e,t);return $(e===`project`?`project`:`global`,n,t)}async function tt(e,t,n){n.debug({scope:e,dbPath:t},`opening DEDICATED (non-cached) dual-scope cleo.db (T11782 FIX D)`);let r=(0,b.dirname)(t);(0,b.existsSync)(r)||(0,b.mkdirSync)(r,{recursive:!0});let i=new($e())(t,{allowExtension:!0});try{m(i,et());let r=Qe()({client:i}),a=A(J(e));return await Je(e,i,async()=>{D(i,a,Z(e),`dual-scope-db[${e}]`,k(J(e))),O(r,a,i,Z(e),`dual-scope-db[${e}]`),n.debug({scope:e,dbPath:t},`DEDICATED dual-scope cleo.db ready (T11782 FIX D)`);let o=ke(e,t);return Ae(r,o),{db:r,scope:e,dbPath:t,identity:o,get isOpen(){return i.isOpen},close(){try{i.close()}catch{}}}})}catch(e){try{i.close()}catch{}throw e}}async function $(e,t,r,i){let a=i?.dedicated===!0,s=(0,b.resolve)(t),c=K(e,s);if(!a){let e=G.get(c);if(e){if(e.initPromise)return e.initPromise;if(e.handle&&e.nativeDb?.isOpen)return e.handle;G.delete(c)}}let l=o(`dual-scope-db`);if(a)return tt(e,s,l);let u=null,d=null,f=new Promise((e,t)=>{u=e,d=t});return G.set(c,{handle:null,nativeDb:null,initPromise:f}),f.catch(()=>{let e=G.get(c);e&&e.initPromise===f&&G.delete(c)}),(async()=>{try{l.debug({scope:e,dbPath:s},`opening dual-scope cleo.db`);let t=(0,b.dirname)(s);(0,b.existsSync)(t)||(0,b.mkdirSync)(t,{recursive:!0});let i=new($e())(s,{allowExtension:!0});m(i,et());let a=Qe()({client:i}),o=A(J(e)),d=await Je(e,i,async()=>{D(i,o,Z(e),`dual-scope-db[${e}]`,k(J(e))),O(a,o,i,Z(e),`dual-scope-db[${e}]`),l.debug({scope:e,dbPath:s},`dual-scope cleo.db ready`);let t=ke(e,s);Ae(a,t);let n={db:a,scope:e,dbPath:s,identity:t,get isOpen(){return i.isOpen},close(){G.get(c)?.handle===n&&G.delete(c);try{i.close()}catch{}}},r=G.get(c);return r&&(r.initPromise=null,r.handle=n,r.nativeDb=i),n});if(r!==void 0&&s===q(e,r)){let t=null,a=!1;try{let{governor:e}=await n(async()=>{let{governor:e}=await import(`./DOVNXmCK2.js`);return{governor:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),r=await e.tryAcquire(`db-heavy`);r.deferred?a=!0:t=r.release}catch{}if(a)l.debug({scope:e,dbPath:s},`exodus-on-open skipped this open — db-heavy deferred under memory pressure (re-runs idempotently on a calmer open)`);else try{let{maybeRunExodusOnOpen:t}=await n(async()=>{let{maybeRunExodusOnOpen:e}=await import(`./C_IZx3682.js`);return{maybeRunExodusOnOpen:e}},__vite__mapDeps([14,2,11,6,4,15,10,3,7,8,9,12,16,17,18,5,19]),import.meta.url),a=await t(e,s,i,r);if(a.outcome===`migrated`||a.outcome===`aborted`){let t=e===`project`?await $(`project`,s):await $(`global`,s);if(a.outcome===`aborted`){let r={scope:e,dbPath:s,reason:a.reason,at:Date.now()};l.warn({scope:e,reason:a.reason},`exodus-on-open aborted; consolidated cleo.db left empty, legacy kept as source — mutating callers must check handle.exodusAbort / call assertWriteDurable (T11828)`);let{emitExodusAbort:i}=await n(async()=>{let{emitExodusAbort:e}=await import(`./n6M_5LoW.js`);return{emitExodusAbort:e}},__vite__mapDeps([20,21,2,4]),import.meta.url);i(r),d={...t,exodusAbort:r}}else{let{clearExodusAborts:r}=await n(async()=>{let{clearExodusAborts:e}=await import(`./n6M_5LoW.js`);return{clearExodusAborts:e}},__vite__mapDeps([20,21,2,4]),import.meta.url);r(e),d=t}}}catch(t){l.warn({err:t,scope:e},`exodus-on-open hook failed (non-fatal); re-opening consolidated handle`),d=e===`project`?await $(`project`,s):await $(`global`,s)}finally{t&&await t().catch(()=>{})}}u(d)}catch(e){d(e)}})(),f}function nt(e){for(let[t,n]of G)if(!(e!==void 0&&n.handle?.scope!==e)){if(n.handle)try{n.handle.close()}catch{}G.delete(t)}}var rt=class extends Error{constructor(e,t){super(`CleoRuntime entry cancelled during initialization: ${e}::${t}`),this.name=`EntryCancelledError`}},it=class extends Error{constructor(e,t){super(`CleoRuntime liveness exhausted after bounded reacquisition: ${e}::${t}`),this.name=`LivenessExhaustedError`}},at=class{_registry=new Map;_nextId=0;openDualScopeFn=$;get openPaths(){return new Set(this._registry.keys())}async openProject(e,t){let n=(0,b.resolve)(e);if(t?.dedicated){let e=await $(`project`,n,t?.exodusCwd,{dedicated:!0});return this.buildStore(`project`,e,0)}return this.openEntry(`project`,n,0,t?.exodusCwd)}async openGlobal(e){let t=(0,b.resolve)(q(`global`));if(e?.dedicated){let n=await $(`global`,t,e?.exodusCwd,{dedicated:!0});return this.buildStore(`global`,n,0)}return this.openEntry(`global`,t,0,e?.exodusCwd)}async openGlobalAt(e,t){let n=(0,b.resolve)(e);if(t?.dedicated){let e=await $(`global`,n,t?.exodusCwd,{dedicated:!0});return this.buildStore(`global`,e,0)}return this.openEntry(`global`,n,0,t?.exodusCwd)}closeProject(e){let t=(0,b.resolve)(e);this.closeEntry(`project`,t)}closeAll(){for(let e of[...this._registry.keys()])try{this.closeEntryByKey(e)}catch{}}async openEntry(e,t,n=0,r){let i=K(e,t),a=this._registry.get(i);if(a){if(a.initPromise)return a.initPromise;if(a.store?.isOpen)return a.store;this._registry.delete(i)}let o=++this._nextId,s,c,l=new Promise((e,t)=>{s=e,c=t});this._registry.set(i,{id:o,store:null,initPromise:l}),l.catch(()=>{this._registry.get(i)?.initPromise===l&&this._registry.delete(i)});try{let a=e===`project`?await this.openDualScopeFn(`project`,t,r):await this.openDualScopeFn(`global`,t,r),c=this._registry.get(i);if(!c||c.id!==o)throw new rt(e,t);if(!a.isOpen){if(a.close(),this._registry.delete(i),n>=1)throw new it(e,t);let o=await this.openEntry(e,t,n+1,r);return s(o),o}let l=this.buildStore(e,a,o);return c.store=l,c.initPromise=null,s(l),l}catch(e){throw c(e),e}}buildStore(e,t,n){let r=t.dbPath,i=t.identity,a=t.exodusAbort,o=K(e,r);return e===`project`?{scope:`project`,dbPath:r,identity:i,db:t.db,get isOpen(){return t.isOpen},exodusAbort:a,close:()=>{t.close(),this.cleanupEntry(o,n)}}:{scope:`global`,dbPath:r,identity:i,db:t.db,get isOpen(){return t.isOpen},exodusAbort:a,close:()=>{t.close(),this.cleanupEntry(o,n)}}}cleanupEntry(e,t){let n=this._registry.get(e);n&&n.id===t&&this._registry.delete(e)}closeEntry(e,t){this.closeEntryByKey(K(e,t))}closeEntryByKey(e){let t=this._registry.get(e);if(t&&(this._registry.delete(e),t.store))try{t.store.close()}catch{}}};function ot(e,t){e.openDualScopeFn=t??$}function st(){return new at}async function ct(e,t,n,r){Xe();let i=je(e);return U(i.scope,`tasks`,async()=>(await e.insert(t).values(n).onConflictDoNothing().returning()).length,{dbPath:i.dbPath})}async function lt(e,t,n,r,i,a){Xe();let o=je(e);return U(o.scope,`tasks`,async()=>{let r=a??n;return(await e.insert(t).values(n).onConflictDoUpdate({target:i,set:r}).returning()).length},{dbPath:o.dbPath})}export{T as C,D as S,v as T,oe as _,ct as a,O as b,q as c,He as d,ze as f,A as g,k as h,st as i,ot as l,U as m,nt as n,Q as o,Ee as p,Ye as r,$ as s,W as t,lt as u,_e as v,_ as w,ue as x,ge as y};
@@ -1 +0,0 @@
1
- import{O as e,w as t,x as n}from"./CNToUR3P.js";import{n as r,r as i,t as a}from"./imLk4if5.js";import{C as o,E as s,S as c,_ as l,n as u,u as d,v as f,w as p,x as m,y as h}from"./DHQfJeLU.js";import{n as g,r as _,t as v}from"./B2F3KUIU.js";function y(e,t,n){if(n?.source){let e=n.source;if(typeof t==`number`&&(t>2**53-1||t<-(2**53-1)||e!==String(t)))return e.includes(`.`)?new d(e,`bigDecimal`):BigInt(e)}return t}var b=(t,n)=>e(t,n).then(e=>(n?.utf8Encoder??o)(e)),x=(e,t)=>b(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}return{}}),S=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),C=(e,t=!0)=>{let n=e;return typeof n==`number`&&(n=n.toString()),n.indexOf(`,`)>=0&&(n=n.split(`,`)[0]),n.indexOf(`:`)>=0&&(n=n.split(`:`)[0]),t&&n.indexOf(`#`)>=0&&(n=n.split(`#`)[1]),n},w=(e,t)=>T(e,t,!0,[`header`,`code`,`type`]),T=({headers:e},t,n,r)=>{for(;r.length>0;)switch(r.shift()){case`header`:let r=S(e??{},`x-amzn-errortype`);if(r!==void 0)return C(e[r],n);break;case`code`:let i=S(t??{},`code`);if(i&&t[i]!==void 0)return C(t[i],n);break;case`type`:if(t?.__type!==void 0)return C(t.__type,n);break}},E=class extends r{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,y):await x(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,r){let i=typeof r==`object`&&!!r,o=n.of(e);if(i){if(o.isStructSchema()){let e=r,t=o.isUnionSchema(),n={},i,{jsonName:s}=this.settings;s&&(i={});let c;t&&(c=new a(e,n));for(let[r,a]of o.structIterator()){let o=r;s&&(o=a.getMergedTraits().jsonName??o,i[o]=r),t&&c.mark(o),e[o]!=null&&(n[r]=this._read(a,e[o]))}if(t)c.writeUnknown();else if(typeof e.__type==`string`)for(let t in e){let r=e[t],a=s?i[t]??t:t;a in n||(n[a]=r)}return n}if(Array.isArray(r)&&o.isListSchema()){let e=o.getValueSchema(),t=[];for(let n of r)t.push(this._read(e,n));return t}if(o.isMapSchema()){let e=o.getValueSchema(),t={};for(let n in r)t[n]=this._read(e,r[n]);return t}}if(o.isBlobSchema()&&typeof r==`string`)return s(r);let u=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof r==`string`&&u)return u===`application/json`||u.endsWith(`+json`)?l.from(r):r;if(o.isTimestampSchema()&&r!=null)switch(t(o,this.settings)){case 5:return m(r);case 6:return c(r);case 7:return h(r);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,r),new Date(r)}if(o.isBigIntegerSchema()&&(typeof r==`number`||typeof r==`string`))return BigInt(r);if(o.isBigDecimalSchema()&&r!=null){if(r instanceof d)return r;let e=r;return e.type===`bigDecimal`&&`string`in e?new d(e.string,e.type):new d(String(r),`bigDecimal`)}if(o.isNumericSchema()&&typeof r==`string`){switch(r){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return r}if(o.isDocumentSchema())if(i){let e=Array.isArray(r)?[]:{};for(let t in r){let n=r[t];n instanceof d?e[t]=n:e[t]=this._read(o,n)}return e}else return structuredClone(r);return r}},D=`Ν`,O=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(e,t)=>{if(t instanceof d){let e=`${D+`nv`+ this.counter++}_`+t.string;return this.values.set(`"${e}"`,t.string),e}if(typeof t==`bigint`){let e=t.toString(),n=`${D+`b`+ this.counter++}_`+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},k=class extends r{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=n.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new O;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),typeof this.buffer==`object`&&(this.buffer.__type=n.of(e).getName(!0))}_write(e,r,i){let a=typeof r==`object`&&!!r,o=n.of(e);if(a){if(o.isStructSchema()){let e=r,t={},{jsonName:n}=this.settings,i;n&&(i={});let a=0;for(let[r,s]of o.structIterator()){let c=this._write(s,e[r],o);if(c!==void 0){let e=r;n&&(e=s.getMergedTraits().jsonName??r,i[r]=e),t[e]=c,a++}}if(o.isUnionSchema()&&a===0){let{$unknown:n}=e;if(Array.isArray(n)){let[e,r]=n;t[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let r in e){let a=e[r],o=n?i[r]??r:r;o in t||(t[o]=this._write(15,a))}return t}if(Array.isArray(r)&&o.isListSchema()){let e=o.getValueSchema(),t=[],n=!!o.getMergedTraits().sparse;for(let i of r)(n||i!=null)&&t.push(this._write(e,i));return t}if(o.isMapSchema()){let e=o.getValueSchema(),t={},n=!!o.getMergedTraits().sparse;for(let i in r){let a=r[i];(n||a!=null)&&(t[i]=this._write(e,a))}return t}if(r instanceof Uint8Array&&(o.isBlobSchema()||o.isDocumentSchema()))return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??p)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(t(o,this.settings)){case 5:return r.toISOString().replace(`.000Z`,`Z`);case 6:return f(r);case 7:return r.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,r),r.getTime()/1e3}r instanceof d&&(this.useReplacer=!0)}if(!(r===null&&i?.isStructSchema())){if(o.isStringSchema()){if(r===void 0&&o.isIdempotencyToken())return u();let e=o.getMergedTraits().mediaType;return r!=null&&e&&(e===`application/json`||e.endsWith(`+json`))?l.from(r):r}if(typeof r==`number`&&o.isNumericSchema())return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r==`string`&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??p)(r);if(typeof r==`bigint`&&(this.useReplacer=!0),o.isDocumentSchema())if(a){let e=Array.isArray(r)?[]:{};for(let t in r){let n=r[t];n instanceof d?(this.useReplacer=!0,e[t]=n):e[t]=this._write(o,n)}return e}else return structuredClone(r);return r}}},A=class extends r{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new k(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new E(this.settings);return e.setSerdeContext(this.serdeContext),e}},j=class extends _{serializer;deserializer;codec;mixin=new i;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});let n={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new A(n),this.serializer=new v(this.codec.createSerializer(),n),this.deserializer=new g(this.codec.createDeserializer(),n)}getShapeId(){return`aws.protocols#restJson1`}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,t,r){let i=await super.serializeRequest(e,t,r),a=n.of(e.input);if(!i.headers[`content-type`]){let e=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);e&&(i.headers[`content-type`]=e)}return i.body==null&&i.headers[`content-type`]===this.getDefaultContentType()&&(i.body=`{}`),i}async deserializeResponse(e,t,r){let i=await super.deserializeResponse(e,t,r),a=n.of(e.output);for(let[e,t]of a.structIterator())t.getMemberTraits().httpPayload&&!(e in i)&&(i[e]=null);return i}async handleError(e,t,r,i,a){let o=w(r,i)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);let{errorSchema:s,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,r,i,a),l=n.of(s),u=i.message??i.Message??`UnknownError`,d=new((this.compositeErrorRegistry.getErrorCtor(s))??Error)({});await this.deserializeHttpMessage(s,t,r,i);let f={},p=this.codec.createDeserializer();for(let[e,t]of l.structIterator()){let n=t.getMergedTraits().jsonName??e;f[e]=p.readObject(t,i[n])}throw this.mixin.decorateServiceException(Object.assign(d,c,{$fault:l.getMergedTraits().error,message:u},f),i)}getDefaultContentType(){return`application/json`}};export{j as t};
@@ -1,4 +0,0 @@
1
- import{s as e}from"./DrKWWDpL.js";import{t}from"./DYP3EJMY.js";var n=e(t(),1);function r(e){let t=/avg10=([\d.]+)/.exec(e),n=/avg60=([\d.]+)/.exec(e),r=/avg300=([\d.]+)/.exec(e),i=/total=(\d+)/.exec(e);return!t?.[1]||!n?.[1]||!r?.[1]||!i?.[1]?null:{avg10:parseFloat(t[1]),avg60:parseFloat(n[1]),avg300:parseFloat(r[1]),totalUs:parseInt(i[1],10)}}function i(e){let t=e.split(`
2
- `).map(e=>e.trim()).filter(Boolean),n=null,i=null;for(let e of t)e.startsWith(`some `)?n=r(e):e.startsWith(`full `)&&(i=r(e));return n?{some:n,full:i}:null}function a(e){for(let t of e.split(`
3
- `))if(t.startsWith(`MemAvailable:`)){let e=/MemAvailable:\s+(\d+)\s+kB/.exec(t);if(e?.[1])return parseInt(e[1],10)*1024}return null}function o(e){let t=null,n=null;for(let r of e.split(`
4
- `))if(r.startsWith(`Rss:`)){let e=/Rss:\s+(\d+)\s+kB/.exec(r);e?.[1]&&(t=parseInt(e[1],10))}else if(r.startsWith(`Pss:`)){let e=/Pss:\s+(\d+)\s+kB/.exec(r);e?.[1]&&(n=parseInt(e[1],10))}return t===null||n===null?null:{rssBytes:t*1024,pssBytes:n*1024}}var s=(e,t)=>(0,n.readFile)(e,t),c=async e=>{try{return{size:(await(0,n.stat)(e)).size}}catch{return null}},l=class{globalPressurePath;cgroupSlicePressurePath;walPaths;readFileFn;statFileFn;constructor(e={}){this.globalPressurePath=e.globalPressurePath??`/proc/pressure/memory`,this.cgroupSlicePressurePath=e.cgroupSlicePressurePath??null,this.walPaths=e.walPaths??[],this.readFileFn=e.readFileFn??s,this.statFileFn=e.statFileFn??c}async sample(){let e=Date.now(),t=await this._readPsi(this.globalPressurePath),n=t!==null,r=null;this.cgroupSlicePressurePath&&(r=await this._readPsi(this.cgroupSlicePressurePath));let i=await this._readMemAvailable(),a=await this._readWalObservations();return{sampledAtMs:e,pressureAvailable:n,memAvailableBytes:i,globalPressure:t,slicePressure:r,walObservations:a}}async sweepChildRss(e){let t=Date.now(),n=[];for(let t of e)try{let e=o(await this.readFileFn(`/proc/${t}/smaps_rollup`,`utf-8`));e&&n.push({pid:t,...e})}catch{}return{sampledAtMs:t,entries:n}}async _readPsi(e){try{return i(await this.readFileFn(e,`utf-8`))}catch{return null}}async _readMemAvailable(){try{return a(await this.readFileFn(`/proc/meminfo`,`utf-8`))}catch{return null}}async _readWalObservations(){let e=[];for(let t of this.walPaths){let n=await this.statFileFn(t);e.push({walPath:t,sizeBytes:n?.size??null})}return e}},u={holdSomeAvg10:10,backoffSomeAvg10:20,holdFullAvg10:5,backoffFullAvg10:10,hysteresisPoints:3,headroomBytes:256*1024*1024,walWarnThresholdBytes:256*1024*1024,pollIntervalMs:1500};function d(e){return{holdSomeAvg10:e.psi?.holdSomeAvg10??u.holdSomeAvg10,backoffSomeAvg10:e.psi?.backoffSomeAvg10??u.backoffSomeAvg10,holdFullAvg10:e.psi?.holdFullAvg10??u.holdFullAvg10,backoffFullAvg10:e.psi?.backoffFullAvg10??u.backoffFullAvg10,hysteresisPoints:e.hysteresisPoints??u.hysteresisPoints,headroomBytes:e.headroomBytes??u.headroomBytes,walWarnThresholdBytes:e.walWarnThresholdBytes??u.walWarnThresholdBytes,pollIntervalMs:e.pollIntervalMs??u.pollIntervalMs}}function f(e,t,n){if(!e.pressureAvailable)return e.memAvailableBytes!==null&&e.memAvailableBytes<t.headroomBytes?{state:`hold`,reason:`degraded: memAvailable below headroom`}:{state:`ok`,reason:`degraded: PSI unavailable, memAvailable sufficient`};let r=e.globalPressure?.some??e.slicePressure?.some,i=e.globalPressure?.full??e.slicePressure?.full,a=r?.avg10??0,o=i?.avg10??0;if(a>t.backoffSomeAvg10||o>t.backoffFullAvg10)return{state:`backoff`,reason:`some avg10=${a.toFixed(2)} full avg10=${o.toFixed(2)} — above backoff threshold`};if(a>t.holdSomeAvg10||o>t.holdFullAvg10)return{state:`hold`,reason:`some avg10=${a.toFixed(2)} full avg10=${o.toFixed(2)} — above hold threshold`};if(n!==`ok`){let e=t.holdSomeAvg10-t.hysteresisPoints,r=t.holdFullAvg10-t.hysteresisPoints;if(a>e||o>r)return{state:n===`backoff`?`hold`:n,reason:`some avg10=${a.toFixed(2)} full avg10=${o.toFixed(2)} — hysteresis hold (floor: some ${e}, full ${r})`}}return{state:`ok`,reason:`some avg10=${a.toFixed(2)} full avg10=${o.toFixed(2)} — below thresholds`}}var p=class extends n.EventEmitter{thresholds;backend;_state=`ok`;_timer=null;_running=!1;constructor(e={}){super(),this.thresholds=d(e),this.backend=e.backend??new l}get state(){return this._state}get running(){return this._running}async sample(){return this.backend.sample()}startContinuous(){return this._running?()=>this._stopLoop():(this._running=!0,this._scheduleNext(),()=>this._stopLoop())}stop(){this._stopLoop()}_scheduleNext(){this._timer=setTimeout(()=>{this._tick()},this.thresholds.pollIntervalMs),typeof this._timer.unref==`function`&&this._timer.unref()}async _tick(){if(this._running){try{let e=await this.backend.sample();this.emit(`sample`,e);let{state:t,reason:n}=f(e,this.thresholds,this._state);if(t!==this._state){let r={from:this._state,to:t,sample:e,reason:n};this._state=t,this.emit(`transition`,r)}}catch(e){this.emit(`error`,e instanceof Error?e:Error(String(e)))}this._running&&this._scheduleNext()}}_stopLoop(){this._running=!1,this._timer!==null&&(clearTimeout(this._timer),this._timer=null)}};export{p as t};