eser 4.1.26 → 4.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chunks/add-O35CHPAB.js +8 -0
- package/chunks/anthropic-2MXDKLNX.js +2 -0
- package/chunks/approve-XMPDDDZD.js +2 -0
- package/chunks/{ask-TFJCKH5G.js → ask-BZIPZT7O.js} +2 -1
- package/chunks/block-C2GOOMFH.js +2 -0
- package/chunks/{browser-XCMD2IZQ.js → browser-JNDQ24XT.js} +2 -1
- package/chunks/{build-2W7YVR7J.js → build-LADMCGZD.js} +3 -2
- package/chunks/{bun-YFFBDKUJ.js → bun-ZPIZVC7D.js} +2 -1
- package/chunks/changelog-gen-KMNP2KO4.js +10 -0
- package/chunks/{chunk-WUJUQPHI.js → chunk-2BOCLC67.js} +2 -1
- package/chunks/chunk-2SEPWXDK.js +2 -0
- package/chunks/{chunk-6U2VEZEM.js → chunk-2VEVVX6U.js} +2 -1
- package/chunks/{chunk-NUSNMQPL.js → chunk-3BEX5FYF.js} +2 -1
- package/chunks/chunk-3HC6RWFJ.js +2 -0
- package/chunks/chunk-3SXTMY75.js +2 -0
- package/chunks/{chunk-34GCQZ3Z.js → chunk-3XJLLDR5.js} +1 -0
- package/chunks/{chunk-NTPOK5H6.js → chunk-4MELQSFH.js} +2 -1
- package/chunks/{chunk-UKYKMDYU.js → chunk-4NEBMHCP.js} +2 -1
- package/chunks/{chunk-U47ABJCC.js → chunk-536RBSFU.js} +2 -1
- package/chunks/{chunk-DWYVBWBP.js → chunk-5BHHLJJN.js} +2 -1
- package/chunks/{chunk-SBOTNOWZ.js → chunk-5YVKJFG6.js} +2 -1
- package/chunks/{chunk-CPRLAMEG.js → chunk-6HGMAVFR.js} +2 -1
- package/chunks/chunk-6LVNPRHQ.js +4 -0
- package/chunks/{chunk-ANY26ROY.js → chunk-6XW64HCG.js} +2 -1
- package/chunks/{chunk-GLSCZGXA.js → chunk-7ATUODBM.js} +2 -1
- package/chunks/{chunk-USCAYIWL.js → chunk-7DPLGQHN.js} +1 -0
- package/chunks/{chunk-CKD2KOHA.js → chunk-7FMX4QXF.js} +2 -1
- package/chunks/chunk-7ZVGNL76.js +4 -0
- package/chunks/chunk-7ZYDAZBD.js +1 -0
- package/chunks/chunk-A3MBTPHJ.js +2 -0
- package/chunks/{chunk-DQAEQEXD.js → chunk-A6RDYP6R.js} +2 -1
- package/chunks/{chunk-QIODVVTY.js → chunk-AN5JOFHD.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-5MN3MWQN.js → chunk-BNQAZLIQ.js} +1 -0
- package/chunks/{chunk-KAEAT6A4.js → chunk-C2FHTZ2Y.js} +2 -1
- package/chunks/{chunk-T7K64JD5.js → chunk-CDPSH56U.js} +1 -0
- package/chunks/{chunk-BDTJR6UH.js → chunk-CFTANV4S.js} +2 -1
- package/chunks/chunk-CLXOJOH3.js +2 -0
- package/chunks/{chunk-4VL2RZIN.js → chunk-COJNSVOS.js} +2 -1
- package/chunks/{chunk-GVSBZ6JV.js → chunk-CS3FL7HI.js} +2 -1
- package/chunks/{chunk-AK3OJD4W.js → chunk-DAK2I7UC.js} +2 -1
- package/chunks/{chunk-3K42AALS.js → chunk-DPL7GREV.js} +2 -1
- package/chunks/{chunk-ACQUINWH.js → chunk-DTO2YJWZ.js} +1 -0
- package/chunks/chunk-EETBL6X2.js +2 -0
- package/chunks/{chunk-ETMOOGY2.js → chunk-EJ4XBQTD.js} +2 -1
- package/chunks/chunk-EZE3F4PG.js +2 -0
- package/chunks/{chunk-5RK3346P.js → chunk-FXBDWBXT.js} +2 -1
- package/chunks/{chunk-VVHXAOEH.js → chunk-G35GBI4M.js} +2 -1
- package/chunks/{chunk-DXB73IDG.js → chunk-G6NAG2EK.js} +1 -0
- package/chunks/{chunk-6FMPNAZ3.js → chunk-GE3LJ6QM.js} +2 -1
- package/chunks/{chunk-G34MS4XJ.js → chunk-GITZBQ2Z.js} +2 -1
- package/chunks/{chunk-Y6DZEK4W.js → chunk-GTHXGAMQ.js} +1 -0
- package/chunks/{chunk-3OEM65F2.js → chunk-H7XLUEAU.js} +3 -2
- package/chunks/chunk-HFFIXVAB.js +13 -0
- package/chunks/{chunk-NLNSK3KE.js → chunk-HYFBCDIO.js} +2 -1
- package/chunks/{chunk-TUTRX7VR.js → chunk-IAZ2MM3P.js} +2 -1
- package/chunks/{chunk-XMCQMTAA.js → chunk-IKYBNRCS.js} +2 -1
- package/chunks/{chunk-LOFP256P.js → chunk-J2Z7NG2X.js} +1 -0
- package/chunks/{chunk-OLM5RTFK.js → chunk-J7YTWK67.js} +1 -0
- package/chunks/{chunk-MBC2JM7F.js → chunk-JPCJIMM5.js} +2 -1
- package/chunks/chunk-JPFGKN4T.js +4 -0
- package/chunks/chunk-JYNHFD6B.js +140 -0
- package/chunks/{chunk-RBB5ITAS.js → chunk-KLHDNHD3.js} +2 -1
- package/chunks/chunk-KLWWCHOL.js +2 -0
- package/chunks/{chunk-Q54LOR4S.js → chunk-KP3HXVLZ.js} +2 -1
- package/chunks/{chunk-U65FD6J3.js → chunk-KXI7O3KZ.js} +2 -1
- package/chunks/{chunk-OBIEQJDE.js → chunk-LCG4SK6K.js} +2 -1
- package/chunks/chunk-LNNNLUZT.js +2 -0
- package/chunks/chunk-LT7CC4SX.js +2 -0
- package/chunks/chunk-LXE2WGIW.js +2 -0
- package/chunks/{chunk-HPPFA3XU.js → chunk-MG65QJY6.js} +1 -0
- package/chunks/chunk-MNVCCOJS.js +2 -0
- package/chunks/{chunk-A2GDVOQP.js → chunk-N7DXBY3O.js} +2 -1
- package/chunks/{chunk-2J2PXBOC.js → chunk-NBA6EFWU.js} +1 -0
- package/chunks/chunk-NP2CCJ4C.js +40 -0
- package/chunks/{chunk-3APERFKY.js → chunk-P7WCO724.js} +1 -0
- package/chunks/{chunk-YWCEHTZB.js → chunk-PASFORZM.js} +2 -1
- package/chunks/chunk-PDJEHSKZ.js +3 -0
- package/chunks/{chunk-FKF2SWQM.js → chunk-PE2TDUXD.js} +1 -0
- package/chunks/chunk-PHI2BESG.js +2 -0
- package/chunks/chunk-PWLF3WXM.js +1 -0
- package/chunks/{chunk-TXL6YOFL.js → chunk-Q2KSOC32.js} +2 -1
- package/chunks/{chunk-YMY2URYM.js → chunk-QEZJTCNE.js} +2 -1
- package/chunks/{chunk-NGZZAQ7G.js → chunk-QTOUP2B7.js} +2 -1
- package/chunks/chunk-RMGMMTO6.js +2 -0
- package/chunks/{chunk-YXSB6RET.js → chunk-RYOLIM3I.js} +2 -1
- package/chunks/{chunk-AKJB4CER.js → chunk-RZKZDGNM.js} +2 -1
- package/chunks/{chunk-4S7QYPS6.js → chunk-S7S2I2K5.js} +1 -0
- package/chunks/chunk-SAQAIPUB.js +5 -0
- package/chunks/{chunk-6HYGGBEQ.js → chunk-SMT3I5PQ.js} +2 -1
- package/chunks/{chunk-ZED5RIVL.js → chunk-SOCLJVZ3.js} +2 -1
- package/chunks/chunk-SOSF762G.js +1 -0
- package/chunks/{chunk-FDZP7B5Y.js → chunk-STI6DX7K.js} +1 -0
- package/chunks/{chunk-PO3SXFUE.js → chunk-T4CNY6II.js} +2 -1
- package/chunks/{chunk-H4OFOQQ2.js → chunk-TBHZHGUF.js} +2 -1
- package/chunks/{chunk-QIYWONJL.js → chunk-TBOM65KB.js} +2 -1
- package/chunks/{chunk-762C2IM6.js → chunk-TDQRRGDJ.js} +2 -1
- package/chunks/{chunk-IA7GIU76.js → chunk-TFPT4BDY.js} +2 -1
- package/chunks/chunk-U3FRSRMK.js +7 -0
- package/chunks/{chunk-C3PZVQ3Z.js → chunk-V4AJMSER.js} +2 -1
- package/chunks/chunk-VC5BX56D.js +3 -0
- package/chunks/{chunk-JOXKA7TJ.js → chunk-VIOT4AMI.js} +2 -1
- package/chunks/{chunk-AAV7D6DF.js → chunk-VKSH6UPG.js} +2 -1
- package/chunks/{chunk-UNL4H5EY.js → chunk-VXA3KMDF.js} +2 -1
- package/chunks/{chunk-4H4O3TGK.js → chunk-VXTKQXGM.js} +2 -1
- package/chunks/{chunk-ZH37DSUQ.js → chunk-WF6JNPZS.js} +1 -0
- package/chunks/{chunk-4HAIX3WN.js → chunk-XAV6BM52.js} +2 -1
- package/chunks/{chunk-SG4G3OOO.js → chunk-XMVLDQGA.js} +2 -1
- package/chunks/{chunk-3EFU5R2M.js → chunk-Y53YTL4C.js} +2 -1
- package/chunks/chunk-YSJNWJ24.js +61 -0
- package/chunks/{chunk-ZF2XYULB.js → chunk-YTF3BAQS.js} +1 -0
- package/chunks/chunk-YZ4L35HK.js +3 -0
- package/chunks/{chunk-W3REWI3H.js → chunk-Z2CGXVFY.js} +2 -1
- package/chunks/{chunk-YQU3TEIG.js → chunk-ZKUI7MRS.js} +2 -1
- package/chunks/chunk-ZTPERUHN.js +2 -0
- package/chunks/claude-code-T26K2CSI.js +2 -0
- package/chunks/clone-UYEZ44LL.js +6 -0
- package/chunks/{commitmsg-ZGOEO5YG.js → commitmsg-646PHU7A.js} +3 -2
- package/chunks/concern-YRABYUVO.js +2 -0
- package/chunks/{deno-MMJLKXAE.js → deno-VWFDRCYK.js} +2 -1
- package/chunks/{dev-JHAHGTZP.js → dev-G4VQ2IYE.js} +3 -2
- package/chunks/done-5SD4KWRA.js +2 -0
- package/chunks/file-tools-shared-6W7Q4BM3.js +2 -0
- package/chunks/{fileFromPath-4UEDFJ4U.js → fileFromPath-MB3IRZVW.js} +2 -1
- package/chunks/gemini-F4KLO5VU.js +2 -0
- package/chunks/gh-CD3B5KEN.js +5 -0
- package/chunks/{gh-contributors-G3QZZAUO.js → gh-contributors-35JDS77W.js} +2 -1
- package/chunks/init-FAWK4Z3E.js +2 -0
- package/chunks/{init-IPZHDMAH.js → init-URA5HJ76.js} +4 -3
- package/chunks/install-M74UAT7X.js +3 -0
- package/chunks/invoke-hook-4LHASYW3.js +10 -0
- package/chunks/kiro-G4OHOVFL.js +2 -0
- package/chunks/{list-2RZIQZGH.js → list-4EO2DKMM.js} +2 -1
- package/chunks/{list-DSVIPH45.js → list-J5HOVH5E.js} +2 -1
- package/chunks/list-LBUVQR7O.js +2 -0
- package/chunks/load-config-DVKFZVST.js +2 -0
- package/chunks/{main-FQFNY7SM.js → main-ODLLH74E.js} +3 -2
- package/chunks/manifest-QSFTIV3B.js +2 -0
- package/chunks/mod-4ILLF5PK.js +2 -0
- package/chunks/mod-5ZKIEGUP.js +2 -0
- package/chunks/mod-6DSPYXMK.js +2 -0
- package/chunks/{mod-QJMMYECF.js → mod-BE3R7D2V.js} +3 -2
- package/chunks/{mod-TLLZ3NAM.js → mod-EWGGLW3S.js} +2 -1
- package/chunks/{mod-TSU5UWXA.js → mod-QHYBU43F.js} +2 -1
- package/chunks/mod-RLMNE7UW.js +2 -0
- package/chunks/{mod-VZPKQ7DG.js → mod-S5HDMMLJ.js} +2 -1
- package/chunks/{mod-WYRORC72.js → mod-T55CWDLD.js} +2 -1
- package/chunks/mod-U23K3LXJ.js +2 -0
- package/chunks/mod-YSMK5V7P.js +2 -0
- package/chunks/mod-ZZYMEYCH.js +28 -0
- package/chunks/{new-EAETGSIR.js → new-GDE5UZWP.js} +2 -1
- package/chunks/next-2HGZUAMR.js +4 -0
- package/chunks/{node-RWYXITVV.js → node-KCQF6QQA.js} +2 -1
- package/chunks/{node-SMAAGOR3.js → node-SUFYFPRO.js} +2 -1
- package/chunks/ollama-EE7S3UZE.js +2 -0
- package/chunks/openai-EU5TJZ5T.js +2 -0
- package/chunks/{openai-EKIA3VP3.js → openai-IKXRJYI3.js} +2 -1
- package/chunks/opencode-WUF4YPPD.js +2 -0
- package/chunks/purge-OIEP3ALR.js +5 -0
- package/chunks/recipe-applier-WZ43N5XT.js +2 -0
- package/chunks/registry-fetcher-G33L5S7X.js +2 -0
- package/chunks/{release-6PVE4O6P.js → release-5BYYTQJI.js} +3 -2
- package/chunks/{release-notes-734LKEJB.js → release-notes-6M2YRB3G.js} +2 -1
- package/chunks/release-tag-QP4ZKQNS.js +2 -0
- package/chunks/reset-TKTDLTXB.js +2 -0
- package/chunks/rule-6TDBH4BL.js +3 -0
- package/chunks/{run-ES4BLQQX.js → run-SU27QAHR.js} +3 -2
- package/chunks/run-TQEEFEDE.js +4 -0
- package/chunks/{scripts-COIXD5AD.js → scripts-ZSF43ZJN.js} +2 -1
- package/chunks/{sdk-5JGXLIO5.js → sdk-MXV452BR.js} +2 -1
- package/chunks/serve-JSDQDTTM.js +4 -0
- package/chunks/{server-RYWDAYED.js → server-P46LIK5C.js} +2 -1
- package/chunks/spec-ATRKKK2P.js +2 -0
- package/chunks/status-H2KLEMT6.js +2 -0
- package/chunks/sync-CK7PWMKK.js +2 -0
- package/chunks/system-IV54LJTN.js +2 -0
- package/chunks/system-NSABXTHD.js +2 -0
- package/chunks/{unstable_chmod-WRDBWEC2.js → unstable_chmod-GDQI7NKH.js} +2 -1
- package/chunks/update-HP5WGRNK.js +6 -0
- package/chunks/validate-bom-KGIGVVOU.js +2 -0
- package/chunks/validate-case-conflict-OO2AO434.js +2 -0
- package/chunks/validate-circular-deps-32ISYSEO.js +2 -0
- package/chunks/validate-commit-msg-2FLWH6TC.js +2 -0
- package/chunks/validate-docs-MNQ7ZRID.js +2 -0
- package/chunks/validate-eof-E33EQKDM.js +2 -0
- package/chunks/validate-export-names-IWS4NRYR.js +2 -0
- package/chunks/validate-filenames-GKDIEJH4.js +2 -0
- package/chunks/validate-json-L7BSQN3G.js +2 -0
- package/chunks/validate-large-files-CHHOQREX.js +2 -0
- package/chunks/validate-licenses-5WEHTSL4.js +2 -0
- package/chunks/validate-line-endings-EWGW2ZWD.js +2 -0
- package/chunks/validate-merge-conflict-IN5ZQJDJ.js +2 -0
- package/chunks/validate-mod-exports-PHEFFLDK.js +2 -0
- package/chunks/validate-package-configs-FXHXJMG4.js +2 -0
- package/chunks/validate-secrets-ABX5UNHC.js +2 -0
- package/chunks/validate-shebangs-47GMC7WX.js +2 -0
- package/chunks/validate-submodules-4BPO5ORH.js +2 -0
- package/chunks/validate-symlinks-OCGMLYJS.js +2 -0
- package/chunks/validate-toml-MYSG53JW.js +2 -0
- package/chunks/validate-trailing-whitespace-AXXHTIAE.js +2 -0
- package/chunks/validate-yaml-FT5PODBP.js +2 -0
- package/chunks/versions-PZPDQ673.js +2 -0
- package/chunks/vertexai-EXTYPVHK.js +2 -0
- package/chunks/watch-47KEOG5L.js +9 -0
- package/chunks/workerd-LDORGZ6V.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/changelog-gen-LV5VWTZS.js +0 -7
- 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-LO424HF3.js +0 -60
- 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-TTYO2XJO.js +0 -32
- package/chunks/chunk-V2N5L24J.js +0 -2
- package/chunks/chunk-Z4WPWVC7.js +0 -10
- 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-T76TRJWM.js +0 -1
- package/chunks/mod-U6LEXPVR.js +0 -1
- package/chunks/next-F2BIIAZC.js +0 -3
- 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/release-tag-YX727TXO.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-5LLFPIWV.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,4 +1,5 @@
|
|
|
1
|
-
import{a as Nh,b as kh}from"./chunk-AK3OJD4W.js";import{a as U,b as me,c as M,d as Rh,f as Ph}from"./chunk-DXB73IDG.js";var mo=M((WS,dl)=>{"use strict";var Er=Object.prototype.hasOwnProperty,fl=Object.prototype.toString,ol=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,al=function(e){return typeof Array.isArray=="function"?Array.isArray(e):fl.call(e)==="[object Array]"},ll=function(e){if(!e||fl.call(e)!=="[object Object]")return!1;var t=Er.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Er.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var i;for(i in e);return typeof i>"u"||Er.call(e,i)},cl=function(e,t){ol&&t.name==="__proto__"?ol(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ul=function(e,t){if(t==="__proto__")if(Er.call(e,t)){if(sl)return sl(e,t).value}else return;return e[t]};dl.exports=function n(){var e,t,r,i,o,s,c=arguments[0],f=1,u=arguments.length,d=!1;for(typeof c=="boolean"&&(d=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<u;++f)if(e=arguments[f],e!=null)for(t in e)r=ul(c,t),i=ul(e,t),c!==i&&(d&&i&&(ll(i)||(o=al(i)))?(o?(o=!1,s=r&&al(r)?r:[]):s=r&&ll(r)?r:{},cl(c,{name:t,newValue:n(d,s,i)})):typeof i<"u"&&cl(c,{name:t,newValue:i}));return c}});var pl=M((JS,hl)=>{"use strict";var Xe=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";Xe.writable=n=>Xe(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object";Xe.readable=n=>Xe(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object";Xe.duplex=n=>Xe.writable(n)&&Xe.readable(n);Xe.transform=n=>Xe.duplex(n)&&typeof n._transform=="function";hl.exports=Xe});var gl=M((KS,bh)=>{bh.exports={name:"gaxios",version:"6.7.1",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/src/index.js",types:"build/src/index.d.ts",files:["build/src"],scripts:{lint:"gts check",test:"c8 mocha build/test","presystem-test":"npm run compile","system-test":"mocha build/system-test --timeout 80000",compile:"tsc -p .",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"compodoc src/","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},repository:"googleapis/gaxios",keywords:["google"],engines:{node:">=14"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@compodoc/compodoc":"1.1.19","@types/cors":"^2.8.6","@types/express":"^4.16.1","@types/extend":"^3.0.1","@types/mocha":"^9.0.0","@types/multiparty":"0.0.36","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^20.0.0","@types/node-fetch":"^2.5.7","@types/sinon":"^17.0.0","@types/tmp":"0.2.6","@types/uuid":"^10.0.0","abort-controller":"^3.0.0",assert:"^2.0.0",browserify:"^17.0.0",c8:"^8.0.0",cheerio:"1.0.0-rc.10",cors:"^2.8.5",execa:"^5.0.0",express:"^4.16.4","form-data":"^4.0.0",gts:"^5.0.0","is-docker":"^2.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"5.0.0",linkinator:"^3.0.0",mocha:"^8.0.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^13.0.0","null-loader":"^4.0.0",puppeteer:"^19.0.0",sinon:"^18.0.0","stream-browserify":"^3.0.0",tmp:"0.2.3","ts-loader":"^8.0.0",typescript:"^5.1.6",webpack:"^5.35.0","webpack-cli":"^4.0.0"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","is-stream":"^2.0.0","node-fetch":"^2.6.9",uuid:"^9.0.1"}}});var ml=M(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.pkg=void 0;vr.pkg=gl()});var Eo=M(Ne=>{"use strict";var Mh=Ne&&Ne.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},yl;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.GaxiosError=Ne.GAXIOS_ERROR_SYMBOL=void 0;Ne.defaultErrorRedactor=El;var Oh=U("url"),yo=ml(),_l=Mh(mo());Ne.GAXIOS_ERROR_SYMBOL=Symbol.for(`${yo.pkg.name}-gaxios-error`);var _o=class n extends Error{static[(yl=Ne.GAXIOS_ERROR_SYMBOL,Symbol.hasInstance)](e){return e&&typeof e=="object"&&Ne.GAXIOS_ERROR_SYMBOL in e&&e[Ne.GAXIOS_ERROR_SYMBOL]===yo.pkg.version?!0:Function.prototype[Symbol.hasInstance].call(n,e)}constructor(e,t,r,i){var o;if(super(e),this.config=t,this.response=r,this.error=i,this[yl]=yo.pkg.version,this.config=(0,_l.default)(!0,{},t),this.response&&(this.response.config=(0,_l.default)(!0,{},this.response.config)),this.response){try{this.response.data=Dh(this.config.responseType,(o=this.response)===null||o===void 0?void 0:o.data)}catch{}this.status=this.response.status}i&&"code"in i&&i.code&&(this.code=i.code),t.errorRedactor&&t.errorRedactor({config:this.config,response:this.response})}};Ne.GaxiosError=_o;function Dh(n,e){switch(n){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}function El(n){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function t(o){if(o)for(let s of Object.keys(o))/^authentication$/i.test(s)&&(o[s]=e),/^authorization$/i.test(s)&&(o[s]=e),/secret/i.test(s)&&(o[s]=e)}function r(o,s){if(typeof o=="object"&&o!==null&&typeof o[s]=="string"){let c=o[s];(/grant_type=/i.test(c)||/assertion=/i.test(c)||/secret/i.test(c))&&(o[s]=e)}}function i(o){typeof o=="object"&&o!==null&&("grant_type"in o&&(o.grant_type=e),"assertion"in o&&(o.assertion=e),"client_secret"in o&&(o.client_secret=e))}if(n.config){t(n.config.headers),r(n.config,"data"),i(n.config.data),r(n.config,"body"),i(n.config.body);try{let o=new Oh.URL("",n.config.url);o.searchParams.has("token")&&o.searchParams.set("token",e),o.searchParams.has("client_secret")&&o.searchParams.set("client_secret",e),n.config.url=o.toString()}catch{}}return n.response&&(El({config:n.response.config}),t(n.response.headers),r(n.response,"data"),i(n.response.data)),n}});var Tl=M(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.getRetryConfig=Uh;async function Uh(n){let e=vl(n);if(!n||!n.config||!e&&!n.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let t=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||t,n.config.retryConfig=e,!await(e.shouldRetry||Fh)(n))return{shouldRetry:!1,config:n.config};let i=Lh(e);n.config.retryConfig.currentRetryAttempt+=1;let o=e.retryBackoff?e.retryBackoff(n,i):new Promise(s=>{setTimeout(s,i)});return e.onRetryAttempt&&e.onRetryAttempt(n),await o,{shouldRetry:!0,config:n.config}}function Fh(n){var e;let t=vl(n);if(n.name==="AbortError"||((e=n.error)===null||e===void 0?void 0:e.name)==="AbortError"||!t||t.retry===0||!n.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries||!n.config.method||t.httpMethodsToRetry.indexOf(n.config.method.toUpperCase())<0)return!1;if(n.response&&n.response.status){let r=!1;for(let[i,o]of t.statusCodesToRetry){let s=n.response.status;if(s>=i&&s<=o){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function vl(n){if(n&&n.config&&n.config.retryConfig)return n.config.retryConfig}function Lh(n){var e;let r=(n.currentRetryAttempt?0:(e=n.retryDelay)!==null&&e!==void 0?e:100)+(Math.pow(n.retryDelayMultiplier,n.currentRetryAttempt)-1)/2*1e3,i=n.totalTimeout-(Date.now()-n.timeOfFirstRequest);return Math.min(r,i,n.maxRetryDelay)}});import qh from"crypto";function Mn(){return Tr>Cr.length-16&&(qh.randomFillSync(Cr),Tr=0),Cr.slice(Tr,Tr+=16)}var Cr,Tr,To=me(()=>{Cr=new Uint8Array(256),Tr=Cr.length});var Cl,Sl=me(()=>{Cl=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function Gh(n){return typeof n=="string"&&Cl.test(n)}var mt,On=me(()=>{Sl();mt=Gh});function kt(n,e=0){return he[n[e+0]]+he[n[e+1]]+he[n[e+2]]+he[n[e+3]]+"-"+he[n[e+4]]+he[n[e+5]]+"-"+he[n[e+6]]+he[n[e+7]]+"-"+he[n[e+8]]+he[n[e+9]]+"-"+he[n[e+10]]+he[n[e+11]]+he[n[e+12]]+he[n[e+13]]+he[n[e+14]]+he[n[e+15]]}function Bh(n,e=0){let t=kt(n,e);if(!mt(t))throw TypeError("Stringified UUID is invalid");return t}var he,wl,Dn=me(()=>{On();he=[];for(let n=0;n<256;++n)he.push((n+256).toString(16).slice(1));wl=Bh});function Vh(n,e,t){let r=e&&t||0,i=e||new Array(16);n=n||{};let o=n.node||Al,s=n.clockseq!==void 0?n.clockseq:Co;if(o==null||s==null){let g=n.random||(n.rng||Mn)();o==null&&(o=Al=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),s==null&&(s=Co=(g[6]<<8|g[7])&16383)}let c=n.msecs!==void 0?n.msecs:Date.now(),f=n.nsecs!==void 0?n.nsecs:wo+1,u=c-So+(f-wo)/1e4;if(u<0&&n.clockseq===void 0&&(s=s+1&16383),(u<0||c>So)&&n.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");So=c,wo=f,Co=s,c+=122192928e5;let d=((c&268435455)*1e4+f)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let h=c/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=h&255,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let g=0;g<6;++g)i[r+g]=o[g];return e||kt(i)}var Al,Co,So,wo,xl,Il=me(()=>{To();Dn();So=0,wo=0;xl=Vh});function Hh(n){if(!mt(n))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var Sr,Ao=me(()=>{On();Sr=Hh});function $h(n){n=unescape(encodeURIComponent(n));let e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}function Un(n,e,t){function r(i,o,s,c){var f;if(typeof i=="string"&&(i=$h(i)),typeof o=="string"&&(o=Sr(o)),((f=o)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,s){c=c||0;for(let d=0;d<16;++d)s[c+d]=u[d];return s}return kt(u)}try{r.name=n}catch{}return r.DNS=Wh,r.URL=Jh,r}var Wh,Jh,xo=me(()=>{Dn();Ao();Wh="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Jh="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});import Kh from"crypto";function Yh(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),Kh.createHash("md5").update(n).digest()}var Rl,Pl=me(()=>{Rl=Yh});var zh,Nl,kl=me(()=>{xo();Pl();zh=Un("v3",48,Rl),Nl=zh});import Xh from"crypto";var Io,bl=me(()=>{Io={randomUUID:Xh.randomUUID}});function jh(n,e,t){if(Io.randomUUID&&!e&&!n)return Io.randomUUID();n=n||{};let r=n.random||(n.rng||Mn)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=r[i];return e}return kt(r)}var Ml,Ol=me(()=>{bl();To();Dn();Ml=jh});import Zh from"crypto";function Qh(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),Zh.createHash("sha1").update(n).digest()}var Dl,Ul=me(()=>{Dl=Qh});var ep,Fl,Ll=me(()=>{xo();Ul();ep=Un("v5",80,Dl),Fl=ep});var ql,Gl=me(()=>{ql="00000000-0000-0000-0000-000000000000"});function tp(n){if(!mt(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var Bl,Vl=me(()=>{On();Bl=tp});var Hl={};Rh(Hl,{NIL:()=>ql,parse:()=>Sr,stringify:()=>wl,v1:()=>xl,v3:()=>Nl,v4:()=>Ml,v5:()=>Fl,validate:()=>mt,version:()=>Bl});var $l=me(()=>{Il();kl();Ol();Ll();Gl();Vl();On();Dn();Ao()});var Po=M(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.GaxiosInterceptorManager=void 0;var Ro=class extends Set{};wr.GaxiosInterceptorManager=Ro});var No=M((Bw,Wl)=>{function np(n){t.debug=t,t.default=t,t.coerce=f,t.disable=s,t.enable=i,t.enabled=c,t.humanize=kh(),t.destroy=u,Object.keys(n).forEach(d=>{t[d]=n[d]}),t.names=[],t.skips=[],t.formatters={};function e(d){let h=0;for(let g=0;g<d.length;g++)h=(h<<5)-h+d.charCodeAt(g),h|=0;return t.colors[Math.abs(h)%t.colors.length]}t.selectColor=e;function t(d){let h,g=null,v,w;function C(...N){if(!C.enabled)return;let k=C,G=Number(new Date),L=G-(h||G);k.diff=L,k.prev=h,k.curr=G,h=G,N[0]=t.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let q=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(B,J)=>{if(B==="%%")return"%";q++;let Y=t.formatters[J];if(typeof Y=="function"){let D=N[q];B=Y.call(k,D),N.splice(q,1),q--}return B}),t.formatArgs.call(k,N),(k.log||t.log).apply(k,N)}return C.namespace=d,C.useColors=t.useColors(),C.color=t.selectColor(d),C.extend=r,C.destroy=t.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==t.namespaces&&(v=t.namespaces,w=t.enabled(d)),w),set:N=>{g=N}}),typeof t.init=="function"&&t.init(C),C}function r(d,h){let g=t(this.namespace+(typeof h>"u"?":":h)+d);return g.log=this.log,g}function i(d){t.save(d),t.namespaces=d,t.names=[],t.skips=[];let h=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?t.skips.push(g.slice(1)):t.names.push(g)}function o(d,h){let g=0,v=0,w=-1,C=0;for(;g<d.length;)if(v<h.length&&(h[v]===d[g]||h[v]==="*"))h[v]==="*"?(w=v,C=g,v++):(g++,v++);else if(w!==-1)v=w+1,C++,g=C;else return!1;for(;v<h.length&&h[v]==="*";)v++;return v===h.length}function s(){let d=[...t.names,...t.skips.map(h=>"-"+h)].join(",");return t.enable(""),d}function c(d){for(let h of t.skips)if(o(d,h))return!1;for(let h of t.names)if(o(d,h))return!0;return!1}function f(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Wl.exports=np});var Jl=M((Ce,Ar)=>{Ce.formatArgs=ip;Ce.save=op;Ce.load=sp;Ce.useColors=rp;Ce.storage=ap();Ce.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rp(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ip(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+Ar.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,r=0;n[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(t++,i==="%c"&&(r=t))}),n.splice(r,0,e)}Ce.log=console.debug||console.log||(()=>{});function op(n){try{n?Ce.storage.setItem("debug",n):Ce.storage.removeItem("debug")}catch{}}function sp(){let n;try{n=Ce.storage.getItem("debug")||Ce.storage.getItem("DEBUG")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function ap(){try{return localStorage}catch{}}Ar.exports=No()(Ce);var{formatters:lp}=Ar.exports;lp.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Yl=M((ce,Ir)=>{var cp=U("tty"),xr=U("util");ce.init=mp;ce.log=hp;ce.formatArgs=fp;ce.save=pp;ce.load=gp;ce.useColors=up;ce.destroy=xr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ce.colors=[6,2,3,4,5,1];try{let n=U("supports-color");n&&(n.stderr||n).level>=2&&(ce.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ce.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),n[t]=r,n},{});function up(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:cp.isatty(process.stderr.fd)}function fp(n){let{namespace:e,useColors:t}=this;if(t){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${i};1m${e} \x1B[0m`;n[0]=o+n[0].split(`
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as Nh,b as kh}from"./chunk-DAK2I7UC.js";import{a as U,b as me,c as M,d as Rh,f as Ph}from"./chunk-G6NAG2EK.js";var mo=M((WS,dl)=>{"use strict";var Er=Object.prototype.hasOwnProperty,fl=Object.prototype.toString,ol=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,al=function(e){return typeof Array.isArray=="function"?Array.isArray(e):fl.call(e)==="[object Array]"},ll=function(e){if(!e||fl.call(e)!=="[object Object]")return!1;var t=Er.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Er.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var i;for(i in e);return typeof i>"u"||Er.call(e,i)},cl=function(e,t){ol&&t.name==="__proto__"?ol(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ul=function(e,t){if(t==="__proto__")if(Er.call(e,t)){if(sl)return sl(e,t).value}else return;return e[t]};dl.exports=function n(){var e,t,r,i,o,s,c=arguments[0],f=1,u=arguments.length,d=!1;for(typeof c=="boolean"&&(d=c,c=arguments[1]||{},f=2),(c==null||typeof c!="object"&&typeof c!="function")&&(c={});f<u;++f)if(e=arguments[f],e!=null)for(t in e)r=ul(c,t),i=ul(e,t),c!==i&&(d&&i&&(ll(i)||(o=al(i)))?(o?(o=!1,s=r&&al(r)?r:[]):s=r&&ll(r)?r:{},cl(c,{name:t,newValue:n(d,s,i)})):typeof i<"u"&&cl(c,{name:t,newValue:i}));return c}});var pl=M((JS,hl)=>{"use strict";var Xe=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";Xe.writable=n=>Xe(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object";Xe.readable=n=>Xe(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object";Xe.duplex=n=>Xe.writable(n)&&Xe.readable(n);Xe.transform=n=>Xe.duplex(n)&&typeof n._transform=="function";hl.exports=Xe});var gl=M((KS,bh)=>{bh.exports={name:"gaxios",version:"6.7.1",description:"A simple common HTTP client specifically for Google APIs and services.",main:"build/src/index.js",types:"build/src/index.d.ts",files:["build/src"],scripts:{lint:"gts check",test:"c8 mocha build/test","presystem-test":"npm run compile","system-test":"mocha build/system-test --timeout 80000",compile:"tsc -p .",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"compodoc src/","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},repository:"googleapis/gaxios",keywords:["google"],engines:{node:">=14"},author:"Google, LLC",license:"Apache-2.0",devDependencies:{"@babel/plugin-proposal-private-methods":"^7.18.6","@compodoc/compodoc":"1.1.19","@types/cors":"^2.8.6","@types/express":"^4.16.1","@types/extend":"^3.0.1","@types/mocha":"^9.0.0","@types/multiparty":"0.0.36","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^20.0.0","@types/node-fetch":"^2.5.7","@types/sinon":"^17.0.0","@types/tmp":"0.2.6","@types/uuid":"^10.0.0","abort-controller":"^3.0.0",assert:"^2.0.0",browserify:"^17.0.0",c8:"^8.0.0",cheerio:"1.0.0-rc.10",cors:"^2.8.5",execa:"^5.0.0",express:"^4.16.4","form-data":"^4.0.0",gts:"^5.0.0","is-docker":"^2.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"5.0.0",linkinator:"^3.0.0",mocha:"^8.0.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^13.0.0","null-loader":"^4.0.0",puppeteer:"^19.0.0",sinon:"^18.0.0","stream-browserify":"^3.0.0",tmp:"0.2.3","ts-loader":"^8.0.0",typescript:"^5.1.6",webpack:"^5.35.0","webpack-cli":"^4.0.0"},dependencies:{extend:"^3.0.2","https-proxy-agent":"^7.0.1","is-stream":"^2.0.0","node-fetch":"^2.6.9",uuid:"^9.0.1"}}});var ml=M(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.pkg=void 0;vr.pkg=gl()});var Eo=M(Ne=>{"use strict";var Mh=Ne&&Ne.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},yl;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.GaxiosError=Ne.GAXIOS_ERROR_SYMBOL=void 0;Ne.defaultErrorRedactor=El;var Oh=U("url"),yo=ml(),_l=Mh(mo());Ne.GAXIOS_ERROR_SYMBOL=Symbol.for(`${yo.pkg.name}-gaxios-error`);var _o=class n extends Error{static[(yl=Ne.GAXIOS_ERROR_SYMBOL,Symbol.hasInstance)](e){return e&&typeof e=="object"&&Ne.GAXIOS_ERROR_SYMBOL in e&&e[Ne.GAXIOS_ERROR_SYMBOL]===yo.pkg.version?!0:Function.prototype[Symbol.hasInstance].call(n,e)}constructor(e,t,r,i){var o;if(super(e),this.config=t,this.response=r,this.error=i,this[yl]=yo.pkg.version,this.config=(0,_l.default)(!0,{},t),this.response&&(this.response.config=(0,_l.default)(!0,{},this.response.config)),this.response){try{this.response.data=Dh(this.config.responseType,(o=this.response)===null||o===void 0?void 0:o.data)}catch{}this.status=this.response.status}i&&"code"in i&&i.code&&(this.code=i.code),t.errorRedactor&&t.errorRedactor({config:this.config,response:this.response})}};Ne.GaxiosError=_o;function Dh(n,e){switch(n){case"stream":return e;case"json":return JSON.parse(JSON.stringify(e));case"arraybuffer":return JSON.parse(Buffer.from(e).toString("utf8"));case"blob":return JSON.parse(e.text());default:return e}}function El(n){let e="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function t(o){if(o)for(let s of Object.keys(o))/^authentication$/i.test(s)&&(o[s]=e),/^authorization$/i.test(s)&&(o[s]=e),/secret/i.test(s)&&(o[s]=e)}function r(o,s){if(typeof o=="object"&&o!==null&&typeof o[s]=="string"){let c=o[s];(/grant_type=/i.test(c)||/assertion=/i.test(c)||/secret/i.test(c))&&(o[s]=e)}}function i(o){typeof o=="object"&&o!==null&&("grant_type"in o&&(o.grant_type=e),"assertion"in o&&(o.assertion=e),"client_secret"in o&&(o.client_secret=e))}if(n.config){t(n.config.headers),r(n.config,"data"),i(n.config.data),r(n.config,"body"),i(n.config.body);try{let o=new Oh.URL("",n.config.url);o.searchParams.has("token")&&o.searchParams.set("token",e),o.searchParams.has("client_secret")&&o.searchParams.set("client_secret",e),n.config.url=o.toString()}catch{}}return n.response&&(El({config:n.response.config}),t(n.response.headers),r(n.response,"data"),i(n.response.data)),n}});var Tl=M(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.getRetryConfig=Uh;async function Uh(n){let e=vl(n);if(!n||!n.config||!e&&!n.config.retry)return{shouldRetry:!1};e=e||{},e.currentRetryAttempt=e.currentRetryAttempt||0,e.retry=e.retry===void 0||e.retry===null?3:e.retry,e.httpMethodsToRetry=e.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],e.noResponseRetries=e.noResponseRetries===void 0||e.noResponseRetries===null?2:e.noResponseRetries,e.retryDelayMultiplier=e.retryDelayMultiplier?e.retryDelayMultiplier:2,e.timeOfFirstRequest=e.timeOfFirstRequest?e.timeOfFirstRequest:Date.now(),e.totalTimeout=e.totalTimeout?e.totalTimeout:Number.MAX_SAFE_INTEGER,e.maxRetryDelay=e.maxRetryDelay?e.maxRetryDelay:Number.MAX_SAFE_INTEGER;let t=[[100,199],[408,408],[429,429],[500,599]];if(e.statusCodesToRetry=e.statusCodesToRetry||t,n.config.retryConfig=e,!await(e.shouldRetry||Fh)(n))return{shouldRetry:!1,config:n.config};let i=Lh(e);n.config.retryConfig.currentRetryAttempt+=1;let o=e.retryBackoff?e.retryBackoff(n,i):new Promise(s=>{setTimeout(s,i)});return e.onRetryAttempt&&e.onRetryAttempt(n),await o,{shouldRetry:!0,config:n.config}}function Fh(n){var e;let t=vl(n);if(n.name==="AbortError"||((e=n.error)===null||e===void 0?void 0:e.name)==="AbortError"||!t||t.retry===0||!n.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries||!n.config.method||t.httpMethodsToRetry.indexOf(n.config.method.toUpperCase())<0)return!1;if(n.response&&n.response.status){let r=!1;for(let[i,o]of t.statusCodesToRetry){let s=n.response.status;if(s>=i&&s<=o){r=!0;break}}if(!r)return!1}return t.currentRetryAttempt=t.currentRetryAttempt||0,!(t.currentRetryAttempt>=t.retry)}function vl(n){if(n&&n.config&&n.config.retryConfig)return n.config.retryConfig}function Lh(n){var e;let r=(n.currentRetryAttempt?0:(e=n.retryDelay)!==null&&e!==void 0?e:100)+(Math.pow(n.retryDelayMultiplier,n.currentRetryAttempt)-1)/2*1e3,i=n.totalTimeout-(Date.now()-n.timeOfFirstRequest);return Math.min(r,i,n.maxRetryDelay)}});import qh from"crypto";function Mn(){return Tr>Cr.length-16&&(qh.randomFillSync(Cr),Tr=0),Cr.slice(Tr,Tr+=16)}var Cr,Tr,To=me(()=>{Cr=new Uint8Array(256),Tr=Cr.length});var Cl,Sl=me(()=>{Cl=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function Gh(n){return typeof n=="string"&&Cl.test(n)}var mt,On=me(()=>{Sl();mt=Gh});function kt(n,e=0){return he[n[e+0]]+he[n[e+1]]+he[n[e+2]]+he[n[e+3]]+"-"+he[n[e+4]]+he[n[e+5]]+"-"+he[n[e+6]]+he[n[e+7]]+"-"+he[n[e+8]]+he[n[e+9]]+"-"+he[n[e+10]]+he[n[e+11]]+he[n[e+12]]+he[n[e+13]]+he[n[e+14]]+he[n[e+15]]}function Bh(n,e=0){let t=kt(n,e);if(!mt(t))throw TypeError("Stringified UUID is invalid");return t}var he,wl,Dn=me(()=>{On();he=[];for(let n=0;n<256;++n)he.push((n+256).toString(16).slice(1));wl=Bh});function Vh(n,e,t){let r=e&&t||0,i=e||new Array(16);n=n||{};let o=n.node||Al,s=n.clockseq!==void 0?n.clockseq:Co;if(o==null||s==null){let g=n.random||(n.rng||Mn)();o==null&&(o=Al=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),s==null&&(s=Co=(g[6]<<8|g[7])&16383)}let c=n.msecs!==void 0?n.msecs:Date.now(),f=n.nsecs!==void 0?n.nsecs:wo+1,u=c-So+(f-wo)/1e4;if(u<0&&n.clockseq===void 0&&(s=s+1&16383),(u<0||c>So)&&n.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");So=c,wo=f,Co=s,c+=122192928e5;let d=((c&268435455)*1e4+f)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let h=c/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=h&255,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=s>>>8|128,i[r++]=s&255;for(let g=0;g<6;++g)i[r+g]=o[g];return e||kt(i)}var Al,Co,So,wo,xl,Il=me(()=>{To();Dn();So=0,wo=0;xl=Vh});function Hh(n){if(!mt(n))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var Sr,Ao=me(()=>{On();Sr=Hh});function $h(n){n=unescape(encodeURIComponent(n));let e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}function Un(n,e,t){function r(i,o,s,c){var f;if(typeof i=="string"&&(i=$h(i)),typeof o=="string"&&(o=Sr(o)),((f=o)===null||f===void 0?void 0:f.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,s){c=c||0;for(let d=0;d<16;++d)s[c+d]=u[d];return s}return kt(u)}try{r.name=n}catch{}return r.DNS=Wh,r.URL=Jh,r}var Wh,Jh,xo=me(()=>{Dn();Ao();Wh="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Jh="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});import Kh from"crypto";function Yh(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),Kh.createHash("md5").update(n).digest()}var Rl,Pl=me(()=>{Rl=Yh});var zh,Nl,kl=me(()=>{xo();Pl();zh=Un("v3",48,Rl),Nl=zh});import Xh from"crypto";var Io,bl=me(()=>{Io={randomUUID:Xh.randomUUID}});function jh(n,e,t){if(Io.randomUUID&&!e&&!n)return Io.randomUUID();n=n||{};let r=n.random||(n.rng||Mn)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=r[i];return e}return kt(r)}var Ml,Ol=me(()=>{bl();To();Dn();Ml=jh});import Zh from"crypto";function Qh(n){return Array.isArray(n)?n=Buffer.from(n):typeof n=="string"&&(n=Buffer.from(n,"utf8")),Zh.createHash("sha1").update(n).digest()}var Dl,Ul=me(()=>{Dl=Qh});var ep,Fl,Ll=me(()=>{xo();Ul();ep=Un("v5",80,Dl),Fl=ep});var ql,Gl=me(()=>{ql="00000000-0000-0000-0000-000000000000"});function tp(n){if(!mt(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var Bl,Vl=me(()=>{On();Bl=tp});var Hl={};Rh(Hl,{NIL:()=>ql,parse:()=>Sr,stringify:()=>wl,v1:()=>xl,v3:()=>Nl,v4:()=>Ml,v5:()=>Fl,validate:()=>mt,version:()=>Bl});var $l=me(()=>{Il();kl();Ol();Ll();Gl();Vl();On();Dn();Ao()});var Po=M(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.GaxiosInterceptorManager=void 0;var Ro=class extends Set{};wr.GaxiosInterceptorManager=Ro});var No=M((Bw,Wl)=>{function np(n){t.debug=t,t.default=t,t.coerce=f,t.disable=s,t.enable=i,t.enabled=c,t.humanize=kh(),t.destroy=u,Object.keys(n).forEach(d=>{t[d]=n[d]}),t.names=[],t.skips=[],t.formatters={};function e(d){let h=0;for(let g=0;g<d.length;g++)h=(h<<5)-h+d.charCodeAt(g),h|=0;return t.colors[Math.abs(h)%t.colors.length]}t.selectColor=e;function t(d){let h,g=null,v,w;function C(...N){if(!C.enabled)return;let k=C,G=Number(new Date),L=G-(h||G);k.diff=L,k.prev=h,k.curr=G,h=G,N[0]=t.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let q=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(B,J)=>{if(B==="%%")return"%";q++;let Y=t.formatters[J];if(typeof Y=="function"){let D=N[q];B=Y.call(k,D),N.splice(q,1),q--}return B}),t.formatArgs.call(k,N),(k.log||t.log).apply(k,N)}return C.namespace=d,C.useColors=t.useColors(),C.color=t.selectColor(d),C.extend=r,C.destroy=t.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==t.namespaces&&(v=t.namespaces,w=t.enabled(d)),w),set:N=>{g=N}}),typeof t.init=="function"&&t.init(C),C}function r(d,h){let g=t(this.namespace+(typeof h>"u"?":":h)+d);return g.log=this.log,g}function i(d){t.save(d),t.namespaces=d,t.names=[],t.skips=[];let h=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?t.skips.push(g.slice(1)):t.names.push(g)}function o(d,h){let g=0,v=0,w=-1,C=0;for(;g<d.length;)if(v<h.length&&(h[v]===d[g]||h[v]==="*"))h[v]==="*"?(w=v,C=g,v++):(g++,v++);else if(w!==-1)v=w+1,C++,g=C;else return!1;for(;v<h.length&&h[v]==="*";)v++;return v===h.length}function s(){let d=[...t.names,...t.skips.map(h=>"-"+h)].join(",");return t.enable(""),d}function c(d){for(let h of t.skips)if(o(d,h))return!1;for(let h of t.names)if(o(d,h))return!0;return!1}function f(d){return d instanceof Error?d.stack||d.message:d}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Wl.exports=np});var Jl=M((Ce,Ar)=>{Ce.formatArgs=ip;Ce.save=op;Ce.load=sp;Ce.useColors=rp;Ce.storage=ap();Ce.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ce.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function rp(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ip(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+Ar.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;n.splice(1,0,e,"color: inherit");let t=0,r=0;n[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(t++,i==="%c"&&(r=t))}),n.splice(r,0,e)}Ce.log=console.debug||console.log||(()=>{});function op(n){try{n?Ce.storage.setItem("debug",n):Ce.storage.removeItem("debug")}catch{}}function sp(){let n;try{n=Ce.storage.getItem("debug")||Ce.storage.getItem("DEBUG")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=process.env.DEBUG),n}function ap(){try{return localStorage}catch{}}Ar.exports=No()(Ce);var{formatters:lp}=Ar.exports;lp.j=function(n){try{return JSON.stringify(n)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Yl=M((ce,Ir)=>{var cp=U("tty"),xr=U("util");ce.init=mp;ce.log=hp;ce.formatArgs=fp;ce.save=pp;ce.load=gp;ce.useColors=up;ce.destroy=xr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ce.colors=[6,2,3,4,5,1];try{let n=U("supports-color");n&&(n.stderr||n).level>=2&&(ce.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ce.inspectOpts=Object.keys(process.env).filter(n=>/^debug_/i.test(n)).reduce((n,e)=>{let t=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),n[t]=r,n},{});function up(){return"colors"in ce.inspectOpts?!!ce.inspectOpts.colors:cp.isatty(process.stderr.fd)}function fp(n){let{namespace:e,useColors:t}=this;if(t){let r=this.color,i="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${i};1m${e} \x1B[0m`;n[0]=o+n[0].split(`
|
|
2
3
|
`).join(`
|
|
3
4
|
`+o),n.push(i+"m+"+Ir.exports.humanize(this.diff)+"\x1B[0m")}else n[0]=dp()+e+" "+n[0]}function dp(){return ce.inspectOpts.hideDate?"":new Date().toISOString()+" "}function hp(...n){return process.stderr.write(xr.formatWithOptions(ce.inspectOpts,...n)+`
|
|
4
5
|
`)}function pp(n){n?process.env.DEBUG=n:delete process.env.DEBUG}function gp(){return process.env.DEBUG}function mp(n){n.inspectOpts={};let e=Object.keys(ce.inspectOpts);for(let t=0;t<e.length;t++)n.inspectOpts[e[t]]=ce.inspectOpts[e[t]]}Ir.exports=No()(ce);var{formatters:Kl}=Ir.exports;Kl.o=function(n){return this.inspectOpts.colors=this.useColors,xr.inspect(n,this.inspectOpts).split(`
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as F}from"./chunk-CDPSH56U.js";import{b as v,d as E}from"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";import*as s from"node:fs/promises";import*as x from"node:fs";import*as i from"node:path";import*as g from"node:os";import*as b from"node:child_process";import d from"node:process";import{Buffer as w}from"node:buffer";import{Readable as k,Writable as O}from"node:stream";var S={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},R=()=>{let n=e=>({isFile:e.isFile(),isDirectory:e.isDirectory(),isSymlink:e.isSymbolicLink(),size:e.size,mtime:e.mtime,atime:e.atime,birthtime:e.birthtime}),a=(e,t)=>{throw e instanceof Error&&"code"in e&&e.code==="ENOENT"?new v(t):e};return{async readFile(e,t){try{let r=await s.readFile(e,{signal:t?.signal});return new Uint8Array(r)}catch(r){return a(r,e)}},async readTextFile(e,t){try{return await s.readFile(e,{encoding:"utf-8",signal:t?.signal})}catch(r){return a(r,e)}},async writeFile(e,t,r){let c=r?.append?"a":"w";await s.writeFile(e,t,{signal:r?.signal,mode:r?.mode,flag:c})},async writeTextFile(e,t,r){let c=r?.append?"a":"w";await s.writeFile(e,t,{encoding:"utf-8",signal:r?.signal,mode:r?.mode,flag:c})},async exists(e){try{return await s.access(e),!0}catch{return!1}},async stat(e){try{let t=await s.stat(e);return n(t)}catch(t){return a(t,e)}},async lstat(e){try{let t=await s.lstat(e);return n(t)}catch(t){return a(t,e)}},async mkdir(e,t){await s.mkdir(e,{recursive:t?.recursive??!1,mode:t?.mode})},async ensureDir(e){await s.mkdir(e,{recursive:!0})},async remove(e,t){try{await s.rm(e,{recursive:t?.recursive??!1,force:!1})}catch(r){a(r,e)}},async*readDir(e){try{let t=await s.readdir(e,{withFileTypes:!0});for(let r of t)yield{name:r.name,isFile:r.isFile(),isDirectory:r.isDirectory(),isSymlink:r.isSymbolicLink()}}catch(t){a(t,e)}},async copyFile(e,t){await s.copyFile(e,t)},async rename(e,t){await s.rename(e,t)},async makeTempDir(e){let t=e?.dir??g.tmpdir(),r=e?.prefix??"",c=e?.suffix??"",u=await s.mkdtemp(i.join(t,r));if(c){let o=u+c;return await s.rename(u,o),o}return u},async realPath(e){try{return await s.realpath(e)}catch(t){throw t instanceof Error&&"code"in t&&t.code==="ENOENT"?new v(e):t}},watch(e,t){let r=t?.recursive??!0,c=[],u=[],o=[],l=!1,P=m=>{l||(o.length>0?o.shift()({value:m,done:!1}):u.push(m))};for(let m of e)try{let f=x.watch(m,{recursive:r},(h,y)=>{y!==null&&P({kind:h==="rename"?"create":"modify",paths:[i.join(m,y)]})});c.push(f)}catch{}return{close:()=>{l=!0;for(let m of c)m.close();for(let m of o)m({value:void 0,done:!0});o=[]},[Symbol.asyncIterator]:()=>({next:()=>l?Promise.resolve({value:void 0,done:!0}):u.length>0?Promise.resolve({value:u.shift(),done:!1}):new Promise(m=>{o.push(m)})})}},async chmod(e,t){await s.chmod(e,t)},async*walk(e,t){let r=t?.includeDirs??!0,c=t?.includeFiles??!0,u=t?.exts,o=t?.skip,l=async function*(P){let m=await s.readdir(P,{withFileTypes:!0});for(let f of m){let h=i.join(P,f.name);if(o?.some(p=>p.test(h)))continue;let y=f.isSymbolicLink();if(f.isDirectory())r&&(yield{path:h,name:f.name,isFile:!1,isDirectory:!0,isSymlink:y}),yield*l(h);else if(f.isFile()||y){if(!c||u&&!u.some(p=>f.name.endsWith(p.startsWith(".")?p:`.${p}`)))continue;yield{path:h,name:f.name,isFile:f.isFile(),isDirectory:!1,isSymlink:y}}}};yield*l(e)}}},W=()=>({join:i.join,resolve:i.resolve,dirname:i.dirname,basename:i.basename,extname:i.extname,normalize:i.normalize,isAbsolute:i.isAbsolute,relative:i.relative,parse:i.parse,format:i.format,sep:i.sep,delimiter:i.delimiter}),A=()=>({spawn(n,a=[],e){return new Promise((t,r)=>{let c=b.spawn(n,a,{cwd:e?.cwd,env:e?.env?{...d.env,...e.env}:void 0,stdio:F(e),signal:e?.signal}),u=[],o=[];c.stdout?.on("data",l=>u.push(l)),c.stderr?.on("data",l=>o.push(l)),c.on("error",r),c.on("close",l=>{t({success:l===0,code:l??1,stdout:new Uint8Array(w.concat(u)),stderr:new Uint8Array(w.concat(o))})})})},async exec(n,a=[],e){let t=await this.spawn(n,a,e);if(!t.success){let r=new TextDecoder().decode(t.stderr);throw new E(n,t.code,r)}return new TextDecoder().decode(t.stdout).trim()},async execJson(n,a=[],e){let t=await this.exec(n,a,e);return JSON.parse(t)},spawnChild(n,a=[],e){let t=b.spawn(n,a,{cwd:e?.cwd,env:e?.env?{...d.env,...e.env}:void 0,stdio:F(e),signal:e?.signal}),r=[],c=[];t.stdout?.on("data",o=>r.push(o)),t.stderr?.on("data",o=>c.push(o));let u=new Promise((o,l)=>{t.on("error",l),t.on("close",(P,m)=>{o({success:P===0,code:P??1,signal:m??void 0})})});return{pid:t.pid,stdin:t.stdin?O.toWeb(t.stdin):null,stdout:t.stdout?k.toWeb(t.stdout):null,stderr:t.stderr?k.toWeb(t.stderr):null,status:u,output:async()=>{let o=await u;return{success:o.success,code:o.code,stdout:new Uint8Array(w.concat(r)),stderr:new Uint8Array(w.concat(c))}},kill:o=>{t.kill(o)}}}}),D=()=>({get(n){return d.env[n]},set(n,a){d.env[n]=a},delete(n){delete d.env[n]},has(n){return n in d.env},toObject(){let n={};for(let[a,e]of Object.entries(d.env))e!==void 0&&(n[a]=e);return n}}),C=()=>({exit(n){d.exit(n)},setExitCode(n){d.exitCode=n},cwd(){return d.cwd()},chdir(n){d.chdir(n)},hostname(){return g.hostname()},execPath(){return d.execPath},args:d.argv.slice(2),pid:d.pid,stdin:k.toWeb(d.stdin),stdout:O.toWeb(d.stdout),stderr:O.toWeb(d.stderr)}),j=()=>{let n=R(),a=W(),e=A(),t=D(),r=C();return{name:"node",version:d.versions.node,capabilities:S,fs:n,path:a,exec:e,env:t,process:r}};export{S as NODE_CAPABILITIES,j as createNodeRuntime};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-TBOM65KB.js";import"./chunk-DPL7GREV.js";import"./chunk-J7YTWK67.js";import"./chunk-JPFGKN4T.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as OllamaModel,b as ollamaFactory};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import{a as Ds,b as Dn,c as jn,d as js}from"./chunk-IA7GIU76.js";import{a as Ln}from"./chunk-AK3OJD4W.js";import{b as Bs,c as Ls}from"./chunk-FKF2SWQM.js";import{e as Xr}from"./chunk-DXB73IDG.js";var gr="RFC3986",wr={RFC1738:s=>String(s).replace(/%20/g,"+"),RFC3986:s=>String(s)},Us="RFC1738";var Un=Array.isArray,Z=(()=>{let s=[];for(let e=0;e<256;++e)s.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return s})();var Gr=1024,qs=(s,e,t,r,n)=>{if(s.length===0)return s;let o=s;if(typeof s=="symbol"?o=Symbol.prototype.toString.call(s):typeof s!="string"&&(o=String(s)),t==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(a){return"%26%23"+parseInt(a.slice(2),16)+"%3B"});let i="";for(let a=0;a<o.length;a+=Gr){let c=o.length>=Gr?o.slice(a,a+Gr):o,d=[];for(let b=0;b<c.length;++b){let u=c.charCodeAt(b);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||n===Us&&(u===40||u===41)){d[d.length]=c.charAt(b);continue}if(u<128){d[d.length]=Z[u];continue}if(u<2048){d[d.length]=Z[192|u>>6]+Z[128|u&63];continue}if(u<55296||u>=57344){d[d.length]=Z[224|u>>12]+Z[128|u>>6&63]+Z[128|u&63];continue}b+=1,u=65536+((u&1023)<<10|c.charCodeAt(b)&1023),d[d.length]=Z[240|u>>18]+Z[128|u>>12&63]+Z[128|u>>6&63]+Z[128|u&63]}i+=d.join("")}return i};function Ws(s){return!s||typeof s!="object"?!1:!!(s.constructor&&s.constructor.isBuffer&&s.constructor.isBuffer(s))}function Kr(s,e){if(Un(s)){let t=[];for(let r=0;r<s.length;r+=1)t.push(e(s[r]));return t}return e(s)}var qn=Object.prototype.hasOwnProperty,Hs={brackets(s){return String(s)+"[]"},comma:"comma",indices(s,e){return String(s)+"["+e+"]"},repeat(s){return String(s)}},ee=Array.isArray,Wn=Array.prototype.push,Js=function(s,e){Wn.apply(s,ee(e)?e:[e])},Hn=Date.prototype.toISOString,T={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qs,encodeValuesOnly:!1,format:gr,formatter:wr[gr],indices:!1,serializeDate(s){return Hn.call(s)},skipNulls:!1,strictNullHandling:!1};function Jn(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"||typeof s=="symbol"||typeof s=="bigint"}var zr={};function Vs(s,e,t,r,n,o,i,a,c,d,b,u,p,h,A,_,C,v){let g=s,L=v,R=0,k=!1;for(;(L=L.get(zr))!==void 0&&!k;){let E=L.get(s);if(R+=1,typeof E<"u"){if(E===R)throw new RangeError("Cyclic object value");k=!0}typeof L.get(zr)>"u"&&(R=0)}if(typeof d=="function"?g=d(e,g):g instanceof Date?g=p?.(g):t==="comma"&&ee(g)&&(g=Kr(g,function(E){return E instanceof Date?p?.(E):E})),g===null){if(o)return c&&!_?c(e,T.encoder,C,"key",h):e;g=""}if(Jn(g)||Ws(g)){if(c){let E=_?e:c(e,T.encoder,C,"key",h);return[A?.(E)+"="+A?.(c(g,T.encoder,C,"value",h))]}return[A?.(e)+"="+A?.(String(g))]}let j=[];if(typeof g>"u")return j;let U;if(t==="comma"&&ee(g))_&&c&&(g=Kr(g,c)),U=[{value:g.length>0?g.join(",")||null:void 0}];else if(ee(d))U=d;else{let E=Object.keys(g);U=b?E.sort(b):E}let M=a?String(e).replace(/\./g,"%2E"):String(e),N=r&&ee(g)&&g.length===1?M+"[]":M;if(n&&ee(g)&&g.length===0)return N+"[]";for(let E=0;E<U.length;++E){let $=U[E],Ms=typeof $=="object"&&typeof $.value<"u"?$.value:g[$];if(i&&Ms===null)continue;let Vr=u&&a?$.replace(/\./g,"%2E"):$,Bn=ee(g)?typeof t=="function"?t(N,Vr):N:N+(u?"."+Vr:"["+Vr+"]");v.set(s,R);let Ns=new WeakMap;Ns.set(zr,v),Js(j,Vs(Ms,Bn,t,r,n,o,i,a,t==="comma"&&_&&ee(g)?null:c,d,b,u,p,h,A,_,C,Ns))}return j}function Vn(s=T){if(typeof s.allowEmptyArrays<"u"&&typeof s.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof s.encodeDotInKeys<"u"&&typeof s.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(s.encoder!==null&&typeof s.encoder<"u"&&typeof s.encoder!="function")throw new TypeError("Encoder has to be a function.");let e=s.charset||T.charset;if(typeof s.charset<"u"&&s.charset!=="utf-8"&&s.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let t=gr;if(typeof s.format<"u"){if(!qn.call(wr,s.format))throw new TypeError("Unknown format option provided.");t=s.format}let r=wr[t],n=T.filter;(typeof s.filter=="function"||ee(s.filter))&&(n=s.filter);let o;if(s.arrayFormat&&s.arrayFormat in Hs?o=s.arrayFormat:"indices"in s?o=s.indices?"indices":"repeat":o=T.arrayFormat,"commaRoundTrip"in s&&typeof s.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");let i=typeof s.allowDots>"u"?s.encodeDotInKeys?!0:T.allowDots:!!s.allowDots;return{addQueryPrefix:typeof s.addQueryPrefix=="boolean"?s.addQueryPrefix:T.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof s.allowEmptyArrays=="boolean"?!!s.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:typeof s.charsetSentinel=="boolean"?s.charsetSentinel:T.charsetSentinel,commaRoundTrip:!!s.commaRoundTrip,delimiter:typeof s.delimiter>"u"?T.delimiter:s.delimiter,encode:typeof s.encode=="boolean"?s.encode:T.encode,encodeDotInKeys:typeof s.encodeDotInKeys=="boolean"?s.encodeDotInKeys:T.encodeDotInKeys,encoder:typeof s.encoder=="function"?s.encoder:T.encoder,encodeValuesOnly:typeof s.encodeValuesOnly=="boolean"?s.encodeValuesOnly:T.encodeValuesOnly,filter:n,format:t,formatter:r,serializeDate:typeof s.serializeDate=="function"?s.serializeDate:T.serializeDate,skipNulls:typeof s.skipNulls=="boolean"?s.skipNulls:T.skipNulls,sort:typeof s.sort=="function"?s.sort:null,strictNullHandling:typeof s.strictNullHandling=="boolean"?s.strictNullHandling:T.strictNullHandling}}function Qr(s,e={}){let t=s,r=Vn(e),n,o;typeof r.filter=="function"?(o=r.filter,t=o("",t)):ee(r.filter)&&(o=r.filter,n=o);let i=[];if(typeof t!="object"||t===null)return"";let a=Hs[r.arrayFormat],c=a==="comma"&&r.commaRoundTrip;n||(n=Object.keys(t)),r.sort&&n.sort(r.sort);let d=new WeakMap;for(let p=0;p<n.length;++p){let h=n[p];r.skipNulls&&t[h]===null||Js(i,Vs(t[h],h,a,c,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}let b=i.join(r.delimiter),u=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),b.length>0?u+b:""}var je="4.104.0";var Xs=!1,Ue,Yr,Gn,Kn,zn,Zr,Qn,yr,es,ts,rs,rr,ss;function Gs(s,e={auto:!1}){if(Xs)throw new Error(`you must \`import 'openai/shims/${s.kind}'\` before importing anything else from openai`);if(Ue)throw new Error(`can't \`import 'openai/shims/${s.kind}'\` after \`import 'openai/shims/${Ue}'\``);Xs=e.auto,Ue=s.kind,Yr=s.fetch,Gn=s.Request,Kn=s.Response,zn=s.Headers,Zr=s.FormData,Qn=s.Blob,yr=s.File,es=s.ReadableStream,ts=s.getMultipartRequestOptions,rs=s.getDefaultAgent,rr=s.fileFromPath,ss=s.isFsReadStream}var be=Xr(Ln(),1);var ns=Xr(Dn(),1),zs=Xr(jn(),1);import{ReadStream as Zn}from"node:fs";import{Readable as eo}from"node:stream";var br=class{constructor(e){this.body=e}get[Symbol.toStringTag](){return"MultipartBody"}};import{ReadableStream as to}from"node:stream/web";var Ks=!1;async function ro(s,...e){let{fileFromPath:t}=await import("./fileFromPath-4UEDFJ4U.js");return Ks||(console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(s)}) instead`),Ks=!0),await t(s,...e)}var so=new ns.default({keepAlive:!0,timeout:5*60*1e3}),no=new ns.default.HttpsAgent({keepAlive:!0,timeout:5*60*1e3});async function oo(s,e){let t=new js(s),r=eo.from(t),n=new br(r),o={...e.headers,...t.headers,"Content-Length":t.contentLength};return{...e,body:n,headers:o}}function Qs(){return typeof AbortController>"u"&&(globalThis.AbortController=zs.AbortController),{kind:"node",fetch:be.default,Request:be.Request,Response:be.Response,Headers:be.Headers,FormData:Ds,Blob:Bs,File:Ls,ReadableStream:to,getMultipartRequestOptions:oo,getDefaultAgent:s=>s.startsWith("https")?no:so,fileFromPath:ro,isFsReadStream:s=>s instanceof Zn}}var os=()=>{Ue||Gs(Qs(),{auto:!0})};os();var f=class extends Error{},O=class s extends f{constructor(e,t,r,n){super(`${s.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.request_id=n?.["x-request-id"],this.error=t;let o=t;this.code=o?.code,this.param=o?.param,this.type=o?.type}static makeMessage(e,t,r){let n=t?.message?typeof t.message=="string"?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e||!n)return new ue({message:r,cause:xr(t)});let o=t?.error;return e===400?new ft(e,o,r,n):e===401?new ht(e,o,r,n):e===403?new dt(e,o,r,n):e===404?new pt(e,o,r,n):e===409?new mt(e,o,r,n):e===422?new _t(e,o,r,n):e===429?new gt(e,o,r,n):e>=500?new wt(e,o,r,n):new s(e,o,r,n)}},S=class extends O{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}},ue=class extends O{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}},fe=class extends ue{constructor({message:e}={}){super({message:e??"Request timed out."})}},ft=class extends O{},ht=class extends O{},dt=class extends O{},pt=class extends O{},mt=class extends O{},_t=class extends O{},gt=class extends O{},wt=class extends O{},yt=class extends f{constructor(){super("Could not parse response content as the length limit was reached")}},bt=class extends f{constructor(){super("Could not parse response content as the request was rejected by the content filter")}};var Ar=function(s,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!n:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(s,t):n?n.value=t:e.set(s,t),t},qe=function(s,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!r:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(s):r?r.value:e.get(s)},J,We=class{constructor(){J.set(this,void 0),this.buffer=new Uint8Array,Ar(this,J,null,"f")}decode(e){if(e==null)return[];let t=e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?new TextEncoder().encode(e):e,r=new Uint8Array(this.buffer.length+t.length);r.set(this.buffer),r.set(t,this.buffer.length),this.buffer=r;let n=[],o;for(;(o=ao(this.buffer,qe(this,J,"f")))!=null;){if(o.carriage&&qe(this,J,"f")==null){Ar(this,J,o.index,"f");continue}if(qe(this,J,"f")!=null&&(o.index!==qe(this,J,"f")+1||o.carriage)){n.push(this.decodeText(this.buffer.slice(0,qe(this,J,"f")-1))),this.buffer=this.buffer.slice(qe(this,J,"f")),Ar(this,J,null,"f");continue}let i=qe(this,J,"f")!==null?o.preceding-1:o.preceding,a=this.decodeText(this.buffer.slice(0,i));n.push(a),this.buffer=this.buffer.slice(o.index),Ar(this,J,null,"f")}return n}decodeText(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof Buffer<"u"){if(e instanceof Buffer)return e.toString();if(e instanceof Uint8Array)return Buffer.from(e).toString();throw new f(`Unexpected: received non-Uint8Array (${e.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new f(`Unexpected: received non-Uint8Array/ArrayBuffer (${e.constructor.name}) in a web platform. Please report this error.`)}throw new f("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as Ds,b as Dn,c as jn,d as js}from"./chunk-TFPT4BDY.js";import{a as Ln}from"./chunk-DAK2I7UC.js";import{b as Bs,c as Ls}from"./chunk-PE2TDUXD.js";import{e as Xr}from"./chunk-G6NAG2EK.js";var gr="RFC3986",wr={RFC1738:s=>String(s).replace(/%20/g,"+"),RFC3986:s=>String(s)},Us="RFC1738";var Un=Array.isArray,Z=(()=>{let s=[];for(let e=0;e<256;++e)s.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return s})();var Gr=1024,qs=(s,e,t,r,n)=>{if(s.length===0)return s;let o=s;if(typeof s=="symbol"?o=Symbol.prototype.toString.call(s):typeof s!="string"&&(o=String(s)),t==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(a){return"%26%23"+parseInt(a.slice(2),16)+"%3B"});let i="";for(let a=0;a<o.length;a+=Gr){let c=o.length>=Gr?o.slice(a,a+Gr):o,d=[];for(let b=0;b<c.length;++b){let u=c.charCodeAt(b);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||n===Us&&(u===40||u===41)){d[d.length]=c.charAt(b);continue}if(u<128){d[d.length]=Z[u];continue}if(u<2048){d[d.length]=Z[192|u>>6]+Z[128|u&63];continue}if(u<55296||u>=57344){d[d.length]=Z[224|u>>12]+Z[128|u>>6&63]+Z[128|u&63];continue}b+=1,u=65536+((u&1023)<<10|c.charCodeAt(b)&1023),d[d.length]=Z[240|u>>18]+Z[128|u>>12&63]+Z[128|u>>6&63]+Z[128|u&63]}i+=d.join("")}return i};function Ws(s){return!s||typeof s!="object"?!1:!!(s.constructor&&s.constructor.isBuffer&&s.constructor.isBuffer(s))}function Kr(s,e){if(Un(s)){let t=[];for(let r=0;r<s.length;r+=1)t.push(e(s[r]));return t}return e(s)}var qn=Object.prototype.hasOwnProperty,Hs={brackets(s){return String(s)+"[]"},comma:"comma",indices(s,e){return String(s)+"["+e+"]"},repeat(s){return String(s)}},ee=Array.isArray,Wn=Array.prototype.push,Js=function(s,e){Wn.apply(s,ee(e)?e:[e])},Hn=Date.prototype.toISOString,T={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:qs,encodeValuesOnly:!1,format:gr,formatter:wr[gr],indices:!1,serializeDate(s){return Hn.call(s)},skipNulls:!1,strictNullHandling:!1};function Jn(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"||typeof s=="symbol"||typeof s=="bigint"}var zr={};function Vs(s,e,t,r,n,o,i,a,c,d,b,u,p,h,A,_,C,v){let g=s,L=v,R=0,k=!1;for(;(L=L.get(zr))!==void 0&&!k;){let E=L.get(s);if(R+=1,typeof E<"u"){if(E===R)throw new RangeError("Cyclic object value");k=!0}typeof L.get(zr)>"u"&&(R=0)}if(typeof d=="function"?g=d(e,g):g instanceof Date?g=p?.(g):t==="comma"&&ee(g)&&(g=Kr(g,function(E){return E instanceof Date?p?.(E):E})),g===null){if(o)return c&&!_?c(e,T.encoder,C,"key",h):e;g=""}if(Jn(g)||Ws(g)){if(c){let E=_?e:c(e,T.encoder,C,"key",h);return[A?.(E)+"="+A?.(c(g,T.encoder,C,"value",h))]}return[A?.(e)+"="+A?.(String(g))]}let j=[];if(typeof g>"u")return j;let U;if(t==="comma"&&ee(g))_&&c&&(g=Kr(g,c)),U=[{value:g.length>0?g.join(",")||null:void 0}];else if(ee(d))U=d;else{let E=Object.keys(g);U=b?E.sort(b):E}let M=a?String(e).replace(/\./g,"%2E"):String(e),N=r&&ee(g)&&g.length===1?M+"[]":M;if(n&&ee(g)&&g.length===0)return N+"[]";for(let E=0;E<U.length;++E){let $=U[E],Ms=typeof $=="object"&&typeof $.value<"u"?$.value:g[$];if(i&&Ms===null)continue;let Vr=u&&a?$.replace(/\./g,"%2E"):$,Bn=ee(g)?typeof t=="function"?t(N,Vr):N:N+(u?"."+Vr:"["+Vr+"]");v.set(s,R);let Ns=new WeakMap;Ns.set(zr,v),Js(j,Vs(Ms,Bn,t,r,n,o,i,a,t==="comma"&&_&&ee(g)?null:c,d,b,u,p,h,A,_,C,Ns))}return j}function Vn(s=T){if(typeof s.allowEmptyArrays<"u"&&typeof s.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof s.encodeDotInKeys<"u"&&typeof s.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(s.encoder!==null&&typeof s.encoder<"u"&&typeof s.encoder!="function")throw new TypeError("Encoder has to be a function.");let e=s.charset||T.charset;if(typeof s.charset<"u"&&s.charset!=="utf-8"&&s.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let t=gr;if(typeof s.format<"u"){if(!qn.call(wr,s.format))throw new TypeError("Unknown format option provided.");t=s.format}let r=wr[t],n=T.filter;(typeof s.filter=="function"||ee(s.filter))&&(n=s.filter);let o;if(s.arrayFormat&&s.arrayFormat in Hs?o=s.arrayFormat:"indices"in s?o=s.indices?"indices":"repeat":o=T.arrayFormat,"commaRoundTrip"in s&&typeof s.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");let i=typeof s.allowDots>"u"?s.encodeDotInKeys?!0:T.allowDots:!!s.allowDots;return{addQueryPrefix:typeof s.addQueryPrefix=="boolean"?s.addQueryPrefix:T.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof s.allowEmptyArrays=="boolean"?!!s.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:typeof s.charsetSentinel=="boolean"?s.charsetSentinel:T.charsetSentinel,commaRoundTrip:!!s.commaRoundTrip,delimiter:typeof s.delimiter>"u"?T.delimiter:s.delimiter,encode:typeof s.encode=="boolean"?s.encode:T.encode,encodeDotInKeys:typeof s.encodeDotInKeys=="boolean"?s.encodeDotInKeys:T.encodeDotInKeys,encoder:typeof s.encoder=="function"?s.encoder:T.encoder,encodeValuesOnly:typeof s.encodeValuesOnly=="boolean"?s.encodeValuesOnly:T.encodeValuesOnly,filter:n,format:t,formatter:r,serializeDate:typeof s.serializeDate=="function"?s.serializeDate:T.serializeDate,skipNulls:typeof s.skipNulls=="boolean"?s.skipNulls:T.skipNulls,sort:typeof s.sort=="function"?s.sort:null,strictNullHandling:typeof s.strictNullHandling=="boolean"?s.strictNullHandling:T.strictNullHandling}}function Qr(s,e={}){let t=s,r=Vn(e),n,o;typeof r.filter=="function"?(o=r.filter,t=o("",t)):ee(r.filter)&&(o=r.filter,n=o);let i=[];if(typeof t!="object"||t===null)return"";let a=Hs[r.arrayFormat],c=a==="comma"&&r.commaRoundTrip;n||(n=Object.keys(t)),r.sort&&n.sort(r.sort);let d=new WeakMap;for(let p=0;p<n.length;++p){let h=n[p];r.skipNulls&&t[h]===null||Js(i,Vs(t[h],h,a,c,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}let b=i.join(r.delimiter),u=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),b.length>0?u+b:""}var je="4.104.0";var Xs=!1,Ue,Yr,Gn,Kn,zn,Zr,Qn,yr,es,ts,rs,rr,ss;function Gs(s,e={auto:!1}){if(Xs)throw new Error(`you must \`import 'openai/shims/${s.kind}'\` before importing anything else from openai`);if(Ue)throw new Error(`can't \`import 'openai/shims/${s.kind}'\` after \`import 'openai/shims/${Ue}'\``);Xs=e.auto,Ue=s.kind,Yr=s.fetch,Gn=s.Request,Kn=s.Response,zn=s.Headers,Zr=s.FormData,Qn=s.Blob,yr=s.File,es=s.ReadableStream,ts=s.getMultipartRequestOptions,rs=s.getDefaultAgent,rr=s.fileFromPath,ss=s.isFsReadStream}var be=Xr(Ln(),1);var ns=Xr(Dn(),1),zs=Xr(jn(),1);import{ReadStream as Zn}from"node:fs";import{Readable as eo}from"node:stream";var br=class{constructor(e){this.body=e}get[Symbol.toStringTag](){return"MultipartBody"}};import{ReadableStream as to}from"node:stream/web";var Ks=!1;async function ro(s,...e){let{fileFromPath:t}=await import("./fileFromPath-MB3IRZVW.js");return Ks||(console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(s)}) instead`),Ks=!0),await t(s,...e)}var so=new ns.default({keepAlive:!0,timeout:5*60*1e3}),no=new ns.default.HttpsAgent({keepAlive:!0,timeout:5*60*1e3});async function oo(s,e){let t=new js(s),r=eo.from(t),n=new br(r),o={...e.headers,...t.headers,"Content-Length":t.contentLength};return{...e,body:n,headers:o}}function Qs(){return typeof AbortController>"u"&&(globalThis.AbortController=zs.AbortController),{kind:"node",fetch:be.default,Request:be.Request,Response:be.Response,Headers:be.Headers,FormData:Ds,Blob:Bs,File:Ls,ReadableStream:to,getMultipartRequestOptions:oo,getDefaultAgent:s=>s.startsWith("https")?no:so,fileFromPath:ro,isFsReadStream:s=>s instanceof Zn}}var os=()=>{Ue||Gs(Qs(),{auto:!0})};os();var f=class extends Error{},O=class s extends f{constructor(e,t,r,n){super(`${s.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.request_id=n?.["x-request-id"],this.error=t;let o=t;this.code=o?.code,this.param=o?.param,this.type=o?.type}static makeMessage(e,t,r){let n=t?.message?typeof t.message=="string"?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e||!n)return new ue({message:r,cause:xr(t)});let o=t?.error;return e===400?new ft(e,o,r,n):e===401?new ht(e,o,r,n):e===403?new dt(e,o,r,n):e===404?new pt(e,o,r,n):e===409?new mt(e,o,r,n):e===422?new _t(e,o,r,n):e===429?new gt(e,o,r,n):e>=500?new wt(e,o,r,n):new s(e,o,r,n)}},S=class extends O{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}},ue=class extends O{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}},fe=class extends ue{constructor({message:e}={}){super({message:e??"Request timed out."})}},ft=class extends O{},ht=class extends O{},dt=class extends O{},pt=class extends O{},mt=class extends O{},_t=class extends O{},gt=class extends O{},wt=class extends O{},yt=class extends f{constructor(){super("Could not parse response content as the length limit was reached")}},bt=class extends f{constructor(){super("Could not parse response content as the request was rejected by the content filter")}};var Ar=function(s,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!n:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(s,t):n?n.value=t:e.set(s,t),t},qe=function(s,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!r:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(s):r?r.value:e.get(s)},J,We=class{constructor(){J.set(this,void 0),this.buffer=new Uint8Array,Ar(this,J,null,"f")}decode(e){if(e==null)return[];let t=e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?new TextEncoder().encode(e):e,r=new Uint8Array(this.buffer.length+t.length);r.set(this.buffer),r.set(t,this.buffer.length),this.buffer=r;let n=[],o;for(;(o=ao(this.buffer,qe(this,J,"f")))!=null;){if(o.carriage&&qe(this,J,"f")==null){Ar(this,J,o.index,"f");continue}if(qe(this,J,"f")!=null&&(o.index!==qe(this,J,"f")+1||o.carriage)){n.push(this.decodeText(this.buffer.slice(0,qe(this,J,"f")-1))),this.buffer=this.buffer.slice(qe(this,J,"f")),Ar(this,J,null,"f");continue}let i=qe(this,J,"f")!==null?o.preceding-1:o.preceding,a=this.decodeText(this.buffer.slice(0,i));n.push(a),this.buffer=this.buffer.slice(o.index),Ar(this,J,null,"f")}return n}decodeText(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof Buffer<"u"){if(e instanceof Buffer)return e.toString();if(e instanceof Uint8Array)return Buffer.from(e).toString();throw new f(`Unexpected: received non-Uint8Array (${e.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new f(`Unexpected: received non-Uint8Array/ArrayBuffer (${e.constructor.name}) in a web platform. Please report this error.`)}throw new f("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
|
|
2
3
|
`):[]}};J=new WeakMap;We.NEWLINE_CHARS=new Set([`
|
|
3
4
|
`,"\r"]);We.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function ao(s,e){for(let n=e??0;n<s.length;n++){if(s[n]===10)return{preceding:n,index:n+1,carriage:!1};if(s[n]===13)return{preceding:n,index:n+1,carriage:!0}}return null}function Ys(s){for(let r=0;r<s.length-1;r++){if(s[r]===10&&s[r+1]===10||s[r]===13&&s[r+1]===13)return r+2;if(s[r]===13&&s[r+1]===10&&r+3<s.length&&s[r+2]===13&&s[r+3]===10)return r+4}return-1}function is(s){if(s[Symbol.asyncIterator])return s;let e=s.getReader();return{async next(){try{let t=await e.read();return t?.done&&e.releaseLock(),t}catch(t){throw e.releaseLock(),t}},async return(){let t=e.cancel();return e.releaseLock(),await t,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}var te=class s{constructor(e,t){this.iterator=e,this.controller=t}static fromSSEResponse(e,t){let r=!1;async function*n(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let o=!1;try{for await(let i of lo(e,t))if(!o){if(i.data.startsWith("[DONE]")){o=!0;continue}if(i.event===null||i.event.startsWith("response.")||i.event.startsWith("transcript.")){let a;try{a=JSON.parse(i.data)}catch(c){throw console.error("Could not parse message into JSON:",i.data),console.error("From chunk:",i.raw),c}if(a&&a.error)throw new O(void 0,a.error,void 0,ls(e.headers));yield a}else{let a;try{a=JSON.parse(i.data)}catch(c){throw console.error("Could not parse message into JSON:",i.data),console.error("From chunk:",i.raw),c}if(i.event=="error")throw new O(void 0,a.error,a.message,void 0);yield{event:i.event,data:a}}}o=!0}catch(i){if(i instanceof Error&&i.name==="AbortError")return;throw i}finally{o||t.abort()}}return new s(n,t)}static fromReadableStream(e,t){let r=!1;async function*n(){let i=new We,a=is(e);for await(let c of a)for(let d of i.decode(c))yield d;for(let c of i.flush())yield c}async function*o(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let i=!1;try{for await(let a of n())i||a&&(yield JSON.parse(a));i=!0}catch(a){if(a instanceof Error&&a.name==="AbortError")return;throw a}finally{i||t.abort()}}return new s(o,t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],r=this.iterator(),n=o=>({next:()=>{if(o.length===0){let i=r.next();e.push(i),t.push(i)}return o.shift()}});return[new s(()=>n(e),this.controller),new s(()=>n(t),this.controller)]}toReadableStream(){let e=this,t,r=new TextEncoder;return new es({async start(){t=e[Symbol.asyncIterator]()},async pull(n){try{let{value:o,done:i}=await t.next();if(i)return n.close();let a=r.encode(JSON.stringify(o)+`
|
|
4
5
|
`);n.enqueue(a)}catch(o){n.error(o)}},async cancel(){await t.return?.()}})}};async function*lo(s,e){if(!s.body)throw e.abort(),new f("Attempted to iterate over a response with no body");let t=new as,r=new We,n=is(s.body);for await(let o of co(n))for(let i of r.decode(o)){let a=t.decode(i);a&&(yield a)}for(let o of r.flush()){let i=t.decode(o);i&&(yield i)}}async function*co(s){let e=new Uint8Array;for await(let t of s){if(t==null)continue;let r=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?new TextEncoder().encode(t):t,n=new Uint8Array(e.length+r.length);n.set(e),n.set(r,e.length),e=n;let o;for(;(o=Ys(e))!==-1;)yield e.slice(0,o),e=e.slice(o)}e.length>0&&(yield e)}var as=class{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let o={event:this.event,data:this.data.join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-VKSH6UPG.js";import"./chunk-DPL7GREV.js";import"./chunk-J7YTWK67.js";import"./chunk-JPFGKN4T.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{a as OpenCodeModel,b as openCodeFactory};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as v,b as k}from"./chunk-CLXOJOH3.js";import"./chunk-3HC6RWFJ.js";import{c}from"./chunk-U3FRSRMK.js";import{a as p,b as w,c as h,h as r}from"./chunk-PHI2BESG.js";import{a as $}from"./chunk-JYNHFD6B.js";import"./chunk-NP2CCJ4C.js";import"./chunk-3SXTMY75.js";import{a as d,b as g}from"./chunk-A6RDYP6R.js";import{t as n}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import{e as y}from"./chunk-G6NAG2EK.js";var x=y($(),1);var M=async i=>{let e=n.process.cwd(),s=v(i),t=w({target:s==="agent"?"non-interactive":"interactive"});if(!k(i).includes("--force")){if(s==="agent")return r.error(t,"Purge requires `--force` flag in agent mode."),g({exitCode:1});let l=await h(t,{message:"This will remove all noskills specs, rules, concerns, and hooks. Continue?"});if(p(l)||l!==!0)return r.info(t,"Aborted."),d(void 0)}return r.step(t,"Purging noskills content..."),await u(`${e}/${c.concernsDir}`,t,"`.eser/concerns/`"),await u(`${e}/${c.specsDir}`,t,"`.eser/specs/`"),await u(`${e}/${c.rulesDir}`,t,"`.eser/rules/`"),await u(`${e}/${c.stateDir}`,t,"`.eser/.state/`"),await C(e,t),await T(e,t),await m(`${e}/.cursorrules`,t,"`.cursorrules`"),await m(`${e}/.windsurfrules`,t,"`.windsurfrules`"),await m(`${e}/.kiro/steering/conventions.md`,t,"`.kiro/steering/conventions.md`"),await m(`${e}/.github/copilot-instructions.md`,t,"`.github/copilot-instructions.md`"),await F(e,t),r.success(t,"Purge complete."),d(void 0)},u=async(i,e,s)=>{try{await n.fs.stat(i);let{rmSync:t}=await import("node:fs");t(i,{recursive:!0,force:!0}),r.step(e,` Removed ${s}`)}catch{}},m=async(i,e,s)=>{try{await n.fs.stat(i);let{unlinkSync:t}=await import("node:fs");t(i),r.step(e,` Removed ${s}`)}catch{}},C=async(i,e)=>{let s=`${i}/${c.manifestFile}`;try{let t=await n.fs.readTextFile(s),o=x.parseDocument(t);o.has("noskills")&&(o.delete("noskills"),await n.fs.writeTextFile(s,o.toString()),r.step(e," Removed noskills section from `manifest.yml`"))}catch{}},T=async(i,e)=>{let s=`${i}/CLAUDE.md`,t="<!-- noskills:start -->",o="<!-- noskills:end -->";try{let a=await n.fs.readTextFile(s),l=a.indexOf(t),f=a.indexOf(o);l!==-1&&f!==-1&&(a=a.slice(0,l).trimEnd()+`
|
|
3
|
+
`+a.slice(f+o.length).trimStart(),await n.fs.writeTextFile(s,a.trimEnd()+`
|
|
4
|
+
`),r.step(e," Removed noskills section from `CLAUDE.md`"))}catch{}},F=async(i,e)=>{let s=`${i}/.claude/settings.json`;try{let t=await n.fs.readTextFile(s),o=JSON.parse(t);o.hooks!==void 0&&(delete o.hooks,await n.fs.writeTextFile(s,JSON.stringify(o,null,2)+`
|
|
5
|
+
`),r.step(e," Removed hooks from `.claude/settings.json`"))}catch{}};export{M as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-KP3HXVLZ.js";import"./chunk-KLWWCHOL.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{e as applyRecipe,f as applyRecipeChain,b as fileExists,a as isPathSafe,c as processContent,d as runPostInstall};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"./chunk-KLWWCHOL.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{b as DEFAULT_OWNER,d as DEFAULT_REF,f as DEFAULT_REGISTRY_URL,c as DEFAULT_REPO,a as FETCH_TIMEOUT_MS,g as LOCAL_REGISTRY_PATH,e as RECIPES_FILENAME,j as detectLocalRegistry,m as fetchRecipeFile,o as fetchRecipeFolder,p as fetchRecipeFromRepo,k as fetchRegistry,l as fetchRegistryFromRepo,n as parseGitHubRawUrl,i as registryFetch,h as resolveSpecifier};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as c}from"./chunk-KLHDNHD3.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import{a as g}from"./chunk-2VEVVX6U.js";import{a as C,b as v}from"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as w}from"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import{b as n,f as h,g as f,h as y,i as o}from"./chunk-3SXTMY75.js";import{d as l}from"./chunk-JPFGKN4T.js";import{a as m}from"./chunk-MG65QJY6.js";import{g as i}from"./chunk-A6RDYP6R.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var t=C(),A=async()=>(await l`git status --porcelain`.noThrow().text()).length===0,b=async()=>{let e=await l`git log @{u}..HEAD --oneline`.noThrow().text();return e.length>0?e.split(`
|
|
2
3
|
`):[]},P=async(e,s)=>{for(let r of s)await l`git add ${r}`.spawn();await l`git commit -m ${e}`.spawn()},O=async()=>{await l`git push origin HEAD`.spawn()},k=async e=>{await l`git tag -d ${e}`.noThrow().spawn();let s=`:refs/tags/${e}`;await l`git push origin ${s}`.noThrow().spawn()},T=async e=>{let s=new TextEncoder,r=new TextDecoder,a=new Uint8Array(256);await Deno.stderr.write(s.encode(`${e} [y/N] `));let p=await Deno.stdin.read(a),d=r.decode(a.subarray(0,p??0)).trim();return d==="y"||d==="Y"},M=async e=>{let{type:s,dryRun:r=!1}=e;if(!await A())throw new Error("Working tree is dirty. Commit or stash changes first.");let a=await b();if(a.length>0&&e.yes!==!0)throw new Error(`You have ${a.length} unpushed commit(s):
|
|
3
4
|
${a.join(`
|
|
4
5
|
`)}
|
|
5
6
|
|
|
6
|
-
Push first, or re-run with --yes to continue anyway.`);let p=await c()??"0.0.0";s!=="same"&&await(await import("./versions-
|
|
7
|
+
Push first, or re-run with --yes to continue anyway.`);let p=await c()??"0.0.0";s!=="same"&&await(await import("./versions-PZPDQ673.js")).versions(s,{dryRun:r});let d=await c()??p,u=!1;try{await(await import("./changelog-gen-KMNP2KO4.js")).generateChangelog({dryRun:r}),u=!0}catch{u=!1}let x=!1,E=!1;if(!r){u&&await l`deno fmt CHANGELOG.md`.noThrow().spawn();let R=["VERSION","CHANGELOG.md","pkg/*/deno.json","pkg/*/package.json","package.json"],$=`chore(codebase): release v${d}`;await P($,R),x=!0,await O(),E=!0}return{version:d,previousVersion:p,changelogGenerated:u,committed:x,pushed:E,dryRun:r}},U=async(e={})=>{let{dryRun:s=!1}=e;if(!await A())throw new Error("Working tree is dirty. Commit and push first.");let r=await b();if(r.length>0)throw new Error(`You have unpushed commits. Push first, then rerelease.
|
|
7
8
|
${r.join(`
|
|
8
9
|
`)}`);let a=await c();if(a===void 0||!/^\d+\.\d+\.\d+$/.test(a))throw new Error(`Invalid or missing version in VERSION file: "${a}"`);let p=`v${a}`;if(!s){let d=`chore(codebase): release v${a}`;await l`git commit --allow-empty -m ${d}`.spawn(),await l`git push origin HEAD`.spawn()}return{version:a,tag:p,dryRun:s}},H=async(e={})=>{let s=await c();if(s===void 0||!/^\d+\.\d+\.\d+$/.test(s))throw new Error(`Invalid or missing version in VERSION file: "${s}"`);let r=`v${s}`;if(e.yes!==!0)throw new Error(`This will delete tag ${r} locally and remotely. Re-run with --yes to confirm.`);return await k(r),{version:s,tag:r,deleted:!0}},I=e=>w.fromPromise(()=>M(e)),V=e=>w.fromPromise(()=>U(e)),D=e=>w.fromPromise(()=>H(e)),j=e=>{let s=e.args[0];return s===void 0||!["patch","minor","major","same"].includes(s)?i.fail(g.adaptError("Usage: eser codebase release <patch|minor|major|same> [--dry-run] [--yes]")):i.ok({type:s,dryRun:e.flags["dry-run"]===!0,yes:e.flags.yes===!0})},N=e=>i.ok({dryRun:e.flags["dry-run"]===!0}),G=e=>i.ok({yes:e.flags.yes===!0}),S=e=>{if(i.isFail(e)){let r=e.error,a=r instanceof Error?r.message:r.message??String(r);return t.writeln(h("\u2717"),n(" "+a)),i.fail({exitCode:1})}let{value:s}=e;return s.dryRun?(t.writeln(y("\u26A0"),n(" [DRY RUN] Release preview:")),t.writeln(o("\u2139"),n(` Version: ${s.previousVersion} -> ${s.version}`)),t.writeln(o("\u2139"),n(` Changelog: ${s.changelogGenerated?"generated":"no user-facing changes"}`)),t.writeln(o("\u2139"),n(" No changes were made."))):(t.writeln(f("\u2713"),n(` Released v${s.version}`)),t.writeln(o("\u2139"),n(` Version: ${s.previousVersion} -> ${s.version}`)),t.writeln(o("\u2139"),n(` Changelog: ${s.changelogGenerated?"updated":"no user-facing changes"}`)),t.writeln(o("\u2139"),n(` Committed: ${s.committed}`)),t.writeln(o("\u2139"),n(` Pushed: ${s.pushed}`)),t.writeln(o("\u2139"),n(" CI will validate, tag, and publish.")),t.writeln(o("\u2139"),n(" Watch: https://github.com/eser/stack/actions"))),i.ok(void 0)},Y=e=>{if(i.isFail(e)){let r=e.error,a=r instanceof Error?r.message:r.message??String(r);return t.writeln(h("\u2717"),n(" "+a)),i.fail({exitCode:1})}let{value:s}=e;return s.dryRun?t.writeln(y("\u26A0"),n(` [DRY RUN] Would delete and recreate tag ${s.tag}`)):(t.writeln(f("\u2713"),n(` Re-tagged ${s.tag}`)),t.writeln(o("\u2139"),n(" CI will validate and publish."))),i.ok(void 0)},F=e=>{if(i.isFail(e)){let r=e.error,a=r instanceof Error?r.message:r.message??String(r);return t.writeln(h("\u2717"),n(" "+a)),i.fail({exitCode:1})}let{value:s}=e;return s.deleted&&t.writeln(f("\u2713"),n(` Deleted tag v${s.version} (local + remote).`)),i.ok(void 0)},W=g.createTrigger({handler:I,adaptInput:j,adaptOutput:S}),L=g.createTrigger({handler:V,adaptInput:N,adaptOutput:Y}),B=g.createTrigger({handler:D,adaptInput:G,adaptOutput:F}),re=async e=>{let s=m(e??[],{boolean:["dry-run","yes"],alias:{n:"dry-run",y:"yes"}}),r=s._[0],a=s["dry-run"]===!0,p=s.yes===!0;if(r!==void 0&&!a&&!p&&["patch","minor","major","same"].includes(r)){let u=await c()??"0.0.0";if(t.writeln(o("\u2139"),n(` Current version: ${u}`)),t.writeln(o("\u2139"),n(` Bump type: ${r}`)),t.writeln(o("\u2139"),n(" This will bump version, generate changelog, commit, and push.")),await t.flush(),!await T("Proceed?"))return t.writeln(y("\u26A0"),n(" Aborted.")),i.ok(void 0);s.yes=!0}let d=v("release",s);return await W(d)},ne=async e=>{let s=m(e??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),r=v("rerelease",s);return await L(r)},te=async e=>{let s=m(e??[],{boolean:["yes"],alias:{y:"yes"}}),r=v("unrelease",s);return await B(r)};export{W as handleReleaseCli,L as handleRereleaseCli,B as handleUnreleaseCli,re as main,M as release,I as releaseHandler,U as rerelease,V as rereleaseHandler,ne as rereleaseMain,H as unrelease,D as unreleaseHandler,te as unreleaseMain};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import"./chunk-SOSF762G.js";import"./chunk-PHI2BESG.js";import{a as y}from"./chunk-2VEVVX6U.js";import{a as E,b as A}from"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as $}from"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import{b as p,f as P,g as m,h as C}from"./chunk-3SXTMY75.js";import{e as u}from"./chunk-JPFGKN4T.js";import"./chunk-PWLF3WXM.js";import"./chunk-VXA3KMDF.js";import"./chunk-5BHHLJJN.js";import{a as v}from"./chunk-MG65QJY6.js";import{g as l}from"./chunk-A6RDYP6R.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import{j as R,n as w}from"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import{v as c}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var h=E(),O=/^##\s{1,100}\[?([^\]\s]+)\]?\s{0,100}-?\s{0,100}([0-9]{4}-[0-9]{2}-[0-9]{2})?\s{0,100}$/,T=t=>{let e=t.trim().replace(/^refs\/tags\//,"");return e.startsWith("v")?e:`v${e}`},k=t=>{let e=t.split(/\r?\n/),r=[];for(let s=0;s<e.length;s+=1){let i=e[s].match(O);i!==null&&/^\d/.test(i[1])&&r.push({version:i[1],date:i[2]??"",headingLineIndex:s})}return r.length===0?[]:r.map((s,o)=>{let i=r[o+1],g=s.headingLineIndex+1,a=i!==void 0?i.headingLineIndex:e.length,n=e.slice(g,a);for(;n.length>0&&n[0].trim()==="";)n.shift();for(;n.length>0&&n[n.length-1].trim()==="";)n.pop();let d=[`## ${s.version}${s.date!==""?` - ${s.date}`:""}`];return n.length>0&&d.push("",...n),{version:s.version,date:s.date,tag:`v${s.version}`,notes:`${d.join(`
|
|
2
3
|
`).trim()}
|
|
3
4
|
`}})},I=async(t={})=>{let{changelogPath:e="CHANGELOG.md",root:r="."}=t,s=w(r,e),o=await c.runtime.fs.readTextFile(s);return{entries:k(o)}},S=async(t,e)=>{try{return await u.exec`gh release view ${t} --repo ${e}`.quiet().text(),!0}catch{return!1}},b=async t=>{let{repo:e,createIfMissing:r=!1,changelogPath:s="CHANGELOG.md",root:o=".",releaseTitle:i="eserstack {tag}"}=t,{entries:g}=await I({changelogPath:s,root:o});if(g.length===0)throw new Error("No release headings found in CHANGELOG.md.");let a=t.tag!==void 0?T(t.tag):g[0].tag,n=g.find(x=>x.tag===a);if(n===void 0)throw new Error(`No matching changelog section found for ${a}.`);let d=await c.runtime.fs.makeTempDir({prefix:"eserstack-release-"}),f=R(d,`${a}-notes.md`);await c.runtime.fs.writeTextFile(f,n.notes);try{if(await S(a,e))return await u.exec`gh release edit ${a} --repo ${e} --notes-file ${f}`.spawn(),{tag:a,entry:n,action:"updated"};if(!r)return{tag:a,entry:n,action:"skipped"};let N=i.replace("{tag}",a);try{return await u.exec`gh release create ${a} --repo ${e} --title ${N} --notes-file ${f}`.spawn(),{tag:a,entry:n,action:"created"}}catch{return await u.exec`gh release edit ${a} --repo ${e} --notes-file ${f}`.spawn(),{tag:a,entry:n,action:"updated"}}}finally{await c.runtime.fs.remove(d,{recursive:!0})}},G=t=>$.fromPromise(()=>b(t)),H=t=>{let e=t.flags.repo??c.runtime.env.get("GITHUB_REPOSITORY")??"";return e===""?l.fail(y.adaptError("Missing repository. Pass --repo or set GITHUB_REPOSITORY.")):l.ok({repo:e,tag:t.flags.tag??void 0,createIfMissing:t.flags["create-if-missing"]===!0})},L=t=>{if(l.isFail(t)){let r=t.error,s=r instanceof Error?r.message:r.message??String(r);return h.writeln(P("\u2717"),p(" "+s)),l.fail({exitCode:1})}let{value:e}=t;switch(e.action){case"created":h.writeln(m("\u2713"),p(` Created release ${e.tag} with changelog notes.`));break;case"updated":h.writeln(m("\u2713"),p(` Updated release notes for ${e.tag}.`));break;case"skipped":h.writeln(C("\u26A0"),p(` Release ${e.tag} not found. Skipping (pass --create-if-missing to create).`));break}return l.ok(void 0)},M=y.createTrigger({handler:G,adaptInput:H,adaptOutput:L}),W=async t=>{let e=v(t??[],{string:["repo","tag"],boolean:["create-if-missing"],alias:{h:"help"}}),r=A("release-notes",e);return await M(r)};export{M as handleCli,S as hasGitHubRelease,W as main,T as normalizeTag,I as parseChangelog,k as parseChangelogText,b as syncReleaseNotes,G as syncReleaseNotesHandler};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as y,d as v}from"./chunk-V4AJMSER.js";import{a as P}from"./chunk-KLHDNHD3.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import{a as h}from"./chunk-2VEVVX6U.js";import{a as f,b as R}from"./chunk-C2FHTZ2Y.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as c}from"./chunk-3BEX5FYF.js";import"./chunk-NP2CCJ4C.js";import"./chunk-7DPLGQHN.js";import{b as a,f as g,g as u,h as d,i as m}from"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import{a as p}from"./chunk-MG65QJY6.js";import{g as t}from"./chunk-A6RDYP6R.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var o=f(),C=async(e={})=>{let{root:r=".",remote:n="origin",tagPrefix:T="v",messageTemplate:x="Release {tag}",dryRun:l=!1}=e,s=await P({root:r});if(s===void 0||!/^\d+\.\d+\.\d+$/.test(s))throw new Error(`Invalid or missing version in VERSION file: "${s}"`);let i=`${T}${s}`,w=x.replace("{tag}",i).replace("{version}",s);return l||(await y(i,w),await v(n,i)),{version:s,tag:i,remote:n,dryRun:l}},A=e=>c.fromPromise(()=>C(e)),E=e=>t.ok({dryRun:e.flags["dry-run"]===!0}),$=e=>{if(t.isFail(e))return o.writeln(g("\u2717"),a(" "+(e.error instanceof Error?e.error.message:String(e.error)))),t.fail({exitCode:1});let{value:r}=e;return r.dryRun?o.writeln(d("\u26A0"),a(` [DRY RUN] Would create and push tag ${r.tag}`)):(o.writeln(u("\u2713"),a(` Created tag ${r.tag}`)),o.writeln(m("\u2139"),a(` Pushed tag ${r.tag} to ${r.remote}`))),t.ok(void 0)},O=h.createTrigger({handler:A,adaptInput:E,adaptOutput:$}),U=async e=>{let r=p(e??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),n=R("release-tag",r);return await O(n)};export{O as handleCli,U as main,C as pushReleaseTag,A as pushReleaseTagHandler};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{i as u}from"./chunk-ZTPERUHN.js";import{d as c,e as d}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{f as m,h as p,k as l}from"./chunk-NP2CCJ4C.js";import{d as a,g as o}from"./chunk-3SXTMY75.js";import{a as r}from"./chunk-A6RDYP6R.js";import{t as n}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var N=async w=>{let e=m({renderer:l.ansi(),sink:p.stdout()}),i=n.process.cwd(),s=await c(i);if(s.phase==="IDLE"||s.phase==="UNINITIALIZED")return e.writeln(a("Already idle. Nothing to reset.")),await e.close(),r(void 0);let t=s.spec,f=u(s);return await d(i,f),e.writeln(o("\u2714")," Reset to IDLE."),t!==null&&e.writeln(a(`Spec "${t}" state cleared. Files in .eser/specs/${t}/ preserved.`)),await e.close(),r(void 0)};export{N as main};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as y,b as k}from"./chunk-HFFIXVAB.js";import{a as g,b as x}from"./chunk-LNNNLUZT.js";import{c as w,j as c}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{f as a,h as l,k as d}from"./chunk-NP2CCJ4C.js";import{c as p,d as o,f,g as h}from"./chunk-3SXTMY75.js";import{a as u,b as m}from"./chunk-A6RDYP6R.js";import{t as i}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var L=async s=>{let e=s?.[0];if(e==="add")return await $(s?.slice(1));if(e==="list")return await v();if(e==="promote")return await C(s?.slice(1));let t=await c(i.process.cwd()),n=x(t),r=a({renderer:d.ansi(),sink:l.stdout()});return r.writeln(`Usage: ${n} rule <add "rule text" | list | promote "decision">`),await r.close(),u(void 0)},$=async s=>{let e=a({renderer:d.ansi(),sink:l.stdout()}),t=i.process.cwd(),n=s?.join(" "),r=await c(t);if(n===void 0||n.length===0)return e.writeln(f("Please provide a rule: "),p(`${g('rule add "Use Deno Tests for all tests"',r)}`)),await e.close(),m({exitCode:1});let P=n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,50),A=`${t}/${w.rulesDir}/${P}.md`;return await i.fs.mkdir(`${t}/${w.rulesDir}`,{recursive:!0}),await i.fs.writeTextFile(A,n+`
|
|
3
|
+
`),e.writeln(h("\u2714")," Rule added: ",o(n)),r!==null&&r.tools.length>0&&(await k(t,r.tools,r),e.writeln(o(" Tool files synced."))),await e.close(),u(void 0)},v=async()=>{let s=a({renderer:d.ansi(),sink:l.stdout()}),e=i.process.cwd(),t=await y(e);s.writeln(p("Rules")),s.writeln("");let n=await c(e);if(t.length===0)s.writeln(o(` No rules yet. Add one with: ${g('rule add "..."',n)}`));else for(let r of t)s.writeln(" ",o("\u2022"),` ${r}`);return await s.close(),u(void 0)},C=async s=>{let e=a({renderer:d.ansi(),sink:l.stdout()}),t=s?.join(" ");return t===void 0||t.length===0?(e.writeln(f("Please provide the decision text to promote.")),await e.close(),m({exitCode:1})):(await e.close(),await $(s))};export{L as main};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as V,b as q,c as z}from"./chunk-VC5BX56D.js";import"./chunk-EETBL6X2.js";import"./chunk-JYNHFD6B.js";import{a as A,c as J,d as k,e as L}from"./chunk-3BEX5FYF.js";import{f as N,h as U,k as B}from"./chunk-NP2CCJ4C.js";import{f as x,g as C,h as F}from"./chunk-3SXTMY75.js";import{d as H}from"./chunk-JPFGKN4T.js";import{a as I}from"./chunk-MG65QJY6.js";import{a as W,b as c,c as P,d as S}from"./chunk-A6RDYP6R.js";import{t as _}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var O=s=>({_tag:"WorkflowError",message:s}),Z=s=>{if(typeof s=="string")return{name:s,options:{},continueOnError:!1};let o=Object.entries(s);if(o.length!==1)throw new Error(`Invalid step config: expected exactly one key, got ${o.length}`);let[e,n]=o[0],r={},i=!1,l;for(let[a,t]of Object.entries(n))a==="continueOnError"?i=t===!0:a==="timeout"?l=t*1e3:r[a]=t;return{name:e,options:r,continueOnError:i,timeout:l}},ee=(s,o,e)=>L(J(s,n=>O(n instanceof Error?n.message:String(n))),o,O(`Step '${e}' timed out after ${(o/1e3).toFixed(0)}s`)),G=(s,o,e={})=>A(async()=>{let n=performance.now(),r=[],i=e.defaultTimeout??6e4;for(let a of s.steps){let t=Z(a);if(e.only!==void 0&&t.name!==e.only)continue;let T=o.get(t.name);if(T===void 0)return c(O(`Unknown tool '${t.name}' in workflow '${s.id}'. Registered tools: ${o.names().join(", ")||"(none)"}`));let v={...t.options,root:e.root??".",fix:e.fix??!1,_args:e.args??[]};e.changedFiles!==void 0&&(v._changedFiles=e.changedFiles),e.onStepStart?.(t.name);let g=performance.now(),j=t.timeout??i,h=ee(()=>T.run(v),j,t.name),p=await k(h),d;if(P(p))d=p.value;else if(t.continueOnError)d={name:t.name,passed:!1,issues:[{message:p.error.message}],mutations:[],stats:{}};else return p;let b=performance.now()-g,y={...d,durationMs:b};r.push(y),d.mutations.length>0&&e.onMutations!==void 0&&await e.onMutations(d.mutations),e.onStepEnd?.(y)}let l=performance.now()-n;return W({workflowId:s.id,passed:r.every(a=>a.passed),steps:r,totalDurationMs:l})}),D=(s,o,e=new Set)=>{if(s.includes===void 0||s.includes.length===0)return s;let n=new Set(e);n.add(s.id);let r=[];for(let i of s.includes){if(n.has(i))throw new Error(`Circular include detected: workflow '${s.id}' includes '${i}' which is already in the include chain: ${[...n].join(" \u2192 ")}`);let l=o.find(t=>t.id===i);if(l===void 0)throw new Error(`Workflow '${s.id}' includes '${i}' but no workflow with that id exists. Available: ${o.map(t=>t.id).join(", ")||"(none)"}`);let a=D(l,o,n);r.push(...a.steps)}return{...s,steps:[...r,...s.steps],includes:void 0}},K=(s,o,e,n={})=>A(async()=>{let r=o.workflows.find(l=>l.id===s);if(r===void 0)return c(O(`Workflow '${s}' not found. Available: ${o.workflows.map(l=>l.id).join(", ")||"(none)"}`));let i=D(r,o.workflows);return await k(G(i,e,n))}),Q=(s,o,e,n={})=>A(async()=>{let r=o.filter(l=>l.on.includes(s));if(r.length===0)return c(O(`No workflows found for event '${s}'. Available: ${o.map(l=>`${l.id} (${l.on.join(", ")})`).join("; ")||"(none)"}`));let i=[];for(let l of r){let a=D(l,o),t=await k(G(a,e,n));if(S(t))return t;i.push(t.value)}return W(i)});var oe=50,$=B.ansi(),se=(s,o,e)=>{let n=".".repeat(Math.max(1,oe-s.length)),r=`${(o.durationMs/1e3).toFixed(1)}s`,i;if(o.passed&&o.mutations.length>0)i=$.render([F(`Fixed (${o.mutations.length} file${o.mutations.length===1?"":"s"}, ${r})`)]);else if(o.passed)if(e&&Object.keys(o.stats).length>0){let l=Object.entries(o.stats).map(([a,t])=>`${t} ${a}`).join(", ");i=$.render([C(`Passed (${l}, ${r})`)])}else i=$.render([C(`Passed (${r})`)]);else i=$.render([x(`Failed (${r})`)]);return`${s}${n}${i}`},pe=async(s,o)=>{let e=I(s??[],{string:["event","workflow","only","config"],boolean:["fix","dry-run","help","verbose","json","changed"],alias:{e:"event",w:"workflow",h:"help",v:"verbose"}});if(e.help)return console.log(`eser workflows run \u2014 Run workflow pipelines
|
|
3
|
+
`),console.log("Usage:"),console.log(" eser workflows run -e <event> Run by event"),console.log(" eser workflows run -w <workflow-id> Run by workflow id"),console.log(),console.log("Options:"),console.log(" -e, --event <name> Event to trigger (precommit, commitmsg, prepush)"),console.log(" -w, --workflow <id> Workflow id to run"),console.log(" --fix Auto-fix issues where supported"),console.log(" --dry-run Preview mutations without writing"),console.log(" --only <step> Run only a specific step"),console.log(" --config <path> Config directory (default: .)"),console.log(" -v, --verbose Show stats and issues for all steps"),console.log(" --json Output results as JSON"),console.log(" --changed Only check files changed in git"),console.log(" -h, --help Show this help"),W(void 0);let n=N({renderer:$,sink:U.stdout()}),r=e.event,i=e.workflow,l=e.fix??!1,a=e["dry-run"]??!1,t=e.only,T=e._,v=e.verbose??!1,g=e.json??!1,j=e.changed??!1;if(r===void 0&&i===void 0)return console.error("Error: specify -e <event> or -w <workflow-id>. Use --help for usage."),await n.close(),c({exitCode:1});let h=V();h.register(z),o?.tools!==void 0&&h.registerAll(o.tools);let p=e.config??".",d=await q(p);if(d===null)return console.error("Error: no .eser/manifest.yml found in current directory."),await n.close(),c({exitCode:1});let b;if(j)try{b=await H`git diff --name-only HEAD`.cwd(p).noThrow().lines()}catch{n.writeln(F("Warning: could not run git, running without file filtering."))}let y=[],M={root:p,fix:l,dryRun:a,only:t,args:T,changedFiles:b,onStepStart:void 0,onStepEnd:g?void 0:f=>{if(console.log(se(f.name,f,v)),!f.passed||v)for(let u of f.issues){let R=u.path!==void 0?u.line!==void 0?`${u.path}:${u.line}`:u.path:"";console.log(` ${$.render([x("\u2717")])} ${R}${R.length>0?": ":""}${u.message}`)}},onMutations:async f=>{if(!a)for(let u of f)u.oldContent!==u.newContent&&await _.fs.writeTextFile(u.path,u.newContent)}};try{let f=!0,u=0,R=0;if(r!==void 0){let w=await k(Q(r,d.workflows,h,M));if(S(w))throw new Error(w.error.message);for(let m of w.value){y.push(m),m.passed||(f=!1);for(let E of m.steps)E.passed||(R++,u+=E.issues.length)}}else{let w=await k(K(i,d,h,M));if(S(w))throw new Error(w.error.message);let m=w.value;y.push(m),f=m.passed;for(let E of m.steps)E.passed||(R++,u+=E.issues.length)}return g&&console.log(JSON.stringify(y,null,2)),f?(g||n.writeln(C(`
|
|
3
4
|
All checks passed!`)),await n.close(),W(void 0)):(g||n.writeln(x(`
|
|
4
5
|
${R} check(s) failed with ${u} issue(s)`)),await n.close(),c({exitCode:1}))}catch(f){return n.writeln(x(`Error: ${f instanceof Error?f.message:String(f)}`)),await n.close(),c({exitCode:1})}};export{pe as main};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as L}from"./chunk-LXE2WGIW.js";import{a as G}from"./chunk-HFFIXVAB.js";import"./chunk-2SEPWXDK.js";import"./chunk-EZE3F4PG.js";import{a as V,f as B}from"./chunk-ZTPERUHN.js";import{a as M,b as C}from"./chunk-LNNNLUZT.js";import{d as x,e as g,j as $,n as F,q as U}from"./chunk-U3FRSRMK.js";import{a as D,b as A,d as N}from"./chunk-PHI2BESG.js";import"./chunk-JYNHFD6B.js";import{f as R,h as O,k as T}from"./chunk-NP2CCJ4C.js";import{c as P,d as r,f as u,g as v,h,k as I}from"./chunk-3SXTMY75.js";import{a as S,b as w}from"./chunk-A6RDYP6R.js";import{t as y}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var ae=async n=>{let t=R({renderer:T.ansi(),sink:O.stdout()}),e=y.process.cwd(),a=n?.includes("--unattended")??!1,s=W(n,"--max-turns")??10,o=W(n,"--max-iterations")??50;if(!await U(e)){let i=await $(e);return t.writeln(u(`noskills not initialized. Run: ${M("init",i)}`)),await t.close(),w({exitCode:1})}let p=await x(e);if(p.phase!=="EXECUTING"&&p.phase!=="SPEC_APPROVED")return t.writeln(u(`Cannot run from phase: ${p.phase}`)),t.writeln(r("Must be in SPEC_APPROVED or EXECUTING to start.")),await t.close(),w({exitCode:1});if(p.phase==="SPEC_APPROVED"){t.writeln(r("Starting execution from approved spec..."));let i=B(p);await g(e,i)}let c=await $(e);if(c===null)return t.writeln(u("Config not found.")),await t.close(),w({exitCode:1});t.writeln(P(`${C(c)} run`)),t.writeln(r(`Mode: ${a?"unattended":"interactive"}, max-turns: ${s}, max-iterations: ${o}`)),t.writeln("");let m=0,d=0;for(;m<o;){m++;let i=await x(e);if(i.phase==="DONE"){t.writeln(""),t.writeln(v("\u2714")," Spec completed!"),t.writeln(` Iterations: ${i.execution.iteration}`),t.writeln(` Decisions: ${i.decisions.length}`);break}if(i.phase==="BLOCKED"){let l=i.execution.lastProgress??"Unknown";if(t.writeln(""),t.writeln(h("\u26A0")," Execution blocked: ",r(l)),a){await H(e,l,m),t.writeln(r("Logged to .eser/.state/blocked.log. Resolve and re-run.")),d=1;break}let E=A(),f=await N(E,{message:"Enter resolution (or leave empty to stop):"});if(D(f)||f===""){t.writeln(r("Stopped by user."));break}let k=V(i,"EXECUTING");await g(e,{...k,execution:{...k.execution,lastProgress:`Resolved: ${f}`}});continue}if(i.phase!=="EXECUTING"){t.writeln(u(`Unexpected phase: ${i.phase}. Stopping.`)),d=1;break}i.pendingClear&&await g(e,{...i,pendingClear:!1});let X=(await F(e)).filter(l=>c.concerns.includes(l.id)),_=await G(e),j=L(i,X,_,c),z=q(j,c);t.writeln(I(`\u2500\u2500 Iteration ${m}`),r(` (execution: ${i.execution.iteration}, debt: ${i.execution.debt?.items.length??0})`)),i.execution.lastProgress!==null&&t.writeln(r(` Last: ${i.execution.lastProgress}`)),i.execution.lastVerification?.passed===!1&&t.writeln(u(" Verification failed \u2014 agent will fix")),i.execution.debt!==null&&t.writeln(h(` Debt: ${i.execution.debt.items.length} items`)),t.writeln(r(" Spawning agent..."));try{await(await import("./mod-5ZKIEGUP.js")).exec`claude -p ${z} --max-turns ${String(s)} --output-format json`.noThrow().text()}catch{t.writeln(u(" Failed to spawn claude CLI. Is it installed?")),d=1;break}t.writeln(r(" Agent exited. Stop hook captured state."));let b=await x(e);if(c.autoCommit===!0&&c.allowGit!==!1)try{let l=await import("./mod-5ZKIEGUP.js");if((await l.exec`git diff --name-only`.noThrow().text()).trim().length>0){await l.exec`git add -A`.noThrow().text();let f=`noskills: iteration ${b.execution.iteration} \u2014 ${b.execution.lastProgress??"progress"}`;await l.exec`git commit -m ${f}`.noThrow().text(),t.writeln(r(" Auto-committed."))}}catch{t.writeln(r(" Auto-commit failed (non-fatal)."))}}return m>=o&&(t.writeln(""),t.writeln(h("\u26A0"),` Max iterations (${o}) reached. Stopping.`),d=2),await t.close(),d!==0?w({exitCode:d}):S(void 0)},q=(n,t)=>{let e=[];if(e.push(n.meta.resumeHint),e.push(""),n.meta.spec!==null&&(e.push(`Working on spec: ${n.meta.spec}`),e.push("")),"instruction"in n&&(e.push(n.instruction),e.push("")),"previousIterationDebt"in n){let s=n.previousIterationDebt;if(s!==void 0){e.push(`DEBT from iteration ${s.fromIteration} (address first):`);for(let o of s.items)e.push(`- ${o}`);e.push("")}}if("statusReportRequired"in n){let s=n.statusReport;if(s!==void 0){e.push("Report against these acceptance criteria:");for(let o of s.criteria)e.push(`- ${o}`);e.push("")}}if("verificationFailed"in n&&n.verificationFailed===!0&&(e.push("Test output:"),e.push(("verificationOutput"in n?n.verificationOutput:"")??""),e.push("")),n.behavioral.rules.length>0){e.push("Rules:");for(let s of n.behavioral.rules)e.push(`- ${s}`);e.push("")}if("context"in n){let s=n.context;if(s.concernReminders.length>0){e.push("Reminders:");for(let o of s.concernReminders)e.push(`- ${o}`);e.push("")}}let a=C(t);return e.push(`When done, report progress: ${a} next --answer="your progress"`),e.push(`If blocked, run: ${a} block "reason"`),e.push(`When all tasks are complete: ${a} done`),e.join(`
|
|
3
|
+
`)},W=(n,t)=>{if(n===void 0)return null;let e=`${t}=`;for(let a of n)if(a.startsWith(e)){let s=parseInt(a.slice(e.length),10);if(!isNaN(s)&&s>0)return s}return null},H=async(n,t,e)=>{let a=`${n}/.eser/.state/blocked.log`,s=`[${new Date().toISOString()}] iteration=${e} reason=${t}
|
|
4
|
+
`;try{let{appendFileSync:o,mkdirSync:p}=await import("node:fs"),{dirname:c}=await import("node:path");p(c(a),{recursive:!0}),o(a,s)}catch{}};export{ae as main};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{f as w,h as g,k as y}from"./chunk-NP2CCJ4C.js";import{b as m,d as p,f as C}from"./chunk-3SXTMY75.js";import{b as x}from"./chunk-JPFGKN4T.js";import{a as h,b as f}from"./chunk-A6RDYP6R.js";import{t as S}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var l=(e,r)=>typeof r=="string"?{command:r,description:e,workingDirectory:void 0,depends:[]}:{command:r.command,description:r.description??e,workingDirectory:r.workingDirectory,depends:r.depends??[]},k=(e,r,t=new Set,s=new Set)=>{if(s.has(e))return[];if(t.has(e))throw new Error(`Circular dependency detected: ${e} depends on itself (cycle in dependency chain)`);let n=r[e];if(n===void 0)throw new Error(`Unknown script dependency: "${e}"`);t.add(e);let c=l(e,n),o=[];for(let a of c.depends){let i=k(a,r,t,s);for(let d of i)s.has(d)||(o.push(d),s.add(d))}return s.add(e),o},P=()=>{let e=new URL("./main.ts",import.meta.url),r=e.protocol==="file:"?e.pathname:e.href;return`${S.process.execPath()} run --allow-all ${r}`},R=e=>{if(e==="eser"||e.startsWith("eser ")){let r=e.slice(4);return`${P()}${r}`}return e},$=async(e,r,t)=>{let s=R(e),n=t!==void 0&&t.length>0?`${s} ${t.join(" ")}`:s,c=r??".";return(await new x("sh",["-c",n]).cwd(c).stdout("inherit").stderr("inherit").noThrow().spawn()).code},O=async(e,r,t,s)=>{let n=w({renderer:y.ansi(),sink:g.stdout()}),c=k(e,t);for(let i of c){let d=l(i,t[i]);n.writeln(p(`$ ${i}`));let u=await $(d.command,d.workingDirectory);if(u!==0)return n.writeln(C(`Script dependency "${i}" failed with exit code ${u}`)),await n.close(),f({exitCode:u})}let o=l(e,t[e]);n.writeln(p(`$ ${e}`));let a=await $(o.command,o.workingDirectory,s);return a!==0?(await n.close(),f({exitCode:a})):(await n.close(),h(void 0))},B=e=>{let r=w({renderer:y.ansi(),sink:g.stdout()});r.writeln(m("Scripts:"));for(let[t,s]of Object.entries(e)){let n=l(t,s);r.writeln(m(` ${t.padEnd(20)} `),p(n.description))}r.writeln()};export{$ as executeCommand,l as parseScript,k as resolveDependencies,O as runScript,B as showScripts};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as xt,b as zt,c as Qt,d as St}from"./chunk-TFPT4BDY.js";import{a as Gt}from"./chunk-DAK2I7UC.js";import{b as bt,c as _t}from"./chunk-PE2TDUXD.js";import{e as Qe}from"./chunk-G6NAG2EK.js";var N="0.39.0";var Pt=!1,U,Ye,Yt,Zt,er,Mt,tr,Me,Ze,Et,et,ue,At;function Rt(s,e={auto:!1}){if(Pt)throw new Error(`you must \`import '@anthropic-ai/sdk/shims/${s.kind}'\` before importing anything else from @anthropic-ai/sdk`);if(U)throw new Error(`can't \`import '@anthropic-ai/sdk/shims/${s.kind}'\` after \`import '@anthropic-ai/sdk/shims/${U}'\``);Pt=e.auto,U=s.kind,Ye=s.fetch,Yt=s.Request,Zt=s.Response,er=s.Headers,Mt=s.FormData,tr=s.Blob,Me=s.File,Ze=s.ReadableStream,Et=s.getMultipartRequestOptions,et=s.getDefaultAgent,ue=s.fileFromPath,At=s.isFsReadStream}var O=Qe(Gt(),1);var tt=Qe(zt(),1),It=Qe(Qt(),1);import{ReadStream as sr}from"node:fs";import{Readable as nr}from"node:stream";var Ee=class{constructor(e){this.body=e}get[Symbol.toStringTag](){return"MultipartBody"}};import{ReadableStream as ir}from"node:stream/web";var kt=!1;async function or(s,...e){let{fileFromPath:t}=await import("./fileFromPath-MB3IRZVW.js");return kt||(console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(s)}) instead`),kt=!0),await t(s,...e)}var ar=new tt.default({keepAlive:!0,timeout:5*60*1e3}),cr=new tt.default.HttpsAgent({keepAlive:!0,timeout:5*60*1e3});async function ur(s,e){let t=new St(s),r=nr.from(t),n=new Ee(r),i={...e.headers,...t.headers,"Content-Length":t.contentLength};return{...e,body:n,headers:i}}function Bt(){return typeof AbortController>"u"&&(globalThis.AbortController=It.AbortController),{kind:"node",fetch:O.default,Request:O.Request,Response:O.Response,Headers:O.Headers,FormData:xt,Blob:bt,File:_t,ReadableStream:ir,getMultipartRequestOptions:ur,getDefaultAgent:s=>s.startsWith("https")?cr:ar,fileFromPath:or,isFsReadStream:s=>s instanceof sr}}U||Rt(Bt(),{auto:!0});var c=class extends Error{},m=class s extends c{constructor(e,t,r,n){super(`${s.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.request_id=n?.["request-id"],this.error=t}static makeMessage(e,t,r){let n=t?.message?typeof t.message=="string"?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e||!n)return new R({message:r,cause:Ae(t)});let i=t;return e===400?new K(e,i,r,n):e===401?new V(e,i,r,n):e===403?new G(e,i,r,n):e===404?new z(e,i,r,n):e===409?new Q(e,i,r,n):e===422?new Y(e,i,r,n):e===429?new Z(e,i,r,n):e>=500?new ee(e,i,r,n):new s(e,i,r,n)}},p=class extends m{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}},R=class extends m{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}},$=class extends R{constructor({message:e}={}){super({message:e??"Request timed out."})}},K=class extends m{},V=class extends m{},G=class extends m{},z=class extends m{},Q=class extends m{},Y=class extends m{},Z=class extends m{},ee=class extends m{};var Re=function(s,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!n:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(s,t):n?n.value=t:e.set(s,t),t},L=function(s,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!r:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(s):r?r.value:e.get(s)},b,k=class{constructor(){b.set(this,void 0),this.buffer=new Uint8Array,Re(this,b,null,"f")}decode(e){if(e==null)return[];let t=e instanceof ArrayBuffer?new Uint8Array(e):typeof e=="string"?new TextEncoder().encode(e):e,r=new Uint8Array(this.buffer.length+t.length);r.set(this.buffer),r.set(t,this.buffer.length),this.buffer=r;let n=[],i;for(;(i=fr(this.buffer,L(this,b,"f")))!=null;){if(i.carriage&&L(this,b,"f")==null){Re(this,b,i.index,"f");continue}if(L(this,b,"f")!=null&&(i.index!==L(this,b,"f")+1||i.carriage)){n.push(this.decodeText(this.buffer.slice(0,L(this,b,"f")-1))),this.buffer=this.buffer.slice(L(this,b,"f")),Re(this,b,null,"f");continue}let o=L(this,b,"f")!==null?i.preceding-1:i.preceding,a=this.decodeText(this.buffer.slice(0,o));n.push(a),this.buffer=this.buffer.slice(i.index),Re(this,b,null,"f")}return n}decodeText(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof Buffer<"u"){if(e instanceof Buffer)return e.toString();if(e instanceof Uint8Array)return Buffer.from(e).toString();throw new c(`Unexpected: received non-Uint8Array (${e.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new c(`Unexpected: received non-Uint8Array/ArrayBuffer (${e.constructor.name}) in a web platform. Please report this error.`)}throw new c("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
|
|
2
3
|
`):[]}};b=new WeakMap;k.NEWLINE_CHARS=new Set([`
|
|
3
4
|
`,"\r"]);k.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function fr(s,e){for(let n=e??0;n<s.length;n++){if(s[n]===10)return{preceding:n,index:n+1,carriage:!1};if(s[n]===13)return{preceding:n,index:n+1,carriage:!0}}return null}function Tt(s){for(let r=0;r<s.length-1;r++){if(s[r]===10&&s[r+1]===10||s[r]===13&&s[r+1]===13)return r+2;if(s[r]===13&&s[r+1]===10&&r+3<s.length&&s[r+2]===13&&s[r+3]===10)return r+4}return-1}function le(s){if(s[Symbol.asyncIterator])return s;let e=s.getReader();return{async next(){try{let t=await e.read();return t?.done&&e.releaseLock(),t}catch(t){throw e.releaseLock(),t}},async return(){let t=e.cancel();return e.releaseLock(),await t,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}var M=class s{constructor(e,t){this.iterator=e,this.controller=t}static fromSSEResponse(e,t){let r=!1;async function*n(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let i=!1;try{for await(let o of hr(e,t)){if(o.event==="completion")try{yield JSON.parse(o.data)}catch(a){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),a}if(o.event==="message_start"||o.event==="message_delta"||o.event==="message_stop"||o.event==="content_block_start"||o.event==="content_block_delta"||o.event==="content_block_stop")try{yield JSON.parse(o.data)}catch(a){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),a}if(o.event!=="ping"&&o.event==="error")throw m.generate(void 0,`SSE Error: ${o.data}`,o.data,st(e.headers))}i=!0}catch(o){if(o instanceof Error&&o.name==="AbortError")return;throw o}finally{i||t.abort()}}return new s(n,t)}static fromReadableStream(e,t){let r=!1;async function*n(){let o=new k,a=le(e);for await(let h of a)for(let d of o.decode(h))yield d;for(let h of o.flush())yield h}async function*i(){if(r)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let o=!1;try{for await(let a of n())o||a&&(yield JSON.parse(a));o=!0}catch(a){if(a instanceof Error&&a.name==="AbortError")return;throw a}finally{o||t.abort()}}return new s(i,t)}[Symbol.asyncIterator](){return this.iterator()}tee(){let e=[],t=[],r=this.iterator(),n=i=>({next:()=>{if(i.length===0){let o=r.next();e.push(o),t.push(o)}return i.shift()}});return[new s(()=>n(e),this.controller),new s(()=>n(t),this.controller)]}toReadableStream(){let e=this,t,r=new TextEncoder;return new Ze({async start(){t=e[Symbol.asyncIterator]()},async pull(n){try{let{value:i,done:o}=await t.next();if(o)return n.close();let a=r.encode(JSON.stringify(i)+`
|
|
4
5
|
`);n.enqueue(a)}catch(i){n.error(i)}},async cancel(){await t.return?.()}})}};async function*hr(s,e){if(!s.body)throw e.abort(),new c("Attempted to iterate over a response with no body");let t=new rt,r=new k,n=le(s.body);for await(let i of dr(n))for(let o of r.decode(i)){let a=t.decode(o);a&&(yield a)}for(let i of r.flush()){let o=t.decode(i);o&&(yield o)}}async function*dr(s){let e=new Uint8Array;for await(let t of s){if(t==null)continue;let r=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?new TextEncoder().encode(t):t,n=new Uint8Array(e.length+r.length);n.set(e),n.set(r,e.length),e=n;let i;for(;(i=Tt(e))!==-1;)yield e.slice(0,i),e=e.slice(i)}e.length>0&&(yield e)}var rt=class{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let i={event:this.event,data:this.data.join(`
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{f as l,h as a,k as i}from"./chunk-NP2CCJ4C.js";import{k as n}from"./chunk-3SXTMY75.js";import"./chunk-PWLF3WXM.js";import{a as o}from"./chunk-5BHHLJJN.js";import"./chunk-MG65QJY6.js";import{a as t}from"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var v=["trace","debug","info","warn","error","fatal"],P=async m=>{let{flags:e}=o(m??[],[{name:"port",short:"p",type:"number",default:8e3,description:"Server port"},{name:"log-level",type:"string",default:"info",description:"Log level"}]),r=l({renderer:i.ansi(),sink:a.stdout()});r.writeln(n(`
|
|
3
|
+
\u{1F680} Serving production build...
|
|
4
|
+
`));let p=e.port,s=e["log-level"]??"info",u=v.includes(s.toLowerCase())?s.toLowerCase():"info",[{startServer:g},{reactRenderer:c,reactHtmlShellBuilder:d},{reactPlugin:L},{createTailwindPlugin:f}]=await Promise.all([import("./main-ODLLH74E.js"),import("./mod-S5HDMMLJ.js"),import("./mod-EWGGLW3S.js"),import("./mod-U23K3LXJ.js")]);return await r.close(),await g({mode:"serve",port:p,logLevel:u,hmr:!1,renderer:c,htmlShell:d,frameworkPlugin:L,cssPlugin:f({globalCssPath:"src/app/styles/global.css"})}),t(void 0)};export{P as main};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as L,b as Y,h as G,i as O,m as K,o as A,p as D}from"./chunk-EJ4XBQTD.js";import{e as F}from"./chunk-LCG4SK6K.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import{t as f}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import{b as I}from"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";function q(e,s){let a={...e,...s},i=[];a.description&&i.push(`<meta name="description" content="${j(a.description)}">`),a.keywords&&a.keywords.length>0&&i.push(`<meta name="keywords" content="${j(a.keywords.join(", "))}">`),a.author&&i.push(`<meta name="author" content="${j(a.author)}">`),a.themeColor&&i.push(`<meta name="theme-color" content="${a.themeColor}">`);let n=[];return a.noIndex&&n.push("noindex"),a.noFollow&&n.push("nofollow"),n.length>0&&i.push(`<meta name="robots" content="${n.join(", ")}">`),a.canonicalUrl&&i.push(`<link rel="canonical" href="${j(a.canonicalUrl)}">`),i.push(`<meta property="og:type" content="${a.ogType||"website"}">`),i.push(`<meta property="og:title" content="${j(a.title)}">`),a.description&&i.push(`<meta property="og:description" content="${j(a.description)}">`),a.siteUrl&&i.push(`<meta property="og:url" content="${j(a.siteUrl)}">`),a.siteName&&i.push(`<meta property="og:site_name" content="${j(a.siteName)}">`),a.locale&&i.push(`<meta property="og:locale" content="${a.locale}">`),a.ogImage&&(i.push(`<meta property="og:image" content="${j(a.ogImage)}">`),i.push(`<meta property="og:image:alt" content="${j(a.title)}">`)),i.push('<meta name="twitter:card" content="summary_large_image">'),i.push(`<meta name="twitter:title" content="${j(a.title)}">`),a.description&&i.push(`<meta name="twitter:description" content="${j(a.description)}">`),a.twitterHandle&&(i.push(`<meta name="twitter:site" content="${j(a.twitterHandle)}">`),i.push(`<meta name="twitter:creator" content="${j(a.twitterHandle)}">`)),a.ogImage&&i.push(`<meta name="twitter:image" content="${j(a.ogImage)}">`),a.favicon&&i.push(`<link rel="icon" href="${j(a.favicon)}">`),i.join(`
|
|
2
3
|
`)}function M(e,s){let a={...e,...s},i={"@context":"https://schema.org","@type":"WebSite",name:a.siteName,url:a.siteUrl,description:a.description},n={"@context":"https://schema.org","@type":"Organization",name:a.siteName,url:a.siteUrl,logo:a.ogImage},t=[i,n];return a.jsonLd&&t.push({"@context":"https://schema.org",...a.jsonLd}),t.map(p=>`<script type="application/ld+json">${JSON.stringify(p)}</script>`).join(`
|
|
3
4
|
`)}function j(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var V={title:"laroux.js 3.0",description:"Zero-configuration React Server Components on Deno 2.x. Modern, simple, and built with cutting-edge technology.",siteName:"laroux.js",siteUrl:"https://laroux.now",locale:"en_US",themeColor:"#7c3aed",favicon:"/favicon.svg",twitterHandle:"@eser",ogImage:"https://laroux.now/og-image.png",ogType:"website",keywords:["laroux","open source","community","development","react","server components","server actions","island architecture"],author:"Eser Ozvataf"};function Q(e){let s=e.entrypoint??"/client.js",a=e.chunkManifest?.buildId?`?v=${e.chunkManifest.buildId}`:`?v=${Date.now()}`,i=e.chunkManifest?.hmrEnabled?"":a,n=e.fontPreloads?.join(`
|
|
4
5
|
`)??"",t=e.fontCSS?`<style>${e.fontCSS}</style>`:"",p=e.criticalChunks?.map(v=>`<link rel="modulepreload" href="${v}${a}">`).join(`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as j,i as F}from"./chunk-ZTPERUHN.js";import{a as T,d as U}from"./chunk-SAQAIPUB.js";import{a as x,b as C}from"./chunk-LNNNLUZT.js";import{c as S,d as P,e as I,f as A,g as L,h as R,i as O,j as k,q as z}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{f as y,h as D,k as v}from"./chunk-NP2CCJ4C.js";import{c as d,d as c,f as w,g as $,h as E,k as N}from"./chunk-3SXTMY75.js";import{a as h,b as g}from"./chunk-A6RDYP6R.js";import{t as l}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var ee=async i=>{let e=i?.[0];if(e==="new")return await M(i?.slice(1));if(e==="list")return await B(i?.slice(1));if(e==="switch")return await q(i?.slice(1));let t=await k(l.process.cwd()),n=C(t),r=y({renderer:v.ansi(),sink:D.stdout()});return r.writeln(`Usage: ${n} spec <new "description" | list | switch <name>>`),await r.close(),h(void 0)},M=async i=>{let e=y({renderer:v.ansi(),sink:D.stdout()}),t=l.process.cwd(),n=await k(t);if(!await z(t))return e.writeln(w("noskills is not initialized.")," Run: ",d(x("init",n))),await e.close(),g({exitCode:1});let r=null,p=[];if(i!==void 0)for(let f of i)f.startsWith("--name=")?r=f.slice(7):f.startsWith("-")||p.push(f);let m=p.join(" ");if(m.length===0)return e.writeln(w("Please provide a description: "),d(`${C(n)} spec new "photo auto-listing"`)),await e.close(),g({exitCode:1});let a=r??W(m),o=await X(t,a),s=`spec/${o}`,u=await P(t);if(u.phase!=="IDLE"&&u.phase!=="DONE")return e.writeln(w(`Cannot start new spec in phase: ${u.phase}`),c(" \u2014 finish or reset the current spec first.")),await e.close(),g({exitCode:1});let b=j(u.phase==="DONE"?F(u):u,o,s);return await l.fs.mkdir(`${t}/${S.specDir(o)}`,{recursive:!0}),await I(t,b),await R(t,o,b),e.writeln($("\u2714")," Spec started: ",d(o)),e.writeln(" Directory: ",c(S.specDir(o))),e.writeln(" Branch: ",c(s)),e.writeln(" Phase: ",E("DISCOVERY")),e.writeln(""),e.writeln("Run ",d(x("next",n))," to begin discovery questions."),await e.close(),h(void 0)},W=i=>i.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,50).replace(/-$/,""),X=async(i,e)=>{let t=`${i}/${S.specsDir}`,n=async r=>{try{return await l.fs.stat(`${t}/${r}`),!0}catch{return!1}};if(!await n(e))return e;for(let r=2;r<=99;r++){let p=`${e}-${r}`;if(!await n(p))return p}return`${e}-${Date.now()}`},B=async i=>{let e=l.process.cwd(),t=T(i),n=await A(e),r=await O(e),p=`${e}/${S.specsDir}`,m=new Set(r.map(s=>s.name)),a=[];for(let s of r)a.push({name:s.name,phase:s.state.phase,iteration:s.state.execution.iteration,active:s.name===n});try{for await(let s of l.fs.readDir(p))s.isDirectory&&!m.has(s.name)&&a.push({name:s.name,phase:"IDLE",iteration:0,active:s.name===n})}catch{}if(t==="json")return await U(a,"json"),h(void 0);let o=y({renderer:v.ansi(),sink:D.stdout()});if(o.writeln(d("Specs")),o.writeln(""),a.length===0)o.writeln(c(" No specs yet."));else for(let s of a){let u=s.active?$("\u25CF"):c("\u25CB"),b=s.active?d(s.name):c(s.name),f=s.phase==="DONE"?$(s.phase):s.phase==="EXECUTING"?N(s.phase):s.phase==="BLOCKED"?w(s.phase):E(s.phase),G=s.phase==="EXECUTING"?c(` iteration ${s.iteration}`):"";o.writeln(" ",u," ",b," ",f,G)}return await o.close(),h(void 0)},q=async i=>{let e=y({renderer:v.ansi(),sink:D.stdout()}),t=l.process.cwd(),n=i?.[0],r=await k(t);if(n===void 0||n.length===0)return e.writeln(w("Please provide a spec name: "),d(`${C(r)} spec switch my-feature`)),await e.close(),g({exitCode:1});let p=await A(t),m=await P(t);p!==null&&m.spec!==null&&await R(t,p,m);let a=await L(t,n),o=await l.fs.stat(`${t}/${S.specDir(n)}`).then(()=>!0).catch(()=>!1);return a.phase==="IDLE"&&!o?(e.writeln(w(`Spec "${n}" not found.`)),e.writeln(c(`Run \`${x("spec list",r)}\` to see available specs.`)),await e.close(),g({exitCode:1})):(await I(t,a),e.writeln($("\u2714")," Switched to: ",d(n)," (",N(a.phase),")"),a.phase==="EXECUTING"&&(e.writeln(c(` Iteration: ${a.execution.iteration}`)),a.execution.lastProgress!==null&&e.writeln(c(` Progress: ${a.execution.lastProgress}`))),await e.close(),h(void 0))};export{ee as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as h}from"./chunk-2SEPWXDK.js";import"./chunk-EZE3F4PG.js";import{a as I,d as w}from"./chunk-SAQAIPUB.js";import{a as f}from"./chunk-LNNNLUZT.js";import{d as y,j as u,q as D}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{f as p,h as d,k as m}from"./chunk-NP2CCJ4C.js";import{c as i,d as r,f as c,g as b,h as o,k as E}from"./chunk-3SXTMY75.js";import{a as g,b as C}from"./chunk-A6RDYP6R.js";import{t as x}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var U=async P=>{let n=x.process.cwd(),a=I(P);if(!await D(n)){if(a==="json")await w({error:"noskills is not initialized"},a);else{let s=p({renderer:m.ansi(),sink:d.stdout()}),l=await u(n);s.writeln(c("noskills is not initialized.")," Run: ",i(f("init",l))),await s.close()}return C({exitCode:1})}let e=await y(n),t=await u(n),k={phase:e.phase,spec:e.spec,branch:e.branch,discovery:e.phase==="DISCOVERY"?{answered:e.discovery.answers.length,total:h.length}:void 0,execution:e.phase==="EXECUTING"||e.phase==="BLOCKED"?{iteration:e.execution.iteration,lastProgress:e.execution.lastProgress,debt:e.execution.debt?.items.length??0,verificationPassed:e.execution.lastVerification?.passed??null}:void 0,concerns:t?.concerns??[],tools:t?.tools??[],decisions:e.decisions.length,pendingClear:e.pendingClear};if(a!=="json"){let s=p({renderer:m.ansi(),sink:d.stdout()});s.writeln(i(`${f("status",t)}`)),s.writeln("");let l=e.phase==="DONE"?b(e.phase):e.phase==="BLOCKED"?c(e.phase):e.phase==="EXECUTING"?E(e.phase):o(e.phase);s.writeln(" Phase: ",l),e.spec!==null&&s.writeln(" Spec: ",i(e.spec)),e.branch!==null&&s.writeln(" Branch: ",e.branch),e.phase==="DISCOVERY"&&s.writeln(` Discovery: ${e.discovery.answers.length}/${h.length} questions answered`),e.phase==="EXECUTING"&&(s.writeln(` Iteration: ${e.execution.iteration}`),e.execution.lastProgress!==null&&s.writeln(" Progress: ",r(e.execution.lastProgress)),e.execution.debt!==null&&s.writeln(o(` Debt: ${e.execution.debt.items.length} items`))),t!==null&&(s.writeln(""),t.concerns.length>0&&s.writeln(" Concerns: ",r(t.concerns.join(", "))),t.tools.length>0&&s.writeln(" Tools: ",r(t.tools.join(", ")))),e.decisions.length>0&&(s.writeln(""),s.writeln(` Decisions: ${e.decisions.length}`)),e.pendingClear&&(s.writeln(""),s.writeln(o(" \u26A0 Context clear pending \u2014 run `/clear`"))),await s.close()}else await w(k,"json");return g(void 0)};export{U as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as g}from"./chunk-HFFIXVAB.js";import{a as w}from"./chunk-LNNNLUZT.js";import{j as u}from"./chunk-U3FRSRMK.js";import"./chunk-JYNHFD6B.js";import{f as p,h as d,k as f}from"./chunk-NP2CCJ4C.js";import{c as m,d as r,f as c,g as n}from"./chunk-3SXTMY75.js";import{a as o,b as a}from"./chunk-A6RDYP6R.js";import{t as l}from"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var v=async h=>{let s=p({renderer:f.ansi(),sink:d.stdout()}),t=l.process.cwd(),e=await u(t);if(e===null)return s.writeln(c("noskills is not initialized.")," Run: ",m(w("init",e))),await s.close(),a({exitCode:1});s.writeln(r("Syncing tool files..."));let i=await g(t,e.tools,e);for(let y of i)s.writeln(" ",n("\u2714"),` ${y}`);return i.length===0&&s.writeln(r(" No tools configured.")),s.writeln(""),s.writeln(n("Done.")),await s.close(),o(void 0)};export{v as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as a,d as b,e as c,f as d}from"./chunk-H7XLUEAU.js";import"./chunk-FXBDWBXT.js";import"./chunk-4NEBMHCP.js";import"./chunk-VXTKQXGM.js";import"./chunk-YZ4L35HK.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import"./chunk-NBA6EFWU.js";import"./chunk-LCG4SK6K.js";import"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";export{b as build,a as createBuildContext,c as ensureBuildIsReady,d as watch};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as e,b as s,c as l,d as o,e as r,f as a}from"./chunk-YSJNWJ24.js";import"./chunk-3HC6RWFJ.js";import"./chunk-J2Z7NG2X.js";import"./chunk-NP2CCJ4C.js";import"./chunk-3SXTMY75.js";import"./chunk-JPFGKN4T.js";import"./chunk-JPCJIMM5.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-5BHHLJJN.js";import"./chunk-MG65QJY6.js";import"./chunk-A6RDYP6R.js";import"./chunk-RYOLIM3I.js";import"./chunk-XMVLDQGA.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";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};
|