eser 4.1.23 → 4.1.27

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 (245) hide show
  1. package/chunks/add-ORJYWG26.js +7 -0
  2. package/chunks/{anthropic-GBDSASP5.js → anthropic-SL274RBQ.js} +1 -1
  3. package/chunks/approve-5NJ4JWD3.js +1 -0
  4. package/chunks/ask-TFJCKH5G.js +2 -0
  5. package/chunks/block-ADHHHUFZ.js +1 -0
  6. package/chunks/{browser-6UKLTPJO.js → browser-XCMD2IZQ.js} +1 -1
  7. package/chunks/{build-VKOO2WEA.js → build-2W7YVR7J.js} +2 -2
  8. package/chunks/{bun-N3TIWBPP.js → bun-YFFBDKUJ.js} +1 -1
  9. package/chunks/changelog-gen-QDUA5G5K.js +9 -0
  10. package/chunks/chunk-2J2PXBOC.js +1 -0
  11. package/chunks/{chunk-NIX3WX3O.js → chunk-3EFU5R2M.js} +1 -1
  12. package/chunks/{chunk-7GS5KPVF.js → chunk-3I4JG3PJ.js} +1 -1
  13. package/chunks/{chunk-7QNRH7OR.js → chunk-3K42AALS.js} +1 -1
  14. package/chunks/{chunk-TMFPDVYN.js → chunk-3OEM65F2.js} +17 -17
  15. package/chunks/{chunk-RGUC6KAZ.js → chunk-4H4O3TGK.js} +1 -1
  16. package/chunks/{chunk-V5HTJPFW.js → chunk-4HAIX3WN.js} +3 -3
  17. package/chunks/chunk-4VL2RZIN.js +1 -0
  18. package/chunks/chunk-5AK4OGCO.js +1 -0
  19. package/chunks/chunk-5MN3MWQN.js +1 -0
  20. package/chunks/chunk-5RK3346P.js +4 -0
  21. package/chunks/chunk-6HYGGBEQ.js +1 -0
  22. package/chunks/{chunk-PLRSDG6G.js → chunk-762C2IM6.js} +1 -1
  23. package/chunks/{chunk-NZFUFGOC.js → chunk-AAV7D6DF.js} +1 -1
  24. package/chunks/{chunk-DLVQNMNV.js → chunk-AKJB4CER.js} +1 -1
  25. package/chunks/{chunk-NSZ4HGDI.js → chunk-ANY26ROY.js} +1 -1
  26. package/chunks/{chunk-IAWIWTDY.js → chunk-AYSPDG4K.js} +1 -1
  27. package/chunks/{chunk-DOV5776P.js → chunk-BCHXUKWW.js} +2 -2
  28. package/chunks/{chunk-3DMTTLUJ.js → chunk-BDTJR6UH.js} +1 -1
  29. package/chunks/{chunk-BP2MZX2P.js → chunk-C3PZVQ3Z.js} +1 -1
  30. package/chunks/{chunk-M5TBBQQC.js → chunk-CKD2KOHA.js} +3 -3
  31. package/chunks/chunk-CPRLAMEG.js +1 -0
  32. package/chunks/chunk-DWYVBWBP.js +91 -0
  33. package/chunks/{chunk-O2MNBI7V.js → chunk-EBYJBBYV.js} +1 -1
  34. package/chunks/{chunk-PBSR4XR2.js → chunk-ETMOOGY2.js} +1 -1
  35. package/chunks/chunk-G34MS4XJ.js +1 -0
  36. package/chunks/chunk-GVSBZ6JV.js +1 -0
  37. package/chunks/{chunk-C3OSYHJY.js → chunk-H4OFOQQ2.js} +1 -1
  38. package/chunks/{chunk-XWYLEYLY.js → chunk-HTBLWLKV.js} +1 -1
  39. package/chunks/chunk-JOXKA7TJ.js +7 -0
  40. package/chunks/{chunk-JQHMDTPL.js → chunk-KAEAT6A4.js} +1 -1
  41. package/chunks/chunk-LOFP256P.js +1 -0
  42. package/chunks/{chunk-2R4MK2KR.js → chunk-MYSTBVWT.js} +1 -1
  43. package/chunks/chunk-NGZZAQ7G.js +1 -0
  44. package/chunks/chunk-NLNSK3KE.js +1 -0
  45. package/chunks/chunk-NT2MQK7O.js +6 -0
  46. package/chunks/{chunk-SJQWPBMJ.js → chunk-NTPOK5H6.js} +1 -1
  47. package/chunks/{chunk-DZD6MI45.js → chunk-PO3SXFUE.js} +1 -1
  48. package/chunks/chunk-Q54LOR4S.js +2 -0
  49. package/chunks/{chunk-5C7ZQN6X.js → chunk-QIODVVTY.js} +1 -1
  50. package/chunks/{chunk-ZY72QNKZ.js → chunk-QIYWONJL.js} +1 -1
  51. package/chunks/chunk-QZY4BKI7.js +1 -0
  52. package/chunks/chunk-RBB5ITAS.js +2 -0
  53. package/chunks/chunk-RYLOB2JU.js +1 -0
  54. package/chunks/{chunk-VFMYWG2I.js → chunk-SBOTNOWZ.js} +1 -1
  55. package/chunks/{chunk-Z7742D7Q.js → chunk-SG4G3OOO.js} +1 -1
  56. package/chunks/{chunk-FGDJVQG3.js → chunk-TTYO2XJO.js} +1 -1
  57. package/chunks/{chunk-EW5NCPPE.js → chunk-TUTRX7VR.js} +3 -3
  58. package/chunks/{chunk-UJX2S56V.js → chunk-TXL6YOFL.js} +1 -1
  59. package/chunks/{chunk-4Q3SEHPE.js → chunk-U47ABJCC.js} +1 -1
  60. package/chunks/chunk-U65FD6J3.js +1 -0
  61. package/chunks/{chunk-7M3ONEMO.js → chunk-UKYKMDYU.js} +1 -1
  62. package/chunks/{chunk-DRQWYJMH.js → chunk-UNL4H5EY.js} +1 -1
  63. package/chunks/{chunk-ATLUGTI7.js → chunk-V2N5L24J.js} +2 -2
  64. package/chunks/chunk-VVHXAOEH.js +1 -0
  65. package/chunks/{chunk-HPVL4BVQ.js → chunk-W3REWI3H.js} +2 -2
  66. package/chunks/{chunk-MQH4XBFN.js → chunk-XMCQMTAA.js} +1 -1
  67. package/chunks/chunk-YMY2URYM.js +1 -0
  68. package/chunks/{chunk-XJ3VEVYL.js → chunk-YQU3TEIG.js} +1 -1
  69. package/chunks/chunk-YWCEHTZB.js +2 -0
  70. package/chunks/chunk-YXSB6RET.js +1 -0
  71. package/chunks/chunk-Z4WPWVC7.js +10 -0
  72. package/chunks/chunk-ZED5RIVL.js +1 -0
  73. package/chunks/chunk-ZH37DSUQ.js +1 -0
  74. package/chunks/chunk-ZO7RUTSQ.js +60 -0
  75. package/chunks/claude-code-K37KYX7W.js +1 -0
  76. package/chunks/clone-PAQMCIA3.js +5 -0
  77. package/chunks/{commitmsg-SQRQONCS.js → commitmsg-ZGOEO5YG.js} +2 -2
  78. package/chunks/{deno-PZXN5K3J.js → deno-MMJLKXAE.js} +1 -1
  79. package/chunks/{dev-FLO2KEPZ.js → dev-JHAHGTZP.js} +2 -2
  80. package/chunks/file-tools-shared-77P7MI54.js +1 -0
  81. package/chunks/gemini-ARTUPDPZ.js +1 -0
  82. package/chunks/gh-SXEDNWHD.js +4 -0
  83. package/chunks/{gh-contributors-5SHGJHAQ.js → gh-contributors-G3QZZAUO.js} +3 -3
  84. package/chunks/init-3GXDO32O.js +1 -0
  85. package/chunks/init-IPZHDMAH.js +12 -0
  86. package/chunks/install-VY2L6NDB.js +2 -0
  87. package/chunks/kiro-XQDHURLU.js +1 -0
  88. package/chunks/{list-MN7OUE52.js → list-2RZIQZGH.js} +1 -1
  89. package/chunks/{list-B7L4FZKG.js → list-DSVIPH45.js} +1 -1
  90. package/chunks/{list-UZKWSA4S.js → list-V2HZCPDN.js} +1 -1
  91. package/chunks/load-config-KG4RTCR2.js +1 -0
  92. package/chunks/{main-WVXCURBF.js → main-FQFNY7SM.js} +2 -2
  93. package/chunks/manifest-5CYL3HR3.js +1 -0
  94. package/chunks/mod-5ACKR2OE.js +1 -0
  95. package/chunks/{mod-PEAFMI6F.js → mod-CUIGNRIK.js} +1 -1
  96. package/chunks/mod-NSY6WUYH.js +27 -0
  97. package/chunks/mod-QJMMYECF.js +10 -0
  98. package/chunks/{mod-CI56JMO4.js → mod-TLLZ3NAM.js} +2 -2
  99. package/chunks/mod-TSU5UWXA.js +1 -0
  100. package/chunks/{mod-JTBNNSZZ.js → mod-U6LEXPVR.js} +1 -1
  101. package/chunks/{mod-MKMQWZ6G.js → mod-VZPKQ7DG.js} +1 -1
  102. package/chunks/mod-WX4P6LGJ.js +1 -0
  103. package/chunks/mod-WYRORC72.js +1 -0
  104. package/chunks/new-EAETGSIR.js +4 -0
  105. package/chunks/next-F2BIIAZC.js +3 -0
  106. package/chunks/{node-VPHAK3FD.js → node-SMAAGOR3.js} +1 -1
  107. package/chunks/ollama-6JZ2IKR7.js +1 -0
  108. package/chunks/opencode-CHIAJALZ.js +1 -0
  109. package/chunks/recipe-applier-R4YJPGQR.js +1 -0
  110. package/chunks/registry-fetcher-J6X32PGP.js +1 -0
  111. package/chunks/{release-YJOLKWDT.js → release-3BKLVESS.js} +2 -2
  112. package/chunks/release-notes-734LKEJB.js +3 -0
  113. package/chunks/release-tag-YX727TXO.js +1 -0
  114. package/chunks/reset-PAPDZIDC.js +1 -0
  115. package/chunks/rule-4GNOR3GE.js +2 -0
  116. package/chunks/{run-7JXDS75G.js → run-ES4BLQQX.js} +1 -1
  117. package/chunks/{scripts-RSK5XDRW.js → scripts-COIXD5AD.js} +1 -1
  118. package/chunks/{serve-U6IXMGXQ.js → serve-B4V2BCWM.js} +2 -2
  119. package/chunks/{server-PXE4DB3V.js → server-RYWDAYED.js} +1 -1
  120. package/chunks/spec-SNAUMQSR.js +1 -0
  121. package/chunks/status-CY5IKIYS.js +1 -0
  122. package/chunks/sync-OAPV43JS.js +1 -0
  123. package/chunks/system-5A6DQLM5.js +1 -0
  124. package/chunks/system-JWO27FMA.js +1 -0
  125. package/chunks/update-O75M4SDJ.js +5 -0
  126. package/chunks/validate-bom-6G7EYFOP.js +1 -0
  127. package/chunks/validate-case-conflict-OWHWRTSQ.js +1 -0
  128. package/chunks/validate-circular-deps-TCYSZKME.js +1 -0
  129. package/chunks/validate-commit-msg-UPJJ7E4M.js +1 -0
  130. package/chunks/validate-docs-ZTCE5XLF.js +1 -0
  131. package/chunks/validate-eof-6RMNMAWI.js +1 -0
  132. package/chunks/validate-export-names-5ZVQ4PGM.js +1 -0
  133. package/chunks/validate-filenames-5YB27RN4.js +1 -0
  134. package/chunks/validate-json-6CLTN4AN.js +1 -0
  135. package/chunks/validate-large-files-KEMHYWKH.js +1 -0
  136. package/chunks/validate-licenses-WIVY6G5Z.js +1 -0
  137. package/chunks/validate-line-endings-KNFYAVBG.js +1 -0
  138. package/chunks/validate-merge-conflict-PYKGIFY5.js +1 -0
  139. package/chunks/validate-mod-exports-X5UZPD7J.js +1 -0
  140. package/chunks/validate-package-configs-SYKEIB53.js +1 -0
  141. package/chunks/validate-secrets-BWDFWN64.js +1 -0
  142. package/chunks/validate-shebangs-MP6VTLWO.js +1 -0
  143. package/chunks/validate-submodules-RQXISWKG.js +1 -0
  144. package/chunks/validate-symlinks-IPRYMDZD.js +1 -0
  145. package/chunks/validate-toml-KJZK7QVM.js +1 -0
  146. package/chunks/validate-trailing-whitespace-RO42VWQG.js +1 -0
  147. package/chunks/validate-yaml-H7G726ZM.js +1 -0
  148. package/chunks/versions-KW5UTMNV.js +1 -0
  149. package/chunks/vertexai-TPGIAJNA.js +1 -0
  150. package/chunks/workerd-LKKH32SO.js +1 -0
  151. package/eser.js +1 -1
  152. package/package.json +1 -1
  153. package/chunks/add-4LRHVBEC.js +0 -7
  154. package/chunks/approve-364KOMLB.js +0 -1
  155. package/chunks/ask-752YJEHO.js +0 -2
  156. package/chunks/block-JVJQU723.js +0 -1
  157. package/chunks/changelog-gen-ZCNNOY7G.js +0 -7
  158. package/chunks/chunk-2TRQKCFC.js +0 -1
  159. package/chunks/chunk-3TYZYY77.js +0 -1
  160. package/chunks/chunk-4HMEWMWL.js +0 -1
  161. package/chunks/chunk-5O7V5P53.js +0 -1
  162. package/chunks/chunk-5UGVJVIQ.js +0 -1
  163. package/chunks/chunk-6YRN6OJC.js +0 -2
  164. package/chunks/chunk-BKVQBSFV.js +0 -6
  165. package/chunks/chunk-CDLEA2PD.js +0 -1
  166. package/chunks/chunk-GRTR6TNJ.js +0 -1
  167. package/chunks/chunk-H2JGLZIR.js +0 -1
  168. package/chunks/chunk-HVMMNGY5.js +0 -7
  169. package/chunks/chunk-L2BYHWDC.js +0 -1
  170. package/chunks/chunk-LRL56YFE.js +0 -1
  171. package/chunks/chunk-LU3DHXOC.js +0 -2
  172. package/chunks/chunk-NADES3GN.js +0 -1
  173. package/chunks/chunk-QIUIPRJP.js +0 -1
  174. package/chunks/chunk-R6F4EK2B.js +0 -4
  175. package/chunks/chunk-RUZDG5PT.js +0 -60
  176. package/chunks/chunk-SCCNNGD4.js +0 -2
  177. package/chunks/chunk-SCULX2ND.js +0 -1
  178. package/chunks/chunk-VGFZXQMW.js +0 -1
  179. package/chunks/chunk-WE7PSSAQ.js +0 -91
  180. package/chunks/chunk-X4ZCYXOT.js +0 -1
  181. package/chunks/chunk-XMTGT2NJ.js +0 -10
  182. package/chunks/chunk-Y6DLCHJN.js +0 -1
  183. package/chunks/chunk-YUXQ7JNG.js +0 -1
  184. package/chunks/chunk-ZTLJ775S.js +0 -1
  185. package/chunks/claude-code-PWTLM554.js +0 -1
  186. package/chunks/clone-DASXIL35.js +0 -5
  187. package/chunks/file-tools-shared-ESMPLZVJ.js +0 -1
  188. package/chunks/gemini-I6F5N7PS.js +0 -1
  189. package/chunks/gh-Y4BXDXR5.js +0 -4
  190. package/chunks/init-GXBXQGGV.js +0 -1
  191. package/chunks/init-UFJL24PW.js +0 -12
  192. package/chunks/install-Q2KQZM62.js +0 -2
  193. package/chunks/kiro-NMTIFMT4.js +0 -1
  194. package/chunks/load-config-TSM3AAQ6.js +0 -1
  195. package/chunks/manifest-VJQJG2LS.js +0 -1
  196. package/chunks/mod-3PJAIZ2O.js +0 -1
  197. package/chunks/mod-FKPTF5D5.js +0 -1
  198. package/chunks/mod-GZ6BSK2P.js +0 -1
  199. package/chunks/mod-QODEWK3G.js +0 -9
  200. package/chunks/mod-S33TIBIC.js +0 -1
  201. package/chunks/mod-STKIZYZ3.js +0 -27
  202. package/chunks/new-W5YBJFGW.js +0 -4
  203. package/chunks/next-773GX25N.js +0 -3
  204. package/chunks/ollama-DQ5VM4HI.js +0 -1
  205. package/chunks/opencode-IZMQZ4ZK.js +0 -1
  206. package/chunks/recipe-applier-F2REROYS.js +0 -1
  207. package/chunks/registry-fetcher-ZJ76EHBA.js +0 -1
  208. package/chunks/release-notes-Z53AFCII.js +0 -3
  209. package/chunks/release-tag-QRIKYVQB.js +0 -1
  210. package/chunks/reset-5LQGIOGB.js +0 -1
  211. package/chunks/rule-K42YEAMO.js +0 -2
  212. package/chunks/spec-5446CSQC.js +0 -1
  213. package/chunks/status-HK3P6J6G.js +0 -1
  214. package/chunks/sync-4FSA5257.js +0 -1
  215. package/chunks/system-3MH6OCP6.js +0 -1
  216. package/chunks/system-DTVAUBIX.js +0 -1
  217. package/chunks/update-QD5S73WT.js +0 -5
  218. package/chunks/validate-bom-IVALGNGE.js +0 -1
  219. package/chunks/validate-case-conflict-LKECKLD5.js +0 -1
  220. package/chunks/validate-circular-deps-PXFPCBXA.js +0 -1
  221. package/chunks/validate-commit-msg-77CBKGOF.js +0 -1
  222. package/chunks/validate-docs-3UGB7LN7.js +0 -1
  223. package/chunks/validate-eof-ZSIYNHO5.js +0 -1
  224. package/chunks/validate-export-names-BPSCBX7B.js +0 -1
  225. package/chunks/validate-filenames-G4XJ2LHN.js +0 -1
  226. package/chunks/validate-json-YRCFW2O7.js +0 -1
  227. package/chunks/validate-large-files-MWWSFDOE.js +0 -1
  228. package/chunks/validate-licenses-Q2YA2MND.js +0 -1
  229. package/chunks/validate-line-endings-C6NHWHGI.js +0 -1
  230. package/chunks/validate-merge-conflict-KTBL4FUY.js +0 -1
  231. package/chunks/validate-mod-exports-LQIIQRIS.js +0 -1
  232. package/chunks/validate-package-configs-36PYXIWC.js +0 -1
  233. package/chunks/validate-secrets-UFDJ7ITY.js +0 -1
  234. package/chunks/validate-shebangs-3UO4MDMZ.js +0 -1
  235. package/chunks/validate-submodules-YA654D3B.js +0 -1
  236. package/chunks/validate-symlinks-R2PNE5TG.js +0 -1
  237. package/chunks/validate-toml-7H2N5AKI.js +0 -1
  238. package/chunks/validate-trailing-whitespace-HXO7M3ED.js +0 -1
  239. package/chunks/validate-yaml-ZJJCQVBB.js +0 -1
  240. package/chunks/versions-CWT5S7G4.js +0 -1
  241. package/chunks/vertexai-2SMP54AR.js +0 -1
  242. package/chunks/workerd-NXKZMQPV.js +0 -1
  243. /package/chunks/{chunk-QXTK62N4.js → chunk-ACQUINWH.js} +0 -0
  244. /package/chunks/{chunk-VTQ72OK7.js → chunk-FDZP7B5Y.js} +0 -0
  245. /package/chunks/{chunk-4OIKB2P5.js → chunk-T7K64JD5.js} +0 -0
