eser 4.1.27 → 4.1.30
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/README.md +1 -1
- package/chunks/add-5SDE43IH.js +8 -0
- package/chunks/anthropic-2MXDKLNX.js +2 -0
- package/chunks/approve-XNUZYGYJ.js +2 -0
- package/chunks/{ask-TFJCKH5G.js → ask-L3N6REQI.js} +2 -1
- package/chunks/block-NWIP4USQ.js +2 -0
- package/chunks/{browser-XCMD2IZQ.js → browser-SG2DBNGS.js} +2 -1
- package/chunks/{build-2W7YVR7J.js → build-6DCIDFY7.js} +3 -2
- package/chunks/bun-3AACRJXG.js +2 -0
- package/chunks/{changelog-gen-QDUA5G5K.js → changelog-gen-7V37P7PE.js} +2 -1
- package/chunks/{chunk-WUJUQPHI.js → chunk-2BOCLC67.js} +2 -1
- package/chunks/chunk-2EVWKUN6.js +5 -0
- package/chunks/chunk-2TP6IMXY.js +2 -0
- package/chunks/{chunk-6U2VEZEM.js → chunk-2VEVVX6U.js} +2 -1
- package/chunks/{chunk-VVHXAOEH.js → chunk-32HV3K27.js} +2 -1
- package/chunks/{chunk-NUSNMQPL.js → chunk-3BEX5FYF.js} +2 -1
- package/chunks/{chunk-4HAIX3WN.js → chunk-3KCPUYLZ.js} +2 -1
- package/chunks/{chunk-EBYJBBYV.js → chunk-3MM5EGFB.js} +2 -1
- package/chunks/{chunk-XMCQMTAA.js → chunk-3QIPK7NI.js} +2 -1
- package/chunks/chunk-3SXTMY75.js +2 -0
- package/chunks/{chunk-34GCQZ3Z.js → chunk-3XJLLDR5.js} +1 -0
- package/chunks/chunk-3YUV3QIZ.js +61 -0
- package/chunks/{chunk-3K42AALS.js → chunk-455V3AE5.js} +2 -1
- package/chunks/{chunk-ZED5RIVL.js → chunk-46ZWBKIW.js} +2 -1
- package/chunks/{chunk-KAEAT6A4.js → chunk-4DOMGQOO.js} +2 -1
- package/chunks/chunk-4SYC4WJV.js +3 -0
- package/chunks/{chunk-BDTJR6UH.js → chunk-4WQGB7NO.js} +2 -1
- package/chunks/{chunk-U47ABJCC.js → chunk-536RBSFU.js} +2 -1
- package/chunks/{chunk-G34MS4XJ.js → chunk-5MWX3POX.js} +2 -1
- package/chunks/chunk-5PNGVDLV.js +2 -0
- package/chunks/chunk-6QC7ILI5.js +2 -0
- package/chunks/{chunk-GLSCZGXA.js → chunk-7ATUODBM.js} +2 -1
- package/chunks/{chunk-ETMOOGY2.js → chunk-7BFBOLLC.js} +2 -1
- package/chunks/{chunk-USCAYIWL.js → chunk-7DPLGQHN.js} +1 -0
- package/chunks/{chunk-W3REWI3H.js → chunk-7NUMDHE2.js} +2 -1
- package/chunks/chunk-7ZYDAZBD.js +1 -0
- package/chunks/{chunk-DQAEQEXD.js → chunk-A6RDYP6R.js} +2 -1
- package/chunks/{chunk-AKJB4CER.js → chunk-AGRTWPDI.js} +2 -1
- package/chunks/{chunk-ZE5T64HQ.js → chunk-AP72BKVG.js} +1 -0
- package/chunks/{chunk-GETSWLMF.js → chunk-B5IPHVXT.js} +3 -2
- package/chunks/{chunk-PO3SXFUE.js → chunk-BCPCQHDL.js} +2 -1
- package/chunks/{chunk-5MN3MWQN.js → chunk-BNQAZLIQ.js} +1 -0
- package/chunks/{chunk-C3PZVQ3Z.js → chunk-BP3IFAPO.js} +2 -1
- package/chunks/{chunk-T7K64JD5.js → chunk-CDPSH56U.js} +1 -0
- package/chunks/chunk-CEYKWASA.js +2 -0
- package/chunks/{chunk-YQU3TEIG.js → chunk-CKNA5LIK.js} +2 -1
- package/chunks/{chunk-GVSBZ6JV.js → chunk-CLL3YG4W.js} +2 -1
- package/chunks/{chunk-3OEM65F2.js → chunk-COKZ6MLN.js} +3 -2
- package/chunks/{chunk-4H4O3TGK.js → chunk-CUIMSX4V.js} +2 -1
- package/chunks/{chunk-AK3OJD4W.js → chunk-DAK2I7UC.js} +2 -1
- package/chunks/{chunk-ACQUINWH.js → chunk-DTO2YJWZ.js} +1 -0
- package/chunks/{chunk-TUTRX7VR.js → chunk-EBCQCAQ7.js} +2 -1
- package/chunks/{chunk-NGZZAQ7G.js → chunk-ER4ZWF4Y.js} +2 -1
- package/chunks/chunk-F5BPXG5L.js +13 -0
- package/chunks/{chunk-H4OFOQQ2.js → chunk-FORPNESQ.js} +2 -1
- package/chunks/{chunk-DXB73IDG.js → chunk-G6NAG2EK.js} +1 -0
- package/chunks/chunk-GBM3TZFD.js +40 -0
- package/chunks/{chunk-6FMPNAZ3.js → chunk-GE3LJ6QM.js} +2 -1
- package/chunks/{chunk-Y6DZEK4W.js → chunk-GTHXGAMQ.js} +1 -0
- package/chunks/{chunk-JOXKA7TJ.js → chunk-H4SPMUT6.js} +2 -1
- package/chunks/{chunk-CPRLAMEG.js → chunk-HVLKXRPA.js} +2 -1
- package/chunks/{chunk-U65FD6J3.js → chunk-HVOPUZOM.js} +2 -1
- package/chunks/{chunk-6HYGGBEQ.js → chunk-HYT26FYU.js} +2 -1
- package/chunks/{chunk-Q54LOR4S.js → chunk-I4C675WP.js} +2 -1
- package/chunks/chunk-IDMI5OBK.js +3 -0
- package/chunks/{chunk-LOFP256P.js → chunk-J2Z7NG2X.js} +1 -0
- package/chunks/{chunk-OLM5RTFK.js → chunk-J7YTWK67.js} +1 -0
- package/chunks/chunk-JOTAKQMZ.js +2 -0
- package/chunks/chunk-JYNHFD6B.js +140 -0
- package/chunks/chunk-K6H7JTIH.js +2 -0
- package/chunks/chunk-K7MYEXOS.js +2 -0
- package/chunks/{chunk-UNL4H5EY.js → chunk-KKBIUT5L.js} +2 -1
- package/chunks/{chunk-UKYKMDYU.js → chunk-KPWEJXPI.js} +2 -1
- package/chunks/{chunk-QIYWONJL.js → chunk-KQE6FMKW.js} +2 -1
- package/chunks/{chunk-OBIEQJDE.js → chunk-LCG4SK6K.js} +2 -1
- package/chunks/chunk-LNNNLUZT.js +2 -0
- package/chunks/{chunk-HPPFA3XU.js → chunk-MG65QJY6.js} +1 -0
- package/chunks/{chunk-YXSB6RET.js → chunk-MRCBHVSB.js} +2 -1
- package/chunks/{chunk-AAV7D6DF.js → chunk-MXGRYONZ.js} +2 -1
- package/chunks/{chunk-4VL2RZIN.js → chunk-N2VBT43E.js} +2 -1
- package/chunks/{chunk-A2GDVOQP.js → chunk-N7DXBY3O.js} +2 -1
- package/chunks/{chunk-2J2PXBOC.js → chunk-NBA6EFWU.js} +1 -0
- package/chunks/{chunk-YMY2URYM.js → chunk-NP723K5L.js} +2 -1
- package/chunks/{chunk-RBB5ITAS.js → chunk-NTHP6SND.js} +2 -1
- package/chunks/chunk-OX6ZNNUB.js +2 -0
- package/chunks/chunk-P2TABZ4A.js +3 -0
- package/chunks/chunk-P74JF7XR.js +4 -0
- package/chunks/{chunk-3APERFKY.js → chunk-P7WCO724.js} +1 -0
- package/chunks/{chunk-FKF2SWQM.js → chunk-PE2TDUXD.js} +1 -0
- package/chunks/chunk-PVPMHMKP.js +4 -0
- package/chunks/chunk-PWLF3WXM.js +1 -0
- package/chunks/{chunk-TXL6YOFL.js → chunk-Q2KSOC32.js} +2 -1
- package/chunks/{chunk-ANY26ROY.js → chunk-QOX7VSID.js} +2 -1
- package/chunks/{chunk-SBOTNOWZ.js → chunk-RGUETQSC.js} +2 -1
- package/chunks/{chunk-4S7QYPS6.js → chunk-S7S2I2K5.js} +1 -0
- package/chunks/{chunk-NLNSK3KE.js → chunk-SOBOSRJB.js} +2 -1
- package/chunks/chunk-SOSF762G.js +1 -0
- package/chunks/{chunk-DWYVBWBP.js → chunk-SQINSLNL.js} +2 -1
- package/chunks/{chunk-FDZP7B5Y.js → chunk-STI6DX7K.js} +1 -0
- package/chunks/{chunk-762C2IM6.js → chunk-TDQRRGDJ.js} +2 -1
- package/chunks/{chunk-IA7GIU76.js → chunk-TFPT4BDY.js} +2 -1
- package/chunks/chunk-U2MR2O3C.js +2 -0
- package/chunks/chunk-UESOCN2G.js +2 -0
- package/chunks/chunk-UJ6LH5FY.js +2 -0
- package/chunks/{chunk-NTPOK5H6.js → chunk-VC6ERZSI.js} +2 -1
- package/chunks/{chunk-5RK3346P.js → chunk-VG72SSDI.js} +2 -1
- package/chunks/chunk-W3RVRCUB.js +2 -0
- package/chunks/{chunk-ZH37DSUQ.js → chunk-WF6JNPZS.js} +1 -0
- package/chunks/chunk-WG6J7DFO.js +7 -0
- package/chunks/chunk-XU5SILYR.js +2 -0
- package/chunks/chunk-XVSIRN6G.js +4 -0
- package/chunks/chunk-Y4ARZGGL.js +2 -0
- package/chunks/{chunk-3EFU5R2M.js → chunk-Y53YTL4C.js} +2 -1
- package/chunks/{chunk-YWCEHTZB.js → chunk-YQVWAWMO.js} +2 -1
- package/chunks/{chunk-ZF2XYULB.js → chunk-YTF3BAQS.js} +1 -0
- package/chunks/{chunk-QIODVVTY.js → chunk-YVIGHK4H.js} +2 -1
- package/chunks/{chunk-CKD2KOHA.js → chunk-ZNGLZECE.js} +2 -1
- package/chunks/claude-code-VUBEU7RR.js +2 -0
- package/chunks/clone-H3UAEVVP.js +6 -0
- package/chunks/{commitmsg-ZGOEO5YG.js → commitmsg-UK2ABB7D.js} +3 -2
- package/chunks/concern-Y7LJ2MWE.js +2 -0
- package/chunks/{deno-MMJLKXAE.js → deno-7BSPHDRG.js} +2 -1
- package/chunks/{dev-JHAHGTZP.js → dev-XBH6C6DH.js} +3 -2
- package/chunks/done-DIN56LXZ.js +2 -0
- package/chunks/file-tools-shared-G36OYF5S.js +2 -0
- package/chunks/{fileFromPath-4UEDFJ4U.js → fileFromPath-MB3IRZVW.js} +2 -1
- package/chunks/gemini-F4KLO5VU.js +2 -0
- package/chunks/gh-RKKHKA3B.js +5 -0
- package/chunks/{gh-contributors-G3QZZAUO.js → gh-contributors-X7BW57DD.js} +2 -1
- package/chunks/{init-IPZHDMAH.js → init-32DVDSNZ.js} +4 -3
- package/chunks/init-PBLGKCHC.js +2 -0
- package/chunks/install-LM44N3DB.js +3 -0
- package/chunks/invoke-hook-4DBMDFA5.js +10 -0
- package/chunks/kiro-HQLXD6ZU.js +2 -0
- package/chunks/list-5TGTYMAU.js +2 -0
- package/chunks/{list-DSVIPH45.js → list-N4ZKDFW7.js} +2 -1
- package/chunks/{list-2RZIQZGH.js → list-PY3A762R.js} +2 -1
- package/chunks/load-config-FTQMJVEW.js +2 -0
- package/chunks/{main-FQFNY7SM.js → main-JTYNMHNL.js} +3 -2
- package/chunks/manifest-NF2EK757.js +2 -0
- package/chunks/mod-4ILLF5PK.js +2 -0
- package/chunks/mod-5WXRQGLS.js +28 -0
- package/chunks/mod-FEGQZ3ZY.js +2 -0
- package/chunks/{mod-TSU5UWXA.js → mod-HKYPZOU7.js} +2 -1
- package/chunks/mod-IILBPQMK.js +2 -0
- package/chunks/mod-JI2A2546.js +2 -0
- package/chunks/mod-JZNE2HH6.js +2 -0
- package/chunks/{mod-WYRORC72.js → mod-MLRQFSBE.js} +2 -1
- package/chunks/{mod-VZPKQ7DG.js → mod-NCF6OSXO.js} +2 -1
- package/chunks/{mod-TLLZ3NAM.js → mod-SA3J2VR5.js} +2 -1
- package/chunks/{mod-QJMMYECF.js → mod-Y4UHOKMZ.js} +3 -2
- package/chunks/mod-YX3JRMSI.js +2 -0
- package/chunks/{new-EAETGSIR.js → new-BOGCXTIY.js} +2 -1
- package/chunks/next-NQOJEFA5.js +4 -0
- package/chunks/{node-RWYXITVV.js → node-KCQF6QQA.js} +2 -1
- package/chunks/node-MFKYO4CY.js +2 -0
- package/chunks/ollama-36F5QAOO.js +2 -0
- package/chunks/openai-EU5TJZ5T.js +2 -0
- package/chunks/{openai-EKIA3VP3.js → openai-IKXRJYI3.js} +2 -1
- package/chunks/opencode-7J3JDC44.js +2 -0
- package/chunks/purge-SQ6NCKWN.js +5 -0
- package/chunks/recipe-applier-6QZYAZ57.js +2 -0
- package/chunks/registry-fetcher-76ISLGRR.js +2 -0
- package/chunks/{release-3BKLVESS.js → release-WKMSWXDS.js} +3 -2
- package/chunks/{release-notes-734LKEJB.js → release-notes-GOUHBQ2F.js} +2 -1
- package/chunks/{release-tag-YX727TXO.js → release-tag-5WNEA4HM.js} +2 -1
- package/chunks/reset-EYLAZVKO.js +2 -0
- package/chunks/rule-HV7DARH6.js +3 -0
- package/chunks/run-CPCSTIAL.js +4 -0
- package/chunks/{run-ES4BLQQX.js → run-RGEZUAPM.js} +3 -2
- package/chunks/{scripts-COIXD5AD.js → scripts-JK6W2MCO.js} +2 -1
- package/chunks/{sdk-5JGXLIO5.js → sdk-MXV452BR.js} +2 -1
- package/chunks/serve-DEYVWV2K.js +4 -0
- package/chunks/{server-RYWDAYED.js → server-KNWQV2HW.js} +2 -1
- package/chunks/spec-JCR5EYCU.js +2 -0
- package/chunks/status-O5HUGPGE.js +2 -0
- package/chunks/sync-ZOU46K25.js +2 -0
- package/chunks/system-BJCQKFCP.js +2 -0
- package/chunks/system-X3EJ3FN3.js +2 -0
- package/chunks/{unstable_chmod-WRDBWEC2.js → unstable_chmod-GDQI7NKH.js} +2 -1
- package/chunks/update-4C4WNXCE.js +6 -0
- package/chunks/validate-bom-KEC4IOKO.js +2 -0
- package/chunks/validate-case-conflict-ZZKZQQX4.js +2 -0
- package/chunks/validate-circular-deps-QCJYK5K5.js +2 -0
- package/chunks/validate-commit-msg-PZZ4T4QF.js +2 -0
- package/chunks/validate-docs-M55HAXPX.js +2 -0
- package/chunks/validate-eof-MX52AUUT.js +2 -0
- package/chunks/validate-export-names-UFXPIDFW.js +2 -0
- package/chunks/validate-filenames-LXIMPWRW.js +2 -0
- package/chunks/validate-json-TABLVKEH.js +2 -0
- package/chunks/validate-large-files-CMCMEGYA.js +2 -0
- package/chunks/validate-licenses-MDGIDYNC.js +2 -0
- package/chunks/validate-line-endings-K36HS73S.js +2 -0
- package/chunks/validate-merge-conflict-PMGZYM3B.js +2 -0
- package/chunks/validate-mod-exports-M3UYNBK7.js +2 -0
- package/chunks/validate-package-configs-V5LR7K5C.js +2 -0
- package/chunks/validate-secrets-IAMY5DB5.js +2 -0
- package/chunks/validate-shebangs-GUBDNU2N.js +2 -0
- package/chunks/validate-submodules-ZA2FAF3W.js +2 -0
- package/chunks/validate-symlinks-LSEEVFTR.js +2 -0
- package/chunks/validate-toml-JLQ3BY73.js +2 -0
- package/chunks/validate-trailing-whitespace-3UUUKE22.js +2 -0
- package/chunks/validate-yaml-2BG7G35N.js +2 -0
- package/chunks/versions-IVXYMSAZ.js +2 -0
- package/chunks/vertexai-EXTYPVHK.js +2 -0
- package/chunks/watch-YKYNWTZF.js +9 -0
- package/chunks/workerd-VVSAKLDZ.js +2 -0
- package/eser.js +2 -1
- package/package.json +1 -1
- package/chunks/add-ORJYWG26.js +0 -7
- package/chunks/anthropic-SL274RBQ.js +0 -1
- package/chunks/approve-5NJ4JWD3.js +0 -1
- package/chunks/block-ADHHHUFZ.js +0 -1
- package/chunks/bun-YFFBDKUJ.js +0 -1
- package/chunks/chunk-3I4JG3PJ.js +0 -1
- package/chunks/chunk-5AK4OGCO.js +0 -1
- package/chunks/chunk-AYSPDG4K.js +0 -1
- package/chunks/chunk-BCHXUKWW.js +0 -3
- package/chunks/chunk-BK2BDHKB.js +0 -1
- package/chunks/chunk-DDLQMSA7.js +0 -0
- package/chunks/chunk-GXPLME3K.js +0 -14
- package/chunks/chunk-HTBLWLKV.js +0 -1
- package/chunks/chunk-LXVBR775.js +0 -1
- package/chunks/chunk-MYSTBVWT.js +0 -2
- package/chunks/chunk-NT2MQK7O.js +0 -6
- package/chunks/chunk-PLJNPQFC.js +0 -1
- package/chunks/chunk-Q7QMINSQ.js +0 -0
- package/chunks/chunk-QZY4BKI7.js +0 -1
- package/chunks/chunk-RYLOB2JU.js +0 -1
- package/chunks/chunk-SG4G3OOO.js +0 -1
- package/chunks/chunk-TTYO2XJO.js +0 -32
- package/chunks/chunk-V2N5L24J.js +0 -2
- package/chunks/chunk-Z4WPWVC7.js +0 -10
- package/chunks/chunk-ZO7RUTSQ.js +0 -60
- package/chunks/chunk-ZOZYBQX2.js +0 -0
- package/chunks/claude-code-K37KYX7W.js +0 -1
- package/chunks/clone-PAQMCIA3.js +0 -5
- package/chunks/file-tools-shared-77P7MI54.js +0 -1
- package/chunks/gemini-ARTUPDPZ.js +0 -1
- package/chunks/gh-SXEDNWHD.js +0 -4
- package/chunks/init-3GXDO32O.js +0 -1
- package/chunks/install-VY2L6NDB.js +0 -2
- package/chunks/kiro-XQDHURLU.js +0 -1
- package/chunks/list-V2HZCPDN.js +0 -1
- package/chunks/load-config-KG4RTCR2.js +0 -1
- package/chunks/manifest-5CYL3HR3.js +0 -1
- package/chunks/mod-5ACKR2OE.js +0 -1
- package/chunks/mod-6P2JPEHC.js +0 -1
- package/chunks/mod-CUIGNRIK.js +0 -1
- package/chunks/mod-NSY6WUYH.js +0 -27
- package/chunks/mod-U6LEXPVR.js +0 -1
- package/chunks/mod-WX4P6LGJ.js +0 -1
- package/chunks/next-F2BIIAZC.js +0 -3
- package/chunks/node-SMAAGOR3.js +0 -1
- package/chunks/ollama-6JZ2IKR7.js +0 -1
- package/chunks/openai-XMIVMDDL.js +0 -1
- package/chunks/opencode-CHIAJALZ.js +0 -1
- package/chunks/recipe-applier-R4YJPGQR.js +0 -1
- package/chunks/registry-fetcher-J6X32PGP.js +0 -1
- package/chunks/reset-PAPDZIDC.js +0 -1
- package/chunks/rule-4GNOR3GE.js +0 -2
- package/chunks/serve-B4V2BCWM.js +0 -3
- package/chunks/spec-SNAUMQSR.js +0 -1
- package/chunks/status-CY5IKIYS.js +0 -1
- package/chunks/sync-OAPV43JS.js +0 -1
- package/chunks/system-5A6DQLM5.js +0 -1
- package/chunks/system-JWO27FMA.js +0 -1
- package/chunks/update-O75M4SDJ.js +0 -5
- package/chunks/validate-bom-6G7EYFOP.js +0 -1
- package/chunks/validate-case-conflict-OWHWRTSQ.js +0 -1
- package/chunks/validate-circular-deps-TCYSZKME.js +0 -1
- package/chunks/validate-commit-msg-UPJJ7E4M.js +0 -1
- package/chunks/validate-docs-ZTCE5XLF.js +0 -1
- package/chunks/validate-eof-6RMNMAWI.js +0 -1
- package/chunks/validate-export-names-5ZVQ4PGM.js +0 -1
- package/chunks/validate-filenames-5YB27RN4.js +0 -1
- package/chunks/validate-json-6CLTN4AN.js +0 -1
- package/chunks/validate-large-files-KEMHYWKH.js +0 -1
- package/chunks/validate-licenses-WIVY6G5Z.js +0 -1
- package/chunks/validate-line-endings-KNFYAVBG.js +0 -1
- package/chunks/validate-merge-conflict-PYKGIFY5.js +0 -1
- package/chunks/validate-mod-exports-X5UZPD7J.js +0 -1
- package/chunks/validate-package-configs-SYKEIB53.js +0 -1
- package/chunks/validate-secrets-BWDFWN64.js +0 -1
- package/chunks/validate-shebangs-MP6VTLWO.js +0 -1
- package/chunks/validate-submodules-RQXISWKG.js +0 -1
- package/chunks/validate-symlinks-IPRYMDZD.js +0 -1
- package/chunks/validate-toml-KJZK7QVM.js +0 -1
- package/chunks/validate-trailing-whitespace-RO42VWQG.js +0 -1
- package/chunks/validate-yaml-H7G726ZM.js +0 -1
- package/chunks/versions-KW5UTMNV.js +0 -1
- package/chunks/vertexai-TPGIAJNA.js +0 -1
- package/chunks/workerd-LKKH32SO.js +0 -1
|
@@ -1 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
1
2
|
var i=class extends Error{capability;runtimeName;constructor(e,r){super(`Capability "${e}" is not available on runtime "${r}"`),this.name="RuntimeCapabilityError",this.capability=e,this.runtimeName=r}},o=class extends Error{path;constructor(e){super(`No such file or directory: ${e}`),this.name="NotFoundError",this.path=e}},s=class extends Error{path;constructor(e){super(`File or directory already exists: ${e}`),this.name="AlreadyExistsError",this.path=e}},a=class extends Error{cmd;code;stderr;constructor(e,r,n){super(`Command "${e}" failed with exit code ${r}: ${n}`),this.name="ProcessError",this.cmd=e,this.code=r,this.stderr=n}};export{i as a,o as b,s as c,a as d};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as w}from"./chunk-4DOMGQOO.js";import{b as r,f as n,g as h}from"./chunk-3SXTMY75.js";import{a as y}from"./chunk-MG65QJY6.js";import{g as i}from"./chunk-A6RDYP6R.js";import{v}from"./chunk-MRCBHVSB.js";var m=w(),x=["ci","chore","docs","feat","fix","perf","refactor","revert","test"],C=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}.+$/,M=(p,e={})=>{let o=e.allowAsterisk??!0,a=e.allowMultipleScopes??!0,c=e.forceScope??!1,f=new Set(e.types??x),s=[],l=p.split(`
|
|
2
3
|
`)[0]?.trim()??"";if(l==="")return{valid:!1,issues:["commit message is empty"]};if(l.startsWith("Merge "))return{valid:!0,issues:[]};let d=l.match(C);if(d===null)return s.push(`invalid format: expected "type(scope): message", got: "${l}"`),{valid:!1,issues:s};let g=d[1].toLowerCase(),t=d[2];return f.has(g)||s.push(`invalid type "${g}". Must be one of: ${[...f].join(", ")}`),c&&(t===void 0||t.trim()==="")&&s.push("scope is required: use type(scope): message"),t!==void 0&&t.trim()!==""&&(t==="*"&&!o&&s.push('wildcard scope "*" is not allowed (allowAsterisk is false)'),t.includes(",")&&(a?t.split(",").map(u=>u.trim()).filter(u=>u==="").length>0&&s.push("invalid scope: each comma-separated scope must be non-empty"):s.push("multiple scopes are not allowed (allowMultipleScopes is false)"))),{valid:s.length===0,issues:s}},_=async p=>{let e=y(p??[],{string:["message"],boolean:["help"],alias:{h:"help",m:"message"}});if(e.help)return console.log(`eser codebase validate-commit-msg \u2014 Validate conventional commit format
|
|
3
4
|
`),console.log("Usage:"),console.log(" eser codebase validate-commit-msg <commit-msg-file>"),console.log(" eser codebase validate-commit-msg --message 'feat(x): msg'"),i.ok(void 0);let o;if(e.message!==void 0)o=e.message;else if(e._.length>0)try{o=await v.runtime.fs.readTextFile(String(e._[0]))}catch{return m.writeln(n("\u2717"),r(` cannot read commit message file: ${e._[0]}`)),i.fail({exitCode:1})}else return m.writeln(n("\u2717"),r(" no commit message provided")),i.fail({exitCode:1});let a=M(o);if(a.valid)return m.writeln(h("\u2713"),r(" commit message is valid")),i.ok(void 0);for(let c of a.issues)m.writeln(n("\u2717"),r(" "+c));return i.fail({exitCode:1})};export{M as a,_ as b};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as o}from"./chunk-RGUETQSC.js";var a=o({name:"validate-shebangs",description:"Validate shebang/executable consistency",canFix:!1,stacks:[],defaults:{},checkFile(t,i){return[]}}),r=a.run,l=a.validator,c=a.main;export{a,r as b,l as c,c as d};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as h}from"./chunk-WG6J7DFO.js";import{t as i}from"./chunk-MRCBHVSB.js";var d="<!-- noskills:start -->",u="<!-- noskills:end -->",w=(t,s,o="npx eser noskills")=>{let e=[d,"## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/rules/`, `.eser/specs/`, or concern files directly.","noskills gives you exactly what you need via JSON output.","","### Protocol","",` ${o} next # get current instruction`,` ${o} next --answer="your response" # submit result and advance`,"","### When to call noskills next","",`You MUST call \`${o} next\` in these situations:`,"","1. At the **START** of every conversation (first thing you do)","2. **BEFORE** creating or modifying any file (to verify you have an active task)","3. **AFTER** completing a logical unit of work (to report progress)","4. When you encounter a **DECISION** that affects architecture or scope","5. When you are **UNSURE** what to do next","","NEVER proceed with implementation without checking noskills first.","NEVER make architectural decisions independently \u2014 noskills routes them to the user."];if((s?.allowGit??!1)||e.push("","### Git is read-only","","You MUST NOT run git write commands: commit, add, push, checkout, stash,","reset, merge, rebase, cherry-pick. The user controls git. You control files.","You MAY read from git: log, diff, status, show, blame."),e.push("","### Convention discovery","","When you discover a pattern, receive a correction, or identify a recurring",'preference from the user, ask: "Should this be a permanent rule for this',`project, or just for this task?" If permanent, run: \`${o} rule add`,'"<description>"`. If just this task, note it and move on.',"Never write to `.eser/rules/` directly.","","### JSON output","","noskills returns JSON with a `phase` field and phase-specific instructions.","The `meta` block contains resume context - use it to orient yourself,","especially after compaction or at the start of a new session.","Follow the `instruction` field. Use `transition` commands to advance state."),t.length>0){e.push("","### Active Rules","");for(let n of t)e.push(`- ${n}`)}return e.push(u),e.join(`
|
|
3
|
+
`)},p=async(t,s,o,e="npx eser noskills")=>{let n=`${t}/CLAUDE.md`,a=w(s,o,e),r;try{r=await i.fs.readTextFile(n);let l=r.indexOf(d),c=r.indexOf(u);l!==-1&&c!==-1?r=r.slice(0,l)+a+r.slice(c+u.length):r=r.trimEnd()+`
|
|
4
|
+
|
|
5
|
+
`+a+`
|
|
6
|
+
`}catch{r=a+`
|
|
7
|
+
`}await i.fs.writeTextFile(n,r)};var m=async(t,s,o="npx eser noskills")=>{let e=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){e.push("## Rules","");for(let n of s)e.push(`- ${n}`);e.push("")}await i.fs.writeTextFile(`${t}/.cursorrules`,e.join(`
|
|
8
|
+
`))};var f=async(t,s,o="npx eser noskills")=>{let e=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){e.push("## Rules","");for(let n of s)e.push(`- ${n}`);e.push("")}await i.fs.mkdir(`${t}/.kiro/steering`,{recursive:!0}),await i.fs.writeTextFile(`${t}/.kiro/steering/conventions.md`,e.join(`
|
|
9
|
+
`))};var y=async(t,s,o="npx eser noskills")=>{let e=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){e.push("## Rules","");for(let n of s)e.push(`- ${n}`);e.push("")}await i.fs.mkdir(`${t}/.github`,{recursive:!0}),await i.fs.writeTextFile(`${t}/.github/copilot-instructions.md`,e.join(`
|
|
10
|
+
`))};var k=async(t,s,o="npx eser noskills")=>{let e=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){e.push("## Rules","");for(let n of s)e.push(`- ${n}`);e.push("")}await i.fs.writeTextFile(`${t}/.windsurfrules`,e.join(`
|
|
11
|
+
`))};var S=t=>({hooks:{PreToolUse:[{matcher:"Write|Edit|MultiEdit|Bash",hooks:[{type:"command",command:`${t} invoke-hook pre-tool-use`,timeout:5}]}],PostToolUse:[{matcher:"Write|Edit|MultiEdit",hooks:[{type:"command",command:`${t} invoke-hook post-file-write`,timeout:3}]},{matcher:"Bash",hooks:[{type:"command",command:`${t} invoke-hook post-bash`,timeout:3}]}],Stop:[{hooks:[{type:"command",command:`${t} invoke-hook stop`,timeout:10}]}]}}),g=async(t,s="npx eser noskills")=>{let o=`${t}/.claude/settings.json`,e={};try{let r=await i.fs.readTextFile(o);e=JSON.parse(r)}catch{}let n=S(s),a={...e,...n};await i.fs.mkdir(`${t}/.claude`,{recursive:!0}),await i.fs.writeTextFile(o,JSON.stringify(a,null,2)+`
|
|
12
|
+
`)};var $=async t=>{let s=`${t}/${h.rulesDir}`,o=[];try{for await(let e of i.fs.readDir(s))if(e.isFile&&(e.name.endsWith(".md")||e.name.endsWith(".txt"))){let n=await i.fs.readTextFile(`${s}/${e.name}`),a=n.trim().split(`
|
|
13
|
+
`)[0]??n.trim();o.push(a)}}catch{}return o},O={cursor:m,kiro:f,copilot:y,windsurf:k},C=async(t,s,o)=>{let e=await $(t),n=[],a={allowGit:o?.allowGit??!1},r=o?.command??"npx eser noskills";for(let l of s){if(l==="claude-code"){await p(t,e,a,r),n.push(l);continue}let c=O[l];c!==void 0&&(await c(t,e,r),n.push(l))}return s.includes("claude-code")&&(await g(t,r),n.push("hooks")),n};export{$ as a,C as b};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as s}from"./chunk-RGUETQSC.js";var l=[/^<{7}\s/,/^={7}$/,/^>{7}\s/],i=s({name:"validate-merge-conflict",description:"Detect merge conflict markers",canFix:!1,stacks:[],defaults:{},checkFile(a,o){if(o===void 0)return[];let r=[],e=o.split(`
|
|
2
3
|
`);for(let t=0;t<e.length;t++)for(let n of l)if(n.test(e[t])){r.push({path:a.path,line:t+1,message:`merge conflict marker: ${e[t].slice(0,20)}`});break}return r}}),f=i.run,u=i.validator,d=i.main;export{i as a,f as b,u as c,d};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
1
2
|
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var q=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),r=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as D,o as w}from"./chunk-3SXTMY75.js";import{t as g}from"./chunk-MRCBHVSB.js";import{d as j}from"./chunk-G6NAG2EK.js";var v=class extends Error{constructor(r){super(r),this.name="StreamError"}},b=class extends v{cause;constructor(r,n){super(r),this.name="PipelineError",this.cause=n}},x=class extends v{constructor(r){super(`Pipeline timed out after ${r}ms`),this.name="TimeoutError"}};var f=(e,r)=>{let n=typeof e=="string"?"text":e instanceof Uint8Array?"bytes":"structured";return{data:e,meta:{timestamp:Date.now(),kind:n,channel:"stdout",...r}}};var T=e=>({name:e.name,transform:()=>{let r=e.create();return new TransformStream({start:r.start?n=>r.start(n):void 0,transform:(n,t)=>r.transform(n,t),flush:r.flush?n=>r.flush(n):void 0})}});var L=e=>{switch(e.kind){case"text":return e.value;case"newline":return`
|
|
3
|
+
`;case"bold":case"dim":case"italic":case"underline":case"strikethrough":case"color":case"group":return e.children.map(L).join("");case"code-block":return e.value.split(`
|
|
4
|
+
`).map(r=>` ${r}`).join(`
|
|
5
|
+
`)+`
|
|
6
|
+
`;case"table":{let r=e.headers.map((a,l)=>{let s=e.rows.reduce((C,c)=>{let d=c[l];return Math.max(C,d!==void 0?w(d):0)},0);return Math.max(w(a),s)}),n=(a,l)=>{let s=L(a),C=w(a);return s+" ".repeat(Math.max(0,l-C))},t=e.headers.map((a,l)=>n(a,r[l])).join(" "),o=r.map(a=>"-".repeat(a)).join(" "),u=e.rows.map(a=>a.map((l,s)=>n(l,r[s])).join(" ")).join(`
|
|
7
|
+
`);return`${t}
|
|
8
|
+
${o}
|
|
9
|
+
${u}
|
|
10
|
+
`}case"list":return e.items.map(r=>` - ${r.map(L).join("")}`).join(`
|
|
11
|
+
`)+`
|
|
12
|
+
`;case"gauge":{let r=e.width??20,n=Math.round(r*e.percent/100),t=r-n,o=`[${"=".repeat(n)}${" ".repeat(t)}]`,u=e.label?` ${e.label}`:"";return`${o} ${e.percent}%${u}`}case"separator":return e.label?`--- ${e.label} ---
|
|
13
|
+
`:`${"\u2500".repeat(40)}
|
|
14
|
+
`;case"alert":return`[${{info:"INFO",success:"OK",warning:"WARN",error:"ERROR"}[e.level]}] ${e.children.map(L).join("")}`}},R=()=>({name:"plain",render:e=>e.map(L).join("")});var O=()=>{let e=[];return{name:"buffer",writable:new WritableStream({write(r){e.push(r)}}),chunks:()=>e,items:()=>e.map(r=>r.data),clear:()=>{e.length=0}}};var se=e=>{console.error(`[streams] Error at chunk #${e.chunkIndex} (${e.pendingCount} pending):`,e.error)},_=e=>{let r=[],n=e?.onError??se,t=e?.renderer??R(),o=!1,u=0,a=!1,l,c=(()=>{let m=e?.sink??O(),k=e?.layers??[];if(k.length===0)return m.writable;let{readable:E,writable:ie}=new TransformStream,W=E;for(let M of k)W=W.pipeThrough(M.transform());return W.pipeTo(m.writable).catch(M=>{n({error:M,chunkIndex:u,pendingCount:r.length,lastChunk:r[r.length-1]})}),ie})().getWriter(),d=async()=>{for(o=!1;r.length>0;){let m=r.shift();try{await c.ready,await c.write(m),u++}catch(k){n({error:k,chunkIndex:u,pendingCount:r.length,lastChunk:m}),r.length=0;break}}l!==void 0&&(l(),l=void 0)},h=()=>{o||(o=!0,queueMicrotask(d))},S=m=>{a||(r.push(m),h())},P={write:(...m)=>{let k=D(m),E=t.render(k);S(f(E))},writeln:(...m)=>{let k=D(m),E=t.render(k)+`
|
|
15
|
+
`;S(f(E))},flush:()=>r.length===0&&!o?Promise.resolve():new Promise(m=>{l=m,h()}),close:async()=>{a=!0,await P.flush();try{await c.close()}catch{}},pipe:(...m)=>_({sink:e?.sink,renderer:e?.renderer,layers:[...e?.layers??[],...m],onError:n})};return P};var ue=()=>{let e,r=[],n,t={from:o=>(e=o,t),through:(...o)=>(r.push(...o),t),to:o=>(n=o,t),run:async o=>{if(e===void 0)throw new b("Pipeline has no source. Call .from() first.");if(n===void 0)throw new b("Pipeline has no sink. Call .to() first.");let u=e.readable;for(let s of r)u=u.pipeThrough(s.transform());let a=new AbortController,l;o?.timeout!==void 0&&o.timeout>0&&(l=setTimeout(()=>{a.abort(new x(o.timeout))},o.timeout));try{await u.pipeTo(n.writable,{signal:a.signal})}catch(s){throw s instanceof x?s:s instanceof DOMException&&s.name==="AbortError"?new x(o?.timeout??0):new b(`Pipeline failed: ${s instanceof Error?s.message:String(s)}`,s instanceof Error?s:void 0)}finally{l!==void 0&&clearTimeout(l)}},collect:async()=>{let o=O();return n=o,await t.run(),o.items()}};return t};var N={};j(N,{buffer:()=>O,multiplex:()=>K,nullSink:()=>U,stderr:()=>z,stdout:()=>B,writable:()=>F});var q,le=()=>(q===void 0&&(q=new TextEncoder),q),B=()=>{let e=g.process.stdout;return{name:"stdout",writable:new WritableStream({async write(r){let n=String(r.data),t=le().encode(n),o=e.getWriter();try{await o.write(t)}finally{o.releaseLock()}}})}};var H,me=()=>(H===void 0&&(H=new TextEncoder),H),z=()=>{let e=g.process.stderr;return{name:"stderr",writable:new WritableStream({async write(r){let n=String(r.data),t=me().encode(n),o=e.getWriter();try{await o.write(t)}finally{o.releaseLock()}}})}};var U=()=>({name:"null",writable:new WritableStream({write(e){}})});var F=(e,r)=>({name:r??"writable",writable:e});var K=(...e)=>{let r=e.map(n=>({name:n.name,writer:n.writable.getWriter()}));return{name:`multiplex(${e.map(n=>n.name).join(",")})`,writable:new WritableStream({async write(n){await Promise.all(r.map(t=>t.writer.write(n)))},async close(){await Promise.all(r.map(n=>n.writer.close()))},async abort(n){await Promise.all(r.map(t=>t.writer.abort(n)))}})}};var V={};j(V,{events:()=>Q,readable:()=>G,stdin:()=>Y,values:()=>J});var Y=()=>({name:"stdin",readable:g.process.stdin.pipeThrough(new TransformStream({transform(r,n){n.enqueue(f(r,{kind:"bytes"}))}}))});var G=(e,r)=>({name:r??"readable",readable:e.pipeThrough(new TransformStream({transform(n,t){t.enqueue(f(n))}}))});var J=(...e)=>({name:"values",readable:new ReadableStream({start(r){for(let n of e)r.enqueue(f(n));r.close()}})});var Q=(e,r)=>({name:`events(${r})`,readable:new ReadableStream({start(n){let t=u=>{let a=u instanceof CustomEvent?u.detail:u;n.enqueue(f(a))};e.addEventListener(r,t);let o=n.desiredSize}})});var ne={};j(ne,{filter:()=>Z,map:()=>X,tap:()=>ee,tee:()=>re});var X=e=>T({name:"map",create:()=>({transform(r,n){n.enqueue({data:e(r.data),meta:r.meta})}})});var Z=e=>T({name:"filter",create:()=>({transform(r,n){e(r.data)&&n.enqueue(r)}})});var ee=e=>T({name:"tap",create:()=>({transform(r,n){e(r),n.enqueue(r)}})});var re=e=>{let r=e.writable.getWriter();return{name:`tee(${e.name})`,transform:()=>new TransformStream({async transform(n,t){await r.write(n),t.enqueue(n)},async flush(){await r.close()}})}};var ae={};j(ae,{ansi:()=>te,markdown:()=>oe,plain:()=>R});var i="\x1B[",ce=`${i}0m`,p={bold:[`${i}1m`,`${i}22m`],dim:[`${i}2m`,`${i}22m`],italic:[`${i}3m`,`${i}23m`],underline:[`${i}4m`,`${i}24m`],strikethrough:[`${i}9m`,`${i}29m`]},I={black:`${i}30m`,red:`${i}31m`,green:`${i}32m`,yellow:`${i}33m`,blue:`${i}34m`,magenta:`${i}35m`,cyan:`${i}36m`,white:`${i}37m`,gray:`${i}90m`},A=`${i}39m`,$=e=>{switch(e.kind){case"text":return e.value;case"newline":return`
|
|
16
|
+
`;case"bold":case"dim":case"italic":case"underline":case"strikethrough":{let[r,n]=p[e.kind];return`${r}${e.children.map($).join("")}${n}`}case"color":return`${I[e.color]??I.white}${e.children.map($).join("")}${A}`;case"group":return e.children.map($).join("");case"code-block":{let r=p.dim[0],n=p.dim[1];return e.value.split(`
|
|
17
|
+
`).map(t=>`${r} ${t}${n}`).join(`
|
|
18
|
+
`)+`
|
|
19
|
+
`}case"table":{let r=e.headers.map((c,d)=>{let h=e.rows.reduce((S,P)=>{let m=P[d];return Math.max(S,m!==void 0?w(m):0)},0);return Math.max(w(c),h)}),n=p.bold[0],t=p.bold[1],o=p.dim[0],u=p.dim[1],a=(c,d)=>{let h=$(c),S=w(c);return h+" ".repeat(Math.max(0,d-S))},l=e.headers.map((c,d)=>`${n}${a(c,r[d])}${t}`).join(" "),s=`${o}${r.map(c=>"\u2500".repeat(c)).join("\u2500\u2500")}${u}`,C=e.rows.map(c=>c.map((d,h)=>a(d,r[h])).join(" ")).join(`
|
|
20
|
+
`);return`${l}
|
|
21
|
+
${s}
|
|
22
|
+
${C}
|
|
23
|
+
`}case"list":return e.items.map(r=>` \u2022 ${r.map($).join("")}`).join(`
|
|
24
|
+
`)+`
|
|
25
|
+
`;case"gauge":{let r=e.width??20,n=Math.round(r*e.percent/100),t=r-n,o=`${I.green}${"\u2588".repeat(n)}${A}${p.dim[0]}${"\u2591".repeat(t)}${p.dim[1]}`,u=` ${e.percent}%`,a=e.label?`${p.dim[0]} ${e.label}${p.dim[1]}`:"";return`${o}${u}${a}`}case"separator":{let r=p.dim[0],n=p.dim[1];if(e.label){let t="\u2500".repeat(Math.max(0,33-e.label.length));return`${r}\u2500\u2500\u2500\u2500 ${e.label} ${t}${n}
|
|
26
|
+
`}return`${r}${"\u2500".repeat(40)}${n}
|
|
27
|
+
`}case"alert":{let r={info:"\u2139",success:"\u2713",warning:"\u25B2",error:"\u2717"},n={info:"cyan",success:"green",warning:"yellow",error:"red"},t=r[e.level];return`${I[n[e.level]]}${t}${A} ${e.children.map($).join("")}`}}},te=()=>({name:"ansi",render:e=>{let r=e.map($).join("");return r.includes(i)?r+ce:r}});var y=e=>{switch(e.kind){case"text":return e.value;case"newline":return`
|
|
28
|
+
`;case"bold":return`**${e.children.map(y).join("")}**`;case"italic":return`*${e.children.map(y).join("")}*`;case"strikethrough":return`~~${e.children.map(y).join("")}~~`;case"dim":case"underline":case"color":case"group":return e.children.map(y).join("");case"code-block":return`\`\`\`${e.language??""}
|
|
29
|
+
${e.value}
|
|
30
|
+
\`\`\`
|
|
31
|
+
`;case"table":{let r=`| ${e.headers.map(y).join(" | ")} |`,n=`| ${e.headers.map(()=>"---").join(" | ")} |`,t=e.rows.map(o=>`| ${o.map(y).join(" | ")} |`).join(`
|
|
32
|
+
`);return`${r}
|
|
33
|
+
${n}
|
|
34
|
+
${t}
|
|
35
|
+
`}case"list":return e.items.map(r=>`- ${r.map(y).join("")}`).join(`
|
|
36
|
+
`)+`
|
|
37
|
+
`;case"gauge":{let r=e.label?` \u2014 ${e.label}`:"";return`**${e.percent}%**${r}`}case"separator":return e.label?`--- ${e.label} ---
|
|
38
|
+
`:`---
|
|
39
|
+
`;case"alert":{let r={info:"\u2139 Info",success:"\u2713 Success",warning:"\u26A0 Warning",error:"\u2717 Error"},n=e.children.map(y).join("");return`> **${r[e.level]}:** ${n}
|
|
40
|
+
`}}},oe=()=>({name:"markdown",render:e=>e.map(y).join("")});export{v as a,b,x as c,f as d,T as e,_ as f,ue as g,N as h,V as i,ne as j,ae as k};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as a,c as l,d}from"./chunk-J7YTWK67.js";var i=r=>({...r,maxTokens:r.maxTokens??1024,temperature:r.temperature??.7,requestTimeoutMs:r.requestTimeoutMs??6e4});var y=class{models=new Map;factories=new Map;constructor(e){if(e?.factories!==void 0)for(let o of e.factories)this.factories.set(o.provider,o)}registerFactory(e){this.factories.set(e.provider,e)}async addModel(e,o){if(this.models.has(e))throw new l(e);let t=this.factories.get(o.provider);if(t===void 0)throw new d(o.provider);let n=i(o),s=await t.createModel(n);return this.models.set(e,s),s}async removeModel(e){let o=this.models.get(e);if(o===void 0)throw new a(e);await o.close(),this.models.delete(e)}getDefault(){let e=this.models.get("default");if(e!==void 0)return e;let o=this.models.values().next();return o.done===!0?null:o.value}getNamed(e){return this.models.get(e)??null}getByProvider(e){let o=[];for(let t of this.models.values())t.provider===e&&o.push(t);return o}getByCapability(e){let o=[];for(let t of this.models.values())t.capabilities.includes(e)&&o.push(t);return o}listModels(){return[...this.models.keys()]}listRegisteredProviders(){return[...this.factories.keys()]}async loadFromConfig(e){let o=Object.entries(e.targets);for(let[t,n]of o)await this.addModel(t,n)}async close(){let e=[];for(let o of this.models.values())e.push(o.close());await Promise.all(e),this.models.clear()}};var c=r=>{let e=[];for(let o of r.content)o.kind==="text"&&e.push(o.text);return e.join("")};export{y as a,c as b};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
1
2
|
var l=class extends Error{constructor(a){super(a),this.name="DeepMergeError"}},E=(d,a,j)=>{if(a==null){let s=d.constructor,e=new s;for(let r of Object.keys(d))e[r]=d[r];return e}let O=j?.maxDepth??100,U=j?.noSkipUndefined??!1,p=new WeakSet,b=new WeakSet,f=(s,e,r)=>{if(!(s instanceof Object))return s;if(p.has(s))throw new l("Circular reference detected in first argument: cannot deep merge objects with circular references");if(e instanceof Object&&b.has(e))throw new l("Circular reference detected in second argument: cannot deep merge objects with circular references");if(r>O)throw new l(`Maximum recursion depth exceeded (${O}). Objects are too deeply nested or contain circular references.`);p.add(s),e instanceof Object&&b.add(e);try{let R=s.constructor,c=new R,x=Object.keys(s),m=new Set;for(let o=0,T=x.length;o<T;o++){let t=x[o],n=s[t],y=e!==void 0&&t in e,i=e?.[t];m.add(t);let g=y&&i===void 0&&!U;if(n instanceof Object&&n.constructor!==Array){let u;g?u=f(n,{},r+1):y&&i instanceof Object&&i.constructor!==Array?u=f(n,i,r+1):y?u=i:u=f(n,{},r+1),c[t]=u}else g?c[t]=n:c[t]=y?i:n}if(e===void 0)return c;let w=Object.keys(e);for(let o=0,T=w.length;o<T;o++){let t=w[o];if(m.has(t))continue;let n=e[t];n===void 0&&!U||(n instanceof Object&&n.constructor!==Array?c[t]=f({},n,r+1):c[t]=n)}return c}finally{p.delete(s),e instanceof Object&&b.delete(e)}};return f(d,a,0)};export{E as a};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as d}from"./chunk-RGUETQSC.js";import{b as p}from"./chunk-NBA6EFWU.js";var c="2023",u=new RegExp(`// Copyright ([0-9]{4})-present Eser Ozvataf and other contributors\\. All rights reserved\\. ([0-9A-Za-z-.]+) license\\.
|
|
2
3
|
`),l=`// Copyright ${c}-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license.`,T=[/docs\//,/etc\/templates\//,/manifest\.gen\.ts$/],g=t=>T.some(e=>e.test(t)),x=(t,e,r)=>{if(e===void 0||g(t.path))return[];let s=e.startsWith("#!")?e.indexOf(`
|
|
3
4
|
`)+1:0,n=e.slice(s).match(u);return n!==null?n[1]===c?[]:[{path:t.path,message:"incorrect copyright year",fixed:r.fix}]:[{path:t.path,message:"missing copyright header",fixed:r.fix}]},E=(t,e,r)=>{if(g(t.path))return;let a=e.startsWith("#!"),s=a?e.indexOf(`
|
|
4
5
|
`)+1:0,i=e.slice(s),n=i.match(u);if(n!==null&&n[1]===c)return;let o;if(n!==null){let f=e.slice(0,s),m=i.replace(n[0],"");o=`${f}${l}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{d as g}from"./chunk-NBA6EFWU.js";import{d as p}from"./chunk-PVPMHMKP.js";import{t as o}from"./chunk-MRCBHVSB.js";var m=[/node_modules/,/\.git\//,/\/dist\//,/etc\/coverage/,/etc\/temp/,/\.output\//],x=async t=>{try{let n=await p`git ls-files --cached --others --exclude-standard`.cwd(t).noThrow().lines();return n.length>0?n:null}catch{return null}},k=async(t={})=>{let{root:n=".",extensions:e,exclude:s=[]}=t,l=[...m,...s.map(r=>typeof r=="string"?new RegExp(r):r)],u=[],d=await x(n);if(d!==null)for(let r of d){let i=o.path.join(n,r),c=o.path.basename(r);if(e!==void 0&&e.length>0&&!g(r,e)||l.some(a=>a.test(i)||a.test(r)))continue;let y=0,f=!1;try{let a=await o.fs.lstat(i);if(y=a.size,f=a.isSymlink,a.isDirectory&&!(t.includeDirs??!1))continue}catch{continue}u.push({path:i,name:c,size:y,isSymlink:f})}else for await(let r of o.fs.walk(n,{includeDirs:t.includeDirs??!1,includeFiles:!0,exts:e,skip:l})){if(!r.isFile&&!r.isSymlink)continue;let i=0;try{i=(await o.fs.stat(r.path)).size}catch{continue}u.push({path:r.path,name:r.name,size:i,isSymlink:r.isSymlink})}if(t.includeOnly!==void 0&&t.includeOnly.length>0){let r=t.includeOnly;return u.filter(i=>r.some(c=>i.path.endsWith(c)||i.path.includes(c)))}return u},B=async t=>{if(t.textContent!==void 0)return t.textContent;try{let n=await h(t);if(w(n))return;let e=new TextDecoder().decode(n);return t.textContent=e,e}catch{return}},h=async t=>{if(t.rawBytes!==void 0)return t.rawBytes;let n=await o.fs.readFile(t.path);return t.rawBytes=n,n},w=t=>{let n=Math.min(t.length,8192);for(let e=0;e<n;e++)if(t[e]===0)return!0;return!1},M=(t,n)=>{for(let e of n)if(typeof e=="string"){if(t.includes(e)||t.endsWith(e))return!0}else if(e.test(t))return!0;return!1},b=(t,n)=>{let e=new Map;for(let s of n)e.set(s.path,s);for(let s of t){let l=e.get(s.path);l!==void 0&&(s.textContent=l.newContent,s.rawBytes=void 0)}},D=async t=>{let n=0;for(let e of t)e.oldContent!==e.newContent&&(await o.fs.writeTextFile(e.path,e.newContent),n++);return n};export{m as a,k as b,B as c,h as d,w as e,M as f,b as g,D as h};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as r}from"./chunk-RGUETQSC.js";import{a as n}from"./chunk-3XJLLDR5.js";var o=r({name:"validate-json",description:"Validate JSON syntax",canFix:!1,stacks:[],defaults:{},extensions:["json","jsonc"],checkFile(e,a,t){if(a===void 0)return[];if((t.exclude??[]).some(s=>e.path.includes(s)))return[];try{return e.name.endsWith(".jsonc")?n(a):JSON.parse(a),[]}catch(s){let i=s instanceof SyntaxError?s.message:"invalid JSON";return[{path:e.path,message:i}]}}}),p=o.run,f=o.validator,x=o.main;export{o as a,p as b,f as c,x as d};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as i}from"./chunk-RGUETQSC.js";import{a as r}from"./chunk-P7WCO724.js";var t=i({name:"validate-toml",description:"Validate TOML syntax",canFix:!1,stacks:[],defaults:{},extensions:["toml"],checkFile(e,o){if(o===void 0)return[];try{return r(o),[]}catch(a){let s=a instanceof Error?a.message:"invalid TOML";return[{path:e.path,message:s}]}}}),p=t.run,d=t.validator,u=t.main;export{t as a,p as b,d as c,u as d};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{m as w,o as R}from"./chunk-UJ6LH5FY.js";import{t as g}from"./chunk-MRCBHVSB.js";var p=class extends Error{constructor(r){super(`Required variable '${r}' has no value and no default`),this.name="MissingVariableError"}},m=(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 p(n.name)}return t},v=(e,r)=>e.replace(/\{\{\s*\.(\w+)\s*\}\}/g,(t,n)=>n in r?r[n]:t);var y=class extends Error{constructor(r){super(`Circular dependency detected: ${r.join(" \u2192 ")}`),this.name="CyclicDependencyError"}},f=class extends Error{constructor(r,t){super(`Recipe '${r}' requires '${t}', which is not in the registry`),this.name="MissingDependencyError"}},b=(e,r)=>{let t=new Map;for(let s of r)t.set(s.name,s);if(t.get(e)===void 0)throw new f("<root>",e);let a=[],i=new Set,o=new Set,l=(s,d)=>{if(i.has(s))return;if(o.has(s))throw new y([...d,s]);let c=t.get(s);if(c===void 0)throw new f(d[d.length-1]??"<root>",s);if(o.add(s),c.requires!==void 0)for(let u of c.requires)l(u,[...d,s]);o.delete(s),i.add(s),a.push(c)};return l(e,[]),a};var $=(e,r)=>{let t=e.endsWith("/")?e:`${e}/`,n=new URL(r,`file://${t}`).pathname;return n.startsWith(t)||n===e},x=async e=>{let r=e.split("/");r.pop();let t=r.join("/");t!==""&&t!=="."&&await g.fs.mkdir(t,{recursive:!0})},h=async e=>{try{return await g.fs.stat(e),!0}catch{return!1}},k=(e,r)=>r===void 0||Object.keys(r).length===0?e:v(e,r),F=async(e,r,t,n)=>{let a=`${r.cwd}/${e.target}`;if(n.includes(e.target))return;if(r.skipExisting===!0&&await h(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 w(r.registryUrl,e.source),o=k(i,r.variables);await x(a),await g.fs.writeTextFile(a,o),t.push(e.target)},E=async(e,r,t,n)=>{let a=await R(r.registryUrl,e.source);for(let i of a){let o=`${e.target}/${i.path}`;if(!$(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 h(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=k(i.content,r.variables);await x(l),await g.fs.writeTextFile(l,s),t.push(o)}},S=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+/),l=await g.exec.spawn(o[0],o.slice(1),{cwd:r,stdout:"inherit",stderr:"inherit"});if(!l.success)throw new Error(`Post-install command failed: '${i}' (exit code ${l.code})`);a.push(i)}return a},q=async(e,r)=>{let t=[],n=[],a=e.files.length,i=r.variables;e.variables!==void 0&&e.variables.length>0&&(i=m(e.variables,r.variables??{}));let o={...r,variables:i};for(let s of e.files)if((s.kind??"file")==="file"&&!$(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 h(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 E(s,o,t,n):await F(s,o,t,n)}catch(c){let u=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: ${u}`)}}let l=[];return e.postInstall!==void 0&&e.postInstall.length>0&&(l=await S(e.postInstall,r.cwd,r.dryRun,r.verbose)),{written:t,skipped:n,total:a,postInstallRan:l}},V=async(e,r,t)=>{let n=b(e,r),a=[];for(let i of n){t.verbose===!0&&console.log(`
|
|
2
3
|
Applying recipe: ${i.name}`);let o=await q(i,t);a.push({name:i.name,result:o})}return{recipes:a}};export{$ as a,h as b,k as c,S as d,q as e,V as f};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{t as c}from"./chunk-MRCBHVSB.js";var f=async(n,r)=>{let e=`${n}/.eser/specs/${r}/spec.md`,t;try{t=await c.fs.readTextFile(e)}catch{return null}return d(r,t)},d=(n,r)=>{let e=[],t=[],o=[],i="";for(let l of r.split(`
|
|
3
|
+
`)){let s=l.trim();if(s.startsWith("## ")){i=s.slice(3).trim().toLowerCase();continue}if(i.startsWith("tasks")){let a=s.match(/^-\s*\[[ x]\]\s*(task-\d+):\s*(.+)$/i);a!==null&&e.push({id:a[1],title:a[2].trim()})}i.startsWith("out of scope")&&s.startsWith("- ")&&t.push(s.slice(2).trim()),i.startsWith("verification")&&s.startsWith("- ")&&o.push(s.slice(2).trim())}return{name:n,tasks:e,outOfScope:t,verification:o}},u=(n,r)=>{let e=new Set(r);for(let t of n)if(!e.has(t.id))return t;return null};export{f as a,d as b,u as c};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
1
2
|
function I(r,e){if(isNaN(r)||isNaN(e))throw new Error("Cannot compare against non-numbers");return r===e?0:r<e?-1:1}function L(r=[],e=[]){return r.length&&!e.length?-1:!r.length&&e.length?1:0}function C(r=[],e=[]){let t=Math.max(r.length,e.length);for(let o=0;o<t;o++){let n=r[o],a=e[o];if(n===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(n===void 0)return-1;if(typeof n=="string"&&typeof a=="number")return 1;if(typeof n=="number"&&typeof a=="string"||n<a)return-1;if(n>a)return 1}return 0}var j="0|[1-9]\\d*",k="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Y=`(?<major>${j})\\.(?<minor>${j})\\.(?<patch>${j})`,W=`(?:${j}|${k})`,S=`(?:-(?<prerelease>${W}(?:\\.${W})*))`,w="[0-9A-Za-z-]+",D=`(?:\\+(?<buildmetadata>${w}(?:\\.${w})*))`,_=`v?${Y}${S}?${D}?`,X=new RegExp(`^${_}$`),M="(?:<|>)?=?",G="x|X|\\*",T=`${j}|${G}`,N=`[v=\\s]*(?<major>${T})(?:\\.(?<minor>${T})(?:\\.(?<patch>${T})${S}?${D}?)?)?`,F=new RegExp(`^(?<operator>~>?|\\^|${M})\\s*${N}$`),V=new RegExp(`^(?<operator>${M})\\s*(${_})$|^$`);function l(r){return typeof r=="number"&&!Number.isNaN(r)&&(!Number.isFinite(r)||0<=r&&r<=Number.MAX_SAFE_INTEGER)}var y=256;function P(r){return typeof r=="string"&&r.length>0&&r.length<=y&&/[0-9A-Za-z-]+/.test(r)}var J=new RegExp(`^${j}$`);function s(r){return r.split(".").filter(Boolean).map(e=>{if(J.test(e)){let t=Number(e);if(l(t))return t}return e})}function u(r){return r.split(".").filter(Boolean)}function A(r,e){let t=Number(r);if(!l(t))throw new TypeError(e);return t}function h(r){return Number.isNaN(r.major)&&Number.isNaN(r.minor)&&Number.isNaN(r.patch)&&(r.prerelease===void 0||r.prerelease.length===0)&&(r.build===void 0||r.build.length===0)}function f(r,e){return r===e?0:I(r.major,e.major)||I(r.minor,e.minor)||I(r.patch,e.patch)||L(r.prerelease,e.prerelease)||C(r.prerelease,e.prerelease)}function O(r){return r.toFixed(0)}function K(r){let e=O(r.major),t=O(r.minor),o=O(r.patch),n=r.prerelease?.join(".")??"",a=r.build?.join(".")??"";return[[`${e}.${t}.${o}`,n].filter(p=>p).join("-"),a].filter(p=>p).join("+")}function Q(r=[]){let e=[...r],t=e.length;for(;t>=0;){let o=e[t];if(typeof o=="number"){e[t]=o+1;break}t-=1}return t===-1&&e.push(0),e}function x(r=[],e){let t=Q(r);if(!e)return t;let o=s(e);if(o.every(n=>typeof n=="string")){if(o.every((n,a)=>n===t[a])&&typeof t[o.length]=="number")return t;o=[...o,0]}return o}function br(r,e,t={}){let o=t.build!==void 0?u(t.build):r.build??[];switch(e){case"premajor":return{major:r.major+1,minor:0,patch:0,prerelease:x(r.prerelease,t.prerelease),build:o};case"preminor":return{major:r.major,minor:r.minor+1,patch:0,prerelease:x(r.prerelease,t.prerelease),build:o};case"prepatch":return{major:r.major,minor:r.minor,patch:r.patch+1,prerelease:x(r.prerelease,t.prerelease),build:o};case"prerelease":{let a=(r.prerelease??[]).length===0?r.patch+1:r.patch;return{major:r.major,minor:r.minor,patch:a,prerelease:x(r.prerelease,t.prerelease),build:o}}case"major":return{major:(r.prerelease??[]).length===0||r.minor!==0||r.patch!==0?r.major+1:r.major,minor:0,patch:0,prerelease:[],build:o};case"minor":{let a=(r.prerelease??[]).length===0||r.patch!==0?r.minor+1:r.minor;return{major:r.major,minor:a,patch:0,prerelease:[],build:o}}case"patch":{let a=(r.prerelease??[]).length===0?r.patch+1:r.patch;return{major:r.major,minor:r.minor,patch:a,prerelease:[],build:o}}case"pre":return{major:r.major,minor:r.minor,patch:r.patch,prerelease:x(r.prerelease,t.prerelease),build:o};default:throw new TypeError(`Cannot increment version: invalid argument ${e}`)}}function E(r){if(typeof r!="string")throw new TypeError(`Cannot parse version as version must be a string: received ${typeof r}`);if(r.length>y)throw new TypeError(`Cannot parse version as version length is too long: length is ${r.length}, max length is ${y}`);r=r.trim();let e=r.match(X)?.groups;if(!e)throw new TypeError(`Cannot parse version: ${r}`);let t=A(e.major,`Cannot parse version ${r}: invalid major version`),o=A(e.minor,`Cannot parse version ${r}: invalid minor version`),n=A(e.patch,`Cannot parse version ${r}: invalid patch version`),a=e.prerelease?s(e.prerelease):[],c=e.buildmetadata?u(e.buildmetadata):[];return{major:t,minor:o,patch:n,prerelease:a,build:c}}function v(r,e){if(h(e))return!0;let t=f(r,e);switch(e.operator){case"=":case void 0:return t===0;case"!=":return t!==0;case">":return t>0;case"<":return t<0;case">=":return t>=0;case"<=":return t<=0}}function $(r,e){for(let t of e)if(!v(r,t))return!1;if(!r.prerelease?.length)return!0;for(let t of e){if(h(t)||!t.prerelease?.length)continue;let{major:o,minor:n,patch:a}=t;if(r.major===o&&r.minor===n&&r.patch===a)return!0}return!1}function R(r,e){return e.some(t=>$(r,t))}var b={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},d={operator:void 0,...b},B=[void 0,"=","!=",">",">=","<","<="];function q(r){if(r==null||Array.isArray(r)||typeof r!="object")return!1;if(r===b)return!0;let{major:e,minor:t,patch:o,build:n=[],prerelease:a=[]}=r;return l(e)&&l(t)&&l(o)&&Array.isArray(a)&&a.every(c=>P(c)||l(c))&&Array.isArray(n)&&n.every(P)}function rr(r){let t=r.match(V)?.groups;if(!t)return null;let{operator:o}=t;return{operator:o||void 0,...b}}function i(r){return!r||r.toLowerCase()==="x"||r==="*"}function er(r){if(!i(r.major))return i(r.minor)?{operator:">=",major:+r.major,minor:0,patch:0,prerelease:[],build:[]}:i(r.patch)?{operator:">=",major:+r.major,minor:+r.minor,patch:0,prerelease:[],build:[]}:{operator:">=",major:+r.major,minor:+r.minor,patch:+r.patch,prerelease:r.prerelease?s(r.prerelease):[],build:[]}}function tr(r){if(!i(r.major))return i(r.minor)?{operator:"<",major:+r.major+1,minor:0,patch:0,prerelease:[],build:[]}:i(r.patch)?{operator:"<",major:+r.major,minor:+r.minor+1,patch:0,prerelease:[],build:[]}:r.prerelease?{operator:"<=",major:+r.major,minor:+r.minor,patch:+r.patch,prerelease:s(r.prerelease),build:[]}:{operator:"<=",major:+r.major,minor:+r.minor,patch:+r.patch,prerelease:[],build:[]}}function nr(r){let e=r.match(new RegExp(`^${N}`)),t=e?.groups;if(!t)return null;let o=e[0].length,n=r.slice(o).match(/^\s+-\s+/);if(!n)return null;let a=n[0].length,m=r.slice(o+a).match(new RegExp(`^${N}\\s*$`))?.groups,p=er(t),Z=tr(m);return[p,Z].filter(Boolean)}function or(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[d];if(t)return[{operator:">=",major:n,minor:0,patch:0},{operator:"<",major:n+1,minor:0,patch:0}];if(o)return n===0?[{operator:">=",major:n,minor:a,patch:0},{operator:"<",major:n,minor:a+1,patch:0}]:[{operator:">=",major:n,minor:a,patch:0},{operator:"<",major:n+1,minor:0,patch:0}];let m=s(r.prerelease??"");return n===0?a===0?[{operator:">=",major:n,minor:a,patch:c,prerelease:m},{operator:"<",major:n,minor:a,patch:c+1}]:[{operator:">=",major:n,minor:a,patch:c,prerelease:m},{operator:"<",major:n,minor:a+1,patch:0}]:[{operator:">=",major:n,minor:a,patch:c,prerelease:m},{operator:"<",major:n+1,minor:0,patch:0}]}function ar(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[d];if(t)return[{operator:">=",major:n,minor:0,patch:0},{operator:"<",major:n+1,minor:0,patch:0}];if(o)return[{operator:">=",major:n,minor:a,patch:0},{operator:"<",major:n,minor:a+1,patch:0}];let m=s(r.prerelease??"");return[{operator:">=",major:n,minor:a,patch:c,prerelease:m},{operator:"<",major:n,minor:a+1,patch:0}]}function ir(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[{operator:"<",major:0,minor:0,patch:0}];if(t)return o?[{operator:"<",major:n,minor:0,patch:0}]:[{operator:"<",major:n,minor:0,patch:0}];if(o)return[{operator:"<",major:n,minor:a,patch:0}];let m=s(r.prerelease??""),p=u(r.build??"");return[{operator:"<",major:n,minor:a,patch:c,prerelease:m,build:p}]}function cr(r){let e=i(r.minor),t=i(r.patch),o=+r.major,n=+r.minor,a=+r.patch;if(e)return[{operator:"<",major:o+1,minor:0,patch:0}];if(t)return[{operator:"<",major:o,minor:n+1,patch:0}];let c=s(r.prerelease??""),m=u(r.build??"");return[{operator:"<=",major:o,minor:n,patch:a,prerelease:c,build:m}]}function mr(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[{operator:"<",major:0,minor:0,patch:0}];if(t)return[{operator:">=",major:n+1,minor:0,patch:0}];if(o)return[{operator:">=",major:n,minor:a+1,patch:0}];let m=s(r.prerelease??""),p=u(r.build??"");return[{operator:">",major:n,minor:a,patch:c,prerelease:m,build:p}]}function sr(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[d];if(t)return[{operator:">=",major:n,minor:0,patch:0}];if(o)return[{operator:">=",major:n,minor:a,patch:0}];let m=s(r.prerelease??""),p=u(r.build??"");return[{operator:">=",major:n,minor:a,patch:c,prerelease:m,build:p}]}function pr(r){let e=i(r.major),t=i(r.minor),o=i(r.patch),n=+r.major,a=+r.minor,c=+r.patch;if(e)return[d];if(t)return[{operator:">=",major:n,minor:0,patch:0},{operator:"<",major:n+1,minor:0,patch:0}];if(o)return[{operator:">=",major:n,minor:a,patch:0},{operator:"<",major:n,minor:a+1,patch:0}];let m=s(r.prerelease??""),p=u(r.build??"");return[{operator:r.operator==="="?"=":void 0,major:n,minor:a,patch:c,prerelease:m,build:p}]}function fr(r){let e=r.match(F)?.groups;if(!e)return rr(r);switch(e.operator){case"^":return or(e);case"~":case"~>":return ar(e);case"<":return ir(e);case"<=":return cr(e);case">":return mr(e);case">=":return sr(e);default:return pr(e)}}function ur(r){return r.split(/\s+/).flatMap(fr)}function g(r){let e=r.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map(t=>nr(t)||ur(t));if(e.some(t=>t.includes(null)))throw new TypeError(`Cannot parse version range: range "${r}" is invalid`);return e}function lr(r){if(r==null||Array.isArray(r)||typeof r!="object")return!1;if(r===d)return!0;let{operator:e}=r;return(e===void 0||B.includes(e))&&q(r)}function U(r){return Array.isArray(r)&&r.every(e=>Array.isArray(e)&&e.every(t=>lr(t)))}function H(r,e){return f(r,e)>=0}var z=(r,e)=>U(e)?R(r,e):!H(r,e),et=(r,e)=>{let t=E(r);try{let o=E(e);return z(t,o)}catch{let o=g(e);return z(t,o)}};export{f as a,K as b,br as c,E as d,et as e};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
1
2
|
var t=class extends Error{provider;statusCode;constructor(s,r){super(s,{cause:r?.cause}),this.name="AiError",this.provider=r?.provider??null,this.statusCode=r?.statusCode??null}},n=class extends t{constructor(s,r){super(s,{...r,statusCode:r?.statusCode??429}),this.name="RateLimitedError"}},o=class extends t{constructor(s,r){super(s,{...r,statusCode:r?.statusCode??401}),this.name="AuthFailedError"}},u=class extends t{constructor(s,r){super(s,{...r,statusCode:r?.statusCode??402}),this.name="InsufficientCreditsError"}},i=class extends t{constructor(s,r){super(s,{...r,statusCode:r?.statusCode??400}),this.name="BadRequestError"}},a=class extends t{constructor(s,r){super(s,{...r,statusCode:r?.statusCode??503}),this.name="ServiceUnavailableError"}},d=class extends t{constructor(s){super(`Model "${s}" not found in registry`),this.name="ModelNotFoundError"}},l=class extends t{constructor(s){super(`Model "${s}" already exists in registry`),this.name="ModelAlreadyExistsError"}},p=class extends t{constructor(s){super(`No factory registered for provider "${s}"`),this.name="UnsupportedProviderError"}},x=e=>e===429?n:e===401?o:e===402?u:e===400?i:e===500||e===503||e===529?a:null,m=(e,s,r)=>{let c=x(s);return c!==null?new c(r.message,{provider:e,statusCode:s,cause:r}):new t(r.message,{provider:e,statusCode:s,cause:r})};export{t as a,d as b,l as c,p as d,m as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{f as j,h as K,k as F}from"./chunk-GBM3TZFD.js";import{b as a,c as W,d as l,e as M,f as w,g as c,h as x,i as X,k as T,l as $,n as D}from"./chunk-3SXTMY75.js";import{t as A}from"./chunk-MRCBHVSB.js";var f=Symbol("tui.cancel"),ae=e=>e===f,ie=()=>{try{return A.process.stdin}catch{return new ReadableStream}},oe=e=>{let t=e?.interaction??(e?.target==="non-interactive"?"non-interactive":"interactive"),n=e?.audience??"human",s=t==="non-interactive"?"non-interactive":"interactive",r=t==="interactive";return{output:e?.output??j({renderer:r?F.ansi():F.plain(),sink:r?K.stdout():K.stderr()}),input:e?.input??ie(),target:s,interaction:t,audience:n,stderr:e?.stderr??j({renderer:F.plain(),sink:K.stderr()})}};var g="\u2502",G="\u250C",h="\u2514";var H="\u25CF",q="\u25CB",z="\u25FC",J="\u25FB",P="\u25C6",C="\u25C7",b="\u25A0",Q="\u25CF";var N="\u25B2";var Z="\u25C7";var v=async e=>{let t=!1;if(A.capabilities.stdin&&A.process.isTerminal("stdin"))try{A.process.setStdinRaw(!0),t=!0}catch{}try{return await e()}finally{if(t)try{A.process.setStdinRaw(!1)}catch{}}},R=e=>{e.write(a("\x1B[?25l"))},E=e=>{e.write(a("\x1B[?25h"))},m=(e,t)=>{t>0&&e.write(a(`\x1B[${t}A\x1B[J`))};var le=e=>{if(e.length===1&&e[0]===3)return{name:"c",ctrl:!0,meta:!1,shift:!1};if(e.length===1&&e[0]===27)return{name:"escape",ctrl:!1,meta:!1,shift:!1};if(e.length===1&&(e[0]===13||e[0]===10))return{name:"return",ctrl:!1,meta:!1,shift:!1};if(e.length===1&&e[0]===9)return{name:"tab",ctrl:!1,meta:!1,shift:!1};if(e.length===1&&e[0]===127)return{name:"backspace",ctrl:!1,meta:!1,shift:!1};if(e.length>=3&&e[0]===27&&e[1]===91)switch(e[2]){case 65:return{name:"up",ctrl:!1,meta:!1,shift:!1};case 66:return{name:"down",ctrl:!1,meta:!1,shift:!1};case 67:return{name:"right",ctrl:!1,meta:!1,shift:!1};case 68:return{name:"left",ctrl:!1,meta:!1,shift:!1};case 72:return{name:"home",ctrl:!1,meta:!1,shift:!1};case 70:return{name:"end",ctrl:!1,meta:!1,shift:!1}}if(e.length===1&&e[0]>=1&&e[0]<=26)return{name:String.fromCharCode(e[0]+96),ctrl:!0,meta:!1,shift:!1};if(e.length===1&&e[0]===32)return{name:"space",char:" ",ctrl:!1,meta:!1,shift:!1};if(e.length===1&&e[0]>=33&&e[0]<=126){let t=String.fromCharCode(e[0]);return{name:t,char:t,ctrl:!1,meta:!1,shift:!1}}if(e.length>0&&e[0]>=192){let t=new TextDecoder().decode(e);return{name:t,char:t,ctrl:!1,meta:!1,shift:!1}}return{name:"unknown",ctrl:!1,meta:!1,shift:!1}};async function*k(e,t){let n=e.getReader();try{for(;!t?.aborted;){let{done:s,value:r}=await n.read();if(s||r===void 0)break;yield le(r)}}finally{n.releaseLock()}}var U=(e,t,n,s)=>{if(s==="done"){let o=n?"Yes":"No";return e.output.writeln(c(C),a(` ${t}`),l(` \xB7 ${o}`)),1}if(s==="cancel")return e.output.writeln(w(b),a(` ${t}`)),1;let r=n?M(c(H),a(" Yes")):M(l(q),l(" Yes")),i=n?M(l(q),l(" No")):M(c(H),a(" No"));return e.output.writeln(T(P),a(` ${t}`)),e.output.writeln(l(g),a(" "),r,l(" / "),i),e.output.writeln(l(h)),3},pe=async(e,t)=>{let n=t.initialValue??!0,s=0;R(e.output);try{return await v(async()=>{s=U(e,t.message,n,"active"),await e.output.flush();for await(let r of k(e.input)){if(r.name==="c"&&r.ctrl)return m(e.output,s),U(e,t.message,n,"cancel"),await e.output.flush(),f;if(r.name==="escape")return m(e.output,s),U(e,t.message,n,"cancel"),await e.output.flush(),f;if(r.name==="return")return m(e.output,s),U(e,t.message,n,"done"),await e.output.flush(),n;let i=!1;(r.name==="left"||r.name==="right")&&(n=!n,i=!0),(r.name==="y"||r.name==="Y")&&(n=!0,i=!0),(r.name==="n"||r.name==="N")&&(n=!1,i=!0),i&&(m(e.output,s),s=U(e,t.message,n,"active"),await e.output.flush())}return f})}finally{E(e.output),await e.output.flush()}};var _=(e,t,n,s,r,i)=>{if(i==="done")return e.output.writeln(c(C),a(` ${t}`),l(` \xB7 ${n}`)),1;if(i==="cancel")return e.output.writeln(w(b),a(` ${t}`)),1;let o=n.length>0?a(n):s!==void 0?l(s):a(""),d=r!==void 0?x(N):T(P);e.output.writeln(d,a(` ${t}`)),e.output.writeln(l(g),a(" "),o);let y=2;return r!==void 0?(e.output.writeln(l(h),a(" "),x(r)),y=3):(e.output.writeln(l(h)),y=3),y},ue=async(e,t)=>{let n=t.initialValue??"",s=n.length,r,i=0;R(e.output);try{return await v(async()=>{i=_(e,t.message,n,t.placeholder,r,"active"),await e.output.flush();for await(let o of k(e.input)){if(o.name==="c"&&o.ctrl)return m(e.output,i),_(e,t.message,n,t.placeholder,void 0,"cancel"),await e.output.flush(),f;if(o.name==="escape")return m(e.output,i),_(e,t.message,n,t.placeholder,void 0,"cancel"),await e.output.flush(),f;if(o.name==="return"){if(t.validate!==void 0){let d=t.validate(n);if(d!==void 0){r=d,m(e.output,i),i=_(e,t.message,n,t.placeholder,r,"active"),await e.output.flush();continue}}return m(e.output,i),_(e,t.message,n,t.placeholder,void 0,"done"),await e.output.flush(),n}if(r=void 0,o.name==="backspace")s>0&&(n=n.slice(0,s-1)+n.slice(s),s--);else if(o.name==="left")s>0&&s--;else if(o.name==="right")s<n.length&&s++;else if(o.name==="home")s=0;else if(o.name==="end")s=n.length;else if(o.char!==void 0)n=n.slice(0,s)+o.char+n.slice(s),s++;else continue;m(e.output,i),i=_(e,t.message,n,t.placeholder,r,"active"),await e.output.flush()}return f})}finally{E(e.output),await e.output.flush()}};var L=(e,t,n,s,r,i,o)=>{if(o==="done"){let u=[...r].sort((p,I)=>p-I).map(p=>n[p]?.label??"").join(", ");return e.output.writeln(c(C),a(` ${t}`),l(` \xB7 ${u}`)),1}if(o==="cancel")return e.output.writeln(w(b),a(` ${t}`)),1;let d=i!==void 0?x(N):T(P);e.output.writeln(d,a(` ${t}`));for(let u=0;u<n.length;u++){let p=n[u],I=u===s,ee=r.has(u),te=p.disabled===!0,ne=ee?c(z):l(J),se=te?l(` ${p.label}`):I?a(` ${p.label}`):l(` ${p.label}`),re=p.hint!==void 0?l(` (${p.hint})`):a("");e.output.writeln(l(g),a(" "),ne,se,re)}let y=n.length+2;return i!==void 0?e.output.writeln(l(h),a(" "),x(i)):e.output.writeln(l(h)),y},Y=(e,t,n)=>{let s=e.length,r=t;for(let i=0;i<s;i++)if(r=(r+n+s)%s,e[r]?.disabled!==!0)return r;return t},de=async(e,t)=>{let n=0,s=new Set;if(t.initialValues!==void 0)for(let o of t.initialValues){let d=t.options.findIndex(y=>y.value===o);d>=0&&s.add(d)}t.options[n]?.disabled===!0&&(n=Y(t.options,n,1));let r=0,i;R(e.output);try{return await v(async()=>{r=L(e,t.message,t.options,n,s,i,"active"),await e.output.flush();for await(let o of k(e.input)){if(o.name==="c"&&o.ctrl)return m(e.output,r),L(e,t.message,t.options,n,s,void 0,"cancel"),await e.output.flush(),f;if(o.name==="escape")return m(e.output,r),L(e,t.message,t.options,n,s,void 0,"cancel"),await e.output.flush(),f;if(o.name==="return"){if(t.required!==!1&&s.size===0){i="Please select at least one option.",m(e.output,r),r=L(e,t.message,t.options,n,s,i,"active"),await e.output.flush();continue}return m(e.output,r),L(e,t.message,t.options,n,s,void 0,"done"),await e.output.flush(),[...s].sort((y,u)=>y-u).map(y=>t.options[y].value)}i=void 0;let d=!1;if((o.name==="up"||o.name==="k")&&(n=Y(t.options,n,-1),d=!0),(o.name==="down"||o.name==="j")&&(n=Y(t.options,n,1),d=!0),o.name==="space"&&t.options[n]?.disabled!==!0&&(s.has(n)?s.delete(n):s.add(n),d=!0),o.name==="a"){let y=t.options.every((u,p)=>u.disabled===!0||s.has(p));for(let u=0;u<t.options.length;u++)t.options[u]?.disabled!==!0&&(y?s.delete(u):s.add(u));d=!0}d&&(m(e.output,r),r=L(e,t.message,t.options,n,s,i,"active"),await e.output.flush())}return f})}finally{E(e.output),await e.output.flush()}};var me=(e,t)=>{e.output.writeln($(G),a(" "),W(t)),e.output.writeln($(g))},fe=(e,t)=>{e.output.writeln($(g)),e.output.writeln($(h),a(" "),a(t))},ye={info:(e,t)=>{e.output.writeln(D("info",t))},success:(e,t)=>{e.output.writeln(D("success",t))},warn:(e,t)=>{e.output.writeln(D("warning",t))},error:(e,t)=>{e.output.writeln(D("error",t))},step:(e,t)=>{e.output.writeln(l(Z),a(" "),l(t))},message:(e,t,n)=>{e.output.writeln(l(n??g),a(" "),a(t))}};var ce=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ge=80,he=(e,t,n)=>{let s=n?.frames??ce,r=n?.interval??ge,i=t,o=0,d,y=()=>{e.output.write(a(`\r${" ".repeat(i.length+4)}\r`))},u=()=>{d!==void 0&&(clearInterval(d),d=void 0,y())};return{start:p=>{p!==void 0&&(i=p),d=setInterval(()=>{let I=s[o%s.length];e.output.write(a("\r"),T(I??""),a(` ${i}`)),o++},r)},stop:p=>{u(),p!==void 0&&(i=p)},update:p=>{i=p},succeed:p=>{u(),e.output.writeln(c(C),a(` ${p??i}`))},fail:p=>{u(),e.output.writeln(w(b),a(` ${p??i}`))},warn:p=>{u(),e.output.writeln(x(N),a(` ${p??i}`))},info:p=>{u(),e.output.writeln(X(Q),a(` ${p??i}`))}}};export{ae as a,oe as b,pe as c,ue as d,de as e,me as f,fe as g,ye as h,he as i};
|