eser 4.1.26 → 4.1.29

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 (292) hide show
  1. package/README.md +1 -1
  2. package/chunks/add-O35CHPAB.js +8 -0
  3. package/chunks/anthropic-2MXDKLNX.js +2 -0
  4. package/chunks/approve-XMPDDDZD.js +2 -0
  5. package/chunks/{ask-TFJCKH5G.js → ask-BZIPZT7O.js} +2 -1
  6. package/chunks/block-C2GOOMFH.js +2 -0
  7. package/chunks/{browser-XCMD2IZQ.js → browser-JNDQ24XT.js} +2 -1
  8. package/chunks/{build-2W7YVR7J.js → build-LADMCGZD.js} +3 -2
  9. package/chunks/{bun-YFFBDKUJ.js → bun-ZPIZVC7D.js} +2 -1
  10. package/chunks/changelog-gen-KMNP2KO4.js +10 -0
  11. package/chunks/{chunk-WUJUQPHI.js → chunk-2BOCLC67.js} +2 -1
  12. package/chunks/chunk-2SEPWXDK.js +2 -0
  13. package/chunks/{chunk-6U2VEZEM.js → chunk-2VEVVX6U.js} +2 -1
  14. package/chunks/{chunk-NUSNMQPL.js → chunk-3BEX5FYF.js} +2 -1
  15. package/chunks/chunk-3HC6RWFJ.js +2 -0
  16. package/chunks/chunk-3SXTMY75.js +2 -0
  17. package/chunks/{chunk-34GCQZ3Z.js → chunk-3XJLLDR5.js} +1 -0
  18. package/chunks/{chunk-NTPOK5H6.js → chunk-4MELQSFH.js} +2 -1
  19. package/chunks/{chunk-UKYKMDYU.js → chunk-4NEBMHCP.js} +2 -1
  20. package/chunks/{chunk-U47ABJCC.js → chunk-536RBSFU.js} +2 -1
  21. package/chunks/{chunk-DWYVBWBP.js → chunk-5BHHLJJN.js} +2 -1
  22. package/chunks/{chunk-SBOTNOWZ.js → chunk-5YVKJFG6.js} +2 -1
  23. package/chunks/{chunk-CPRLAMEG.js → chunk-6HGMAVFR.js} +2 -1
  24. package/chunks/chunk-6LVNPRHQ.js +4 -0
  25. package/chunks/{chunk-ANY26ROY.js → chunk-6XW64HCG.js} +2 -1
  26. package/chunks/{chunk-GLSCZGXA.js → chunk-7ATUODBM.js} +2 -1
  27. package/chunks/{chunk-USCAYIWL.js → chunk-7DPLGQHN.js} +1 -0
  28. package/chunks/{chunk-CKD2KOHA.js → chunk-7FMX4QXF.js} +2 -1
  29. package/chunks/chunk-7ZVGNL76.js +4 -0
  30. package/chunks/chunk-7ZYDAZBD.js +1 -0
  31. package/chunks/chunk-A3MBTPHJ.js +2 -0
  32. package/chunks/{chunk-DQAEQEXD.js → chunk-A6RDYP6R.js} +2 -1
  33. package/chunks/{chunk-QIODVVTY.js → chunk-AN5JOFHD.js} +2 -1
  34. package/chunks/{chunk-ZE5T64HQ.js → chunk-AP72BKVG.js} +1 -0
  35. package/chunks/{chunk-GETSWLMF.js → chunk-B5IPHVXT.js} +3 -2
  36. package/chunks/{chunk-5MN3MWQN.js → chunk-BNQAZLIQ.js} +1 -0
  37. package/chunks/{chunk-KAEAT6A4.js → chunk-C2FHTZ2Y.js} +2 -1
  38. package/chunks/{chunk-T7K64JD5.js → chunk-CDPSH56U.js} +1 -0
  39. package/chunks/{chunk-BDTJR6UH.js → chunk-CFTANV4S.js} +2 -1
  40. package/chunks/chunk-CLXOJOH3.js +2 -0
  41. package/chunks/{chunk-4VL2RZIN.js → chunk-COJNSVOS.js} +2 -1
  42. package/chunks/{chunk-GVSBZ6JV.js → chunk-CS3FL7HI.js} +2 -1
  43. package/chunks/{chunk-AK3OJD4W.js → chunk-DAK2I7UC.js} +2 -1
  44. package/chunks/{chunk-3K42AALS.js → chunk-DPL7GREV.js} +2 -1
  45. package/chunks/{chunk-ACQUINWH.js → chunk-DTO2YJWZ.js} +1 -0
  46. package/chunks/chunk-EETBL6X2.js +2 -0
  47. package/chunks/{chunk-ETMOOGY2.js → chunk-EJ4XBQTD.js} +2 -1
  48. package/chunks/chunk-EZE3F4PG.js +2 -0
  49. package/chunks/{chunk-5RK3346P.js → chunk-FXBDWBXT.js} +2 -1
  50. package/chunks/{chunk-VVHXAOEH.js → chunk-G35GBI4M.js} +2 -1
  51. package/chunks/{chunk-DXB73IDG.js → chunk-G6NAG2EK.js} +1 -0
  52. package/chunks/{chunk-6FMPNAZ3.js → chunk-GE3LJ6QM.js} +2 -1
  53. package/chunks/{chunk-G34MS4XJ.js → chunk-GITZBQ2Z.js} +2 -1
  54. package/chunks/{chunk-Y6DZEK4W.js → chunk-GTHXGAMQ.js} +1 -0
  55. package/chunks/{chunk-3OEM65F2.js → chunk-H7XLUEAU.js} +3 -2
  56. package/chunks/chunk-HFFIXVAB.js +13 -0
  57. package/chunks/{chunk-NLNSK3KE.js → chunk-HYFBCDIO.js} +2 -1
  58. package/chunks/{chunk-TUTRX7VR.js → chunk-IAZ2MM3P.js} +2 -1
  59. package/chunks/{chunk-XMCQMTAA.js → chunk-IKYBNRCS.js} +2 -1
  60. package/chunks/{chunk-LOFP256P.js → chunk-J2Z7NG2X.js} +1 -0
  61. package/chunks/{chunk-OLM5RTFK.js → chunk-J7YTWK67.js} +1 -0
  62. package/chunks/{chunk-MBC2JM7F.js → chunk-JPCJIMM5.js} +2 -1
  63. package/chunks/chunk-JPFGKN4T.js +4 -0
  64. package/chunks/chunk-JYNHFD6B.js +140 -0
  65. package/chunks/{chunk-RBB5ITAS.js → chunk-KLHDNHD3.js} +2 -1
  66. package/chunks/chunk-KLWWCHOL.js +2 -0
  67. package/chunks/{chunk-Q54LOR4S.js → chunk-KP3HXVLZ.js} +2 -1
  68. package/chunks/{chunk-U65FD6J3.js → chunk-KXI7O3KZ.js} +2 -1
  69. package/chunks/{chunk-OBIEQJDE.js → chunk-LCG4SK6K.js} +2 -1
  70. package/chunks/chunk-LNNNLUZT.js +2 -0
  71. package/chunks/chunk-LT7CC4SX.js +2 -0
  72. package/chunks/chunk-LXE2WGIW.js +2 -0
  73. package/chunks/{chunk-HPPFA3XU.js → chunk-MG65QJY6.js} +1 -0
  74. package/chunks/chunk-MNVCCOJS.js +2 -0
  75. package/chunks/{chunk-A2GDVOQP.js → chunk-N7DXBY3O.js} +2 -1
  76. package/chunks/{chunk-2J2PXBOC.js → chunk-NBA6EFWU.js} +1 -0
  77. package/chunks/chunk-NP2CCJ4C.js +40 -0
  78. package/chunks/{chunk-3APERFKY.js → chunk-P7WCO724.js} +1 -0
  79. package/chunks/{chunk-YWCEHTZB.js → chunk-PASFORZM.js} +2 -1
  80. package/chunks/chunk-PDJEHSKZ.js +3 -0
  81. package/chunks/{chunk-FKF2SWQM.js → chunk-PE2TDUXD.js} +1 -0
  82. package/chunks/chunk-PHI2BESG.js +2 -0
  83. package/chunks/chunk-PWLF3WXM.js +1 -0
  84. package/chunks/{chunk-TXL6YOFL.js → chunk-Q2KSOC32.js} +2 -1
  85. package/chunks/{chunk-YMY2URYM.js → chunk-QEZJTCNE.js} +2 -1
  86. package/chunks/{chunk-NGZZAQ7G.js → chunk-QTOUP2B7.js} +2 -1
  87. package/chunks/chunk-RMGMMTO6.js +2 -0
  88. package/chunks/{chunk-YXSB6RET.js → chunk-RYOLIM3I.js} +2 -1
  89. package/chunks/{chunk-AKJB4CER.js → chunk-RZKZDGNM.js} +2 -1
  90. package/chunks/{chunk-4S7QYPS6.js → chunk-S7S2I2K5.js} +1 -0
  91. package/chunks/chunk-SAQAIPUB.js +5 -0
  92. package/chunks/{chunk-6HYGGBEQ.js → chunk-SMT3I5PQ.js} +2 -1
  93. package/chunks/{chunk-ZED5RIVL.js → chunk-SOCLJVZ3.js} +2 -1
  94. package/chunks/chunk-SOSF762G.js +1 -0
  95. package/chunks/{chunk-FDZP7B5Y.js → chunk-STI6DX7K.js} +1 -0
  96. package/chunks/{chunk-PO3SXFUE.js → chunk-T4CNY6II.js} +2 -1
  97. package/chunks/{chunk-H4OFOQQ2.js → chunk-TBHZHGUF.js} +2 -1
  98. package/chunks/{chunk-QIYWONJL.js → chunk-TBOM65KB.js} +2 -1
  99. package/chunks/{chunk-762C2IM6.js → chunk-TDQRRGDJ.js} +2 -1
  100. package/chunks/{chunk-IA7GIU76.js → chunk-TFPT4BDY.js} +2 -1
  101. package/chunks/chunk-U3FRSRMK.js +7 -0
  102. package/chunks/{chunk-C3PZVQ3Z.js → chunk-V4AJMSER.js} +2 -1
  103. package/chunks/chunk-VC5BX56D.js +3 -0
  104. package/chunks/{chunk-JOXKA7TJ.js → chunk-VIOT4AMI.js} +2 -1
  105. package/chunks/{chunk-AAV7D6DF.js → chunk-VKSH6UPG.js} +2 -1
  106. package/chunks/{chunk-UNL4H5EY.js → chunk-VXA3KMDF.js} +2 -1
  107. package/chunks/{chunk-4H4O3TGK.js → chunk-VXTKQXGM.js} +2 -1
  108. package/chunks/{chunk-ZH37DSUQ.js → chunk-WF6JNPZS.js} +1 -0
  109. package/chunks/{chunk-4HAIX3WN.js → chunk-XAV6BM52.js} +2 -1
  110. package/chunks/{chunk-SG4G3OOO.js → chunk-XMVLDQGA.js} +2 -1
  111. package/chunks/{chunk-3EFU5R2M.js → chunk-Y53YTL4C.js} +2 -1
  112. package/chunks/chunk-YSJNWJ24.js +61 -0
  113. package/chunks/{chunk-ZF2XYULB.js → chunk-YTF3BAQS.js} +1 -0
  114. package/chunks/chunk-YZ4L35HK.js +3 -0
  115. package/chunks/{chunk-W3REWI3H.js → chunk-Z2CGXVFY.js} +2 -1
  116. package/chunks/{chunk-YQU3TEIG.js → chunk-ZKUI7MRS.js} +2 -1
  117. package/chunks/chunk-ZTPERUHN.js +2 -0
  118. package/chunks/claude-code-T26K2CSI.js +2 -0
  119. package/chunks/clone-UYEZ44LL.js +6 -0
  120. package/chunks/{commitmsg-ZGOEO5YG.js → commitmsg-646PHU7A.js} +3 -2
  121. package/chunks/concern-YRABYUVO.js +2 -0
  122. package/chunks/{deno-MMJLKXAE.js → deno-VWFDRCYK.js} +2 -1
  123. package/chunks/{dev-JHAHGTZP.js → dev-G4VQ2IYE.js} +3 -2
  124. package/chunks/done-5SD4KWRA.js +2 -0
  125. package/chunks/file-tools-shared-6W7Q4BM3.js +2 -0
  126. package/chunks/{fileFromPath-4UEDFJ4U.js → fileFromPath-MB3IRZVW.js} +2 -1
  127. package/chunks/gemini-F4KLO5VU.js +2 -0
  128. package/chunks/gh-CD3B5KEN.js +5 -0
  129. package/chunks/{gh-contributors-G3QZZAUO.js → gh-contributors-35JDS77W.js} +2 -1
  130. package/chunks/init-FAWK4Z3E.js +2 -0
  131. package/chunks/{init-IPZHDMAH.js → init-URA5HJ76.js} +4 -3
  132. package/chunks/install-M74UAT7X.js +3 -0
  133. package/chunks/invoke-hook-4LHASYW3.js +10 -0
  134. package/chunks/kiro-G4OHOVFL.js +2 -0
  135. package/chunks/{list-2RZIQZGH.js → list-4EO2DKMM.js} +2 -1
  136. package/chunks/{list-DSVIPH45.js → list-J5HOVH5E.js} +2 -1
  137. package/chunks/list-LBUVQR7O.js +2 -0
  138. package/chunks/load-config-DVKFZVST.js +2 -0
  139. package/chunks/{main-FQFNY7SM.js → main-ODLLH74E.js} +3 -2
  140. package/chunks/manifest-QSFTIV3B.js +2 -0
  141. package/chunks/mod-4ILLF5PK.js +2 -0
  142. package/chunks/mod-5ZKIEGUP.js +2 -0
  143. package/chunks/mod-6DSPYXMK.js +2 -0
  144. package/chunks/{mod-QJMMYECF.js → mod-BE3R7D2V.js} +3 -2
  145. package/chunks/{mod-TLLZ3NAM.js → mod-EWGGLW3S.js} +2 -1
  146. package/chunks/{mod-TSU5UWXA.js → mod-QHYBU43F.js} +2 -1
  147. package/chunks/mod-RLMNE7UW.js +2 -0
  148. package/chunks/{mod-VZPKQ7DG.js → mod-S5HDMMLJ.js} +2 -1
  149. package/chunks/{mod-WYRORC72.js → mod-T55CWDLD.js} +2 -1
  150. package/chunks/mod-U23K3LXJ.js +2 -0
  151. package/chunks/mod-YSMK5V7P.js +2 -0
  152. package/chunks/mod-ZZYMEYCH.js +28 -0
  153. package/chunks/{new-EAETGSIR.js → new-GDE5UZWP.js} +2 -1
  154. package/chunks/next-2HGZUAMR.js +4 -0
  155. package/chunks/{node-RWYXITVV.js → node-KCQF6QQA.js} +2 -1
  156. package/chunks/{node-SMAAGOR3.js → node-SUFYFPRO.js} +2 -1
  157. package/chunks/ollama-EE7S3UZE.js +2 -0
  158. package/chunks/openai-EU5TJZ5T.js +2 -0
  159. package/chunks/{openai-EKIA3VP3.js → openai-IKXRJYI3.js} +2 -1
  160. package/chunks/opencode-WUF4YPPD.js +2 -0
  161. package/chunks/purge-OIEP3ALR.js +5 -0
  162. package/chunks/recipe-applier-WZ43N5XT.js +2 -0
  163. package/chunks/registry-fetcher-G33L5S7X.js +2 -0
  164. package/chunks/{release-6PVE4O6P.js → release-5BYYTQJI.js} +3 -2
  165. package/chunks/{release-notes-734LKEJB.js → release-notes-6M2YRB3G.js} +2 -1
  166. package/chunks/release-tag-QP4ZKQNS.js +2 -0
  167. package/chunks/reset-TKTDLTXB.js +2 -0
  168. package/chunks/rule-6TDBH4BL.js +3 -0
  169. package/chunks/{run-ES4BLQQX.js → run-SU27QAHR.js} +3 -2
  170. package/chunks/run-TQEEFEDE.js +4 -0
  171. package/chunks/{scripts-COIXD5AD.js → scripts-ZSF43ZJN.js} +2 -1
  172. package/chunks/{sdk-5JGXLIO5.js → sdk-MXV452BR.js} +2 -1
  173. package/chunks/serve-JSDQDTTM.js +4 -0
  174. package/chunks/{server-RYWDAYED.js → server-P46LIK5C.js} +2 -1
  175. package/chunks/spec-ATRKKK2P.js +2 -0
  176. package/chunks/status-H2KLEMT6.js +2 -0
  177. package/chunks/sync-CK7PWMKK.js +2 -0
  178. package/chunks/system-IV54LJTN.js +2 -0
  179. package/chunks/system-NSABXTHD.js +2 -0
  180. package/chunks/{unstable_chmod-WRDBWEC2.js → unstable_chmod-GDQI7NKH.js} +2 -1
  181. package/chunks/update-HP5WGRNK.js +6 -0
  182. package/chunks/validate-bom-KGIGVVOU.js +2 -0
  183. package/chunks/validate-case-conflict-OO2AO434.js +2 -0
  184. package/chunks/validate-circular-deps-32ISYSEO.js +2 -0
  185. package/chunks/validate-commit-msg-2FLWH6TC.js +2 -0
  186. package/chunks/validate-docs-MNQ7ZRID.js +2 -0
  187. package/chunks/validate-eof-E33EQKDM.js +2 -0
  188. package/chunks/validate-export-names-IWS4NRYR.js +2 -0
  189. package/chunks/validate-filenames-GKDIEJH4.js +2 -0
  190. package/chunks/validate-json-L7BSQN3G.js +2 -0
  191. package/chunks/validate-large-files-CHHOQREX.js +2 -0
  192. package/chunks/validate-licenses-5WEHTSL4.js +2 -0
  193. package/chunks/validate-line-endings-EWGW2ZWD.js +2 -0
  194. package/chunks/validate-merge-conflict-IN5ZQJDJ.js +2 -0
  195. package/chunks/validate-mod-exports-PHEFFLDK.js +2 -0
  196. package/chunks/validate-package-configs-FXHXJMG4.js +2 -0
  197. package/chunks/validate-secrets-ABX5UNHC.js +2 -0
  198. package/chunks/validate-shebangs-47GMC7WX.js +2 -0
  199. package/chunks/validate-submodules-4BPO5ORH.js +2 -0
  200. package/chunks/validate-symlinks-OCGMLYJS.js +2 -0
  201. package/chunks/validate-toml-MYSG53JW.js +2 -0
  202. package/chunks/validate-trailing-whitespace-AXXHTIAE.js +2 -0
  203. package/chunks/validate-yaml-FT5PODBP.js +2 -0
  204. package/chunks/versions-PZPDQ673.js +2 -0
  205. package/chunks/vertexai-EXTYPVHK.js +2 -0
  206. package/chunks/watch-47KEOG5L.js +9 -0
  207. package/chunks/workerd-LDORGZ6V.js +2 -0
  208. package/eser.js +2 -1
  209. package/package.json +1 -1
  210. package/chunks/add-ORJYWG26.js +0 -7
  211. package/chunks/anthropic-SL274RBQ.js +0 -1
  212. package/chunks/approve-5NJ4JWD3.js +0 -1
  213. package/chunks/block-ADHHHUFZ.js +0 -1
  214. package/chunks/changelog-gen-LV5VWTZS.js +0 -7
  215. package/chunks/chunk-3I4JG3PJ.js +0 -1
  216. package/chunks/chunk-5AK4OGCO.js +0 -1
  217. package/chunks/chunk-AYSPDG4K.js +0 -1
  218. package/chunks/chunk-BCHXUKWW.js +0 -3
  219. package/chunks/chunk-BK2BDHKB.js +0 -1
  220. package/chunks/chunk-DDLQMSA7.js +0 -0
  221. package/chunks/chunk-GXPLME3K.js +0 -14
  222. package/chunks/chunk-HTBLWLKV.js +0 -1
  223. package/chunks/chunk-LO424HF3.js +0 -60
  224. package/chunks/chunk-LXVBR775.js +0 -1
  225. package/chunks/chunk-MYSTBVWT.js +0 -2
  226. package/chunks/chunk-NT2MQK7O.js +0 -6
  227. package/chunks/chunk-PLJNPQFC.js +0 -1
  228. package/chunks/chunk-Q7QMINSQ.js +0 -0
  229. package/chunks/chunk-QZY4BKI7.js +0 -1
  230. package/chunks/chunk-RYLOB2JU.js +0 -1
  231. package/chunks/chunk-TTYO2XJO.js +0 -32
  232. package/chunks/chunk-V2N5L24J.js +0 -2
  233. package/chunks/chunk-Z4WPWVC7.js +0 -10
  234. package/chunks/chunk-ZOZYBQX2.js +0 -0
  235. package/chunks/claude-code-K37KYX7W.js +0 -1
  236. package/chunks/clone-PAQMCIA3.js +0 -5
  237. package/chunks/file-tools-shared-77P7MI54.js +0 -1
  238. package/chunks/gemini-ARTUPDPZ.js +0 -1
  239. package/chunks/gh-SXEDNWHD.js +0 -4
  240. package/chunks/init-3GXDO32O.js +0 -1
  241. package/chunks/install-VY2L6NDB.js +0 -2
  242. package/chunks/kiro-XQDHURLU.js +0 -1
  243. package/chunks/list-V2HZCPDN.js +0 -1
  244. package/chunks/load-config-KG4RTCR2.js +0 -1
  245. package/chunks/manifest-5CYL3HR3.js +0 -1
  246. package/chunks/mod-5ACKR2OE.js +0 -1
  247. package/chunks/mod-6P2JPEHC.js +0 -1
  248. package/chunks/mod-CUIGNRIK.js +0 -1
  249. package/chunks/mod-NSY6WUYH.js +0 -27
  250. package/chunks/mod-T76TRJWM.js +0 -1
  251. package/chunks/mod-U6LEXPVR.js +0 -1
  252. package/chunks/next-F2BIIAZC.js +0 -3
  253. package/chunks/ollama-6JZ2IKR7.js +0 -1
  254. package/chunks/openai-XMIVMDDL.js +0 -1
  255. package/chunks/opencode-CHIAJALZ.js +0 -1
  256. package/chunks/recipe-applier-R4YJPGQR.js +0 -1
  257. package/chunks/registry-fetcher-J6X32PGP.js +0 -1
  258. package/chunks/release-tag-YX727TXO.js +0 -1
  259. package/chunks/reset-PAPDZIDC.js +0 -1
  260. package/chunks/rule-4GNOR3GE.js +0 -2
  261. package/chunks/serve-B4V2BCWM.js +0 -3
  262. package/chunks/spec-SNAUMQSR.js +0 -1
  263. package/chunks/status-CY5IKIYS.js +0 -1
  264. package/chunks/sync-OAPV43JS.js +0 -1
  265. package/chunks/system-5A6DQLM5.js +0 -1
  266. package/chunks/system-5LLFPIWV.js +0 -1
  267. package/chunks/update-O75M4SDJ.js +0 -5
  268. package/chunks/validate-bom-6G7EYFOP.js +0 -1
  269. package/chunks/validate-case-conflict-OWHWRTSQ.js +0 -1
  270. package/chunks/validate-circular-deps-TCYSZKME.js +0 -1
  271. package/chunks/validate-commit-msg-UPJJ7E4M.js +0 -1
  272. package/chunks/validate-docs-ZTCE5XLF.js +0 -1
  273. package/chunks/validate-eof-6RMNMAWI.js +0 -1
  274. package/chunks/validate-export-names-5ZVQ4PGM.js +0 -1
  275. package/chunks/validate-filenames-5YB27RN4.js +0 -1
  276. package/chunks/validate-json-6CLTN4AN.js +0 -1
  277. package/chunks/validate-large-files-KEMHYWKH.js +0 -1
  278. package/chunks/validate-licenses-WIVY6G5Z.js +0 -1
  279. package/chunks/validate-line-endings-KNFYAVBG.js +0 -1
  280. package/chunks/validate-merge-conflict-PYKGIFY5.js +0 -1
  281. package/chunks/validate-mod-exports-X5UZPD7J.js +0 -1
  282. package/chunks/validate-package-configs-SYKEIB53.js +0 -1
  283. package/chunks/validate-secrets-BWDFWN64.js +0 -1
  284. package/chunks/validate-shebangs-MP6VTLWO.js +0 -1
  285. package/chunks/validate-submodules-RQXISWKG.js +0 -1
  286. package/chunks/validate-symlinks-IPRYMDZD.js +0 -1
  287. package/chunks/validate-toml-KJZK7QVM.js +0 -1
  288. package/chunks/validate-trailing-whitespace-RO42VWQG.js +0 -1
  289. package/chunks/validate-yaml-H7G726ZM.js +0 -1
  290. package/chunks/versions-KW5UTMNV.js +0 -1
  291. package/chunks/vertexai-TPGIAJNA.js +0 -1
  292. package/chunks/workerd-LKKH32SO.js +0 -1