@@ -0,0 +1,7 @@
1
+ import{a as N,b as x,c as H}from"./chunk-NLNSK3KE.js";import{f as C}from"./chunk-Q54LOR4S.js";import{a as E,d as $}from"./chunk-NUSNMQPL.js";import{f as S}from"./chunk-5AK4OGCO.js";import{f as b,h,k as I}from"./chunk-TTYO2XJO.js";import{d as o,e as k,f as g,g as A,j as y}from"./chunk-PLJNPQFC.js";import{a as v}from"./chunk-HPPFA3XU.js";import{a as d,b as c,c as R}from"./chunk-DQAEQEXD.js";import{t as w}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var _=r=>E(async e=>{try{let t=await S(r.registrySource,{verbose:r.verbose,local:r.local}),s=t.recipes.find(n=>n.name===r.recipeName);if(s===void 0)return c({_tag:"RecipeNotFound",message:`Recipe '${r.recipeName}' not found. Run \`eser kit list\` to see available recipes.`});let a=await N(r.cwd),i=x(s,a);for(let n of i.warnings)e.out.writeln(A(`Warning: ${n}`));let l=await C(r.recipeName,t.recipes,{cwd:r.cwd,registryUrl:t.registryUrl,force:r.force,skipExisting:r.skipExisting,dryRun:r.dryRun,verbose:r.verbose,variables:r.variables}),m=0,p=0;for(let n of l.recipes)m+=n.result.written.length,p+=n.result.skipped.length;e.out.writeln(g(`\u2713 Added ${m} file(s)`)),l.recipes.length>1&&e.out.writeln(o(` Applied ${l.recipes.length} recipes (including dependencies)`)),p>0&&e.out.writeln(o(` Skipped ${p} existing file(s)`));let f=l.recipes.find(n=>n.name===r.recipeName);if(f!==void 0)for(let n of f.result.written)e.out.writeln(` \u2192 ${n}`);let u;if(!r.noInstall&&!r.dryRun&&i.instructions.length>0){e.out.writeln(o(`
2
+ Installing dependencies...`)),u=await H(i.instructions,r.cwd,{verbose:r.verbose});for(let n of u)n.success?e.out.writeln(g(` \u2713 ${n.command}`)):e.out.writeln(k(` \u2717 ${n.command}: ${n.error}`))}else if(i.instructions.length>0){e.out.writeln(o(`
3
+ Dependencies (run manually):`));for(let n of i.instructions)e.out.writeln(o(` ${n}`))}return d({recipe:s,chainResult:l,depInfo:i,installResults:u})}catch(t){let s=t instanceof Error?t.message:String(t);return c({_tag:"ApplyError",message:s})}});var j=r=>{let e={};for(let t of r){let[s,...a]=String(t).split("=");s!==void 0&&s!==""&&(e[s]=a.join("="))}return e},B=async r=>{let e=v(r??[],{string:["registry","var"],boolean:["dry-run","force","skip-existing","verbose","local","no-install"],collect:["var"]}),t=e._[0],s=b({renderer:I.ansi(),sink:h.stdout()});if(t===void 0)return s.writeln("Usage: eser kit add <recipe> [--registry <url>] [--dry-run] [--var key=value]"),s.writeln(),s.writeln("Run ",o("`eser kit list`")," to see available recipes."),await s.close(),d(void 0);let a=e["dry-run"]===!0;a?s.writeln(y(`
4
+ Dry run: ${t}
5
+ `)):s.writeln(y(`
6
+ Adding ${t}...
7
+ `));let i=await $(_({recipeName:t,cwd:w.process.cwd(),registrySource:e.registry,local:e.local===!0,dryRun:a,force:e.force===!0,skipExisting:e["skip-existing"]===!0,verbose:e.verbose===!0,noInstall:e["no-install"]===!0,variables:j(e.var)}),{out:s});return await s.close(),R(i)?d(void 0):c({exitCode:1})};export{B as main};
@@ -1 +1 @@
1
- import{a,b}from"./chunk-UJX2S56V.js";import"./chunk-LRL56YFE.js";import"./chunk-OLM5RTFK.js";import"./chunk-DXB73IDG.js";export{a as AnthropicModel,b as anthropicFactory};
1
+ import{a,b}from"./chunk-TXL6YOFL.js";import"./chunk-5MN3MWQN.js";import"./chunk-OLM5RTFK.js";import"./chunk-DXB73IDG.js";export{a as AnthropicModel,b as anthropicFactory};
@@ -0,0 +1 @@
1
+ import{e as w}from"./chunk-LXVBR775.js";import{d as h,e as u}from"./chunk-NT2MQK7O.js";import{f as m,h as c,k as d}from"./chunk-TTYO2XJO.js";import{c as r,d as o,e as i,f as p,j as l}from"./chunk-PLJNPQFC.js";import{a}from"./chunk-DQAEQEXD.js";import{t as n}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var D=async g=>{let e=m({renderer:d.ansi(),sink:c.stdout()}),t=n.process.cwd(),s=await h(t);if(s.phase==="SPEC_DRAFT"){let f=w(s);await u(t,f),e.writeln(p("\u2714")," Spec approved. Phase: ",l("BUILDING")),e.writeln("Run ",r("noskills next")," to start building.")}else s.phase==="DISCOVERY"&&s.discovery.completed?(e.writeln(o("Discovery complete. Spec draft already generated.")),e.writeln("Review the spec and run ",r("noskills approve")," again when in SPEC_DRAFT phase.")):e.writeln(i(`Cannot approve in phase: ${s.phase}`));return await e.close(),a(void 0)};export{D as main};
@@ -0,0 +1,2 @@
1
+ import{a as _,b as $}from"./chunk-6FMPNAZ3.js";import{a as F}from"./chunk-5MN3MWQN.js";import{d as x,f as v,g as I,h as y,k as P}from"./chunk-TTYO2XJO.js";import{d as O,e as L,g as R}from"./chunk-OBIEQJDE.js";import{a as T}from"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-OLM5RTFK.js";import{b as S}from"./chunk-BCHXUKWW.js";import{a as C,b as g}from"./chunk-DQAEQEXD.js";import{t as m}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.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-K37KYX7W.js")).claudeCodeFactory;case"ollama":return(await import("./ollama-6JZ2IKR7.js")).ollamaFactory;case"opencode":return(await import("./opencode-CHIAJALZ.js")).openCodeFactory;case"kiro":return(await import("./kiro-XQDHURLU.js")).kiroFactory;case"anthropic":return(await import("./anthropic-SL274RBQ.js")).anthropicFactory;case"openai":return(await import("./openai-XMIVMDDL.js")).openaiFactory;case"gemini":return(await import("./gemini-ARTUPDPZ.js")).geminiFactory;case"vertexai":return(await import("./vertexai-TPGIAJNA.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
+ `)),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 @@
1
+ import{g as h}from"./chunk-LXVBR775.js";import{d as w,e as f}from"./chunk-NT2MQK7O.js";import{f as c,h as d,k as u}from"./chunk-TTYO2XJO.js";import{c as i,d as l,e as m,g as p}from"./chunk-PLJNPQFC.js";import{a as o,b as n}from"./chunk-DQAEQEXD.js";import{t as a}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var A=async k=>{let e=c({renderer:u.ansi(),sink:d.stdout()}),t=a.process.cwd(),r=k?.join(" ")??"No reason given",s=await w(t);if(s.phase!=="BUILDING")return e.writeln(m(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let g=h(s,r);return await f(t,g),e.writeln(p("\u26A0")," Spec blocked: ",l(r)),e.writeln("Resolve with: ",i('noskills next --answer="resolution"')),await e.close(),o(void 0)};export{A as main};
@@ -1 +1 @@
1
- import{b as s}from"./chunk-VTQ72OK7.js";import{a as r}from"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},t=e=>()=>{throw new r(e,"browser")},n=()=>{let e=t("fs");return{readFile:e,readTextFile:e,writeFile:e,writeTextFile:e,exists:e,stat:e,lstat:e,mkdir:e,ensureDir:e,remove:e,readDir:e,copyFile:e,rename:e,makeTempDir:e,realPath:e,watch:e,walk:e,chmod:e}},i=()=>{let e=t("exec");return{spawn:e,exec:e,execJson:e,spawnChild:e}},a=()=>{let e=t("process");return{exit:e,setExitCode:e,cwd:e,chdir:e,hostname:e,execPath:e,get args(){throw new r("process","browser")},get pid(){throw new r("process","browser")},get stdin(){throw new r("process","browser")},get stdout(){throw new r("process","browser")},get stderr(){throw new r("process","browser")}}},c=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),l=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:n(),path:s,exec:i(),env:c(),process:a()});export{o as BROWSER_CAPABILITIES,l as createBrowserRuntime};
1
+ import{b as s}from"./chunk-FDZP7B5Y.js";import{a as r}from"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},t=e=>()=>{throw new r(e,"browser")},n=()=>{let e=t("fs");return{readFile:e,readTextFile:e,writeFile:e,writeTextFile:e,exists:e,stat:e,lstat:e,mkdir:e,ensureDir:e,remove:e,readDir:e,copyFile:e,rename:e,makeTempDir:e,realPath:e,watch:e,walk:e,chmod:e}},i=()=>{let e=t("exec");return{spawn:e,exec:e,execJson:e,spawnChild:e}},a=()=>{let e=t("process");return{exit:e,setExitCode:e,cwd:e,chdir:e,hostname:e,execPath:e,get args(){throw new r("process","browser")},get pid(){throw new r("process","browser")},get stdin(){throw new r("process","browser")},get stdout(){throw new r("process","browser")},get stderr(){throw new r("process","browser")}}},c=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),l=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:n(),path:s,exec:i(),env:c(),process:a()});export{o as BROWSER_CAPABILITIES,l as createBrowserRuntime};
@@ -1,6 +1,6 @@
1
- import{f as d,h as g,k as m}from"./chunk-FGDJVQG3.js";import{b as c,d as L,g as C,j as u}from"./chunk-PLJNPQFC.js";import"./chunk-ZOZYBQX2.js";import{a as v}from"./chunk-WE7PSSAQ.js";import"./chunk-HPPFA3XU.js";import{a as y}from"./chunk-DQAEQEXD.js";import"./chunk-GRTR6TNJ.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.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(`
1
+ import{f as d,h as g,k as m}from"./chunk-TTYO2XJO.js";import{b as c,d as L,g as C,j as u}from"./chunk-PLJNPQFC.js";import"./chunk-ZOZYBQX2.js";import{a as v}from"./chunk-DWYVBWBP.js";import"./chunk-HPPFA3XU.js";import{a as y}from"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.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
2
  \u{1F4E6} Building for production...
