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.
- package/chunks/add-ORJYWG26.js +7 -0
- package/chunks/{anthropic-GBDSASP5.js → anthropic-SL274RBQ.js} +1 -1
- package/chunks/approve-5NJ4JWD3.js +1 -0
- package/chunks/ask-TFJCKH5G.js +2 -0
- package/chunks/block-ADHHHUFZ.js +1 -0
- package/chunks/{browser-6UKLTPJO.js → browser-XCMD2IZQ.js} +1 -1
- package/chunks/{build-VKOO2WEA.js → build-2W7YVR7J.js} +2 -2
- package/chunks/{bun-N3TIWBPP.js → bun-YFFBDKUJ.js} +1 -1
- package/chunks/changelog-gen-QDUA5G5K.js +9 -0
- package/chunks/chunk-2J2PXBOC.js +1 -0
- package/chunks/{chunk-NIX3WX3O.js → chunk-3EFU5R2M.js} +1 -1
- package/chunks/{chunk-7GS5KPVF.js → chunk-3I4JG3PJ.js} +1 -1
- package/chunks/{chunk-7QNRH7OR.js → chunk-3K42AALS.js} +1 -1
- package/chunks/{chunk-TMFPDVYN.js → chunk-3OEM65F2.js} +17 -17
- package/chunks/{chunk-RGUC6KAZ.js → chunk-4H4O3TGK.js} +1 -1
- package/chunks/{chunk-V5HTJPFW.js → chunk-4HAIX3WN.js} +3 -3
- package/chunks/chunk-4VL2RZIN.js +1 -0
- package/chunks/chunk-5AK4OGCO.js +1 -0
- package/chunks/chunk-5MN3MWQN.js +1 -0
- package/chunks/chunk-5RK3346P.js +4 -0
- package/chunks/chunk-6HYGGBEQ.js +1 -0
- package/chunks/{chunk-PLRSDG6G.js → chunk-762C2IM6.js} +1 -1
- package/chunks/{chunk-NZFUFGOC.js → chunk-AAV7D6DF.js} +1 -1
- package/chunks/{chunk-DLVQNMNV.js → chunk-AKJB4CER.js} +1 -1
- package/chunks/{chunk-NSZ4HGDI.js → chunk-ANY26ROY.js} +1 -1
- package/chunks/{chunk-IAWIWTDY.js → chunk-AYSPDG4K.js} +1 -1
- package/chunks/{chunk-DOV5776P.js → chunk-BCHXUKWW.js} +2 -2
- package/chunks/{chunk-3DMTTLUJ.js → chunk-BDTJR6UH.js} +1 -1
- package/chunks/{chunk-BP2MZX2P.js → chunk-C3PZVQ3Z.js} +1 -1
- package/chunks/{chunk-M5TBBQQC.js → chunk-CKD2KOHA.js} +3 -3
- package/chunks/chunk-CPRLAMEG.js +1 -0
- package/chunks/chunk-DWYVBWBP.js +91 -0
- package/chunks/{chunk-O2MNBI7V.js → chunk-EBYJBBYV.js} +1 -1
- package/chunks/{chunk-PBSR4XR2.js → chunk-ETMOOGY2.js} +1 -1
- package/chunks/chunk-G34MS4XJ.js +1 -0
- package/chunks/chunk-GVSBZ6JV.js +1 -0
- package/chunks/{chunk-C3OSYHJY.js → chunk-H4OFOQQ2.js} +1 -1
- package/chunks/{chunk-XWYLEYLY.js → chunk-HTBLWLKV.js} +1 -1
- package/chunks/chunk-JOXKA7TJ.js +7 -0
- package/chunks/{chunk-JQHMDTPL.js → chunk-KAEAT6A4.js} +1 -1
- package/chunks/chunk-LOFP256P.js +1 -0
- package/chunks/{chunk-2R4MK2KR.js → chunk-MYSTBVWT.js} +1 -1
- package/chunks/chunk-NGZZAQ7G.js +1 -0
- package/chunks/chunk-NLNSK3KE.js +1 -0
- package/chunks/chunk-NT2MQK7O.js +6 -0
- package/chunks/{chunk-SJQWPBMJ.js → chunk-NTPOK5H6.js} +1 -1
- package/chunks/{chunk-DZD6MI45.js → chunk-PO3SXFUE.js} +1 -1
- package/chunks/chunk-Q54LOR4S.js +2 -0
- package/chunks/{chunk-5C7ZQN6X.js → chunk-QIODVVTY.js} +1 -1
- package/chunks/{chunk-ZY72QNKZ.js → chunk-QIYWONJL.js} +1 -1
- package/chunks/chunk-QZY4BKI7.js +1 -0
- package/chunks/chunk-RBB5ITAS.js +2 -0
- package/chunks/chunk-RYLOB2JU.js +1 -0
- package/chunks/{chunk-VFMYWG2I.js → chunk-SBOTNOWZ.js} +1 -1
- package/chunks/{chunk-Z7742D7Q.js → chunk-SG4G3OOO.js} +1 -1
- package/chunks/{chunk-FGDJVQG3.js → chunk-TTYO2XJO.js} +1 -1
- package/chunks/{chunk-EW5NCPPE.js → chunk-TUTRX7VR.js} +3 -3
- package/chunks/{chunk-UJX2S56V.js → chunk-TXL6YOFL.js} +1 -1
- package/chunks/{chunk-4Q3SEHPE.js → chunk-U47ABJCC.js} +1 -1
- package/chunks/chunk-U65FD6J3.js +1 -0
- package/chunks/{chunk-7M3ONEMO.js → chunk-UKYKMDYU.js} +1 -1
- package/chunks/{chunk-DRQWYJMH.js → chunk-UNL4H5EY.js} +1 -1
- package/chunks/{chunk-ATLUGTI7.js → chunk-V2N5L24J.js} +2 -2
- package/chunks/chunk-VVHXAOEH.js +1 -0
- package/chunks/{chunk-HPVL4BVQ.js → chunk-W3REWI3H.js} +2 -2
- package/chunks/{chunk-MQH4XBFN.js → chunk-XMCQMTAA.js} +1 -1
- package/chunks/chunk-YMY2URYM.js +1 -0
- package/chunks/{chunk-XJ3VEVYL.js → chunk-YQU3TEIG.js} +1 -1
- package/chunks/chunk-YWCEHTZB.js +2 -0
- package/chunks/chunk-YXSB6RET.js +1 -0
- package/chunks/chunk-Z4WPWVC7.js +10 -0
- package/chunks/chunk-ZED5RIVL.js +1 -0
- package/chunks/chunk-ZH37DSUQ.js +1 -0
- package/chunks/chunk-ZO7RUTSQ.js +60 -0
- package/chunks/claude-code-K37KYX7W.js +1 -0
- package/chunks/clone-PAQMCIA3.js +5 -0
- package/chunks/{commitmsg-SQRQONCS.js → commitmsg-ZGOEO5YG.js} +2 -2
- package/chunks/{deno-PZXN5K3J.js → deno-MMJLKXAE.js} +1 -1
- package/chunks/{dev-FLO2KEPZ.js → dev-JHAHGTZP.js} +2 -2
- package/chunks/file-tools-shared-77P7MI54.js +1 -0
- package/chunks/gemini-ARTUPDPZ.js +1 -0
- package/chunks/gh-SXEDNWHD.js +4 -0
- package/chunks/{gh-contributors-5SHGJHAQ.js → gh-contributors-G3QZZAUO.js} +3 -3
- package/chunks/init-3GXDO32O.js +1 -0
- package/chunks/init-IPZHDMAH.js +12 -0
- package/chunks/install-VY2L6NDB.js +2 -0
- package/chunks/kiro-XQDHURLU.js +1 -0
- package/chunks/{list-MN7OUE52.js → list-2RZIQZGH.js} +1 -1
- package/chunks/{list-B7L4FZKG.js → list-DSVIPH45.js} +1 -1
- package/chunks/{list-UZKWSA4S.js → list-V2HZCPDN.js} +1 -1
- package/chunks/load-config-KG4RTCR2.js +1 -0
- package/chunks/{main-WVXCURBF.js → main-FQFNY7SM.js} +2 -2
- package/chunks/manifest-5CYL3HR3.js +1 -0
- package/chunks/mod-5ACKR2OE.js +1 -0
- package/chunks/{mod-PEAFMI6F.js → mod-CUIGNRIK.js} +1 -1
- package/chunks/mod-NSY6WUYH.js +27 -0
- package/chunks/mod-QJMMYECF.js +10 -0
- package/chunks/{mod-CI56JMO4.js → mod-TLLZ3NAM.js} +2 -2
- package/chunks/mod-TSU5UWXA.js +1 -0
- package/chunks/{mod-JTBNNSZZ.js → mod-U6LEXPVR.js} +1 -1
- package/chunks/{mod-MKMQWZ6G.js → mod-VZPKQ7DG.js} +1 -1
- package/chunks/mod-WX4P6LGJ.js +1 -0
- package/chunks/mod-WYRORC72.js +1 -0
- package/chunks/new-EAETGSIR.js +4 -0
- package/chunks/next-F2BIIAZC.js +3 -0
- package/chunks/{node-VPHAK3FD.js → node-SMAAGOR3.js} +1 -1
- package/chunks/ollama-6JZ2IKR7.js +1 -0
- package/chunks/opencode-CHIAJALZ.js +1 -0
- package/chunks/recipe-applier-R4YJPGQR.js +1 -0
- package/chunks/registry-fetcher-J6X32PGP.js +1 -0
- package/chunks/{release-YJOLKWDT.js → release-3BKLVESS.js} +2 -2
- package/chunks/release-notes-734LKEJB.js +3 -0
- package/chunks/release-tag-YX727TXO.js +1 -0
- package/chunks/reset-PAPDZIDC.js +1 -0
- package/chunks/rule-4GNOR3GE.js +2 -0
- package/chunks/{run-7JXDS75G.js → run-ES4BLQQX.js} +1 -1
- package/chunks/{scripts-RSK5XDRW.js → scripts-COIXD5AD.js} +1 -1
- package/chunks/{serve-U6IXMGXQ.js → serve-B4V2BCWM.js} +2 -2
- package/chunks/{server-PXE4DB3V.js → server-RYWDAYED.js} +1 -1
- package/chunks/spec-SNAUMQSR.js +1 -0
- package/chunks/status-CY5IKIYS.js +1 -0
- package/chunks/sync-OAPV43JS.js +1 -0
- package/chunks/system-5A6DQLM5.js +1 -0
- package/chunks/system-JWO27FMA.js +1 -0
- package/chunks/update-O75M4SDJ.js +5 -0
- package/chunks/validate-bom-6G7EYFOP.js +1 -0
- package/chunks/validate-case-conflict-OWHWRTSQ.js +1 -0
- package/chunks/validate-circular-deps-TCYSZKME.js +1 -0
- package/chunks/validate-commit-msg-UPJJ7E4M.js +1 -0
- package/chunks/validate-docs-ZTCE5XLF.js +1 -0
- package/chunks/validate-eof-6RMNMAWI.js +1 -0
- package/chunks/validate-export-names-5ZVQ4PGM.js +1 -0
- package/chunks/validate-filenames-5YB27RN4.js +1 -0
- package/chunks/validate-json-6CLTN4AN.js +1 -0
- package/chunks/validate-large-files-KEMHYWKH.js +1 -0
- package/chunks/validate-licenses-WIVY6G5Z.js +1 -0
- package/chunks/validate-line-endings-KNFYAVBG.js +1 -0
- package/chunks/validate-merge-conflict-PYKGIFY5.js +1 -0
- package/chunks/validate-mod-exports-X5UZPD7J.js +1 -0
- package/chunks/validate-package-configs-SYKEIB53.js +1 -0
- package/chunks/validate-secrets-BWDFWN64.js +1 -0
- package/chunks/validate-shebangs-MP6VTLWO.js +1 -0
- package/chunks/validate-submodules-RQXISWKG.js +1 -0
- package/chunks/validate-symlinks-IPRYMDZD.js +1 -0
- package/chunks/validate-toml-KJZK7QVM.js +1 -0
- package/chunks/validate-trailing-whitespace-RO42VWQG.js +1 -0
- package/chunks/validate-yaml-H7G726ZM.js +1 -0
- package/chunks/versions-KW5UTMNV.js +1 -0
- package/chunks/vertexai-TPGIAJNA.js +1 -0
- package/chunks/workerd-LKKH32SO.js +1 -0
- package/eser.js +1 -1
- package/package.json +1 -1
- package/chunks/add-4LRHVBEC.js +0 -7
- package/chunks/approve-364KOMLB.js +0 -1
- package/chunks/ask-752YJEHO.js +0 -2
- package/chunks/block-JVJQU723.js +0 -1
- package/chunks/changelog-gen-ZCNNOY7G.js +0 -7
- package/chunks/chunk-2TRQKCFC.js +0 -1
- package/chunks/chunk-3TYZYY77.js +0 -1
- package/chunks/chunk-4HMEWMWL.js +0 -1
- package/chunks/chunk-5O7V5P53.js +0 -1
- package/chunks/chunk-5UGVJVIQ.js +0 -1
- package/chunks/chunk-6YRN6OJC.js +0 -2
- package/chunks/chunk-BKVQBSFV.js +0 -6
- package/chunks/chunk-CDLEA2PD.js +0 -1
- package/chunks/chunk-GRTR6TNJ.js +0 -1
- package/chunks/chunk-H2JGLZIR.js +0 -1
- package/chunks/chunk-HVMMNGY5.js +0 -7
- package/chunks/chunk-L2BYHWDC.js +0 -1
- package/chunks/chunk-LRL56YFE.js +0 -1
- package/chunks/chunk-LU3DHXOC.js +0 -2
- package/chunks/chunk-NADES3GN.js +0 -1
- package/chunks/chunk-QIUIPRJP.js +0 -1
- package/chunks/chunk-R6F4EK2B.js +0 -4
- package/chunks/chunk-RUZDG5PT.js +0 -60
- package/chunks/chunk-SCCNNGD4.js +0 -2
- package/chunks/chunk-SCULX2ND.js +0 -1
- package/chunks/chunk-VGFZXQMW.js +0 -1
- package/chunks/chunk-WE7PSSAQ.js +0 -91
- package/chunks/chunk-X4ZCYXOT.js +0 -1
- package/chunks/chunk-XMTGT2NJ.js +0 -10
- package/chunks/chunk-Y6DLCHJN.js +0 -1
- package/chunks/chunk-YUXQ7JNG.js +0 -1
- package/chunks/chunk-ZTLJ775S.js +0 -1
- package/chunks/claude-code-PWTLM554.js +0 -1
- package/chunks/clone-DASXIL35.js +0 -5
- package/chunks/file-tools-shared-ESMPLZVJ.js +0 -1
- package/chunks/gemini-I6F5N7PS.js +0 -1
- package/chunks/gh-Y4BXDXR5.js +0 -4
- package/chunks/init-GXBXQGGV.js +0 -1
- package/chunks/init-UFJL24PW.js +0 -12
- package/chunks/install-Q2KQZM62.js +0 -2
- package/chunks/kiro-NMTIFMT4.js +0 -1
- package/chunks/load-config-TSM3AAQ6.js +0 -1
- package/chunks/manifest-VJQJG2LS.js +0 -1
- package/chunks/mod-3PJAIZ2O.js +0 -1
- package/chunks/mod-FKPTF5D5.js +0 -1
- package/chunks/mod-GZ6BSK2P.js +0 -1
- package/chunks/mod-QODEWK3G.js +0 -9
- package/chunks/mod-S33TIBIC.js +0 -1
- package/chunks/mod-STKIZYZ3.js +0 -27
- package/chunks/new-W5YBJFGW.js +0 -4
- package/chunks/next-773GX25N.js +0 -3
- package/chunks/ollama-DQ5VM4HI.js +0 -1
- package/chunks/opencode-IZMQZ4ZK.js +0 -1
- package/chunks/recipe-applier-F2REROYS.js +0 -1
- package/chunks/registry-fetcher-ZJ76EHBA.js +0 -1
- package/chunks/release-notes-Z53AFCII.js +0 -3
- package/chunks/release-tag-QRIKYVQB.js +0 -1
- package/chunks/reset-5LQGIOGB.js +0 -1
- package/chunks/rule-K42YEAMO.js +0 -2
- package/chunks/spec-5446CSQC.js +0 -1
- package/chunks/status-HK3P6J6G.js +0 -1
- package/chunks/sync-4FSA5257.js +0 -1
- package/chunks/system-3MH6OCP6.js +0 -1
- package/chunks/system-DTVAUBIX.js +0 -1
- package/chunks/update-QD5S73WT.js +0 -5
- package/chunks/validate-bom-IVALGNGE.js +0 -1
- package/chunks/validate-case-conflict-LKECKLD5.js +0 -1
- package/chunks/validate-circular-deps-PXFPCBXA.js +0 -1
- package/chunks/validate-commit-msg-77CBKGOF.js +0 -1
- package/chunks/validate-docs-3UGB7LN7.js +0 -1
- package/chunks/validate-eof-ZSIYNHO5.js +0 -1
- package/chunks/validate-export-names-BPSCBX7B.js +0 -1
- package/chunks/validate-filenames-G4XJ2LHN.js +0 -1
- package/chunks/validate-json-YRCFW2O7.js +0 -1
- package/chunks/validate-large-files-MWWSFDOE.js +0 -1
- package/chunks/validate-licenses-Q2YA2MND.js +0 -1
- package/chunks/validate-line-endings-C6NHWHGI.js +0 -1
- package/chunks/validate-merge-conflict-KTBL4FUY.js +0 -1
- package/chunks/validate-mod-exports-LQIIQRIS.js +0 -1
- package/chunks/validate-package-configs-36PYXIWC.js +0 -1
- package/chunks/validate-secrets-UFDJ7ITY.js +0 -1
- package/chunks/validate-shebangs-3UO4MDMZ.js +0 -1
- package/chunks/validate-submodules-YA654D3B.js +0 -1
- package/chunks/validate-symlinks-R2PNE5TG.js +0 -1
- package/chunks/validate-toml-7H2N5AKI.js +0 -1
- package/chunks/validate-trailing-whitespace-HXO7M3ED.js +0 -1
- package/chunks/validate-yaml-ZJJCQVBB.js +0 -1
- package/chunks/versions-CWT5S7G4.js +0 -1
- package/chunks/vertexai-2SMP54AR.js +0 -1
- package/chunks/workerd-NXKZMQPV.js +0 -1
- /package/chunks/{chunk-QXTK62N4.js → chunk-ACQUINWH.js} +0 -0
- /package/chunks/{chunk-VTQ72OK7.js → chunk-FDZP7B5Y.js} +0 -0
- /package/chunks/{chunk-4OIKB2P5.js → chunk-T7K64JD5.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as s,c as l,d as o,e as r,f as a}from"./chunk-ZO7RUTSQ.js";import"./chunk-LOFP256P.js";import"./chunk-TTYO2XJO.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-EBYJBBYV.js";import"./chunk-ZOZYBQX2.js";import{b as n}from"./chunk-DWYVBWBP.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var i=new n("system").description("Commands related with this CLI").command(new n("install").description("Install eser CLI globally").run(e)).command(new n("uninstall").description("Uninstall eser CLI globally").run(s)).command(new n("update").description("Update eser CLI to the latest version").run(l)).command(new n("completions").description("Generate shell completion scripts").flag({name:"shell",type:"string",description:"Shell type: bash, zsh, or fish"}).run(o)).command(new n("version").description("Show version and check for updates").flag({name:"bare",type:"boolean",description:"Print version number only"}).run(r)).command(new n("doctor").description("Run diagnostic checks").run(a));export{i as systemCommand};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{e as U}from"./chunk-Q54LOR4S.js";import{a as R,d as w}from"./chunk-NUSNMQPL.js";import{f as k}from"./chunk-5AK4OGCO.js";import{f as y,h as g,k as f}from"./chunk-TTYO2XJO.js";import{f as m,j as l}from"./chunk-PLJNPQFC.js";import{a as u}from"./chunk-HPPFA3XU.js";import{a as o,b as n,c}from"./chunk-DQAEQEXD.js";import{t as d}from"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";var b=r=>R(async s=>{try{let t=await k(r.registrySource,{verbose:r.verbose,local:r.local}),e=t.recipes.find(p=>p.name===r.recipeName);if(e===void 0)return n({_tag:"RecipeNotFound",message:`Recipe '${r.recipeName}' not found. Run \`eser kit list\` to see available recipes.`});let a=await U(e,{cwd:r.cwd,registryUrl:t.registryUrl,force:!0,dryRun:r.dryRun,verbose:r.verbose}),i=r.dryRun?"Would update":"Updated";s.out.writeln(m(`\u2713 ${i} ${a.written.length} file(s) from ${e.name}`));for(let p of a.written)s.out.writeln(` \u2192 ${p}`);return o({recipe:e,result:a})}catch(t){let e=t instanceof Error?t.message:String(t);return n({_tag:"ApplyError",message:e})}});var S=async r=>{let s=u(r??[],{string:["registry"],boolean:["dry-run","verbose","local"]}),t=s._[0],e=y({renderer:f.ansi(),sink:g.stdout()});if(t===void 0)return e.writeln("Usage: eser kit update <recipe> [--registry <url>] [--dry-run]"),e.writeln(),e.writeln("Re-fetches and re-applies a recipe, overwriting existing files."),await e.close(),o(void 0);let a=s["dry-run"]===!0;a?e.writeln(l(`
|
|
2
|
+
Dry run: updating ${t}
|
|
3
|
+
`)):e.writeln(l(`
|
|
4
|
+
Updating ${t}...
|
|
5
|
+
`));let i=await w(b({recipeName:t,cwd:d.process.cwd(),registrySource:s.registry,local:s.local===!0,dryRun:a,verbose:s.verbose===!0}),{out:e});return await e.close(),c(i)?o(void 0):n({exitCode:1})};export{S as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-YMY2URYM.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-ANY26ROY.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-HTBLWLKV.js";import"./chunk-AKJB4CER.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-PLJNPQFC.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as checkCircularDeps,b as checkCircularDepsHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-TUTRX7VR.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{b as main,a as validateCommitMsg};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-4HAIX3WN.js";import"./chunk-AKJB4CER.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as checkDocs,b as checkDocsHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-PO3SXFUE.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-GVSBZ6JV.js";import"./chunk-AKJB4CER.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as checkExportNames,b as checkExportNamesHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-XMCQMTAA.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-U65FD6J3.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-34GCQZ3Z.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-G34MS4XJ.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-JOXKA7TJ.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-YQU3TEIG.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-H4OFOQQ2.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-AYSPDG4K.js";import"./chunk-AKJB4CER.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as checkModExports,b as checkModExportsHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-NTPOK5H6.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-TTYO2XJO.js";import"./chunk-PLJNPQFC.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as checkPackageConfigs,b as checkPackageConfigsHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-W3REWI3H.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-NGZZAQ7G.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-VVHXAOEH.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-4VL2RZIN.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-6HYGGBEQ.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-3APERFKY.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-YWCEHTZB.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-QZY4BKI7.js";import"./chunk-SBOTNOWZ.js";import"./chunk-CPRLAMEG.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-BCHXUKWW.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f}from"./chunk-RBB5ITAS.js";import"./chunk-V2N5L24J.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import"./chunk-6U2VEZEM.js";import"./chunk-KAEAT6A4.js";import"./chunk-ZH37DSUQ.js";import"./chunk-LOFP256P.js";import"./chunk-ZF2XYULB.js";import"./chunk-4S7QYPS6.js";import"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-2J2PXBOC.js";import"./chunk-TTYO2XJO.js";import"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-WUJUQPHI.js";import"./chunk-A2GDVOQP.js";import"./chunk-GLSCZGXA.js";import"./chunk-ZE5T64HQ.js";import"./chunk-YXSB6RET.js";import"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{e as handleCli,f as main,a as readVersionFile,b as showVersions,c as versions,d as versionsHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-U47ABJCC.js";import"./chunk-762C2IM6.js";import"./chunk-5MN3MWQN.js";import"./chunk-OLM5RTFK.js";import"./chunk-DXB73IDG.js";export{a as VertexAIModel,b as vertexaiFactory};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-SG4G3OOO.js";import"./chunk-FDZP7B5Y.js";import"./chunk-ACQUINWH.js";import"./chunk-DXB73IDG.js";export{a as WORKERD_CAPABILITIES,c as clearEnv,d as createWorkerdRuntime,b as populateEnvFromContext};
|
package/eser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as u}from"./chunks/chunk-O2MNBI7V.js";import{a as m}from"./chunks/chunk-5O7V5P53.js";import"./chunks/chunk-ZOZYBQX2.js";import{a as o}from"./chunks/chunk-DRQWYJMH.js";import{b as a}from"./chunks/chunk-WE7PSSAQ.js";import"./chunks/chunk-HPPFA3XU.js";import{b as d,e as c}from"./chunks/chunk-DQAEQEXD.js";import{t as p}from"./chunks/chunk-GRTR6TNJ.js";import"./chunks/chunk-Z7742D7Q.js";import"./chunks/chunk-VTQ72OK7.js";import"./chunks/chunk-QXTK62N4.js";import"./chunks/chunk-DXB73IDG.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-4LRHVBEC.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-MN7OUE52.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-W5YBJFGW.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-DASXIL35.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-QD5S73WT.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-STKIZYZ3.js")},install:{description:"Install git hooks from .manifest.yml",category:"Setup",load:()=>import("./chunks/install-Q2KQZM62.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-SQRQONCS.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-Y4BXDXR5.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-CWT5S7G4.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-ZCNNOY7G.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-YJOLKWDT.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-ZSIYNHO5.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-HXO7M3ED.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-IVALGNGE.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-C6NHWHGI.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-MWWSFDOE.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-LKECKLD5.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-KTBL4FUY.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-YRCFW2O7.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-7H2N5AKI.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-ZJJCQVBB.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-R2PNE5TG.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-3UO4MDMZ.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-UFDJ7ITY.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-G4XJ2LHN.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-YA654D3B.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-77CBKGOF.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-3UGB7LN7.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-PXFPCBXA.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-BPSCBX7B.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-Q2YA2MND.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-LQIIQRIS.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-36PYXIWC.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-7JXDS75G.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-B7L4FZKG.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-GXBXQGGV.js")},status:{description:"Show current state",load:()=>import("./chunks/status-HK3P6J6G.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-5446CSQC.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-773GX25N.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-364KOMLB.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-JVJQU723.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-5LQGIOGB.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-4FSA5257.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-K42YEAMO.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-UFJL24PW.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-FLO2KEPZ.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-VKOO2WEA.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-U6IXMGXQ.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-QODEWK3G.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-DTVAUBIX.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-VJQJG2LS.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let b=s[e],{runScript:v}=await import("./chunks/scripts-RSK5XDRW.js");return await v(e,b,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
|
|
2
|
+
import{a as u}from"./chunks/chunk-EBYJBBYV.js";import{a as m}from"./chunks/chunk-RYLOB2JU.js";import"./chunks/chunk-ZOZYBQX2.js";import{a as o}from"./chunks/chunk-UNL4H5EY.js";import{b as a}from"./chunks/chunk-DWYVBWBP.js";import"./chunks/chunk-HPPFA3XU.js";import{b as d,e as c}from"./chunks/chunk-DQAEQEXD.js";import{t as p}from"./chunks/chunk-YXSB6RET.js";import"./chunks/chunk-SG4G3OOO.js";import"./chunks/chunk-FDZP7B5Y.js";import"./chunks/chunk-ACQUINWH.js";import"./chunks/chunk-DXB73IDG.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-ORJYWG26.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-2RZIQZGH.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-EAETGSIR.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-PAQMCIA3.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-O75M4SDJ.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-NSY6WUYH.js")},install:{description:"Install git hooks from .manifest.yml",category:"Setup",load:()=>import("./chunks/install-VY2L6NDB.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-VY2L6NDB.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-VY2L6NDB.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-ZGOEO5YG.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-SXEDNWHD.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-KW5UTMNV.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-QDUA5G5K.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-3BKLVESS.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-3BKLVESS.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-3BKLVESS.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-6RMNMAWI.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-RO42VWQG.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-6G7EYFOP.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-KNFYAVBG.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-KEMHYWKH.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-OWHWRTSQ.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-PYKGIFY5.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-6CLTN4AN.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-KJZK7QVM.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-H7G726ZM.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-IPRYMDZD.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-MP6VTLWO.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-BWDFWN64.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-5YB27RN4.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-RQXISWKG.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-UPJJ7E4M.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-ZTCE5XLF.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-TCYSZKME.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-5ZVQ4PGM.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-WIVY6G5Z.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-X5UZPD7J.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-SYKEIB53.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-ES4BLQQX.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-DSVIPH45.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-3GXDO32O.js")},status:{description:"Show current state",load:()=>import("./chunks/status-CY5IKIYS.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-SNAUMQSR.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-F2BIIAZC.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-5NJ4JWD3.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-ADHHHUFZ.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-PAPDZIDC.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-OAPV43JS.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-4GNOR3GE.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-IPZHDMAH.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-JHAHGTZP.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-2W7YVR7J.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-B4V2BCWM.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-QJMMYECF.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-JWO27FMA.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-WX4P6LGJ.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-WX4P6LGJ.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-WX4P6LGJ.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-WX4P6LGJ.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-5CYL3HR3.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let b=s[e],{runScript:v}=await import("./chunks/scripts-COIXD5AD.js");return await v(e,b,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
|
package/package.json
CHANGED
package/chunks/add-4LRHVBEC.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as C,b as N,c as x}from"./chunk-3TYZYY77.js";import{f as S}from"./chunk-6YRN6OJC.js";import{a as I,d as E}from"./chunk-NUSNMQPL.js";import{f as $}from"./chunk-SCULX2ND.js";import{f as A,h as b,k as h}from"./chunk-FGDJVQG3.js";import{d as o,e as v,f as g,g as k,j as y}from"./chunk-PLJNPQFC.js";import{a as w}from"./chunk-HPPFA3XU.js";import{a as d,b as c,c as R}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 D=r=>I(async e=>{try{let t=await $(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 C(r.cwd),i=N(s,a);for(let n of i.warnings)e.out.writeln(k(`Warning: ${n}`));let l=await S(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}),f=0,p=0;for(let n of l.recipes)f+=n.result.written.length,p+=n.result.skipped.length;e.out.writeln(g(`\u2713 Added ${f} 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 m=l.recipes.find(n=>n.name===r.recipeName);if(m!==void 0)for(let n of m.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 x(i.instructions,r.cwd,{verbose:r.verbose});for(let n of u)n.success?e.out.writeln(g(` \u2713 ${n.command}`)):e.out.writeln(v(` \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 P=r=>{let e={};for(let t of r){let[s,...a]=String(t).split("=");s!==void 0&&s!==""&&(e[s]=a.join("="))}return e},q=async r=>{let e=w(r??[],{string:["registry","var"],boolean:["dry-run","force","skip-existing","verbose","local","no-install"],collect:["var"]}),t=e._[0],s=A({renderer:h.ansi(),sink:b.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 E(D({recipeName:t,cwd:Deno.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:P(e.var)}),{out:s});return await s.close(),R(i)?d(void 0):c({exitCode:1})};export{q as main};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as w}from"./chunk-LXVBR775.js";import{d,e as h}from"./chunk-BKVQBSFV.js";import{f as l,h as m,k as c}from"./chunk-FGDJVQG3.js";import{c as r,d as n,e as o,f as i,j as p}from"./chunk-PLJNPQFC.js";import{a}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 R=async f=>{let e=l({renderer:c.ansi(),sink:m.stdout()}),t=Deno.cwd(),s=await d(t);if(s.phase==="SPEC_DRAFT"){let u=w(s);await h(t,u),e.writeln(i("\u2714")," Spec approved. Phase: ",p("BUILDING")),e.writeln("Run ",r("noskills next")," to start building.")}else s.phase==="DISCOVERY"&&s.discovery.completed?(e.writeln(n("Discovery complete. Spec draft already generated.")),e.writeln("Review the spec and run ",r("noskills approve")," again when in SPEC_DRAFT phase.")):e.writeln(o(`Cannot approve in phase: ${s.phase}`));return await e.close(),a(void 0)};export{R as main};
|
package/chunks/ask-752YJEHO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as F,b as D}from"./chunk-6FMPNAZ3.js";import{a as $}from"./chunk-LRL56YFE.js";import{d as v,f as y,g as P,h as S,k as T}from"./chunk-FGDJVQG3.js";import{d as O,e as L,g as _}from"./chunk-OBIEQJDE.js";import{a as R}from"./chunk-USCAYIWL.js";import"./chunk-PLJNPQFC.js";import"./chunk-OLM5RTFK.js";import{b as k}from"./chunk-DOV5776P.js";import{a as I,b as u}from"./chunk-DQAEQEXD.js";import{t as h,u as x}from"./chunk-GRTR6TNJ.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var A=(e,t,a)=>{let i=e.streamText(t,a);return{name:`ai-text/${e.provider}/${e.modelId}`,readable:new ReadableStream({async start(n){try{for await(let s of i)s.kind==="content_delta"&&n.enqueue(v(s.textDelta));n.close()}catch(s){n.error(s)}}})}};var q={cc:"claude-code",ol:"ollama",oc:"opencode",oai:"openai",ant:"anthropic",gem:"gemini",vtx:"vertexai"},H={"claude-code":"Claude Code",ollama:"Ollama",opencode:"OpenCode",kiro:"Kiro",anthropic:"Anthropic API",openai:"OpenAI API",gemini:"Gemini API",vertexai:"Vertex AI"},K=e=>q[e]??e,M=async e=>{if(e){let{current:t}=x,a=t.process.stderr.getWriter(),i=y({renderer:T.ansi(),sink:S.writable(new WritableStream({async write(n){await a.write(new TextEncoder().encode(String(n.data)))},close(){a.releaseLock()}}))});await O.configure({sinks:{stderr:_.getOutputSink(i)},loggers:[{category:["ai"],lowestLevel:R.Debug,sinks:["stderr"]}]})}return L.getLogger(["ai","ask"])},U=async e=>{await e.info("Auto-detecting AI provider...");try{if(await k`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 k`which opencode`.noThrow().code()===0)return await e.info("OpenCode detected."),"opencode"}catch{}let{current:t}=x;if(t.capabilities.env){if(t.env.has("ANTHROPIC_API_KEY"))return await e.info("Anthropic API key detected."),"anthropic";if(t.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.")},j=async e=>{switch(e){case"claude-code":return(await import("./claude-code-PWTLM554.js")).claudeCodeFactory;case"ollama":return(await import("./ollama-DQ5VM4HI.js")).ollamaFactory;case"opencode":return(await import("./opencode-IZMQZ4ZK.js")).openCodeFactory;case"kiro":return(await import("./kiro-NMTIFMT4.js")).kiroFactory;case"anthropic":return(await import("./anthropic-GBDSASP5.js")).anthropicFactory;case"openai":return(await import("./openai-XMIVMDDL.js")).openaiFactory;case"gemini":return(await import("./gemini-I6F5N7PS.js")).geminiFactory;case"vertexai":return(await import("./vertexai-2SMP54AR.js")).vertexaiFactory;default:throw new Error(`Unknown provider: ${e}`)}},le=async e=>{let t=e??[],a=null,i=null,n=null,s=!1,g=!1,E=[],o=0;for(;o<t.length;){let r=t[o];if(r==="-p"||r==="--provider"){a=t[o+1]??null,o+=2;continue}if(r==="-m"||r==="--model"){i=t[o+1]??null,o+=2;continue}if(r==="--max-tokens"){let c=t[o+1];c!==void 0&&(n=Number(c)),o+=2;continue}if(r==="--json"){s=!0,o+=1;continue}if(r==="-v"||r==="--verbose"){g=!0,o+=1;continue}r.startsWith("-")||E.push(r),o+=1}let p=E.join(" ");if(p.length===0)return u({message:'Usage: ai ask "your prompt" [-p provider] [-m model] [--verbose]',exitCode:1});let m=await M(g);try{let r=a!==null?K(a):await U(m),c=H[r]??r,b=i??J(r);await m.info(`Using ${c} (${b})`);let W=await j(r),f=new F({factories:[W]});await f.addModel("default",{provider:r,model:b});let w=f.getDefault();if(w===null)return u({message:"Failed to initialize model",exitCode:1});let C=[$("user",p)];if(await m.info(`Sending prompt (${p.length} chars)...`),s){let l=await w.generateText({messages:C,maxTokens:n??void 0});await m.info(`Response received (${D(l).length} chars)`);let d=y({sink:S.stdout()});d.writeln(JSON.stringify(l,null,2)),await d.close()}else{let l=A(w,{messages:C,maxTokens:n??void 0});await P().from(l).to(z()).run();let d=h.process.stdout.getWriter();await d.write(new TextEncoder().encode(`
|
|
2
|
-
`)),d.releaseLock()}return await f.close(),I(void 0)}catch(r){let c=r instanceof Error?r.message:String(r);return await m.error(c),g&&r instanceof Error&&r.cause!==void 0&&await m.debug(`Cause: ${String(r.cause)}`),u({message:c,exitCode:1})}},G=12,V=e=>new Promise(t=>setTimeout(t,e)),z=(e=G)=>{let t=new TextEncoder;return{name:"typewriter",writable:new WritableStream({async write(a){let i=String(a.data),n=h.process.stdout.getWriter();for(let s of i)await n.write(t.encode(s)),await V(e);n.releaseLock()}})}},J=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};
|
package/chunks/block-JVJQU723.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as f}from"./chunk-LXVBR775.js";import{d as w,e as u}from"./chunk-BKVQBSFV.js";import{f as m,h as c,k as d}from"./chunk-FGDJVQG3.js";import{c as a,d as i,e as l,g as p}from"./chunk-PLJNPQFC.js";import{a as o,b as n}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 x=async h=>{let e=m({renderer:d.ansi(),sink:c.stdout()}),t=Deno.cwd(),r=h?.join(" ")??"No reason given",s=await w(t);if(s.phase!=="BUILDING")return e.writeln(l(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let k=f(s,r);return await u(t,k),e.writeln(p("\u26A0")," Spec blocked: ",i(r)),e.writeln("Resolve with: ",a('noskills next --answer="resolution"')),await e.close(),o(void 0)};export{x as main};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as $,b as G}from"./chunk-BP2MZX2P.js";import{a as N}from"./chunk-LU3DHXOC.js";import"./chunk-ATLUGTI7.js";import"./chunk-Y6DZEK4W.js";import"./chunk-34GCQZ3Z.js";import"./chunk-3APERFKY.js";import{a as R}from"./chunk-6U2VEZEM.js";import{a as A,b as E}from"./chunk-JQHMDTPL.js";import"./chunk-2TRQKCFC.js";import"./chunk-ZF2XYULB.js";import"./chunk-5UGVJVIQ.js";import"./chunk-4S7QYPS6.js";import{f as w}from"./chunk-NUSNMQPL.js";import"./chunk-GXPLME3K.js";import"./chunk-FGDJVQG3.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-DOV5776P.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{u as m}from"./chunk-GRTR6TNJ.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var f=A(),S={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},O=new Set(["chore","ci","test"]),T=/^(\w+)(?:\(([^)]+)\))?!?:\s*(.+)$/,P=/\s*\(take\s+[IVXLCDM\d]+\)\s*\.?$/i,I=(n,t)=>{let r=n.match(T);if(r!==null)return{type:r[1].toLowerCase(),scope:r[2],message:r[3].trim(),hash:t}},b=n=>n.replace(P,"").trim(),k=n=>{let t=[];for(let r of n){let e=I(r.subject,r.hash);e!==void 0&&t.push(e)}return t},L=n=>{let t=new Set,r=[];for(let e of n){let s=b(e.message),a=s.replace(/[.\s]+$/,"").toLowerCase(),l=`${e.type}:${a}`;t.has(l)||(t.add(l),r.push({...e,message:s}))}return r},M=n=>{let t=new Map;for(let r of n){if(O.has(r.type))continue;let e=S[r.type];if(e===void 0)continue;let s=t.get(e);s!==void 0?s.push(r):t.set(e,[r])}return t},H=n=>n.scope!==void 0?`- **${n.scope}:** ${n.message}`:`- ${n.message}`,F=(n,t)=>{let r=M(t);if(r.size===0)return"";let e=new Date().toISOString().split("T")[0],s=[`## ${n} - ${e}`],a=["Added","Changed","Fixed","Removed"];for(let l of a){let o=r.get(l);if(!(o===void 0||o.length===0)){s.push("",`### ${l}`,"");for(let d of o)s.push(H(d))}}return s.join(`
|
|
2
|
-
`)},j=(n,t,r)=>{let e=n.split(`
|
|
3
|
-
`);if(r!==void 0){let o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(`^##\\s+${o}\\b`),i=e.findIndex(g=>d.test(g));if(i!==-1){let g=e.length;for(let c=i+1;c<e.length;c++)if(/^##\s+/.test(e[c])){g=c;break}return e.splice(i,g-i,t),e.join(`
|
|
4
|
-
`)}}let s=e.findIndex(o=>/^##\s+\[Unreleased\]/i.test(o));if(s===-1){let o=e.findIndex((i,g)=>g>0&&i.startsWith("## ")),d=o===-1?e.length:o;return e.splice(d,0,"",t,""),e.join(`
|
|
5
|
-
`)}let a=-1;for(let o=s+1;o<e.length;o++)if(/^##\s+/.test(e[o])){a=o;break}let l=a===-1?e.length:a;return e.splice(l,0,t,""),e.join(`
|
|
6
|
-
`)},V=async(n={})=>{let{root:t=".",dryRun:r=!1}=n,e=await N({root:t});if(e===void 0||e==="")throw new Error("VERSION file is missing or empty.");let s;try{s=await $()}catch{throw new Error("No git tags found. Create an initial tag first (e.g., git tag v0.0.0).")}let a=await G(s,"HEAD");if(a.length===0)throw new Error(`No commits found since ${s}. Nothing to release.`);let l=k(a),o=L(l),d=F(e,o);if(d==="")throw new Error("No user-facing changes found (all commits are chore/ci/test). Nothing to add to CHANGELOG.");if(!r){let i=m.current.path.join(t,"CHANGELOG.md"),g;try{g=await m.current.fs.readTextFile(i)}catch{throw new Error(`CHANGELOG.md not found at ${i}. Create one first.`)}let c=j(g,d,e);await m.current.fs.writeTextFile(i,c)}return{version:e,commitCount:a.length,entryCount:o.filter(i=>!O.has(i.type)).length,content:d,dryRun:r}},D=n=>w.fromPromise(()=>V(n)),_=n=>p.ok({dryRun:n.flags["dry-run"]===!0}),z=n=>{if(p.isFail(n))return f.writeln(h("\u2717"),u(" "+(n.error instanceof Error?n.error.message:String(n.error)))),p.fail({exitCode:1});let{value:t}=n;return t.dryRun?(f.writeln(v("\u26A0"),u(" [DRY RUN] Generated changelog preview:")),f.writeln(x("\u2139"),u(`
|
|
7
|
-
${t.content}`))):f.writeln(y("\u2713"),u(` Added ${t.entryCount} entries to CHANGELOG.md for v${t.version}`)),p.ok(void 0)},B=R.createTrigger({handler:D,adaptInput:_,adaptOutput:z}),ee=async n=>{let t=C(n??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),r=E("changelog-gen",t);return await B(r)};export{L as deduplicateCommits,V as generateChangelog,D as generateChangelogHandler,F as generateChangelogSection,M as groupBySection,B as handleCli,j as insertIntoChangelog,ee as main,I as parseConventionalCommit,k as parseConventionalCommits,b as stripTakeSuffix};
|
package/chunks/chunk-2TRQKCFC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function g(e,r){if(isNaN(e)||isNaN(r))throw new Error("Cannot compare against non-numbers");return e===r?0:e<r?-1:1}function z(e=[],r=[]){return e.length&&!r.length?-1:!e.length&&r.length?1:0}function V(e=[],r=[]){let n=Math.max(e.length,r.length);for(let o=0;o<n;o++){let a=e[o],t=r[o];if(a===void 0&&t===void 0)return 0;if(t===void 0)return 1;if(a===void 0)return-1;if(typeof a=="string"&&typeof t=="number")return 1;if(typeof a=="number"&&typeof t=="string"||a<t)return-1;if(a>t)return 1}return 0}var m="0|[1-9]\\d*",v="\\d*[a-zA-Z-][a-zA-Z0-9-]*",W=`(?<major>${m})\\.(?<minor>${m})\\.(?<patch>${m})`,A=`(?:${m}|${v})`,N=`(?:-(?<prerelease>${A}(?:\\.${A})*))`,B="[0-9A-Za-z-]+",D=`(?:\\+(?<buildmetadata>${B}(?:\\.${B})*))`,S=`v?${W}${N}?${D}?`,O=new RegExp(`^${S}$`),L="(?:<|>)?=?",H="x|X|\\*",R=`${m}|${H}`,P=`[v=\\s]*(?<major>${R})(?:\\.(?<minor>${R})(?:\\.(?<patch>${R})${N}?${D}?)?)?`,X=new RegExp(`^(?<operator>~>?|\\^|${L})\\s*${P}$`),Y=new RegExp(`^(?<operator>${L})\\s*(${S})$|^$`);function I(e){return typeof e=="number"&&!Number.isNaN(e)&&(!Number.isFinite(e)||0<=e&&e<=Number.MAX_SAFE_INTEGER)}var K=256;var q=new RegExp(`^${m}$`);function f(e){return e.split(".").filter(Boolean).map(r=>{if(q.test(r)){let n=Number(r);if(I(n))return n}return r})}function d(e){return e.split(".").filter(Boolean)}function x(e,r){let n=Number(e);if(!I(n))throw new TypeError(r);return n}function l(e,r){return e===r?0:g(e.major,r.major)||g(e.minor,r.minor)||g(e.patch,r.patch)||z(e.prerelease,r.prerelease)||V(e.prerelease,r.prerelease)}function M(e){return e.toFixed(0)}function G(e){let r=M(e.major),n=M(e.minor),o=M(e.patch),a=e.prerelease?.join(".")??"",t=e.build?.join(".")??"";return[[`${r}.${n}.${o}`,a].filter(i=>i).join("-"),t].filter(i=>i).join("+")}function Z(e=[]){let r=[...e],n=r.length;for(;n>=0;){let o=r[n];if(typeof o=="number"){r[n]=o+1;break}n-=1}return n===-1&&r.push(0),r}function y(e=[],r){let n=Z(e);if(!r)return n;let o=f(r);if(o.every(a=>typeof a=="string")){if(o.every((a,t)=>a===n[t])&&typeof n[o.length]=="number")return n;o=[...o,0]}return o}function ge(e,r,n={}){let o=n.build!==void 0?d(n.build):e.build??[];switch(r){case"premajor":return{major:e.major+1,minor:0,patch:0,prerelease:y(e.prerelease,n.prerelease),build:o};case"preminor":return{major:e.major,minor:e.minor+1,patch:0,prerelease:y(e.prerelease,n.prerelease),build:o};case"prepatch":return{major:e.major,minor:e.minor,patch:e.patch+1,prerelease:y(e.prerelease,n.prerelease),build:o};case"prerelease":{let t=(e.prerelease??[]).length===0?e.patch+1:e.patch;return{major:e.major,minor:e.minor,patch:t,prerelease:y(e.prerelease,n.prerelease),build:o}}case"major":return{major:(e.prerelease??[]).length===0||e.minor!==0||e.patch!==0?e.major+1:e.major,minor:0,patch:0,prerelease:[],build:o};case"minor":{let t=(e.prerelease??[]).length===0||e.patch!==0?e.minor+1:e.minor;return{major:e.major,minor:t,patch:0,prerelease:[],build:o}}case"patch":{let t=(e.prerelease??[]).length===0?e.patch+1:e.patch;return{major:e.major,minor:e.minor,patch:t,prerelease:[],build:o}}case"pre":return{major:e.major,minor:e.minor,patch:e.patch,prerelease:y(e.prerelease,n.prerelease),build:o};default:throw new TypeError(`Cannot increment version: invalid argument ${r}`)}}function T(e){if(typeof e!="string")throw new TypeError(`Cannot parse version as version must be a string: received ${typeof e}`);if(e.length>K)throw new TypeError(`Cannot parse version as version length is too long: length is ${e.length}, max length is ${K}`);e=e.trim();let r=e.match(O)?.groups;if(!r)throw new TypeError(`Cannot parse version: ${e}`);let n=x(r.major,`Cannot parse version ${e}: invalid major version`),o=x(r.minor,`Cannot parse version ${e}: invalid minor version`),a=x(r.patch,`Cannot parse version ${e}: invalid patch version`),t=r.prerelease?f(r.prerelease):[],s=r.buildmetadata?d(r.buildmetadata):[];return{major:n,minor:o,patch:a,prerelease:t,build:s}}var j={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},$={operator:void 0,...j};var te={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",408:"Request Timeout",409:"Conflict",410:"Gone",413:"Payload Too Large",415:"Unsupported Media Type",422:"Unprocessable Entity",429:"Too Many Requests",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"},w=class extends Error{status;constructor(r,n){super(n??te[r]??"Unknown Error"),this.name="HttpError",this.status=r}};var u=e=>r=>new w(e,r),Rt=u(400),Vt=u(401),It=u(403),Kt=u(404),Mt=u(409),Tt=u(422),jt=u(429),Ct=u(500),wt=u(503);var h=()=>{let e=new Map,r=!1,n=()=>{if(r)throw new Error("ImmutableMapBuilder has been sealed. Use map.toBuilder() to create a new builder.")},o={set:(a,t)=>(n(),e.set(a,t),o),delete:a=>(n(),e.delete(a),o),has:a=>e.has(a),get size(){return e.size},build:()=>(n(),r=!0,_(e))};return o},k=e=>{let r=new Map;if(e)for(let[n,o]of e)r.set(n,o);return _(r)},_=e=>{let r={get:n=>e.get(n),has:n=>e.has(n),get size(){return e.size},get isEmpty(){return e.size===0},keys:function*(){yield*e.keys()},values:function*(){yield*e.values()},entries:function*(){for(let n of e.entries())yield n},forEach:n=>{for(let[o,a]of e)n(a,o,r)},[Symbol.iterator]:function*(){for(let n of e.entries())yield n},map:n=>{let o=h();for(let[a,t]of e)o.set(a,n(t,a));return o.build()},filter:n=>{let o=h();for(let[a,t]of e)n(t,a)&&o.set(a,t);return o.build()},reduce:(n,o)=>{let a=o;for(let[t,s]of e)a=n(a,s,t);return a},toBuilder:()=>{let n=h();for(let[o,a]of e)n.set(o,a);return n},merge:(...n)=>{let o=h();for(let[a,t]of e)o.set(a,t);for(let a of n)for(let[t,s]of a)o.set(t,s);return o.build()}};return Object.freeze(r)},ae=k();var se=e=>{let r=new Map(e),n=!1,o=()=>{if(n)throw new Error("RegistryBuilder has been sealed. Use registry.toBuilder() to create a new builder.")},a={set:(t,s)=>(o(),r.set(t,["value",s]),a),setLazy:(t,s)=>(o(),r.set(t,["lazy",s]),a),remove:t=>(o(),r.delete(t),a),has:t=>r.has(t),get size(){return r.size},build:()=>(o(),n=!0,E(r))};return a},E=e=>{let r={entries:e,keysCache:null,valuesCache:null,entriesCache:null,lazyCache:new Map},n=(t,s)=>{let[c,i]=s;if(c==="value")return i;if(r.lazyCache.has(t))return r.lazyCache.get(t);let p=i();if(!(p instanceof Promise))return r.lazyCache.set(t,p),p},o=async(t,s)=>{let[c,i]=s;if(c==="value")return i;if(r.lazyCache.has(t))return r.lazyCache.get(t);let p=await i();return r.lazyCache.set(t,p),p};return Object.freeze({get:t=>{let s=r.entries.get(t);if(s!==void 0)return n(t,s)},getAsync:async t=>{let s=r.entries.get(t);if(s!==void 0)return await o(t,s)},has:t=>r.entries.has(t),isLazy:t=>{let s=r.entries.get(t);return s===void 0?!1:s[0]==="lazy"},keys:()=>(r.keysCache===null&&(r.keysCache=Object.freeze([...r.entries.keys()])),r.keysCache),values:()=>{if(r.valuesCache===null){let t=[];for(let[s,c]of r.entries){let[i]=c;i==="value"?t.push(c[1]):i==="lazy"&&r.lazyCache.has(s)&&t.push(r.lazyCache.get(s))}r.valuesCache=Object.freeze(t)}return r.valuesCache},entries:()=>{if(r.entriesCache===null){let t=[];for(let[s,c]of r.entries){let[i]=c;i==="value"?t.push([s,c[1]]):i==="lazy"&&r.lazyCache.has(s)&&t.push([s,r.lazyCache.get(s)])}r.entriesCache=Object.freeze(t)}return r.entriesCache},get size(){return r.entries.size},toBuilder:()=>se(r.entries)})},ie=E(new Map);export{l as a,G as b,ge as c,T as d};
|
package/chunks/chunk-3TYZYY77.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=[["go.mod","go"],["deno.json","deno"],["deno.jsonc","deno"],["package.json","node"]],l=async r=>{for(let[c,n]of u)try{return await Deno.stat(`${r}/${c}`),{type:n,configFile:c}}catch{}return{type:"unknown",configFile:void 0}},p=(r,c)=>{let n=[],t=[],e=r.dependencies;if(e===void 0)return{instructions:n,warnings:t};let i=r.language,o=c.type;if(o!=="unknown"&&(i==="go"&&o==="go"||i==="typescript"&&(o==="deno"||o==="node")||i==="javascript"&&(o==="deno"||o==="node")||t.push(`Recipe '${r.name}' is for ${i}, but detected ${o} project (${c.configFile}).`)),e.go!==void 0&&e.go.length>0)for(let s of e.go)n.push(`go get ${s}`);if(e.jsr!==void 0&&e.jsr.length>0)for(let s of e.jsr)n.push(`deno add ${s}`);if(e.npm!==void 0&&e.npm.length>0)for(let s of e.npm)n.push(`npm install ${s}`);return{instructions:n,warnings:t}},g=async(r,c,n)=>{let t=[];for(let e of r){if(n?.dryRun===!0){t.push({command:e,success:!0});continue}n?.verbose===!0&&console.log(` [install] ${e}`);let i=e.split(/\s+/),o=i[0],s=i.slice(1);try{let d=await new Deno.Command(o,{args:s,cwd:c,stdout:"inherit",stderr:"inherit"}).output();if(!d.success){t.push({command:e,success:!1,error:`Exit code ${d.code}`});break}t.push({command:e,success:!0})}catch(a){let d=a instanceof Error?a.message:String(a);t.push({command:e,success:!1,error:d});break}}return t};export{l as a,p as b,g as c};
|
package/chunks/chunk-4HMEWMWL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-VFMYWG2I.js";import{a as o}from"./chunk-GXPLME3K.js";var a=i({name:"validate-yaml",description:"Validate YAML syntax",canFix:!1,stacks:[],defaults:{},extensions:[".yml",".yaml"],checkFile(e,r){if(r===void 0)return[];try{return o(r),[]}catch(t){let n=t instanceof Error?t.message:"invalid YAML";return[{path:e.path,message:n}]}}}),p=a.run,d=a.validator,u=a.main;export{a,p as b,d as c,u as d};
|
package/chunks/chunk-5O7V5P53.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-DRQWYJMH.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-752YJEHO.js")},list:{description:"List available AI providers",load:()=>import("./list-UZKWSA4S.js")}}});export{i as a};
|
package/chunks/chunk-5UGVJVIQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=/\.(?:[cm]?[jt]sx?)$/,n=["tsx","jsx","ts","js","mts","mjs","cts","cjs"];function r(t,s){return t.replace(e,s)}export{e as a,n as b,r as c};
|
package/chunks/chunk-6YRN6OJC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g as h,i as w}from"./chunk-SCULX2ND.js";var f=class extends Error{constructor(r){super(`Required variable '${r}' has no value and no default`),this.name="MissingVariableError"}},R=(e,r)=>{let t={};for(let n of e){let a=r[n.name];if(a!==void 0)t[n.name]=a;else if(n.default!==void 0)t[n.name]=n.default;else throw new f(n.name)}return t},m=(e,r)=>e.replace(/\{\{\s*\.(\w+)\s*\}\}/g,(t,n)=>n in r?r[n]:t);var p=class extends Error{constructor(r){super(`Circular dependency detected: ${r.join(" \u2192 ")}`),this.name="CyclicDependencyError"}},u=class extends Error{constructor(r,t){super(`Recipe '${r}' requires '${t}', which is not in the registry`),this.name="MissingDependencyError"}},v=(e,r)=>{let t=new Map;for(let s of r)t.set(s.name,s);if(t.get(e)===void 0)throw new u("<root>",e);let a=[],i=new Set,o=new Set,l=(s,d)=>{if(i.has(s))return;if(o.has(s))throw new p([...d,s]);let c=t.get(s);if(c===void 0)throw new u(d[d.length-1]??"<root>",s);if(o.add(s),c.requires!==void 0)for(let g of c.requires)l(g,[...d,s]);o.delete(s),i.add(s),a.push(c)};return l(e,[]),a};var b=(e,r)=>{let t=e.endsWith("/")?e:`${e}/`,n=new URL(r,`file://${t}`).pathname;return n.startsWith(t)||n===e},$=async e=>{let r=e.split("/");r.pop();let t=r.join("/");t!==""&&t!=="."&&await Deno.mkdir(t,{recursive:!0})},y=async e=>{try{return await Deno.stat(e),!0}catch{return!1}},x=(e,r)=>r===void 0||Object.keys(r).length===0?e:m(e,r),A=async(e,r,t,n)=>{let a=`${r.cwd}/${e.target}`;if(n.includes(e.target))return;if(r.skipExisting===!0&&await y(a)){r.verbose===!0&&console.log(` [skip] ${e.target} (already exists)`),n.push(e.target);return}if(r.dryRun===!0){console.log(` [dry-run] would write ${e.target}`),t.push(e.target);return}r.verbose===!0&&console.log(` [write] ${e.target}`);let i=await h(r.registryUrl,e.source),o=x(i,r.variables);await $(a),await Deno.writeTextFile(a,o),t.push(e.target)},F=async(e,r,t,n)=>{let a=await w(r.registryUrl,e.source);for(let i of a){let o=`${e.target}/${i.path}`;if(!b(r.cwd,o))throw new Error(`Folder recipe contains path traversal in '${o}'. Aborting.`)}for(let i of a){let o=`${e.target}/${i.path}`,l=`${r.cwd}/${o}`;if(r.skipExisting===!0&&await y(l)){n.push(o);continue}if(r.dryRun===!0){console.log(` [dry-run] would write ${o}`),t.push(o);continue}r.verbose===!0&&console.log(` [write] ${o}`);let s=x(i.content,r.variables);await $(l),await Deno.writeTextFile(l,s),t.push(o)}},E=async(e,r,t,n)=>{let a=[];for(let i of e){if(t===!0){console.log(` [dry-run] would run: ${i}`),a.push(i);continue}n===!0&&console.log(` [post-install] ${i}`);let o=i.split(/\s+/),s=await new Deno.Command(o[0],{args:o.slice(1),cwd:r,stdout:"inherit",stderr:"inherit"}).output();if(!s.success)throw new Error(`Post-install command failed: '${i}' (exit code ${s.code})`);a.push(i)}return a},C=async(e,r)=>{let t=[],n=[],a=e.files.length,i=r.variables;e.variables!==void 0&&e.variables.length>0&&(i=R(e.variables,r.variables??{}));let o={...r,variables:i};for(let s of e.files)if((s.kind??"file")==="file"&&!b(r.cwd,s.target))throw new Error(`Recipe '${e.name}' contains path traversal in target '${s.target}'. Aborting.`);if(r.force!==!0&&r.skipExisting!==!0)for(let s of e.files){if((s.kind??"file")!=="file")continue;let c=`${r.cwd}/${s.target}`;await y(c)&&(r.dryRun===!0?console.log(` [conflict] ${s.target} (already exists)`):(console.warn(` Warning: ${s.target} already exists. Use --force to overwrite or --skip-existing to skip.`),n.push(s.target)))}for(let s of e.files){let d=s.kind??"file";try{d==="folder"?await F(s,o,t,n):await A(s,o,t,n)}catch(c){let g=c instanceof Error?c.message:String(c);throw new Error(`Failed applying '${s.target}'. ${t.length} files written so far. Retry with \`eser kit add ${e.name} --force\`. Cause: ${g}`)}}let l=[];return e.postInstall!==void 0&&e.postInstall.length>0&&(l=await E(e.postInstall,r.cwd,r.dryRun,r.verbose)),{written:t,skipped:n,total:a,postInstallRan:l}},q=async(e,r,t)=>{let n=v(e,r),a=[];for(let i of n){t.verbose===!0&&console.log(`
|
|
2
|
-
Applying recipe: ${i.name}`);let o=await C(i,t);a.push({name:i.name,result:o})}return{recipes:a}};export{b as a,y as b,x as c,E as d,C as e,q as f};
|
package/chunks/chunk-BKVQBSFV.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var d=()=>({version:"0.1.0",phase:"IDLE",spec:null,branch:null,discovery:{answers:[],completed:!1},specState:{path:null,status:"none"},building:{iteration:0,lastProgress:null},decisions:[]}),m=(e,n,t)=>({version:"0.1.0",concerns:e,tools:n,project:t});var r=".nos",a=`${r}/.state`,c=`${a}/state.json`,l=`${r}/config.json`,s=`${r}/concerns`,y=`${r}/rules`,i=`${r}/specs`,g=`${r}/workflows`,p={nosDir:r,stateDir:a,stateFile:c,configFile:l,concernsDir:s,rulesDir:y,specsDir:i,workflowsDir:g,specDir:e=>`${i}/${e}`,specFile:e=>`${i}/${e}/spec.md`,concernFile:e=>`${s}/${e}.json`,nosGitignore:`${r}/.gitignore`},f=async e=>{let n=`${e}/${c}`;try{let t=await Deno.readTextFile(n);return JSON.parse(t)}catch{return d()}},h=async(e,n)=>{let t=`${e}/${a}`,o=`${e}/${c}`;await Deno.mkdir(t,{recursive:!0}),await Deno.writeTextFile(o,JSON.stringify(n,null,2)+`
|
|
2
|
-
`)},$=async e=>{let n=`${e}/${l}`;try{let t=await Deno.readTextFile(n);return JSON.parse(t)}catch{return null}},S=async(e,n)=>{let t=`${e}/${l}`;await Deno.writeTextFile(t,JSON.stringify(n,null,2)+`
|
|
3
|
-
`)};var x=async(e,n)=>{let t=`${e}/${s}`,o=`${e}/${p.concernFile(n.id)}`;await Deno.mkdir(t,{recursive:!0}),await Deno.writeTextFile(o,JSON.stringify(n,null,2)+`
|
|
4
|
-
`)},w=async e=>{let n=`${e}/${s}`,t=[];try{for await(let o of Deno.readDir(n))if(o.isFile&&o.name.endsWith(".json")){let D=await Deno.readTextFile(`${n}/${o.name}`);t.push(JSON.parse(D))}}catch{}return t},P=async e=>{let n=[r,a,s,y,i,g];for(let t of n)await Deno.mkdir(`${e}/${t}`,{recursive:!0});await Deno.writeTextFile(`${e}/${p.nosGitignore}`,`# noskills runtime state \u2014 not tracked by git
|
|
5
|
-
.state/
|
|
6
|
-
`)},F=async e=>{try{return await Deno.stat(`${e}/${l}`),!0}catch{return!1}};export{d as a,m as b,p as c,f as d,h as e,$ as f,S as g,x as h,w as i,P as j,F as k};
|
package/chunks/chunk-CDLEA2PD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-VFMYWG2I.js";import{a as n}from"./chunk-34GCQZ3Z.js";var r=o({name:"validate-json",description:"Validate JSON syntax",canFix:!1,stacks:[],defaults:{},extensions:[".json",".jsonc"],checkFile(s,a,t){if(a===void 0)return[];if((t.exclude??[]).some(e=>s.path.includes(e)))return[];try{return s.name.endsWith(".jsonc")?n(a):JSON.parse(a),[]}catch(e){let i=e instanceof SyntaxError?e.message:"invalid JSON";return[{path:s.path,message:i}]}}}),m=r.run,f=r.validator,x=r.main;export{r as a,m as b,f as c,x as d};
|
package/chunks/chunk-GRTR6TNJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as I,c as D}from"./chunk-Z7742D7Q.js";import{a as S,b as f}from"./chunk-VTQ72OK7.js";import{a as c,b as T,c as A,d as N}from"./chunk-QXTK62N4.js";import{d as Y}from"./chunk-DXB73IDG.js";var J={};Y(J,{AlreadyExistsError:()=>A,NotFoundError:()=>T,ProcessError:()=>N,RuntimeCapabilityError:()=>c,buildCommand:()=>P,clearWorkerdEnv:()=>D,createRuntime:()=>G,current:()=>o,detectExecutionContext:()=>V,detectInvoker:()=>b,detectRuntime:()=>a,getArch:()=>y,getCliCommand:()=>q,getHomedir:()=>R,getPlatform:()=>u,getPlatformInfo:()=>U,getRuntimeVersion:()=>M,getTmpdir:()=>v,isBrowser:()=>W,isCommandInPath:()=>m,isEdge:()=>B,isRuntime:()=>_,isServer:()=>j,populateEnvFromContext:()=>I,posixPath:()=>f,resolvePathDirs:()=>C,searchFileHierarchy:()=>$,toPosix:()=>S});var i=globalThis,Z=()=>typeof i.caches<"u"&&typeof i.Request<"u"&&typeof i.Response<"u"&&typeof i.window>"u"&&typeof i.document>"u",ee=()=>typeof i.window<"u"||typeof i.document<"u",a=()=>{if(typeof globalThis>"u")return"unknown";if(typeof i.Bun<"u")return"bun";if(typeof i.Deno<"u")return"deno";let e=i.process;return e?.versions?.node&&!e?.versions?.bun?"node":Z()?"workerd":ee()?"browser":"unknown"},ne={deno:()=>i.Deno?.version?.deno??"unknown",bun:()=>i.Bun?.version??"unknown",node:()=>i.process?.versions?.node??"unknown",workerd:()=>"unknown",browser:()=>i.navigator?.userAgent??"unknown",unknown:()=>"unknown"},M=()=>ne[a()](),_=e=>a()===e,W=()=>a()==="browser",te=new Set(["deno","node","bun"]),j=()=>te.has(a()),B=()=>a()==="workerd";var oe=e=>{if(typeof Deno<"u"&&Deno.env?.get)return Deno.env.get(e);let n=globalThis.process;if(n?.env)return n.env[e]},x=(...e)=>{for(let n of e){let t=oe(n);if(t!==void 0)return t}},g=e=>{try{let n=globalThis.require;if(n instanceof Function)return n(e)}catch{}},w=()=>globalThis.process,h=()=>globalThis.navigator;var H={darwin:"darwin",linux:"linux",windows:"windows",win32:"windows"},u=()=>{if(typeof Deno<"u"&&Deno.build?.os)return H[Deno.build.os]??"linux";let e=w();if(e?.platform)return H[e.platform]??"linux";let n=h();if(n?.userAgent){let t=n.userAgent.toLowerCase();if(t.includes("mac"))return"darwin";if(t.includes("win"))return"windows";if(t.includes("linux"))return"linux"}return"linux"},L={x86_64:"amd64",x64:"amd64",aarch64:"arm64",arm64:"arm64"},y=()=>{if(typeof Deno<"u"&&Deno.build?.arch)return L[Deno.build.arch]??"amd64";let e=w();if(e?.arch)return L[e.arch]??"amd64";let n=h();if(n?.userAgent){let t=n.userAgent.toLowerCase();if(t.includes("arm64")||t.includes("aarch64"))return"arm64"}return"amd64"},R=()=>{let e=x("HOME","USERPROFILE");if(e)return e;let n=g("os");return n?.homedir?n.homedir():u()==="windows"?"C:\\Users\\Default":"/home"},v=()=>{let e=x("TMPDIR","TMP","TEMP");if(e)return e;let n=g("os");return n?.tmpdir?n.tmpdir():u()==="windows"?"C:\\Windows\\Temp":"/tmp"},U=()=>({platform:u(),arch:y(),homedir:R(),tmpdir:v()});var $=async(e,n,t={})=>{let{searchParents:r=!1}=t,s=e;for(;;){for(let l of n){let p=o.path.join(s,l);if(await o.fs.exists(p)&&(await o.fs.stat(p)).isFile)return p}if(!r)break;let d=o.path.dirname(s);if(d===s)break;s=d}};var C=(e,n)=>{let t=n==="windows"?";":":";return e.split(t).filter(r=>r.length>0)},b=(e,n,t,r,s)=>{if(t)return{invoker:"binary",mode:"installed"};if(n==="bun")return e.BUN_INSTALL!==void 0?{invoker:"bun",mode:"installed"}:{invoker:"bunx",mode:"on-demand"};if(n==="node"){let d=e.npm_execpath??"";return d.includes("npx")?{invoker:"npx",mode:"on-demand"}:d.includes("pnpm")?{invoker:"pnpx",mode:"on-demand"}:(e.npm_config_user_agent??"").includes("pnpm")?{invoker:"pnpm",mode:"installed"}:{invoker:"npm",mode:"installed"}}return n==="deno"?r!==void 0&&(r.startsWith("jsr:")||r.startsWith("https:"))?{invoker:"deno",mode:"on-demand"}:s===!0?{invoker:"dev",mode:"dev"}:{invoker:"deno",mode:"installed"}:{invoker:"unknown",mode:"installed"}},P=(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,m=async e=>{let n=u(),t=n==="windows"?`${e}.exe`:e,r=o.env.get("PATH")??"",s=C(r,n);for(let d of s)try{return await o.fs.stat(o.path.join(d,t)),!0}catch{continue}return!1},q=async e=>await m(e.command)?e.command:await m("npx")?`npx ${e.npmPackage}`:await m("pnpx")?`pnpx ${e.npmPackage}`:await m("bunx")?`bunx ${e.npmPackage}`:await m("deno")?`deno run --allow-all jsr:${e.jsrPackage}`:e.command,V=async e=>{let n=import.meta.filename===void 0,t=a(),r=import.meta.url,s={BUN_INSTALL:o.env.get("BUN_INSTALL"),npm_execpath:o.env.get("npm_execpath"),npm_config_user_agent:o.env.get("npm_config_user_agent")},d=!1;if(t==="deno"&&r.startsWith("file://"))try{let z=o.process.cwd(),Q=o.path.join(z,"deno.json"),X=await o.fs.readTextFile(Q),F=JSON.parse(X).tasks;F!==void 0&&"cli"in F&&(d=!0)}catch{}let{invoker:l,mode:p}=b(s,t,n,r,d),E=n?"compiled":["deno","node","bun"].includes(t)?t:"deno",O=P(l,p,e),K=await m(e.command);return{runtime:E,mode:p,invoker:l,command:O,isInPath:K}};var k=(e,n)=>()=>{throw new c(e,n)},se=e=>{let n=k("fs",e);return{readFile:n,readTextFile:n,writeFile:n,writeTextFile:n,exists:n,stat:n,lstat:n,mkdir:n,ensureDir:n,remove:n,readDir:n,copyFile:n,rename:n,makeTempDir:n,realPath:n,watch:n,walk:n,chmod:n}},ae=e=>{let n=k("exec",e);return{spawn:n,exec:n,execJson:n,spawnChild:n}},de=e=>{let n=k("process",e);return{exit:n,setExitCode:n,cwd:n,chdir:n,hostname:n,execPath:n,get args(){throw new c("process",e)},get pid(){throw new c("process",e)},get stdin(){throw new c("process",e)},get stdout(){throw new c("process",e)},get stderr(){throw new c("process",e)}}},ce=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),me=e=>({name:e,version:"unknown",capabilities:{fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},fs:se(e),path:f,exec:ae(e),env:ce(),process:de(e)}),ue={deno:async()=>(await import("./deno-PZXN5K3J.js")).createDenoRuntime(),node:async()=>(await import("./node-VPHAK3FD.js")).createNodeRuntime(),bun:async()=>(await import("./bun-N3TIWBPP.js")).createBunRuntime(),workerd:async()=>(await import("./workerd-NXKZMQPV.js")).createWorkerdRuntime(),browser:async()=>(await import("./browser-6UKLTPJO.js")).createBrowserRuntime()},pe=["fs","exec","env","path","process"],le=e=>e!==void 0&&pe.some(n=>e[n]!==void 0),fe=(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}),G=async e=>{let n=a(),t=ue[n],r=t!==void 0?await t():me(n),s=e?.capabilities?{...r.capabilities,...e.capabilities}:r.capabilities;return e!==void 0&&le(e)?fe(r,e,s):e?.capabilities?{...r,capabilities:s}:r},o=await G();export{a,M as b,_ as c,W as d,j as e,B as f,u as g,y as h,R as i,v as j,U as k,$ as l,C as m,b as n,P as o,m as p,q,V as r,G as s,o as t,J as u};
|
package/chunks/chunk-H2JGLZIR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-VFMYWG2I.js";var a=t({name:"validate-shebangs",description:"Validate shebang/executable consistency",canFix:!1,stacks:[],defaults:{},checkFile(o,e){return[]}}),s=a.run,l=a.validator,c=a.main;export{a,s as b,l as c,c as d};
|
package/chunks/chunk-HVMMNGY5.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-VFMYWG2I.js";var c="2023",p=new RegExp(`// Copyright ([0-9]{4})-present Eser Ozvataf and other contributors\\. All rights reserved\\. ([0-9A-Za-z-.]+) license\\.
|
|
2
|
-
`),l=`// Copyright ${c}-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license.`,m=[/docs\//,/etc\/templates\//,/manifest\.gen\.ts$/],u=t=>m.some(e=>e.test(t)),x=(t,e,r)=>{if(e===void 0||u(t.path))return[];let n=e.startsWith("#!")?e.indexOf(`
|
|
3
|
-
`)+1:0,s=e.slice(n).match(p);return s!==null?s[1]===c?[]:[{path:t.path,message:"incorrect copyright year",fixed:r.fix}]:[{path:t.path,message:"missing copyright header",fixed:r.fix}]},T=(t,e,r)=>{if(u(t.path))return;let a=e.startsWith("#!"),n=a?e.indexOf(`
|
|
4
|
-
`)+1:0,i=e.slice(n),s=i.match(p);if(s!==null&&s[1]===c)return;let o;if(s!==null){let g=e.slice(0,n),f=i.replace(s[0],"");o=`${g}${l}
|
|
5
|
-
${f}`}else o=a?`${e.slice(0,n)}${l}
|
|
6
|
-
${i}`:`${l}
|
|
7
|
-
${e}`;return{path:t.path,oldContent:e,newContent:o}},h=d({name:"validate-licenses",description:"Validate license headers",canFix:!0,stacks:["javascript"],defaults:{},extensions:[".tsx",".jsx",".ts",".js",".mts",".mjs",".cts",".cjs"],checkFile:x,fixFile:T}),E=h.run,C=h.validator,S=h.main;export{h as a,E as b,C as c,S as d};
|
package/chunks/chunk-L2BYHWDC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-VFMYWG2I.js";import{u as s}from"./chunk-GRTR6TNJ.js";var a=i({name:"validate-symlinks",description:"Detect broken symlinks",canFix:!1,stacks:[],defaults:{},async checkAll(n){let o=[];for(let t of n)if(t.isSymlink)try{await s.current.fs.stat(t.path)}catch{o.push({path:t.path,message:"broken symlink \u2014 target not found"})}return o}}),l=a.run,c=a.validator,m=a.main;export{a,l as b,c,m as d};
|
package/chunks/chunk-LRL56YFE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=(t,e)=>({role:t,content:[{kind:"text",text:e}]});var l="data:",i=";base64,",u=t=>t.startsWith(l),d=t=>{if(!t.startsWith(l))return null;let e=t.slice(l.length),o=e.indexOf(i);if(o===-1)return null;let s=e.slice(0,o),g=e.slice(o+i.length),r=atob(g),a=new Uint8Array(r.length);for(let n=0;n<r.length;n++)a[n]=r.charCodeAt(n);return{mimeType:s,data:a}},p={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".bmp":"image/bmp",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".m4a":"audio/mp4",".webm":"audio/webm",".pdf":"application/pdf",".json":"application/json",".txt":"text/plain"},m=t=>{let e=t.split("?")[0]??t,o=e.lastIndexOf(".");if(o===-1)return null;let s=e.slice(o).toLowerCase();return p[s]??null};export{c as a,u as b,d as c,m as d};
|
package/chunks/chunk-LU3DHXOC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{e as w,f as C}from"./chunk-ATLUGTI7.js";import{a as A}from"./chunk-6U2VEZEM.js";import{a as O,b as U}from"./chunk-JQHMDTPL.js";import{a as b,b as x,c as F,d as m}from"./chunk-2TRQKCFC.js";import{f as v}from"./chunk-NUSNMQPL.js";import{b as i,f as P,h as l}from"./chunk-PLJNPQFC.js";import{a as S}from"./chunk-HPPFA3XU.js";import{g as a}from"./chunk-DQAEQEXD.js";import{j as h}from"./chunk-GLSCZGXA.js";import{u as V}from"./chunk-GRTR6TNJ.js";var d=O(),M=async(s={})=>{let{root:e="."}=s,n=h(e,"VERSION");try{return(await V.current.fs.readTextFile(n)).trim()}catch{return}},T=async(s,e)=>{let n=h(s,"VERSION");await V.current.fs.writeTextFile(n,e+`
|
|
2
|
-
`)},j=s=>{let e=m("0.0.0");for(let n of s){let r=m(n);b(r,e)>0&&(e=r)}return x(e)},H=async(s={})=>{let{root:e="."}=s,[n,r]=await C(e),p=n.version?.value??"0.0.0";return{packages:[{name:n.name?.value??"(root)",version:p},...r.map(u=>({name:u.name,version:u.version}))]}},D=async(s,e={})=>{let{root:n=".",dryRun:r=!1,updateVersionFile:p=!0}=e,[c,y]=await C(n),u=c.version?.value??"0.0.0",E=c.name?.value??"(root)",$=[u,...y.map(o=>o.version)],k=j($),t;if(s==="explicit"){if(e.explicitVersion===void 0)throw new Error('explicitVersion is required when command is "explicit".');m(e.explicitVersion),t=e.explicitVersion}else s==="sync"?t=k:t=x(F(m(k),s));let g=[],I=u!==t;r||await w(c,t),g.push({name:E,from:u,to:t,changed:I});for(let o of y){let f=o.version!==t;r||await w(o.config,t),g.push({name:o.name,from:o.version,to:t,changed:f})}let R=[];if(p){let o=await M({root:n}),f=o!==t;!r&&f&&await T(n,t),R.push({path:"VERSION",from:o??"",to:t,changed:f})}let N=g.filter(o=>o.changed).length;return{command:s,targetVersion:t,updates:g,fileUpdates:R,changedCount:N,dryRun:r}},W=s=>s.mode==="show"?v.fromPromise(async()=>({mode:"show",result:await H()})):v.fromPromise(async()=>({mode:"update",result:await D(s.command,s.options)})),q=s=>{let e=s.args[0];if(e===void 0)return a.ok({mode:"show"});let n=["sync","patch","minor","major"],r,p;n.includes(e)?r=e:(r="explicit",p=e);let c=s.flags["dry-run"]===!0;return a.ok({mode:"update",command:r,options:{dryRun:c,explicitVersion:p}})},B=s=>{if(a.isFail(s))return a.fail({exitCode:1,message:String(s.error)});let e=s.value;if(e.mode==="show")return console.table(e.result.packages),a.ok(void 0);let{result:n}=e;n.command==="sync"?d.writeln(l("\u2139"),i(" Syncing all versions...")):n.command==="explicit"?d.writeln(l("\u2139"),i(` Setting all versions to ${n.targetVersion}...`)):d.writeln(l("\u2139"),i(` Bumping all versions (${n.command})...`)),d.writeln(l("\u2139"),i(` Target version: ${n.targetVersion}`)),console.table(n.updates);for(let r of n.fileUpdates)r.changed&&d.writeln(l("\u2139"),i(` ${r.path} (${r.from} \u2192 ${r.to})`));return n.dryRun?d.writeln(l("\u2139"),i(` Dry run - ${n.changedCount} packages would be modified.`)):d.writeln(P("\u2713"),i(` Done. Updated ${n.changedCount} packages.`)),a.ok(void 0)},z=A.createTrigger({handler:W,adaptInput:q,adaptOutput:B}),ne=async s=>{let e=S(s??[],{boolean:["dry-run"]}),n=U("versions",e);return await z(n)};export{M as a,H as b,D as c,W as d,z as e,ne as f};
|
package/chunks/chunk-NADES3GN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-VFMYWG2I.js";var a="\uFEFF",e=i({name:"validate-bom",description:"Remove UTF-8 byte order markers",canFix:!0,stacks:[],defaults:{},checkFile(r,t){return t===void 0?[]:t.startsWith(a)?[{path:r.path,message:"file has UTF-8 BOM"}]:[]},fixFile(r,t){if(!t.startsWith(a))return;let o=t.slice(1);return{path:r.path,oldContent:t,newContent:o}}}),u=e.run,d=e.validator,p=e.main;export{e as a,u as b,d as c,p as d};
|
package/chunks/chunk-QIUIPRJP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-VFMYWG2I.js";import{t}from"./chunk-GRTR6TNJ.js";var e=a({name:"validate-submodules",description:"Detect new git submodules",canFix:!1,stacks:[],defaults:{},async checkAll(n,i){let o=t.path.join(i.root,".gitmodules");if(!await t.fs.exists(o))return[];let s=((await t.fs.readTextFile(o)).match(/\[submodule\s/g)??[]).length;return s>0?[{path:o,message:`found ${s} submodule(s) \u2014 submodules are not allowed`}]:[]}}),p=e.run,f=e.validator,x=e.main;export{e as a,p as b,f as c,x as d};
|
package/chunks/chunk-R6F4EK2B.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{b as k}from"./chunk-5UGVJVIQ.js";import{d as F,f as T,h as C,j as d,k as L,n as u}from"./chunk-GLSCZGXA.js";import{a as g}from"./chunk-ZE5T64HQ.js";import{t as D}from"./chunk-GRTR6TNJ.js";var R={USE_CLIENT:"use client",USE_SERVER:"use server",USE_STRICT:"use strict"},M=[/node_modules/,/\.test\./,/\.spec\./],G=(t,e)=>{let r=t.split(`
|
|
2
|
-
`),i=e.toLowerCase(),o=!1;for(let s=0;s<Math.min(50,r.length);s++){let n=r[s]?.trim()??"";if(o){n.includes("*/")&&(o=!1);continue}if(n===""||n.startsWith("//"))continue;if(n.startsWith("/*")){n.includes("*/")||(o=!0);continue}let f=`"${i}";`,a=`'${i}';`,l=n.toLowerCase();if(l===f||l===a)return!0;if(n.startsWith("import")||n.startsWith("export")||n.startsWith("const")||n.startsWith("let")||n.startsWith("var")||n.startsWith("function")||n.startsWith("class"))break}return!1},W=t=>{let e=new Set,r=t.matchAll(/export\s+(?:async\s+)?function\s+(\w+)/g);for(let n of r)n[1]!==void 0&&e.add(n[1]);let i=t.matchAll(/export\s+(?:const|let)\s+(\w+)\s*=/g);for(let n of i)n[1]!==void 0&&e.add(n[1]);let o=t.matchAll(/export\s+class\s+(\w+)/g);for(let n of o)n[1]!==void 0&&e.add(n[1]);/export\s+default\s+/.test(t)&&e.add("default");let s=t.matchAll(/export\s*\{([\w\s,]+)\}/g);for(let n of s)if(n[1]!==void 0){let f=n[1].split(",").map(a=>{let l=a.trim().split(/ {1,10}as {1,10}/);return(l[1]??l[0])?.trim()});for(let a of f)a!==void 0&&a!==""&&e.add(a)}return[...e]},O=async t=>{try{return await D.fs.readTextFile(t)}catch{return null}},Q=async(t,e,r={})=>{let i=r.extensions??k,o=r.skip??M,s=r.projectRoot??t,n=[];for await(let f of D.fs.walk(t,{exts:[...i],skip:[...o]})){if(!f.isFile)continue;let a=await O(f.path);if(a!==null&&G(a,e)){let l=D.path.relative(s,f.path),m=W(a);n.push({filePath:f.path,relativePath:l,directive:e,exports:m})}}return n},Y=(t,e={})=>Q(t,R.USE_CLIENT,e),X=(t,e)=>{let r=`"${e}"`,i=`'${e}'`;return t.includes(r)||t.includes(i)},Z=async(t,e={})=>{let r=e.extensions??k,i=e.skip??M,o=e.projectRoot??t,s=[];for await(let n of D.fs.walk(t,{exts:[...r],skip:[...i]})){if(!n.isFile)continue;let f=await O(n.path);if(f!==null&&X(f,R.USE_SERVER)){let a=D.path.relative(o,n.path),l=W(f);s.push({filePath:n.path,relativePath:a,directive:R.USE_SERVER,exports:l})}}return s};function w(t){return t.isFile?"file":t.isDirectory?"dir":t.isSymlink?"symlink":void 0}async function x(t){try{let e=await Deno.stat(t);_(e);return}catch(e){if(!(e instanceof Deno.errors.NotFound))throw e}try{await Deno.mkdir(t,{recursive:!0})}catch(e){if(!(e instanceof Deno.errors.AlreadyExists))throw e;let r=await Deno.stat(t);_(r)}}function _(t){if(!t.isDirectory)throw new Error(`Failed to ensure directory exists: expected 'dir', got '${w(t)}'`)}function c(t){return t instanceof URL?C(t):t}function P(t,e,r=T){if(t=c(t),e=c(e),u(t)===u(e))return!1;let i=t.split(r),o=e.split(r);return i.every((s,n)=>o[n]===s)}function S(t,e){if(t===null)throw new Error(`${e} is unavailable`)}async function I(t,e,r){let i;try{i=await Deno.lstat(e)}catch(o){if(o instanceof Deno.errors.NotFound)return;throw o}if(r.isFolder&&!i.isDirectory)throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'`);if(!r.overwrite)throw new Deno.errors.AlreadyExists(`'${e}' already exists.`);return i}async function N(t,e,r){if(await I(t,e,r),await Deno.copyFile(t,e),r.preserveTimestamps){let i=await Deno.stat(t);S(i.atime,"statInfo.atime"),S(i.mtime,"statInfo.mtime"),await Deno.utime(e,i.atime,i.mtime)}}async function U(t,e,r){await I(t,e,r);let i=await Deno.readLink(t),o=w(await Deno.lstat(t));if(g?await Deno.symlink(i,e,{type:o==="dir"?"dir":"file"}):await Deno.symlink(i,e),r.preserveTimestamps){let s=await Deno.lstat(t);S(s.atime,"statInfo.atime"),S(s.mtime,"statInfo.mtime"),await Deno.utime(e,s.atime,s.mtime)}}async function j(t,e,r){if(await I(t,e,{...r,isFolder:!0})||await x(e),r.preserveTimestamps){let s=await Deno.stat(t);S(s.atime,"statInfo.atime"),S(s.mtime,"statInfo.mtime"),await Deno.utime(e,s.atime,s.mtime)}t=c(t),e=c(e);let o=[];for await(let s of Deno.readDir(t)){let n=d(t,s.name),f=d(e,F(n));s.isSymlink?o.push(U(n,f,r)):s.isDirectory?o.push(j(n,f,r)):s.isFile&&o.push(N(n,f,r))}await Promise.all(o)}async function wt(t,e,r={}){if(t=u(c(t)),e=u(c(e)),t===e)throw new Error("Source and destination cannot be the same");let i=await Deno.lstat(t);if(i.isDirectory&&P(t,e))throw new Error(`Cannot copy '${t}' to a subdirectory of itself: '${e}'`);i.isSymlink?await U(t,e,r):i.isDirectory?await j(t,e,r):i.isFile&&await N(t,e,r)}async function Ft(t){try{let e=await Array.fromAsync(Deno.readDir(t));await Promise.all(e.map(r=>{if(r&&r.name){let i=d(c(t),r.name);return Deno.remove(i,{recursive:!0})}}))}catch(e){if(!(e instanceof Deno.errors.NotFound))throw e;await Deno.mkdir(t,{recursive:!0})}}async function A(t){t=c(t),t=L(t);let e=F(t),r=await Deno.stat(t);return{path:t,name:e,isFile:r.isFile,isDirectory:r.isDirectory,isSymlink:r.isSymlink}}function E(t,e,r,i){return!(e&&!e.some(o=>t.endsWith(o))||r&&!r.some(o=>!!t.match(o))||i&&i.some(o=>!!t.match(o)))}async function*V(t,e){let{maxDepth:r=1/0,includeFiles:i=!0,includeDirs:o=!0,includeSymlinks:s=!0,followSymlinks:n=!1,canonicalize:f=!0,exts:a=void 0,match:l=void 0,skip:m=void 0}=e??{};if(!(r<0)&&(t=c(t),a&&(a=a.map(y=>y.startsWith(".")?y:`.${y}`)),o&&E(t,a,l,m)&&(yield await A(t)),!(r<1||!E(t,void 0,void 0,m))))for await(let y of Deno.readDir(t)){let p=d(t,y.name),{isSymlink:v,isDirectory:$}=y;if(v){if(!n){s&&E(p,a,l,m)&&(yield{path:p,...y});continue}let h=await Deno.realPath(p);f&&(p=h),{isSymlink:v,isDirectory:$}=await Deno.lstat(h)}if(v||$){let h={maxDepth:r-1,includeFiles:i,includeDirs:o,includeSymlinks:s,followSymlinks:n};a!==void 0&&(h.exts=a),l!==void 0&&(h.match=l),m!==void 0&&(h.skip=m),yield*V(p,h)}else i&&E(p,a,l,m)&&(yield{path:p,...y})}}var ue=globalThis.Deno?.build.os==="windows"?"`":"\\";var B=`
|
|
3
|
-
`,J=`\r
|
|
4
|
-
`,xe=globalThis.Deno?.build.os==="windows"?J:B;export{G as a,W as b,Y as c,Z as d,Ft as e,x as f,V as g,wt as h};
|
package/chunks/chunk-RUZDG5PT.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import{f as u,h as f,k as d}from"./chunk-FGDJVQG3.js";import{b as r,d as c,e as p,f as x,g as W,j as i}from"./chunk-PLJNPQFC.js";import{b as y}from"./chunk-DOV5776P.js";import{a as C}from"./chunk-O2MNBI7V.js";import{a as g,b as w}from"./chunk-DQAEQEXD.js";import{a as te,g as G,h as z,i as V,r as H,t as o}from"./chunk-GRTR6TNJ.js";var q=()=>o.env.get("HOME")??"",v=()=>{let n=o.env.get("SHELL")??"";return n.includes("zsh")?"zsh":n.includes("fish")?"fish":"bash"},ne=n=>{let e=q();switch(n){case"zsh":return o.path.join(e,".zshrc");case"bash":return o.path.join(e,".bashrc");case"fish":return o.path.join(e,".config","fish","config.fish")}},se=(n,e)=>{let t=q();switch(n){case"zsh":return o.path.join(t,".zshrc");case"bash":return o.path.join(t,".bashrc");case"fish":return o.path.join(t,".config","fish","completions",`${e}.fish`)}},_=(n,e)=>`eval "$(${e} system completions --shell ${n})"`,re=n=>n==="fish"?"file":"eval",k=(n,e="eser")=>{let t=n??v(),s=re(t);return{shell:t,rcFile:ne(t),completionType:s,completionsFile:s==="file"?se(t,e):void 0}};var ae="# eser CLI completions",U="eser",K=async n=>{try{return await o.fs.readTextFile(n)}catch{return""}},oe=async n=>{try{return await o.fs.stat(n),!0}catch{return!1}},Y=async n=>{let e=k(n,U);if(e.completionType==="file")return await oe(e.completionsFile);let t=await K(e.rcFile),s=_(n,U);return t.includes(s)},Q=async n=>{let e=k(n,U),t=u({renderer:d.ansi(),sink:f.stdout()});try{if(e.completionType==="file"){let s=e.completionsFile,a=o.path.dirname(s);try{await o.fs.mkdir(a,{recursive:!0})}catch{}await o.fs.writeTextFile(s,`# eser CLI completions
|
|
2
|
-
# This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
|
|
3
|
-
complete -c eser -f
|
|
4
|
-
complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
|
|
5
|
-
complete -c eser -n "__fish_use_subcommand" -a "system" -d "Commands related with this CLI"
|
|
6
|
-
complete -c eser -n "__fish_use_subcommand" -a "install" -d "Install eser CLI globally"
|
|
7
|
-
complete -c eser -n "__fish_use_subcommand" -a "update" -d "Update eser CLI to latest version"
|
|
8
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "install" -d "Install eser CLI globally"
|
|
9
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "uninstall" -d "Uninstall eser CLI globally"
|
|
10
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "update" -d "Update eser CLI to latest version"
|
|
11
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "completions" -d "Generate shell completion scripts"
|
|
12
|
-
`),t.writeln(r(" "),c("Created"),r(" "),i(s))}else{let s=await K(e.rcFile),a=_(n,U);if(!s.includes(a)){let l=`
|
|
13
|
-
${ae}
|
|
14
|
-
${a}
|
|
15
|
-
`;await o.fs.writeTextFile(e.rcFile,s+l),t.writeln(r(" "),c("Added completions to"),r(" "),i(e.rcFile))}}}catch(s){t.writeln(W(` Warning: Could not add shell completions: ${s instanceof Error?s.message:String(s)}`))}await t.close()},ie=async n=>{let e=k(n,U),t=u({renderer:d.ansi(),sink:f.stdout()});try{if(e.completionType==="file"){let s=e.completionsFile;await oe(s)&&(await o.fs.remove(s),t.writeln(r(" "),c("Removed"),r(" "),i(s)))}else{let s=await K(e.rcFile);if(s===""){await t.close();return}let a=_(n,U);if(!s.includes(a)){await t.close();return}let l=s.split(`
|
|
16
|
-
`).filter(h=>!h.includes("eser system completions")).filter(h=>h!==ae).join(`
|
|
17
|
-
`).replace(/\n{3,}/g,`
|
|
18
|
-
|
|
19
|
-
`);await o.fs.writeTextFile(e.rcFile,l),t.writeln(r(" "),c("Removed completions from"),r(" "),i(e.rcFile))}}catch(s){t.writeln(W(` Warning: Could not remove shell completions: ${s instanceof Error?s.message:String(s)}`))}await t.close()};var ge={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},le={deno:{cmd:"deno",args:["install","-r","-g","-A","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["install","-g","-f","eser"]},bun:{cmd:"bun",args:["install","-g","-f","eser"]}},we=async()=>{let n=o,e=V(),t=n.path.join(e,".local","bin");try{return await n.fs.stat(t),t}catch{}return"/usr/local/bin"},xe=async()=>{let n=o,e=n.process.execPath(),t=await we(),s=n.path.join(t,"eser"),a=u({renderer:d.ansi(),sink:f.stdout()});a.writeln(r("Install method: "),i("compiled binary")),a.writeln(c(`Copying to ${s}...`));try{await n.fs.copyFile(e,s),await n.fs.chmod(s,493)}catch(m){if(m instanceof Deno.errors.PermissionDenied)return a.writeln(p(`
|
|
20
|
-
Permission denied writing to ${t}.
|
|
21
|
-
Try: sudo eser install`)),await a.close(),w({exitCode:1});throw await a.close(),m}a.writeln(x(`
|
|
22
|
-
Installation complete!`)),a.writeln(r("You can now use "),i("eser"),r(" from anywhere in your terminal."));let l=v();if(!await Y(l)){a.writeln(r(`
|
|
23
|
-
Setting up `),i(l),r(" completions...")),await Q(l);let m=k(l);m.completionType==="eval"&&a.writeln(c(` Restart your shell or run 'source ${m.rcFile}' to enable completions.`))}return await a.close(),g(void 0)},ye=async n=>{let e=await H(ge);if(e.invoker==="binary")return await xe();let t=u({renderer:d.ansi(),sink:f.stdout()});t.writeln(r("Detected runtime: "),i(e.runtime));let s=le[e.runtime]??le.node,{cmd:a,args:l}=s;t.writeln(c(`Running: ${a} ${l.join(" ")}`)),t.writeln();let h=await y`${a} ${l}`.stdout("inherit").stderr("inherit").noThrow().spawn();if(!h.success)return t.writeln(p(`
|
|
24
|
-
Installation failed.`)),await t.close(),w({exitCode:h.code});t.writeln(x(`
|
|
25
|
-
Installation complete!`)),t.writeln(r("You can now use "),i("eser"),r(" from anywhere in your terminal."));let m=v();if(!await Y(m)){t.writeln(r(`
|
|
26
|
-
Setting up `),i(m),r(" completions...")),await Q(m);let S=k(m);S.completionType==="eval"&&t.writeln(c(` Restart your shell or run 'source ${S.rcFile}' to enable completions.`))}return await t.close(),g(void 0)};var Ce={deno:{cmd:"deno",args:["uninstall","-g","eser"]},node:{cmd:"npm",args:["uninstall","-g","eser"]},bun:{cmd:"bun",args:["remove","-g","eser"]}},ve=async n=>{let e=te(),t=u({renderer:d.ansi(),sink:f.stdout()});t.writeln(r("Detected runtime: "),i(e));let s=Ce[e];if(s===void 0){let N=d.ansi();return await t.close(),w({message:`${N.render([p(`
|
|
27
|
-
Unsupported runtime: ${e}`)])}
|
|
28
|
-
Global uninstallation is only supported for Deno, Node.js, and Bun.`,exitCode:1})}let{cmd:a,args:l}=s,h=v();t.writeln(r(`
|
|
29
|
-
Removing `),i(h),r(" completions...")),await ie(h),t.writeln(c(`
|
|
30
|
-
Running: ${a} ${l.join(" ")}`)),t.writeln();let m=await y`${a} ${l}`.stdout("inherit").stderr("inherit").noThrow().spawn();return m.success?(t.writeln(x(`
|
|
31
|
-
Uninstallation complete!`)),t.writeln(r("The "),i("eser"),r(" command has been removed from your system.")),await t.close(),g(void 0)):(t.writeln(p(`
|
|
32
|
-
Uninstallation failed.`)),await t.close(),w({exitCode:m.code}))};var ce=".cache/eser",ke="latest-version.json",Ee=24*60*60*1e3,Pe="https://api.github.com/repos/eser/stack/releases/latest",de=()=>{let n=V();return o.path.join(n,ce,ke)},$e=()=>{let n=V();return o.path.join(n,ce)},Re=async()=>{let n=o;try{let e=de();if(!await n.fs.exists(e))return;let s=await n.fs.readTextFile(e),a=JSON.parse(s);return typeof a.latestVersion!="string"||typeof a.checkedAt!="number"?void 0:a}catch{return}},Se=async n=>{let e=o;try{let t=$e();await e.fs.ensureDir(t);let s=de(),a={latestVersion:n,checkedAt:Date.now()};await e.fs.writeTextFile(s,JSON.stringify(a))}catch{}},_e=async()=>{try{let n=await fetch(Pe,{headers:{Accept:"application/vnd.github.v3+json"}});if(!n.ok)return;let t=(await n.json()).tag_name;return typeof t!="string"?void 0:t.startsWith("v")?t.slice(1):t}catch{return}},I=async()=>{try{let n=C.version,e=await Re();if(e!==void 0&&Date.now()-e.checkedAt<Ee)return{latestVersion:e.latestVersion,currentVersion:n,updateAvailable:e.latestVersion!==n};let t=await _e();return t===void 0?void 0:(await Se(t),{latestVersion:t,currentVersion:n,updateAvailable:t!==n})}catch{return}};var Ae={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},me={deno:{cmd:"deno",args:["install","-r","-g","-A","-f","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["update","-g","-f","eser"]},bun:{cmd:"bun",args:["update","-g","-f","eser"]}},be={"linux-amd64":"x86_64-unknown-linux-gnu","linux-arm64":"aarch64-unknown-linux-gnu","darwin-amd64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin","windows-amd64":"x86_64-pc-windows-msvc"},Te=()=>{let n=G(),e=z(),t=`${n}-${e}`;return be[t]},Fe=async()=>{let n=o,e=u({renderer:d.ansi(),sink:f.stdout()});e.writeln(r("Install method: "),i("compiled binary")),e.writeln(r("Current version: "),i(C.version),r(`
|
|
33
|
-
`)),e.writeln(r("Checking for updates..."));let t=await I();if(t===void 0)return e.writeln(p("Could not check for updates.")),await e.close(),w({exitCode:1});if(!t.updateAvailable)return e.writeln(x(`
|
|
34
|
-
Already up to date (v${C.version}).`)),await e.close(),g(void 0);e.writeln(r(`
|
|
35
|
-
New version available: `),i(`v${t.latestVersion}`));let s=Te();if(s===void 0){let P=G(),b=z();return e.writeln(p(`
|
|
36
|
-
Unsupported platform: ${P}-${b}`)),await e.close(),w({exitCode:1})}let a=`v${t.latestVersion}`,l=G()==="windows",m=`eser-${a}-${s}.${l?"zip":"tar.gz"}`,N=`https://github.com/eser/stack/releases/download/${a}`;e.writeln(c(`Downloading ${m}...`));let S=await fetch(`${N}/${m}`);if(!S.ok)return e.writeln(p(`
|
|
37
|
-
Failed to download: HTTP ${S.status}`)),await e.close(),w({exitCode:1});let ee=await fetch(`${N}/SHA256SUMS.txt`);if(ee.ok){let b=(await ee.text()).split(`
|
|
38
|
-
`).find(T=>T.includes(m));if(b!==void 0){let T=b.split(/\s+/)[0],F=new Uint8Array(await S.clone().arrayBuffer()),$=await crypto.subtle.digest("SHA-256",F);if(Array.from(new Uint8Array($)).map(he=>he.toString(16).padStart(2,"0")).join("")!==T)return e.writeln(p(`
|
|
39
|
-
SHA256 checksum verification failed.`)),await e.close(),w({exitCode:1});e.writeln(c("Checksum verified."))}}let A=await n.fs.makeTempDir({prefix:"eser-update-"});try{let P=n.path.join(A,m),b=new Uint8Array(await S.arrayBuffer());await n.fs.writeFile(P,b),l?await y`powershell -Command "Expand-Archive -Path ${P} -DestinationPath ${A}"`.spawn():await y`tar -xzf ${P} -C ${A}`.spawn();let T=l?n.path.join(A,"eser.exe"):n.path.join(A,"eser"),F=n.process.execPath();if(l){let $=F.replace(/\.exe$/i,".new.exe");await n.fs.copyFile(T,$),e.writeln(x(`
|
|
40
|
-
Downloaded v${t.latestVersion}!`)),e.writeln(r(`
|
|
41
|
-
To complete the update, close this terminal and rename:
|
|
42
|
-
`),i($),r(`
|
|
43
|
-
to:
|
|
44
|
-
`),i(F))}else{let $=`${F}.new`;await n.fs.copyFile(T,$),await n.fs.chmod($,493),await n.fs.rename($,F),e.writeln(x(`
|
|
45
|
-
Updated to v${t.latestVersion}!`))}}catch(P){if(P instanceof Deno.errors.PermissionDenied)return e.writeln(p(`
|
|
46
|
-
Permission denied. Try running with sudo:
|
|
47
|
-
sudo eser update`)),await e.close(),w({exitCode:1});throw await e.close(),P}finally{try{await n.fs.remove(A,{recursive:!0})}catch{}}return await e.close(),g(void 0)},He=async n=>{let e=await H(Ae);if(e.invoker==="binary")return await Fe();let t=u({renderer:d.ansi(),sink:f.stdout()});t.writeln(r("Detected runtime: "),i(e.runtime));let s=me[e.runtime]??me.node,{cmd:a,args:l}=s;t.writeln(c(`Running: ${a} ${l.join(" ")}`)),t.writeln();let h=await y`${a} ${l}`.stdout("inherit").stderr("inherit").noThrow().spawn();return h.success?(t.writeln(x(`
|
|
48
|
-
Update complete!`)),t.writeln(r("The "),i("eser"),r(" command has been updated to the latest version.")),await t.close(),g(void 0)):(t.writeln(p(`
|
|
49
|
-
Update failed.`)),await t.close(),w({exitCode:h.code}))};var Ue=n=>{let e=k(n,"eser"),t=d.ansi();if(e.completionType==="file")return`
|
|
50
|
-
To install, run:
|
|
51
|
-
|
|
52
|
-
${t.render([c(`eser system completions --shell fish > ${e.completionsFile}`)])}
|
|
53
|
-
`;let s=_(n,"eser");return`
|
|
54
|
-
To install, add the following to your ${t.render([i(e.rcFile)])}:
|
|
55
|
-
|
|
56
|
-
${t.render([c(s)])}
|
|
57
|
-
`},je=n=>{let e=n.flags.shell,t=d.ansi(),s=u({renderer:t,sink:f.stdout()}),a;if(e!==void 0){if(!["bash","zsh","fish"].includes(e))return w({message:`${t.render([p(`Invalid shell: ${e}`)])}
|
|
58
|
-
Supported shells: bash, zsh, fish`,exitCode:1});a=e}else a=v();let h=n.root.completions(a);return e===void 0&&(s.writeln(r("Generating "),i(a),r(" completions...")),console.log(Ue(a)),s.writeln(c(`--- Completion script ---
|
|
59
|
-
`))),console.log(h),g(void 0)};var De=200,Ie=async n=>{let e=u({renderer:d.ansi(),sink:f.stdout()});if(n.flags.bare===!0)return e.writeln(r(C.version)),await e.close(),g(void 0);e.writeln(r(`eser ${C.version}`));try{let t=new Promise(a=>{setTimeout(()=>a(void 0),De)}),s=await Promise.race([I(),t]);s!==void 0&&s.updateAvailable&&e.writeln(c(` Update available: v${s.latestVersion} \u2014 run 'eser update'`))}catch{}return await e.close(),g(void 0)};var Le={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},M=17,R=u({renderer:d.ansi(),sink:f.stdout()}),L=(n,e)=>{let t=`${n}:`.padEnd(M);R.writeln(r(` ${t}`),x("\u2713"),r(` ${e}`))},E=(n,e)=>{let t=`${n}:`.padEnd(M);R.writeln(r(` ${t}`),p("\u2717"),r(` ${e}`))},pe=(n,e)=>{let t=`${n}:`.padEnd(M);R.writeln(r(` ${t}${e}`))},Ne=(n,e)=>{let t=`${n}:`.padEnd(M);R.writeln(r(` ${t}`),c("-"),r(` ${e}`))},ue=async n=>{try{return await o.fs.stat(n),!0}catch{return!1}},Ve=async n=>{try{return await o.fs.readTextFile(n)}catch{return""}},fe=(n,e)=>n.match(e)?.[1],Oe=async()=>{let n=o.path.join(".",".git","hooks","pre-commit");if(!await ue(n)){E("Git hooks","Not installed");return}(await Ve(n)).includes("eser")?L("Git hooks","Installed"):E("Git hooks","Not installed")},Ge=async()=>{let n=o.path.join(".",".manifest.yml");await ue(n)?L("Manifest",".manifest.yml found"):E("Manifest",".manifest.yml not found")},Be=async()=>{try{let n=await y`deno --version`.noThrow().quiet().text(),e=fe(n,/deno\s+(\S+)/);e!==void 0?L("Deno",e):E("Deno","Not found")}catch{E("Deno","Not found")}},Me=async()=>{try{let n=await y`go version`.noThrow().quiet().text(),e=fe(n,/go(\d+\.\d+(?:\.\d+)?)/);e!==void 0?L("Go",e):E("Go","Not found")}catch{E("Go","Not found")}},ze=async()=>{try{let e=(await y`node --version`.noThrow().quiet().text()).trim();e.length>0?L("Node",e):E("Node","Not found")}catch{E("Node","Not found")}},We=async n=>{R.writeln(r(`eser doctor
|
|
60
|
-
`));let e=await H(Le);pe("Install method",`${e.invoker} (${e.mode})`),pe("Version",C.version);let t=await I();return t===void 0?Ne("Update","Could not check for updates"):t.updateAvailable?E("Update",`Update available: v${t.latestVersion}`):L("Update","Up to date"),R.writeln(),await Oe(),await Ge(),R.writeln(),await Be(),await Me(),await ze(),await R.close(),g(void 0)};export{ye as a,ve as b,He as c,je as d,Ie as e,We as f};
|
package/chunks/chunk-SCCNNGD4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-VFMYWG2I.js";var r=o({name:"validate-trailing-whitespace",description:"Remove trailing whitespace from lines",canFix:!0,stacks:[],defaults:{},checkFile(a,i){if(i===void 0)return[];let t=[],n=i.split(`
|
|
2
|
-
`);for(let e=0;e<n.length;e++)/[ \t]+$/.test(n[e])&&t.push({path:a.path,line:e+1,message:"trailing whitespace"});return t},fixFile(a,i){let t=i.replace(/[ \t]+$/gm,"");if(t!==i)return{path:a.path,oldContent:i,newContent:t}}}),c=r.run,u=r.validator,d=r.main;export{r as a,c as b,u as c,d};
|
package/chunks/chunk-SCULX2ND.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var g=["registry/v1"],h=["file","folder"],w=["local","github"],m=r=>r==="project"||r==="structure"||r==="utility",R=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.source!="string"||typeof e.target!="string"||e.kind!==void 0&&!h.includes(e.kind)||e.provider!==void 0&&!w.includes(e.provider))},$=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(e.go!==void 0&&!Array.isArray(e.go)||e.jsr!==void 0&&!Array.isArray(e.jsr)||e.npm!==void 0&&!Array.isArray(e.npm))},b=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.name!="string"||e.name===""||typeof e.description!="string"||e.default!==void 0&&typeof e.default!="string"||e.prompt!==void 0&&typeof e.prompt!="string")},f=r=>{if(typeof r!="object"||r===null)return!1;let e=r;if(typeof e.name!="string"||e.name===""||typeof e.description!="string"||typeof e.language!="string"||!m(e.scale)||!Array.isArray(e.files)||e.files.length===0)return!1;for(let t of e.files)if(!R(t))return!1;if(e.dependencies!==void 0&&!$(e.dependencies)||e.tags!==void 0&&!Array.isArray(e.tags))return!1;if(e.requires!==void 0){if(!Array.isArray(e.requires))return!1;for(let t of e.requires)if(typeof t!="string")return!1}if(e.variables!==void 0){if(!Array.isArray(e.variables))return!1;for(let t of e.variables)if(!b(t))return!1}if(e.postInstall!==void 0){if(!Array.isArray(e.postInstall))return!1;for(let t of e.postInstall)if(typeof t!="string")return!1}return!0},d=r=>{if(typeof r!="object"||r===null)throw new Error("Registry manifest must be a JSON object");let e=r;if(e.$schema!==void 0){let i=String(e.$schema);g.some(s=>i.includes(s))||console.warn(`Warning: Registry uses unknown schema "${i}". This CLI supports v1.`)}if(typeof e.name!="string"||e.name==="")throw new Error("Registry manifest requires a non-empty 'name' field");if(typeof e.description!="string")throw new Error("Registry manifest requires a 'description' field");if(typeof e.author!="string")throw new Error("Registry manifest requires an 'author' field");if(typeof e.registryUrl!="string"||e.registryUrl==="")throw new Error("Registry manifest requires a non-empty 'registryUrl' field");if(!Array.isArray(e.recipes))throw new Error("Registry manifest requires a 'recipes' array");for(let i of e.recipes)if(!f(i)){let o=typeof i=="object"&&i!==null?i.name??"<unknown>":"<invalid>";throw new Error(`Invalid recipe definition: '${o}'`)}let t=e.recipes,n=new Set;for(let i of t){if(n.has(i.name))throw new Error(`Duplicate recipe name '${i.name}' in registry`);n.add(i.name)}return r},p=r=>{if(!f(r))throw new Error("Invalid recipe definition");return r},u=(r,e)=>{let t=r.replace(/\/+$/,""),n=e.replace(/^\/+/,"");return`${t}/${n}`};var F=3e4,S="https://raw.githubusercontent.com/eser/stack/main/etc/registry/eser-registry.json",k="etc/registry/eser-registry.json",l=async r=>await globalThis.fetch(r,{signal:AbortSignal.timeout(F)}),A=async()=>{let r=Deno.cwd();for(let e=0;e<10;e++){let t=`${r}/${k}`;try{return await Deno.stat(t),t}catch{let n=r.replace(/\/[^/]+$/,"");if(n===r)break;r=n}}},j=async(r,e)=>{let t=r??S;if(e?.local===!0&&r===void 0){let s=await A();s!==void 0&&(t=s,e?.verbose===!0&&console.log(`Using local registry: ${s}`))}let n=t.startsWith("http://")||t.startsWith("https://");e?.verbose===!0&&console.log(`Fetching registry from: ${t}`);let i;if(n){let s=await l(t);if(!s.ok)throw new Error(`Could not reach registry at ${t}. HTTP ${s.status}`);i=await s.text()}else try{i=await Deno.readTextFile(t)}catch{throw new Error(`Could not read registry file at ${t}`)}let o;try{o=JSON.parse(i)}catch{throw new Error(`Registry at ${t} is not valid JSON`)}return d(o)},I=async(r,e)=>{let t=u(r,e),n=await l(t);if(!n.ok)throw new Error(`Could not fetch recipe file at ${t}. HTTP ${n.status}`);return await n.text()},P=r=>{let e=r.match(/^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([^/]+)(?:\/(.*))?$/);if(e!==null)return{owner:e[1],repo:e[2],ref:e[3],basePath:e[4]??""}},U=async(r,e)=>{let t=P(r);if(t===void 0)throw new Error(`Cannot fetch folder: registry URL '${r}' is not a GitHub raw URL`);let n=t.basePath?`${t.basePath}/${e}`.replace(/\/+/g,"/"):e,i=`https://api.github.com/repos/${t.owner}/${t.repo}/contents/${n}?ref=${t.ref}`,o=await l(i);if(!o.ok)throw new Error(`Could not list folder '${n}' from ${t.owner}/${t.repo}. HTTP ${o.status}`);let s=await o.json();if(!Array.isArray(s))throw new Error(`Expected directory listing for '${n}', got a file instead`);let y=s.filter(a=>a.type==="file").map(async a=>{if(a.download_url===null)throw new Error(`File '${a.path}' has no download URL (may be too large)`);let c=await l(a.download_url);if(!c.ok)throw new Error(`Could not fetch file '${a.path}'. HTTP ${c.status}`);return{path:a.path.startsWith(n)?a.path.slice(n.length).replace(/^\//,""):a.path,content:await c.text()}});return await Promise.all(y)},_=async(r,e,t="main",n="recipe.json")=>{let i=`https://raw.githubusercontent.com/${r}/${e}/${t}/${n}`,o=await l(i);if(!o.ok)throw new Error(`Could not fetch recipe from ${r}/${e}@${t}/${n}. HTTP ${o.status}`);let s;try{s=JSON.parse(await o.text())}catch{throw new Error(`Recipe file at ${r}/${e}@${t}/${n} is not valid JSON`)}return p(s)};export{F as a,S as b,k as c,l as d,A as e,j as f,I as g,P as h,U as i,_ as j};
|
package/chunks/chunk-VGFZXQMW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-VFMYWG2I.js";var o=1024,i=a({name:"validate-large-files",description:"Detect files exceeding size limit",canFix:!1,stacks:[],defaults:{maxKb:o},checkAll(n,r){let t=r.maxKb??o,l=t*1024,s=[];for(let e of n)if(e.size>l){let c=Math.round(e.size/1024);s.push({path:e.path,message:`file is ${c}KB (max: ${t}KB)`})}return s}}),d=i.run,f=i.validator,x=i.main;export{i as a,d as b,f as c,x as d};
|