eser 4.1.47 → 4.1.49

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 (219) hide show
  1. package/chunks/{add-V7YYHLFH.js → add-HBUORTI5.js} +1 -1
  2. package/chunks/{ajan-JKACPKCP.js → ajan-CL22MZYV.js} +1 -1
  3. package/chunks/approve-HF44PKLL.js +2 -0
  4. package/chunks/{ask-UCPMMIAF.js → ask-M3VS3GIJ.js} +1 -1
  5. package/chunks/block-F7S7PYMQ.js +2 -0
  6. package/chunks/{browser-JGBNWUEQ.js → browser-D536WJU3.js} +1 -1
  7. package/chunks/{build-BUB6OJCI.js → build-Y4OQZN3X.js} +2 -2
  8. package/chunks/{bun-HIMXX54I.js → bun-7XJSUU6Z.js} +1 -1
  9. package/chunks/cancel-Q6LMMZBV.js +2 -0
  10. package/chunks/{changelog-gen-TEI4IBNO.js → changelog-gen-LMXK5T7J.js} +1 -1
  11. package/chunks/{chunk-F2YHX6DL.js → chunk-2DAFGT4S.js} +1 -1
  12. package/chunks/{chunk-BJLUDX4R.js → chunk-2TANTKYS.js} +1 -1
  13. package/chunks/{chunk-3AA3RXKD.js → chunk-2ZYCRMUT.js} +1 -1
  14. package/chunks/{chunk-26ZFSXSK.js → chunk-3D5TBTM3.js} +1 -1
  15. package/chunks/{chunk-4ZVFKZ5S.js → chunk-3MMV2UHT.js} +1 -1
  16. package/chunks/{chunk-3IZX4OZ7.js → chunk-3OG2MEF2.js} +1 -1
  17. package/chunks/{chunk-ZCQ5CISX.js → chunk-3PZVRB75.js} +1 -1
  18. package/chunks/{chunk-RHEYIO4O.js → chunk-3SBAWBWS.js} +1 -1
  19. package/chunks/{chunk-AP7A6Y5Z.js → chunk-3TS5IRPD.js} +1 -1
  20. package/chunks/{chunk-HCYIL6IJ.js → chunk-3VZXRI4F.js} +1 -1
  21. package/chunks/{chunk-PLMZ3FYS.js → chunk-43E7ZXUB.js} +1 -1
  22. package/chunks/chunk-4NNSMDFH.js +2 -0
  23. package/chunks/chunk-4TTJVJEI.js +2 -0
  24. package/chunks/{chunk-L2E2H7YT.js → chunk-4X4NHXFE.js} +1 -1
  25. package/chunks/{chunk-MCWDLVWU.js → chunk-6BILFSH2.js} +1 -1
  26. package/chunks/{chunk-WJKE6XHF.js → chunk-6DBKPC2O.js} +1 -1
  27. package/chunks/{chunk-BQT5RJZB.js → chunk-6G6UVWJN.js} +1 -1
  28. package/chunks/{chunk-6E6JUBFH.js → chunk-ALFFE37K.js} +1 -1
  29. package/chunks/{chunk-5QRJ7OJK.js → chunk-AWMLF355.js} +1 -1
  30. package/chunks/{chunk-A2IW6BXT.js → chunk-C2IORZTF.js} +1 -1
  31. package/chunks/{chunk-NFZWSVJM.js → chunk-C6URCXQM.js} +1 -1
  32. package/chunks/{chunk-7XVIW7H6.js → chunk-D43XK3L2.js} +1 -1
  33. package/chunks/{chunk-3PCHQM4S.js → chunk-DYMKE4R3.js} +1 -1
  34. package/chunks/{chunk-GWZUQPFD.js → chunk-EQUPVWVY.js} +1 -1
  35. package/chunks/{chunk-TYUSWY27.js → chunk-FFEFO7MA.js} +1 -1
  36. package/chunks/{chunk-JUOSGSVB.js → chunk-FNPBHLLZ.js} +1 -1
  37. package/chunks/{chunk-F4G6QSSJ.js → chunk-FQY3JLY2.js} +1 -1
  38. package/chunks/chunk-FXDWRGGR.js +2 -0
  39. package/chunks/{chunk-HVTJ5LVU.js → chunk-FZ5WFU6R.js} +1 -1
  40. package/chunks/{chunk-BLXGL5MA.js → chunk-GVTM4EOU.js} +1 -1
  41. package/chunks/{chunk-JLRVMMMH.js → chunk-HVQK35SO.js} +1 -1
  42. package/chunks/{chunk-EGEJQP7D.js → chunk-IIFFSCDJ.js} +1 -1
  43. package/chunks/{chunk-4QDEJUAF.js → chunk-IZUADMIU.js} +1 -1
  44. package/chunks/{chunk-37GFWQQ3.js → chunk-JMGANJGV.js} +1 -1
  45. package/chunks/{chunk-LGNGLAV3.js → chunk-JTSRGXS4.js} +1 -1
  46. package/chunks/{chunk-CNHUVWV5.js → chunk-K7TY7247.js} +1 -1
  47. package/chunks/{chunk-5PH7JRXR.js → chunk-KHBIOZJE.js} +1 -1
  48. package/chunks/chunk-L32KHQVT.js +3 -0
  49. package/chunks/{chunk-MBCPGD5L.js → chunk-L5OC7F24.js} +1 -1
  50. package/chunks/{chunk-W7OYXLGD.js → chunk-L7ROACZC.js} +8 -8
  51. package/chunks/{chunk-EKUJSZIR.js → chunk-LJ7A5HYR.js} +1 -1
  52. package/chunks/{chunk-OWV223WQ.js → chunk-LLA75EMV.js} +1 -1
  53. package/chunks/{chunk-6PRIUPN4.js → chunk-LWQPFCWC.js} +1 -1
  54. package/chunks/{chunk-W724KQYO.js → chunk-LYM57LLM.js} +1 -1
  55. package/chunks/{chunk-ENTSZDR6.js → chunk-MTCPFQ5I.js} +1 -1
  56. package/chunks/{chunk-JHEL4OFF.js → chunk-N4NDBIQS.js} +1 -1
  57. package/chunks/{chunk-G5VGZMKA.js → chunk-NMEPQK3T.js} +1 -1
  58. package/chunks/{chunk-TEOMM3RD.js → chunk-NMSD4ZXJ.js} +1 -1
  59. package/chunks/{chunk-RVJZFWN7.js → chunk-NTY267SI.js} +1 -1
  60. package/chunks/{chunk-3QF3I2RD.js → chunk-NVPQJFAI.js} +1 -1
  61. package/chunks/{chunk-4HXAC4WN.js → chunk-PHOYLFXC.js} +1 -1
  62. package/chunks/{chunk-CXTOTN4Z.js → chunk-Q56M5KDF.js} +1 -1
  63. package/chunks/{chunk-LWWZT2AB.js → chunk-Q66KA572.js} +1 -1
  64. package/chunks/chunk-RBQ2FOSL.js +17 -0
  65. package/chunks/chunk-RBU3HF66.js +10 -0
  66. package/chunks/{chunk-MJ2IPSAE.js → chunk-RNFCAHVL.js} +1 -1
  67. package/chunks/{chunk-Z5P6PXQV.js → chunk-RSYERFWM.js} +1 -1
  68. package/chunks/{chunk-ZC4F4MYU.js → chunk-SHN5MT56.js} +1 -1
  69. package/chunks/{chunk-F44CX3KC.js → chunk-SNWQNMGD.js} +2 -2
  70. package/chunks/{chunk-YA4IPF62.js → chunk-TDIR6AUJ.js} +1 -1
  71. package/chunks/{chunk-VWQLQJVX.js → chunk-TW23CULJ.js} +1 -1
  72. package/chunks/{chunk-SRWZLNT6.js → chunk-U25GY4AZ.js} +1 -1
  73. package/chunks/chunk-U34MRDPH.js +4 -0
  74. package/chunks/{chunk-OAT2D23A.js → chunk-UEMWZOIU.js} +1 -1
  75. package/chunks/{chunk-Y3XXSUFP.js → chunk-WTMV5GTZ.js} +1 -1
  76. package/chunks/{chunk-F35K7YVH.js → chunk-X3L6GBUX.js} +1 -1
  77. package/chunks/{chunk-YBCZC5KZ.js → chunk-XBCL25QR.js} +1 -1
  78. package/chunks/{chunk-3QH27NOC.js → chunk-XFCBVUI7.js} +1 -1
  79. package/chunks/{chunk-VSTGSR3G.js → chunk-XVH5L5HY.js} +1 -1
  80. package/chunks/{chunk-R7FADWXC.js → chunk-YVKPHSJX.js} +1 -1
  81. package/chunks/{chunk-HP5W5XT6.js → chunk-ZNP3NXAD.js} +1 -1
  82. package/chunks/claude-code-UJYCO6CN.js +2 -0
  83. package/chunks/{clone-YEBQK7CG.js → clone-455UAECS.js} +1 -1
  84. package/chunks/{cmd-2DAVTVOF.js → cmd-QE4P4DS4.js} +1 -1
  85. package/chunks/{commitmsg-3NLTGBA7.js → commitmsg-57EMHAFY.js} +2 -2
  86. package/chunks/{concern-RNNRCADI.js → concern-7ZK3KY54.js} +1 -1
  87. package/chunks/config-O3OOS5BQ.js +2 -0
  88. package/chunks/{deno-XQHOVHKR.js → deno-JAQWMICD.js} +1 -1
  89. package/chunks/{dev-GHSKFRDU.js → dev-XHMBUBQE.js} +2 -2
  90. package/chunks/done-FQQYM27R.js +2 -0
  91. package/chunks/{file-tools-shared-BGQUI7QP.js → file-tools-shared-YKDNDDHR.js} +1 -1
  92. package/chunks/{free-L4KB3WSS.js → free-XOGOSVEQ.js} +1 -1
  93. package/chunks/{gh-L3FPMN5H.js → gh-AWX6I7FO.js} +2 -2
  94. package/chunks/{gh-contributors-NT5WW72V.js → gh-contributors-EDZTKR5E.js} +1 -1
  95. package/chunks/{init-II65LYMV.js → init-3HE3P3N3.js} +1 -1
  96. package/chunks/{init-EL6YCHIE.js → init-GBMYF3YG.js} +3 -3
  97. package/chunks/{install-YVHT6UAG.js → install-USGLFPAU.js} +1 -1
  98. package/chunks/invoke-hook-EIOZ5WSA.js +12 -0
  99. package/chunks/kiro-V6SMU4OL.js +2 -0
  100. package/chunks/{list-BOLPKAEY.js → list-M5DGQG46.js} +1 -1
  101. package/chunks/{list-VEGVTAKQ.js → list-NX7RRO6R.js} +1 -1
  102. package/chunks/{list-AKS7CUO3.js → list-ZVCGDRUH.js} +1 -1
  103. package/chunks/{load-config-G4DHKB5K.js → load-config-JZNJVJXH.js} +1 -1
  104. package/chunks/{main-PTEEAWXX.js → main-NCAKIBQC.js} +2 -2
  105. package/chunks/manager-GC34GK44.js +7 -0
  106. package/chunks/manifest-3GT2RMQL.js +2 -0
  107. package/chunks/{mod-DXA25A4J.js → mod-4XKQZL6W.js} +1 -1
  108. package/chunks/mod-52TIS344.js +2 -0
  109. package/chunks/{mod-MVH3RFS3.js → mod-5NDTGNVM.js} +1 -1
  110. package/chunks/{mod-ICWGLZBQ.js → mod-7ICCX4OY.js} +1 -1
  111. package/chunks/{mod-RF5F5WS2.js → mod-DFDEWFDA.js} +2 -2
  112. package/chunks/{mod-AD5UWQSM.js → mod-KPIOBBDD.js} +1 -1
  113. package/chunks/{mod-RMDGRCBK.js → mod-NSL6IJRQ.js} +1 -1
  114. package/chunks/{mod-QWYXFGRG.js → mod-OG7BBJP4.js} +1 -1
  115. package/chunks/{mod-YH5Z6G4Q.js → mod-TRSW5SEU.js} +1 -1
  116. package/chunks/{mod-BKHQAEVL.js → mod-VZT7JWPZ.js} +1 -1
  117. package/chunks/{mod-PZSJGUM7.js → mod-W225AUFE.js} +1 -1
  118. package/chunks/{new-VGL3IRFP.js → new-SS67ZKMK.js} +1 -1
  119. package/chunks/next-2LOPGEJO.js +9 -0
  120. package/chunks/{node-ZGM6SXXI.js → node-WWA6BHRC.js} +1 -1
  121. package/chunks/ollama-DFG5G467.js +2 -0
  122. package/chunks/opencode-UA45VV3W.js +2 -0
  123. package/chunks/pack-B5VXZEW7.js +6 -0
  124. package/chunks/{purge-6IOKNHG6.js → purge-Q3FI3S5M.js} +1 -1
  125. package/chunks/{recipe-applier-TTZEZGSC.js → recipe-applier-I2VBGHZU.js} +1 -1
  126. package/chunks/{registry-fetcher-SPENFEOH.js → registry-fetcher-TGWYJ5GN.js} +1 -1
  127. package/chunks/{release-6GDD5THZ.js → release-4VI2Y2ZT.js} +2 -2
  128. package/chunks/{release-notes-MZFILXWE.js → release-notes-2ZYPZ6TK.js} +1 -1
  129. package/chunks/{release-tag-LGZEFMKJ.js → release-tag-SG4WPYDZ.js} +1 -1
  130. package/chunks/reopen-6FB7DVV2.js +2 -0
  131. package/chunks/{reset-TDBHFTWW.js → reset-T4YMGQPV.js} +1 -1
  132. package/chunks/{rule-DUOZIDNM.js → rule-EJKPIOLE.js} +1 -1
  133. package/chunks/run-BV6BHCCQ.js +4 -0
  134. package/chunks/{run-OCYNXRVD.js → run-DAKF5SJN.js} +1 -1
  135. package/chunks/{scripts-7VDHDKFK.js → scripts-VRQQ24O3.js} +1 -1
  136. package/chunks/{serve-5V65OPB2.js → serve-5MTJLRIN.js} +2 -2
  137. package/chunks/{server-R347ON4B.js → server-VCPSLFZ2.js} +1 -1
  138. package/chunks/{session-SOIP6NHS.js → session-3HOLYHOY.js} +1 -1
  139. package/chunks/spec-3P3HJT27.js +2 -0
  140. package/chunks/status-6XVLXNA5.js +2 -0
  141. package/chunks/{sync-5XW5FTWS.js → sync-EEH6563X.js} +1 -1
  142. package/chunks/{system-HNZLRJLH.js → system-JBGO2IFD.js} +1 -1
  143. package/chunks/system-QDBQLRO6.js +2 -0
  144. package/chunks/{update-522VXIKX.js → update-VLYRDEH4.js} +1 -1
  145. package/chunks/validate-bom-XTZYCKGP.js +2 -0
  146. package/chunks/validate-case-conflict-CQIPKKHY.js +2 -0
  147. package/chunks/validate-circular-deps-Y6X6GZCG.js +2 -0
  148. package/chunks/validate-commit-msg-MXTBUPTC.js +2 -0
  149. package/chunks/validate-docs-ZOHUOW3I.js +2 -0
  150. package/chunks/validate-eof-4I2QAFTC.js +2 -0
  151. package/chunks/validate-export-names-7V3647EU.js +2 -0
  152. package/chunks/validate-filenames-6E634ZHO.js +2 -0
  153. package/chunks/validate-json-LRWPQ4JX.js +2 -0
  154. package/chunks/validate-large-files-RV7O7ZUR.js +2 -0
  155. package/chunks/validate-licenses-KHDUSBXM.js +2 -0
  156. package/chunks/validate-line-endings-XOCAE22U.js +2 -0
  157. package/chunks/validate-merge-conflict-PDJRAIKU.js +2 -0
  158. package/chunks/validate-mod-exports-Y6W74PAB.js +2 -0
  159. package/chunks/validate-package-configs-VVCKJELU.js +2 -0
  160. package/chunks/validate-secrets-UI5XKJ6B.js +2 -0
  161. package/chunks/validate-shebangs-GE23Z6NU.js +2 -0
  162. package/chunks/validate-submodules-R5JKX3Z6.js +2 -0
  163. package/chunks/validate-symlinks-WBF6VHHT.js +2 -0
  164. package/chunks/validate-toml-FNXGITZJ.js +2 -0
  165. package/chunks/validate-trailing-whitespace-UCMQTQ3B.js +2 -0
  166. package/chunks/validate-yaml-YRAD4HU3.js +2 -0
  167. package/chunks/{versions-MFY62V25.js → versions-LJSQVW77.js} +1 -1
  168. package/chunks/{watch-DBB4W5AE.js → watch-N3KV2ONB.js} +1 -1
  169. package/chunks/wontfix-MJJ2LK6J.js +2 -0
  170. package/chunks/{workerd-LOWXXQEU.js → workerd-LH2MLWIF.js} +1 -1
  171. package/eser.js +1 -1
  172. package/package.json +7 -8
  173. package/chunks/approve-URMQ77UE.js +0 -2
  174. package/chunks/block-5NWZBEXW.js +0 -2
  175. package/chunks/cancel-V6OK6U73.js +0 -2
  176. package/chunks/chunk-2HSGE3TL.js +0 -2
  177. package/chunks/chunk-FW3ETRQ5.js +0 -17
  178. package/chunks/chunk-ORAOSL2W.js +0 -2
  179. package/chunks/chunk-RGT7SMKJ.js +0 -4
  180. package/chunks/chunk-YW377352.js +0 -10
  181. package/chunks/chunk-ZER2RYWJ.js +0 -2
  182. package/chunks/claude-code-S2SGKOBE.js +0 -2
  183. package/chunks/done-VSVUSYIS.js +0 -2
  184. package/chunks/invoke-hook-QEE3PJBH.js +0 -12
  185. package/chunks/kiro-LNQTCWQU.js +0 -2
  186. package/chunks/manager-ARXVYR4H.js +0 -7
  187. package/chunks/manifest-3VJ4O6HR.js +0 -2
  188. package/chunks/mod-GXNNOTTG.js +0 -2
  189. package/chunks/next-RYENG2XC.js +0 -9
  190. package/chunks/ollama-IRQSLTDB.js +0 -2
  191. package/chunks/opencode-74XXXUQ2.js +0 -2
  192. package/chunks/reopen-XDNX2XRX.js +0 -2
  193. package/chunks/run-YK7DTHKW.js +0 -4
  194. package/chunks/spec-Y6K7CSBK.js +0 -2
  195. package/chunks/status-SXWEDQTL.js +0 -2
  196. package/chunks/system-WX4PNZSQ.js +0 -2
  197. package/chunks/validate-bom-XA7KZWTH.js +0 -2
  198. package/chunks/validate-case-conflict-QWOT7276.js +0 -2
  199. package/chunks/validate-circular-deps-IAC3BSYO.js +0 -2
  200. package/chunks/validate-commit-msg-M42NIQLD.js +0 -2
  201. package/chunks/validate-docs-DXY4C23P.js +0 -2
  202. package/chunks/validate-eof-M3LGJL64.js +0 -2
  203. package/chunks/validate-export-names-BQAH7J4F.js +0 -2
  204. package/chunks/validate-filenames-WYIWPR5V.js +0 -2
  205. package/chunks/validate-json-S2J5SSZS.js +0 -2
  206. package/chunks/validate-large-files-X4D3CL42.js +0 -2
  207. package/chunks/validate-licenses-6LB6MLQU.js +0 -2
  208. package/chunks/validate-line-endings-NX2XXGTH.js +0 -2
  209. package/chunks/validate-merge-conflict-3ZNS7HS2.js +0 -2
  210. package/chunks/validate-mod-exports-72EWWWMT.js +0 -2
  211. package/chunks/validate-package-configs-55XAXICZ.js +0 -2
  212. package/chunks/validate-secrets-5V7V65JA.js +0 -2
  213. package/chunks/validate-shebangs-XVHLZJKY.js +0 -2
  214. package/chunks/validate-submodules-Z6WRSMS5.js +0 -2
  215. package/chunks/validate-symlinks-FWV2RFCM.js +0 -2
  216. package/chunks/validate-toml-DTGDAUSH.js +0 -2
  217. package/chunks/validate-trailing-whitespace-5QSYKA6L.js +0 -2
  218. package/chunks/validate-yaml-SKE7CDCP.js +0 -2
  219. package/chunks/wontfix-D2ZHBGNH.js +0 -2
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as N,b as x,c as H}from"./chunk-HP5W5XT6.js";import{f as C}from"./chunk-F35K7YVH.js";import{a as E,d as $}from"./chunk-P2MUEKFT.js";import{k as S}from"./chunk-TEOMM3RD.js";import{f as b,h,k as I}from"./chunk-ZC4F4MYU.js";import{d as o,f as k,g,h as A,k as y}from"./chunk-YVN2NZL4.js";import{a as v}from"./chunk-MG65QJY6.js";import{a as d,b as c,c as R}from"./chunk-FFWPJP7A.js";import{i as w}from"./chunk-WJKE6XHF.js";import"./chunk-6E6JUBFH.js";import"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.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
+ import{a as N,b as x,c as H}from"./chunk-ZNP3NXAD.js";import{f as C}from"./chunk-X3L6GBUX.js";import{a as E,d as $}from"./chunk-P2MUEKFT.js";import{k as S}from"./chunk-NMSD4ZXJ.js";import{f as b,h,k as I}from"./chunk-SHN5MT56.js";import{d as o,f as k,g,h as A,k as y}from"./chunk-YVN2NZL4.js";import{a as v}from"./chunk-MG65QJY6.js";import{a as d,b as c,c as R}from"./chunk-FFWPJP7A.js";import{i as w}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.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(`
3
3
  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(`
4
4
  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(`
5
5
  Dry run: ${t}
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{f as l,h as m,k as d}from"./chunk-ZC4F4MYU.js";import{b as r,f as i}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-MJ2IPSAE.js";import"./chunk-MG65QJY6.js";import{a,b as o}from"./chunk-FFWPJP7A.js";import"./chunk-WJKE6XHF.js";import"./chunk-6E6JUBFH.js";import"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var c=async w=>{let s=l({renderer:d.ansi(),sink:m.stdout()});try{let t=await(await import("./mod-TB73AJG3.js")).loadEserAjan();try{let p=t.symbols.EserAjanVersion();s.writeln(r(p))}finally{t.close()}}catch(e){return s.writeln(i("Error: "),r(`Failed to load ajan library: ${e instanceof Error?e.message:String(e)}`)),s.writeln(),s.writeln(r("To fix this, try one of:")),s.writeln(r(" Install via npm: npm install @eser/ajan")),s.writeln(r(" Or via Homebrew: brew install eser/tap/eser")),await s.close(),o({exitCode:1})}return await s.close(),a(void 0)},h=new n("ajan").description("Ajan native bridge commands").command(new n("version").description("Show ajan library version").run(c));export{h as ajanCommand};
2
+ import{f as l,h as m,k as d}from"./chunk-SHN5MT56.js";import{b as r,f as i}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-RNFCAHVL.js";import"./chunk-MG65QJY6.js";import{a,b as o}from"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var c=async w=>{let s=l({renderer:d.ansi(),sink:m.stdout()});try{let t=await(await import("./mod-TB73AJG3.js")).loadEserAjan();try{let p=t.symbols.EserAjanVersion();s.writeln(r(p))}finally{t.close()}}catch(e){return s.writeln(i("Error: "),r(`Failed to load ajan library: ${e instanceof Error?e.message:String(e)}`)),s.writeln(),s.writeln(r("To fix this, try one of:")),s.writeln(r(" Install via npm: npm install @eser/ajan")),s.writeln(r(" Or via Homebrew: brew install eser/tap/eser")),await s.close(),o({exitCode:1})}return await s.close(),a(void 0)},h=new n("ajan").description("Ajan native bridge commands").command(new n("version").description("Show ajan library version").run(c));export{h as ajanCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a as T}from"./chunk-U34MRDPH.js";import"./chunk-IZUADMIU.js";import{a as V,d as k}from"./chunk-43E7ZXUB.js";import{h}from"./chunk-L32KHQVT.js";import{k as _,n as F,u as S}from"./chunk-FXDWRGGR.js";import{c as R,e as g,g as D,h as u,i as f,k as P,o as A}from"./chunk-RBU3HF66.js";import{c as o}from"./chunk-UEMWZOIU.js";import"./chunk-2XNFZXHY.js";import{f as y,h as C,k as E}from"./chunk-SHN5MT56.js";import{c as p,d,f as n,g as m,k as w}from"./chunk-YVN2NZL4.js";import{a as v,b as i}from"./chunk-FFWPJP7A.js";import{i as l}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var H=async x=>{let s=y({renderer:E.ansi(),sink:C.stdout()}),r=l.process.cwd(),c=D(x);if(!c.ok)return s.writeln(n(c.error)),await s.close(),i({exitCode:1});let t;try{t=await g(r,c.spec)}catch(a){let e=a instanceof Error?a.message:String(a);return s.writeln(n(e)),await s.close(),i({exitCode:1})}let I=await P(r);if(t.spec!==null){let a=`${r}/${R.specDir(t.spec)}`;try{await l.fs.stat(a)}catch{return s.writeln(n(`Active spec '${t.spec}' directory not found.`)),s.writeln(d("Run `noskills reset` to return to IDLE.")),await s.close(),i({exitCode:1})}}if(t.phase==="SPEC_DRAFT"){if(t.classification===null&&t.spec!==null){let O=(await A(r)).filter(U=>I?.concerns.includes(U.id)??!1);try{await T(r,t,O)}catch{}}let a=await h(r),e=F(t);e=S(e,"SPEC_DRAFT","SPEC_APPROVED",a),await u(r,e),e.spec!==null&&await f(r,e.spec,e),e.spec!==null&&(await V(r,e.spec,"approved"),await k(r,e.spec,"approved")),s.writeln(m("\u2714")," Spec approved. Phase: ",w("SPEC_APPROVED")),s.writeln("When ready, run ",p(`${o('next --answer="start"')}`)," to begin execution.")}else if(t.phase==="DISCOVERY_REVIEW"){let a=await h(r),e=_(t);e=S(e,"DISCOVERY_REVIEW","SPEC_DRAFT",a),await u(r,e),e.spec!==null&&await f(r,e.spec,e),s.writeln(m("\u2714")," Discovery answers approved. Phase: ",w("SPEC_DRAFT")),s.writeln("Review the spec and run ",p(o("approve"))," again to approve.")}else t.phase==="DISCOVERY"&&t.discovery.completed?(s.writeln(d("Discovery complete. Spec draft already generated.")),s.writeln("Review the spec and run ",p(o("approve"))," again when in SPEC_DRAFT phase.")):s.writeln(n(`Cannot approve in phase: ${t.phase}`));return await s.close(),v(void 0)};export{H as main};
@@ -1,3 +1,3 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as _,b as $}from"./chunk-GE3LJ6QM.js";import{a as F}from"./chunk-BNQAZLIQ.js";import{d as x,f as v,g as I,h as y,k as P}from"./chunk-ZC4F4MYU.js";import{d as O,e as L,g as R}from"./chunk-5DWJ7WEE.js";import{a as T}from"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-J7YTWK67.js";import{d as S}from"./chunk-BLXGL5MA.js";import{a as C,b as g}from"./chunk-FFWPJP7A.js";import{i as m}from"./chunk-WJKE6XHF.js";import"./chunk-6E6JUBFH.js";import"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var k=(e,t,n)=>{let i=e.streamText(t,n);return{name:`ai-text/${e.provider}/${e.modelId}`,readable:new ReadableStream({async start(o){try{for await(let s of i)s.kind==="content_delta"&&o.enqueue(x(s.textDelta));o.close()}catch(s){o.error(s)}}})}};var Y={cc:"claude-code",ol:"ollama",oc:"opencode",oai:"openai",ant:"anthropic",gem:"gemini",vtx:"vertexai"},q={"claude-code":"Claude Code",ollama:"Ollama",opencode:"OpenCode",kiro:"Kiro",anthropic:"Anthropic API",openai:"OpenAI API",gemini:"Gemini API",vertexai:"Vertex AI"},H=e=>Y[e]??e,K=async e=>{if(e){let t=m.process.stderr.getWriter(),n=v({renderer:P.ansi(),sink:y.writable(new WritableStream({async write(i){await t.write(new TextEncoder().encode(String(i.data)))},close(){t.releaseLock()}}))});await O.configure({sinks:{stderr:R.getOutputSink(n)},loggers:[{category:["ai"],lowestLevel:T.Debug,sinks:["stderr"]}]})}return L.getLogger(["ai","ask"])},M=async e=>{await e.info("Auto-detecting AI provider...");try{if(await S`which claude`.noThrow().code()===0)return await e.info("Claude Code detected."),"claude-code"}catch{}try{if((await fetch("http://localhost:11434/api/version",{signal:AbortSignal.timeout(1e3)})).ok)return await e.info("Ollama detected at localhost:11434."),"ollama"}catch{}try{if(await S`which opencode`.noThrow().code()===0)return await e.info("OpenCode detected."),"opencode"}catch{}if(m.capabilities.env){if(m.env.has("ANTHROPIC_API_KEY"))return await e.info("Anthropic API key detected."),"anthropic";if(m.env.has("OPENAI_API_KEY"))return await e.info("OpenAI API key detected."),"openai"}throw new Error("No AI provider detected. Install claude, ollama, or set ANTHROPIC_API_KEY / OPENAI_API_KEY.")},U=async e=>{switch(e){case"claude-code":return(await import("./claude-code-S2SGKOBE.js")).claudeCodeFactory;case"ollama":return(await import("./ollama-IRQSLTDB.js")).ollamaFactory;case"opencode":return(await import("./opencode-74XXXUQ2.js")).openCodeFactory;case"kiro":return(await import("./kiro-LNQTCWQU.js")).kiroFactory;case"anthropic":return(await import("./anthropic-QBGNUIP3.js")).anthropicFactory;case"openai":return(await import("./openai-2KONKHWL.js")).openaiFactory;case"gemini":return(await import("./gemini-43AWJEWI.js")).geminiFactory;case"vertexai":return(await import("./vertexai-2F2A3VTE.js")).vertexaiFactory;default:throw new Error(`Unknown provider: ${e}`)}},le=async e=>{let t=e??[],n=null,i=null,o=null,s=!1,p=!1,A=[],a=0;for(;a<t.length;){let r=t[a];if(r==="-p"||r==="--provider"){n=t[a+1]??null,a+=2;continue}if(r==="-m"||r==="--model"){i=t[a+1]??null,a+=2;continue}if(r==="--max-tokens"){let c=t[a+1];c!==void 0&&(o=Number(c)),a+=2;continue}if(r==="--json"){s=!0,a+=1;continue}if(r==="-v"||r==="--verbose"){p=!0,a+=1;continue}r.startsWith("-")||A.push(r),a+=1}let f=A.join(" ");if(f.length===0)return g({message:'Usage: ai ask "your prompt" [-p provider] [-m model] [--verbose]',exitCode:1});let d=await K(p);try{let r=n!==null?H(n):await M(d),c=q[r]??r,E=i??z(r);await d.info(`Using ${c} (${E})`);let N=await U(r),w=new _({factories:[N]});await w.addModel("default",{provider:r,model:E});let h=w.getDefault();if(h===null)return g({message:"Failed to initialize model",exitCode:1});let b=[F("user",f)];if(await d.info(`Sending prompt (${f.length} chars)...`),s){let u=await h.generateText({messages:b,maxTokens:o??void 0});await d.info(`Response received (${$(u).length} chars)`);let l=v({sink:y.stdout()});l.writeln(JSON.stringify(u,null,2)),await l.close()}else{let u=k(h,{messages:b,maxTokens:o??void 0});await I().from(u).to(V()).run();let l=m.process.stdout.getWriter();await l.write(new TextEncoder().encode(`
2
+ import{a as _,b as $}from"./chunk-GE3LJ6QM.js";import{a as F}from"./chunk-BNQAZLIQ.js";import{d as x,f as v,g as I,h as y,k as P}from"./chunk-SHN5MT56.js";import{d as O,e as L,g as R}from"./chunk-5DWJ7WEE.js";import{a as T}from"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-J7YTWK67.js";import{d as S}from"./chunk-GVTM4EOU.js";import{a as C,b as g}from"./chunk-FFWPJP7A.js";import{i as m}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var k=(e,t,n)=>{let i=e.streamText(t,n);return{name:`ai-text/${e.provider}/${e.modelId}`,readable:new ReadableStream({async start(o){try{for await(let s of i)s.kind==="content_delta"&&o.enqueue(x(s.textDelta));o.close()}catch(s){o.error(s)}}})}};var Y={cc:"claude-code",ol:"ollama",oc:"opencode",oai:"openai",ant:"anthropic",gem:"gemini",vtx:"vertexai"},q={"claude-code":"Claude Code",ollama:"Ollama",opencode:"OpenCode",kiro:"Kiro",anthropic:"Anthropic API",openai:"OpenAI API",gemini:"Gemini API",vertexai:"Vertex AI"},H=e=>Y[e]??e,K=async e=>{if(e){let t=m.process.stderr.getWriter(),n=v({renderer:P.ansi(),sink:y.writable(new WritableStream({async write(i){await t.write(new TextEncoder().encode(String(i.data)))},close(){t.releaseLock()}}))});await O.configure({sinks:{stderr:R.getOutputSink(n)},loggers:[{category:["ai"],lowestLevel:T.Debug,sinks:["stderr"]}]})}return L.getLogger(["ai","ask"])},M=async e=>{await e.info("Auto-detecting AI provider...");try{if(await S`which claude`.noThrow().code()===0)return await e.info("Claude Code detected."),"claude-code"}catch{}try{if((await fetch("http://localhost:11434/api/version",{signal:AbortSignal.timeout(1e3)})).ok)return await e.info("Ollama detected at localhost:11434."),"ollama"}catch{}try{if(await S`which opencode`.noThrow().code()===0)return await e.info("OpenCode detected."),"opencode"}catch{}if(m.capabilities.env){if(m.env.has("ANTHROPIC_API_KEY"))return await e.info("Anthropic API key detected."),"anthropic";if(m.env.has("OPENAI_API_KEY"))return await e.info("OpenAI API key detected."),"openai"}throw new Error("No AI provider detected. Install claude, ollama, or set ANTHROPIC_API_KEY / OPENAI_API_KEY.")},U=async e=>{switch(e){case"claude-code":return(await import("./claude-code-UJYCO6CN.js")).claudeCodeFactory;case"ollama":return(await import("./ollama-DFG5G467.js")).ollamaFactory;case"opencode":return(await import("./opencode-UA45VV3W.js")).openCodeFactory;case"kiro":return(await import("./kiro-V6SMU4OL.js")).kiroFactory;case"anthropic":return(await import("./anthropic-QBGNUIP3.js")).anthropicFactory;case"openai":return(await import("./openai-2KONKHWL.js")).openaiFactory;case"gemini":return(await import("./gemini-43AWJEWI.js")).geminiFactory;case"vertexai":return(await import("./vertexai-2F2A3VTE.js")).vertexaiFactory;default:throw new Error(`Unknown provider: ${e}`)}},le=async e=>{let t=e??[],n=null,i=null,o=null,s=!1,p=!1,A=[],a=0;for(;a<t.length;){let r=t[a];if(r==="-p"||r==="--provider"){n=t[a+1]??null,a+=2;continue}if(r==="-m"||r==="--model"){i=t[a+1]??null,a+=2;continue}if(r==="--max-tokens"){let c=t[a+1];c!==void 0&&(o=Number(c)),a+=2;continue}if(r==="--json"){s=!0,a+=1;continue}if(r==="-v"||r==="--verbose"){p=!0,a+=1;continue}r.startsWith("-")||A.push(r),a+=1}let f=A.join(" ");if(f.length===0)return g({message:'Usage: ai ask "your prompt" [-p provider] [-m model] [--verbose]',exitCode:1});let d=await K(p);try{let r=n!==null?H(n):await M(d),c=q[r]??r,E=i??z(r);await d.info(`Using ${c} (${E})`);let N=await U(r),w=new _({factories:[N]});await w.addModel("default",{provider:r,model:E});let h=w.getDefault();if(h===null)return g({message:"Failed to initialize model",exitCode:1});let b=[F("user",f)];if(await d.info(`Sending prompt (${f.length} chars)...`),s){let u=await h.generateText({messages:b,maxTokens:o??void 0});await d.info(`Response received (${$(u).length} chars)`);let l=v({sink:y.stdout()});l.writeln(JSON.stringify(u,null,2)),await l.close()}else{let u=k(h,{messages:b,maxTokens:o??void 0});await I().from(u).to(V()).run();let l=m.process.stdout.getWriter();await l.write(new TextEncoder().encode(`
3
3
  `)),l.releaseLock()}return await w.close(),C(void 0)}catch(r){let c=r instanceof Error?r.message:String(r);return await d.error(c),p&&r instanceof Error&&r.cause!==void 0&&await d.debug(`Cause: ${String(r.cause)}`),g({message:c,exitCode:1})}},j=12,G=e=>new Promise(t=>setTimeout(t,e)),V=(e=j)=>{let t=new TextEncoder;return{name:"typewriter",writable:new WritableStream({async write(n){let i=String(n.data),o=m.process.stdout.getWriter();for(let s of i)await o.write(t.encode(s)),await G(e);o.releaseLock()}})}},z=e=>{switch(e){case"claude-code":return"claude-sonnet-4-20250514";case"ollama":return"llama3";case"opencode":return"default";case"kiro":return"default";case"anthropic":return"claude-sonnet-4-20250514";case"openai":return"gpt-4o";case"gemini":return"gemini-2.0-flash";case"vertexai":return"gemini-2.0-flash";default:return"default"}};export{le as main};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{h as $}from"./chunk-L32KHQVT.js";import{p as v,u as A}from"./chunk-FXDWRGGR.js";import{c as y,e as k,g as C,h as S,i as E}from"./chunk-RBU3HF66.js";import{c as x}from"./chunk-UEMWZOIU.js";import"./chunk-2XNFZXHY.js";import{f as w,h,k as g}from"./chunk-SHN5MT56.js";import{c as d,d as p,f as a,h as f}from"./chunk-YVN2NZL4.js";import{a as u,b as n}from"./chunk-FFWPJP7A.js";import{i as l}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var j=async m=>{let e=w({renderer:g.ansi(),sink:h.stdout()}),i=l.process.cwd(),o=C(m);if(!o.ok)return e.writeln(a(o.error)),await e.close(),n({exitCode:1});let c=(m??[]).filter(t=>!t.startsWith("--spec=")).join(" ")||"No reason given",s;try{s=await k(i,o.spec)}catch(t){let D=t instanceof Error?t.message:String(t);return e.writeln(a(D)),await e.close(),n({exitCode:1})}if(s.spec!==null){let t=`${i}/${y.specDir(s.spec)}`;try{await l.fs.stat(t)}catch{return e.writeln(a(`Active spec '${s.spec}' directory not found.`)),e.writeln(p("Run `noskills reset` to return to IDLE.")),await e.close(),n({exitCode:1})}}if(s.phase!=="EXECUTING")return e.writeln(a(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let b=await $(i),r=v(s,c);return r=A(r,"EXECUTING","BLOCKED",b,c),await S(i,r),r.spec!==null&&await E(i,r.spec,r),e.writeln(f("\u26A0")," Spec blocked: ",p(c)),e.writeln("Resolve with: ",d(`${x('next --answer="resolution"')}`)),await e.close(),u(void 0)};export{j as main};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{f as e,u as s,v as t,w as r,x as a}from"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},c=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:s("browser"),path:e,exec:t("browser"),env:a(),process:r("browser")});export{o as BROWSER_CAPABILITIES,c as createBrowserRuntime};
2
+ import{f as e,u as s,v as t,w as r,x as a}from"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},c=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:s("browser"),path:e,exec:t("browser"),env:a(),process:r("browser")});export{o as BROWSER_CAPABILITIES,c as createBrowserRuntime};
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{f as d,h as g,k as m}from"./chunk-ZC4F4MYU.js";import{b as c,d as L,h as C,k as u}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{a as v}from"./chunk-MJ2IPSAE.js";import"./chunk-MG65QJY6.js";import{a as y}from"./chunk-FFWPJP7A.js";import"./chunk-WJKE6XHF.js";import"./chunk-6E6JUBFH.js";import"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var V=["trace","debug","info","warn","error","fatal"],N=async x=>{let{flags:o}=v(x??[],[{name:"out-dir",type:"string",default:"dist",description:"Output directory"},{name:"clean",type:"boolean",description:"Clean output first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",default:"info",description:"Log level"}]),t=d({renderer:m.ansi(),sink:g.stdout()});t.writeln(u(`
2
+ import{f as d,h as g,k as m}from"./chunk-SHN5MT56.js";import{b as c,d as L,h as C,k as u}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{a as v}from"./chunk-RNFCAHVL.js";import"./chunk-MG65QJY6.js";import{a as y}from"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var V=["trace","debug","info","warn","error","fatal"],N=async x=>{let{flags:o}=v(x??[],[{name:"out-dir",type:"string",default:"dist",description:"Output directory"},{name:"clean",type:"boolean",description:"Clean output first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",default:"info",description:"Log level"}]),t=d({renderer:m.ansi(),sink:g.stdout()});t.writeln(u(`
3
3
  \u{1F4E6} Building for production...
4
- `));let e=await import("./mod-5JT4O5L3.js"),{runtime:n}=await import("./mod-DXA25A4J.js"),i=n.process.cwd(),p=o["out-dir"],S=!o["no-minify"],h=o.clean,k=o.analyze,f=o["log-level"]??"info",b=V.includes(f.toLowerCase())?f.toLowerCase():"info",z={trace:e.Severities.Trace,debug:e.Severities.Debug,info:e.Severities.Info,warn:e.Severities.Warning,error:e.Severities.Error,fatal:e.Severities.Critical},D=d({renderer:m.ansi(),sink:g.stdout()});await e.config.configure({sinks:{console:e.sinks.getOutputSink(D)},loggers:[{category:["laroux-bundler"],lowestLevel:z[b],sinks:["console"]}]});let[{build:A,createBuildContext:E},{loadConfig:O},{reactPlugin:B},{createTailwindPlugin:P}]=await Promise.all([import("./system-WX4PNZSQ.js"),import("./load-config-G4DHKB5K.js"),import("./mod-RMDGRCBK.js"),import("./mod-BKHQAEVL.js")]),T=e.logger.getLogger(["laroux-bundler","cli"]),s=await O(i),r={projectRoot:i,srcDir:n.path.resolve(i,s.srcDir),distDir:n.path.resolve(i,p),logLevel:b,fonts:s.fonts,images:s.images,cssModuleTypes:s.cssModuleTypes,noCssModuleAutoReference:s.noCssModuleAutoReference,browserShims:s.browserShims,serverExternals:s.build.serverExternals,build:{...s.build,minify:S}};if(h)try{await n.fs.remove(r.distDir,{recursive:!0}),T.debug(`Cleaned ${r.distDir}`)}catch{}let R=P({globalCssPath:n.path.resolve(i,"src/app/styles/global.css")}),j=E(r,{framework:B,css:R,bundlerBackend:"rolldown"});if(await A(j),await e.config.reset(),k){t.writeln(u(`
4
+ `));let e=await import("./mod-5JT4O5L3.js"),{runtime:n}=await import("./mod-4XKQZL6W.js"),i=n.process.cwd(),p=o["out-dir"],S=!o["no-minify"],h=o.clean,k=o.analyze,f=o["log-level"]??"info",b=V.includes(f.toLowerCase())?f.toLowerCase():"info",z={trace:e.Severities.Trace,debug:e.Severities.Debug,info:e.Severities.Info,warn:e.Severities.Warning,error:e.Severities.Error,fatal:e.Severities.Critical},D=d({renderer:m.ansi(),sink:g.stdout()});await e.config.configure({sinks:{console:e.sinks.getOutputSink(D)},loggers:[{category:["laroux-bundler"],lowestLevel:z[b],sinks:["console"]}]});let[{build:A,createBuildContext:E},{loadConfig:O},{reactPlugin:B},{createTailwindPlugin:P}]=await Promise.all([import("./system-QDBQLRO6.js"),import("./load-config-JZNJVJXH.js"),import("./mod-NSL6IJRQ.js"),import("./mod-VZT7JWPZ.js")]),T=e.logger.getLogger(["laroux-bundler","cli"]),s=await O(i),r={projectRoot:i,srcDir:n.path.resolve(i,s.srcDir),distDir:n.path.resolve(i,p),logLevel:b,fonts:s.fonts,images:s.images,cssModuleTypes:s.cssModuleTypes,noCssModuleAutoReference:s.noCssModuleAutoReference,browserShims:s.browserShims,serverExternals:s.build.serverExternals,build:{...s.build,minify:S}};if(h)try{await n.fs.remove(r.distDir,{recursive:!0}),T.debug(`Cleaned ${r.distDir}`)}catch{}let R=P({globalCssPath:n.path.resolve(i,"src/app/styles/global.css")}),j=E(r,{framework:B,css:R,bundlerBackend:"rolldown"});if(await A(j),await e.config.reset(),k){t.writeln(u(`
5
5
  \u{1F4CA} Bundle Analysis:
6
6
  `));try{let M=`${p}/client/manifest.json`,$=await n.fs.readTextFile(M),w=JSON.parse($);t.writeln(c("Chunks:"));for(let[a,l]of Object.entries(w.files)){let I=(l.size/1024).toFixed(2);t.writeln(c(` ${a.padEnd(30)} ${I.padStart(8)} KB`))}let F=Object.values(w.files).reduce((a,l)=>a+l.size,0);t.writeln(L(`
7
7
  Total: ${(F/1024).toFixed(2)} KB`))}catch{t.writeln(C("Could not analyze build (manifest.json not found)"))}}return await t.close(),y(void 0)};export{N as main};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as m,b as h,c as g,d as S}from"./chunk-VWQLQJVX.js";import{s as l,t as p}from"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var y={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},u=async i=>{if(!i)return new Uint8Array(0);let n=[],t=i.getReader();try{for(;;){let{done:e,value:s}=await t.read();if(e)break;n.push(s)}}finally{t.releaseLock()}let a=n.reduce((e,s)=>e+s.length,0),o=new Uint8Array(a),d=0;for(let e of n)o.set(e,d),d+=e.length;return o},P=async(i,n=[],t)=>{let[a,o,d]=l(t),e=Bun.spawn([i,...n],{cwd:t?.cwd,env:t?.env,stdin:a,stdout:o,stderr:d}),[s,r,c]=await Promise.all([e.exited,u(e.stdout),u(e.stderr)]);return{success:s===0,code:s,stdout:r,stderr:c}},b=(i,n=[],t)=>{let[a,o,d]=l(t),e=Bun.spawn([i,...n],{cwd:t?.cwd,env:t?.env,stdin:a,stdout:o,stderr:d}),s=e.exited.then(r=>({success:r===0,code:r,signal:void 0}));return{pid:e.pid,stdin:e.stdin,stdout:e.stdout,stderr:e.stderr,status:s,output:async()=>{let[r,c,w]=await Promise.all([s,u(e.stdout),u(e.stderr)]);return{success:r.success,code:r.code,stdout:c,stderr:w}},kill:r=>{e.kill(r)}}},A=()=>({name:"bun",version:Bun.version,capabilities:y,fs:m(),path:h(),exec:p(P,b),env:g(),process:S()});export{y as BUN_CAPABILITIES,A as createBunRuntime};
2
+ import{a as m,b as h,c as g,d as S}from"./chunk-TW23CULJ.js";import{s as l,t as p}from"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var y={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},u=async i=>{if(!i)return new Uint8Array(0);let n=[],t=i.getReader();try{for(;;){let{done:e,value:s}=await t.read();if(e)break;n.push(s)}}finally{t.releaseLock()}let a=n.reduce((e,s)=>e+s.length,0),o=new Uint8Array(a),d=0;for(let e of n)o.set(e,d),d+=e.length;return o},P=async(i,n=[],t)=>{let[a,o,d]=l(t),e=Bun.spawn([i,...n],{cwd:t?.cwd,env:t?.env,stdin:a,stdout:o,stderr:d}),[s,r,c]=await Promise.all([e.exited,u(e.stdout),u(e.stderr)]);return{success:s===0,code:s,stdout:r,stderr:c}},b=(i,n=[],t)=>{let[a,o,d]=l(t),e=Bun.spawn([i,...n],{cwd:t?.cwd,env:t?.env,stdin:a,stdout:o,stderr:d}),s=e.exited.then(r=>({success:r===0,code:r,signal:void 0}));return{pid:e.pid,stdin:e.stdin,stdout:e.stdout,stderr:e.stderr,status:s,output:async()=>{let[r,c,w]=await Promise.all([s,u(e.stdout),u(e.stderr)]);return{success:r.success,code:r.code,stdout:c,stderr:w}},kill:r=>{e.kill(r)}}},A=()=>({name:"bun",version:Bun.version,capabilities:y,fs:m(),path:h(),exec:p(P,b),env:g(),process:S()});export{y as BUN_CAPABILITIES,A as createBunRuntime};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{a as k,d as I}from"./chunk-43E7ZXUB.js";import{h as D}from"./chunk-L32KHQVT.js";import{r as y,u as C}from"./chunk-FXDWRGGR.js";import{c as w,e as h,g as S,h as g,i as E}from"./chunk-RBU3HF66.js";import"./chunk-2XNFZXHY.js";import{f as d,h as u,k as f}from"./chunk-SHN5MT56.js";import{d as l,f as n,g as m}from"./chunk-YVN2NZL4.js";import{a as p,b as i}from"./chunk-FFWPJP7A.js";import{i as o}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var N=async x=>{let e=d({renderer:f.ansi(),sink:u.stdout()}),r=o.process.cwd(),c=S(x);if(!c.ok)return e.writeln(n(c.error)),await e.close(),i({exitCode:1});let s;try{s=await h(r,c.spec)}catch(a){let U=a instanceof Error?a.message:String(a);return e.writeln(n(U)),await e.close(),i({exitCode:1})}if(s.phase==="IDLE"||s.phase==="FREE"||s.phase==="UNINITIALIZED"||s.phase==="COMPLETED")return e.writeln(n(`Cannot cancel in phase: ${s.phase}`)),await e.close(),i({exitCode:1});if(s.spec!==null){let a=`${r}/${w.specDir(s.spec)}`;try{await o.fs.stat(a)}catch{return e.writeln(n(`Active spec '${s.spec}' directory not found.`)),e.writeln(l("Run `noskills reset` to return to IDLE.")),await e.close(),i({exitCode:1})}}let L=await D(r),t=y(s,"cancelled");return t=C(t,s.phase,"COMPLETED",L,"cancelled"),await g(r,t),t.spec!==null&&await E(r,t.spec,t),t.spec!==null&&(await k(r,t.spec,"cancelled"),await I(r,t.spec,"cancelled")),e.writeln(m("\u2714")," Spec cancelled."),await e.close(),p(void 0)};export{N as main};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as R,b as A}from"./chunk-ENTSZDR6.js";import{a as w}from"./chunk-YBCZC5KZ.js";import"./chunk-26ZFSXSK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-2XNFZXHY.js";import{a as x}from"./chunk-LFNUSULJ.js";import{a as y,c as v}from"./chunk-LGNGLAV3.js";import{o as m}from"./chunk-ZER2RYWJ.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as h}from"./chunk-P2MUEKFT.js";import"./chunk-ZC4F4MYU.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-BLXGL5MA.js";import{a as C}from"./chunk-MG65QJY6.js";import{g as u}from"./chunk-FFWPJP7A.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import{j as p}from"./chunk-WJKE6XHF.js";import"./chunk-6E6JUBFH.js";import"./chunk-BQT5RJZB.js";import"./chunk-5WJ6AUNY.js";var{ctx:f,output:q}=y(),$={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},E=new Set(["chore","ci","test"]),S=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}(.+)$/,T=/\s{0,100}\(take\s{1,100}[IVXLCDM\d]+\)\s{0,100}\.?$/i,G=(t,o)=>{let n=t.match(S);if(n!==null)return{type:n[1].toLowerCase(),scope:n[2],message:n[3].trim(),hash:o}},O=t=>t.replace(T,"").trim(),N=t=>{let o=[];for(let n of t){let e=G(n.subject,n.hash);e!==void 0&&o.push(e)}return o},I=t=>{let o=new Set,n=[];for(let e of t){let s=O(e.message),a=s.replace(/[.\s]{1,20}$/,"").toLowerCase(),l=`${e.type}:${a}`;o.has(l)||(o.add(l),n.push({...e,message:s}))}return n},P=t=>{let o=new Map;for(let n of t){if(E.has(n.type))continue;let e=$[n.type];if(e===void 0)continue;let s=o.get(e);s!==void 0?s.push(n):o.set(e,[n])}return o},M=t=>t.scope!==void 0?`- **${t.scope}:** ${t.message}`:`- ${t.message}`,b=(t,o)=>{let n=P(o);if(n.size===0){let l=new Date().toISOString().split("T")[0];return`## ${t} - ${l}
2
+ import{a as R,b as A}from"./chunk-MTCPFQ5I.js";import{a as w}from"./chunk-XBCL25QR.js";import"./chunk-3D5TBTM3.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-2XNFZXHY.js";import{a as x}from"./chunk-LFNUSULJ.js";import{a as y,c as v}from"./chunk-JTSRGXS4.js";import{o as m}from"./chunk-4TTJVJEI.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as h}from"./chunk-P2MUEKFT.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-GVTM4EOU.js";import{a as C}from"./chunk-MG65QJY6.js";import{g as u}from"./chunk-FFWPJP7A.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import{j as p}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var{ctx:f,output:q}=y(),$={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},E=new Set(["chore","ci","test"]),S=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}(.+)$/,T=/\s{0,100}\(take\s{1,100}[IVXLCDM\d]+\)\s{0,100}\.?$/i,G=(t,o)=>{let n=t.match(S);if(n!==null)return{type:n[1].toLowerCase(),scope:n[2],message:n[3].trim(),hash:o}},O=t=>t.replace(T,"").trim(),N=t=>{let o=[];for(let n of t){let e=G(n.subject,n.hash);e!==void 0&&o.push(e)}return o},I=t=>{let o=new Set,n=[];for(let e of t){let s=O(e.message),a=s.replace(/[.\s]{1,20}$/,"").toLowerCase(),l=`${e.type}:${a}`;o.has(l)||(o.add(l),n.push({...e,message:s}))}return n},P=t=>{let o=new Map;for(let n of t){if(E.has(n.type))continue;let e=$[n.type];if(e===void 0)continue;let s=o.get(e);s!==void 0?s.push(n):o.set(e,[n])}return o},M=t=>t.scope!==void 0?`- **${t.scope}:** ${t.message}`:`- ${t.message}`,b=(t,o)=>{let n=P(o);if(n.size===0){let l=new Date().toISOString().split("T")[0];return`## ${t} - ${l}
3
3
 
4
4
  _Maintenance release._`}let e=new Date().toISOString().split("T")[0],s=[`## ${t} - ${e}`],a=["Added","Changed","Fixed","Removed"];for(let l of a){let r=n.get(l);if(!(r===void 0||r.length===0)){s.push("",`### ${l}`,"");for(let d of r)s.push(M(d))}}return s.join(`
5
5
  `)},k=(t,o,n)=>{let e=t.split(`
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as S,b as G,c as R}from"./chunk-MBCPGD5L.js";import{e as ee}from"./chunk-J2Z7NG2X.js";import{f as p,h as u,k as d}from"./chunk-ZC4F4MYU.js";import{b as r,d as i,f as w,g as y,h as Z,k as l}from"./chunk-YVN2NZL4.js";import{d as v}from"./chunk-BLXGL5MA.js";import{a as k}from"./chunk-3QH27NOC.js";import{a as f,b as g}from"./chunk-FFWPJP7A.js";import{g as T,i as m}from"./chunk-WJKE6XHF.js";import{g as ie,m as O,n as K,o as I,p as le}from"./chunk-BQT5RJZB.js";var de="# eser CLI completions",B="eser",te=async e=>{try{return await m.fs.readTextFile(e)}catch{return""}},me=async e=>{try{return await m.fs.stat(e),!0}catch{return!1}},se=async e=>{let t=R(e,B);if(t.completionType==="file")return await me(t.completionsFile);let s=await te(t.rcFile),n=G(e,B);return s.includes(n)},ne=async e=>{let t=R(e,B),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=m.path.dirname(n);try{await m.fs.mkdir(o,{recursive:!0})}catch{}await m.fs.writeTextFile(n,`# eser CLI completions
2
+ import{a as S,b as G,c as R}from"./chunk-L5OC7F24.js";import{e as ee}from"./chunk-J2Z7NG2X.js";import{f as p,h as u,k as d}from"./chunk-SHN5MT56.js";import{b as r,d as i,f as w,g as y,h as Z,k as l}from"./chunk-YVN2NZL4.js";import{d as v}from"./chunk-GVTM4EOU.js";import{a as k}from"./chunk-XFCBVUI7.js";import{a as f,b as g}from"./chunk-FFWPJP7A.js";import{g as T,i as m}from"./chunk-6DBKPC2O.js";import{g as ie,m as O,n as K,o as I,p as le}from"./chunk-6G6UVWJN.js";var de="# eser CLI completions",B="eser",te=async e=>{try{return await m.fs.readTextFile(e)}catch{return""}},me=async e=>{try{return await m.fs.stat(e),!0}catch{return!1}},se=async e=>{let t=R(e,B);if(t.completionType==="file")return await me(t.completionsFile);let s=await te(t.rcFile),n=G(e,B);return s.includes(n)},ne=async e=>{let t=R(e,B),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=m.path.dirname(n);try{await m.fs.mkdir(o,{recursive:!0})}catch{}await m.fs.writeTextFile(n,`# eser CLI completions
3
3
  # This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
4
4
  complete -c eser -f
5
5
  complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as i}from"./chunk-J7YTWK67.js";import{b as d,d as c}from"./chunk-BLXGL5MA.js";var y=async(r,t)=>{let e=t.properties?.binPath;if(e!==void 0)return e;try{let n=await c`which ${r}`.noThrow().text();if(n.length>0)return n}catch{}throw new i(`Binary "${r}" not found. Set properties.binPath in config or ensure it is on PATH.`,{provider:r})},f=(r,t,e)=>{let s=new d(r,[...t],{stdin:"null",stdout:"piped",stderr:"piped",cwd:e?.cwd,env:e?.env}).child();if(e?.signal!==void 0){let o=e.signal;o.aborted?s.kill("SIGTERM"):o.addEventListener("abort",()=>{s.kill("SIGTERM")},{once:!0})}return{stdout:s.stdout,stderr:s.stderr,waitForExit:async()=>{let o=await s.status;return{code:o.code,success:o.success}},kill:o=>{s.kill(o??"SIGTERM")}}},a=new TextDecoder;async function*m(r){let t=r.getReader(),e="";try{let n=await t.read();for(;n.done!==!0;){e+=a.decode(n.value,{stream:!0});let o=e.split(`
2
+ import{a as i}from"./chunk-J7YTWK67.js";import{b as d,d as c}from"./chunk-GVTM4EOU.js";var y=async(r,t)=>{let e=t.properties?.binPath;if(e!==void 0)return e;try{let n=await c`which ${r}`.noThrow().text();if(n.length>0)return n}catch{}throw new i(`Binary "${r}" not found. Set properties.binPath in config or ensure it is on PATH.`,{provider:r})},f=(r,t,e)=>{let s=new d(r,[...t],{stdin:"null",stdout:"piped",stderr:"piped",cwd:e?.cwd,env:e?.env}).child();if(e?.signal!==void 0){let o=e.signal;o.aborted?s.kill("SIGTERM"):o.addEventListener("abort",()=>{s.kill("SIGTERM")},{once:!0})}return{stdout:s.stdout,stderr:s.stderr,waitForExit:async()=>{let o=await s.status;return{code:o.code,success:o.success}},kill:o=>{s.kill(o??"SIGTERM")}}},a=new TextDecoder;async function*m(r){let t=r.getReader(),e="";try{let n=await t.read();for(;n.done!==!0;){e+=a.decode(n.value,{stream:!0});let o=e.split(`
3
3
  `);e=o.pop()??"";for(let u of o){let l=u.trim();if(l.length!==0)try{yield JSON.parse(l)}catch{}}n=await t.read()}let s=e.trim();if(s.length>0)try{yield JSON.parse(s)}catch{}}finally{t.releaseLock()}}var h=async(r,t)=>{let e=r.getReader(),n=[],s=await e.read();for(;s.done!==!0;)n.push(a.decode(s.value,{stream:!0})),s=await e.read();return e.releaseLock(),{content:[{kind:"text",text:n.join("").trim()}],stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0},modelId:t}},w=async r=>{let t=r.getReader(),e=[],n=await t.read();for(;n.done!==!0;)e.push(a.decode(n.value,{stream:!0})),n=await t.read();return t.releaseLock(),e.join("").trim()},x=(r,t,e)=>{if(t===0)return null;let n=e.length>0?`${r} exited with code ${t}: ${e}`:`${r} exited with code ${t}`;return t===1?new i(n,{provider:r}):t===126||t===127?new i(`${r} binary not found or not executable (exit code ${t})`,{provider:r}):new i(n,{provider:r})},b=(r,t)=>{let e=[];t!==void 0&&(e.push(t),e.push(""));for(let n of r)for(let s of n.content)s.kind==="text"&&e.push(s.text);return e.join(`
4
4
  `)};export{y as a,f as b,m as c,h as d,w as e,x as f,b as g};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{i as l}from"./chunk-WJKE6XHF.js";var F=s=>{if(s===void 0)return"json";for(let n of s)if(n==="-o"||n.startsWith("--output")){let t=s.indexOf(n);if(n.includes("="))return x(n.split("=")[1]??"json");let i=s[t+1];if(i!==void 0&&!i.startsWith("-"))return x(i)}return"json"},O=s=>{if(s===void 0)return[];let n=[],t=!1;for(let i=0;i<s.length;i++){if(t){t=!1;continue}let o=s[i];if(!o.startsWith("--output=")){if(o==="-o"||o==="--output"){t=!0;continue}n.push(o)}}return n},x=s=>{let n=s.toLowerCase();return n==="md"||n==="markdown"?"markdown":n==="text"||n==="txt"||n==="plain"?"text":"json"},e=(s,n)=>s[n],$=s=>JSON.stringify(s,null,2),w=s=>{let n=s,t=[],i=e(n,"phase");i!==void 0&&(t.push(`# noskills \u2014 ${i}`),t.push(""));let o=e(n,"instruction");o!==void 0&&(t.push("## Instruction"),t.push(""),t.push(o),t.push(""));let a=e(n,"questions");if(a!==void 0&&a.length>0)for(let r of a){if(t.push(`## Question: ${r.id}`),t.push(""),t.push(`> ${r.text}`),r.extras!==void 0&&r.extras.length>0){t.push(""),t.push("Also consider:");for(let m of r.extras)t.push(`- ${m}`)}t.push("")}let h=e(n,"statusReport");if(h!==void 0){t.push("## Acceptance Criteria"),t.push("");for(let r of h.criteria)t.push(`- [ ] ${r}`);t.push("")}let p=e(n,"previousIterationDebt");if(p!==void 0){t.push(`## Debt (from iteration ${p.fromIteration})`),t.push(""),t.push(`> ${p.note}`),t.push("");for(let r of p.items)t.push(`- ${r}`);t.push("")}e(n,"verificationFailed")===!0&&(t.push("## Verification FAILED"),t.push(""),t.push("```"),t.push(String(e(n,"verificationOutput")??"")),t.push("```"),t.push(""));let c=e(n,"behavioral");if(c!==void 0){t.push("## Behavioral"),t.push(""),t.push(`**Tone:** ${c.tone}`),t.push("");for(let r of c.rules)t.push(`- ${r}`);c.urgency!==void 0&&(t.push(""),t.push(`**Urgency:** ${c.urgency}`)),t.push("")}let f=e(n,"meta");f!==void 0&&(t.push("---"),t.push(""),t.push(`*${f.resumeHint}*`),t.push(""));let d=e(n,"transition");if(d!==void 0){t.push("## Next Steps"),t.push("");for(let[r,m]of Object.entries(d))r!=="iteration"&&t.push(`- **${r}:** \`${m}\``);t.push("")}let u=e(n,"summary");u!==void 0&&(t.push("## Summary"),t.push(""),t.push(`- Spec: ${u.spec}`),t.push(`- Iterations: ${u.iterations}`),t.push(`- Decisions: ${u.decisionsCount}`),t.push(""));let g=e(n,"clearContext");return g!==void 0&&(t.push("---"),t.push(""),t.push(`**Action required:** ${g.reason}`),t.push("")),t.join(`
2
+ import{i as l}from"./chunk-6DBKPC2O.js";var F=s=>{if(s===void 0)return"json";for(let n of s)if(n==="-o"||n.startsWith("--output")){let t=s.indexOf(n);if(n.includes("="))return x(n.split("=")[1]??"json");let i=s[t+1];if(i!==void 0&&!i.startsWith("-"))return x(i)}return"json"},O=s=>{if(s===void 0)return[];let n=[],t=!1;for(let i=0;i<s.length;i++){if(t){t=!1;continue}let o=s[i];if(!o.startsWith("--output=")){if(o==="-o"||o==="--output"){t=!0;continue}n.push(o)}}return n},x=s=>{let n=s.toLowerCase();return n==="md"||n==="markdown"?"markdown":n==="text"||n==="txt"||n==="plain"?"text":"json"},e=(s,n)=>s[n],$=s=>JSON.stringify(s,null,2),w=s=>{let n=s,t=[],i=e(n,"phase");i!==void 0&&(t.push(`# noskills \u2014 ${i}`),t.push(""));let o=e(n,"instruction");o!==void 0&&(t.push("## Instruction"),t.push(""),t.push(o),t.push(""));let a=e(n,"questions");if(a!==void 0&&a.length>0)for(let r of a){if(t.push(`## Question: ${r.id}`),t.push(""),t.push(`> ${r.text}`),r.extras!==void 0&&r.extras.length>0){t.push(""),t.push("Also consider:");for(let m of r.extras)t.push(`- ${m}`)}t.push("")}let h=e(n,"statusReport");if(h!==void 0){t.push("## Acceptance Criteria"),t.push("");for(let r of h.criteria)t.push(`- [ ] ${r}`);t.push("")}let p=e(n,"previousIterationDebt");if(p!==void 0){t.push(`## Debt (from iteration ${p.fromIteration})`),t.push(""),t.push(`> ${p.note}`),t.push("");for(let r of p.items)t.push(`- ${r}`);t.push("")}e(n,"verificationFailed")===!0&&(t.push("## Verification FAILED"),t.push(""),t.push("```"),t.push(String(e(n,"verificationOutput")??"")),t.push("```"),t.push(""));let c=e(n,"behavioral");if(c!==void 0){t.push("## Behavioral"),t.push(""),t.push(`**Tone:** ${c.tone}`),t.push("");for(let r of c.rules)t.push(`- ${r}`);c.urgency!==void 0&&(t.push(""),t.push(`**Urgency:** ${c.urgency}`)),t.push("")}let f=e(n,"meta");f!==void 0&&(t.push("---"),t.push(""),t.push(`*${f.resumeHint}*`),t.push(""));let d=e(n,"transition");if(d!==void 0){t.push("## Next Steps"),t.push("");for(let[r,m]of Object.entries(d))r!=="iteration"&&t.push(`- **${r}:** \`${m}\``);t.push("")}let u=e(n,"summary");u!==void 0&&(t.push("## Summary"),t.push(""),t.push(`- Spec: ${u.spec}`),t.push(`- Iterations: ${u.iterations}`),t.push(`- Decisions: ${u.decisionsCount}`),t.push(""));let g=e(n,"clearContext");return g!==void 0&&(t.push("---"),t.push(""),t.push(`**Action required:** ${g.reason}`),t.push("")),t.join(`
3
3
  `)},k=s=>{let n=s,t=[],i=e(n,"phase");i!==void 0&&t.push(`[${i}]`);let o=e(n,"instruction");o!==void 0&&t.push(o);let a=e(n,"questions");if(a!==void 0&&a.length>0){for(let u of a)if(t.push(""),t.push(`Question [${u.id}]: ${u.text}`),u.extras!==void 0)for(let g of u.extras)t.push(` - ${g}`)}let h=e(n,"statusReport");if(h!==void 0){t.push(""),t.push("Criteria:");for(let u of h.criteria)t.push(` - ${u}`)}let p=e(n,"previousIterationDebt");if(p!==void 0){t.push(""),t.push(p.note);for(let u of p.items)t.push(` - ${u}`)}e(n,"verificationFailed")===!0&&(t.push(""),t.push(`Verification failed: ${String(e(n,"verificationOutput")??"").slice(0,200)}`));let c=e(n,"meta");c!==void 0&&(t.push(""),t.push(c.resumeHint));let f=e(n,"summary");f!==void 0&&t.push(`Spec: ${f.spec}, Iterations: ${f.iterations}, Decisions: ${f.decisionsCount}`);let d=e(n,"clearContext");return d!==void 0&&(t.push(""),t.push(d.reason)),t.join(`
4
4
  `)},b=(s,n)=>{switch(n){case"markdown":return w(s);case"text":return k(s);default:return $(s)}},v=async(s,n)=>{let t=b(s,n),i=new TextEncoder,o=l.process.stdout.getWriter();await o.write(i.encode(t+`
5
5
  `)),o.releaseLock()};export{F as a,O as b,b as c,v as d};
@@ -1,3 +1,3 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as b}from"./chunk-GTHXGAMQ.js";import{a as O}from"./chunk-3XJLLDR5.js";import{a as D}from"./chunk-P7WCO724.js";import{a as S}from"./chunk-2XNFZXHY.js";import{i as p}from"./chunk-WJKE6XHF.js";import{e as _}from"./chunk-5WJ6AUNY.js";var y={DenoJson:"deno.json",DenoJsonc:"deno.jsonc",JsrJson:"jsr.json",JsrJsonc:"jsr.jsonc",PackageJson:"package.json"},k=[y.DenoJson,y.DenoJsonc,y.JsrJson,y.JsrJsonc,y.PackageJson],P=Symbol.for("baseDir"),F={name:{"deno.json":"name","deno.jsonc":"name","jsr.json":"name","jsr.jsonc":"name","package.json":"name"},version:{"deno.json":"version","deno.jsonc":"version","jsr.json":"version","jsr.jsonc":"version","package.json":"version"},description:{"package.json":"description"},license:{"deno.json":"license","deno.jsonc":"license","package.json":"license"},private:{"package.json":"private"},exports:{"deno.json":"exports","deno.jsonc":"exports","jsr.json":"exports","jsr.jsonc":"exports","package.json":"exports"},workspaces:{"deno.json":"workspace","deno.jsonc":"workspace","package.json":"workspaces"},imports:{"deno.json":"imports","deno.jsonc":"imports"},dependencies:{"package.json":"dependencies"},devDependencies:{"package.json":"devDependencies"}};var A=_(S(),1);var c={Unknown:0,EnvironmentFile:1,Json:2,JsonWithComments:3,Toml:4,Yaml:5};var I={[c.Unknown]:"unknown",[c.EnvironmentFile]:"environment",[c.Json]:"JSON",[c.JsonWithComments]:"JSONC",[c.Toml]:"TOML",[c.Yaml]:"YAML"},h=class extends Error{filepath;format;constructor(n,r,i){super(`Failed to parse ${I[r]??"unknown"} file "${n}": ${i.message}`,{cause:i}),this.name="ConfigParseError",this.filepath=n,this.format=r}};var M=e=>{let n=p.path.extname(e);return n===".json"?c.Json:n===".jsonc"?c.JsonWithComments:n===".yaml"||n===".yml"?c.Yaml:n===".toml"?c.Toml:n===".env"?c.EnvironmentFile:c.Unknown},x=async(e,n)=>{let r=n??M(e),i=await p.fs.readTextFile(e);try{return r===c.Json?{content:JSON.parse(i),filepath:e,format:r}:r===c.JsonWithComments?{content:O(i),filepath:e,format:r}:r===c.Yaml?{content:A.parse(i),filepath:e,format:r}:r===c.Toml?{content:D(i),filepath:e,format:r}:{content:void 0,filepath:e,format:c.Unknown}}catch(t){throw t instanceof Error?new h(e,r,t):new h(e,r,new Error(String(t)))}};var E=(e,n,r)=>{if(e==null)return r;let i=n.length;if(i===0)return e;let t=e;for(let o=0;o<i;o++){if(t==null)return r;let a=n[o];t=t[a]}return t===void 0?r:t};var m=class extends Error{filepath;constructor(n,r,i){super(n,{cause:i}),this.name="PackageLoadError",this.filepath=r}},$=async(e,n)=>{if(await p.fs.exists(e)===!1||(await p.fs.stat(e)).isFile===!1)return;let t=await p.fs.readTextFile(e),a=(await x(e)).content;if(a!==void 0)return{filepath:e,fileType:n,content:a,rawText:t}},Y=async(e,n)=>{let r=[];for(let i of n){let t=p.path.join(e,i),o=await $(t,i);o&&r.push(o)}return r},B=(e,n)=>E(e,n.split(".")),u=(e,n,r)=>{let i,t,o=[];for(let a of n){let l=r[e]?.[a.fileType];if(l===void 0)continue;let s=B(a.content,l);if(s===void 0)continue;let d={filepath:a.filepath,fileType:a.fileType,propertyPath:l};i===void 0?(i=s,t=d):o.push(d)}if(!(i===void 0||t===void 0))return{value:i,origin:t,alternateOrigins:o}},G=e=>e===void 0?F:b(F,e),H=e=>[...e].sort((n,r)=>k.indexOf(n)-k.indexOf(r)),T=async(e={})=>{let{baseDir:n=".",includeFiles:r=k,fieldMappings:i,searchParents:t=!1}=e,o=G(i),a=H(r),l=p.path.resolve(n),s=[];for(;s=await Y(l,a),!(s.length>0||!t);){let g=p.path.dirname(l);if(g===l)break;l=g}if(s.length===0)throw new m(`No config files found in ${n}. Looked for: ${a.join(", ")}`);return{name:u("name",s,o),version:u("version",s,o),description:u("description",s,o),license:u("license",s,o),private:u("private",s,o),exports:u("exports",s,o),workspaces:u("workspaces",s,o),imports:u("imports",s,o),dependencies:u("dependencies",s,o),devDependencies:u("devDependencies",s,o),[P]:l,_loadedFiles:s}},v=async(e={})=>{try{return await T(e)}catch(n){if(n instanceof m)return;throw n}},R=(e,n)=>{let r=e[n];if(!r)return[];let i=new Set([r.origin.filepath,...r.alternateOrigins.map(t=>t.filepath)]);return e._loadedFiles.filter(t=>i.has(t.filepath))},L=e=>e[P];var K=(e,n)=>{let r=n.split("."),i=e;for(let t of r){if(C.has(t)||i==null||typeof i!="object"||!Object.hasOwn(i,t))return;i=i[t]}return i},C=new Set(["__proto__","constructor","prototype"]),V=(e,n,r)=>{let i=n.split("."),t=e;for(let a=0;a<i.length-1;a++){let l=i[a];if(l===void 0||C.has(l))return;if(!Object.hasOwn(t,l)||typeof t[l]!="object"||t[l]===null){let s=Object.create(null);t[l]=s}t=t[l]}let o=i[i.length-1];o!==void 0&&!C.has(o)&&(t[o]=r)},q=e=>`${JSON.stringify(e,null,2)}
2
+ import{a as b}from"./chunk-GTHXGAMQ.js";import{a as O}from"./chunk-3XJLLDR5.js";import{a as D}from"./chunk-P7WCO724.js";import{a as S}from"./chunk-2XNFZXHY.js";import{i as p}from"./chunk-6DBKPC2O.js";import{e as _}from"./chunk-5WJ6AUNY.js";var y={DenoJson:"deno.json",DenoJsonc:"deno.jsonc",JsrJson:"jsr.json",JsrJsonc:"jsr.jsonc",PackageJson:"package.json"},k=[y.DenoJson,y.DenoJsonc,y.JsrJson,y.JsrJsonc,y.PackageJson],P=Symbol.for("baseDir"),F={name:{"deno.json":"name","deno.jsonc":"name","jsr.json":"name","jsr.jsonc":"name","package.json":"name"},version:{"deno.json":"version","deno.jsonc":"version","jsr.json":"version","jsr.jsonc":"version","package.json":"version"},description:{"package.json":"description"},license:{"deno.json":"license","deno.jsonc":"license","package.json":"license"},private:{"package.json":"private"},exports:{"deno.json":"exports","deno.jsonc":"exports","jsr.json":"exports","jsr.jsonc":"exports","package.json":"exports"},workspaces:{"deno.json":"workspace","deno.jsonc":"workspace","package.json":"workspaces"},imports:{"deno.json":"imports","deno.jsonc":"imports"},dependencies:{"package.json":"dependencies"},devDependencies:{"package.json":"devDependencies"}};var A=_(S(),1);var c={Unknown:0,EnvironmentFile:1,Json:2,JsonWithComments:3,Toml:4,Yaml:5};var I={[c.Unknown]:"unknown",[c.EnvironmentFile]:"environment",[c.Json]:"JSON",[c.JsonWithComments]:"JSONC",[c.Toml]:"TOML",[c.Yaml]:"YAML"},h=class extends Error{filepath;format;constructor(n,r,i){super(`Failed to parse ${I[r]??"unknown"} file "${n}": ${i.message}`,{cause:i}),this.name="ConfigParseError",this.filepath=n,this.format=r}};var M=e=>{let n=p.path.extname(e);return n===".json"?c.Json:n===".jsonc"?c.JsonWithComments:n===".yaml"||n===".yml"?c.Yaml:n===".toml"?c.Toml:n===".env"?c.EnvironmentFile:c.Unknown},x=async(e,n)=>{let r=n??M(e),i=await p.fs.readTextFile(e);try{return r===c.Json?{content:JSON.parse(i),filepath:e,format:r}:r===c.JsonWithComments?{content:O(i),filepath:e,format:r}:r===c.Yaml?{content:A.parse(i),filepath:e,format:r}:r===c.Toml?{content:D(i),filepath:e,format:r}:{content:void 0,filepath:e,format:c.Unknown}}catch(t){throw t instanceof Error?new h(e,r,t):new h(e,r,new Error(String(t)))}};var E=(e,n,r)=>{if(e==null)return r;let i=n.length;if(i===0)return e;let t=e;for(let o=0;o<i;o++){if(t==null)return r;let a=n[o];t=t[a]}return t===void 0?r:t};var m=class extends Error{filepath;constructor(n,r,i){super(n,{cause:i}),this.name="PackageLoadError",this.filepath=r}},$=async(e,n)=>{if(await p.fs.exists(e)===!1||(await p.fs.stat(e)).isFile===!1)return;let t=await p.fs.readTextFile(e),a=(await x(e)).content;if(a!==void 0)return{filepath:e,fileType:n,content:a,rawText:t}},Y=async(e,n)=>{let r=[];for(let i of n){let t=p.path.join(e,i),o=await $(t,i);o&&r.push(o)}return r},B=(e,n)=>E(e,n.split(".")),u=(e,n,r)=>{let i,t,o=[];for(let a of n){let l=r[e]?.[a.fileType];if(l===void 0)continue;let s=B(a.content,l);if(s===void 0)continue;let d={filepath:a.filepath,fileType:a.fileType,propertyPath:l};i===void 0?(i=s,t=d):o.push(d)}if(!(i===void 0||t===void 0))return{value:i,origin:t,alternateOrigins:o}},G=e=>e===void 0?F:b(F,e),H=e=>[...e].sort((n,r)=>k.indexOf(n)-k.indexOf(r)),T=async(e={})=>{let{baseDir:n=".",includeFiles:r=k,fieldMappings:i,searchParents:t=!1}=e,o=G(i),a=H(r),l=p.path.resolve(n),s=[];for(;s=await Y(l,a),!(s.length>0||!t);){let g=p.path.dirname(l);if(g===l)break;l=g}if(s.length===0)throw new m(`No config files found in ${n}. Looked for: ${a.join(", ")}`);return{name:u("name",s,o),version:u("version",s,o),description:u("description",s,o),license:u("license",s,o),private:u("private",s,o),exports:u("exports",s,o),workspaces:u("workspaces",s,o),imports:u("imports",s,o),dependencies:u("dependencies",s,o),devDependencies:u("devDependencies",s,o),[P]:l,_loadedFiles:s}},v=async(e={})=>{try{return await T(e)}catch(n){if(n instanceof m)return;throw n}},R=(e,n)=>{let r=e[n];if(!r)return[];let i=new Set([r.origin.filepath,...r.alternateOrigins.map(t=>t.filepath)]);return e._loadedFiles.filter(t=>i.has(t.filepath))},L=e=>e[P];var K=(e,n)=>{let r=n.split("."),i=e;for(let t of r){if(C.has(t)||i==null||typeof i!="object"||!Object.hasOwn(i,t))return;i=i[t]}return i},C=new Set(["__proto__","constructor","prototype"]),V=(e,n,r)=>{let i=n.split("."),t=e;for(let a=0;a<i.length-1;a++){let l=i[a];if(l===void 0||C.has(l))return;if(!Object.hasOwn(t,l)||typeof t[l]!="object"||t[l]===null){let s=Object.create(null);t[l]=s}t=t[l]}let o=i[i.length-1];o!==void 0&&!C.has(o)&&(t[o]=r)},q=e=>`${JSON.stringify(e,null,2)}
3
3
  `,z=async(e,n)=>{let r=JSON.parse(JSON.stringify(e.content));for(let[t,o]of Object.entries(n))V(r,t,o);let i=q(r);await p.fs.writeTextFile(e.filepath,i),e.content=r,e.rawText=i},Q=(e,n,r)=>{let{targetFiles:i="all",createIfMissing:t=!1}=r,o=e[n];if(i==="origin"){if(o===void 0){let s=e._loadedFiles[0];return t&&s!==void 0?[s]:[]}let l=e._loadedFiles.find(s=>s.filepath===o.origin.filepath);return l?[l]:[]}if(i==="all")return!o&&!t?[]:!o&&t?[...e._loadedFiles]:R(e,n);let a=new Set(i);return e._loadedFiles.filter(l=>a.has(l.fileType))},J=async(e,n,r,i={})=>{let t=[],o=[],a=[],l=Q(e,n,i);if(l.length===0)return{updated:t,failed:o,skipped:a};for(let s of l){let d=F[n]?.[s.fileType];if(!d){a.push(s.filepath);continue}if(K(s.content,d)===r){a.push(s.filepath);continue}try{await z(s,{[d]:r}),t.push(s.filepath)}catch(f){o.push({filepath:s.filepath,reason:f instanceof Error?f.message:String(f)})}}if(t.length>0){let s=e[n];if(s)s.value=r;else{let d=e._loadedFiles.find(g=>t.includes(g.filepath));if(d){let g=F[n]?.[d.fileType];g&&(e[n]={value:r,origin:{filepath:d.filepath,fileType:d.fileType,propertyPath:g},alternateOrigins:[]})}}}return{updated:t,failed:o,skipped:a}};var X=async(e,n,r)=>await J(e,"version",n,{...r,targetFiles:"all"});var w=class extends Error{constructor(n){super(n),this.name="WorkspaceError"}},U=async e=>{try{return await T({baseDir:e})}catch(n){throw n instanceof m?new w(`No package config file found in ${p.path.resolve(e)}`):n}},Z=async(e,n)=>{let r=[];for(let i of n)if(i.endsWith("/*")){let t=p.path.join(e,i.slice(0,-2));try{for await(let o of p.fs.readDir(t))o.isDirectory&&r.push(p.path.join(t,o.name))}catch{}}else if(i.includes("*")||i.includes("?")){let t=i.split("/"),o=[],a=0;for(let f=0;f<t.length;f++){if(t[f].includes("*")||t[f].includes("?")){a=f;break}o.push(t[f])}let l=p.path.join(e,...o),d=t.slice(a).join("/").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]"),g=new RegExp(`^${d}$`);try{for await(let f of p.fs.walk(l,{includeDirs:!0,includeFiles:!1})){let j=p.path.relative(l,f.path);j!==""&&g.test(j)&&r.push(f.path)}}catch{}}else r.push(p.path.join(e,i));return r},ee=async e=>{let n=await U(e),r=n.workspaces?.value;if(!Array.isArray(r))throw new w("Package config doesn't have workspace field.");for(let o of r)if(typeof o!="string")throw new w("Package config workspace field should be an array of strings.");let i=await Z(e,r),t=[];for(let o of i){let a=await v({baseDir:o});if(a===void 0)continue;let l=a.name?.value,s=a.version?.value,d=a.private?.value;l!==void 0&&d!==!0&&t.push({name:l,version:s??"0.0.0",config:a})}return[n,t]};export{y as a,T as b,v as c,L as d,X as e,ee as f};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as n}from"./chunk-JLRVMMMH.js";var e=n({name:"validate-case-conflict",description:"Detect filenames that differ only by case",canFix:!1,stacks:[],defaults:{},checkAll(r){let o=new Map,s=[];for(let t of r){let a=t.path.toLowerCase(),i=o.get(a);i!==void 0?s.push({path:t.path,message:`case conflict with "${i}"`}):o.set(a,t.path)}return s}}),f=e.run,m=e.validator,d=e.main;export{e as a,f as b,m as c,d};
2
+ import{a as n}from"./chunk-HVQK35SO.js";var e=n({name:"validate-case-conflict",description:"Detect filenames that differ only by case",canFix:!1,stacks:[],defaults:{},checkAll(r){let o=new Map,s=[];for(let t of r){let a=t.path.toLowerCase(),i=o.get(a);i!==void 0?s.push({path:t.path,message:`case conflict with "${i}"`}):o.set(a,t.path)}return s}}),f=e.run,m=e.validator,d=e.main;export{e as a,f as b,m as c,d};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{b as c}from"./chunk-NBA6EFWU.js";import{i as u}from"./chunk-WJKE6XHF.js";var n=e=>{let a=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*");return new RegExp(`^${a}$`)};async function*f(e,a,s){let o=u.fs.walk(e,{includeDirs:!1,includeFiles:!0,exts:c,skip:[s]});for await(let r of o){let t=u.path.relative(e,r.path);a!==void 0&&!n(a).test(t)||(yield t)}}var F=new RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),A=new RegExp("[\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");export{f as a};
2
+ import{b as c}from"./chunk-NBA6EFWU.js";import{i as u}from"./chunk-6DBKPC2O.js";var n=e=>{let a=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*");return new RegExp(`^${a}$`)};async function*f(e,a,s){let o=u.fs.walk(e,{includeDirs:!1,includeFiles:!0,exts:c,skip:[s]});for await(let r of o){let t=u.path.relative(e,r.path);a!==void 0&&!n(a).test(t)||(yield t)}}var F=new RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),A=new RegExp("[\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");export{f as a};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as o}from"./chunk-JLRVMMMH.js";var a=1024,s=o({name:"validate-large-files",description:"Detect files exceeding size limit",canFix:!1,stacks:[],defaults:{maxKb:a},checkAll(n,r){let e=r.maxKb??a,l=e*1024,t=[];for(let i of n)if(i.size>l){let c=Math.round(i.size/1024);t.push({path:i.path,message:`file is ${c}KB (max: ${e}KB)`})}return t}}),d=s.run,f=s.validator,x=s.main;export{s as a,d as b,f as c,x as d};
2
+ import{a as o}from"./chunk-HVQK35SO.js";var a=1024,s=o({name:"validate-large-files",description:"Detect files exceeding size limit",canFix:!1,stacks:[],defaults:{maxKb:a},checkAll(n,r){let e=r.maxKb??a,l=e*1024,t=[];for(let i of n)if(i.size>l){let c=Math.round(i.size/1024);t.push({path:i.path,message:`file is ${c}KB (max: ${e}KB)`})}return t}}),d=s.run,f=s.validator,x=s.main;export{s as a,d as b,f as c,x as d};
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{b as w}from"./chunk-LGNGLAV3.js";import{b as r,f as n,g as h}from"./chunk-YVN2NZL4.js";import{a as y}from"./chunk-MG65QJY6.js";import{g as i}from"./chunk-FFWPJP7A.js";import{j as v}from"./chunk-WJKE6XHF.js";var m=w(),x=["ci","chore","docs","feat","fix","perf","refactor","revert","test"],C=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}.+$/,M=(p,e={})=>{let o=e.allowAsterisk??!0,a=e.allowMultipleScopes??!0,c=e.forceScope??!1,f=new Set(e.types??x),s=[],l=p.split(`
2
+ import{b as w}from"./chunk-JTSRGXS4.js";import{b as r,f as n,g as h}from"./chunk-YVN2NZL4.js";import{a as y}from"./chunk-MG65QJY6.js";import{g as i}from"./chunk-FFWPJP7A.js";import{j as v}from"./chunk-6DBKPC2O.js";var m=w(),x=["ci","chore","docs","feat","fix","perf","refactor","revert","test"],C=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}.+$/,M=(p,e={})=>{let o=e.allowAsterisk??!0,a=e.allowMultipleScopes??!0,c=e.forceScope??!1,f=new Set(e.types??x),s=[],l=p.split(`
3
3
  `)[0]?.trim()??"";if(l==="")return{valid:!1,issues:["commit message is empty"]};if(l.startsWith("Merge "))return{valid:!0,issues:[]};let d=l.match(C);if(d===null)return s.push(`invalid format: expected "type(scope): message", got: "${l}"`),{valid:!1,issues:s};let g=d[1].toLowerCase(),t=d[2];return f.has(g)||s.push(`invalid type "${g}". Must be one of: ${[...f].join(", ")}`),c&&(t===void 0||t.trim()==="")&&s.push("scope is required: use type(scope): message"),t!==void 0&&t.trim()!==""&&(t==="*"&&!o&&s.push('wildcard scope "*" is not allowed (allowAsterisk is false)'),t.includes(",")&&(a?t.split(",").map(u=>u.trim()).filter(u=>u==="").length>0&&s.push("invalid scope: each comma-separated scope must be non-empty"):s.push("multiple scopes are not allowed (allowMultipleScopes is false)"))),{valid:s.length===0,issues:s}},_=async p=>{let e=y(p??[],{string:["message"],boolean:["help"],alias:{h:"help",m:"message"}});if(e.help)return console.log(`eser codebase validate-commit-msg \u2014 Validate conventional commit format
4
4
  `),console.log("Usage:"),console.log(" eser codebase validate-commit-msg <commit-msg-file>"),console.log(" eser codebase validate-commit-msg --message 'feat(x): msg'"),i.ok(void 0);let o;if(e.message!==void 0)o=e.message;else if(e._.length>0)try{o=await v.runtime.fs.readTextFile(String(e._[0]))}catch{return m.writeln(n("\u2717"),r(` cannot read commit message file: ${e._[0]}`)),i.fail({exitCode:1})}else return m.writeln(n("\u2717"),r(" no commit message provided")),i.fail({exitCode:1});let a=M(o);if(a.valid)return m.writeln(h("\u2713"),r(" commit message is valid")),i.ok(void 0);for(let c of a.issues)m.writeln(n("\u2717"),r(" "+c));return i.fail({exitCode:1})};export{M as a,_ as b};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as i}from"./chunk-JLRVMMMH.js";import{i as t}from"./chunk-WJKE6XHF.js";var s=i({name:"validate-submodules",description:"Detect new git submodules",canFix:!1,stacks:[],defaults:{},async checkAll(n,a){let o=t.path.join(a.root,".gitmodules");if(!await t.fs.exists(o))return[];let e=((await t.fs.readTextFile(o)).match(/\[submodule\s/g)??[]).length;return e>0?[{path:o,message:`found ${e} submodule(s) \u2014 submodules are not allowed`}]:[]}}),p=s.run,f=s.validator,x=s.main;export{s as a,p as b,f as c,x as d};
2
+ import{a as i}from"./chunk-HVQK35SO.js";import{i as t}from"./chunk-6DBKPC2O.js";var s=i({name:"validate-submodules",description:"Detect new git submodules",canFix:!1,stacks:[],defaults:{},async checkAll(n,a){let o=t.path.join(a.root,".gitmodules");if(!await t.fs.exists(o))return[];let e=((await t.fs.readTextFile(o)).match(/\[submodule\s/g)??[]).length;return e>0?[{path:o,message:`found ${e} submodule(s) \u2014 submodules are not allowed`}]:[]}}),p=s.run,f=s.validator,x=s.main;export{s as a,p as b,f as c,x as d};
@@ -1,3 +1,3 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as o}from"./chunk-JLRVMMMH.js";var p=[{name:"AWS Access Key ID",pattern:/AKIA[0-9A-Z]{16}/},{name:"Private Key",pattern:/-----BEGIN\s{1,5}(RSA\s{1,5}|EC\s{1,5}|DSA\s{1,5}|OPENSSH\s{1,5})?PRIVATE KEY-----/},{name:"Generic secret assignment",pattern:/(?:secret|password|api_key|apikey|access_token|auth_token|private_key)\s{0,5}[=:]\s{0,5}["'][^"']{8,}["']/i}],d=[/\.lock$/,/package-lock\.json$/,/\.test\./,/testdata\//,/\.snap$/,/\.min\./],t=o({name:"validate-secrets",description:"Detect credentials and private keys",canFix:!1,stacks:[],defaults:{},checkFile(a,s){if(s===void 0)return[];for(let e of d)if(e.test(a.path))return[];let n=[],r=s.split(`
2
+ import{a as o}from"./chunk-HVQK35SO.js";var p=[{name:"AWS Access Key ID",pattern:/AKIA[0-9A-Z]{16}/},{name:"Private Key",pattern:/-----BEGIN\s{1,5}(RSA\s{1,5}|EC\s{1,5}|DSA\s{1,5}|OPENSSH\s{1,5})?PRIVATE KEY-----/},{name:"Generic secret assignment",pattern:/(?:secret|password|api_key|apikey|access_token|auth_token|private_key)\s{0,5}[=:]\s{0,5}["'][^"']{8,}["']/i}],d=[/\.lock$/,/package-lock\.json$/,/\.test\./,/testdata\//,/\.snap$/,/\.min\./],t=o({name:"validate-secrets",description:"Detect credentials and private keys",canFix:!1,stacks:[],defaults:{},checkFile(a,s){if(s===void 0)return[];for(let e of d)if(e.test(a.path))return[];let n=[],r=s.split(`
3
3
  `);for(let e=0;e<r.length;e++){let i=r[e];for(let{name:c,pattern:l}of p)if(l.test(i)){n.push({path:a.path,line:e+1,message:`potential ${c} detected`});break}}return n}}),k=t.run,T=t.validator,y=t.main;export{t as a,k as b,T as c,y as d};
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{c as o}from"./chunk-YW377352.js";import{i as e}from"./chunk-WJKE6XHF.js";var d=async(r,i,n)=>{let s=`${r}/${o.specFile(i)}`;try{let t=await e.fs.readTextFile(s);t=t.replace(/^## Status: .+$/m,`## Status: ${n}`),await e.fs.writeTextFile(s,t)}catch{}},u=async(r,i,n)=>{let s=`${r}/${o.specFile(i)}`;try{let t=await e.fs.readTextFile(s),a=new RegExp(`^(- )\\[ \\]( ${n}:.*)$`,"m");t=t.replace(a,"$1[x]$2"),await e.fs.writeTextFile(s,t)}catch{}},w=async(r,i,n,s)=>{let t=`${r}/${o.specDir(i)}/progress.json`;try{let a=await e.fs.readTextFile(t),c=JSON.parse(a);for(let p of c.tasks)p.id===n&&(p.status=s);c.updatedAt=new Date().toISOString(),await e.fs.writeTextFile(t,JSON.stringify(c,null,2)+`
2
+ import{c as o}from"./chunk-RBU3HF66.js";import{i as e}from"./chunk-6DBKPC2O.js";var d=async(r,i,n)=>{let s=`${r}/${o.specFile(i)}`;try{let t=await e.fs.readTextFile(s);t=t.replace(/^## Status: .+$/m,`## Status: ${n}`),await e.fs.writeTextFile(s,t)}catch{}},u=async(r,i,n)=>{let s=`${r}/${o.specFile(i)}`;try{let t=await e.fs.readTextFile(s),a=new RegExp(`^(- )\\[ \\]( ${n}:.*)$`,"m");t=t.replace(a,"$1[x]$2"),await e.fs.writeTextFile(s,t)}catch{}},w=async(r,i,n,s)=>{let t=`${r}/${o.specDir(i)}/progress.json`;try{let a=await e.fs.readTextFile(t),c=JSON.parse(a);for(let p of c.tasks)p.id===n&&(p.status=s);c.updatedAt=new Date().toISOString(),await e.fs.writeTextFile(t,JSON.stringify(c,null,2)+`
3
3
  `)}catch{}},f=async(r,i,n)=>{let s=`${r}/${o.specDir(i)}/progress.json`;try{let t=await e.fs.readTextFile(s),a=JSON.parse(t);a.status=n,a.updatedAt=new Date().toISOString(),await e.fs.writeTextFile(s,JSON.stringify(a,null,2)+`
4
4
  `)}catch{}};export{d as a,u as b,w as c,f as d};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ 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","New features and API changes must be documented so contributors can discover and use them"],acceptanceCriteria:["Public API documented","Changes reflected in README or relevant docs","No exclusionary patterns introduced"]};var r={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:"status_quo",text:"What does the current UI look like? Rate it 0-10 on design intentionality."},{questionId:"ambition",text:"In the 10-star version, what does the user feel?"},{questionId:"ambition",text:"What would a 10/10 design look like for this feature? Describe the emotional response you want from users."},{questionId:"ambition",text:"What makes this UI NOT look AI-generated? Name specific design decisions that differentiate it from generic templates."},{questionId:"verification",text:"How will you verify design quality? Will you review empty states, loading states, error states, and edge cases (long text, zero results, slow connection)?"}],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","Rate each UI change 0-10 on design intentionality before marking task complete. If below 7, iterate.","Check all interaction states: loading, empty, error, success, partial. Missing states are bugs, not TODOs.","Edge case check: what happens with 47-character names? Zero results? Network failure mid-action?","AI SLOP BLACKLIST \u2014 reject these patterns in any UI implementation: (1) Purple/violet gradient backgrounds (2) 3-column feature grid with icon-in-circle + bold title + 2-line description (3) Icons in colored circles as decoration (4) Everything centered (text-align: center on all elements) (5) Uniform bubbly border-radius on every element (6) Decorative blobs, floating circles, wavy SVG dividers (7) Emoji as design elements in headings or bullets (8) Colored left-border on cards (9) Generic hero copy ('Welcome to X', 'Unlock the power of...') (10) Cookie-cutter section rhythm (hero \u2192 3 features \u2192 testimonials \u2192 pricing). If the implementation matches any of these patterns, reject it and ask for a redesign with specific, intentional alternatives."],acceptanceCriteria:["All UI states designed (empty, loading, error, success)","Mobile layout considered","No placeholder or skeleton UI left unfinished","All UI states specified and implemented: loading, empty, error, success, partial","No placeholder text in shipped UI \u2014 every empty state has warmth, a primary action, and context","Design rated 7+ on intentionality by the spec author"]};var a={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:"verification",text:"Is documentation (README, CHANGELOG, API docs) up to date with this change?"},{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","If this task changes public behavior, API, CLI flags, or configuration \u2014 update README and relevant docs in the SAME task. Documentation is not a follow-up."],acceptanceCriteria:["Backward compatibility preserved","Migration path documented if breaking","No unnecessary new dependencies","Documentation updated for any public-facing change"]};var c={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"],acceptanceCriteria:["Core functionality works","v2 items explicitly deferred"]};var d={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"],acceptanceCriteria:["Audit trail added for state changes","Access control verified","Data handling documented"]};var l={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"],acceptanceCriteria:["Learnings documented","Experiment outcomes recorded"]};var u=[s,r,a,c,d,l];var N=()=>Promise.resolve(u),T=(n,t)=>{let e=[];for(let i of n)for(let o of i.extras)o.questionId===t&&e.push(o);return e},W=n=>{let t=[];for(let e of n)for(let i of e.reminders)t.push(`${e.id}: ${i}`);return t},M=n=>{let t=[],e=n.map(i=>i.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{u as a,N as b,T as c,W as d,M as e};
@@ -0,0 +1,2 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import{f as ge,h as ne,k as ie}from"./chunk-SHN5MT56.js";import{b as l,c as Le,d,e as U,f as R,g,h as B,i as Be,k,l as _,n as ye,o as V}from"./chunk-YVN2NZL4.js";import{i as x}from"./chunk-6DBKPC2O.js";import{d as D}from"./chunk-5WJ6AUNY.js";var h=Symbol("tui.cancel"),We=e=>e===h,Me={ctrlC:"exit",escape:"cancel"},je=()=>{try{return x.process.stdin}catch{return new ReadableStream}},ze=e=>{let t=e?.interaction??(e?.target==="non-interactive"?"non-interactive":"interactive"),r=e?.audience??"human",s=t==="non-interactive"?"non-interactive":"interactive",n=t==="interactive";return{output:e?.output??ge({renderer:n?ie.ansi():ie.plain(),sink:n?ne.stdout():ne.stderr()}),input:e?.input??je(),target:s,interaction:t,audience:r,signals:{...Me,...e?.signals},stderr:e?.stderr??ge({renderer:ie.plain(),sink:ne.stderr()})}};var Ie={};D(Ie,{disableMouse:()=>Ye,enableMouse:()=>Xe,isSGRMouseSequence:()=>xe,parseMouseEvent:()=>be});var Xe=()=>"\x1B[?1000h\x1B[?1002h\x1B[?1006h",Ye=()=>"\x1B[?1006l\x1B[?1002l\x1B[?1000l",Je=/^\x1b\[<(\d+);(\d+);(\d+)([Mm])$/,be=e=>{let t=e.match(Je);if(t===null)return null;let r=parseInt(t[1],10),s=parseInt(t[2],10)-1,n=parseInt(t[3],10)-1,i=t[4]==="m",o=r&3,a=(r&4)!==0,p=(r&16)!==0,c=(r&32)!==0;return(r&64)!==0?{type:"wheel",button:0,x:s,y:n,shift:a,ctrl:p,direction:r&1?"down":"up"}:c?{type:"mousemove",button:o,x:s,y:n,shift:a,ctrl:p}:{type:i?"mouseup":"mousedown",button:o,x:s,y:n,shift:a,ctrl:p}},xe=e=>e.length>=4&&e[0]===27&&e[1]===91&&e[2]===60;var E=async e=>{let t=!1;if(x.capabilities.stdin&&x.process.isTerminal("stdin"))try{x.process.setStdinRaw(!0),t=!0}catch{}try{return await e()}finally{if(t)try{x.process.setStdinRaw(!1)}catch{}}},P=e=>{e.write(l("\x1B[?25l"))},A=e=>{e.write(l("\x1B[?25h"))},f=(e,t)=>{t>0&&e.write(l(`\x1B[${t}A\x1B[J`))},oe=e=>{e.write(l("\r\x1B[2K"))},Ne=e=>{let t=new Uint8Array(e);if(e.length===1&&e[0]===3)return{name:"c",ctrl:!0,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===27)return{name:"escape",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&(e[0]===13||e[0]===10))return{name:"return",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===9)return{name:"tab",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===127)return{name:"backspace",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length>=3&&e[0]===27&&e[1]===91)switch(e[2]){case 65:return{name:"up",ctrl:!1,meta:!1,shift:!1,raw:t};case 66:return{name:"down",ctrl:!1,meta:!1,shift:!1,raw:t};case 67:return{name:"right",ctrl:!1,meta:!1,shift:!1,raw:t};case 68:return{name:"left",ctrl:!1,meta:!1,shift:!1,raw:t};case 72:return{name:"home",ctrl:!1,meta:!1,shift:!1,raw:t};case 70:return{name:"end",ctrl:!1,meta:!1,shift:!1,raw:t}}if(e.length===1&&e[0]>=1&&e[0]<=26)return{name:String.fromCharCode(e[0]+96),ctrl:!0,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===32)return{name:"space",char:" ",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]>=33&&e[0]<=126){let r=String.fromCharCode(e[0]);return{name:r,char:r,ctrl:!1,meta:!1,shift:!1,raw:t}}if(e.length>0&&e[0]>=192){let r=new TextDecoder().decode(e);return{name:r,char:r,ctrl:!1,meta:!1,shift:!1,raw:t}}return{name:"unknown",ctrl:!1,meta:!1,shift:!1,raw:t}};async function*L(e,t){let r=e.getReader();try{for(;!t?.aborted;){let{done:s,value:n}=await r.read();if(s||n===void 0)break;yield Ne(n)}}finally{r.releaseLock()}}async function*Ze(e,t){let r=e.getReader(),s=new TextDecoder;try{for(;!t?.aborted;){let{done:n,value:i}=await r.read();if(n||i===void 0)break;if(xe(i)){let o=s.decode(i),a=be(o);if(a!==null){yield{kind:"mouse",event:a};continue}}yield{kind:"key",event:Ne(i)}}}finally{r.releaseLock()}}var w=(e,t)=>{if(e==="exit"){A(t.output);try{x.process.setStdinRaw(!1)}catch{}x.process.exit(130)}return e==="cancel"?"cancel":"continue"};var y="\u2502",De="\u250C",C="\u2514";var F="\u25CF",q="\u25CB",_e="\u25FC",Ge="\u25FB",M="\u25C6",v="\u25C7",O="\u25A0",$e="\u25CF";var G="\u25B2";var Ue="\u25C7";var ae=(e,t,r,s)=>{if(s==="done"){let o=r?"Yes":"No";return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${o}`)),1}if(s==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let n=r?U(g(F),l(" Yes")):U(d(q),d(" Yes")),i=r?U(d(q),d(" No")):U(g(F),l(" No"));return e.output.writeln(k(M),l(` ${t}`)),e.output.writeln(d(y),l(" "),n,d(" / "),i),e.output.writeln(d(C)),3},Qe=async(e,t)=>{let r=t.initialValue??!0,s=0;P(e.output);try{return await E(async()=>{s=ae(e,t.message,r,"active"),await e.output.flush();let n=()=>{f(e.output,s),ae(e,t.message,r,"cancel")};for await(let i of L(e.input)){if(i.name==="c"&&i.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="escape"){if(w(e.signals.escape,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="return")return f(e.output,s),ae(e,t.message,r,"done"),await e.output.flush(),r;let o=!1;(i.name==="left"||i.name==="right")&&(r=!r,o=!0),(i.name==="y"||i.name==="Y")&&(r=!0,o=!0),(i.name==="n"||i.name==="N")&&(r=!1,o=!0),o&&(f(e.output,s),s=ae(e,t.message,r,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var W=(e,t,r,s,n,i)=>{if(i==="done")return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${r}`)),1;if(i==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let o=r.length>0?l(r):s!==void 0?d(s):l(""),a=n!==void 0?B(G):k(M);e.output.writeln(a,l(` ${t}`)),e.output.writeln(d(y),l(" "),o);let p=2;return n!==void 0?(e.output.writeln(d(C),l(" "),B(n)),p=3):(e.output.writeln(d(C)),p=3),p},et=async(e,t)=>{let r=t.initialValue??"",s=r.length,n,i=0;P(e.output);try{return await E(async()=>{i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush();let o=()=>{f(e.output,i),W(e,t.message,r,t.placeholder,void 0,"cancel")};for await(let a of L(e.input)){if(a.name==="c"&&a.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="escape"){if(w(e.signals.escape,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="return"){if(t.validate!==void 0){let p=t.validate(r);if(p!==void 0){n=p,f(e.output,i),i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush();continue}}return f(e.output,i),W(e,t.message,r,t.placeholder,void 0,"done"),await e.output.flush(),r}if(n=void 0,a.name==="backspace")s>0&&(r=r.slice(0,s-1)+r.slice(s),s--);else if(a.name==="left")s>0&&s--;else if(a.name==="right")s<r.length&&s++;else if(a.name==="home")s=0;else if(a.name==="end")s=r.length;else if(a.char!==void 0)r=r.slice(0,s)+a.char+r.slice(s),s++;else continue;f(e.output,i),i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush()}return h})}finally{A(e.output),await e.output.flush()}};var le=(e,t,r,s,n)=>{if(n==="done"){let i=r[s];return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${i?.label??""}`)),1}if(n==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;e.output.writeln(k(M),l(` ${t}`));for(let i=0;i<r.length;i++){let o=r[i],a=i===s,p=o.disabled===!0,c=a?g(F):d(q),u=p?d(` ${o.label}`):a?l(` ${o.label}`):d(` ${o.label}`),m=o.hint!==void 0?d(` (${o.hint})`):l("");e.output.writeln(d(y),l(" "),c,u,m)}return e.output.writeln(d(C)),r.length+2},we=(e,t,r)=>{let s=e.length,n=t;for(let i=0;i<s;i++)if(n=(n+r+s)%s,e[n]?.disabled!==!0)return n;return t},tt=async(e,t)=>{let r=0;if(t.initialValue!==void 0){let n=t.options.findIndex(i=>i.value===t.initialValue);n>=0&&(r=n)}t.options[r]?.disabled===!0&&(r=we(t.options,r,1));let s=0;P(e.output);try{return await E(async()=>{s=le(e,t.message,t.options,r,"active"),await e.output.flush();let n=()=>{f(e.output,s),le(e,t.message,t.options,r,"cancel")};for await(let i of L(e.input)){if(i.name==="c"&&i.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="escape"){if(w(e.signals.escape,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="return")return f(e.output,s),le(e,t.message,t.options,r,"done"),await e.output.flush(),t.options[r].value;let o=!1;(i.name==="up"||i.name==="k")&&(r=we(t.options,r,-1),o=!0),(i.name==="down"||i.name==="j")&&(r=we(t.options,r,1),o=!0),o&&(f(e.output,s),s=le(e,t.message,t.options,r,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var j=(e,t,r,s,n,i,o)=>{if(o==="done"){let c=[...n].sort((u,m)=>u-m).map(u=>r[u]?.label??"").join(", ");return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${c}`)),1}if(o==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let a=i!==void 0?B(G):k(M);e.output.writeln(a,l(` ${t}`));for(let c=0;c<r.length;c++){let u=r[c],m=c===s,b=n.has(c),S=u.disabled===!0,se=b?g(_e):d(Ge),$=S?d(` ${u.label}`):m?l(` ${u.label}`):d(` ${u.label}`),he=u.hint!==void 0?d(` (${u.hint})`):l("");e.output.writeln(d(y),l(" "),se,$,he)}let p=r.length+2;return i!==void 0?e.output.writeln(d(C),l(" "),B(i)):e.output.writeln(d(C)),p},Ce=(e,t,r)=>{let s=e.length,n=t;for(let i=0;i<s;i++)if(n=(n+r+s)%s,e[n]?.disabled!==!0)return n;return t},rt=async(e,t)=>{let r=0,s=new Set;if(t.initialValues!==void 0)for(let o of t.initialValues){let a=t.options.findIndex(p=>p.value===o);a>=0&&s.add(a)}t.options[r]?.disabled===!0&&(r=Ce(t.options,r,1));let n=0,i;P(e.output);try{return await E(async()=>{n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush();let o=()=>{f(e.output,n),j(e,t.message,t.options,r,s,void 0,"cancel")};for await(let a of L(e.input)){if(a.name==="c"&&a.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="escape"){if(w(e.signals.escape,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="return"){if(t.required!==!1&&s.size===0){i="Please select at least one option.",f(e.output,n),n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush();continue}return f(e.output,n),j(e,t.message,t.options,r,s,void 0,"done"),await e.output.flush(),[...s].sort((c,u)=>c-u).map(c=>t.options[c].value)}i=void 0;let p=!1;if((a.name==="up"||a.name==="k")&&(r=Ce(t.options,r,-1),p=!0),(a.name==="down"||a.name==="j")&&(r=Ce(t.options,r,1),p=!0),a.name==="space"&&t.options[r]?.disabled!==!0&&(s.has(r)?s.delete(r):s.add(r),p=!0),a.name==="a"){let c=t.options.every((u,m)=>u.disabled===!0||s.has(m));for(let u=0;u<t.options.length;u++)t.options[u]?.disabled!==!0&&(c?s.delete(u):s.add(u));p=!0}p&&(f(e.output,n),n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var st=(e,t)=>{e.output.writeln(_(De),l(" "),Le(t)),e.output.writeln(_(y))},nt=(e,t)=>{e.output.writeln(_(y)),e.output.writeln(_(C),l(" "),l(t))},it=e=>{e.output.writeln(l(""))},ot=(e,t)=>{e.output.writeln(l(" "),d(t))},at=e=>{e.output.writeln(_(y))},lt={info:(e,t)=>{e.output.writeln(V("info",t))},success:(e,t)=>{e.output.writeln(V("success",t))},warn:(e,t)=>{e.output.writeln(V("warning",t))},error:(e,t)=>{e.output.writeln(V("error",t))},step:(e,t)=>{e.output.writeln(d(Ue),l(" "),d(t))},message:(e,t,r)=>{e.output.writeln(d(r??y),l(" "),l(t))}};var ut=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ct=80,pt=(e,t,r)=>{let s=r?.frames??ut,n=r?.interval??ct,i=t,o=0,a,p=()=>{e.output.write(l(`\r${" ".repeat(i.length+4)}\r`))},c=()=>{a!==void 0&&(clearInterval(a),a=void 0,p())};return{start:u=>{u!==void 0&&(i=u),a=setInterval(()=>{let m=s[o%s.length];e.output.write(l("\r"),k(m??""),l(` ${i}`)),o++},n)},stop:u=>{c(),u!==void 0&&(i=u)},update:u=>{i=u},succeed:u=>{c(),e.output.writeln(g(v),l(` ${u??i}`))},fail:u=>{c(),e.output.writeln(R(O),l(` ${u??i}`))},warn:u=>{c(),e.output.writeln(B(G),l(` ${u??i}`))},info:u=>{c(),e.output.writeln(Be($e),l(` ${u??i}`))}}};var dt=(e,t)=>{let r=0,s=t.label??"",n=!1,i=()=>{let o=t.total>0?Math.round(r/t.total*100):0;oe(e.output),e.output.write(d(y),l(" "),ye(o,{width:t.width??20,label:s}))};return{start:o=>{o!==void 0&&(s=o),n=!0,e.output.writeln(d(v),l(` ${s}`)),i()},advance:(o,a)=>{n&&(r=Math.min(r+o,t.total),a!==void 0&&(s=a),i())},stop:o=>{n&&(n=!1,r=t.total,o!==void 0&&(s=o),oe(e.output),e.output.writeln(d(y),l(" "),ye(100,{width:t.width??20,label:s})))}}};var Ve={};D(Ve,{clearScreenSeq:()=>gt,enterAlternateScreen:()=>mt,exitAlternateScreen:()=>ht,getTerminalSize:()=>bt,hideCursorSeq:()=>ft,showCursorSeq:()=>yt});var mt=()=>"\x1B[?1049h",ht=()=>"\x1B[?1049l",ft=()=>"\x1B[?25l",yt=()=>"\x1B[?25h",gt=()=>"\x1B[2J\x1B[H",bt=()=>{try{let{columns:e,rows:t}=x.process.consoleSize();return{cols:e,rows:t}}catch{return{cols:80,rows:24}}};var de={};D(de,{bgBlue:()=>vt,bgGreen:()=>Ct,bold:()=>xt,cyan:()=>Se,dim:()=>ue,green:()=>ce,inverse:()=>Re,moveTo:()=>T,red:()=>Te,reset:()=>pe,stripAnsi:()=>ke,truncate:()=>X,visibleLength:()=>z,white:()=>wt,yellow:()=>ve});var T=(e,t)=>`\x1B[${e};${t}H`,xt=e=>`\x1B[1m${e}\x1B[22m`,ue=e=>`\x1B[2m${e}\x1B[22m`,ce=e=>`\x1B[32m${e}\x1B[39m`,ve=e=>`\x1B[33m${e}\x1B[39m`,Te=e=>`\x1B[31m${e}\x1B[39m`,Se=e=>`\x1B[36m${e}\x1B[39m`,wt=e=>`\x1B[37m${e}\x1B[39m`,Ct=e=>`\x1B[42m${e}\x1B[49m`,vt=e=>`\x1B[44m${e}\x1B[49m`,Re=e=>`\x1B[7m${e}\x1B[27m`,pe=()=>"\x1B[0m",Tt=/\x1b\[[0-9;]*[a-zA-Z]/g,ke=e=>e.replace(Tt,""),z=e=>ke(e).length,X=(e,t)=>{if(ke(e).length<=t)return e;let s=0,n=0,i=e;for(;n<i.length&&s<t-1;){if(i[n]==="\x1B"){let o=i.indexOf("m",n);if(o!==-1){n=o+1;continue}}s++,n++}return i.slice(0,n)+"\u2026"+pe()};var Ke={};D(Ke,{calculateLayout:()=>St});var St=(e,t,r)=>{let s=r.leftWidth<=1?Math.floor(e*r.leftWidth):Math.min(Math.floor(r.leftWidth),e),n=e-s,i=t-1,o=r.rightTopHeight<=1?Math.floor(i*r.rightTopHeight):Math.min(Math.floor(r.rightTopHeight),i),a=i-o;return{left:{id:"left",x:1,y:1,width:s,height:i},rightTop:{id:"rightTop",x:s+1,y:1,width:n,height:o},rightBottom:{id:"rightBottom",x:s+1,y:o+1,width:n,height:a},statusBar:{id:"statusBar",x:1,y:t,width:e,height:1}}};var He={};D(He,{nextSelectableIndex:()=>kt,renderList:()=>At});var Rt=(e,t)=>{switch(t){case"green":return ce(e);case"yellow":return ve(e);case"red":return Te(e);case"cyan":return Se(e);case"dim":return ue(e);default:return e}},kt=(e,t,r)=>{let s=r==="up"?-1:1,n=t+s;for(;n>=0&&n<e.length;){if(e[n].selectable!==!1)return n;n+=s}return t},At=(e,t,r)=>{let s=[],n=r.width-2,i=r.height-2,o=0;t>=i&&(o=t-i+1);for(let a=0;a<i;a++){let p=o+a,c=r.y+1+a;if(p>=e.length){s.push(T(c,r.x+1)+" ".repeat(n));continue}let u=e[p],m=u.selectable!==!1,b=p===t&&m,S=u.active?ce("\u25CF"):b?"\u25B8":" ",se=u.badge!==void 0?" "+Rt(`[${u.badge}]`,u.badgeColor??"dim"):"",$=u.dimmed?ue(u.label):u.label,he=` ${S} ${$}${se}`,fe=X(he,n),Pe=Math.max(0,n-z(fe));b?s.push(T(c,r.x+1)+Re(fe+" ".repeat(Pe))):s.push(T(c,r.x+1)+fe+" ".repeat(Pe))}return s.join("")};var J=()=>({char:" ",fg:-1,bg:-1,fgRGB:null,bgRGB:null,bold:!1,dim:!1,italic:!1,underline:!1,inverse:!1}),me=(e,t)=>{let r=[];for(let s=0;s<e;s++){let n=[];for(let i=0;i<t;i++)n.push(J());r.push(n)}return r},Y=e=>{let t=[];for(let r=0;r<e;r++)t.push(J());return t},Z=class{#e;#t;#r;#i=null;#o=0;#n;#s=new Set;constructor(t,r){this.#e=t,this.#t=r,this.#r=me(t,r),this.#n=t-1}get rows(){return this.#e}get cols(){return this.#t}getCell(t,r){return t<0||t>=this.#e||r<0||r>=this.#t?J():this.#r[t][r]}setCell(t,r,s,n){t<0||t>=this.#e||r<0||r>=this.#t||(this.#r[t][r]={char:n,fg:s.fg,bg:s.bg,fgRGB:s.fgRGB,bgRGB:s.bgRGB,bold:s.bold,dim:s.dim,italic:s.italic,underline:s.underline,inverse:s.inverse},this.#s.add(t))}scrollUp(t=1){for(let r=0;r<t;r++)this.#r.splice(this.#o,1),this.#r.splice(this.#n,0,Y(this.#t));for(let r=this.#o;r<=this.#n;r++)this.#s.add(r)}scrollDown(t=1){for(let r=0;r<t;r++)this.#r.splice(this.#n,1),this.#r.splice(this.#o,0,Y(this.#t));for(let r=this.#o;r<=this.#n;r++)this.#s.add(r)}setScrollRegion(t,r){this.#o=Math.max(0,t),this.#n=Math.min(this.#e-1,r)}insertLines(t,r){for(let s=0;s<t;s++)this.#r.splice(this.#n,1),this.#r.splice(r,0,Y(this.#t));for(let s=r;s<=this.#n;s++)this.#s.add(s)}deleteLines(t,r){for(let s=0;s<t;s++)this.#r.splice(r,1),this.#r.splice(this.#n,0,Y(this.#t));for(let s=r;s<=this.#n;s++)this.#s.add(s)}clearLine(t,r){if(t<0||t>=this.#e)return;let s=this.#r[t];if(r===2)for(let n=0;n<this.#t;n++)s[n]=J();this.#s.add(t)}clearLineRange(t,r,s){if(t<0||t>=this.#e)return;let n=this.#r[t];for(let i=r;i<=Math.min(s,this.#t-1);i++)n[i]=J();this.#s.add(t)}clearDisplay(t,r,s){if(t===0){this.clearLineRange(r,s,this.#t-1);for(let n=r+1;n<this.#e;n++)this.clearLine(n,2)}else if(t===1){for(let n=0;n<r;n++)this.clearLine(n,2);this.clearLineRange(r,0,s)}else{this.#r=me(this.#e,this.#t);for(let n=0;n<this.#e;n++)this.#s.add(n)}}enterAlternateScreen(){this.#i=this.#r,this.#r=me(this.#e,this.#t);for(let t=0;t<this.#e;t++)this.#s.add(t)}exitAlternateScreen(){if(this.#i!==null){this.#r=this.#i,this.#i=null;for(let t=0;t<this.#e;t++)this.#s.add(t)}}resize(t,r){let s=me(t,r),n=Math.min(t,this.#e),i=Math.min(r,this.#t);for(let o=0;o<n;o++)for(let a=0;a<i;a++)s[o][a]=this.#r[o][a];this.#e=t,this.#t=r,this.#r=s,this.#n=t-1;for(let o=0;o<t;o++)this.#s.add(o)}getLine(t){return t<0||t>=this.#e?Y(this.#t):this.#r[t]}getGrid(){return this.#r}getDirtyLines(){return this.#s}clearDirty(){this.#s.clear()}markAllDirty(){for(let t=0;t<this.#e;t++)this.#s.add(t)}markLineDirty(t){t>=0&&t<this.#e&&this.#s.add(t)}};var Q=class{row=0;col=0;visible=!0;#e=0;#t=0;moveTo(t,r){this.row=t,this.col=r}moveUp(t=1){this.row=Math.max(0,this.row-t)}moveDown(t=1){this.row+=t}moveForward(t=1){this.col+=t}moveBack(t=1){this.col=Math.max(0,this.col-t)}moveToColumn(t){this.col=t}save(){this.#e=this.row,this.#t=this.col}restore(){this.row=this.#e,this.col=this.#t}clamp(t,r){this.row=Math.max(0,Math.min(this.row,t-1)),this.col=Math.max(0,Math.min(this.col,r-1))}};var ee=()=>({fg:-1,bg:-1,fgRGB:null,bgRGB:null,bold:!1,dim:!1,italic:!1,underline:!1,inverse:!1}),Ae=(e,t)=>{let r={...t},s=0;for(;s<e.length;){let n=e[s];switch(n){case 0:Object.assign(r,ee());break;case 1:r.bold=!0;break;case 2:r.dim=!0;break;case 3:r.italic=!0;break;case 4:r.underline=!0;break;case 7:r.inverse=!0;break;case 22:r.bold=!1,r.dim=!1;break;case 23:r.italic=!1;break;case 24:r.underline=!1;break;case 27:r.inverse=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:r.fg=n-30;break;case 39:r.fg=-1;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:r.bg=n-40;break;case 49:r.bg=-1;break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:r.fg=n-90+8;break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:r.bg=n-100+8;break;case 38:s+1<e.length&&e[s+1]===5&&s+2<e.length?(r.fg=e[s+2],r.fgRGB=null,s+=2):s+1<e.length&&e[s+1]===2&&s+4<e.length&&(r.fgRGB={r:e[s+2],g:e[s+3],b:e[s+4]},r.fg=-1,s+=4);break;case 48:s+1<e.length&&e[s+1]===5&&s+2<e.length?(r.bg=e[s+2],r.bgRGB=null,s+=2):s+1<e.length&&e[s+1]===2&&s+4<e.length&&(r.bgRGB={r:e[s+2],g:e[s+3],b:e[s+4]},r.bg=-1,s+=4);break}s++}return r};var te=class{#e="GROUND";#t="";#r="";#i="";feed(t){let r=[],s=()=>{this.#i.length>0&&(r.push({type:"text",text:this.#i}),this.#i="")};for(let n=0;n<t.length;n++){let i=t[n],o=i.charCodeAt(0);switch(this.#e){case"GROUND":i==="\x1B"?(s(),this.#e="ESC"):o<32&&o!==27?(s(),r.push({type:"control",code:o})):this.#i+=i;break;case"ESC":i==="["?(this.#e="CSI_PARAM",this.#t=""):i==="]"?(this.#e="OSC",this.#r=""):(r.push({type:"esc",command:i}),this.#e="GROUND");break;case"CSI_PARAM":if(o>=48&&o<=63||i===";"||i==="?")this.#t+=i;else if(o>=64&&o<=126){let a=this.#t.replace(/^\?/,""),p=this.#t.startsWith("?"),c=a.length>0?a.split(";").map(m=>{let b=parseInt(m,10);return isNaN(b)?0:b}):[],u=(p?"?":"")+i;r.push({type:"csi",command:u,params:c}),this.#e="GROUND"}else this.#t+=i;break;case"OSC":if(i==="\x07"||i==="\\"&&this.#r.endsWith("\x1B")){let a=i==="\\"?this.#r.slice(0,-1):this.#r,p=a.indexOf(";"),c=p>=0?parseInt(a.slice(0,p),10):0,u=p>=0?a.slice(p+1):a;r.push({type:"osc",command:isNaN(c)?0:c,data:u}),this.#e="GROUND"}else this.#r+=i;break}}return s(),r}};var re=class{screen;cursor;#e;#t;constructor(t,r){this.screen=new Z(t,r),this.cursor=new Q,this.#e=new te,this.#t=ee()}write(t){let r=this.#e.feed(t);for(let s of r)switch(s.type){case"text":this.#r(s.text);break;case"csi":this.#o(s.command,s.params);break;case"esc":this.#n(s.command);break;case"control":this.#i(s.code);break;case"osc":break}}resize(t,r){this.screen.resize(t,r),this.cursor.clamp(t,r)}getScreen(){return this.screen}getCursor(){return this.cursor}#r(t){for(let r of t)this.cursor.col>=this.screen.cols&&(this.cursor.col=0,this.cursor.row++,this.cursor.row>=this.screen.rows&&(this.screen.scrollUp(),this.cursor.row=this.screen.rows-1)),this.screen.setCell(this.cursor.row,this.cursor.col,this.#t,r),this.cursor.col++}#i(t){switch(t){case 13:this.cursor.col=0;break;case 10:this.cursor.row++,this.cursor.row>=this.screen.rows&&(this.screen.scrollUp(),this.cursor.row=this.screen.rows-1);break;case 9:this.cursor.col=Math.min(this.screen.cols-1,(Math.floor(this.cursor.col/8)+1)*8);break;case 8:this.cursor.moveBack();break;case 7:break}}#o(t,r){let s=r[0]??0,n=r[1]??0,i=s||1;switch(t){case"A":this.cursor.moveUp(i);break;case"B":this.cursor.moveDown(i);break;case"C":this.cursor.moveForward(i);break;case"D":this.cursor.moveBack(i);break;case"H":case"f":this.cursor.moveTo((s||1)-1,(n||1)-1);break;case"G":this.cursor.moveToColumn((s||1)-1);break;case"d":this.cursor.moveTo((s||1)-1,this.cursor.col);break;case"J":this.screen.clearDisplay(s,this.cursor.row,this.cursor.col);break;case"K":s===0?this.screen.clearLineRange(this.cursor.row,this.cursor.col,this.screen.cols-1):s===1?this.screen.clearLineRange(this.cursor.row,0,this.cursor.col):this.screen.clearLine(this.cursor.row,2);break;case"m":this.#t=Ae(r.length>0?r:[0],this.#t);break;case"S":this.screen.scrollUp(i);break;case"T":this.screen.scrollDown(i);break;case"L":this.screen.insertLines(i,this.cursor.row);break;case"M":this.screen.deleteLines(i,this.cursor.row);break;case"s":this.cursor.save();break;case"u":this.cursor.restore();break;case"r":this.screen.setScrollRegion((s||1)-1,(n||this.screen.rows)-1);break;case"?h":s===25&&(this.cursor.visible=!0),s===1049&&this.screen.enterAlternateScreen();break;case"?l":s===25&&(this.cursor.visible=!1),s===1049&&this.screen.exitAlternateScreen();break}this.cursor.clamp(this.screen.rows,this.screen.cols)}#n(t){switch(t){case"7":this.cursor.save();break;case"8":this.cursor.restore();break;case"M":this.cursor.row===0?this.screen.scrollDown():this.cursor.moveUp();break;case"c":this.screen.clearDisplay(2,0,0),this.cursor.moveTo(0,0),this.#t=ee();break}}};var Bt=e=>{let t=[];return e.bold&&t.push(1),e.dim&&t.push(2),e.italic&&t.push(3),e.underline&&t.push(4),e.fgRGB!==null?t.push(38,2,e.fgRGB.r,e.fgRGB.g,e.fgRGB.b):e.fg>=0&&e.fg<8?t.push(30+e.fg):e.fg>=8&&e.fg<16?t.push(90+(e.fg-8)):e.fg>=16&&t.push(38,5,e.fg),t.length===0?"":`\x1B[${t.join(";")}m`},Mt=e=>e.fg===-1&&e.fgRGB===null&&!e.bold&&!e.dim&&!e.italic&&!e.underline,Oe=(e,t,r,s)=>{s!==void 0&&s.prevCursorRow>=0&&s.prevCursorRow<e.rows&&e.markLineDirty(s.prevCursorRow),t.visible&&t.row>=0&&t.row<e.rows&&e.markLineDirty(t.row);let n=[],i=e.getDirtyLines(),o=r.fullRedraw===!0||i.size>=r.height,a=Math.min(r.height,e.rows),p=Math.min(r.width,e.cols);for(let c=0;c<a;c++){if(!o&&!i.has(c))continue;n.push(`\x1B[${r.offsetRow+c};${r.offsetCol}H`);let u=e.getLine(c),m=!1,b=0;for(;b<p;b++){let S=b<u.length?u[b]:void 0;if(t.visible&&c===t.row&&b===t.col)m&&(n.push("\x1B[0m"),m=!1),n.push("\x1B[7m"),n.push(S?.char??" "),n.push("\x1B[27m");else if(S===void 0||Mt(S))m&&(n.push("\x1B[0m"),m=!1),n.push(S?.char??" ");else{let $=Bt(S);n.push($),m=!0,n.push(S.char)}}m&&n.push("\x1B[0m")}return s!==void 0&&(s.prevCursorRow=t.row,s.prevCursorCol=t.col),e.clearDirty(),n.join("")};var Ee=class{#e;#t=!1;constructor(t,r){this.#e=new re(t,r)}write(t){this.#e.write(t),this.#t=!0}render(t,r=!1){let s={offsetRow:t.y+1,offsetCol:t.x+1,width:t.width-2,height:t.height-2,fullRedraw:r};return this.#t=!1,Oe(this.#e.getScreen(),this.#e.getCursor(),s)}resize(t,r){this.#e.resize(t,r),this.#t=!0}get dirty(){return this.#t}clearDirty(){this.#t=!1}get terminal(){return this.#e}};var qe={};D(qe,{drawBox:()=>Fe,fillBox:()=>Nt});var It={single:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},Fe=e=>{let t=e.borderStyle??"single",r=It[t],s=e.width-2,n=[],i=r.tl;if(e.title!==void 0){let o=` ${e.title} `;i+=o+r.h.repeat(Math.max(0,s-o.length))}else i+=r.h.repeat(s);if(i+=r.tr,n.push(T(e.y,e.x)+i),e.skipInterior===!0)for(let o=1;o<e.height-1;o++)n.push(T(e.y+o,e.x)+r.v+T(e.y+o,e.x+e.width-1)+r.v);else for(let o=1;o<e.height-1;o++)n.push(T(e.y+o,e.x)+r.v+pe()+" ".repeat(s)+r.v);return n.push(T(e.y+e.height-1,e.x)+r.bl+r.h.repeat(s)+r.br),n.join("")},Nt=(e,t)=>{let r=Fe(e),s=e.width-2,n=e.height-2,i=[];for(let o=0;o<n;o++){let a=o<t.length?t[o]:"",p=X(a??"",s),c=Math.max(0,s-z(p));i.push(T(e.y+1+o,e.x+1)+p+" ".repeat(c))}return r+i.join("")};export{We as a,ze as b,Ie as c,E as d,Ze as e,Qe as f,et as g,tt as h,rt as i,st as j,nt as k,it as l,ot as m,at as n,lt as o,pt as p,dt as q,Ve as r,de as s,qe as t,Ke as u,He as v,Ee as w};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as f}from"./chunk-2XNFZXHY.js";import{i as t}from"./chunk-WJKE6XHF.js";import{b as a}from"./chunk-BQT5RJZB.js";import{e as c}from"./chunk-5WJ6AUNY.js";var s=c(f());var i=[".eser/manifest.yml",".eser/manifest.yaml",".manifest.yml",".manifest.yaml"],m=async e=>{for(let o of i){let n=t.path.join(e,o);try{let r=await t.fs.readTextFile(n);return s.parse(r)}catch(r){if(r instanceof a)continue;throw r}}return null},u=async e=>{for(let o of i){let n=t.path.join(e,o);try{return await t.fs.stat(n),n}catch{continue}}return null};export{i as a,m as b,u as c};
2
+ import{a as f}from"./chunk-2XNFZXHY.js";import{i as t}from"./chunk-6DBKPC2O.js";import{b as a}from"./chunk-6G6UVWJN.js";import{e as c}from"./chunk-5WJ6AUNY.js";var s=c(f());var i=[".eser/manifest.yml",".eser/manifest.yaml",".manifest.yml",".manifest.yaml"],m=async e=>{for(let o of i){let n=t.path.join(e,o);try{let r=await t.fs.readTextFile(n);return s.parse(r)}catch(r){if(r instanceof a)continue;throw r}}return null},u=async e=>{for(let o of i){let n=t.path.join(e,o);try{return await t.fs.stat(n),n}catch{continue}}return null};export{i as a,m as b,u as c};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as e}from"./chunk-G5VGZMKA.js";var i=new e({description:"AI provider interface \u2014 ask questions, generate content",modules:{ask:{description:"Send a prompt to an AI provider",load:()=>import("./ask-UCPMMIAF.js")},list:{description:"List available AI providers",load:()=>import("./list-VEGVTAKQ.js")}}});export{i as a};
2
+ import{a as e}from"./chunk-NMEPQK3T.js";var i=new e({description:"AI provider interface \u2014 ask questions, generate content",modules:{ask:{description:"Send a prompt to an AI provider",load:()=>import("./ask-M3VS3GIJ.js")},list:{description:"List available AI providers",load:()=>import("./list-NX7RRO6R.js")}}});export{i as a};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{b as B,c as L}from"./chunk-6E6JUBFH.js";import{a as P,b,c as w,d as O,e as E,f as I,g as a,h as N,i as _,j as W,k as $,l as F,m as p,n as j,o as S,p as A,q as T,y as M}from"./chunk-BQT5RJZB.js";import{d as Q}from"./chunk-5WJ6AUNY.js";var U={};Q(U,{AlreadyExistsError:()=>w,NotFoundError:()=>b,ProcessError:()=>O,RuntimeCapabilityError:()=>P,buildCommand:()=>R,clearWorkerdEnv:()=>L,createRuntime:()=>H,detectExecutionContext:()=>y,detectInvoker:()=>h,detectRuntime:()=>a,getArch:()=>j,getCliPrefix:()=>J,getHomedir:()=>S,getPlatform:()=>p,getPlatformInfo:()=>T,getRuntimeVersion:()=>N,getTmpdir:()=>A,isBrowser:()=>W,isCommandInPath:()=>v,isEdge:()=>F,isRuntime:()=>_,isServer:()=>$,matchCliPrefix:()=>D,populateEnvFromContext:()=>B,posixPath:()=>I,resolvePathDirs:()=>g,runtime:()=>i,toPosix:()=>E});var g=(e,n)=>{let t=n==="windows"?";":":";return e.split(t).filter(r=>r.length>0)},l=new Set(["deno","node","bun"]),h=(e,n,t,r,o,s)=>{let d=l.has(e)?e:n;if(!l.has(d))return{invoker:"binary",mode:"installed"};if(d==="bun")return r.BUN_INSTALL!==void 0?{invoker:"bun",mode:"installed"}:{invoker:"bunx",mode:"on-demand"};if(d==="node"){let m=t[1]??"";if(m.includes("_npx")||m.includes("/npx"))return{invoker:"npx",mode:"on-demand"};if(m.includes("pnpm")||m.includes("pnpx"))return{invoker:"pnpx",mode:"on-demand"};let c=r.npm_execpath??"";return c.includes("npx")?{invoker:"npx",mode:"on-demand"}:c.includes("pnpm")?{invoker:"pnpx",mode:"on-demand"}:(r.npm_config_user_agent??"").includes("pnpm")?{invoker:"pnpm",mode:"installed"}:{invoker:"npm",mode:"installed"}}return d==="deno"?o!==void 0&&(o.startsWith("jsr:")||o.startsWith("https:"))?{invoker:"deno",mode:"on-demand"}:s===!0?{invoker:"dev",mode:"dev"}:{invoker:"deno",mode:"installed"}:{invoker:"unknown",mode:"installed"}},R=(e,n,t)=>e==="npx"?`npx ${t.npmPackage}`:e==="pnpx"?`pnpx ${t.npmPackage}`:e==="bunx"?`bunx ${t.npmPackage}`:e==="deno"&&n==="on-demand"?`deno run --allow-all jsr:${t.jsrPackage}`:e==="dev"?t.devCommand:t.command,v=async e=>{let n=p(),t=n==="windows"?`${e}.exe`:e,r=i.env.get("PATH")??"",o=g(r,n);for(let s of o)try{return await i.fs.stat(i.path.join(s,t)),!0}catch{continue}return!1},D=(e,n)=>{for(let t of e){let r=n.indexOf(t);if(r>=0)return n.slice(0,r+1).join(" ");let o=n.findIndex(s=>s.endsWith(`/${t}`)||s.endsWith(`\\${t}`)||s.includes(`:${t}`));if(o>=0)return n.slice(0,o+1).join(" ")}},J=async(e,n)=>{let t=await y(e),r=i.process.argv;for(let o of n){if(r.includes(o))return`${t.command} ${o}`;if(r.some(d=>d.endsWith(`/${o}`)||d.endsWith(`\\${o}`)||d.includes(`:${o}`)))return t.command}},y=async e=>{let n=i.path.basename(i.process.execPath()),t=a(),r=i.process.argv,o=import.meta.url,s=l.has(n)?n:t,d={BUN_INSTALL:i.env.get("BUN_INSTALL"),npm_execpath:i.env.get("npm_execpath"),npm_config_user_agent:i.env.get("npm_config_user_agent")},m=!1;if(s==="deno"&&o.startsWith("file://")){let k=i.process.cwd();try{let x=i.path.join(k,"deno.json"),C=await i.fs.readTextFile(x),u=JSON.parse(C).tasks;u!==void 0&&"cli"in u&&(m=!0)}catch{}if(!m)try{let x=i.path.join(k,"package.json"),C=await i.fs.readTextFile(x),u=JSON.parse(C).scripts;u!==void 0&&"cli"in u&&(m=!0)}catch{}}let{invoker:c,mode:f}=h(n,t,r,d,o,m),K=l.has(s)?s:"compiled",q=R(c,f,e),z=await v(e.command);return{runtime:K,mode:f,invoker:c,command:q,isInPath:z}};var V={deno:async()=>(await import("./deno-XQHOVHKR.js")).createDenoRuntime(),node:async()=>(await import("./node-ZGM6SXXI.js")).createNodeRuntime(),bun:async()=>(await import("./bun-HIMXX54I.js")).createBunRuntime(),workerd:async()=>(await import("./workerd-LOWXXQEU.js")).createWorkerdRuntime(),browser:async()=>(await import("./browser-JGBNWUEQ.js")).createBrowserRuntime()},X=["fs","exec","env","path","process"],Y=e=>e!==void 0&&X.some(n=>e[n]!==void 0),Z=(e,n,t)=>({name:e.name,version:e.version,capabilities:t,fs:n.fs??e.fs,path:n.path??e.path,exec:n.exec??e.exec,env:n.env??e.env,process:n.process??e.process}),H=async e=>{let n=a(),t=V[n],r=t!==void 0?await t():M(n),o=e?.capabilities?{...r.capabilities,...e.capabilities}:r.capabilities;return e!==void 0&&Y(e)?Z(r,e,o):e?.capabilities?{...r,capabilities:o}:r},i=await H();export{g as a,h as b,R as c,v as d,D as e,J as f,y as g,H as h,i,U as j};
2
+ import{b as B,c as L}from"./chunk-ALFFE37K.js";import{a as P,b,c as w,d as O,e as E,f as I,g as a,h as N,i as _,j as W,k as $,l as F,m as p,n as j,o as S,p as A,q as T,y as M}from"./chunk-6G6UVWJN.js";import{d as Q}from"./chunk-5WJ6AUNY.js";var U={};Q(U,{AlreadyExistsError:()=>w,NotFoundError:()=>b,ProcessError:()=>O,RuntimeCapabilityError:()=>P,buildCommand:()=>R,clearWorkerdEnv:()=>L,createRuntime:()=>H,detectExecutionContext:()=>y,detectInvoker:()=>h,detectRuntime:()=>a,getArch:()=>j,getCliPrefix:()=>J,getHomedir:()=>S,getPlatform:()=>p,getPlatformInfo:()=>T,getRuntimeVersion:()=>N,getTmpdir:()=>A,isBrowser:()=>W,isCommandInPath:()=>v,isEdge:()=>F,isRuntime:()=>_,isServer:()=>$,matchCliPrefix:()=>D,populateEnvFromContext:()=>B,posixPath:()=>I,resolvePathDirs:()=>g,runtime:()=>i,toPosix:()=>E});var g=(e,n)=>{let t=n==="windows"?";":":";return e.split(t).filter(r=>r.length>0)},l=new Set(["deno","node","bun"]),h=(e,n,t,r,o,s)=>{let d=l.has(e)?e:n;if(!l.has(d))return{invoker:"binary",mode:"installed"};if(d==="bun")return r.BUN_INSTALL!==void 0?{invoker:"bun",mode:"installed"}:{invoker:"bunx",mode:"on-demand"};if(d==="node"){let m=t[1]??"";if(m.includes("_npx")||m.includes("/npx"))return{invoker:"npx",mode:"on-demand"};if(m.includes("pnpm")||m.includes("pnpx"))return{invoker:"pnpx",mode:"on-demand"};let c=r.npm_execpath??"";return c.includes("npx")?{invoker:"npx",mode:"on-demand"}:c.includes("pnpm")?{invoker:"pnpx",mode:"on-demand"}:(r.npm_config_user_agent??"").includes("pnpm")?{invoker:"pnpm",mode:"installed"}:{invoker:"npm",mode:"installed"}}return d==="deno"?o!==void 0&&(o.startsWith("jsr:")||o.startsWith("https:"))?{invoker:"deno",mode:"on-demand"}:s===!0?{invoker:"dev",mode:"dev"}:{invoker:"deno",mode:"installed"}:{invoker:"unknown",mode:"installed"}},R=(e,n,t)=>e==="npx"?`npx ${t.npmPackage}`:e==="pnpx"?`pnpx ${t.npmPackage}`:e==="bunx"?`bunx ${t.npmPackage}`:e==="deno"&&n==="on-demand"?`deno run --allow-all jsr:${t.jsrPackage}`:e==="dev"?t.devCommand:t.command,v=async e=>{let n=p(),t=n==="windows"?`${e}.exe`:e,r=i.env.get("PATH")??"",o=g(r,n);for(let s of o)try{return await i.fs.stat(i.path.join(s,t)),!0}catch{continue}return!1},D=(e,n)=>{for(let t of e){let r=n.indexOf(t);if(r>=0)return n.slice(0,r+1).join(" ");let o=n.findIndex(s=>s.endsWith(`/${t}`)||s.endsWith(`\\${t}`)||s.includes(`:${t}`));if(o>=0)return n.slice(0,o+1).join(" ")}},J=async(e,n)=>{let t=await y(e),r=i.process.argv;for(let o of n){if(r.includes(o))return`${t.command} ${o}`;if(r.some(d=>d.endsWith(`/${o}`)||d.endsWith(`\\${o}`)||d.includes(`:${o}`)))return t.command}},y=async e=>{let n=i.path.basename(i.process.execPath()),t=a(),r=i.process.argv,o=import.meta.url,s=l.has(n)?n:t,d={BUN_INSTALL:i.env.get("BUN_INSTALL"),npm_execpath:i.env.get("npm_execpath"),npm_config_user_agent:i.env.get("npm_config_user_agent")},m=!1;if(s==="deno"&&o.startsWith("file://")){let k=i.process.cwd();try{let x=i.path.join(k,"deno.json"),C=await i.fs.readTextFile(x),u=JSON.parse(C).tasks;u!==void 0&&"cli"in u&&(m=!0)}catch{}if(!m)try{let x=i.path.join(k,"package.json"),C=await i.fs.readTextFile(x),u=JSON.parse(C).scripts;u!==void 0&&"cli"in u&&(m=!0)}catch{}}let{invoker:c,mode:f}=h(n,t,r,d,o,m),K=l.has(s)?s:"compiled",q=R(c,f,e),z=await v(e.command);return{runtime:K,mode:f,invoker:c,command:q,isInPath:z}};var V={deno:async()=>(await import("./deno-JAQWMICD.js")).createDenoRuntime(),node:async()=>(await import("./node-WWA6BHRC.js")).createNodeRuntime(),bun:async()=>(await import("./bun-7XJSUU6Z.js")).createBunRuntime(),workerd:async()=>(await import("./workerd-LH2MLWIF.js")).createWorkerdRuntime(),browser:async()=>(await import("./browser-D536WJU3.js")).createBrowserRuntime()},X=["fs","exec","env","path","process"],Y=e=>e!==void 0&&X.some(n=>e[n]!==void 0),Z=(e,n,t)=>({name:e.name,version:e.version,capabilities:t,fs:n.fs??e.fs,path:n.path??e.path,exec:n.exec??e.exec,env:n.env??e.env,process:n.process??e.process}),H=async e=>{let n=a(),t=V[n],r=t!==void 0?await t():M(n),o=e?.capabilities?{...r.capabilities,...e.capabilities}:r.capabilities;return e!==void 0&&Y(e)?Z(r,e,o):e?.capabilities?{...r,capabilities:o}:r},i=await H();export{g as a,h as b,R as c,v as d,D as e,J as f,y as g,H as h,i,U as j};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- var d=class extends Error{capability;runtimeName;constructor(t,n){super(`Capability "${t}" is not available on runtime "${n}"`),this.name="RuntimeCapabilityError",this.capability=t,this.runtimeName=n}},w=class extends Error{path;constructor(t){super(`No such file or directory: ${t}`),this.name="NotFoundError",this.path=t}},R=class extends Error{path;constructor(t){super(`File or directory already exists: ${t}`),this.name="AlreadyExistsError",this.path=t}},p=class extends Error{cmd;code;stderr;constructor(t,n,r){super(`Command "${t}" failed with exit code ${n}: ${r}`),this.name="ProcessError",this.cmd=t,this.code=n,this.stderr=r}};var P="/",W=":",c=e=>e.replace(/\\/g,"/").replace(/\/+/g,"/"),Y=e=>c(e),C=(...e)=>{if(e.length===0)return".";let t=e.filter(n=>n.length>0).join(P);return t.length===0?".":y(t)},m=(...e)=>{let t="",n=!1;for(let r=e.length-1;r>=0&&!n;r--){let o=e[r];o===void 0||o.length===0||(t=`${o}/${t}`,n=k(o))}return t=c(t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),y(t)??"."},v=e=>{if(e.length===0)return".";for(e=c(e);e.length>1&&e.endsWith("/");)e=e.slice(0,-1);let t=e.lastIndexOf("/");return t===-1?".":t===0?"/":e.slice(0,t)},f=(e,t)=>{if(e.length===0)return"";for(e=c(e);e.length>1&&e.endsWith("/");)e=e.slice(0,-1);let n=e.lastIndexOf("/"),r=n===-1?e:e.slice(n+1);return t&&r.endsWith(t)&&(r=r.slice(0,-t.length)),r},S=e=>{let t=f(e),n=t.lastIndexOf(".");return n<=0||n===t.length-1?"":t.slice(n)},y=e=>{if(e.length===0)return".";e=c(e);let t=e.startsWith("/"),n=e.endsWith("/"),r=e.split("/").filter(i=>i.length>0),o=[];for(let i of r)i!=="."&&(i===".."?o.length>0&&o[o.length-1]!==".."?o.pop():t||o.push(".."):o.push(i));let s=o.join("/");return t&&(s=`/${s}`),n&&s.length>1&&(s+="/"),s??"."},k=e=>e.length===0?!1:!!(e.startsWith("/")||e.length>=3&&/^[a-zA-Z]:[/\\]/.test(e)),N=(e,t)=>{if(e===t||(e=m(e),t=m(t),e===t))return"";let n=e.split("/").filter(l=>l.length>0),r=t.split("/").filter(l=>l.length>0),o=0,s=Math.min(n.length,r.length);for(let l=0;l<s&&n[l]===r[l];l++)o++;let i=n.length-o,g=r.slice(o);return[...Array(i).fill(".."),...g].join("/")??"."},I=e=>{if(e.length===0)return{root:"",dir:"",base:"",ext:"",name:""};e=c(e);let t="",n="",r=f(e),o=S(e),s=o?r.slice(0,-o.length):r;return e.startsWith("/")?t="/":/^[a-zA-Z]:[/\\]/.test(e)&&(t=e.slice(0,3)),n=v(e),n==="."&&(n=""),{root:t,dir:n,base:r,ext:o,name:s}},U=e=>{let{root:t="",dir:n,base:r,ext:o="",name:s=""}=e,i=r??s+o;return n?n===t?`${n}${i}`:`${n}/${i}`:`${t}${i}`},E={join:C,resolve:m,dirname:v,basename:f,extname:S,normalize:y,isAbsolute:k,relative:N,parse:I,format:U,sep:P,delimiter:W};var $=e=>{if(typeof Deno<"u"&&Deno.env?.get)return Deno.env.get(e);let t=globalThis.process;if(t?.env)return t.env[e]},F=(...e)=>{for(let t of e){let n=$(t);if(n!==void 0)return n}},T=e=>{try{let t=globalThis.require;if(t instanceof Function)return t(e)}catch{}},D=()=>globalThis.process,M=()=>globalThis.navigator,a=globalThis,j=()=>typeof a.caches<"u"&&typeof a.Request<"u"&&typeof a.Response<"u"&&typeof a.window>"u"&&typeof a.document>"u",z=()=>typeof a.window<"u"||typeof a.document<"u",u=()=>{if(typeof globalThis>"u")return"unknown";if(typeof a.Bun<"u")return"bun";if(typeof a.Deno<"u")return"deno";let e=a.process;return e?.versions?.node&&!e?.versions?.bun?"node":j()?"workerd":z()?"browser":"unknown"},L={deno:()=>a.Deno?.version?.deno??"unknown",bun:()=>a.Bun?.version??"unknown",node:()=>a.process?.versions?.node??"unknown",workerd:()=>"unknown",browser:()=>a.navigator?.userAgent??"unknown",unknown:()=>"unknown"},re=()=>L[u()](),oe=e=>u()===e,ie=()=>u()==="browser",_=new Set(["deno","node","bun"]),se=()=>_.has(u()),ae=()=>u()==="workerd",O={darwin:"darwin",linux:"linux",windows:"windows",win32:"windows"},x=()=>{if(typeof Deno<"u"&&Deno.build?.os)return O[Deno.build.os]??"linux";let e=D();if(e?.platform)return O[e.platform]??"linux";let t=M();if(t?.userAgent){let n=t.userAgent.toLowerCase();if(n.includes("mac"))return"darwin";if(n.includes("win"))return"windows";if(n.includes("linux"))return"linux"}return"linux"},A={x86_64:"amd64",x64:"amd64",aarch64:"arm64",arm64:"arm64"},B=()=>{if(typeof Deno<"u"&&Deno.build?.arch)return A[Deno.build.arch]??"amd64";let e=D();if(e?.arch)return A[e.arch]??"amd64";let t=M();if(t?.userAgent){let n=t.userAgent.toLowerCase();if(n.includes("arm64")||n.includes("aarch64"))return"arm64"}return"amd64"},q=()=>{let e=F("HOME","USERPROFILE");if(e)return e;let t=T("os");return t?.homedir?t.homedir():x()==="windows"?"C:\\Users\\Default":"/home"},J=()=>{let e=F("TMPDIR","TMP","TEMP");if(e)return e;let t=T("os");return t?.tmpdir?t.tmpdir():x()==="windows"?"C:\\Windows\\Temp":"/tmp"},de=()=>({platform:x(),arch:B(),homedir:q(),tmpdir:J()}),h=e=>e==="inherit"?"inherit":e==="piped"?"pipe":"ignore";var V=e=>({stdin:e?.stdin??"null",stdout:e?.stdout??"piped",stderr:e?.stderr??"piped"}),le=e=>{let t=V(e);return[h(t.stdin),h(t.stdout),h(t.stderr)]};var ce=(e,t)=>{let n={spawn:e,spawnChild:t,async exec(r,o=[],s){let i=await e(r,o,s);if(!i.success){let g=new TextDecoder().decode(i.stderr);throw new p(r,i.code,g)}return new TextDecoder().decode(i.stdout).trim()},async execJson(r,o=[],s){let i=await n.exec(r,o,s);return JSON.parse(i)}};return n},b=(e,t)=>()=>{throw new d(e,t)},H=e=>{let t=b("fs",e);return{readFile:t,readTextFile:t,writeFile:t,writeTextFile:t,exists:t,stat:t,lstat:t,mkdir:t,ensureDir:t,remove:t,readDir:t,copyFile:t,rename:t,makeTempDir:t,realPath:t,watch:t,walk:t,chmod:t}},X=e=>{let t=b("exec",e);return{spawn:t,exec:t,execJson:t,spawnChild:t}},Z=e=>{let t=b("process",e);return{exit:t,setExitCode:t,cwd:t,chdir:t,hostname:t,execPath:t,get argv(){throw new d("process",e)},get argv0(){throw new d("process",e)},get args(){throw new d("process",e)},get pid(){throw new d("process",e)},get stdin(){throw new d("process",e)},get stdout(){throw new d("process",e)},get stderr(){throw new d("process",e)},isTerminal(){return!1},setStdinRaw(){throw new d("process",e)}}},G=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),ue=e=>({name:e,version:"unknown",capabilities:{fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},fs:H(e),path:E,exec:X(e),env:G(),process:Z(e)});export{d as a,w as b,R as c,p as d,Y as e,E as f,u as g,re as h,oe as i,ie as j,se as k,ae as l,x as m,B as n,q as o,J as p,de as q,V as r,le as s,ce as t,H as u,X as v,Z as w,G as x,ue as y};
2
+ var d=class extends Error{capability;runtimeName;constructor(t,n){super(`Capability "${t}" is not available on runtime "${n}"`),this.name="RuntimeCapabilityError",this.capability=t,this.runtimeName=n}},w=class extends Error{path;constructor(t){super(`No such file or directory: ${t}`),this.name="NotFoundError",this.path=t}},R=class extends Error{path;constructor(t){super(`File or directory already exists: ${t}`),this.name="AlreadyExistsError",this.path=t}},p=class extends Error{cmd;code;stderr;constructor(t,n,r){super(`Command "${t}" failed with exit code ${n}: ${r}`),this.name="ProcessError",this.cmd=t,this.code=n,this.stderr=r}};var P="/",W=":",c=e=>e.replace(/\\/g,"/").replace(/\/+/g,"/"),Y=e=>c(e),C=(...e)=>{if(e.length===0)return".";let t=e.filter(n=>n.length>0).join(P);return t.length===0?".":y(t)},m=(...e)=>{let t="",n=!1;for(let r=e.length-1;r>=0&&!n;r--){let o=e[r];o===void 0||o.length===0||(t=`${o}/${t}`,n=k(o))}return t=c(t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),y(t)??"."},v=e=>{if(e.length===0)return".";for(e=c(e);e.length>1&&e.endsWith("/");)e=e.slice(0,-1);let t=e.lastIndexOf("/");return t===-1?".":t===0?"/":e.slice(0,t)},f=(e,t)=>{if(e.length===0)return"";for(e=c(e);e.length>1&&e.endsWith("/");)e=e.slice(0,-1);let n=e.lastIndexOf("/"),r=n===-1?e:e.slice(n+1);return t&&r.endsWith(t)&&(r=r.slice(0,-t.length)),r},S=e=>{let t=f(e),n=t.lastIndexOf(".");return n<=0||n===t.length-1?"":t.slice(n)},y=e=>{if(e.length===0)return".";e=c(e);let t=e.startsWith("/"),n=e.endsWith("/"),r=e.split("/").filter(i=>i.length>0),o=[];for(let i of r)i!=="."&&(i===".."?o.length>0&&o[o.length-1]!==".."?o.pop():t||o.push(".."):o.push(i));let s=o.join("/");return t&&(s=`/${s}`),n&&s.length>1&&(s+="/"),s??"."},k=e=>e.length===0?!1:!!(e.startsWith("/")||e.length>=3&&/^[a-zA-Z]:[/\\]/.test(e)),I=(e,t)=>{if(e===t||(e=m(e),t=m(t),e===t))return"";let n=e.split("/").filter(l=>l.length>0),r=t.split("/").filter(l=>l.length>0),o=0,s=Math.min(n.length,r.length);for(let l=0;l<s&&n[l]===r[l];l++)o++;let i=n.length-o,g=r.slice(o);return[...Array(i).fill(".."),...g].join("/")??"."},N=e=>{if(e.length===0)return{root:"",dir:"",base:"",ext:"",name:""};e=c(e);let t="",n="",r=f(e),o=S(e),s=o?r.slice(0,-o.length):r;return e.startsWith("/")?t="/":/^[a-zA-Z]:[/\\]/.test(e)&&(t=e.slice(0,3)),n=v(e),n==="."&&(n=""),{root:t,dir:n,base:r,ext:o,name:s}},U=e=>{let{root:t="",dir:n,base:r,ext:o="",name:s=""}=e,i=r??s+o;return n?n===t?`${n}${i}`:`${n}/${i}`:`${t}${i}`},E={join:C,resolve:m,dirname:v,basename:f,extname:S,normalize:y,isAbsolute:k,relative:I,parse:N,format:U,sep:P,delimiter:W};var $=e=>{if(typeof Deno<"u"&&Deno.env?.get)return Deno.env.get(e);let t=globalThis.process;if(t?.env)return t.env[e]},F=(...e)=>{for(let t of e){let n=$(t);if(n!==void 0)return n}},T=e=>{try{let t=globalThis.require;if(t instanceof Function)return t(e)}catch{}},D=()=>globalThis.process,M=()=>globalThis.navigator,a=globalThis,j=()=>typeof a.caches<"u"&&typeof a.Request<"u"&&typeof a.Response<"u"&&typeof a.window>"u"&&typeof a.document>"u",z=()=>typeof a.window<"u"||typeof a.document<"u",u=()=>{if(typeof globalThis>"u")return"unknown";if(typeof a.Bun<"u")return"bun";if(typeof a.Deno<"u")return"deno";let e=a.process;return e?.versions?.node&&!e?.versions?.bun?"node":j()?"workerd":z()?"browser":"unknown"},L={deno:()=>a.Deno?.version?.deno??"unknown",bun:()=>a.Bun?.version??"unknown",node:()=>a.process?.versions?.node??"unknown",workerd:()=>"unknown",browser:()=>a.navigator?.userAgent??"unknown",unknown:()=>"unknown"},re=()=>L[u()](),oe=e=>u()===e,ie=()=>u()==="browser",_=new Set(["deno","node","bun"]),se=()=>_.has(u()),ae=()=>u()==="workerd",O={darwin:"darwin",linux:"linux",windows:"windows",win32:"windows"},x=()=>{if(typeof Deno<"u"&&Deno.build?.os)return O[Deno.build.os]??"linux";let e=D();if(e?.platform)return O[e.platform]??"linux";let t=M();if(t?.userAgent){let n=t.userAgent.toLowerCase();if(n.includes("mac"))return"darwin";if(n.includes("win"))return"windows";if(n.includes("linux"))return"linux"}return"linux"},A={x86_64:"amd64",x64:"amd64",aarch64:"arm64",arm64:"arm64"},B=()=>{if(typeof Deno<"u"&&Deno.build?.arch)return A[Deno.build.arch]??"amd64";let e=D();if(e?.arch)return A[e.arch]??"amd64";let t=M();if(t?.userAgent){let n=t.userAgent.toLowerCase();if(n.includes("arm64")||n.includes("aarch64"))return"arm64"}return"amd64"},q=()=>{let e=F("HOME","USERPROFILE");if(e)return e;let t=T("os");return t?.homedir?t.homedir():x()==="windows"?"C:\\Users\\Default":"/home"},J=()=>{let e=F("TMPDIR","TMP","TEMP");if(e)return e;let t=T("os");return t?.tmpdir?t.tmpdir():x()==="windows"?"C:\\Windows\\Temp":"/tmp"},de=()=>({platform:x(),arch:B(),homedir:q(),tmpdir:J()}),h=e=>e==="inherit"?"inherit":e==="piped"?"pipe":"ignore";var V=e=>({stdin:e?.stdin??"null",stdout:e?.stdout??"piped",stderr:e?.stderr??"piped"}),le=e=>{let t=V(e);return[h(t.stdin),h(t.stdout),h(t.stderr)]};var ce=(e,t)=>{let n={spawn:e,spawnChild:t,async exec(r,o=[],s){let i=await e(r,o,s);if(!i.success){let g=new TextDecoder().decode(i.stderr);throw new p(r,i.code,g)}return new TextDecoder().decode(i.stdout).trim()},async execJson(r,o=[],s){let i=await n.exec(r,o,s);return JSON.parse(i)}};return n},b=(e,t)=>()=>{throw new d(e,t)},H=e=>{let t=b("fs",e);return{readFile:t,readTextFile:t,writeFile:t,writeTextFile:t,exists:t,stat:t,lstat:t,mkdir:t,ensureDir:t,remove:t,readDir:t,copyFile:t,rename:t,makeTempDir:t,realPath:t,watch:t,walk:t,chmod:t}},X=e=>{let t=b("exec",e);return{spawn:t,exec:t,execJson:t,spawnChild:t}},Z=e=>{let t=b("process",e);return{exit:t,setExitCode:t,cwd:t,chdir:t,hostname:t,execPath:t,get argv(){throw new d("process",e)},get argv0(){throw new d("process",e)},get args(){throw new d("process",e)},get pid(){throw new d("process",e)},get stdin(){throw new d("process",e)},get stdout(){throw new d("process",e)},get stderr(){throw new d("process",e)},isTerminal(){return!1},setStdinRaw(){throw new d("process",e)},writeToStdout(){throw new d("process",e)},consoleSize(){return{columns:80,rows:24}}}},G=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),ue=e=>({name:e,version:"unknown",capabilities:{fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},fs:H(e),path:E,exec:X(e),env:G(),process:Z(e)});export{d as a,w as b,R as c,p as d,Y as e,E as f,u as g,re as h,oe as i,ie as j,se as k,ae as l,x as m,B as n,q as o,J as p,de as q,V as r,le as s,ce as t,H as u,X as v,Z as w,G as x,ue as y};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{f as s,u as o,v as i,w as a}from"./chunk-BQT5RJZB.js";var c={fs:!1,fsSync:!1,exec:!1,process:!1,env:!0,stdin:!1,stdout:!1,kv:!0},t=new Map,u=()=>({get(e){return t.get(e)},set(e,n){t.set(e,n)},delete(e){t.delete(e)},has(e){return t.has(e)},toObject(){return Object.fromEntries(t)}}),l=e=>{for(let[n,r]of Object.entries(e))r!=null&&r.constructor===String&&t.set(n,r)},f=()=>{t.clear()},m=()=>({name:"workerd",version:"unknown",capabilities:c,fs:o("workerd"),path:s,exec:i("workerd"),env:u(),process:a("workerd")});export{c as a,l as b,f as c,m as d};
2
+ import{f as s,u as o,v as i,w as a}from"./chunk-6G6UVWJN.js";var c={fs:!1,fsSync:!1,exec:!1,process:!1,env:!0,stdin:!1,stdout:!1,kv:!0},t=new Map,u=()=>({get(e){return t.get(e)},set(e,n){t.set(e,n)},delete(e){t.delete(e)},has(e){return t.has(e)},toObject(){return Object.fromEntries(t)}}),l=e=>{for(let[n,r]of Object.entries(e))r!=null&&r.constructor===String&&t.set(n,r)},f=()=>{t.clear()},m=()=>({name:"workerd",version:"unknown",capabilities:c,fs:o("workerd"),path:s,exec:i("workerd"),env:u(),process:a("workerd")});export{c as a,l as b,f as c,m as d};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as o}from"./chunk-JLRVMMMH.js";import{a as l}from"./chunk-2XNFZXHY.js";import{e as n}from"./chunk-5WJ6AUNY.js";var i=n(l(),1);var a=o({name:"validate-yaml",description:"Validate YAML syntax",canFix:!1,stacks:[],defaults:{},extensions:["yml","yaml"],checkFile(e,r){if(r===void 0)return[];try{return i.parse(r),[]}catch(t){let s=t instanceof Error?t.message:"invalid YAML";return[{path:e.path,message:s}]}}}),d=a.run,u=a.validator,f=a.main;export{a,d as b,u as c,f as d};
2
+ import{a as o}from"./chunk-HVQK35SO.js";import{a as l}from"./chunk-2XNFZXHY.js";import{e as n}from"./chunk-5WJ6AUNY.js";var i=n(l(),1);var a=o({name:"validate-yaml",description:"Validate YAML syntax",canFix:!1,stacks:[],defaults:{},extensions:["yml","yaml"],checkFile(e,r){if(r===void 0)return[];try{return i.parse(r),[]}catch(t){let s=t instanceof Error?t.message:"invalid YAML";return[{path:e.path,message:s}]}}}),d=a.run,u=a.validator,f=a.main;export{a,d as b,u as c,f as d};
@@ -1,4 +1,4 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as S,b as g,d as T,e as m,f,g as y}from"./chunk-BJLUDX4R.js";import{a as l}from"./chunk-J7YTWK67.js";var k=class{capabilities=["text_generation","streaming"];provider="kiro";modelId;binary;config;constructor(e,r){this.binary=e,this.config=r,this.modelId=r.model}async generateText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr),t=await T(s.stdout,this.modelId),d=await s.waitForExit(),i=await u,a=f("kiro",d.code,i);if(a!==null)throw a;return t}async*streamText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr);try{let t=new TextDecoder,d=s.stdout.getReader(),i="",a=await d.read();for(;a.done!==!0;){i+=t.decode(a.value,{stream:!0});let x=i.split(`
2
+ import{a as S,b as g,d as T,e as m,f,g as y}from"./chunk-2TANTKYS.js";import{a as l}from"./chunk-J7YTWK67.js";var k=class{capabilities=["text_generation","streaming"];provider="kiro";modelId;binary;config;constructor(e,r){this.binary=e,this.config=r,this.modelId=r.model}async generateText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr),t=await T(s.stdout,this.modelId),d=await s.waitForExit(),i=await u,a=f("kiro",d.code,i);if(a!==null)throw a;return t}async*streamText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr);try{let t=new TextDecoder,d=s.stdout.getReader(),i="",a=await d.read();for(;a.done!==!0;){i+=t.decode(a.value,{stream:!0});let x=i.split(`
3
3
  `);i=x.pop()??"";for(let _ of x){let p=_.trim();if(p.length!==0){try{let A=JSON.parse(p),w=C(A);if(w!==null){yield w;continue}}catch{}yield{kind:"content_delta",textDelta:p+`
4
4
  `}}}a=await d.read()}d.releaseLock(),i.trim().length>0&&(yield{kind:"content_delta",textDelta:i.trim()});let E=await s.waitForExit(),b=await u,h=f("kiro",E.code,b);h!==null?yield{kind:"error",error:h}:yield{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0}}}catch(t){t instanceof l?yield{kind:"error",error:t}:yield{kind:"error",error:new l(t instanceof Error?t.message:String(t),{provider:"kiro",cause:t instanceof Error?t:void 0})}}}close(){return Promise.resolve()}getRawClient(){return null}},O={provider:"kiro",async createModel(n){let e=await S("kiro",n);return new k(e,n)}},v=(n,e)=>{let r=[];r.push("--output","json"),r.push("--model",n.model),e.maxTokens!==void 0&&r.push("--max-tokens",String(e.maxTokens));let o=n.properties?.args;return o!==void 0&&r.push(...o),r},C=n=>{if(n===null||typeof n!="object")return null;let e=n;if(e.type==="content"||e.type==="text"){let r=e.text??e.content;return r!==void 0?{kind:"content_delta",textDelta:String(r)}:null}return e.type==="done"||e.type==="result"||e.done===!0?{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:e.usage?.input_tokens??0,outputTokens:e.usage?.output_tokens??0,totalTokens:(e.usage?.input_tokens??0)+(e.usage?.output_tokens??0)}}:e.type==="error"?{kind:"error",error:new l(e.error?.message??e.message??"Unknown Kiro error",{provider:"kiro"})}:null};export{k as a,O as b};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as r}from"./chunk-P7WCO724.js";import{a as i}from"./chunk-JLRVMMMH.js";var t=i({name:"validate-toml",description:"Validate TOML syntax",canFix:!1,stacks:[],defaults:{},extensions:["toml"],checkFile(e,o){if(o===void 0)return[];try{return r(o),[]}catch(a){let s=a instanceof Error?a.message:"invalid TOML";return[{path:e.path,message:s}]}}}),p=t.run,d=t.validator,u=t.main;export{t as a,p as b,d as c,u as d};
2
+ import{a as r}from"./chunk-P7WCO724.js";import{a as i}from"./chunk-HVQK35SO.js";var t=i({name:"validate-toml",description:"Validate TOML syntax",canFix:!1,stacks:[],defaults:{},extensions:["toml"],checkFile(e,o){if(o===void 0)return[];try{return r(o),[]}catch(a){let s=a instanceof Error?a.message:"invalid TOML";return[{path:e.path,message:s}]}}}),p=t.run,d=t.validator,u=t.main;export{t as a,p as b,d as c,u as d};
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as E}from"./chunk-EGEJQP7D.js";import{a as y}from"./chunk-LFNUSULJ.js";import{b as C}from"./chunk-LGNGLAV3.js";import{f as v}from"./chunk-P2MUEKFT.js";import{b as i,f as m,g as x,h as k,i as g}from"./chunk-YVN2NZL4.js";import{g as p}from"./chunk-FFWPJP7A.js";import{j as h}from"./chunk-WJKE6XHF.js";var l=C(),d=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase(),f=(e,o=[])=>{let s=e.split("/").filter(r=>r.length>0);for(let r of s){let t=r.startsWith(".")?r.slice(1):r;if(t.length===0)continue;let a=h.runtime.path.extname(t);if(a.length>0&&(t=t.slice(0,-a.length)),t.length!==0&&!o.includes(t)&&!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t))return!1}return!0},N=async(e={})=>{let{root:o=".",ignoreWords:s=[]}=e,r=await E(o),t=[];for(let a of r){let n=a.config.exports?.value;if(n!=null){if(typeof n=="string"){f(n,s)||t.push({packageName:a.name,exportPath:n,suggestion:d(n)});continue}if(n!==null&&typeof n=="object")for(let[u,c]of Object.entries(n))f(u,s)||t.push({packageName:a.name,exportPath:u,suggestion:d(u)}),typeof c=="string"&&!f(c,s)&&t.push({packageName:a.name,exportPath:c,suggestion:d(c)})}}return{isValid:t.length===0,violations:t,packagesChecked:r.length}},w=e=>v.fromPromise(()=>N(e)),b=e=>p.ok({root:"."}),A=e=>{if(p.isFail(e))return l.writeln(m("\u2717"),i(" "+String(e.error))),p.fail({exitCode:1});let{value:o}=e;if(l.writeln(g("\u2139"),i(` Checked ${o.packagesChecked} packages.`)),!o.isValid){l.writeln(m("\u2717"),i(` Found ${o.violations.length} naming violations:`));for(let s of o.violations)l.writeln(k("\u26A0"),i(" "+s.packageName)),l.writeln(g("\u2139"),i(` Export: ${s.exportPath}`)),l.writeln(g("\u2139"),i(` Suggestion: ${s.suggestion}`));return p.fail({exitCode:1})}return l.writeln(x("\u2713"),i(" All export names follow conventions.")),p.ok(void 0)},P=y.createTrigger({handler:w,adaptInput:b,adaptOutput:A}),W=async e=>await P({command:"validate-export-names",args:[],flags:{}});export{N as a,w as b,P as c,W as d};
2
+ import{a as E}from"./chunk-IIFFSCDJ.js";import{a as y}from"./chunk-LFNUSULJ.js";import{b as C}from"./chunk-JTSRGXS4.js";import{f as v}from"./chunk-P2MUEKFT.js";import{b as i,f as m,g as x,h as k,i as g}from"./chunk-YVN2NZL4.js";import{g as p}from"./chunk-FFWPJP7A.js";import{j as h}from"./chunk-6DBKPC2O.js";var l=C(),d=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase(),f=(e,o=[])=>{let s=e.split("/").filter(r=>r.length>0);for(let r of s){let t=r.startsWith(".")?r.slice(1):r;if(t.length===0)continue;let a=h.runtime.path.extname(t);if(a.length>0&&(t=t.slice(0,-a.length)),t.length!==0&&!o.includes(t)&&!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t))return!1}return!0},N=async(e={})=>{let{root:o=".",ignoreWords:s=[]}=e,r=await E(o),t=[];for(let a of r){let n=a.config.exports?.value;if(n!=null){if(typeof n=="string"){f(n,s)||t.push({packageName:a.name,exportPath:n,suggestion:d(n)});continue}if(n!==null&&typeof n=="object")for(let[u,c]of Object.entries(n))f(u,s)||t.push({packageName:a.name,exportPath:u,suggestion:d(u)}),typeof c=="string"&&!f(c,s)&&t.push({packageName:a.name,exportPath:c,suggestion:d(c)})}}return{isValid:t.length===0,violations:t,packagesChecked:r.length}},w=e=>v.fromPromise(()=>N(e)),b=e=>p.ok({root:"."}),A=e=>{if(p.isFail(e))return l.writeln(m("\u2717"),i(" "+String(e.error))),p.fail({exitCode:1});let{value:o}=e;if(l.writeln(g("\u2139"),i(` Checked ${o.packagesChecked} packages.`)),!o.isValid){l.writeln(m("\u2717"),i(` Found ${o.violations.length} naming violations:`));for(let s of o.violations)l.writeln(k("\u26A0"),i(" "+s.packageName)),l.writeln(g("\u2139"),i(` Export: ${s.exportPath}`)),l.writeln(g("\u2139"),i(` Suggestion: ${s.suggestion}`));return p.fail({exitCode:1})}return l.writeln(x("\u2713"),i(" All export names follow conventions.")),p.ok(void 0)},P=y.createTrigger({handler:w,adaptInput:b,adaptOutput:A}),W=async e=>await P({command:"validate-export-names",args:[],flags:{}});export{N as a,w as b,P as c,W as d};