3
- `));let e=await import("./mod-6P2JPEHC.js"),{current:n}=await import("./mod-FKPTF5D5.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-3MH6OCP6.js"),import("./load-config-TSM3AAQ6.js"),import("./mod-CI56JMO4.js"),import("./mod-JTBNNSZZ.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(`
3
+ `));let e=await import("./mod-6P2JPEHC.js"),{runtime:n}=await import("./mod-WYRORC72.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-5A6DQLM5.js"),import("./load-config-KG4RTCR2.js"),import("./mod-TLLZ3NAM.js"),import("./mod-U6LEXPVR.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
4
  \u{1F4CA} Bundle Analysis:
5
5
  `));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(`
6
6
  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 +1 @@
1
- import{b as F}from"./chunk-4OIKB2P5.js";import{b as v,d as b}from"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";import*as n from"node:fs/promises";import*as O from"node:fs";import*as o from"node:path";import*as w from"node:os";import m from"node:process";import{Readable as x,Writable as k}from"node:stream";var E={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},R=()=>{let s=e=>({isFile:e.isFile(),isDirectory:e.isDirectory(),isSymlink:e.isSymbolicLink(),size:e.size,mtime:e.mtime,atime:e.atime,birthtime:e.birthtime}),a=(e,t)=>{throw e instanceof Error&&"code"in e&&e.code==="ENOENT"?new v(t):e};return{async readFile(e,t){try{let r=await n.readFile(e,{signal:t?.signal});return new Uint8Array(r)}catch(r){return a(r,e)}},async readTextFile(e,t){try{return await n.readFile(e,{encoding:"utf-8",signal:t?.signal})}catch(r){return a(r,e)}},async writeFile(e,t,r){let d=r?.append?"a":"w";await n.writeFile(e,t,{signal:r?.signal,mode:r?.mode,flag:d})},async writeTextFile(e,t,r){let d=r?.append?"a":"w";await n.writeFile(e,t,{encoding:"utf-8",signal:r?.signal,mode:r?.mode,flag:d})},async exists(e){try{return await n.access(e),!0}catch{return!1}},async stat(e){try{let t=await n.stat(e);return s(t)}catch(t){return a(t,e)}},async lstat(e){try{let t=await n.lstat(e);return s(t)}catch(t){return a(t,e)}},async mkdir(e,t){await n.mkdir(e,{recursive:t?.recursive??!1,mode:t?.mode})},async ensureDir(e){await n.mkdir(e,{recursive:!0})},async remove(e,t){try{await n.rm(e,{recursive:t?.recursive??!1,force:!1})}catch(r){a(r,e)}},async*readDir(e){try{let t=await n.readdir(e,{withFileTypes:!0});for(let r of t)yield{name:r.name,isFile:r.isFile(),isDirectory:r.isDirectory(),isSymlink:r.isSymbolicLink()}}catch(t){a(t,e)}},async copyFile(e,t){await n.copyFile(e,t)},async rename(e,t){await n.rename(e,t)},async makeTempDir(e){let t=e?.dir??w.tmpdir(),r=e?.prefix??"",d=e?.suffix??"",i=await n.mkdtemp(o.join(t,r));if(d){let c=i+d;return await n.rename(i,c),c}return i},async realPath(e){try{return await n.realpath(e)}catch(t){throw t instanceof Error&&"code"in t&&t.code==="ENOENT"?new v(e):t}},watch(e,t){let r=t?.recursive??!0,d=[],i=[],c=[],u=!1,h=l=>{u||(c.length>0?c.shift()({value:l,done:!1}):i.push(l))};for(let l of e)try{let P=O.watch(l,{recursive:r},(y,f)=>{f!==null&&h({kind:y==="rename"?"create":"modify",paths:[o.join(l,f)]})});d.push(P)}catch{}return{close:()=>{u=!0;for(let l of d)l.close();for(let l of c)l({value:void 0,done:!0});c=[]},[Symbol.asyncIterator]:()=>({next:()=>u?Promise.resolve({value:void 0,done:!0}):i.length>0?Promise.resolve({value:i.shift(),done:!1}):new Promise(l=>{c.push(l)})})}},async chmod(e,t){await n.chmod(e,t)},async*walk(e,t){let r=t?.includeDirs??!0,d=t?.includeFiles??!0,i=t?.exts,c=t?.skip,u=async function*(h){let l=await n.readdir(h,{withFileTypes:!0});for(let P of l){let y=o.join(h,P.name);if(c?.some(p=>p.test(y)))continue;let f=P.isSymbolicLink();if(P.isDirectory())r&&(yield{path:y,name:P.name,isFile:!1,isDirectory:!0,isSymlink:f}),yield*u(y);else if(P.isFile()||f){if(!d||i&&!i.some(p=>P.name.endsWith(p.startsWith(".")?p:`.${p}`)))continue;yield{path:y,name:P.name,isFile:P.isFile(),isDirectory:!1,isSymlink:f}}}};yield*u(e)}}},S=()=>({join:o.join,resolve:o.resolve,dirname:o.dirname,basename:o.basename,extname:o.extname,normalize:o.normalize,isAbsolute:o.isAbsolute,relative:o.relative,parse:o.parse,format:o.format,sep:o.sep,delimiter:o.delimiter}),g=async s=>{if(!s)return new Uint8Array(0);let a=[],e=s.getReader();try{for(;;){let{done:i,value:c}=await e.read();if(i)break;a.push(c)}}finally{e.releaseLock()}let t=a.reduce((i,c)=>i+c.length,0),r=new Uint8Array(t),d=0;for(let i of a)r.set(i,d),d+=i.length;return r},A=()=>({async spawn(s,a=[],e){let[t,r,d]=F(e),i=Bun.spawn([s,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:r,stderr:d}),[c,u,h]=await Promise.all([i.exited,g(i.stdout),g(i.stderr)]);return{success:c===0,code:c,stdout:u,stderr:h}},async exec(s,a=[],e){let t=await this.spawn(s,a,e);if(!t.success){let r=new TextDecoder().decode(t.stderr);throw new b(s,t.code,r)}return new TextDecoder().decode(t.stdout).trim()},async execJson(s,a=[],e){let t=await this.exec(s,a,e);return JSON.parse(t)},spawnChild(s,a=[],e){let[t,r,d]=F(e),i=Bun.spawn([s,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:r,stderr:d}),c=i.exited.then(u=>({success:u===0,code:u,signal:void 0}));return{pid:i.pid,stdin:i.stdin,stdout:i.stdout,stderr:i.stderr,status:c,output:async()=>{let[u,h,l]=await Promise.all([c,g(i.stdout),g(i.stderr)]);return{success:u.success,code:u.code,stdout:h,stderr:l}},kill:u=>{i.kill(u)}}}}),W=()=>({get(s){return m.env[s]},set(s,a){m.env[s]=a},delete(s){delete m.env[s]},has(s){return s in m.env},toObject(){let s={};for(let[a,e]of Object.entries(m.env))e!==void 0&&(s[a]=e);return s}}),D=()=>({exit(s){m.exit(s)},setExitCode(s){m.exitCode=s},cwd(){return m.cwd()},chdir(s){m.chdir(s)},hostname(){return w.hostname()},execPath(){return m.execPath},args:m.argv.slice(2),pid:m.pid,stdin:x.toWeb(m.stdin),stdout:k.toWeb(m.stdout),stderr:k.toWeb(m.stderr)}),C=()=>{let s=R(),a=S(),e=A(),t=W(),r=D();return{name:"bun",version:Bun.version,capabilities:E,fs:s,path:a,exec:e,env:t,process:r}};export{E as BUN_CAPABILITIES,C as createBunRuntime};
1
+ import{b as F}from"./chunk-T7K64JD5.js";import{b as v,d as b}from"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";import*as n from"node:fs/promises";import*as O from"node:fs";import*as o from"node:path";import*as w from"node:os";import m from"node:process";import{Readable as x,Writable as k}from"node:stream";var E={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},R=()=>{let s=e=>({isFile:e.isFile(),isDirectory:e.isDirectory(),isSymlink:e.isSymbolicLink(),size:e.size,mtime:e.mtime,atime:e.atime,birthtime:e.birthtime}),a=(e,t)=>{throw e instanceof Error&&"code"in e&&e.code==="ENOENT"?new v(t):e};return{async readFile(e,t){try{let r=await n.readFile(e,{signal:t?.signal});return new Uint8Array(r)}catch(r){return a(r,e)}},async readTextFile(e,t){try{return await n.readFile(e,{encoding:"utf-8",signal:t?.signal})}catch(r){return a(r,e)}},async writeFile(e,t,r){let d=r?.append?"a":"w";await n.writeFile(e,t,{signal:r?.signal,mode:r?.mode,flag:d})},async writeTextFile(e,t,r){let d=r?.append?"a":"w";await n.writeFile(e,t,{encoding:"utf-8",signal:r?.signal,mode:r?.mode,flag:d})},async exists(e){try{return await n.access(e),!0}catch{return!1}},async stat(e){try{let t=await n.stat(e);return s(t)}catch(t){return a(t,e)}},async lstat(e){try{let t=await n.lstat(e);return s(t)}catch(t){return a(t,e)}},async mkdir(e,t){await n.mkdir(e,{recursive:t?.recursive??!1,mode:t?.mode})},async ensureDir(e){await n.mkdir(e,{recursive:!0})},async remove(e,t){try{await n.rm(e,{recursive:t?.recursive??!1,force:!1})}catch(r){a(r,e)}},async*readDir(e){try{let t=await n.readdir(e,{withFileTypes:!0});for(let r of t)yield{name:r.name,isFile:r.isFile(),isDirectory:r.isDirectory(),isSymlink:r.isSymbolicLink()}}catch(t){a(t,e)}},async copyFile(e,t){await n.copyFile(e,t)},async rename(e,t){await n.rename(e,t)},async makeTempDir(e){let t=e?.dir??w.tmpdir(),r=e?.prefix??"",d=e?.suffix??"",i=await n.mkdtemp(o.join(t,r));if(d){let c=i+d;return await n.rename(i,c),c}return i},async realPath(e){try{return await n.realpath(e)}catch(t){throw t instanceof Error&&"code"in t&&t.code==="ENOENT"?new v(e):t}},watch(e,t){let r=t?.recursive??!0,d=[],i=[],c=[],u=!1,h=l=>{u||(c.length>0?c.shift()({value:l,done:!1}):i.push(l))};for(let l of e)try{let P=O.watch(l,{recursive:r},(y,f)=>{f!==null&&h({kind:y==="rename"?"create":"modify",paths:[o.join(l,f)]})});d.push(P)}catch{}return{close:()=>{u=!0;for(let l of d)l.close();for(let l of c)l({value:void 0,done:!0});c=[]},[Symbol.asyncIterator]:()=>({next:()=>u?Promise.resolve({value:void 0,done:!0}):i.length>0?Promise.resolve({value:i.shift(),done:!1}):new Promise(l=>{c.push(l)})})}},async chmod(e,t){await n.chmod(e,t)},async*walk(e,t){let r=t?.includeDirs??!0,d=t?.includeFiles??!0,i=t?.exts,c=t?.skip,u=async function*(h){let l=await n.readdir(h,{withFileTypes:!0});for(let P of l){let y=o.join(h,P.name);if(c?.some(p=>p.test(y)))continue;let f=P.isSymbolicLink();if(P.isDirectory())r&&(yield{path:y,name:P.name,isFile:!1,isDirectory:!0,isSymlink:f}),yield*u(y);else if(P.isFile()||f){if(!d||i&&!i.some(p=>P.name.endsWith(p.startsWith(".")?p:`.${p}`)))continue;yield{path:y,name:P.name,isFile:P.isFile(),isDirectory:!1,isSymlink:f}}}};yield*u(e)}}},S=()=>({join:o.join,resolve:o.resolve,dirname:o.dirname,basename:o.basename,extname:o.extname,normalize:o.normalize,isAbsolute:o.isAbsolute,relative:o.relative,parse:o.parse,format:o.format,sep:o.sep,delimiter:o.delimiter}),g=async s=>{if(!s)return new Uint8Array(0);let a=[],e=s.getReader();try{for(;;){let{done:i,value:c}=await e.read();if(i)break;a.push(c)}}finally{e.releaseLock()}let t=a.reduce((i,c)=>i+c.length,0),r=new Uint8Array(t),d=0;for(let i of a)r.set(i,d),d+=i.length;return r},A=()=>({async spawn(s,a=[],e){let[t,r,d]=F(e),i=Bun.spawn([s,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:r,stderr:d}),[c,u,h]=await Promise.all([i.exited,g(i.stdout),g(i.stderr)]);return{success:c===0,code:c,stdout:u,stderr:h}},async exec(s,a=[],e){let t=await this.spawn(s,a,e);if(!t.success){let r=new TextDecoder().decode(t.stderr);throw new b(s,t.code,r)}return new TextDecoder().decode(t.stdout).trim()},async execJson(s,a=[],e){let t=await this.exec(s,a,e);return JSON.parse(t)},spawnChild(s,a=[],e){let[t,r,d]=F(e),i=Bun.spawn([s,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:r,stderr:d}),c=i.exited.then(u=>({success:u===0,code:u,signal:void 0}));return{pid:i.pid,stdin:i.stdin,stdout:i.stdout,stderr:i.stderr,status:c,output:async()=>{let[u,h,l]=await Promise.all([c,g(i.stdout),g(i.stderr)]);return{success:u.success,code:u.code,stdout:h,stderr:l}},kill:u=>{i.kill(u)}}}}),W=()=>({get(s){return m.env[s]},set(s,a){m.env[s]=a},delete(s){delete m.env[s]},has(s){return s in m.env},toObject(){let s={};for(let[a,e]of Object.entries(m.env))e!==void 0&&(s[a]=e);return s}}),D=()=>({exit(s){m.exit(s)},setExitCode(s){m.exitCode=s},cwd(){return m.cwd()},chdir(s){m.chdir(s)},hostname(){return w.hostname()},execPath(){return m.execPath},args:m.argv.slice(2),pid:m.pid,stdin:x.toWeb(m.stdin),stdout:k.toWeb(m.stdout),stderr:k.toWeb(m.stderr)}),C=()=>{let s=R(),a=S(),e=A(),t=W(),r=D();return{name:"bun",version:Bun.version,capabilities:E,fs:s,path:a,exec:e,env:t,process:r}};export{E as BUN_CAPABILITIES,C as createBunRuntime};
@@ -0,0 +1,9 @@
1
+ import{a as $,b as S}from"./chunk-C3PZVQ3Z.js";import{a as O}from"./chunk-RBB5ITAS.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import{a as E}from"./chunk-6U2VEZEM.js";import{a as w,b as A}from"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import{f as R}from"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import{b as u,e as h,f as y,g as v,h as x}from"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import{a as C}from"./chunk-HPPFA3XU.js";import{g as p}from"./chunk-DQAEQEXD.js";import"./chunk-WUJUQPHI.js";import"./chunk-A2GDVOQP.js";import"./chunk-GLSCZGXA.js";import"./chunk-ZE5T64HQ.js";import{v as m}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var f=w(),G={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},T=new Set(["chore","ci","test"]),N=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}(.+)$/,I=/\s{0,100}\(take\s{1,100}[IVXLCDM\d]+\)\s{0,100}\.?$/i,P=(n,t)=>{let o=n.match(N);if(o!==null)return{type:o[1].toLowerCase(),scope:o[2],message:o[3].trim(),hash:t}},b=n=>n.replace(I,"").trim(),M=n=>{let t=[];for(let o of n){let e=P(o.subject,o.hash);e!==void 0&&t.push(e)}return t},k=n=>{let t=new Set,o=[];for(let e of n){let s=b(e.message),a=s.replace(/[.\s]{1,20}$/,"").toLowerCase(),l=`${e.type}:${a}`;t.has(l)||(t.add(l),o.push({...e,message:s}))}return o},L=n=>{let t=new Map;for(let o of n){if(T.has(o.type))continue;let e=G[o.type];if(e===void 0)continue;let s=t.get(e);s!==void 0?s.push(o):t.set(e,[o])}return t},F=n=>n.scope!==void 0?`- **${n.scope}:** ${n.message}`:`- ${n.message}`,H=(n,t)=>{let o=L(t);if(o.size===0){let l=new Date().toISOString().split("T")[0];return`## ${n} - ${l}
2
+
3
+ _Maintenance release._`}let e=new Date().toISOString().split("T")[0],s=[`## ${n} - ${e}`],a=["Added","Changed","Fixed","Removed"];for(let l of a){let r=o.get(l);if(!(r===void 0||r.length===0)){s.push("",`### ${l}`,"");for(let g of r)s.push(F(g))}}return s.join(`
4
+ `)},j=(n,t,o)=>{let e=n.split(`
5
+ `);if(o!==void 0){let r=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),g=new RegExp(`^##\\s+${r}\\b`),i=e.findIndex(d=>g.test(d));if(i!==-1){let d=e.length;for(let c=i+1;c<e.length;c++)if(/^##\s+/.test(e[c])){d=c;break}return e.splice(i,d-i,t),e.join(`
6
+ `)}}let s=e.findIndex(r=>/^##\s+\[Unreleased\]/i.test(r));if(s===-1){let r=e.findIndex((i,d)=>d>0&&i.startsWith("## ")),g=r===-1?e.length:r;return e.splice(g,0,"",t,""),e.join(`
7
+ `)}let a=-1;for(let r=s+1;r<e.length;r++)if(/^##\s+/.test(e[r])){a=r;break}let l=a===-1?e.length:a;return e.splice(l,0,t,""),e.join(`
8
+ `)},_=async(n={})=>{let{root:t=".",dryRun:o=!1}=n,e=await O({root:t});if(e===void 0||e==="")throw new Error("VERSION file is missing or empty.");let s;try{s=await $()}catch{throw new Error("No git tags found. Create an initial tag first (e.g., git tag v0.0.0).")}let a=await S(s,"HEAD");if(a.length===0)throw new Error(`No commits found since ${s}. Nothing to release.`);let l=M(a),r=k(l),g=H(e,r);if(!o){let i=m.runtime.path.join(t,"CHANGELOG.md"),d;try{d=await m.runtime.fs.readTextFile(i)}catch{throw new Error(`CHANGELOG.md not found at ${i}. Create one first.`)}let c=j(d,g,e);await m.runtime.fs.writeTextFile(i,c)}return{version:e,commitCount:a.length,entryCount:r.filter(i=>!T.has(i.type)).length,content:g,dryRun:o}},D=n=>R.fromPromise(()=>_(n)),V=n=>p.ok({dryRun:n.flags["dry-run"]===!0}),z=n=>{if(p.isFail(n))return f.writeln(h("\u2717"),u(" "+(n.error instanceof Error?n.error.message:String(n.error)))),p.fail({exitCode:1});let{value:t}=n;return t.dryRun?(f.writeln(v("\u26A0"),u(" [DRY RUN] Generated changelog preview:")),f.writeln(x("\u2139"),u(`
9
+ ${t.content}`))):f.writeln(y("\u2713"),u(` Added ${t.entryCount} entries to CHANGELOG.md for v${t.version}`)),p.ok(void 0)},B=E.createTrigger({handler:D,adaptInput:V,adaptOutput:z}),ee=async n=>{let t=C(n??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),o=A("changelog-gen",t);return await B(o)};export{k as deduplicateCommits,_ as generateChangelog,D as generateChangelogHandler,H as generateChangelogSection,L as groupBySection,B as handleCli,j as insertIntoChangelog,ee as main,P as parseConventionalCommit,M as parseConventionalCommits,b as stripTakeSuffix};
@@ -0,0 +1 @@
1
+ var e=/\.(?:[cm]?[jt]sx?)$/,o=["tsx","jsx","ts","js","mts","mjs","cts","cjs"];function r(t,s){return t.replace(e,s)}var c=(t,s)=>s.some(n=>t.endsWith(`.${n}`));export{e as a,o as b,r as c,c as d};
@@ -1 +1 @@
1
- import{c as y,d as h,e as k,f as T}from"./chunk-PLRSDG6G.js";import{a as u,e as p}from"./chunk-OLM5RTFK.js";var c=class{capabilities=["text_generation","streaming","tool_calling","vision","audio","structured_output","reasoning"];provider="gemini";modelId;client;config;constructor(e,t){this.client=e,this.config=t,this.modelId=t.model}async generateText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContent({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}});return k(n,this.modelId)}catch(n){throw S(n)}}async*streamText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContentStream({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}}),r=0,i=0;for await(let l of n){let g=l?.candidates??[];if(g.length>0){let f=g[0],R=f?.content?.parts??[];for(let s of R)s.text!==void 0&&(yield{kind:"content_delta",textDelta:s.text}),s.functionCall!==void 0&&(yield{kind:"tool_call_delta",toolCall:{id:s.functionCall.name,name:s.functionCall.name,arguments:s.functionCall.args??{}}});let d=f?.finishReason;if(d!=null){let s=l?.usageMetadata;r=s?.promptTokenCount??r,i=s?.candidatesTokenCount??i;let m="end_turn";d==="MAX_TOKENS"&&(m="max_tokens"),yield{kind:"message_done",stopReason:m,usage:{inputTokens:r,outputTokens:i,totalTokens:r+i}}}}}}catch(n){yield{kind:"error",error:S(n)}}}async close(){}getRawClient(){return this.client}},v={provider:"gemini",async createModel(o){let{GoogleGenAI:e}=await import("./node-RWYXITVV.js"),t=new e({apiKey:o.apiKey});return new c(t,o)}},C=(o,e)=>{let{contents:t,systemInstruction:a}=y(e.messages),n={maxOutputTokens:e.maxTokens??o.maxTokens};e.temperature!==void 0&&(n.temperature=e.temperature),e.topP!==void 0&&(n.topP=e.topP),e.stopWords!==void 0&&(n.stopSequences=e.stopWords),e.responseFormat!==void 0&&e.responseFormat.type==="json_schema"&&(n.responseMimeType="application/json",n.responseSchema=e.responseFormat.jsonSchema),e.thinkingBudget!==void 0&&(n.thinkingConfig={thinkingBudget:e.thinkingBudget});let r={contents:t,config:n},i=e.system??a;return i!=null&&(r.systemInstruction=i),e.tools!==void 0&&(r.tools=h(e.tools)),e.safetySettings!==void 0&&(r.safetySettings=e.safetySettings),r},S=o=>{if(o instanceof u)return o;let e=o instanceof Error?o:new Error(String(o)),t=T(o);return p("gemini",t,e)};export{c as a,v as b};
1
+ import{c as y,d as h,e as k,f as T}from"./chunk-762C2IM6.js";import{a as u,e as p}from"./chunk-OLM5RTFK.js";var c=class{capabilities=["text_generation","streaming","tool_calling","vision","audio","structured_output","reasoning"];provider="gemini";modelId;client;config;constructor(e,t){this.client=e,this.config=t,this.modelId=t.model}async generateText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContent({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}});return k(n,this.modelId)}catch(n){throw S(n)}}async*streamText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContentStream({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}}),r=0,i=0;for await(let l of n){let g=l?.candidates??[];if(g.length>0){let f=g[0],R=f?.content?.parts??[];for(let s of R)s.text!==void 0&&(yield{kind:"content_delta",textDelta:s.text}),s.functionCall!==void 0&&(yield{kind:"tool_call_delta",toolCall:{id:s.functionCall.name,name:s.functionCall.name,arguments:s.functionCall.args??{}}});let d=f?.finishReason;if(d!=null){let s=l?.usageMetadata;r=s?.promptTokenCount??r,i=s?.candidatesTokenCount??i;let m="end_turn";d==="MAX_TOKENS"&&(m="max_tokens"),yield{kind:"message_done",stopReason:m,usage:{inputTokens:r,outputTokens:i,totalTokens:r+i}}}}}}catch(n){yield{kind:"error",error:S(n)}}}async close(){}getRawClient(){return this.client}},v={provider:"gemini",async createModel(o){let{GoogleGenAI:e}=await import("./node-RWYXITVV.js"),t=new e({apiKey:o.apiKey});return new c(t,o)}},C=(o,e)=>{let{contents:t,systemInstruction:a}=y(e.messages),n={maxOutputTokens:e.maxTokens??o.maxTokens};e.temperature!==void 0&&(n.temperature=e.temperature),e.topP!==void 0&&(n.topP=e.topP),e.stopWords!==void 0&&(n.stopSequences=e.stopWords),e.responseFormat!==void 0&&e.responseFormat.type==="json_schema"&&(n.responseMimeType="application/json",n.responseSchema=e.responseFormat.jsonSchema),e.thinkingBudget!==void 0&&(n.thinkingConfig={thinkingBudget:e.thinkingBudget});let r={contents:t,config:n},i=e.system??a;return i!=null&&(r.systemInstruction=i),e.tools!==void 0&&(r.tools=h(e.tools)),e.safetySettings!==void 0&&(r.safetySettings=e.safetySettings),r},S=o=>{if(o instanceof u)return o;let e=o instanceof Error?o:new Error(String(o)),t=T(o);return p("gemini",t,e)};export{c as a,v as b};
@@ -1 +1 @@
1
- import{a as s}from"./chunk-GXPLME3K.js";import{t}from"./chunk-GRTR6TNJ.js";import{b as a}from"./chunk-QXTK62N4.js";var i=[".manifest.yml",".manifest.yaml"],l=async o=>{for(let e of i){let n=t.path.join(o,e);try{let r=await t.fs.readTextFile(n);return s(r)}catch(r){if(r instanceof a)continue;throw r}}return null},m=async o=>{for(let e of i){let n=t.path.join(o,e);try{return await t.fs.stat(n),n}catch{continue}}return null};export{i as a,l as b,m as c};
1
+ import{a as s}from"./chunk-GXPLME3K.js";import{t}from"./chunk-YXSB6RET.js";import{b as a}from"./chunk-ACQUINWH.js";var i=[".manifest.yml",".manifest.yaml"],l=async o=>{for(let e of i){let n=t.path.join(o,e);try{let r=await t.fs.readTextFile(n);return s(r)}catch(r){if(r instanceof a)continue;throw r}}return null},m=async o=>{for(let e of i){let n=t.path.join(o,e);try{return await t.fs.stat(n),n}catch{continue}}return null};export{i as a,l as b,m as c};
@@ -1,3 +1,3 @@
1
- import{a as i}from"./chunk-OLM5RTFK.js";import{a as d,b as c}from"./chunk-DOV5776P.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(`
1
+ import{a as i}from"./chunk-OLM5RTFK.js";import{a as d,b as c}from"./chunk-BCHXUKWW.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
2
  `);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(`
3
3
  `)};export{y as a,f as b,m as c,h as d,w as e,x as f,b as g};