@@ -1 +1,2 @@
1
- import"./chunk-DXB73IDG.js";var r=globalThis.navigator?.userAgent?.includes("Deno");function s(){return globalThis.process.getBuiltinModule("node:fs")}var c=r?Deno.errors.AlreadyExists:class extends Error{},d=r?Deno.errors.BadResource:class extends Error{},E=r?Deno.errors.BrokenPipe:class extends Error{},y=r?Deno.errors.Busy:class extends Error{},B=r?Deno.errors.Interrupted:class extends Error{},T=r?Deno.errors.InvalidData:class extends Error{},a=r?Deno.errors.NotFound:class extends Error{},P=r?Deno.errors.PermissionDenied:class extends Error{},F=r?Deno.errors.TimedOut:class extends Error{},S=r?Deno.errors.UnexpectedEof:class extends Error{},O=r?Deno.errors.WriteZero:class extends Error{};function n(e){return o=>Object.assign(new e(o.message),{stack:o.stack})}var l={EEXIST:n(c),ENOENT:n(a),EBADF:n(d)};function p(e){return e instanceof Error&&"code"in e}function i(e){return p(e)&&l[e.code]?.(e)||e}async function W(e,o){if(r)await Deno.chmod(e,o);else try{await s().promises.chmod(e,o)}catch(t){throw i(t)}}function Z(e,o){if(r)Deno.chmodSync(e,o);else try{s().chmodSync(e,o)}catch(t){throw i(t)}}export{W as chmod,Z as chmodSync};
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import"./chunk-G6NAG2EK.js";var r=globalThis.navigator?.userAgent?.includes("Deno");function s(){return globalThis.process.getBuiltinModule("node:fs")}var c=r?Deno.errors.AlreadyExists:class extends Error{},d=r?Deno.errors.BadResource:class extends Error{},E=r?Deno.errors.BrokenPipe:class extends Error{},y=r?Deno.errors.Busy:class extends Error{},B=r?Deno.errors.Interrupted:class extends Error{},T=r?Deno.errors.InvalidData:class extends Error{},a=r?Deno.errors.NotFound:class extends Error{},P=r?Deno.errors.PermissionDenied:class extends Error{},F=r?Deno.errors.TimedOut:class extends Error{},S=r?Deno.errors.UnexpectedEof:class extends Error{},O=r?Deno.errors.WriteZero:class extends Error{};function n(e){return o=>Object.assign(new e(o.message),{stack:o.stack})}var l={EEXIST:n(c),ENOENT:n(a),EBADF:n(d)};function p(e){return e instanceof Error&&"code"in e}function i(e){return p(e)&&l[e.code]?.(e)||e}async function W(e,o){if(r)await Deno.chmod(e,o);else try{await s().promises.chmod(e,o)}catch(t){throw i(t)}}function Z(e,o){if(r)Deno.chmodSync(e,o);else try{s().chmodSync(e,o)}catch(t){throw i(t)}}export{W as chmod,Z as chmodSync};
@@ -0,0 +1,6 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{e as U}from"./chunk-KP3HXVLZ.js";import{a as R,d as w}from"./chunk-3BEX5FYF.js";import{k}from"./chunk-KLWWCHOL.js";import{f as y,h as g,k as f}from"./chunk-NP2CCJ4C.js";import{g as m,k as l}from"./chunk-3SXTMY75.js";import{a as u}from"./chunk-MG65QJY6.js";import{a as o,b as n,c}from"./chunk-A6RDYP6R.js";import{t as d}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var b=r=>R(async s=>{try{let t=await k(r.registrySource,{verbose:r.verbose,local:r.local}),e=t.recipes.find(p=>p.name===r.recipeName);if(e===void 0)return n({_tag:"RecipeNotFound",message:`Recipe '${r.recipeName}' not found. Run \`eser kit list\` to see available recipes.`});let a=await U(e,{cwd:r.cwd,registryUrl:t.registryUrl,force:!0,dryRun:r.dryRun,verbose:r.verbose}),i=r.dryRun?"Would update":"Updated";s.out.writeln(m(`\u2713 ${i} ${a.written.length} file(s) from ${e.name}`));for(let p of a.written)s.out.writeln(` \u2192 ${p}`);return o({recipe:e,result:a})}catch(t){let e=t instanceof Error?t.message:String(t);return n({_tag:"ApplyError",message:e})}});var S=async r=>{let s=u(r??[],{string:["registry"],boolean:["dry-run","verbose","local"]}),t=s._[0],e=y({renderer:f.ansi(),sink:g.stdout()});if(t===void 0)return e.writeln("Usage: eser kit update <recipe> [--registry <url>] [--dry-run]"),e.writeln(),e.writeln("Re-fetches and re-applies a recipe, overwriting existing files."),await e.close(),o(void 0);let a=s["dry-run"]===!0;a?e.writeln(l(`
3
+ Dry run: updating ${t}
4
+ `)):e.writeln(l(`
5
+ Updating ${t}...
6
+ `));let i=await w(b({recipeName:t,cwd:d.process.cwd(),registrySource:s.registry,local:s.local===!0,dryRun:a,verbose:s.verbose===!0}),{out:e});return await e.close(),c(i)?o(void 0):n({exitCode:1})};export{S as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-QEZJTCNE.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-6XW64HCG.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-LT7CC4SX.js";import"./chunk-RZKZDGNM.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-3SXTMY75.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as checkCircularDeps,b as checkCircularDepsHandler,c as handleCli,d as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-IAZ2MM3P.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{b as main,a as validateCommitMsg};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-XAV6BM52.js";import"./chunk-RZKZDGNM.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as checkDocs,b as checkDocsHandler,c as handleCli,d as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-T4CNY6II.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-CS3FL7HI.js";import"./chunk-RZKZDGNM.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as checkExportNames,b as checkExportNamesHandler,c as handleCli,d as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-IKYBNRCS.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-KXI7O3KZ.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-3XJLLDR5.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-GITZBQ2Z.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-VIOT4AMI.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-ZKUI7MRS.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-TBHZHGUF.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-A3MBTPHJ.js";import"./chunk-RZKZDGNM.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as checkModExports,b as checkModExportsHandler,c as handleCli,d as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-4MELQSFH.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-S7S2I2K5.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-3SXTMY75.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as checkPackageConfigs,b as checkPackageConfigsHandler,c as handleCli,d as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-Z2CGXVFY.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-QTOUP2B7.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-G35GBI4M.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-COJNSVOS.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-SMT3I5PQ.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-P7WCO724.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-PASFORZM.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-MNVCCOJS.js";import"./chunk-5YVKJFG6.js";import"./chunk-6HGMAVFR.js";import"./chunk-JYNHFD6B.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{d as main,b as run,a as tool,c as validator};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d,e,f}from"./chunk-KLHDNHD3.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-2VEVVX6U.js";import"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{e as handleCli,f as main,a as readVersionFile,b as showVersions,c as versions,d as versionsHandler};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b}from"./chunk-536RBSFU.js";import"./chunk-TDQRRGDJ.js";import"./chunk-BNQAZLIQ.js";import"./chunk-J7YTWK67.js";import"./chunk-G6NAG2EK.js";export{a as VertexAIModel,b as vertexaiFactory};
@@ -0,0 +1,9 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a as S,c as E}from"./chunk-PDJEHSKZ.js";import{a as C,c as M}from"./chunk-SAQAIPUB.js";import{d as T,j as y,q as b}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{a as x,b as k}from"./chunk-A6RDYP6R.js";import{t as m}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var D=async e=>{let s=await T(e),l=await y(e),d=await L(e),o=null,u=null,n=0,c=0;if(s.spec!==null){let i=await S(e,s.spec);if(i!==null){n=i.tasks.length,c=s.execution.completedTasks.length;let a=E(i.tasks,s.execution.completedTasks);a!==null&&(o=a.id,u=a.title)}}let $=null;return s.lastCalledAt!==null&&($=Math.floor((Date.now()-new Date(s.lastCalledAt).getTime())/1e3)),{spec:s.spec,phase:s.phase,iteration:s.execution.iteration,activeTaskId:o,activeTaskTitle:u,totalTasks:n,completedTaskCount:c,lastProgress:s.execution.lastProgress,lastCalledAt:s.lastCalledAt,modifiedFiles:s.execution.modifiedFiles,debt:s.execution.debt,concerns:l?.concerns??[],maxIterations:l?.maxIterationsBeforeRestart??15,awaitingStatusReport:s.execution.awaitingStatusReport,pendingClear:s.pendingClear,verificationPassed:s.execution.lastVerification?.passed??null,decisionsCount:s.decisions.length,discoveryAnswered:s.discovery.answers.length,discoveryTotal:6,trackedFiles:d,timeSinceUpdate:$}},L=async e=>{let s=`${e}/.eser/.state/files-changed.jsonl`;try{let d=(await m.fs.readTextFile(s)).trim().split(`
3
+ `).filter(Boolean),o=[];for(let u of d)try{let n=JSON.parse(u);o.includes(n.file)||o.push(n.file)}catch{}return o}catch{return[]}},F="\x1B[2J\x1B[H",I="\x1B[1m",r="\x1B[2m",t="\x1B[0m",f="\x1B[32m",p="\x1B[33m",w="\x1B[31m",P="\x1B[36m",O=e=>{switch(e){case"DONE":return f;case"BLOCKED":return w;case"EXECUTING":return P;default:return p}},A=(e,s,l)=>{if(s===0)return"\u2591".repeat(l);let d=Math.min(e/s,1),o=Math.round(d*l);return"\u2588".repeat(o)+"\u2591".repeat(l-o)},v=e=>e===null?"never":e<60?`${e}s ago`:e<3600?`${Math.floor(e/60)}m ago`:`${Math.floor(e/3600)}h ago`,R=e=>{let s=[],d="\u2500".repeat(52);s.push(`${r}\u256D${d}\u256E${t}`),s.push(`${r}\u2502${t} ${I}noskills watch${t} \u2014 ${e.spec??"no active spec"}${r}${" ".repeat(Math.max(0,34-(e.spec?.length??15)))}\u2502${t}`);let o=O(e.phase);if(s.push(`${r}\u2502${t} Phase: ${o}${e.phase}${t}${" ".repeat(Math.max(0,42-e.phase.length))}${r}\u2502${t}`),e.phase==="DISCOVERY")s.push(`${r}\u2502${t} Discovery: ${e.discoveryAnswered}/${e.discoveryTotal} questions answered${" ".repeat(Math.max(0,14))}${r}\u2502${t}`);else if(e.phase==="SPEC_DRAFT")s.push(`${r}\u2502${t} ${p}Awaiting approval${t}${" ".repeat(Math.max(0,33))}${r}\u2502${t}`);else if(e.phase==="EXECUTING"||e.phase==="BLOCKED"){let n=A(e.completedTaskCount,e.totalTasks,12),c=e.totalTasks>0?Math.round(e.completedTaskCount/e.totalTasks*100):0,$=`${n} ${e.completedTaskCount}/${e.totalTasks} tasks (${c}%)`;if(s.push(`${r}\u2502${t} Progress: ${f}${$}${t}${" ".repeat(Math.max(0,40-$.length))}${r}\u2502${t}`),s.push(`${r}\u2502${t} Iteration: ${e.iteration}${" ".repeat(Math.max(0,38-String(e.iteration).length))}${r}\u2502${t}`),e.activeTaskId!==null){let a=`${e.activeTaskId}${e.activeTaskTitle!==null?` (${e.activeTaskTitle})`:""}`.slice(0,36);s.push(`${r}\u2502${t} Active task: ${P}${a}${t}${" ".repeat(Math.max(0,36-a.length))}${r}\u2502${t}`)}if(e.phase==="BLOCKED"){let i=(e.lastProgress??"unknown").replace(/^BLOCKED:\s*/,"");s.push(`${r}\u2502${t} ${w}BLOCKED: ${i.slice(0,40)}${t}${" ".repeat(Math.max(0,40-i.slice(0,40).length))}${r}\u2502${t}`),s.push(`${r}\u2502${t} ${p}Human input needed${t}${" ".repeat(Math.max(0,32))}${r}\u2502${t}`)}}else e.phase==="DONE"&&s.push(`${r}\u2502${t} ${f}Complete!${t} ${e.iteration} iterations, ${e.decisionsCount} decisions${" ".repeat(Math.max(0,17-String(e.iteration).length-String(e.decisionsCount).length))}${r}\u2502${t}`);if(s.push(`${r}\u2502${"".padEnd(52)}\u2502${t}`),s.push(`${r}\u2502${t} Last update: ${v(e.timeSinceUpdate)}${" ".repeat(Math.max(0,36-v(e.timeSinceUpdate).length))}${r}\u2502${t}`),e.lastProgress!==null){let n=e.lastProgress.slice(0,48);s.push(`${r}\u2502${t} ${r}${n}${t}${" ".repeat(Math.max(0,50-n.length))}${r}\u2502${t}`)}if(e.awaitingStatusReport&&s.push(`${r}\u2502${t} ${p}Status report pending${t}${" ".repeat(Math.max(0,29))}${r}\u2502${t}`),e.pendingClear&&s.push(`${r}\u2502${t} ${p}/clear pending${t}${" ".repeat(Math.max(0,36))}${r}\u2502${t}`),e.verificationPassed===!1&&s.push(`${r}\u2502${t} ${w}Verification failed${t}${" ".repeat(Math.max(0,31))}${r}\u2502${t}`),s.push(`${r}\u2502${"".padEnd(52)}\u2502${t}`),e.debt!==null&&e.debt.items.length>0){s.push(`${r}\u2502${t} Debt: ${e.debt.items.length} item(s)${" ".repeat(Math.max(0,34))}${r}\u2502${t}`);for(let n of e.debt.items.slice(0,3)){let c=n.slice(0,44);s.push(`${r}\u2502${t} \u2514\u2500 ${c}${" ".repeat(Math.max(0,46-c.length))}${r}\u2502${t}`)}e.debt.items.length>3&&s.push(`${r}\u2502${t} \u2514\u2500 ... and ${e.debt.items.length-3} more${" ".repeat(Math.max(0,32))}${r}\u2502${t}`)}if(e.trackedFiles.length>0||e.modifiedFiles.length>0){let n=e.trackedFiles.length>0?e.trackedFiles:e.modifiedFiles;s.push(`${r}\u2502${t} Files changed: ${n.length}${" ".repeat(Math.max(0,34-String(n.length).length))}${r}\u2502${t}`);for(let c of n.slice(0,5)){let $=c.length>44?"..."+c.slice(-41):c;s.push(`${r}\u2502${t} \u2514\u2500 ${$}${" ".repeat(Math.max(0,46-$.length))}${r}\u2502${t}`)}n.length>5&&s.push(`${r}\u2502${t} \u2514\u2500 ... and ${n.length-5} more${" ".repeat(Math.max(0,32))}${r}\u2502${t}`)}if(s.push(`${r}\u2502${"".padEnd(52)}\u2502${t}`),e.concerns.length>0){let n=e.concerns.join(", ").slice(0,38);s.push(`${r}\u2502${t} Concerns: ${n}${" ".repeat(Math.max(0,40-n.length))}${r}\u2502${t}`)}let u=e.iteration>=e.maxIterations?`${w}RESTART RECOMMENDED${t}`:`${f}ok${t} (${e.iteration}/${e.maxIterations})`;return s.push(`${r}\u2502${t} Context: ${u}${" ".repeat(Math.max(0,41-u.replace(/\x1b\[[0-9;]*m/g,"").length))}${r}\u2502${t}`),s.push(`${r}\u2570${d}\u256F${t}`),s.push(` ${r}watching .eser/.state/ for changes... (ctrl+c to stop)${t}`),s.join(`
4
+ `)},W=e=>JSON.stringify({ts:new Date().toISOString(),phase:e.phase,spec:e.spec,iteration:e.iteration,activeTask:e.activeTaskId,tasks:{completed:e.completedTaskCount,total:e.totalTasks},progress:e.lastProgress,debt:e.debt?.items.length??0,filesChanged:e.trackedFiles.length>0?e.trackedFiles:e.modifiedFiles,timeSinceUpdate:e.timeSinceUpdate,pendingClear:e.pendingClear,verificationPassed:e.verificationPassed}),J=async e=>{let s=m.process.cwd(),l=C(e);if(!await b(s)){let i=new TextEncoder,a=m.process.stdout.getWriter();return await a.write(i.encode(`noskills not initialized.
5
+ `)),a.releaseLock(),k({exitCode:1})}let d=`${s}/.eser/.state`,o="",u=async()=>{let i=await D(s),a=l==="json"?W(i):l==="markdown"?M(i,"markdown"):R(i);if(l==="json"){let g=new TextEncoder,h=m.process.stdout.getWriter();await h.write(g.encode(a+`
6
+ `)),h.releaseLock()}else if(l==="markdown"){let g=new TextEncoder,h=m.process.stdout.getWriter();await h.write(g.encode(a+`
7
+ ---
8
+ `)),h.releaseLock()}else if(a!==o){let g=new TextEncoder,h=m.process.stdout.getWriter();await h.write(g.encode(F+a+`
9
+ `)),h.releaseLock(),o=a}return i.phase==="DONE"};if(await u())return x(void 0);let c=1e3,$=0;for(;;){await new Promise(i=>setTimeout(i,c));try{let a=(await m.fs.stat(`${d}/state.json`)).mtime?.getTime()??0;if(a>$&&($=a,await new Promise(h=>setTimeout(h,100)),await u()))break}catch{}}return x(void 0)};export{D as buildSnapshot,J as main,W as renderJsonLine,R as renderTerminal};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as WORKERD_CAPABILITIES,c as clearEnv,d as createWorkerdRuntime,b as populateEnvFromContext};
package/eser.js CHANGED
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{a as u}from"./chunks/chunk-MBC2JM7F.js";import{a as m}from"./chunks/chunk-RYLOB2JU.js";import"./chunks/chunk-ZOZYBQX2.js";import{a as o}from"./chunks/chunk-UNL4H5EY.js";import{b as a}from"./chunks/chunk-DWYVBWBP.js";import"./chunks/chunk-HPPFA3XU.js";import{b as d,e as c}from"./chunks/chunk-DQAEQEXD.js";import{t as p}from"./chunks/chunk-YXSB6RET.js";import"./chunks/chunk-SG4G3OOO.js";import"./chunks/chunk-FDZP7B5Y.js";import"./chunks/chunk-ACQUINWH.js";import"./chunks/chunk-DXB73IDG.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-ORJYWG26.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-2RZIQZGH.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-EAETGSIR.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-PAQMCIA3.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-O75M4SDJ.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-NSY6WUYH.js")},install:{description:"Install git hooks from .manifest.yml",category:"Setup",load:()=>import("./chunks/install-VY2L6NDB.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-VY2L6NDB.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-VY2L6NDB.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-ZGOEO5YG.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-SXEDNWHD.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-KW5UTMNV.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-LV5VWTZS.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-6PVE4O6P.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-6PVE4O6P.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-6PVE4O6P.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-6RMNMAWI.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-RO42VWQG.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-6G7EYFOP.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-KNFYAVBG.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-KEMHYWKH.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-OWHWRTSQ.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-PYKGIFY5.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-6CLTN4AN.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-KJZK7QVM.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-H7G726ZM.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-IPRYMDZD.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-MP6VTLWO.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-BWDFWN64.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-5YB27RN4.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-RQXISWKG.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-UPJJ7E4M.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-ZTCE5XLF.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-TCYSZKME.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-5ZVQ4PGM.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-WIVY6G5Z.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-X5UZPD7J.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-SYKEIB53.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-ES4BLQQX.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-DSVIPH45.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-3GXDO32O.js")},status:{description:"Show current state",load:()=>import("./chunks/status-CY5IKIYS.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-SNAUMQSR.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-F2BIIAZC.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-5NJ4JWD3.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-ADHHHUFZ.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-PAPDZIDC.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-OAPV43JS.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-4GNOR3GE.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-IPZHDMAH.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-JHAHGTZP.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-2W7YVR7J.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-B4V2BCWM.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-QJMMYECF.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-5LLFPIWV.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-T76TRJWM.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-T76TRJWM.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-T76TRJWM.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-T76TRJWM.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-5CYL3HR3.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let b=s[e],{runScript:v}=await import("./chunks/scripts-COIXD5AD.js");return await v(e,b,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
2
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
3
+ import{a as u}from"./chunks/chunk-JPCJIMM5.js";import{a as m}from"./chunks/chunk-RMGMMTO6.js";import"./chunks/chunk-PWLF3WXM.js";import{a as o}from"./chunks/chunk-VXA3KMDF.js";import{b as a}from"./chunks/chunk-5BHHLJJN.js";import"./chunks/chunk-MG65QJY6.js";import{b as d,e as c}from"./chunks/chunk-A6RDYP6R.js";import{t as p}from"./chunks/chunk-RYOLIM3I.js";import"./chunks/chunk-XMVLDQGA.js";import"./chunks/chunk-STI6DX7K.js";import"./chunks/chunk-DTO2YJWZ.js";import"./chunks/chunk-G6NAG2EK.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-O35CHPAB.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-4EO2DKMM.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-GDE5UZWP.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-UYEZ44LL.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-HP5WGRNK.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-ZZYMEYCH.js")},install:{description:"Install git hooks from .eser/manifest.yml",category:"Setup",load:()=>import("./chunks/install-M74UAT7X.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-M74UAT7X.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-M74UAT7X.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-646PHU7A.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-CD3B5KEN.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-PZPDQ673.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-KMNP2KO4.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-5BYYTQJI.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-5BYYTQJI.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-5BYYTQJI.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-E33EQKDM.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-AXXHTIAE.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-KGIGVVOU.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-EWGW2ZWD.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-CHHOQREX.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-OO2AO434.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-IN5ZQJDJ.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-L7BSQN3G.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-MYSG53JW.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-FT5PODBP.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-OCGMLYJS.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-47GMC7WX.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-ABX5UNHC.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-GKDIEJH4.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-4BPO5ORH.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-2FLWH6TC.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-MNQ7ZRID.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-32ISYSEO.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-IWS4NRYR.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-5WEHTSL4.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-PHEFFLDK.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-FXHXJMG4.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-SU27QAHR.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-J5HOVH5E.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-FAWK4Z3E.js")},status:{description:"Show current state",load:()=>import("./chunks/status-H2KLEMT6.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-ATRKKK2P.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-2HGZUAMR.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-XMPDDDZD.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-C2GOOMFH.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-TKTDLTXB.js")},done:{description:"Mark spec execution as complete",load:()=>import("./chunks/done-5SD4KWRA.js")},concern:{description:"Manage concerns (add, remove, list)",load:()=>import("./chunks/concern-YRABYUVO.js")},run:{description:"Autonomous execution loop (Ralph loop)",load:()=>import("./chunks/run-TQEEFEDE.js")},watch:{description:"Live dashboard for monitoring agent progress",load:()=>import("./chunks/watch-47KEOG5L.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-CK7PWMKK.js")},purge:{description:"Remove all noskills content (specs, rules, concerns, hooks)",load:()=>import("./chunks/purge-OIEP3ALR.js")},"invoke-hook":{description:"Internal hook handlers (called by agents)",load:()=>import("./chunks/invoke-hook-4LHASYW3.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-6TDBH4BL.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-URA5HJ76.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-G4VQ2IYE.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-LADMCGZD.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-JSDQDTTM.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-BE3R7D2V.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-NSABXTHD.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-6DSPYXMK.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-6DSPYXMK.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-6DSPYXMK.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-6DSPYXMK.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-QSFTIV3B.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let v=s[e],{runScript:b}=await import("./chunks/scripts-ZSF43ZJN.js");return await b(e,v,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eser",
3
- "version": "4.1.26",
3
+ "version": "4.1.29",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "eser": "./eser.js"
@@ -1,7 +0,0 @@
1
- import{a as N,b as x,c as H}from"./chunk-NLNSK3KE.js";import{f as C}from"./chunk-Q54LOR4S.js";import{a as E,d as $}from"./chunk-NUSNMQPL.js";import{f as S}from"./chunk-5AK4OGCO.js";import{f as b,h,k as I}from"./chunk-TTYO2XJO.js";import{d as o,e as k,f as g,g as A,j as y}from"./chunk-PLJNPQFC.js";import{a as v}from"./chunk-HPPFA3XU.js";import{a as d,b as c,c as R}from"./chunk-DQAEQEXD.js";import{t as w}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var _=r=>E(async e=>{try{let t=await S(r.registrySource,{verbose:r.verbose,local:r.local}),s=t.recipes.find(n=>n.name===r.recipeName);if(s===void 0)return c({_tag:"RecipeNotFound",message:`Recipe '${r.recipeName}' not found. Run \`eser kit list\` to see available recipes.`});let a=await N(r.cwd),i=x(s,a);for(let n of i.warnings)e.out.writeln(A(`Warning: ${n}`));let l=await C(r.recipeName,t.recipes,{cwd:r.cwd,registryUrl:t.registryUrl,force:r.force,skipExisting:r.skipExisting,dryRun:r.dryRun,verbose:r.verbose,variables:r.variables}),m=0,p=0;for(let n of l.recipes)m+=n.result.written.length,p+=n.result.skipped.length;e.out.writeln(g(`\u2713 Added ${m} file(s)`)),l.recipes.length>1&&e.out.writeln(o(` Applied ${l.recipes.length} recipes (including dependencies)`)),p>0&&e.out.writeln(o(` Skipped ${p} existing file(s)`));let f=l.recipes.find(n=>n.name===r.recipeName);if(f!==void 0)for(let n of f.result.written)e.out.writeln(` \u2192 ${n}`);let u;if(!r.noInstall&&!r.dryRun&&i.instructions.length>0){e.out.writeln(o(`
2
- Installing dependencies...`)),u=await H(i.instructions,r.cwd,{verbose:r.verbose});for(let n of u)n.success?e.out.writeln(g(` \u2713 ${n.command}`)):e.out.writeln(k(` \u2717 ${n.command}: ${n.error}`))}else if(i.instructions.length>0){e.out.writeln(o(`
3
- Dependencies (run manually):`));for(let n of i.instructions)e.out.writeln(o(` ${n}`))}return d({recipe:s,chainResult:l,depInfo:i,installResults:u})}catch(t){let s=t instanceof Error?t.message:String(t);return c({_tag:"ApplyError",message:s})}});var j=r=>{let e={};for(let t of r){let[s,...a]=String(t).split("=");s!==void 0&&s!==""&&(e[s]=a.join("="))}return e},B=async r=>{let e=v(r??[],{string:["registry","var"],boolean:["dry-run","force","skip-existing","verbose","local","no-install"],collect:["var"]}),t=e._[0],s=b({renderer:I.ansi(),sink:h.stdout()});if(t===void 0)return s.writeln("Usage: eser kit add <recipe> [--registry <url>] [--dry-run] [--var key=value]"),s.writeln(),s.writeln("Run ",o("`eser kit list`")," to see available recipes."),await s.close(),d(void 0);let a=e["dry-run"]===!0;a?s.writeln(y(`
4
- Dry run: ${t}
5
- `)):s.writeln(y(`
6
- Adding ${t}...
7
- `));let i=await $(_({recipeName:t,cwd:w.process.cwd(),registrySource:e.registry,local:e.local===!0,dryRun:a,force:e.force===!0,skipExisting:e["skip-existing"]===!0,verbose:e.verbose===!0,noInstall:e["no-install"]===!0,variables:j(e.var)}),{out:s});return await s.close(),R(i)?d(void 0):c({exitCode:1})};export{B as main};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-TXL6YOFL.js";import"./chunk-5MN3MWQN.js";import"./chunk-OLM5RTFK.js";import"./chunk-DXB73IDG.js";export{a as AnthropicModel,b as anthropicFactory};
@@ -1 +0,0 @@
1
- import{e as w}from"./chunk-LXVBR775.js";import{d as h,e as u}from"./chunk-NT2MQK7O.js";import{f as m,h as c,k as d}from"./chunk-TTYO2XJO.js";import{c as r,d as o,e as i,f as p,j as l}from"./chunk-PLJNPQFC.js";import{a}from"./chunk-DQAEQEXD.js";import{t as n}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var D=async g=>{let e=m({renderer:d.ansi(),sink:c.stdout()}),t=n.process.cwd(),s=await h(t);if(s.phase==="SPEC_DRAFT"){let f=w(s);await u(t,f),e.writeln(p("\u2714")," Spec approved. Phase: ",l("BUILDING")),e.writeln("Run ",r("noskills next")," to start building.")}else s.phase==="DISCOVERY"&&s.discovery.completed?(e.writeln(o("Discovery complete. Spec draft already generated.")),e.writeln("Review the spec and run ",r("noskills approve")," again when in SPEC_DRAFT phase.")):e.writeln(i(`Cannot approve in phase: ${s.phase}`));return await e.close(),a(void 0)};export{D as main};
@@ -1 +0,0 @@
1
- import{g as h}from"./chunk-LXVBR775.js";import{d as w,e as f}from"./chunk-NT2MQK7O.js";import{f as c,h as d,k as u}from"./chunk-TTYO2XJO.js";import{c as i,d as l,e as m,g as p}from"./chunk-PLJNPQFC.js";import{a as o,b as n}from"./chunk-DQAEQEXD.js";import{t as a}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var A=async k=>{let e=c({renderer:u.ansi(),sink:d.stdout()}),t=a.process.cwd(),r=k?.join(" ")??"No reason given",s=await w(t);if(s.phase!=="BUILDING")return e.writeln(m(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let g=h(s,r);return await f(t,g),e.writeln(p("\u26A0")," Spec blocked: ",l(r)),e.writeln("Resolve with: ",i('noskills next --answer="resolution"')),await e.close(),o(void 0)};export{A as main};
@@ -1,7 +0,0 @@
1
- import{a as $,b as G}from"./chunk-C3PZVQ3Z.js";import{a as N}from"./chunk-RBB5ITAS.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import{a as E}from"./chunk-6U2VEZEM.js";import{a as w,b as A}from"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import{f as R}from"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import{b as u,e as h,f as y,g as v,h as x}from"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import{a as C}from"./chunk-HPPFA3XU.js";import{g as p}from"./chunk-DQAEQEXD.js";import"./chunk-WUJUQPHI.js";import"./chunk-A2GDVOQP.js";import"./chunk-GLSCZGXA.js";import"./chunk-ZE5T64HQ.js";import{v as m}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var f=w(),S={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},O=new Set(["chore","ci","test"]),T=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}(.+)$/,P=/\s{0,100}\(take\s{1,100}[IVXLCDM\d]+\)\s{0,100}\.?$/i,I=(n,t)=>{let o=n.match(T);if(o!==null)return{type:o[1].toLowerCase(),scope:o[2],message:o[3].trim(),hash:t}},b=n=>n.replace(P,"").trim(),k=n=>{let t=[];for(let o of n){let e=I(o.subject,o.hash);e!==void 0&&t.push(e)}return t},L=n=>{let t=new Set,o=[];for(let e of n){let s=b(e.message),a=s.replace(/[.\s]{1,20}$/,"").toLowerCase(),l=`${e.type}:${a}`;t.has(l)||(t.add(l),o.push({...e,message:s}))}return o},M=n=>{let t=new Map;for(let o of n){if(O.has(o.type))continue;let e=S[o.type];if(e===void 0)continue;let s=t.get(e);s!==void 0?s.push(o):t.set(e,[o])}return t},H=n=>n.scope!==void 0?`- **${n.scope}:** ${n.message}`:`- ${n.message}`,F=(n,t)=>{let o=M(t);if(o.size===0)return"";let e=new Date().toISOString().split("T")[0],s=[`## ${n} - ${e}`],a=["Added","Changed","Fixed","Removed"];for(let l of a){let r=o.get(l);if(!(r===void 0||r.length===0)){s.push("",`### ${l}`,"");for(let d of r)s.push(H(d))}}return s.join(`
2
- `)},j=(n,t,o)=>{let e=n.split(`
3
- `);if(o!==void 0){let r=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(`^##\\s+${r}\\b`),i=e.findIndex(g=>d.test(g));if(i!==-1){let g=e.length;for(let c=i+1;c<e.length;c++)if(/^##\s+/.test(e[c])){g=c;break}return e.splice(i,g-i,t),e.join(`
4
- `)}}let s=e.findIndex(r=>/^##\s+\[Unreleased\]/i.test(r));if(s===-1){let r=e.findIndex((i,g)=>g>0&&i.startsWith("## ")),d=r===-1?e.length:r;return e.splice(d,0,"",t,""),e.join(`
5
- `)}let a=-1;for(let r=s+1;r<e.length;r++)if(/^##\s+/.test(e[r])){a=r;break}let l=a===-1?e.length:a;return e.splice(l,0,t,""),e.join(`
6
- `)},V=async(n={})=>{let{root:t=".",dryRun:o=!1}=n,e=await N({root:t});if(e===void 0||e==="")throw new Error("VERSION file is missing or empty.");let s;try{s=await $()}catch{throw new Error("No git tags found. Create an initial tag first (e.g., git tag v0.0.0).")}let a=await G(s,"HEAD");if(a.length===0)throw new Error(`No commits found since ${s}. Nothing to release.`);let l=k(a),r=L(l),d=F(e,r);if(d==="")throw new Error("No user-facing changes found (all commits are chore/ci/test). Nothing to add to CHANGELOG.");if(!o){let i=m.runtime.path.join(t,"CHANGELOG.md"),g;try{g=await m.runtime.fs.readTextFile(i)}catch{throw new Error(`CHANGELOG.md not found at ${i}. Create one first.`)}let c=j(g,d,e);await m.runtime.fs.writeTextFile(i,c)}return{version:e,commitCount:a.length,entryCount:r.filter(i=>!O.has(i.type)).length,content:d,dryRun:o}},D=n=>R.fromPromise(()=>V(n)),_=n=>p.ok({dryRun:n.flags["dry-run"]===!0}),z=n=>{if(p.isFail(n))return f.writeln(h("\u2717"),u(" "+(n.error instanceof Error?n.error.message:String(n.error)))),p.fail({exitCode:1});let{value:t}=n;return t.dryRun?(f.writeln(v("\u26A0"),u(" [DRY RUN] Generated changelog preview:")),f.writeln(x("\u2139"),u(`
7
- ${t.content}`))):f.writeln(y("\u2713"),u(` Added ${t.entryCount} entries to CHANGELOG.md for v${t.version}`)),p.ok(void 0)},B=E.createTrigger({handler:D,adaptInput:_,adaptOutput:z}),ee=async n=>{let t=C(n??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),o=A("changelog-gen",t);return await B(o)};export{L as deduplicateCommits,V as generateChangelog,D as generateChangelogHandler,F as generateChangelogSection,M as groupBySection,B as handleCli,j as insertIntoChangelog,ee as main,I as parseConventionalCommit,k as parseConventionalCommits,b as stripTakeSuffix};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-GXPLME3K.js";import{t}from"./chunk-YXSB6RET.js";import{b as a}from"./chunk-ACQUINWH.js";var i=[".manifest.yml",".manifest.yaml"],l=async o=>{for(let e of i){let n=t.path.join(o,e);try{let r=await t.fs.readTextFile(n);return s(r)}catch(r){if(r instanceof a)continue;throw r}}return null},m=async o=>{for(let e of i){let n=t.path.join(o,e);try{return await t.fs.stat(n),n}catch{continue}}return null};export{i as a,l as b,m as c};
@@ -1 +0,0 @@
1
- import{t as c}from"./chunk-YXSB6RET.js";var h=["registry/v1"],w=["file","folder"],m=["local","github"],R=r=>r==="project"||r==="structure"||r==="utility",$=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.source!="string"||typeof e.target!="string"||e.kind!==void 0&&!w.includes(e.kind)||e.provider!==void 0&&!m.includes(e.provider))},b=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(e.go!==void 0&&!Array.isArray(e.go)||e.jsr!==void 0&&!Array.isArray(e.jsr)||e.npm!==void 0&&!Array.isArray(e.npm))},E=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.name!="string"||e.name===""||typeof e.description!="string"||e.default!==void 0&&typeof e.default!="string"||e.prompt!==void 0&&typeof e.prompt!="string")},d=r=>{if(typeof r!="object"||r===null)return!1;let e=r;if(typeof e.name!="string"||e.name===""||typeof e.description!="string"||typeof e.language!="string"||!R(e.scale)||!Array.isArray(e.files)||e.files.length===0)return!1;for(let t of e.files)if(!$(t))return!1;if(e.dependencies!==void 0&&!b(e.dependencies)||e.tags!==void 0&&!Array.isArray(e.tags))return!1;if(e.requires!==void 0){if(!Array.isArray(e.requires))return!1;for(let t of e.requires)if(typeof t!="string")return!1}if(e.variables!==void 0){if(!Array.isArray(e.variables))return!1;for(let t of e.variables)if(!E(t))return!1}if(e.postInstall!==void 0){if(!Array.isArray(e.postInstall))return!1;for(let t of e.postInstall)if(typeof t!="string")return!1}return!0},p=r=>{if(typeof r!="object"||r===null)throw new Error("Registry manifest must be a JSON object");let e=r;if(e.$schema!==void 0){let i=String(e.$schema);h.some(s=>i.includes(s))||console.warn(`Warning: Registry uses unknown schema "${i}". This CLI supports v1.`)}if(typeof e.name!="string"||e.name==="")throw new Error("Registry manifest requires a non-empty 'name' field");if(typeof e.description!="string")throw new Error("Registry manifest requires a 'description' field");if(typeof e.author!="string")throw new Error("Registry manifest requires an 'author' field");if(typeof e.registryUrl!="string"||e.registryUrl==="")throw new Error("Registry manifest requires a non-empty 'registryUrl' field");if(!Array.isArray(e.recipes))throw new Error("Registry manifest requires a 'recipes' array");for(let i of e.recipes)if(!d(i)){let o=typeof i=="object"&&i!==null?i.name??"<unknown>":"<invalid>";throw new Error(`Invalid recipe definition: '${o}'`)}let t=e.recipes,n=new Set;for(let i of t){if(n.has(i.name))throw new Error(`Duplicate recipe name '${i.name}' in registry`);n.add(i.name)}return r},u=r=>{if(!d(r))throw new Error("Invalid recipe definition");return r},y=(r,e)=>{let t=r.replace(/\/{1,20}$/,""),n=e.replace(/^\/{1,20}/,"");return`${t}/${n}`};var S=3e4,k="https://raw.githubusercontent.com/eser/stack/main/etc/registry/eser-registry.json",A="etc/registry/eser-registry.json",l=async r=>await globalThis.fetch(r,{signal:AbortSignal.timeout(S)}),P=async()=>{let r=c.process.cwd();for(let e=0;e<10;e++){let t=`${r}/${A}`;try{return await c.fs.stat(t),t}catch{let n=r.replace(/\/[^/]+$/,"");if(n===r)break;r=n}}},U=async(r,e)=>{let t=r??k;if(e?.local===!0&&r===void 0){let s=await P();s!==void 0&&(t=s,e?.verbose===!0&&console.log(`Using local registry: ${s}`))}let n=t.startsWith("http://")||t.startsWith("https://");e?.verbose===!0&&console.log(`Fetching registry from: ${t}`);let i;if(n){let s=await l(t);if(!s.ok)throw new Error(`Could not reach registry at ${t}. HTTP ${s.status}`);i=await s.text()}else try{i=await c.fs.readTextFile(t)}catch{throw new Error(`Could not read registry file at ${t}`)}let o;try{o=JSON.parse(i)}catch{throw new Error(`Registry at ${t} is not valid JSON`)}return p(o)},_=async(r,e)=>{let t=y(r,e),n=await l(t);if(!n.ok)throw new Error(`Could not fetch recipe file at ${t}. HTTP ${n.status}`);return await n.text()},T=r=>{let e=r.match(/^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([^/]+)(?:\/(.*))?$/);if(e!==null)return{owner:e[1],repo:e[2],ref:e[3],basePath:e[4]??""}},L=async(r,e)=>{let t=T(r);if(t===void 0)throw new Error(`Cannot fetch folder: registry URL '${r}' is not a GitHub raw URL`);let n=t.basePath?`${t.basePath}/${e}`.replace(/\/+/g,"/"):e,i=`https://api.github.com/repos/${t.owner}/${t.repo}/contents/${n}?ref=${t.ref}`,o=await l(i);if(!o.ok)throw new Error(`Could not list folder '${n}' from ${t.owner}/${t.repo}. HTTP ${o.status}`);let s=await o.json();if(!Array.isArray(s))throw new Error(`Expected directory listing for '${n}', got a file instead`);let g=s.filter(a=>a.type==="file").map(async a=>{if(a.download_url===null)throw new Error(`File '${a.path}' has no download URL (may be too large)`);let f=await l(a.download_url);if(!f.ok)throw new Error(`Could not fetch file '${a.path}'. HTTP ${f.status}`);return{path:a.path.startsWith(n)?a.path.slice(n.length).replace(/^\//,""):a.path,content:await f.text()}});return await Promise.all(g)},O=async(r,e,t="main",n="recipe.json")=>{let i=`https://raw.githubusercontent.com/${r}/${e}/${t}/${n}`,o=await l(i);if(!o.ok)throw new Error(`Could not fetch recipe from ${r}/${e}@${t}/${n}. HTTP ${o.status}`);let s;try{s=JSON.parse(await o.text())}catch{throw new Error(`Recipe file at ${r}/${e}@${t}/${n} is not valid JSON`)}return u(s)};export{S as a,k as b,A as c,l as d,P as e,U as f,_ as g,T as h,L as i,O as j};
@@ -1 +0,0 @@
1
- import{a as C,c as E}from"./chunk-AKJB4CER.js";import{a as k}from"./chunk-6U2VEZEM.js";import{a as x}from"./chunk-KAEAT6A4.js";import{f as h}from"./chunk-NUSNMQPL.js";import{b as i,e as d,f,g as u,h as g}from"./chunk-PLJNPQFC.js";import{g as n}from"./chunk-DQAEQEXD.js";import{v as c}from"./chunk-YXSB6RET.js";var l=x(),b=t=>{let e=new Set,r=/export\s+\*\s+from\s+["']([^"']+)["']/g,a=/export\s+\{[^}]*\}\s+from\s+["']([^"']+)["']/g,o=/export\s+type\s+\{[^}]*\}\s+from\s+["']([^"']+)["']/g;for(let s of t.matchAll(r))s[1]!==void 0&&e.add(s[1]);for(let s of t.matchAll(a))s[1]!==void 0&&e.add(s[1]);for(let s of t.matchAll(o))s[1]!==void 0&&e.add(s[1]);return e},y=t=>{let e=t.startsWith("./")?t.slice(2):t;return e.endsWith(".ts")&&(e=e.slice(0,-3)),e},O=t=>!(t==="mod.ts"||t.endsWith("_test.ts")||t.endsWith("_bench.ts")||t.startsWith("_")||t.includes("/")),P=async(t={})=>{let{root:e=".",failFast:r=!1}=t,a=await C(e),o=[];for(let s of a){let v=c.runtime.path.join(s.path,"mod.ts"),m;try{m=await c.runtime.fs.readTextFile(v)}catch{continue}let M=b(m),w=new Set([...M].map(p=>y(p))),A=await E(s.path);for(let p of A){let R=c.runtime.path.basename(p);if(!O(R))continue;let F=y(p);if(!w.has(F)&&(o.push({packageName:s.name,file:p}),r))return{isComplete:!1,missingExports:o,packagesChecked:a.length}}}return{isComplete:o.length===0,missingExports:o,packagesChecked:a.length}},W=t=>h.fromPromise(()=>P(t)),_=t=>n.ok({root:"."}),z=t=>{if(n.isFail(t))return l.writeln(d("\u2717"),i(" "+String(t.error))),n.fail({exitCode:1});let{value:e}=t;if(l.writeln(g("\u2139"),i(` Checked ${e.packagesChecked} packages.`)),!e.isComplete){l.writeln(d("\u2717"),i(` Found ${e.missingExports.length} missing exports:`));for(let r of e.missingExports)l.writeln(u("\u26A0"),i(` ${r.packageName}: ${r.file}`));return n.fail({exitCode:1})}return l.writeln(f("\u2713"),i(" All mod.ts exports are complete.")),n.ok(void 0)},S=k.createTrigger({handler:W,adaptInput:_,adaptOutput:z}),N=async t=>await S({command:"validate-mod-exports",args:[],flags:{}});export{P as a,W as b,S as c,N as d};
@@ -1,3 +0,0 @@
1
- import{v as p}from"./chunk-YXSB6RET.js";import{d as g}from"./chunk-DXB73IDG.js";var u=class extends Error{constructor(e,n,s,o){super(e);this.command=n;this.code=s;this.stderr=o;this.name="CommandError"}};var m=new TextDecoder,a=class r{#e;#r;#t;constructor(t,e=[],n={}){this.#e=t,this.#r=e,this.#t={throwOnError:!0,stdout:"piped",stderr:"piped",...n}}cwd(t){return new r(this.#e,this.#r,{...this.#t,cwd:t})}env(t,e){let n=this.#t.env??{},s;return typeof t=="string"&&e!==void 0?s={...n,[t]:e}:t!==null&&typeof t=="object"?s={...n,...t}:s=n,new r(this.#e,this.#r,{...this.#t,env:s})}stdin(t){return new r(this.#e,this.#r,{...this.#t,stdin:t})}stdout(t){return new r(this.#e,this.#r,{...this.#t,stdout:t})}stderr(t){return new r(this.#e,this.#r,{...this.#t,stderr:t})}timeout(t){return new r(this.#e,this.#r,{...this.#t,timeout:t})}noThrow(){return new r(this.#e,this.#r,{...this.#t,throwOnError:!1})}quiet(){return new r(this.#e,this.#r,{...this.#t,stdout:"null",stderr:"null"})}printCommand(){let t=[this.#e,...this.#r].join(" ");return console.log(`$ ${t}`),this}async spawn(){let{runtime:t}=p,e=await t.exec.spawn(this.#e,this.#r,{cwd:this.#t.cwd,env:this.#t.env,stdin:this.#t.stdin,stdout:this.#t.stdout,stderr:this.#t.stderr});if(!e.success&&this.#t.throwOnError===!0){let n=m.decode(e.stderr);throw new u(`Command failed with exit code ${e.code}: ${this.#e}`,this.#e,e.code,n)}return e}async text(t="stdout"){let e=await this.spawn();switch(t){case"stdout":return m.decode(e.stdout).trim();case"stderr":return m.decode(e.stderr).trim();case"combined":return(m.decode(e.stdout)+m.decode(e.stderr)).trim()}}async json(){let t=await this.text();return JSON.parse(t)}async lines(){let t=await this.text();return t===""?[]:t.split(`
2
- `)}async bytes(){return(await this.spawn()).stdout}async code(){return(await this.noThrow().spawn()).code}pipe(t){return new h([this,t])}child(){let{runtime:t}=p;return t.exec.spawnChild(this.#e,this.#r,{cwd:this.#t.cwd,env:this.#t.env,stdin:this.#t.stdin??"piped",stdout:this.#t.stdout??"piped",stderr:this.#t.stderr??"piped"})}},h=class r{#e;constructor(t){this.#e=t}pipe(t){return new r([...this.#e,t])}async text(){let t="";for(let e of this.#e){let n=await e.spawn();t=m.decode(n.stdout)}return t.trim()}async lines(){let t=await this.text();return t===""?[]:t.split(`
3
- `)}};var l=(r,t)=>{let e=[];for(let s=0;s<r.length;s++){let o=r[s];if(o!==void 0&&e.push(o),s<t.length){let i=t[s];Array.isArray(i)?e.push(i.map(c=>w(String(c))).join(" ")):i!=null&&e.push(w(String(i)))}}let n=e.join("").trim();return C(n)},w=r=>/[\s"'\\$`]/.test(r)?`'${r.replace(/'/g,"'\\''")}'`:r,C=r=>{let t=[],e="",n=!1,s=!1,o=!1;for(let c=0;c<r.length;c++){let d=r[c];if(o){e+=d,o=!1;continue}if(d==="\\"){o=!0;continue}if(d==="'"&&!s){n=!n;continue}if(d==='"'&&!n){s=!s;continue}if(d===" "&&!n&&!s){e.length>0&&(t.push(e),e="");continue}e+=d}e.length>0&&t.push(e);let i=t[0];return i===void 0?["",[]]:[i,t.slice(1)]};var f=(r,...t)=>{let[e,n]=l(r,t);return new a(e,n)};var y={};g(y,{CommandBuilder:()=>a,CommandError:()=>u,exec:()=>f,parseCommand:()=>l});export{a,f as b,y as c};
@@ -1 +0,0 @@
1
- var s=[{id:"open-source",name:"Open Source",description:"Community-driven, inclusive, well-documented. Prioritize contributor experience, avoid exclusionary patterns, default to permissive choices.",extras:[{questionId:"status_quo",text:"Is this workaround common in the community?"},{questionId:"user_impact",text:"Does this make contribution harder?"}],specSections:["Contributor Guide","Public API Surface"],reminders:["Endpoint should be documented in API docs","Consider contributor experience for new patterns","Default to permissive, well-documented choices"]},{id:"beautiful-product",name:"Beautiful Product",description:"Design and UX are first-class. Agent critiques UI/UX like a passionate designer. Empty states, error states, loading states, mobile layout \u2014 nothing ships unspecified.",extras:[{questionId:"status_quo",text:"How painful is the current experience?"},{questionId:"ambition",text:"In the 10-star version, what does the user feel?"}],specSections:["Design States (empty, loading, error, success)","Mobile Layout","Interaction Design"],reminders:["Loading state and error state must be designed, not placeholder","No AI slop \u2014 every UI element is intentional","Empty states need clear CTAs with examples"]},{id:"long-lived",name:"Long-Lived",description:"Built to last. Stability, maintainability, and backward compatibility matter. Every shortcut needs justification. Favor boring technology.",extras:[{questionId:"reversibility",text:"Will this decision still be correct in 2 years?"},{questionId:"scope_boundary",text:"What technical debt would this introduce?"}],specSections:["Migration & Deprecation","Backward Compatibility"],reminders:["Favor boring technology over shiny new tools","Every shortcut needs explicit justification","Consider maintenance burden for new dependencies"]},{id:"move-fast",name:"Move Fast",description:"Optimize for shipping speed. Acceptable trade-offs on polish. Good enough is good enough. Reduce ceremony.",extras:[{questionId:"scope_boundary",text:"Which polish items can be deferred to v2?"},{questionId:"ambition",text:"What is the minimum viable 5-star version?"}],specSections:["v1 vs v2 Scope"],reminders:["Good enough is good enough \u2014 ship it","Reduce ceremony, optimize for feedback speed","Mark polish items for v2 explicitly"]},{id:"compliance",name:"Compliance",description:"Audit trails, access controls, data handling rules. Every change is traceable. Verification is mandatory, not optional.",extras:[{questionId:"reversibility",text:"Is the audit trail preserved on rollback?"},{questionId:"verification",text:"Is there an audit/traceability requirement?"}],specSections:["Audit Trail","Access Control","Data Handling"],reminders:["Every state change must be traceable","Verification is mandatory, not optional","Document data handling and retention policies"]},{id:"learning-project",name:"Learning Project",description:"Experimentation is the goal. Encourage trying new patterns, don't punish dead ends. Document learnings over polish.",extras:[{questionId:"ambition",text:"What do you want to learn from building this?"},{questionId:"scope_boundary",text:"What experiments are explicitly allowed?"}],specSections:["Learning Goals","Experiment Log"],reminders:["Document learnings, not just outcomes","Dead ends are acceptable \u2014 document why","Try new patterns freely, polish later"]}],r=(i,t)=>{let e=[];for(let n of i)for(let o of n.extras)o.questionId===t&&e.push(o);return e},a=i=>{let t=[];for(let e of i)for(let n of e.reminders)t.push(`${e.id}: ${n}`);return t},c=i=>{let t=[],e=i.map(n=>n.id);return e.includes("move-fast")&&e.includes("compliance")&&t.push({between:["move-fast","compliance"],issue:"Speed vs traceability \u2014 shortcuts may violate audit requirements."}),e.includes("move-fast")&&e.includes("long-lived")&&t.push({between:["move-fast","long-lived"],issue:"Shipping speed vs maintainability \u2014 tech debt decisions need human approval."}),e.includes("beautiful-product")&&e.includes("move-fast")&&t.push({between:["beautiful-product","move-fast"],issue:"Design polish vs speed \u2014 which UI states can be deferred?"}),t};export{s as a,r as b,a as c,c as d};
File without changes
@@ -1,14 +0,0 @@
1
- function S(t){return t===10||t===13}function T(t){return t===9||t===32}function g(t){return T(t)||S(t)}function y(t){return t===44||t===91||t===93||t===123||t===125}var Y=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
2
- \r`;function He(t){if(t===null)return!1;let e,n=0,s=t.length,i=Y;for(let r=0;r<s;r++)if(e=i.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function Ke(t){let e=t.replace(/[\r\n=]/g,""),n=e.length,s=Y,i=[],r=0;for(let l=0;l<n;l++)l%4===0&&l&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|s.indexOf(e.charAt(l));let o=n%4*6;return o===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):o===18?(i.push(r>>10&255),i.push(r>>2&255)):o===12&&i.push(r>>4&255),new Uint8Array(i)}function Ge(t){let e=t.length,n=Y,s="",i=0;for(let o=0;o<e;o++)o%3===0&&o&&(s+=n[i>>18&63],s+=n[i>>12&63],s+=n[i>>6&63],s+=n[i&63]),i=(i<<8)+t[o];let r=e%3;return r===0?(s+=n[i>>18&63],s+=n[i>>12&63],s+=n[i>>6&63],s+=n[i&63]):r===2?(s+=n[i>>10&63],s+=n[i>>4&63],s+=n[i<<2&63],s+=n[64]):r===1&&(s+=n[i>>2&63],s+=n[i<<4&63],s+=n[64],s+=n[64]),s}function qe(t){return t instanceof Uint8Array}var ee={tag:"tag:yaml.org,2002:binary",construct:Ke,kind:"scalar",predicate:qe,represent:Ge,resolve:He};var te=["true","True","TRUE"],We=["false","False","FALSE"],Qe=[...te,...We],ie={tag:"tag:yaml.org,2002:bool",kind:"scalar",defaultStyle:"lowercase",predicate:t=>typeof t=="boolean"||t instanceof Boolean,construct:t=>te.includes(t),resolve:t=>Qe.includes(t),represent:{lowercase:t=>(t instanceof Boolean?t.valueOf():t)?"true":"false",uppercase:t=>(t instanceof Boolean?t.valueOf():t)?"TRUE":"FALSE",camelcase:t=>(t instanceof Boolean?t.valueOf():t)?"True":"False"}};function H(t){return t!==null&&typeof t=="object"}function I(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}function C(t){return Object.prototype.toString.call(t)==="[object Object]"}var je=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Xe(t){return!(!je.test(t)||t[t.length-1]==="_")}function Ve(t){let e=t.replace(/_/g,"").toLowerCase(),n=e[0]==="-"?-1:1;return e[0]&&"+-".includes(e[0])&&(e=e.slice(1)),e===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:n*parseFloat(e)}var ze=/^[-+]?[0-9]+e/;function Ze(t,e){let n=t instanceof Number?t.valueOf():t;if(isNaN(n))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===n)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===n)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(I(n))return"-0.0";let s=n.toString(10);return ze.test(s)?s.replace("e",".e"):s}function Je(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&(t%1!==0||I(t))}var ne={tag:"tag:yaml.org,2002:float",construct:Ve,defaultStyle:"lowercase",kind:"scalar",predicate:Je,represent:Ze,resolve:Xe};function L(t,e,n){return e<=t&&t<=n}function et(t){return L(t,48,57)||L(t,65,70)||L(t,97,102)}function tt(t){return L(t,48,55)}function it(t){return L(t,48,57)}function nt(t){let e=t.length,n=0,s=!1;if(!e)return!1;let i=t[n];if((i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===e)return!0;if(i=t[++n],i==="b"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;s=!0}return s&&i!=="_"}if(i==="x"){for(n++;n<e;n++)if(i=t[n],i!=="_"){if(!et(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}for(;n<e;n++)if(i=t[n],i!=="_"){if(!tt(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}if(i==="_")return!1;for(;n<e;n++)if(i=t[n],i!=="_"){if(!it(t.charCodeAt(n)))return!1;s=!0}return!s||i==="_"?!1:/^(:[0-5]?[0-9])+$/.test(t.slice(n))}function st(t){let e=t;e.includes("_")&&(e=e.replace(/_/g,""));let n=1,s=e[0];return(s==="-"||s==="+")&&(s==="-"&&(n=-1),e=e.slice(1),s=e[0]),e==="0"?0:s==="0"?e[1]==="b"?n*parseInt(e.slice(2),2):e[1]==="x"?n*parseInt(e,16):n*parseInt(e,8):n*parseInt(e,10)}function rt(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&t%1===0&&!I(t)}var se={tag:"tag:yaml.org,2002:int",construct:st,defaultStyle:"decimal",kind:"scalar",predicate:rt,represent:{binary(t){let e=t instanceof Number?t.valueOf():t;return e>=0?`0b${e.toString(2)}`:`-0b${e.toString(2).slice(1)}`},octal(t){let e=t instanceof Number?t.valueOf():t;return e>=0?`0${e.toString(8)}`:`-0${e.toString(8).slice(1)}`},decimal(t){return(t instanceof Number?t.valueOf():t).toString(10)},hexadecimal(t){let e=t instanceof Number?t.valueOf():t;return e>=0?`0x${e.toString(16).toUpperCase()}`:`-0x${e.toString(16).toUpperCase().slice(1)}`}},resolve:nt};var re={tag:"tag:yaml.org,2002:map",resolve(){return!0},construct(t){return t!==null?t:{}},kind:"mapping"};var oe={tag:"tag:yaml.org,2002:merge",kind:"scalar",resolve:t=>t==="<<"||t===null,construct:t=>t};var ae={tag:"tag:yaml.org,2002:null",kind:"scalar",defaultStyle:"lowercase",predicate:t=>t===null,construct:()=>null,resolve:t=>t==="~"||t==="null"||t==="Null"||t==="NULL",represent:{lowercase:()=>"null",uppercase:()=>"NULL",camelcase:()=>"Null"}};function ot(t){let e=new Set;for(let n of t){if(!C(n))return!1;let s=Object.keys(n);if(s.length!==1)return!1;for(let i of s){if(e.has(i))return!1;e.add(i)}}return!0}var le={tag:"tag:yaml.org,2002:omap",kind:"sequence",resolve:ot,construct(t){return t}};function at(t){return t===null?!0:t.every(e=>C(e)&&Object.keys(e).length===1)}var ce={tag:"tag:yaml.org,2002:pairs",construct(t){return t?.flatMap(Object.entries)??[]},kind:"sequence",resolve:at};var he=/^\/(?<regexp>[\s\S]+)\/(?<modifiers>[gismuy]*)$/,fe={tag:"tag:yaml.org,2002:js/regexp",kind:"scalar",resolve(t){if(t===null||!t.length)return!1;if(t.charAt(0)==="/"){let e=t.match(he)?.groups;if(!e)return!1;let n=e.modifiers??"";if(new Set(n).size<n.length)return!1}return!0},construct(t){let{regexp:e=t,modifiers:n=""}=t.match(he)?.groups??{};return new RegExp(e,n)},predicate:t=>t instanceof RegExp,represent:t=>t.toString()};var pe={tag:"tag:yaml.org,2002:seq",kind:"sequence",resolve:()=>!0,construct:t=>t!==null?t:[]};var ue={tag:"tag:yaml.org,2002:set",kind:"mapping",construct:t=>t!==null?t:{},resolve:t=>t===null?!0:Object.values(t).every(e=>e===null)};var de={tag:"tag:yaml.org,2002:str",kind:"scalar",resolve:()=>!0,construct:t=>t!==null?t:""};var xe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),me=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lt(t){return t===null?!1:xe.exec(t)!==null||me.exec(t)!==null}function ct(t){let e=xe.exec(t);if(e===null&&(e=me.exec(t)),e===null)throw new Error("Cannot construct YAML timestamp: date resolve error");let n=+e[1],s=+e[2]-1,i=+e[3];if(!e[4])return new Date(Date.UTC(n,s,i));let r=+e[4],o=+e[5],l=+e[6],a=0;if(e[7]){let h=e[7].slice(0,3);for(;h.length<3;)h+="0";a=+h}let f=null;if(e[9]&&e[10]){let h=+e[10],u=+(e[11]||0);f=(h*60+u)*6e4,e[9]==="-"&&(f=-f)}let c=new Date(Date.UTC(n,s,i,r,o,l,a));return f&&c.setTime(c.getTime()-f),c}function ht(t){return t.toISOString()}var ge={tag:"tag:yaml.org,2002:timestamp",construct:ct,predicate(t){return t instanceof Date},kind:"scalar",represent:ht,resolve:lt};var Se={tag:"tag:yaml.org,2002:js/undefined",kind:"scalar",resolve(){return!0},construct(){},predicate(t){return typeof t>"u"},represent(){return""}};function ft(t,e){let n={fallback:new Map,mapping:new Map,scalar:new Map,sequence:new Map},s=n.fallback;for(let i of[...t,...e])n[i.kind].set(i.tag,i),s.set(i.tag,i);return n}function N({explicitTypes:t=[],implicitTypes:e=[],include:n}){n&&(e.push(...n.implicitTypes),t.push(...n.explicitTypes));let s=ft(e,t);return{implicitTypes:e,explicitTypes:t,typeMap:s}}var ke=N({explicitTypes:[de,pe,re]}),Ee=N({implicitTypes:[ae,ie,se,ne],include:ke}),we=N({include:Ee}),M=N({explicitTypes:[ee,le,ce,ue],implicitTypes:[ge,oe],include:we}),pt=N({explicitTypes:[fe,Se],include:M}),K=new Map([["core",we],["default",M],["failsafe",ke],["json",Ee],["extended",pt]]);var D=1,Ce=2,_e=3,P=4,G=1,mt=2,Ie=3,gt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,St=/[\x85\u2028\u2029]/,kt=/[,\[\]\{\}]/,Le=/^(?:!|!!|![a-z\-]+!)$/i,Ne=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,Et=new Map([[120,2],[117,4],[85,8]]),Me=new Map([[48,"\0"],[97,"\x07"],[98,"\b"],[116," "],[9," "],[110,`
3
- `],[118,"\v"],[102,"\f"],[114,"\r"],[101,"\x1B"],[32," "],[34,'"'],[47,"/"],[92,"\\"],[78,"\x85"],[95,"\xA0"],[76,"\u2028"],[80,"\u2029"]]);function wt(t){if(48<=t&&t<=57)return t-48;let e=t|32;return 97<=e&&e<=102?e-97+10:-1}function At(t){return 48<=t&&t<=57?t-48:-1}function Tt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Oe=4,be=75,Re=`\0\r
4
- \x85\u2028\u2029`;function yt(t,e){if(!t)return null;let n=e,s=e,i="",r="";for(;n>0&&!Re.includes(t.charAt(n-1));)if(n--,e-n>be/2-1){i=" ... ",n+=5;break}for(;s<t.length&&!Re.includes(t.charAt(s));)if(s++,s-e>be/2-1){r=" ... ",s-=5;break}let o=t.slice(n,s),l=" ".repeat(Oe),a=" ".repeat(Oe+e-n+i.length);return`${l+i+o+r}
5
- ${a}^`}function Ct(t,e,n,s){let i=`at line ${n+1}, column ${s+1}`,r=yt(t,e);return r&&(i+=`:
6
- ${r}`),i}function Fe(t,e){return t>e?1:t<e?-1:0}function q(t){return t===1?" ":t>1?`
7
- `.repeat(t-1):""}var z=class{source;#e;position=0;constructor(e){e+="\0",this.source=e,this.#e=e.length}peek(e=0){return this.source.charCodeAt(this.position+e)}next(){this.position+=1}eof(){return this.position>=this.#e-1}},U=class{#e;lineIndent=0;lineStart=0;line=0;onWarning;allowDuplicateKeys;implicitTypes;typeMap;checkLineBreaks=!1;tagMap=new Map;anchorMap=new Map;constructor(e,{schema:n=M,onWarning:s,allowDuplicateKeys:i=!1}){this.#e=new z(e),this.onWarning=s,this.allowDuplicateKeys=i,this.implicitTypes=n.implicitTypes,this.typeMap=n.typeMap,this.readIndent()}skipWhitespaces(){let e=this.#e.peek();for(;T(e);)this.#e.next(),e=this.#e.peek()}skipComment(){let e=this.#e.peek();if(e===35)for(this.#e.next(),e=this.#e.peek();e!==0&&!S(e);)this.#e.next(),e=this.#e.peek()}readIndent(){let e=this.#e.peek();for(;e===32;)this.lineIndent+=1,this.#e.next(),e=this.#e.peek()}#t(e){let n=Ct(this.#e.source,this.#e.position,this.line,this.#e.position-this.lineStart);return new SyntaxError(`${e} ${n}`)}dispatchWarning(e){let n=this.#t(e);this.onWarning?.(n)}yamlDirectiveHandler(e){if(e.length!==1)throw this.#t("Cannot handle YAML directive: YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(e[0]);if(n===null)throw this.#t("Cannot handle YAML directive: ill-formed argument");let s=parseInt(n[1],10),i=parseInt(n[2],10);if(s!==1)throw this.#t("Cannot handle YAML directive: unacceptable YAML version");return this.checkLineBreaks=i<2,i!==1&&i!==2&&this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version"),e[0]??null}tagDirectiveHandler(e){if(e.length!==2)throw this.#t(`Cannot handle tag directive: directive accepts exactly two arguments, received ${e.length}`);let n=e[0],s=e[1];if(!Le.test(n))throw this.#t(`Cannot handle tag directive: ill-formed handle (first argument) in "${n}"`);if(this.tagMap.has(n))throw this.#t(`Cannot handle tag directive: previously declared suffix for "${n}" tag handle`);if(!Ne.test(s))throw this.#t("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");this.tagMap.set(n,s)}captureSegment(e,n,s){if(e<n){let i=this.#e.source.slice(e,n);if(s)for(let r=0;r<i.length;r++){let o=i.charCodeAt(r);if(!(o===9||32<=o&&o<=1114111))throw this.#t(`Expected valid JSON character: received "${o}"`)}else if(gt.test(i))throw this.#t("Stream contains non-printable characters");return i}}readBlockSequence(e,n,s){let i=!1,r=[];n!==null&&this.anchorMap.set(n,r);let o=this.#e.peek();for(;o!==0&&o===45;){let l=this.#e.peek(1);if(!g(l))break;if(i=!0,this.#e.next(),this.skipSeparationSpace(!0,-1)&&this.lineIndent<=s){r.push(null),o=this.#e.peek();continue}let a=this.line,f=this.composeNode({parentIndent:s,nodeContext:_e,allowToSeek:!1,allowCompact:!0});if(f&&r.push(f.result),this.skipSeparationSpace(!0,-1),o=this.#e.peek(),(this.line===a||this.lineIndent>s)&&o!==0)throw this.#t("Cannot read block sequence: bad indentation of a sequence entry");if(this.lineIndent<s)break}if(i)return{tag:e,anchor:n,kind:"sequence",result:r}}mergeMappings(e,n,s){if(!H(n))throw this.#t("Cannot merge mappings: the provided source object is unacceptable");for(let[i,r]of Object.entries(n))Object.hasOwn(e,i)||(Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),s.add(i))}storeMappingPair(e,n,s,i,r,o,l){if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(let a=0;a<i.length;a++){if(Array.isArray(i[a]))throw this.#t("Cannot store mapping pair: nested arrays are not supported inside keys");typeof i=="object"&&C(i[a])&&(i[a]="[object Object]")}}if(typeof i=="object"&&C(i)&&(i="[object Object]"),i=String(i),s==="tag:yaml.org,2002:merge")if(Array.isArray(r))for(let a=0;a<r.length;a++)this.mergeMappings(e,r[a],n);else this.mergeMappings(e,r,n);else{if(!this.allowDuplicateKeys&&!n.has(i)&&Object.hasOwn(e,i))throw this.line=o||this.line,this.#e.position=l||this.#e.position,this.#t("Cannot store mapping pair: duplicated key");Object.defineProperty(e,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),n.delete(i)}return e}readLineBreak(){let e=this.#e.peek();if(e===10)this.#e.next();else if(e===13)this.#e.next(),this.#e.peek()===10&&this.#e.next();else throw this.#t("Cannot read line: line break not found");this.line+=1,this.lineStart=this.#e.position}skipSeparationSpace(e,n){let s=0,i=this.#e.peek();for(;i!==0&&(this.skipWhitespaces(),i=this.#e.peek(),e&&(this.skipComment(),i=this.#e.peek()),S(i));)this.readLineBreak(),i=this.#e.peek(),s++,this.lineIndent=0,this.readIndent(),i=this.#e.peek();return n!==-1&&s!==0&&this.lineIndent<n&&this.dispatchWarning("deficient indentation"),s}testDocumentSeparator(){let e=this.#e.peek();return!!((e===45||e===46)&&e===this.#e.peek(1)&&e===this.#e.peek(2)&&(e=this.#e.peek(3),e===0||g(e)))}readPlainScalar(e,n,s,i){let r=this.#e.peek();if(g(r)||y(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96)return;let o;if((r===63||r===45)&&(o=this.#e.peek(1),g(o)||i&&y(o)))return;let l="",a=this.#e.position,f=this.#e.position,c=!1,h=0;for(;r!==0;){if(r===58){if(o=this.#e.peek(1),g(o)||i&&y(o))break}else if(r===35){let p=this.#e.peek(-1);if(g(p))break}else{if(this.#e.position===this.lineStart&&this.testDocumentSeparator()||i&&y(r))break;if(S(r)){h=this.line;let p=this.lineStart,d=this.lineIndent;if(this.skipSeparationSpace(!1,-1),this.lineIndent>=s){c=!0,r=this.#e.peek();continue}else{this.#e.position=a,this.line=h,this.lineStart=p,this.lineIndent=d;break}}}if(c){let p=this.captureSegment(f,a,!1);p&&(l+=p),l+=q(this.line-h),f=a=this.#e.position,c=!1}T(r)||(a=this.#e.position+1),this.#e.next(),r=this.#e.peek()}let u=this.captureSegment(f,a,!1);if(u&&(l+=u),n!==null&&this.anchorMap.set(n,l),l)return{tag:e,anchor:n,kind:"scalar",result:l}}readSingleQuotedScalar(e,n,s){let i=this.#e.peek();if(i!==39)return;let r="";this.#e.next();let o=this.#e.position,l=this.#e.position;for(i=this.#e.peek();i!==0;){if(i===39){let a=this.captureSegment(o,this.#e.position,!0);if(a&&(r+=a),this.#e.next(),i=this.#e.peek(),i===39)o=this.#e.position,this.#e.next(),l=this.#e.position;else return n!==null&&this.anchorMap.set(n,r),{tag:e,anchor:n,kind:"scalar",result:r}}else if(S(i)){let a=this.captureSegment(o,l,!0);a&&(r+=a),r+=q(this.skipSeparationSpace(!1,s)),o=l=this.#e.position}else{if(this.#e.position===this.lineStart&&this.testDocumentSeparator())throw this.#t("Unexpected end of the document within a single quoted scalar");this.#e.next(),l=this.#e.position}i=this.#e.peek()}throw this.#t("Unexpected end of the stream within a single quoted scalar")}readDoubleQuotedScalar(e,n,s){let i=this.#e.peek();if(i!==34)return;let r="";this.#e.next();let o=this.#e.position,l=this.#e.position,a;for(i=this.#e.peek();i!==0;){if(i===34){let f=this.captureSegment(l,this.#e.position,!0);return f&&(r+=f),this.#e.next(),n!==null&&this.anchorMap.set(n,r),{tag:e,anchor:n,kind:"scalar",result:r}}if(i===92){let f=this.captureSegment(l,this.#e.position,!0);if(f&&(r+=f),this.#e.next(),i=this.#e.peek(),S(i))this.skipSeparationSpace(!1,s);else if(i<256&&Me.has(i))r+=Me.get(i),this.#e.next();else if((a=Et.get(i)??0)>0){let c=a,h=0;for(;c>0;c--)if(this.#e.next(),i=this.#e.peek(),(a=wt(i))>=0)h=(h<<4)+a;else throw this.#t("Cannot read double quoted scalar: expected hexadecimal character");r+=Tt(h),this.#e.next()}else throw this.#t("Cannot read double quoted scalar: unknown escape sequence");l=o=this.#e.position}else if(S(i)){let f=this.captureSegment(l,o,!0);f&&(r+=f),r+=q(this.skipSeparationSpace(!1,s)),l=o=this.#e.position}else{if(this.#e.position===this.lineStart&&this.testDocumentSeparator())throw this.#t("Unexpected end of the document within a double quoted scalar");this.#e.next(),o=this.#e.position}i=this.#e.peek()}throw this.#t("Unexpected end of the stream within a double quoted scalar")}readFlowCollection(e,n,s){let i=this.#e.peek(),r,o=!0,l={};if(i===91)r=93,o=!1,l=[];else if(i===123)r=125;else return;n!==null&&this.anchorMap.set(n,l),this.#e.next(),i=this.#e.peek();let a=!0,f=null,c=null,h=null,u=!1,p=!1,d=0,x=0,E=new Set;for(;i!==0;){if(this.skipSeparationSpace(!0,s),i=this.#e.peek(),i===r)return this.#e.next(),{tag:e,anchor:n,kind:o?"mapping":"sequence",result:l};if(!a)throw this.#t("Cannot read flow collection: missing comma between flow collection entries");h=c=f=null,p=u=!1,i===63&&(d=this.#e.peek(1),g(d)&&(p=u=!0,this.#e.next(),this.skipSeparationSpace(!0,s))),x=this.line;let m=this.composeNode({parentIndent:s,nodeContext:D,allowToSeek:!1,allowCompact:!0});if(m&&(h=m.tag||null,c=m.result),this.skipSeparationSpace(!0,s),i=this.#e.peek(),(u||this.line===x)&&i===58){p=!0,this.#e.next(),i=this.#e.peek(),this.skipSeparationSpace(!0,s);let k=this.composeNode({parentIndent:s,nodeContext:D,allowToSeek:!1,allowCompact:!0});k&&(f=k.result)}o?this.storeMappingPair(l,E,h,c,f):p?l.push(this.storeMappingPair({},E,h,c,f)):l.push(c),this.skipSeparationSpace(!0,s),i=this.#e.peek(),i===44?(a=!0,this.#e.next(),i=this.#e.peek()):a=!1}throw this.#t("Cannot read flow collection: unexpected end of the stream within a flow collection")}readBlockScalar(e,n,s){let i=G,r=!1,o=!1,l=s,a=0,f=!1,c=this.#e.peek(),h=!1;if(c===124)h=!1;else if(c===62)h=!0;else return;let u="",p=0;for(;c!==0;)if(this.#e.next(),c=this.#e.peek(),c===43||c===45)if(G===i)i=c===43?Ie:mt;else throw this.#t("Cannot read block: chomping mode identifier repeated");else if((p=At(c))>=0){if(p===0)throw this.#t("Cannot read block: indentation width must be greater than 0");if(!o)l=s+p-1,o=!0;else throw this.#t("Cannot read block: indentation width identifier repeated")}else break;for(T(c)&&(this.skipWhitespaces(),this.skipComment(),c=this.#e.peek());c!==0;){for(this.readLineBreak(),this.lineIndent=0,c=this.#e.peek();(!o||this.lineIndent<l)&&c===32;)this.lineIndent++,this.#e.next(),c=this.#e.peek();if(!o&&this.lineIndent>l&&(l=this.lineIndent),S(c)){a++;continue}if(this.lineIndent<l){i===Ie?u+=`
8
- `.repeat(r?1+a:a):i===G&&r&&(u+=`
9
- `);break}h?T(c)?(f=!0,u+=`
10
- `.repeat(r?1+a:a)):f?(f=!1,u+=`
11
- `.repeat(a+1)):a===0?r&&(u+=" "):u+=`
12
- `.repeat(a):u+=`
13
- `.repeat(r?1+a:a),r=!0,o=!0,a=0;let d=this.#e.position;for(;!S(c)&&c!==0;)this.#e.next(),c=this.#e.peek();let x=this.captureSegment(d,this.#e.position,!1);x&&(u+=x)}return n!==null&&this.anchorMap.set(n,u),{tag:e,anchor:n,kind:"scalar",result:u}}readBlockMapping(e,n,s,i){let r={},o=new Set,l=!1,a,f,c=null,h=null,u=null,p=!1,d=!1;n!==null&&this.anchorMap.set(n,r);let x=this.#e.peek();for(;x!==0;){let E=this.#e.peek(1);if(a=this.line,f=this.#e.position,(x===63||x===58)&&g(E)){if(x===63)p&&(this.storeMappingPair(r,o,c,h,null),c=null,h=null,u=null),d=!0,p=!0,l=!0;else if(p)p=!1,l=!0;else throw this.#t("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");this.#e.next(),x=E}else{let m=this.composeNode({parentIndent:i,nodeContext:Ce,allowToSeek:!1,allowCompact:!0});if(!m)break;if(this.line===a)if(x=this.#e.peek(),this.skipWhitespaces(),x=this.#e.peek(),x===58){if(this.#e.next(),x=this.#e.peek(),!g(x))throw this.#t("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");p&&(this.storeMappingPair(r,o,c,h,null),c=null,h=null,u=null),d=!0,p=!1,l=!1,c=m.tag,h=m.result}else{if(d)throw this.#t("Cannot read an implicit mapping pair: missing colon");{let{kind:k,result:A}=m;return{tag:e,anchor:n,kind:k,result:A}}}else{if(d)throw this.#t("Cannot read a block mapping entry: a multiline key may not be an implicit key");{let{kind:k,result:A}=m;return{tag:e,anchor:n,kind:k,result:A}}}}if(this.line===a||this.lineIndent>s){let m=this.composeNode({parentIndent:s,nodeContext:P,allowToSeek:!0,allowCompact:l});m&&(p?h=m.result:u=m.result),p||(this.storeMappingPair(r,o,c,h,u,a,f),c=h=u=null),this.skipSeparationSpace(!0,-1),x=this.#e.peek()}if(this.lineIndent>s&&x!==0)throw this.#t("Cannot read block: bad indentation of a mapping entry");if(this.lineIndent<s)break}if(p&&this.storeMappingPair(r,o,c,h,null),d)return{tag:e,anchor:n,kind:"mapping",result:r}}readTagProperty(e){let n=!1,s=!1,i="",r,o=this.#e.peek();if(o!==33)return;if(e!==null)throw this.#t("Cannot read tag property: duplication of a tag property");this.#e.next(),o=this.#e.peek(),o===60?(n=!0,this.#e.next(),o=this.#e.peek()):o===33?(s=!0,i="!!",this.#e.next(),o=this.#e.peek()):i="!";let l=this.#e.position;if(n){do this.#e.next(),o=this.#e.peek();while(o!==0&&o!==62);if(!this.#e.eof())r=this.#e.source.slice(l,this.#e.position),this.#e.next(),o=this.#e.peek();else throw this.#t("Cannot read tag property: unexpected end of stream")}else{for(;o!==0&&!g(o);){if(o===33){if(s)throw this.#t("Cannot read tag property: tag suffix cannot contain an exclamation mark");if(i=this.#e.source.slice(l-1,this.#e.position+1),!Le.test(i))throw this.#t("Cannot read tag property: named tag handle contains invalid characters");s=!0,l=this.#e.position+1}this.#e.next(),o=this.#e.peek()}if(r=this.#e.source.slice(l,this.#e.position),kt.test(r))throw this.#t("Cannot read tag property: tag suffix cannot contain flow indicator characters")}if(r&&!Ne.test(r))throw this.#t(`Cannot read tag property: invalid characters in tag name "${r}"`);if(n)return r;if(this.tagMap.has(i))return this.tagMap.get(i)+r;if(i==="!")return`!${r}`;if(i==="!!")return`tag:yaml.org,2002:${r}`;throw this.#t(`Cannot read tag property: undeclared tag handle "${i}"`)}readAnchorProperty(e){let n=this.#e.peek();if(n!==38)return;if(e!==null)throw this.#t("Cannot read anchor property: duplicate anchor property");this.#e.next(),n=this.#e.peek();let s=this.#e.position;for(;n!==0&&!g(n)&&!y(n);)this.#e.next(),n=this.#e.peek();if(this.#e.position===s)throw this.#t("Cannot read anchor property: name of an anchor node must contain at least one character");return this.#e.source.slice(s,this.#e.position)}readAlias(){if(this.#e.peek()!==42)return;this.#e.next();let e=this.#e.peek(),n=this.#e.position;for(;e!==0&&!g(e)&&!y(e);)this.#e.next(),e=this.#e.peek();if(this.#e.position===n)throw this.#t("Cannot read alias: alias name must contain at least one character");let s=this.#e.source.slice(n,this.#e.position);if(!this.anchorMap.has(s))throw this.#t(`Cannot read alias: unidentified alias "${s}"`);return this.skipSeparationSpace(!0,-1),this.anchorMap.get(s)}resolveTag(e){switch(e.tag){case null:case"!":return e;case"?":{for(let l of this.implicitTypes){if(!l.resolve(e.result))continue;let a=l.construct(e.result);e.result=a,e.tag=l.tag;let{anchor:f}=e;return f!==null&&this.anchorMap.set(f,a),e}return e}}let n=e.kind??"fallback",i=this.typeMap[n].get(e.tag);if(!i)throw this.#t(`Cannot resolve unknown tag !<${e.tag}>`);if(e.result!==null&&i.kind!==e.kind)throw this.#t(`Unacceptable node kind for !<${e.tag}> tag: it should be "${i.kind}", not "${e.kind}"`);if(!i.resolve(e.result))throw this.#t(`Cannot resolve a node with !<${e.tag}> explicit tag`);let r=i.construct(e.result);e.result=r;let{anchor:o}=e;return o!==null&&this.anchorMap.set(o,r),e}composeNode({parentIndent:e,nodeContext:n,allowToSeek:s,allowCompact:i}){let r=1,o=!1,l=P===n||_e===n,a=l,f=l;s&&this.skipSeparationSpace(!0,-1)&&(o=!0,r=Fe(this.lineIndent,e));let c=null,h=null;if(r===1)for(;;){let p=this.readTagProperty(c);if(p)c=p;else{let d=this.readAnchorProperty(h);if(!d)break;h=d}this.skipSeparationSpace(!0,-1)?(o=!0,a=f,r=Fe(this.lineIndent,e)):a=!1}if(a&&(a=o||i),r===1){let d=D===n||Ce===n?e:e+1;if(a){let _=this.#e.position-this.lineStart,Z=this.readBlockSequence(c,h,_);if(Z)return this.resolveTag(Z);let J=this.readBlockMapping(c,h,_,d);if(J)return this.resolveTag(J)}let x=this.readFlowCollection(c,h,d);if(x)return this.resolveTag(x);if(l){let _=this.readBlockScalar(c,h,d);if(_)return this.resolveTag(_)}let E=this.readSingleQuotedScalar(c,h,d);if(E)return this.resolveTag(E);let m=this.readDoubleQuotedScalar(c,h,d);if(m)return this.resolveTag(m);let k=this.readAlias();if(k){if(c!==null||h!==null)throw this.#t("Cannot compose node: alias node should not have any properties");return this.resolveTag({tag:c,anchor:h,kind:null,result:k})}let A=this.readPlainScalar(c,h,d,D===n);if(A)return A.tag??="?",this.resolveTag(A)}else if(r===0&&P===n&&a){let p=this.#e.position-this.lineStart,d=this.readBlockSequence(c,h,p);if(d)return this.resolveTag(d)}let u=this.resolveTag({tag:c,anchor:h,kind:null,result:null});if(u.tag!==null||u.anchor!==null)return u}readDirectives(){let e=!1,n=null,s=this.#e.peek();for(;s!==0&&(this.skipSeparationSpace(!0,-1),s=this.#e.peek(),!(this.lineIndent>0||s!==37));){e=!0,this.#e.next(),s=this.#e.peek();let i=this.#e.position;for(;s!==0&&!g(s);)this.#e.next(),s=this.#e.peek();let r=this.#e.source.slice(i,this.#e.position),o=[];if(r.length<1)throw this.#t("Cannot read document: directive name length must be greater than zero");for(;s!==0&&(this.skipWhitespaces(),this.skipComment(),s=this.#e.peek(),!S(s));){for(i=this.#e.position;s!==0&&!g(s);)this.#e.next(),s=this.#e.peek();o.push(this.#e.source.slice(i,this.#e.position))}switch(s!==0&&this.readLineBreak(),r){case"YAML":if(n!==null)throw this.#t("Cannot handle YAML directive: duplication of %YAML directive");n=this.yamlDirectiveHandler(o);break;case"TAG":this.tagDirectiveHandler(o);break;default:this.dispatchWarning(`unknown document directive "${r}"`);break}s=this.#e.peek()}return e}readDocument(){let e=this.#e.position;this.checkLineBreaks=!1,this.tagMap=new Map,this.anchorMap=new Map;let n=this.readDirectives();this.skipSeparationSpace(!0,-1);let s=null;if(this.lineIndent===0&&this.#e.peek()===45&&this.#e.peek(1)===45&&this.#e.peek(2)===45)this.#e.position+=3,this.skipSeparationSpace(!0,-1);else if(n)throw this.#t("Cannot read document: directives end mark is expected");let i=this.composeNode({parentIndent:this.lineIndent-1,nodeContext:P,allowToSeek:!1,allowCompact:!0});if(i&&(s=i.result),this.skipSeparationSpace(!0,-1),this.checkLineBreaks&&St.test(this.#e.source.slice(e,this.#e.position))&&this.dispatchWarning("non-ASCII line breaks are interpreted as content"),this.#e.position===this.lineStart&&this.testDocumentSeparator())this.#e.peek()===46&&(this.#e.position+=3,this.skipSeparationSpace(!0,-1));else if(!this.#e.eof())throw this.#t("Cannot read document: end of the stream or a document separator is expected");return s}*readDocuments(){for(;!this.#e.eof();)yield this.readDocument()}};function _t(t){return t=String(t),t.length>0&&(S(t.charCodeAt(t.length-1))||(t+=`
14
- `),t.charCodeAt(0)===65279&&(t=t.slice(1))),t}function gi(t,e={}){t=_t(t);let s=new U(t,{...e,schema:K.get(e.schema)}).readDocuments(),i=s.next().value;if(!s.next().done)throw new SyntaxError("Found more than 1 document in the stream: expected a single document");return i??null}export{gi as a};
@@ -1 +0,0 @@
1
- import{a as w}from"./chunk-AKJB4CER.js";import{a as v}from"./chunk-6U2VEZEM.js";import{a as y}from"./chunk-KAEAT6A4.js";import{f as k}from"./chunk-NUSNMQPL.js";import{b as l,e as f,f as h,g as C,h as m}from"./chunk-PLJNPQFC.js";import{g as a}from"./chunk-DQAEQEXD.js";var p=y(),D=e=>{let s=new Map,r=new Set(e.map(i=>i.name));for(let i of e){let n=[];for(let d of i.config._loadedFiles){let t=d.content,u=t.dependencies;if(u!==void 0)for(let c of Object.keys(u))r.has(c)&&n.push(c);let o=t.imports;if(o!==void 0)for(let c of Object.values(o))r.has(c)&&n.push(c)}s.set(i.name,[...new Set(n)])}return s},x=e=>{let s=[],r=new Set,i=new Set,n=[],d=t=>{r.add(t),i.add(t),n.push(t);let u=e.get(t)??[];for(let o of u)if(!r.has(o))d(o);else if(i.has(o)){let c=n.indexOf(o),g=n.slice(c);g.push(o),s.push(g)}n.pop(),i.delete(t)};for(let t of e.keys())r.has(t)||d(t);return s},R=async(e={})=>{let{root:s="."}=e,r=await w(s),i=D(r),n=x(i);return{hasCycles:n.length>0,cycles:n,packagesChecked:r.length}},O=e=>k.fromPromise(()=>R(e)),b=e=>a.ok({root:"."}),A=e=>{if(a.isFail(e))return p.writeln(f("\u2717"),l(" "+(e.error instanceof Error?e.error.message:String(e.error)))),a.fail({exitCode:1});let{value:s}=e;if(p.writeln(m("\u2139"),l(` Checked ${s.packagesChecked} packages.`)),s.hasCycles){p.writeln(f("\u2717"),l(` Found ${s.cycles.length} circular dependencies:`));for(let r of s.cycles)p.writeln(C("\u26A0"),l(` ${r.join(" \u2192 ")}`));return a.fail({exitCode:1})}return p.writeln(h("\u2713"),l(" No circular dependencies found.")),a.ok(void 0)},M=v.createTrigger({handler:O,adaptInput:b,adaptOutput:A}),_=async e=>await M({command:"validate-circular-deps",args:[],flags:{}});export{R as a,O as b,M as c,_ as d};
@@ -1,60 +0,0 @@
1
- import{e as Q}from"./chunk-LOFP256P.js";import{f as p,h as u,k as d}from"./chunk-TTYO2XJO.js";import{b as r,d as c,e as m,f as w,g as Y,j as a}from"./chunk-PLJNPQFC.js";import{b as x}from"./chunk-BCHXUKWW.js";import{a as v}from"./chunk-MBC2JM7F.js";import{a as h,b as g}from"./chunk-DQAEQEXD.js";import{a as oe,g as z,h as K,i as B,r as U,t as i}from"./chunk-YXSB6RET.js";var X=()=>i.env.get("HOME")??"",k=()=>{let e=i.env.get("SHELL")??"";return e.includes("zsh")?"zsh":e.includes("fish")?"fish":"bash"},ae=e=>{let t=X();switch(e){case"zsh":return i.path.join(t,".zshrc");case"bash":return i.path.join(t,".bashrc");case"fish":return i.path.join(t,".config","fish","config.fish")}},ie=(e,t)=>{let s=X();switch(e){case"zsh":return i.path.join(s,".zshrc");case"bash":return i.path.join(s,".bashrc");case"fish":return i.path.join(s,".config","fish","completions",`${t}.fish`)}},A=(e,t)=>`eval "$(${t} system completions --shell ${e})"`,le=e=>e==="fish"?"file":"eval",E=(e,t="eser")=>{let s=e??k(),n=le(s);return{shell:s,rcFile:ae(s),completionType:n,completionsFile:n==="file"?ie(s,t):void 0}};var ce="# eser CLI completions",j="eser",ee=async e=>{try{return await i.fs.readTextFile(e)}catch{return""}},de=async e=>{try{return await i.fs.stat(e),!0}catch{return!1}},te=async e=>{let t=E(e,j);if(t.completionType==="file")return await de(t.completionsFile);let s=await ee(t.rcFile),n=A(e,j);return s.includes(n)},se=async e=>{let t=E(e,j),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=i.path.dirname(n);try{await i.fs.mkdir(o,{recursive:!0})}catch{}await i.fs.writeTextFile(n,`# eser CLI completions
2
- # This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
3
- complete -c eser -f
4
- complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
5
- complete -c eser -n "__fish_use_subcommand" -a "system" -d "Commands related with this CLI"
6
- complete -c eser -n "__fish_use_subcommand" -a "install" -d "Install eser CLI globally"
7
- complete -c eser -n "__fish_use_subcommand" -a "update" -d "Update eser CLI to latest version"
8
- complete -c eser -n "__fish_seen_subcommand_from system" -a "install" -d "Install eser CLI globally"
9
- complete -c eser -n "__fish_seen_subcommand_from system" -a "uninstall" -d "Uninstall eser CLI globally"
10
- complete -c eser -n "__fish_seen_subcommand_from system" -a "update" -d "Update eser CLI to latest version"
11
- complete -c eser -n "__fish_seen_subcommand_from system" -a "completions" -d "Generate shell completion scripts"
12
- `),s.writeln(r(" "),c("Created"),r(" "),a(n))}else{let n=await ee(t.rcFile),o=A(e,j);if(!n.includes(o)){let f=`
13
- ${ce}
14
- ${o}
15
- `;await i.fs.writeTextFile(t.rcFile,n+f),s.writeln(r(" "),c("Added completions to"),r(" "),a(t.rcFile))}}}catch(n){s.writeln(Y(` Warning: Could not add shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()},me=async e=>{let t=E(e,j),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile;await de(n)&&(await i.fs.remove(n),s.writeln(r(" "),c("Removed"),r(" "),a(n)))}else{let n=await ee(t.rcFile);if(n===""){await s.close();return}let o=A(e,j);if(!n.includes(o)){await s.close();return}let f=n.split(`
16
- `).filter(l=>!l.includes("eser system completions")).filter(l=>l!==ce).join(`
17
- `).replace(/\n{3,}/g,`
18
-
19
- `);await i.fs.writeTextFile(t.rcFile,f),s.writeln(r(" "),c("Removed completions from"),r(" "),a(t.rcFile))}}catch(n){s.writeln(Y(` Warning: Could not remove shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()};var L=i,ye={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},pe={deno:{cmd:"deno",args:["install","-r","-g","-A","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["install","-g","-f","eser"]},bun:{cmd:"bun",args:["install","-g","-f","eser"]}},ve=async()=>{let e=B(),t=L.path.join(e,".local","bin");try{return await L.fs.stat(t),t}catch{}return"/usr/local/bin"},ke=async()=>{let e=L.process.execPath(),t=await ve(),s=L.path.join(t,"eser"),n=p({renderer:d.ansi(),sink:u.stdout()});n.writeln(r("Install method: "),a("compiled binary")),n.writeln(c(`Copying to ${s}...`));try{await L.fs.copyFile(e,s),await L.fs.chmod(s,493)}catch(l){if(l instanceof Deno.errors.PermissionDenied)return n.writeln(m(`
20
- Permission denied writing to ${t}.
21
- Try: sudo eser install`)),await n.close(),g({exitCode:1});throw await n.close(),l}n.writeln(w(`
22
- Installation complete!`)),n.writeln(r("You can now use "),a("eser"),r(" from anywhere in your terminal."));let o=k();if(!await te(o)){n.writeln(r(`
23
- Setting up `),a(o),r(" completions...")),await se(o);let l=E(o);l.completionType==="eval"&&n.writeln(c(` Restart your shell or run 'source ${l.rcFile}' to enable completions.`))}return await n.close(),h(void 0)},Ee=async e=>{let t=await U(ye);if(t.invoker==="binary")return await ke();let s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t.runtime));let n=pe[t.runtime]??pe.node,{cmd:o,args:f}=n;s.writeln(c(`Running: ${o} ${f.join(" ")}`)),s.writeln();let l=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();if(!l.success)return s.writeln(m(`
24
- Installation failed.`)),await s.close(),g({exitCode:l.code});s.writeln(w(`
25
- Installation complete!`)),s.writeln(r("You can now use "),a("eser"),r(" from anywhere in your terminal."));let y=k();if(!await te(y)){s.writeln(r(`
26
- Setting up `),a(y),r(" completions...")),await se(y);let G=E(y);G.completionType==="eval"&&s.writeln(c(` Restart your shell or run 'source ${G.rcFile}' to enable completions.`))}return await s.close(),h(void 0)};var Pe={deno:{cmd:"deno",args:["uninstall","-g","eser"]},node:{cmd:"npm",args:["uninstall","-g","eser"]},bun:{cmd:"bun",args:["remove","-g","eser"]}},$e=async e=>{let t=oe(),s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t));let n=Pe[t];if(n===void 0){let R=d.ansi();return await s.close(),g({message:`${R.render([m(`
27
- Unsupported runtime: ${t}`)])}
28
- Global uninstallation is only supported for Deno, Node.js, and Bun.`,exitCode:1})}let{cmd:o,args:f}=n,l=k();s.writeln(r(`
29
- Removing `),a(l),r(" completions...")),await me(l),s.writeln(c(`
30
- Running: ${o} ${f.join(" ")}`)),s.writeln();let y=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return y.success?(s.writeln(w(`
31
- Uninstallation complete!`)),s.writeln(r("The "),a("eser"),r(" command has been removed from your system.")),await s.close(),h(void 0)):(s.writeln(m(`
32
- Uninstallation failed.`)),await s.close(),g({exitCode:y.code}))};var N=i,ue=".cache/eser",Se="latest-version.json",_e=24*60*60*1e3,Re="https://api.github.com/repos/eser/stack/releases/latest",fe=()=>{let e=B();return N.path.join(e,ue,Se)},Ae=()=>{let e=B();return N.path.join(e,ue)},be=async()=>{try{let e=fe();if(!await N.fs.exists(e))return;let s=await N.fs.readTextFile(e),n=JSON.parse(s);return typeof n.latestVersion!="string"||typeof n.checkedAt!="number"?void 0:n}catch{return}},Te=async e=>{try{let t=Ae();await N.fs.ensureDir(t);let s=fe(),n={latestVersion:e,checkedAt:Date.now()};await N.fs.writeTextFile(s,JSON.stringify(n))}catch{}},Fe=async()=>{try{let e=await fetch(Re,{headers:{Accept:"application/vnd.github.v3+json"}});if(!e.ok)return;let s=(await e.json()).tag_name;return typeof s!="string"?void 0:s.startsWith("v")?s.slice(1):s}catch{return}},V=async()=>{try{let e=v.version,t=await be();if(t!==void 0&&Date.now()-t.checkedAt<_e)return{latestVersion:t.latestVersion,currentVersion:e,updateAvailable:Q(e,t.latestVersion)};let s=await Fe();return s===void 0?void 0:(await Te(s),{latestVersion:s,currentVersion:e,updateAvailable:Q(e,s)})}catch{return}};var C=i,He={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},he={deno:{cmd:"deno",args:["install","-r","-g","-A","-f","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["update","-g","-f","eser"]},bun:{cmd:"bun",args:["update","-g","-f","eser"]}},Ue={"linux-amd64":"x86_64-unknown-linux-gnu","linux-arm64":"aarch64-unknown-linux-gnu","darwin-amd64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin","windows-amd64":"x86_64-pc-windows-msvc"},je=()=>{let e=z(),t=K(),s=`${e}-${t}`;return Ue[s]},De=async()=>{let e=p({renderer:d.ansi(),sink:u.stdout()});e.writeln(r("Install method: "),a("compiled binary")),e.writeln(r("Current version: "),a(v.version),r(`
33
- `)),e.writeln(r("Checking for updates..."));let t=await V();if(t===void 0)return e.writeln(m("Could not check for updates.")),await e.close(),g({exitCode:1});if(!t.updateAvailable)return e.writeln(w(`
34
- Already up to date (v${v.version}).`)),await e.close(),h(void 0);e.writeln(r(`
35
- New version available: `),a(`v${t.latestVersion}`));let s=je();if(s===void 0){let $=z(),T=K();return e.writeln(m(`
36
- Unsupported platform: ${$}-${T}`)),await e.close(),g({exitCode:1})}let n=`v${t.latestVersion}`,o=z()==="windows",l=`eser-${n}-${s}.${o?"zip":"tar.gz"}`,y=`https://github.com/eser/stack/releases/download/${n}`;e.writeln(c(`Downloading ${l}...`));let R=await fetch(`${y}/${l}`);if(!R.ok)return e.writeln(m(`
37
- Failed to download: HTTP ${R.status}`)),await e.close(),g({exitCode:1});let G=await fetch(`${y}/SHA256SUMS.txt`);if(G.ok){let T=(await G.text()).split(`
38
- `).find(F=>F.includes(l));if(T!==void 0){let F=T.split(/\s+/)[0],H=new Uint8Array(await R.clone().arrayBuffer()),S=await crypto.subtle.digest("SHA-256",H);if(Array.from(new Uint8Array(S)).map(Ce=>Ce.toString(16).padStart(2,"0")).join("")!==F)return e.writeln(m(`
39
- SHA256 checksum verification failed.`)),await e.close(),g({exitCode:1});e.writeln(c("Checksum verified."))}}let b=await C.fs.makeTempDir({prefix:"eser-update-"});try{let $=C.path.join(b,l),T=new Uint8Array(await R.arrayBuffer());await C.fs.writeFile($,T),o?await x`powershell -Command "Expand-Archive -Path ${$} -DestinationPath ${b}"`.spawn():await x`tar -xzf ${$} -C ${b}`.spawn();let F=o?C.path.join(b,"eser.exe"):C.path.join(b,"eser"),H=C.process.execPath();if(o){let S=H.replace(/\.exe$/i,".new.exe");await C.fs.copyFile(F,S),e.writeln(w(`
40
- Downloaded v${t.latestVersion}!`)),e.writeln(r(`
41
- To complete the update, close this terminal and rename:
42
- `),a(S),r(`
43
- to:
44
- `),a(H))}else{let S=`${H}.new`;await C.fs.copyFile(F,S),await C.fs.chmod(S,493),await C.fs.rename(S,H),e.writeln(w(`
45
- Updated to v${t.latestVersion}!`))}}catch($){if($ instanceof Deno.errors.PermissionDenied)return e.writeln(m(`
46
- Permission denied. Try running with sudo:
47
- sudo eser update`)),await e.close(),g({exitCode:1});throw await e.close(),$}finally{try{await C.fs.remove(b,{recursive:!0})}catch{}}return await e.close(),h(void 0)},Ie=async e=>{let t=await U(He);if(t.invoker==="binary")return await De();let s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t.runtime));let n=he[t.runtime]??he.node,{cmd:o,args:f}=n;s.writeln(c(`Running: ${o} ${f.join(" ")}`)),s.writeln();let l=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return l.success?(s.writeln(w(`
48
- Update complete!`)),s.writeln(r("The "),a("eser"),r(" command has been updated to the latest version.")),await s.close(),h(void 0)):(s.writeln(m(`
49
- Update failed.`)),await s.close(),g({exitCode:l.code}))};var Le=e=>{let t=E(e,"eser"),s=d.ansi();if(t.completionType==="file")return`
50
- To install, run:
51
-
52
- ${s.render([c(`eser system completions --shell fish > ${t.completionsFile}`)])}
53
- `;let n=A(e,"eser");return`
54
- To install, add the following to your ${s.render([a(t.rcFile)])}:
55
-
56
- ${s.render([c(n)])}
57
- `},Ne=e=>{let t=e.flags.shell,s=d.ansi(),n=p({renderer:s,sink:u.stdout()}),o;if(t!==void 0){if(!["bash","zsh","fish"].includes(t))return g({message:`${s.render([m(`Invalid shell: ${t}`)])}
58
- Supported shells: bash, zsh, fish`,exitCode:1});o=t}else o=k();let l=e.root.completions(o);return t===void 0&&(n.writeln(r("Generating "),a(o),r(" completions...")),console.log(Le(o)),n.writeln(c(`--- Completion script ---
59
- `))),console.log(l),h(void 0)};var Ve=200,Oe=async e=>{let t=p({renderer:d.ansi(),sink:u.stdout()});if(e.flags.bare===!0)return t.writeln(r(v.version)),await t.close(),h(void 0);t.writeln(r(`eser ${v.version}`));try{let s=new Promise(o=>{setTimeout(()=>o(void 0),Ve)}),n=await Promise.race([V(),s]);n!==void 0&&n.updateAvailable&&t.writeln(c(` Update available: v${n.latestVersion} \u2014 run 'eser update'`))}catch{}return await t.close(),h(void 0)};var q=i,Ge={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},J=17,_=p({renderer:d.ansi(),sink:u.stdout()}),O=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),w("\u2713"),r(` ${t}`))},P=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),m("\u2717"),r(` ${t}`))},ge=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}${t}`))},Be=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),c("-"),r(` ${t}`))},we=async e=>{try{return await q.fs.stat(e),!0}catch{return!1}},Me=async e=>{try{return await q.fs.readTextFile(e)}catch{return""}},xe=(e,t)=>e.match(t)?.[1],ze=async()=>{let e=q.path.join(".",".git","hooks","pre-commit");if(!await we(e)){P("Git hooks","Not installed");return}(await Me(e)).includes("eser")?O("Git hooks","Installed"):P("Git hooks","Not installed")},We=async()=>{let e=q.path.join(".",".manifest.yml");await we(e)?O("Manifest",".manifest.yml found"):P("Manifest",".manifest.yml not found")},qe=async()=>{try{let e=await x`deno --version`.noThrow().quiet().text(),t=xe(e,/deno\s+(\S+)/);t!==void 0?O("Deno",t):P("Deno","Not found")}catch{P("Deno","Not found")}},Je=async()=>{try{let e=await x`go version`.noThrow().quiet().text(),t=xe(e,/go(\d+\.\d+(?:\.\d+)?)/);t!==void 0?O("Go",t):P("Go","Not found")}catch{P("Go","Not found")}},Ke=async()=>{try{let t=(await x`node --version`.noThrow().quiet().text()).trim();t.length>0?O("Node",t):P("Node","Not found")}catch{P("Node","Not found")}},Ye=async e=>{_.writeln(r(`eser doctor
60
- `));let t=await U(Ge);ge("Install method",`${t.invoker} (${t.mode})`),ge("Version",v.version);let s=await V();return s===void 0?Be("Update","Could not check for updates"):s.updateAvailable?P("Update",`Update available: v${s.latestVersion}`):O("Update","Up to date"),_.writeln(),await ze(),await We(),_.writeln(),await qe(),await Je(),await Ke(),await _.close(),h(void 0)};export{Ee as a,$e as b,Ie as c,Ne as d,Oe as e,Ye as f};