eser 4.1.22 → 4.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/add-ORJYWG26.js +7 -0
- package/chunks/{anthropic-GBDSASP5.js → anthropic-SL274RBQ.js} +1 -1
- package/chunks/approve-5NJ4JWD3.js +1 -0
- package/chunks/ask-TFJCKH5G.js +2 -0
- package/chunks/block-ADHHHUFZ.js +1 -0
- package/chunks/{browser-6UKLTPJO.js → browser-XCMD2IZQ.js} +1 -1
- package/chunks/{build-VKOO2WEA.js → build-2W7YVR7J.js} +2 -2
- package/chunks/{bun-N3TIWBPP.js → bun-YFFBDKUJ.js} +1 -1
- package/chunks/changelog-gen-LV5VWTZS.js +7 -0
- package/chunks/chunk-2J2PXBOC.js +1 -0
- package/chunks/{chunk-NIX3WX3O.js → chunk-3EFU5R2M.js} +1 -1
- package/chunks/{chunk-7GS5KPVF.js → chunk-3I4JG3PJ.js} +1 -1
- package/chunks/{chunk-7QNRH7OR.js → chunk-3K42AALS.js} +1 -1
- package/chunks/{chunk-TMFPDVYN.js → chunk-3OEM65F2.js} +17 -17
- package/chunks/{chunk-RGUC6KAZ.js → chunk-4H4O3TGK.js} +1 -1
- package/chunks/{chunk-V5HTJPFW.js → chunk-4HAIX3WN.js} +3 -3
- package/chunks/chunk-4VL2RZIN.js +1 -0
- package/chunks/chunk-5AK4OGCO.js +1 -0
- package/chunks/chunk-5MN3MWQN.js +1 -0
- package/chunks/chunk-5RK3346P.js +4 -0
- package/chunks/chunk-6HYGGBEQ.js +1 -0
- package/chunks/{chunk-PLRSDG6G.js → chunk-762C2IM6.js} +1 -1
- package/chunks/{chunk-NZFUFGOC.js → chunk-AAV7D6DF.js} +1 -1
- package/chunks/{chunk-DLVQNMNV.js → chunk-AKJB4CER.js} +1 -1
- package/chunks/{chunk-NSZ4HGDI.js → chunk-ANY26ROY.js} +1 -1
- package/chunks/{chunk-IAWIWTDY.js → chunk-AYSPDG4K.js} +1 -1
- package/chunks/{chunk-DOV5776P.js → chunk-BCHXUKWW.js} +2 -2
- package/chunks/{chunk-3DMTTLUJ.js → chunk-BDTJR6UH.js} +1 -1
- package/chunks/{chunk-BP2MZX2P.js → chunk-C3PZVQ3Z.js} +1 -1
- package/chunks/{chunk-M5TBBQQC.js → chunk-CKD2KOHA.js} +3 -3
- package/chunks/chunk-CPRLAMEG.js +1 -0
- package/chunks/chunk-DWYVBWBP.js +91 -0
- package/chunks/{chunk-PBSR4XR2.js → chunk-ETMOOGY2.js} +1 -1
- package/chunks/chunk-G34MS4XJ.js +1 -0
- package/chunks/chunk-GVSBZ6JV.js +1 -0
- package/chunks/{chunk-C3OSYHJY.js → chunk-H4OFOQQ2.js} +1 -1
- package/chunks/{chunk-XWYLEYLY.js → chunk-HTBLWLKV.js} +1 -1
- package/chunks/chunk-JOXKA7TJ.js +7 -0
- package/chunks/{chunk-JQHMDTPL.js → chunk-KAEAT6A4.js} +1 -1
- package/chunks/chunk-LO424HF3.js +60 -0
- package/chunks/chunk-LOFP256P.js +1 -0
- package/chunks/{chunk-4HNB3UTC.js → chunk-MBC2JM7F.js} +1 -1
- package/chunks/{chunk-2R4MK2KR.js → chunk-MYSTBVWT.js} +1 -1
- package/chunks/chunk-NGZZAQ7G.js +1 -0
- package/chunks/chunk-NLNSK3KE.js +1 -0
- package/chunks/chunk-NT2MQK7O.js +6 -0
- package/chunks/{chunk-SJQWPBMJ.js → chunk-NTPOK5H6.js} +1 -1
- package/chunks/{chunk-DZD6MI45.js → chunk-PO3SXFUE.js} +1 -1
- package/chunks/chunk-Q54LOR4S.js +2 -0
- package/chunks/{chunk-5C7ZQN6X.js → chunk-QIODVVTY.js} +1 -1
- package/chunks/{chunk-ZY72QNKZ.js → chunk-QIYWONJL.js} +1 -1
- package/chunks/chunk-QZY4BKI7.js +1 -0
- package/chunks/chunk-RBB5ITAS.js +2 -0
- package/chunks/chunk-RYLOB2JU.js +1 -0
- package/chunks/{chunk-VFMYWG2I.js → chunk-SBOTNOWZ.js} +1 -1
- package/chunks/{chunk-Z7742D7Q.js → chunk-SG4G3OOO.js} +1 -1
- package/chunks/{chunk-FGDJVQG3.js → chunk-TTYO2XJO.js} +1 -1
- package/chunks/{chunk-EW5NCPPE.js → chunk-TUTRX7VR.js} +3 -3
- package/chunks/{chunk-UJX2S56V.js → chunk-TXL6YOFL.js} +1 -1
- package/chunks/{chunk-4Q3SEHPE.js → chunk-U47ABJCC.js} +1 -1
- package/chunks/chunk-U65FD6J3.js +1 -0
- package/chunks/{chunk-7M3ONEMO.js → chunk-UKYKMDYU.js} +1 -1
- package/chunks/{chunk-DRQWYJMH.js → chunk-UNL4H5EY.js} +1 -1
- package/chunks/{chunk-ATLUGTI7.js → chunk-V2N5L24J.js} +2 -2
- package/chunks/chunk-VVHXAOEH.js +1 -0
- package/chunks/{chunk-HPVL4BVQ.js → chunk-W3REWI3H.js} +2 -2
- package/chunks/{chunk-MQH4XBFN.js → chunk-XMCQMTAA.js} +1 -1
- package/chunks/chunk-YMY2URYM.js +1 -0
- package/chunks/{chunk-XJ3VEVYL.js → chunk-YQU3TEIG.js} +1 -1
- package/chunks/chunk-YWCEHTZB.js +2 -0
- package/chunks/chunk-YXSB6RET.js +1 -0
- package/chunks/chunk-Z4WPWVC7.js +10 -0
- package/chunks/chunk-ZED5RIVL.js +1 -0
- package/chunks/chunk-ZH37DSUQ.js +1 -0
- package/chunks/claude-code-K37KYX7W.js +1 -0
- package/chunks/clone-PAQMCIA3.js +5 -0
- package/chunks/{commitmsg-SQRQONCS.js → commitmsg-ZGOEO5YG.js} +2 -2
- package/chunks/{deno-PZXN5K3J.js → deno-MMJLKXAE.js} +1 -1
- package/chunks/{dev-FLO2KEPZ.js → dev-JHAHGTZP.js} +2 -2
- package/chunks/file-tools-shared-77P7MI54.js +1 -0
- package/chunks/gemini-ARTUPDPZ.js +1 -0
- package/chunks/gh-SXEDNWHD.js +4 -0
- package/chunks/{gh-contributors-5SHGJHAQ.js → gh-contributors-G3QZZAUO.js} +3 -3
- package/chunks/init-3GXDO32O.js +1 -0
- package/chunks/init-IPZHDMAH.js +12 -0
- package/chunks/install-VY2L6NDB.js +2 -0
- package/chunks/kiro-XQDHURLU.js +1 -0
- package/chunks/{list-MN7OUE52.js → list-2RZIQZGH.js} +1 -1
- package/chunks/{list-B7L4FZKG.js → list-DSVIPH45.js} +1 -1
- package/chunks/{list-UZKWSA4S.js → list-V2HZCPDN.js} +1 -1
- package/chunks/load-config-KG4RTCR2.js +1 -0
- package/chunks/{main-WVXCURBF.js → main-FQFNY7SM.js} +2 -2
- package/chunks/manifest-5CYL3HR3.js +1 -0
- package/chunks/mod-5ACKR2OE.js +1 -0
- package/chunks/{mod-PEAFMI6F.js → mod-CUIGNRIK.js} +1 -1
- package/chunks/mod-NSY6WUYH.js +27 -0
- package/chunks/mod-QJMMYECF.js +10 -0
- package/chunks/mod-T76TRJWM.js +1 -0
- package/chunks/{mod-CI56JMO4.js → mod-TLLZ3NAM.js} +2 -2
- package/chunks/mod-TSU5UWXA.js +1 -0
- package/chunks/{mod-JTBNNSZZ.js → mod-U6LEXPVR.js} +1 -1
- package/chunks/{mod-MKMQWZ6G.js → mod-VZPKQ7DG.js} +1 -1
- package/chunks/mod-WYRORC72.js +1 -0
- package/chunks/new-EAETGSIR.js +4 -0
- package/chunks/next-F2BIIAZC.js +3 -0
- package/chunks/{node-VPHAK3FD.js → node-SMAAGOR3.js} +1 -1
- package/chunks/ollama-6JZ2IKR7.js +1 -0
- package/chunks/opencode-CHIAJALZ.js +1 -0
- package/chunks/recipe-applier-R4YJPGQR.js +1 -0
- package/chunks/registry-fetcher-J6X32PGP.js +1 -0
- package/chunks/{release-YJOLKWDT.js → release-6PVE4O6P.js} +2 -2
- package/chunks/release-notes-734LKEJB.js +3 -0
- package/chunks/release-tag-YX727TXO.js +1 -0
- package/chunks/reset-PAPDZIDC.js +1 -0
- package/chunks/rule-4GNOR3GE.js +2 -0
- package/chunks/{run-7JXDS75G.js → run-ES4BLQQX.js} +1 -1
- package/chunks/{scripts-RSK5XDRW.js → scripts-COIXD5AD.js} +1 -1
- package/chunks/{serve-U6IXMGXQ.js → serve-B4V2BCWM.js} +2 -2
- package/chunks/{server-PXE4DB3V.js → server-RYWDAYED.js} +1 -1
- package/chunks/spec-SNAUMQSR.js +1 -0
- package/chunks/status-CY5IKIYS.js +1 -0
- package/chunks/sync-OAPV43JS.js +1 -0
- package/chunks/system-5A6DQLM5.js +1 -0
- package/chunks/system-5LLFPIWV.js +1 -0
- package/chunks/update-O75M4SDJ.js +5 -0
- package/chunks/validate-bom-6G7EYFOP.js +1 -0
- package/chunks/validate-case-conflict-OWHWRTSQ.js +1 -0
- package/chunks/validate-circular-deps-TCYSZKME.js +1 -0
- package/chunks/validate-commit-msg-UPJJ7E4M.js +1 -0
- package/chunks/validate-docs-ZTCE5XLF.js +1 -0
- package/chunks/validate-eof-6RMNMAWI.js +1 -0
- package/chunks/validate-export-names-5ZVQ4PGM.js +1 -0
- package/chunks/validate-filenames-5YB27RN4.js +1 -0
- package/chunks/validate-json-6CLTN4AN.js +1 -0
- package/chunks/validate-large-files-KEMHYWKH.js +1 -0
- package/chunks/validate-licenses-WIVY6G5Z.js +1 -0
- package/chunks/validate-line-endings-KNFYAVBG.js +1 -0
- package/chunks/validate-merge-conflict-PYKGIFY5.js +1 -0
- package/chunks/validate-mod-exports-X5UZPD7J.js +1 -0
- package/chunks/validate-package-configs-SYKEIB53.js +1 -0
- package/chunks/validate-secrets-BWDFWN64.js +1 -0
- package/chunks/validate-shebangs-MP6VTLWO.js +1 -0
- package/chunks/validate-submodules-RQXISWKG.js +1 -0
- package/chunks/validate-symlinks-IPRYMDZD.js +1 -0
- package/chunks/validate-toml-KJZK7QVM.js +1 -0
- package/chunks/validate-trailing-whitespace-RO42VWQG.js +1 -0
- package/chunks/validate-yaml-H7G726ZM.js +1 -0
- package/chunks/versions-KW5UTMNV.js +1 -0
- package/chunks/vertexai-TPGIAJNA.js +1 -0
- package/chunks/workerd-LKKH32SO.js +1 -0
- package/eser.js +1 -1
- package/package.json +1 -1
- package/chunks/add-4LRHVBEC.js +0 -7
- package/chunks/approve-364KOMLB.js +0 -1
- package/chunks/ask-752YJEHO.js +0 -2
- package/chunks/block-JVJQU723.js +0 -1
- package/chunks/changelog-gen-ZCNNOY7G.js +0 -7
- package/chunks/chunk-2TRQKCFC.js +0 -1
- package/chunks/chunk-3TYZYY77.js +0 -1
- package/chunks/chunk-4HMEWMWL.js +0 -1
- package/chunks/chunk-5O7V5P53.js +0 -1
- package/chunks/chunk-5UGVJVIQ.js +0 -1
- package/chunks/chunk-6YRN6OJC.js +0 -2
- package/chunks/chunk-BKVQBSFV.js +0 -6
- package/chunks/chunk-CDLEA2PD.js +0 -1
- package/chunks/chunk-GRTR6TNJ.js +0 -1
- package/chunks/chunk-H2JGLZIR.js +0 -1
- package/chunks/chunk-HGNGFAAY.js +0 -60
- package/chunks/chunk-HVMMNGY5.js +0 -7
- package/chunks/chunk-L2BYHWDC.js +0 -1
- package/chunks/chunk-LRL56YFE.js +0 -1
- package/chunks/chunk-LU3DHXOC.js +0 -2
- package/chunks/chunk-NADES3GN.js +0 -1
- package/chunks/chunk-QIUIPRJP.js +0 -1
- package/chunks/chunk-R6F4EK2B.js +0 -4
- package/chunks/chunk-SCCNNGD4.js +0 -2
- package/chunks/chunk-SCULX2ND.js +0 -1
- package/chunks/chunk-VGFZXQMW.js +0 -1
- package/chunks/chunk-WE7PSSAQ.js +0 -91
- package/chunks/chunk-X4ZCYXOT.js +0 -1
- package/chunks/chunk-XMTGT2NJ.js +0 -10
- package/chunks/chunk-Y6DLCHJN.js +0 -1
- package/chunks/chunk-YUXQ7JNG.js +0 -1
- package/chunks/chunk-ZTLJ775S.js +0 -1
- package/chunks/claude-code-PWTLM554.js +0 -1
- package/chunks/clone-DASXIL35.js +0 -5
- package/chunks/file-tools-shared-ESMPLZVJ.js +0 -1
- package/chunks/gemini-I6F5N7PS.js +0 -1
- package/chunks/gh-Y4BXDXR5.js +0 -4
- package/chunks/init-GXBXQGGV.js +0 -1
- package/chunks/init-UFJL24PW.js +0 -12
- package/chunks/install-Q2KQZM62.js +0 -2
- package/chunks/kiro-NMTIFMT4.js +0 -1
- package/chunks/load-config-TSM3AAQ6.js +0 -1
- package/chunks/manifest-VJQJG2LS.js +0 -1
- package/chunks/mod-3PJAIZ2O.js +0 -1
- package/chunks/mod-7X3BOO5H.js +0 -1
- package/chunks/mod-FKPTF5D5.js +0 -1
- package/chunks/mod-GZ6BSK2P.js +0 -1
- package/chunks/mod-QODEWK3G.js +0 -9
- package/chunks/mod-STKIZYZ3.js +0 -27
- package/chunks/new-W5YBJFGW.js +0 -4
- package/chunks/next-773GX25N.js +0 -3
- package/chunks/ollama-DQ5VM4HI.js +0 -1
- package/chunks/opencode-IZMQZ4ZK.js +0 -1
- package/chunks/recipe-applier-F2REROYS.js +0 -1
- package/chunks/registry-fetcher-ZJ76EHBA.js +0 -1
- package/chunks/release-notes-Z53AFCII.js +0 -3
- package/chunks/release-tag-QRIKYVQB.js +0 -1
- package/chunks/reset-5LQGIOGB.js +0 -1
- package/chunks/rule-K42YEAMO.js +0 -2
- package/chunks/spec-5446CSQC.js +0 -1
- package/chunks/status-HK3P6J6G.js +0 -1
- package/chunks/sync-4FSA5257.js +0 -1
- package/chunks/system-3MH6OCP6.js +0 -1
- package/chunks/system-KWFBSQYQ.js +0 -1
- package/chunks/update-QD5S73WT.js +0 -5
- package/chunks/validate-bom-IVALGNGE.js +0 -1
- package/chunks/validate-case-conflict-LKECKLD5.js +0 -1
- package/chunks/validate-circular-deps-PXFPCBXA.js +0 -1
- package/chunks/validate-commit-msg-77CBKGOF.js +0 -1
- package/chunks/validate-docs-3UGB7LN7.js +0 -1
- package/chunks/validate-eof-ZSIYNHO5.js +0 -1
- package/chunks/validate-export-names-BPSCBX7B.js +0 -1
- package/chunks/validate-filenames-G4XJ2LHN.js +0 -1
- package/chunks/validate-json-YRCFW2O7.js +0 -1
- package/chunks/validate-large-files-MWWSFDOE.js +0 -1
- package/chunks/validate-licenses-Q2YA2MND.js +0 -1
- package/chunks/validate-line-endings-C6NHWHGI.js +0 -1
- package/chunks/validate-merge-conflict-KTBL4FUY.js +0 -1
- package/chunks/validate-mod-exports-LQIIQRIS.js +0 -1
- package/chunks/validate-package-configs-36PYXIWC.js +0 -1
- package/chunks/validate-secrets-UFDJ7ITY.js +0 -1
- package/chunks/validate-shebangs-3UO4MDMZ.js +0 -1
- package/chunks/validate-submodules-YA654D3B.js +0 -1
- package/chunks/validate-symlinks-R2PNE5TG.js +0 -1
- package/chunks/validate-toml-7H2N5AKI.js +0 -1
- package/chunks/validate-trailing-whitespace-HXO7M3ED.js +0 -1
- package/chunks/validate-yaml-ZJJCQVBB.js +0 -1
- package/chunks/versions-CWT5S7G4.js +0 -1
- package/chunks/vertexai-2SMP54AR.js +0 -1
- package/chunks/workerd-NXKZMQPV.js +0 -1
- /package/chunks/{chunk-QXTK62N4.js → chunk-ACQUINWH.js} +0 -0
- /package/chunks/{chunk-VTQ72OK7.js → chunk-FDZP7B5Y.js} +0 -0
- /package/chunks/{chunk-4OIKB2P5.js → chunk-T7K64JD5.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c}from"./chunk-
|
|
1
|
+
import{b as c}from"./chunk-2J2PXBOC.js";import{t as u}from"./chunk-YXSB6RET.js";var n=e=>{let a=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*");return new RegExp(`^${a}$`)};async function*f(e,a,s){let o=u.fs.walk(e,{includeDirs:!1,includeFiles:!0,exts:c,skip:[s]});for await(let r of o){let t=u.path.relative(e,r.path);a!==void 0&&!n(a).test(t)||(yield t)}}var F=new RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),A=new RegExp("[\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");export{f as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as E,b as A,c as I}from"./chunk-
|
|
2
|
-
`).length,p=null,
|
|
3
|
-
`)[0]?.trim();return(!t||t.startsWith("@"))&&e.push("empty-description"),i&&!$.test(s)&&e.push("missing-example"),e},F=async(s={})=>{let{root:n=".",requireExamples:i=!1}=s,e=await E(n),t=[],o=0,c=0;for(let p of e){let y=await I(p.path);for(let
|
|
1
|
+
import{a as E,b as A,c as I}from"./chunk-AKJB4CER.js";import{a as w}from"./chunk-6U2VEZEM.js";import{a as v}from"./chunk-KAEAT6A4.js";import{f as D}from"./chunk-NUSNMQPL.js";import{b as l,e as g,f as k,g as C,h}from"./chunk-PLJNPQFC.js";import{g as a}from"./chunk-DQAEQEXD.js";import{v as b}from"./chunk-YXSB6RET.js";var u=v(),O=/\/\*\*\s*([\s\S]*?)\s*\*\//g,R=/export\s+(const|function|class|type|interface)\s+(\w+)/g,$=/@example/,S=s=>{let n=[],i;for(R.lastIndex=0;(i=R.exec(s))!==null;){let e=i.index,t=i[2];if(t===void 0)continue;let c=s.substring(0,e).split(`
|
|
2
|
+
`).length,p=null,m=[...s.substring(0,e).matchAll(O)];if(m.length>0){let r=m[m.length-1];if(r!==void 0){let d=(r.index??0)+r[0].length,f=s.substring(d,e);/^\s*$/.test(f)&&(p=r[1]??null)}}n.push({jsdoc:p,symbolName:t,line:c})}return n},_=(s,n,i)=>{let e=[];if(s===null)return e.push("missing-description"),e;let t=s.split(`
|
|
3
|
+
`)[0]?.trim();return(!t||t.startsWith("@"))&&e.push("empty-description"),i&&!$.test(s)&&e.push("missing-example"),e},F=async(s={})=>{let{root:n=".",requireExamples:i=!1}=s,e=await E(n),t=[],o=0,c=0;for(let p of e){let y=await I(p.path);for(let m of y){let r=A(m,p.path),d;try{d=await b.runtime.fs.readTextFile(r)}catch{continue}o++;let f=S(d);for(let{jsdoc:T,symbolName:x,line:P}of f){c++;let M=_(T,x,i);for(let N of M)t.push({file:r,symbol:x,issue:N,line:P})}}}return{isValid:t.length===0,issues:t,filesChecked:o,symbolsChecked:c}},J=s=>{switch(s){case"missing-description":return"Missing JSDoc documentation";case"missing-param":return"Missing @param documentation";case"missing-returns":return"Missing @returns documentation";case"missing-example":return"Missing @example";case"empty-description":return"Empty description"}},j=s=>D.fromPromise(()=>F(s)),V=s=>a.ok({root:"."}),q=s=>{if(a.isFail(s))return u.writeln(g("\u2717"),l(" "+String(s.error))),a.fail({exitCode:1});let{value:n}=s;if(u.writeln(h("\u2139"),l(` Checked ${n.filesChecked} files, ${n.symbolsChecked} symbols.`)),!n.isValid){u.writeln(g("\u2717"),l(` Found ${n.issues.length} documentation issues:`));let i=new Map;for(let e of n.issues){let t=i.get(e.file)??[];t.push(e),i.set(e.file,t)}for(let[e,t]of i){u.writeln(C("\u26A0"),l(" "+e));for(let o of t){let c=o.line!==void 0?`:${o.line}`:"";u.writeln(h("\u2139"),l(` ${o.symbol}${c}: ${J(o.issue)}`))}}return a.fail({exitCode:1})}return u.writeln(k("\u2713"),l(" All documentation is valid.")),a.ok(void 0)},B=w.createTrigger({handler:j,adaptInput:V,adaptOutput:q}),Q=async s=>await B({command:"validate-docs",args:[],flags:{}});export{F as a,j as b,B as c,Q as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-SBOTNOWZ.js";import{v as a}from"./chunk-YXSB6RET.js";var s=i({name:"validate-symlinks",description:"Detect broken symlinks",canFix:!1,stacks:[],defaults:{},async checkAll(n){let o=[];for(let t of n)if(t.isSymlink)try{await a.runtime.fs.stat(t.path)}catch{o.push({path:t.path,message:"broken symlink \u2014 target not found"})}return o}}),l=s.run,c=s.validator,m=s.main;export{s as a,l as b,c,m as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as c}from"./chunk-YXSB6RET.js";var h=["registry/v1"],w=["file","folder"],m=["local","github"],R=r=>r==="project"||r==="structure"||r==="utility",$=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.source!="string"||typeof e.target!="string"||e.kind!==void 0&&!w.includes(e.kind)||e.provider!==void 0&&!m.includes(e.provider))},b=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(e.go!==void 0&&!Array.isArray(e.go)||e.jsr!==void 0&&!Array.isArray(e.jsr)||e.npm!==void 0&&!Array.isArray(e.npm))},E=r=>{if(typeof r!="object"||r===null)return!1;let e=r;return!(typeof e.name!="string"||e.name===""||typeof e.description!="string"||e.default!==void 0&&typeof e.default!="string"||e.prompt!==void 0&&typeof e.prompt!="string")},d=r=>{if(typeof r!="object"||r===null)return!1;let e=r;if(typeof e.name!="string"||e.name===""||typeof e.description!="string"||typeof e.language!="string"||!R(e.scale)||!Array.isArray(e.files)||e.files.length===0)return!1;for(let t of e.files)if(!$(t))return!1;if(e.dependencies!==void 0&&!b(e.dependencies)||e.tags!==void 0&&!Array.isArray(e.tags))return!1;if(e.requires!==void 0){if(!Array.isArray(e.requires))return!1;for(let t of e.requires)if(typeof t!="string")return!1}if(e.variables!==void 0){if(!Array.isArray(e.variables))return!1;for(let t of e.variables)if(!E(t))return!1}if(e.postInstall!==void 0){if(!Array.isArray(e.postInstall))return!1;for(let t of e.postInstall)if(typeof t!="string")return!1}return!0},p=r=>{if(typeof r!="object"||r===null)throw new Error("Registry manifest must be a JSON object");let e=r;if(e.$schema!==void 0){let i=String(e.$schema);h.some(s=>i.includes(s))||console.warn(`Warning: Registry uses unknown schema "${i}". This CLI supports v1.`)}if(typeof e.name!="string"||e.name==="")throw new Error("Registry manifest requires a non-empty 'name' field");if(typeof e.description!="string")throw new Error("Registry manifest requires a 'description' field");if(typeof e.author!="string")throw new Error("Registry manifest requires an 'author' field");if(typeof e.registryUrl!="string"||e.registryUrl==="")throw new Error("Registry manifest requires a non-empty 'registryUrl' field");if(!Array.isArray(e.recipes))throw new Error("Registry manifest requires a 'recipes' array");for(let i of e.recipes)if(!d(i)){let o=typeof i=="object"&&i!==null?i.name??"<unknown>":"<invalid>";throw new Error(`Invalid recipe definition: '${o}'`)}let t=e.recipes,n=new Set;for(let i of t){if(n.has(i.name))throw new Error(`Duplicate recipe name '${i.name}' in registry`);n.add(i.name)}return r},u=r=>{if(!d(r))throw new Error("Invalid recipe definition");return r},y=(r,e)=>{let t=r.replace(/\/{1,20}$/,""),n=e.replace(/^\/{1,20}/,"");return`${t}/${n}`};var S=3e4,k="https://raw.githubusercontent.com/eser/stack/main/etc/registry/eser-registry.json",A="etc/registry/eser-registry.json",l=async r=>await globalThis.fetch(r,{signal:AbortSignal.timeout(S)}),P=async()=>{let r=c.process.cwd();for(let e=0;e<10;e++){let t=`${r}/${A}`;try{return await c.fs.stat(t),t}catch{let n=r.replace(/\/[^/]+$/,"");if(n===r)break;r=n}}},U=async(r,e)=>{let t=r??k;if(e?.local===!0&&r===void 0){let s=await P();s!==void 0&&(t=s,e?.verbose===!0&&console.log(`Using local registry: ${s}`))}let n=t.startsWith("http://")||t.startsWith("https://");e?.verbose===!0&&console.log(`Fetching registry from: ${t}`);let i;if(n){let s=await l(t);if(!s.ok)throw new Error(`Could not reach registry at ${t}. HTTP ${s.status}`);i=await s.text()}else try{i=await c.fs.readTextFile(t)}catch{throw new Error(`Could not read registry file at ${t}`)}let o;try{o=JSON.parse(i)}catch{throw new Error(`Registry at ${t} is not valid JSON`)}return p(o)},_=async(r,e)=>{let t=y(r,e),n=await l(t);if(!n.ok)throw new Error(`Could not fetch recipe file at ${t}. HTTP ${n.status}`);return await n.text()},T=r=>{let e=r.match(/^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([^/]+)(?:\/(.*))?$/);if(e!==null)return{owner:e[1],repo:e[2],ref:e[3],basePath:e[4]??""}},L=async(r,e)=>{let t=T(r);if(t===void 0)throw new Error(`Cannot fetch folder: registry URL '${r}' is not a GitHub raw URL`);let n=t.basePath?`${t.basePath}/${e}`.replace(/\/+/g,"/"):e,i=`https://api.github.com/repos/${t.owner}/${t.repo}/contents/${n}?ref=${t.ref}`,o=await l(i);if(!o.ok)throw new Error(`Could not list folder '${n}' from ${t.owner}/${t.repo}. HTTP ${o.status}`);let s=await o.json();if(!Array.isArray(s))throw new Error(`Expected directory listing for '${n}', got a file instead`);let g=s.filter(a=>a.type==="file").map(async a=>{if(a.download_url===null)throw new Error(`File '${a.path}' has no download URL (may be too large)`);let f=await l(a.download_url);if(!f.ok)throw new Error(`Could not fetch file '${a.path}'. HTTP ${f.status}`);return{path:a.path.startsWith(n)?a.path.slice(n.length).replace(/^\//,""):a.path,content:await f.text()}});return await Promise.all(g)},O=async(r,e,t="main",n="recipe.json")=>{let i=`https://raw.githubusercontent.com/${r}/${e}/${t}/${n}`,o=await l(i);if(!o.ok)throw new Error(`Could not fetch recipe from ${r}/${e}@${t}/${n}. HTTP ${o.status}`);let s;try{s=JSON.parse(await o.text())}catch{throw new Error(`Recipe file at ${r}/${e}@${t}/${n} is not valid JSON`)}return u(s)};export{S as a,k as b,A as c,l as d,P as e,U as f,_ as g,T as h,L as i,O as j};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=(t,e)=>({role:t,content:[{kind:"text",text:e}]});var l="data:",i=";base64,",u=t=>t.startsWith(l),d=t=>{if(!t.startsWith(l))return null;let e=t.slice(l.length),o=e.indexOf(i);if(o===-1)return null;let s=e.slice(0,o),g=e.slice(o+i.length),r=atob(g),a=new Uint8Array(r.length);for(let n=0;n<r.length;n++)a[n]=r.charCodeAt(n);return{mimeType:s,data:a}},p={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",m4a:"audio/mp4",webm:"audio/webm",pdf:"application/pdf",json:"application/json",txt:"text/plain"},m=t=>{let e=t.split("?")[0]??t,o=e.lastIndexOf(".");if(o===-1)return null;let s=e.slice(o+1).toLowerCase();return p[s]??null};export{c as a,u as b,d as c,m as d};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{b as k}from"./chunk-2J2PXBOC.js";import{d as F,f as T,h as C,j as d,k as L,n as u}from"./chunk-GLSCZGXA.js";import{a as g}from"./chunk-ZE5T64HQ.js";import{t as D}from"./chunk-YXSB6RET.js";var R={USE_CLIENT:"use client",USE_SERVER:"use server",USE_STRICT:"use strict"},M=[/node_modules/,/\.test\./,/\.spec\./],G=(t,e)=>{let r=t.split(`
|
|
2
|
+
`),i=e.toLowerCase(),o=!1;for(let s=0;s<Math.min(50,r.length);s++){let n=r[s]?.trim()??"";if(o){n.includes("*/")&&(o=!1);continue}if(n===""||n.startsWith("//"))continue;if(n.startsWith("/*")){n.includes("*/")||(o=!0);continue}let f=`"${i}";`,a=`'${i}';`,l=n.toLowerCase();if(l===f||l===a)return!0;if(n.startsWith("import")||n.startsWith("export")||n.startsWith("const")||n.startsWith("let")||n.startsWith("var")||n.startsWith("function")||n.startsWith("class"))break}return!1},W=t=>{let e=new Set,r=t.matchAll(/export\s+(?:async\s+)?function\s+(\w+)/g);for(let n of r)n[1]!==void 0&&e.add(n[1]);let i=t.matchAll(/export\s{1,100}(?:const|let)\s{1,100}(\w+)\s{0,100}=/g);for(let n of i)n[1]!==void 0&&e.add(n[1]);let o=t.matchAll(/export\s{1,100}class\s{1,100}(\w+)/g);for(let n of o)n[1]!==void 0&&e.add(n[1]);/export\s+default\s+/.test(t)&&e.add("default");let s=t.matchAll(/export\s*\{([\w\s,]+)\}/g);for(let n of s)if(n[1]!==void 0){let f=n[1].split(",").map(a=>{let l=a.trim().split(/ {1,10}as {1,10}/);return(l[1]??l[0])?.trim()});for(let a of f)a!==void 0&&a!==""&&e.add(a)}return[...e]},O=async t=>{try{return await D.fs.readTextFile(t)}catch{return null}},Q=async(t,e,r={})=>{let i=r.extensions??k,o=r.skip??M,s=r.projectRoot??t,n=[];for await(let f of D.fs.walk(t,{exts:[...i],skip:[...o]})){if(!f.isFile)continue;let a=await O(f.path);if(a!==null&&G(a,e)){let l=D.path.relative(s,f.path),m=W(a);n.push({filePath:f.path,relativePath:l,directive:e,exports:m})}}return n},Y=(t,e={})=>Q(t,R.USE_CLIENT,e),X=(t,e)=>{let r=`"${e}"`,i=`'${e}'`;return t.includes(r)||t.includes(i)},Z=async(t,e={})=>{let r=e.extensions??k,i=e.skip??M,o=e.projectRoot??t,s=[];for await(let n of D.fs.walk(t,{exts:[...r],skip:[...i]})){if(!n.isFile)continue;let f=await O(n.path);if(f!==null&&X(f,R.USE_SERVER)){let a=D.path.relative(o,n.path),l=W(f);s.push({filePath:n.path,relativePath:a,directive:R.USE_SERVER,exports:l})}}return s};function w(t){return t.isFile?"file":t.isDirectory?"dir":t.isSymlink?"symlink":void 0}async function x(t){try{let e=await Deno.stat(t);_(e);return}catch(e){if(!(e instanceof Deno.errors.NotFound))throw e}try{await Deno.mkdir(t,{recursive:!0})}catch(e){if(!(e instanceof Deno.errors.AlreadyExists))throw e;let r=await Deno.stat(t);_(r)}}function _(t){if(!t.isDirectory)throw new Error(`Failed to ensure directory exists: expected 'dir', got '${w(t)}'`)}function c(t){return t instanceof URL?C(t):t}function P(t,e,r=T){if(t=c(t),e=c(e),u(t)===u(e))return!1;let i=t.split(r),o=e.split(r);return i.every((s,n)=>o[n]===s)}function S(t,e){if(t===null)throw new Error(`${e} is unavailable`)}async function I(t,e,r){let i;try{i=await Deno.lstat(e)}catch(o){if(o instanceof Deno.errors.NotFound)return;throw o}if(r.isFolder&&!i.isDirectory)throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'`);if(!r.overwrite)throw new Deno.errors.AlreadyExists(`'${e}' already exists.`);return i}async function N(t,e,r){if(await I(t,e,r),await Deno.copyFile(t,e),r.preserveTimestamps){let i=await Deno.stat(t);S(i.atime,"statInfo.atime"),S(i.mtime,"statInfo.mtime"),await Deno.utime(e,i.atime,i.mtime)}}async function U(t,e,r){await I(t,e,r);let i=await Deno.readLink(t),o=w(await Deno.lstat(t));if(g?await Deno.symlink(i,e,{type:o==="dir"?"dir":"file"}):await Deno.symlink(i,e),r.preserveTimestamps){let s=await Deno.lstat(t);S(s.atime,"statInfo.atime"),S(s.mtime,"statInfo.mtime"),await Deno.utime(e,s.atime,s.mtime)}}async function j(t,e,r){if(await I(t,e,{...r,isFolder:!0})||await x(e),r.preserveTimestamps){let s=await Deno.stat(t);S(s.atime,"statInfo.atime"),S(s.mtime,"statInfo.mtime"),await Deno.utime(e,s.atime,s.mtime)}t=c(t),e=c(e);let o=[];for await(let s of Deno.readDir(t)){let n=d(t,s.name),f=d(e,F(n));s.isSymlink?o.push(U(n,f,r)):s.isDirectory?o.push(j(n,f,r)):s.isFile&&o.push(N(n,f,r))}await Promise.all(o)}async function wt(t,e,r={}){if(t=u(c(t)),e=u(c(e)),t===e)throw new Error("Source and destination cannot be the same");let i=await Deno.lstat(t);if(i.isDirectory&&P(t,e))throw new Error(`Cannot copy '${t}' to a subdirectory of itself: '${e}'`);i.isSymlink?await U(t,e,r):i.isDirectory?await j(t,e,r):i.isFile&&await N(t,e,r)}async function Ft(t){try{let e=await Array.fromAsync(Deno.readDir(t));await Promise.all(e.map(r=>{if(r&&r.name){let i=d(c(t),r.name);return Deno.remove(i,{recursive:!0})}}))}catch(e){if(!(e instanceof Deno.errors.NotFound))throw e;await Deno.mkdir(t,{recursive:!0})}}async function A(t){t=c(t),t=L(t);let e=F(t),r=await Deno.stat(t);return{path:t,name:e,isFile:r.isFile,isDirectory:r.isDirectory,isSymlink:r.isSymlink}}function E(t,e,r,i){return!(e&&!e.some(o=>t.endsWith(o))||r&&!r.some(o=>!!t.match(o))||i&&i.some(o=>!!t.match(o)))}async function*V(t,e){let{maxDepth:r=1/0,includeFiles:i=!0,includeDirs:o=!0,includeSymlinks:s=!0,followSymlinks:n=!1,canonicalize:f=!0,exts:a=void 0,match:l=void 0,skip:m=void 0}=e??{};if(!(r<0)&&(t=c(t),a&&(a=a.map(y=>y.startsWith(".")?y:`.${y}`)),o&&E(t,a,l,m)&&(yield await A(t)),!(r<1||!E(t,void 0,void 0,m))))for await(let y of Deno.readDir(t)){let p=d(t,y.name),{isSymlink:v,isDirectory:$}=y;if(v){if(!n){s&&E(p,a,l,m)&&(yield{path:p,...y});continue}let h=await Deno.realPath(p);f&&(p=h),{isSymlink:v,isDirectory:$}=await Deno.lstat(h)}if(v||$){let h={maxDepth:r-1,includeFiles:i,includeDirs:o,includeSymlinks:s,followSymlinks:n};a!==void 0&&(h.exts=a),l!==void 0&&(h.match=l),m!==void 0&&(h.skip=m),yield*V(p,h)}else i&&E(p,a,l,m)&&(yield{path:p,...y})}}var ue=globalThis.Deno?.build.os==="windows"?"`":"\\";var B=`
|
|
3
|
+
`,J=`\r
|
|
4
|
+
`,xe=globalThis.Deno?.build.os==="windows"?J:B;export{G as a,W as b,Y as c,Z as d,Ft as e,x as f,V as g,wt as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-SBOTNOWZ.js";import{a as r}from"./chunk-3APERFKY.js";var t=i({name:"validate-toml",description:"Validate TOML syntax",canFix:!1,stacks:[],defaults:{},extensions:["toml"],checkFile(e,o){if(o===void 0)return[];try{return r(o),[]}catch(a){let s=a instanceof Error?a.message:"invalid TOML";return[{path:e.path,message:s}]}}}),p=t.run,d=t.validator,u=t.main;export{t as a,p as b,d as c,u as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as l,c as p,d as u}from"./chunk-
|
|
1
|
+
import{b as l,c as p,d as u}from"./chunk-5MN3MWQN.js";var f=e=>e==="assistant"?"model":e==="tool"?"user":e,g=e=>{switch(e.kind){case"text":return{text:e.text};case"image":{if(e.image.data!==void 0)return{inlineData:{mimeType:e.image.mimeType??"image/png",data:d(e.image.data)}};if(e.image.url!==void 0){if(l(e.image.url)){let t=p(e.image.url);if(t!==null)return{inlineData:{mimeType:t.mimeType,data:d(t.data)}}}return{fileData:{mimeType:e.image.mimeType??u(e.image.url)??"image/png",fileUri:e.image.url}}}return{text:"[unsupported image]"}}case"audio":return e.audio.data!==void 0?{inlineData:{mimeType:e.audio.mimeType??"audio/mpeg",data:d(e.audio.data)}}:e.audio.url!==void 0?{fileData:{mimeType:e.audio.mimeType??u(e.audio.url)??"audio/mpeg",fileUri:e.audio.url}}:{text:"[unsupported audio]"};case"file":return{fileData:{mimeType:e.file.mimeType??"application/octet-stream",fileUri:e.file.uri}};case"tool_call":return{functionCall:{name:e.toolCall.name,args:e.toolCall.arguments}};case"tool_result":return{functionResponse:{name:e.toolResult.toolCallId,response:{content:e.toolResult.content}}}}},T=e=>{let t=null,n=[];for(let a of e){if(a.role==="system"){let o=[];for(let r of a.content)r.kind==="text"&&o.push(r.text);t=o.join(`
|
|
2
2
|
`);continue}let s=a.content.map(g);n.push({role:f(a.role),parts:s})}return{contents:n,systemInstruction:t}},x=e=>e.map(t=>({functionDeclarations:[{name:t.name,description:t.description,parameters:t.parameters}]})),C=(e,t)=>{let n=[],a="end_turn",s=e?.candidates??[];if(s.length>0){let r=s[0],c=r?.content?.parts??[];for(let i of c)i.text!==void 0&&n.push({kind:"text",text:i.text}),i.functionCall!==void 0&&(n.push({kind:"tool_call",toolCall:{id:i.functionCall.name,name:i.functionCall.name,arguments:i.functionCall.args??{}}}),a="tool_use");let m=r?.finishReason;m==="MAX_TOKENS"?a="max_tokens":m==="STOP"&&(a="end_turn")}let o=e?.usageMetadata;return{content:n,stopReason:a,usage:{inputTokens:o?.promptTokenCount??0,outputTokens:o?.candidatesTokenCount??0,totalTokens:o?.totalTokenCount??0},modelId:t,rawResponse:e}},R=e=>e?.status!==void 0?e.status:e?.code!==void 0?e.code:500,d=e=>{let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)};export{f as a,g as b,T as c,x as d,C as e,R as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as u,c as S,d as k,e as g,f as m,g as f}from"./chunk-
|
|
1
|
+
import{a as h,b as u,c as S,d as k,e as g,f as m,g as f}from"./chunk-3K42AALS.js";import{a as c}from"./chunk-OLM5RTFK.js";var y=class{capabilities=["text_generation","streaming"];provider="opencode";modelId;binary;config;constructor(e,r){this.binary=e,this.config=r,this.modelId=r.model}async generateText(e,r){let o=w(this.config,e,"json"),i=f(e.messages,e.system);o.push("-p",i);let s=u(this.binary,o,{signal:r}),l=g(s.stderr),t=await k(s.stdout,this.modelId),p=await s.waitForExit(),a=await l,d=m("opencode",p.code,a);if(d!==null)throw d;return t}async*streamText(e,r){let o=w(this.config,e,"stream-json"),i=f(e.messages,e.system);o.push("-p",i);let s=u(this.binary,o,{signal:r}),l=g(s.stderr);try{for await(let d of S(s.stdout)){let x=v(d);x!==null&&(yield x)}let t=await s.waitForExit(),p=await l,a=m("opencode",t.code,p);a!==null&&(yield{kind:"error",error:a})}catch(t){t instanceof c?yield{kind:"error",error:t}:yield{kind:"error",error:new c(t instanceof Error?t.message:String(t),{provider:"opencode",cause:t instanceof Error?t:void 0})}}}close(){return Promise.resolve()}getRawClient(){return null}},b={provider:"opencode",async createModel(n){let e=await h("opencode",n);return new y(e,n)}},w=(n,e,r)=>{let o=["--output-format",r];o.push("--model",n.model),e.maxTokens!==void 0&&o.push("--max-tokens",String(e.maxTokens));let i=n.properties?.args;return i!==void 0&&o.push(...i),o},v=n=>{if(n===null||typeof n!="object")return null;let e=n;if(e.type==="content_block_delta"||e.type==="assistant"){let r=e.delta?.text??e.message?.content?.[0]?.text;return r!==void 0?{kind:"content_delta",textDelta:r}:null}return e.type==="result"||e.done===!0?{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:e.usage?.input_tokens??0,outputTokens:e.usage?.output_tokens??0,totalTokens:(e.usage?.input_tokens??0)+(e.usage?.output_tokens??0)}}:e.type==="error"?{kind:"error",error:new c(e.error?.message??"Unknown OpenCode error",{provider:"opencode"})}:e.content!==void 0&&typeof e.content=="string"?{kind:"content_delta",textDelta:e.content}:null};export{y as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,f as
|
|
1
|
+
import{d as a,f as g}from"./chunk-V2N5L24J.js";import{b as i}from"./chunk-2J2PXBOC.js";import{t as s}from"./chunk-YXSB6RET.js";var u=async(n=".")=>{let[t,r]=await g(n);return r.map(e=>({name:e.name,version:e.version,path:a(e.config),config:e.config,entrypoints:c(e.config)}))},c=n=>{let t=n.exports?.value;if(t==null)return[];if(typeof t=="string")return[t];if(t!==null&&typeof t=="object"){let r=[];for(let e of Object.values(t))typeof e=="string"&&r.push(e);return r}return[]},d=(n,t)=>s.path.isAbsolute(n)?n:s.path.resolve(t,n),k=async n=>{let t=[];for await(let r of s.fs.walk(n,{exts:i,includeDirs:!1,skip:[/node_modules/,/\.git/]})){let e=s.path.relative(n,r.path),o=s.path.basename(e);o.endsWith("_test.ts")||o.endsWith("_bench.ts")||o.startsWith("_")||e.includes("testdata/")||t.push(`./${e}`)}return t.sort()};export{u as a,d as b,k as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-SBOTNOWZ.js";var e=n({name:"validate-case-conflict",description:"Detect filenames that differ only by case",canFix:!1,stacks:[],defaults:{},checkAll(r){let o=new Map,s=[];for(let t of r){let a=t.path.toLowerCase(),i=o.get(a);i!==void 0?s.push({path:t.path,message:`case conflict with "${i}"`}):o.set(a,t.path)}return s}}),f=e.run,m=e.validator,d=e.main;export{e as a,f as b,m as c,d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C,c as E}from"./chunk-
|
|
1
|
+
import{a as C,c as E}from"./chunk-AKJB4CER.js";import{a as k}from"./chunk-6U2VEZEM.js";import{a as x}from"./chunk-KAEAT6A4.js";import{f as h}from"./chunk-NUSNMQPL.js";import{b as i,e as d,f,g as u,h as g}from"./chunk-PLJNPQFC.js";import{g as n}from"./chunk-DQAEQEXD.js";import{v as c}from"./chunk-YXSB6RET.js";var l=x(),b=t=>{let e=new Set,r=/export\s+\*\s+from\s+["']([^"']+)["']/g,a=/export\s+\{[^}]*\}\s+from\s+["']([^"']+)["']/g,o=/export\s+type\s+\{[^}]*\}\s+from\s+["']([^"']+)["']/g;for(let s of t.matchAll(r))s[1]!==void 0&&e.add(s[1]);for(let s of t.matchAll(a))s[1]!==void 0&&e.add(s[1]);for(let s of t.matchAll(o))s[1]!==void 0&&e.add(s[1]);return e},y=t=>{let e=t.startsWith("./")?t.slice(2):t;return e.endsWith(".ts")&&(e=e.slice(0,-3)),e},O=t=>!(t==="mod.ts"||t.endsWith("_test.ts")||t.endsWith("_bench.ts")||t.startsWith("_")||t.includes("/")),P=async(t={})=>{let{root:e=".",failFast:r=!1}=t,a=await C(e),o=[];for(let s of a){let v=c.runtime.path.join(s.path,"mod.ts"),m;try{m=await c.runtime.fs.readTextFile(v)}catch{continue}let M=b(m),w=new Set([...M].map(p=>y(p))),A=await E(s.path);for(let p of A){let R=c.runtime.path.basename(p);if(!O(R))continue;let F=y(p);if(!w.has(F)&&(o.push({packageName:s.name,file:p}),r))return{isComplete:!1,missingExports:o,packagesChecked:a.length}}}return{isComplete:o.length===0,missingExports:o,packagesChecked:a.length}},W=t=>h.fromPromise(()=>P(t)),_=t=>n.ok({root:"."}),z=t=>{if(n.isFail(t))return l.writeln(d("\u2717"),i(" "+String(t.error))),n.fail({exitCode:1});let{value:e}=t;if(l.writeln(g("\u2139"),i(` Checked ${e.packagesChecked} packages.`)),!e.isComplete){l.writeln(d("\u2717"),i(` Found ${e.missingExports.length} missing exports:`));for(let r of e.missingExports)l.writeln(u("\u26A0"),i(` ${r.packageName}: ${r.file}`));return n.fail({exitCode:1})}return l.writeln(f("\u2713"),i(" All mod.ts exports are complete.")),n.ok(void 0)},S=k.createTrigger({handler:W,adaptInput:_,adaptOutput:z}),N=async t=>await S({command:"validate-mod-exports",args:[],flags:{}});export{P as a,W as b,S as c,N as d};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`)}async bytes(){return(await this.spawn()).stdout}async code(){return(await this.noThrow().spawn()).code}pipe(t){return new h([this,t])}child(){let{
|
|
1
|
+
import{v as p}from"./chunk-YXSB6RET.js";import{d as g}from"./chunk-DXB73IDG.js";var u=class extends Error{constructor(e,n,s,o){super(e);this.command=n;this.code=s;this.stderr=o;this.name="CommandError"}};var m=new TextDecoder,a=class r{#e;#r;#t;constructor(t,e=[],n={}){this.#e=t,this.#r=e,this.#t={throwOnError:!0,stdout:"piped",stderr:"piped",...n}}cwd(t){return new r(this.#e,this.#r,{...this.#t,cwd:t})}env(t,e){let n=this.#t.env??{},s;return typeof t=="string"&&e!==void 0?s={...n,[t]:e}:t!==null&&typeof t=="object"?s={...n,...t}:s=n,new r(this.#e,this.#r,{...this.#t,env:s})}stdin(t){return new r(this.#e,this.#r,{...this.#t,stdin:t})}stdout(t){return new r(this.#e,this.#r,{...this.#t,stdout:t})}stderr(t){return new r(this.#e,this.#r,{...this.#t,stderr:t})}timeout(t){return new r(this.#e,this.#r,{...this.#t,timeout:t})}noThrow(){return new r(this.#e,this.#r,{...this.#t,throwOnError:!1})}quiet(){return new r(this.#e,this.#r,{...this.#t,stdout:"null",stderr:"null"})}printCommand(){let t=[this.#e,...this.#r].join(" ");return console.log(`$ ${t}`),this}async spawn(){let{runtime:t}=p,e=await t.exec.spawn(this.#e,this.#r,{cwd:this.#t.cwd,env:this.#t.env,stdin:this.#t.stdin,stdout:this.#t.stdout,stderr:this.#t.stderr});if(!e.success&&this.#t.throwOnError===!0){let n=m.decode(e.stderr);throw new u(`Command failed with exit code ${e.code}: ${this.#e}`,this.#e,e.code,n)}return e}async text(t="stdout"){let e=await this.spawn();switch(t){case"stdout":return m.decode(e.stdout).trim();case"stderr":return m.decode(e.stderr).trim();case"combined":return(m.decode(e.stdout)+m.decode(e.stderr)).trim()}}async json(){let t=await this.text();return JSON.parse(t)}async lines(){let t=await this.text();return t===""?[]:t.split(`
|
|
2
|
+
`)}async bytes(){return(await this.spawn()).stdout}async code(){return(await this.noThrow().spawn()).code}pipe(t){return new h([this,t])}child(){let{runtime:t}=p;return t.exec.spawnChild(this.#e,this.#r,{cwd:this.#t.cwd,env:this.#t.env,stdin:this.#t.stdin??"piped",stdout:this.#t.stdout??"piped",stderr:this.#t.stderr??"piped"})}},h=class r{#e;constructor(t){this.#e=t}pipe(t){return new r([...this.#e,t])}async text(){let t="";for(let e of this.#e){let n=await e.spawn();t=m.decode(n.stdout)}return t.trim()}async lines(){let t=await this.text();return t===""?[]:t.split(`
|
|
3
3
|
`)}};var l=(r,t)=>{let e=[];for(let s=0;s<r.length;s++){let o=r[s];if(o!==void 0&&e.push(o),s<t.length){let i=t[s];Array.isArray(i)?e.push(i.map(c=>w(String(c))).join(" ")):i!=null&&e.push(w(String(i)))}}let n=e.join("").trim();return C(n)},w=r=>/[\s"'\\$`]/.test(r)?`'${r.replace(/'/g,"'\\''")}'`:r,C=r=>{let t=[],e="",n=!1,s=!1,o=!1;for(let c=0;c<r.length;c++){let d=r[c];if(o){e+=d,o=!1;continue}if(d==="\\"){o=!0;continue}if(d==="'"&&!s){n=!n;continue}if(d==='"'&&!n){s=!s;continue}if(d===" "&&!n&&!s){e.length>0&&(t.push(e),e="");continue}e+=d}e.length>0&&t.push(e);let i=t[0];return i===void 0?["",[]]:[i,t.slice(1)]};var f=(r,...t)=>{let[e,n]=l(r,t);return new a(e,n)};var y={};g(y,{CommandBuilder:()=>a,CommandError:()=>u,exec:()=>f,parseCommand:()=>l});export{a,f as b,y as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k,b as p,c as h,e as m,f as u,g as f}from"./chunk-
|
|
1
|
+
import{a as k,b as p,c as h,e as m,f as u,g as f}from"./chunk-3K42AALS.js";import{a as c}from"./chunk-OLM5RTFK.js";var y=class{capabilities=["text_generation","streaming","tool_calling"];provider="claude-code";modelId;binary;config;constructor(e,n){this.binary=e,this.config=n,this.modelId=n.model}async generateText(e,n){let r=w(this.config,e,"json"),s=f(e.messages,e.system);r.push("-p",s);let o=p(this.binary,r,{signal:n}),l=m(o.stderr),i=o.stdout.getReader(),a=[],d=new TextDecoder,g=await i.read();for(;g.done!==!0;)a.push(d.decode(g.value,{stream:!0})),g=await i.read();i.releaseLock();let T=await o.waitForExit(),_=await l,x=u("claude-code",T.code,_);if(x!==null)throw x;let S=a.join("");return v(S,this.modelId)}async*streamText(e,n){let r=this.config.properties?.streamFormat??"text",s=w(this.config,e,r),o=f(e.messages,e.system);s.push("-p",o);let l=p(this.binary,s,{signal:n}),i=m(l.stderr);try{r==="stream-json"?yield*this.#t(l,i):yield*this.#e(l,i)}catch(a){a instanceof c?yield{kind:"error",error:a}:yield{kind:"error",error:new c(a instanceof Error?a.message:String(a),{provider:"claude-code",cause:a instanceof Error?a:void 0})}}}async*#e(e,n){let r=new TextDecoder,s=e.stdout.getReader(),o=await s.read();for(;o.done!==!0;){let d=r.decode(o.value,{stream:!0});d.length>0&&(yield{kind:"content_delta",textDelta:d}),o=await s.read()}s.releaseLock();let l=await e.waitForExit(),i=await n,a=u("claude-code",l.code,i);a!==null?yield{kind:"error",error:a}:yield{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0}}}async*#t(e,n){for await(let l of h(e.stdout)){let i=E(l);i!==null&&(yield i)}let r=await e.waitForExit(),s=await n,o=u("claude-code",r.code,s);o!==null&&(yield{kind:"error",error:o})}close(){return Promise.resolve()}getRawClient(){return null}},P={provider:"claude-code",async createModel(t){let e=await k("claude",t);return new y(e,t)}},w=(t,e,n)=>{let r=[];n!=="text"&&r.push("--output-format",n),n==="stream-json"&&r.push("--verbose"),r.push("--model",t.model);let s=t.properties?.maxTurns;s!==void 0&&r.push("--max-turns",String(s));let o=t.properties?.allowedTools;if(o!==void 0)for(let i of o)r.push("--allowedTools",i);let l=t.properties?.args;return l!==void 0&&r.push(...l),r},v=(t,e)=>{try{let n=JSON.parse(t);return b(n,e)}catch{return{content:[{kind:"text",text:t.trim()}],stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0},modelId:e}}},b=(t,e)=>{let n=[];if(t.result!==void 0)n.push({kind:"text",text:String(t.result)});else if(t.message?.content!==void 0)for(let r of t.message.content)r.type==="text"?n.push({kind:"text",text:r.text}):r.type==="tool_use"&&n.push({kind:"tool_call",toolCall:{id:r.id??r.name,name:r.name,arguments:r.input??{}}});else typeof t=="string"&&n.push({kind:"text",text:t});return n.length===0&&n.push({kind:"text",text:JSON.stringify(t)}),{content:n,stopReason:t.stop_reason==="tool_use"?"tool_use":"end_turn",usage:{inputTokens:t.usage?.input_tokens??0,outputTokens:t.usage?.output_tokens??0,totalTokens:(t.usage?.input_tokens??0)+(t.usage?.output_tokens??0)},modelId:e,rawResponse:t}},E=t=>{if(t===null||typeof t!="object")return null;let e=t;if(e.type==="assistant"){if(e.message?.content!==void 0){for(let n of e.message.content)if(n.type==="text")return{kind:"content_delta",textDelta:n.text}}return null}return e.type==="content_block_delta"?e.delta?.type==="text_delta"?{kind:"content_delta",textDelta:e.delta.text}:null:e.type==="result"?{kind:"message_done",stopReason:e.subtype==="tool_use"?"tool_use":"end_turn",usage:{inputTokens:e.usage?.input_tokens??0,outputTokens:e.usage?.output_tokens??0,totalTokens:(e.usage?.input_tokens??0)+(e.usage?.output_tokens??0)}}:e.type==="error"?{kind:"error",error:new c(e.error?.message??"Unknown Claude Code error",{provider:"claude-code"})}:e.content!==void 0&&typeof e.content=="string"?{kind:"content_delta",textDelta:e.content}:null};export{y as a,P as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i}from"./chunk-
|
|
1
|
+
import{b as i}from"./chunk-BCHXUKWW.js";var n="#%$".repeat(35),g=s=>{let e=s.split(n).map(t=>{let c=t.slice(0,40);t=t.slice(40);let r=t.indexOf(`
|
|
2
2
|
`);if(r<0)return{hash:c,subject:t.trim(),body:""};let o=t.slice(0,r).trim(),a=t.slice(r+1).trim();return{hash:c,subject:o,body:a}});return e.shift(),e},m=async()=>await i`git describe --tags --abbrev=0`.text();var l=async(s,e)=>{let t=`--pretty=format:${n}%H%B`,c=`${s}..${e}`,r=await i`git --no-pager log ${t} ${c}`.text();return g(r)};var p=async(s,e)=>{await i`git tag -a ${s} -m ${e}`.spawn()},h=async(s,e)=>{await i`git push ${s} ${e}`.spawn()};export{m as a,l as b,p as c,h as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as g}from"./chunk-Y6DZEK4W.js";import{e as l}from"./chunk-OBIEQJDE.js";import{a as n}from"./chunk-A2GDVOQP.js";import{t as s}from"./chunk-
|
|
1
|
+
import{a as g}from"./chunk-Y6DZEK4W.js";import{e as l}from"./chunk-OBIEQJDE.js";import{a as n}from"./chunk-A2GDVOQP.js";import{t as s}from"./chunk-YXSB6RET.js";var a={port:8e3,host:"localhost",hmr:!0,open:!1},f=["@eser/laroux","@eser/laroux-server"],d={minify:!0,sourcemap:!0,target:["es2022"],external:[],serverExternals:f},p={mode:"always",streamMode:"streaming-optimal"},c={webp:80,avif:75,jpeg:85,png:90},C={formats:["webp","original"],widths:[640,768,1024,1280,1920],quality:c,placeholder:"blur"},R={width:1300,height:900},u={enabled:!0,viewport:R,forceInclude:[],forceExclude:[]},m={runtimeBundleEndpoint:"/__runtime_bundle.js",runtimeModuleMapEndpoint:"/__runtime_module_map.json",staticAssetsPrefix:"/dist"},v={isDev:!1,isBuild:!1,isServe:!1,isWatch:!1},S={jsr:{"@eser/logging":`
|
|
2
2
|
// Browser shim for @eser/logging
|
|
3
3
|
const noop = () => {};
|
|
4
4
|
const noopLogger = { debug: noop, info: noop, warn: noop, error: noop };
|
|
@@ -6,8 +6,8 @@ export const logger = {
|
|
|
6
6
|
getLogger: () => noopLogger,
|
|
7
7
|
};
|
|
8
8
|
export default { logger };
|
|
9
|
-
`,"@eser/standards/runtime/browser":`
|
|
10
|
-
// Browser shim for @eser/standards/runtime/browser
|
|
9
|
+
`,"@eser/standards/cross-runtime/browser":`
|
|
10
|
+
// Browser shim for @eser/standards/cross-runtime/browser
|
|
11
11
|
export const isBrowser = () => true;
|
|
12
12
|
`},nodeBuiltins:{"node:process":`
|
|
13
13
|
// Browser shim for node:process - provides minimal process.env for client code
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as g}from"./chunk-2J2PXBOC.js";import{b as p}from"./chunk-BCHXUKWW.js";import{t as o}from"./chunk-YXSB6RET.js";var m=[/node_modules/,/\.git\//,/\/dist\//,/etc\/coverage/,/etc\/temp/,/\.output\//],x=async t=>{try{let n=await p`git ls-files --cached --others --exclude-standard`.cwd(t).noThrow().lines();return n.length>0?n:null}catch{return null}},k=async(t={})=>{let{root:n=".",extensions:e,exclude:s=[]}=t,l=[...m,...s.map(r=>typeof r=="string"?new RegExp(r):r)],u=[],d=await x(n);if(d!==null)for(let r of d){let i=o.path.join(n,r),c=o.path.basename(r);if(e!==void 0&&e.length>0&&!g(r,e)||l.some(a=>a.test(i)||a.test(r)))continue;let y=0,f=!1;try{let a=await o.fs.lstat(i);if(y=a.size,f=a.isSymlink,a.isDirectory&&!(t.includeDirs??!1))continue}catch{continue}u.push({path:i,name:c,size:y,isSymlink:f})}else for await(let r of o.fs.walk(n,{includeDirs:t.includeDirs??!1,includeFiles:!0,exts:e,skip:l})){if(!r.isFile&&!r.isSymlink)continue;let i=0;try{i=(await o.fs.stat(r.path)).size}catch{continue}u.push({path:r.path,name:r.name,size:i,isSymlink:r.isSymlink})}if(t.includeOnly!==void 0&&t.includeOnly.length>0){let r=t.includeOnly;return u.filter(i=>r.some(c=>i.path.endsWith(c)||i.path.includes(c)))}return u},B=async t=>{if(t.textContent!==void 0)return t.textContent;try{let n=await h(t);if(w(n))return;let e=new TextDecoder().decode(n);return t.textContent=e,e}catch{return}},h=async t=>{if(t.rawBytes!==void 0)return t.rawBytes;let n=await o.fs.readFile(t.path);return t.rawBytes=n,n},w=t=>{let n=Math.min(t.length,8192);for(let e=0;e<n;e++)if(t[e]===0)return!0;return!1},M=(t,n)=>{for(let e of n)if(typeof e=="string"){if(t.includes(e)||t.endsWith(e))return!0}else if(e.test(t))return!0;return!1},b=(t,n)=>{let e=new Map;for(let s of n)e.set(s.path,s);for(let s of t){let l=e.get(s.path);l!==void 0&&(s.textContent=l.newContent,s.rawBytes=void 0)}},D=async t=>{let n=0;for(let e of t)e.oldContent!==e.newContent&&(await o.fs.writeTextFile(e.path,e.newContent),n++);return n};export{m as a,k as b,B as c,h as d,w as e,M as f,b as g,D as h};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import{a as u}from"./chunk-HPPFA3XU.js";import{a as p,b as f}from"./chunk-DQAEQEXD.js";import{t as x}from"./chunk-YXSB6RET.js";var h=t=>{let e=[],n=[],r={},s={};for(let i of t)i.type==="boolean"?e.push(i.name):n.push(i.name),i.short!==void 0&&(r[i.short]=i.name),i.default!==void 0&&(s[i.name]=i.default);return{boolean:e,string:n,alias:r,default:s}},T=t=>t!=null&&t.constructor===String,V={boolean:t=>!!t,number:t=>T(t)?Number(t):t,string:t=>String(t),"string[]":t=>Array.isArray(t)?t.map(String):[String(t)]},v=(t,e)=>{if(t!==void 0)return V[e]?.(t)??t},$=(t,e)=>{let n={};for(let r of e){let s=t[r.name];n[r.name]=v(s,r.type)}return n},re=(t,e)=>{let n=h(e),r=u(t,n);return{positional:r._,flags:$(r,e)}},_=(t,e)=>{let n=[];for(let r of e)if(r.required===!0){let s=t[r.name];(s===void 0||s===""||s===!1)&&n.push(`Required flag --${r.name} is missing`)}return n};var O=(t,e)=>t+" ".repeat(Math.max(0,e-t.length)),U=t=>{let e=t.short!==void 0?`-${t.short}, `:"",n=t.type!=="boolean"?` <${t.type}>`:"";return`${e}--${t.name}${n}`},q=(t,e)=>[t.description!==void 0?`${e} - ${t.description}`:e,""],B=(t,e)=>{if(t.usage!==void 0)return["Usage:",` ${t.usage}`,""];let n=t.children.length>0?" <command>":"",r=t.flags.length>0?" [options]":"";return["Usage:",` ${e}${n}${r}`,""]},I=t=>{if(t.length===0)return[];let e=s=>s.aliases!==void 0&&s.aliases.length>0?`${s.name}, ${s.aliases.join(", ")}`:s.name,n=Math.max(...t.map(s=>e(s).length));return["Commands:",...t.map(s=>` ${O(e(s),n+2)}${s.description??""}`),""]},Y=t=>{if(t.length===0)return[];let e=t.map(s=>({flag:U(s),desc:s.description})),n=Math.max(...e.map(s=>s.flag.length));return["Options:",...e.map(({flag:s,desc:i})=>` ${O(s,n+2)}${i}`),""]},Z=t=>t?.length?["Examples:",...t.map(e=>` ${e}`),""]:[],M=(t,e)=>{let n=e.join(" "),r=[...q(t,n),...B(t,n),...I(t.children),...Y(t.flags),...Z(t.examples)];return t.children.length>0&&r.push(`Run '${n} <command> --help' for more information on a command.`),r.join(`
|
|
2
|
+
`)};var w=t=>{let e=[];for(let n of t)e.push(`--${n.name}`),n.short!==void 0&&e.push(`-${n.short}`);return e.join(" ")},k=(t,e)=>{if(t.children===void 0||t.children.length===0)return"";let n=t.children.map(o=>o.name).join(" "),r=t.flags!==void 0?w(t.flags):"",s=[n,r].filter(o=>o.length>0).join(" "),i=` ${e})
|
|
3
|
+
`;i+=` COMPREPLY=( $(compgen -W "${s}" -- "\${cur}") )
|
|
4
|
+
`,i+=` return 0
|
|
5
|
+
`,i+=` ;;
|
|
6
|
+
`;for(let o of t.children)o.children!==void 0&&o.children.length>0&&(i+=k(o,`${e} ${o.name}`));return i},D=(t,e)=>{let n=e.children?.map(o=>o.name).join(" ")??"",r=e.flags!==void 0?w(e.flags):"",s=[n,r].filter(o=>o.length>0).join(" "),i="";if(e.children!==void 0)for(let o of e.children)i+=k(o,o.name);return`# ${t} bash completion
|
|
7
|
+
# Generated by @eser/shell/completions
|
|
8
|
+
|
|
9
|
+
_${t}_completions() {
|
|
10
|
+
local cur prev words cword
|
|
11
|
+
_init_completion || return
|
|
12
|
+
|
|
13
|
+
COMPREPLY=()
|
|
14
|
+
cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
15
|
+
prev="\${COMP_WORDS[COMP_CWORD-1]}"
|
|
16
|
+
|
|
17
|
+
# Build the command path from words
|
|
18
|
+
local cmd_path=""
|
|
19
|
+
local i
|
|
20
|
+
for ((i=1; i<COMP_CWORD; i++)); do
|
|
21
|
+
case "\${COMP_WORDS[i]}" in
|
|
22
|
+
-*)
|
|
23
|
+
# Skip flags
|
|
24
|
+
;;
|
|
25
|
+
*)
|
|
26
|
+
if [[ -n "$cmd_path" ]]; then
|
|
27
|
+
cmd_path="$cmd_path \${COMP_WORDS[i]}"
|
|
28
|
+
else
|
|
29
|
+
cmd_path="\${COMP_WORDS[i]}"
|
|
30
|
+
fi
|
|
31
|
+
;;
|
|
32
|
+
esac
|
|
33
|
+
done
|
|
34
|
+
|
|
35
|
+
case "$cmd_path" in
|
|
36
|
+
${i} "")
|
|
37
|
+
COMPREPLY=( $(compgen -W "${s}" -- "\${cur}") )
|
|
38
|
+
return 0
|
|
39
|
+
;;
|
|
40
|
+
esac
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
complete -F _${t}_completions ${t}
|
|
44
|
+
`};var R=t=>t.replace(/'/g,"'\\''"),K=t=>{let e=[];for(let n of t){let r=R(n.description??`${n.name} flag`);n.takesValue===!0?(e.push(`'--${n.name}=[${r}]'`),n.short!==void 0&&e.push(`'-${n.short}=[${r}]'`)):(e.push(`'--${n.name}[${r}]'`),n.short!==void 0&&e.push(`'-${n.short}[${r}]'`))}return e},Q=t=>t.map(n=>{let r=R(n.description??n.name);return`'${n.name}:${r}'`}).join(`
|
|
45
|
+
`),P=(t,e,n)=>{let s=`${n.length===0?`_${t}`:`_${t}_${n.join("_")}`}() {
|
|
46
|
+
`;if(s+=` local -a commands
|
|
47
|
+
`,s+=` local -a flags
|
|
48
|
+
|
|
49
|
+
`,e.flags!==void 0&&e.flags.length>0){let i=K(e.flags);s+=` flags=(
|
|
50
|
+
${i.join(`
|
|
51
|
+
`)}
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
`}if(e.children!==void 0&&e.children.length>0){s+=` commands=(
|
|
55
|
+
`,s+=` ${Q(e.children)}
|
|
56
|
+
`,s+=` )
|
|
57
|
+
|
|
58
|
+
`,s+=` _arguments -C \\
|
|
59
|
+
`,e.flags!==void 0&&e.flags.length>0&&(s+=' "${flags[@]}" \\\n'),s+=` '1: :->command' \\
|
|
60
|
+
`,s+=` '*::arg:->args'
|
|
61
|
+
|
|
62
|
+
`,s+=` case "$state" in
|
|
63
|
+
`,s+=` command)
|
|
64
|
+
`,s+=` _describe -t commands 'command' commands
|
|
65
|
+
`,s+=` ;;
|
|
66
|
+
`,s+=` args)
|
|
67
|
+
`,s+=' case "${words[1]}" in\n';for(let i of e.children){let o=[...n,i.name],a=`_${t}_${o.join("_")}`;s+=` ${i.name})
|
|
68
|
+
`,s+=` ${a}
|
|
69
|
+
`,s+=` ;;
|
|
70
|
+
`}s+=` esac
|
|
71
|
+
`,s+=` ;;
|
|
72
|
+
`,s+=` esac
|
|
73
|
+
`}else e.flags!==void 0&&e.flags.length>0&&(s+=' _arguments "${flags[@]}"\n');if(s+=`}
|
|
74
|
+
|
|
75
|
+
`,e.children!==void 0)for(let i of e.children)s+=P(t,i,[...n,i.name]);return s},H=(t,e)=>{let n=`#compdef ${t}
|
|
76
|
+
`;return n+=`# ${t} zsh completion
|
|
77
|
+
`,n+=`# Generated by @eser/shell/completions
|
|
78
|
+
|
|
79
|
+
`,n+=P(t,e,[]),n};var S=t=>t.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\$/g,"\\$").replace(/`/g,"\\`").replace(/\(/g,"\\(").replace(/\)/g,"\\)"),ee=(t,e,n)=>{let r="";for(let s of e){let i=S(s.description??`${s.name} flag`),o=`complete -c ${t} ${n}`;o+=` -l ${s.name}`,s.short!==void 0&&(o+=` -s ${s.short}`),s.takesValue===!0&&(o+=" -r"),o+=` -d '${i}'`,r+=o+`
|
|
80
|
+
`}return r},A=(t,e,n)=>{let r="",s;if(n.length===0?s="-n __fish_use_subcommand":s=`-n "${n.map(o=>`__fish_seen_subcommand_from ${o}`).join("; and ")}"`,e.children!==void 0&&e.children.length>0){for(let i of e.children){let o=S(i.description??i.name);if(n.length===0)r+=`complete -c ${t} -f ${s} `,r+=`-a "${i.name}" -d '${o}'
|
|
81
|
+
`;else{let a=`-n "__fish_seen_subcommand_from ${n[n.length-1]}"`;r+=`complete -c ${t} -f ${a} `,r+=`-a "${i.name}" -d '${o}'
|
|
82
|
+
`}}for(let i of e.children)r+=A(t,i,[...n,i.name])}return e.flags!==void 0&&e.flags.length>0&&(r+=ee(t,e.flags,s)),r},j=(t,e)=>{let n=`# ${t} fish completion
|
|
83
|
+
`;return n+=`# Generated by @eser/shell/completions
|
|
84
|
+
|
|
85
|
+
`,n+=`complete -c ${t} -f
|
|
86
|
+
|
|
87
|
+
`,n+=A(t,e,[]),n};var E=(t,e,n)=>{switch(t){case"bash":return D(e,n);case"zsh":return H(e,n);case"fish":return j(e,n)}};var N=class t{#e;#a;#c;#g=[];#l=[];#$=[];#m=[];#o=[];#s=new Map;#r=new Map;#p=new Map;#n;#f;#u;#i={validation:"none"};#h;#t;constructor(e){this.#e=e}get name(){return this.#e}description(e){return this.#a=e,this}usage(e){return this.#c=e,this}example(e){return this.#g.push(e),this}aliases(...e){return this.#l=e,this}version(e){return this.#h=e,this}flag(e){return this.#$.push(e),this}persistentFlag(e){return this.#m.push({...e,persistent:!0}),this}args(e,n){return e==="exact"&&typeof n=="number"?this.#i={validation:e,count:n}:e==="min"&&typeof n=="number"?this.#i={validation:e,min:n}:e==="max"&&typeof n=="number"?this.#i={validation:e,max:n}:e==="range"&&Array.isArray(n)?this.#i={validation:e,min:n[0],max:n[1]}:this.#i={validation:e},this}command(e){return e.#t=this,this.#o.push(e),this}commands(...e){for(let n of e)this.command(n);return this}run(e){return this.#u=e,this}lazyCommand(e,n){return this.#s.set(e,n),this}group(e,n){return this.#r.set(e,n),this}groupAlias(e,n,r){return this.#r.set(e,r),this.#p.set(e,n),this}modules(e){return this.#n=e,this}fallback(e){return this.#f=e,this}static#x=[{name:"help",short:"h",type:"boolean",description:"Show help for this command"}];#d(){let e=[],n=this.#t;for(;n!==void 0;)e.push(...n.#m),n=n.#t;return[...t.#x,...e,...this.#m,...this.#$]}#C(){return this.#t===void 0?this:this.#t.#C()}#y(){return this.#t===void 0?[this.#e]:[...this.#t.#y(),this.#e]}#_(e){return this.#o.find(n=>n.#e===e||n.#l.includes(e))}#O(e){let{validation:n,count:r,min:s,max:i}=this.#i,o=e.length;switch(n){case"no-args":if(o>0)return"This command takes no arguments";break;case"exact":if(o!==r)return`Expected exactly ${r} argument(s), got ${o}`;break;case"min":if(o<(s??0))return`Expected at least ${s} argument(s), got ${o}`;break;case"max":if(o>(i??1/0))return`Expected at most ${i} argument(s), got ${o}`;break;case"range":if(o<(s??0)||o>(i??1/0))return`Expected ${s}-${i} arguments, got ${o}`;break}}async parse(e){let n=e??x.process.args;return await this.#F(n,[])}async#F(e,n){let r=this.#d(),s=h(r),i=this.#o.length>0||this.#s.size>0||this.#r.size>0||this.#n!==void 0,o=u(e,{...s,stopEarly:i}),a=$(o,r),d=o._;if(this.#h!==void 0&&a.version===!0)return console.log(`${this.#e} ${this.#h}`),p(void 0);if(a.help===!0)return console.log(this.help()),p(void 0);let c=d[0];if(c!==void 0&&i){let F=this.#_(c);if(F!==void 0)return await F.#F(d.slice(1),[...n,this.#e]);if(this.#s.has(c)){let l=await this.#s.get(c).load();return l instanceof t?(l.#t=this,await l.parse(d.slice(1))):"parse"in l&&typeof l.parse=="function"?await l.parse(d.slice(1)):(console.log(l.help()),p(void 0))}if(this.#n!==void 0){let g=this.#n.aliases?.[c]??c,l=this.#n.modules[g];if(l!==void 0)return await(await l.load()).main(d.slice(1))}for(let[g,l]of this.#r)if(c===g){let m=d[1];if(m===void 0||m==="--help"||m==="-h")return this.#b(g,l),p(void 0);let G=l.aliases?.[m]??m,b=l.modules[G];return b===void 0?(console.error(`Unknown module: ${g} ${m}
|
|
88
|
+
`),this.#b(g,l),f({exitCode:1})):await(await b.load()).main(d.slice(2))}if(this.#f!==void 0)return await this.#f(c,d.slice(1))}if(this.#u===void 0)return console.log(this.help()),p(void 0);let C=_(a,r);if(C.length>0)return f({message:C.join(`
|
|
89
|
+
`),exitCode:1});let y=this.#O(d);if(y!==void 0)return f({message:y,exitCode:1});let L=[...n,this.#e],z={args:d,flags:a,root:this.#C(),commandPath:L};return await this.#u(z)}#b(e,n){console.log(`${this.#e} ${e} - ${n.description}
|
|
90
|
+
`),console.log(`Usage: ${this.#e} ${e} <module> [options]
|
|
91
|
+
`);let r=new Map;for(let[s,i]of Object.entries(n.modules)){let o=i.category??"Modules",a=r.get(o)??[];a.push([s,i]),r.set(o,a)}for(let[s,i]of r){console.log(`${s}:`);for(let[o,a]of i)console.log(` ${o.padEnd(24)} ${a.description}`);console.log()}if(n.aliases!==void 0&&Object.keys(n.aliases).length>0){console.log("Aliases:");for(let[s,i]of Object.entries(n.aliases))console.log(` ${s.padEnd(24)} \u2192 ${i}`)}}help(){let e=[...this.#o.map(r=>({name:r.#e,aliases:r.#l.length>0?r.#l:void 0,description:r.#a,usage:r.#c,examples:r.#g,flags:r.#d(),children:[]})),...[...this.#s.entries()].map(([r,s])=>({name:r,description:s.description,flags:[],children:[]})),...this.#n!==void 0?Object.entries(this.#n.modules).map(([r,s])=>({name:r,description:s.description,flags:s.flags??[],children:[]})):[],...[...this.#r.entries()].filter(([r])=>!this.#p.has(r)).map(([r,s])=>{let i=[...this.#p.entries()].filter(([o,a])=>a===r).map(([o])=>o);return{name:r,aliases:i.length>0?i:void 0,description:s.description,flags:[],children:[]}})],n={name:this.#e,description:this.#a,usage:this.#c,examples:this.#g,flags:this.#d(),children:e};return M(n,this.#y())}#M(){let e=r=>r.map(s=>({name:s.name,short:s.short,description:s.description,takesValue:s.type!=="boolean"})),n=r=>{let s=r.#o.map(n);for(let[i,o]of r.#s)s.push({name:i,description:o.description,children:[],flags:[]});if(r.#n!==void 0)for(let[i,o]of Object.entries(r.#n.modules))s.push({name:i,description:o.description,children:[],flags:o.flags!==void 0?e(o.flags):[]});for(let[i,o]of r.#r){let a=Object.entries(o.modules).map(([d,c])=>({name:d,description:c.description,children:[],flags:c.flags!==void 0?e(c.flags):[]}));s.push({name:i,description:o.description,children:a,flags:[]})}return{name:r.#e,description:r.#a,children:s,flags:e(r.#d())}};return n(this)}completions(e){let n=this.#M();return E(e,this.#e,n)}};export{re as a,N as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Ja}from"./chunk-OBIEQJDE.js";import{t as Hv}from"./chunk-GRTR6TNJ.js";import{b as Hb}from"./chunk-QXTK62N4.js";import{a as Ko,c as Ra,e as Dv}from"./chunk-DXB73IDG.js";var Qb=Ra(Pe=>{"use strict";var zv=Symbol.for("react.transitional.element"),ip=Symbol.for("react.portal"),ap=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),cp=Symbol.for("react.profiler"),up=Symbol.for("react.consumer"),sp=Symbol.for("react.context"),fp=Symbol.for("react.forward_ref"),hp=Symbol.for("react.suspense"),dp=Symbol.for("react.memo"),Wb=Symbol.for("react.lazy"),gp=Symbol.for("react.activity"),Nb=Symbol.iterator;function vp(e){return e===null||typeof e!="object"?null:(e=Nb&&e[Nb]||e["@@iterator"],typeof e=="function"?e:null)}var Yb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gb=Object.assign,Xb={};function us(e,n,t){this.props=e,this.context=n,this.refs=Xb,this.updater=t||Yb}us.prototype.isReactComponent={};us.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zb(){}Zb.prototype=us.prototype;function Uv(e,n,t){this.props=e,this.context=n,this.refs=Xb,this.updater=t||Yb}var Wv=Uv.prototype=new Zb;Wv.constructor=Uv;Gb(Wv,us.prototype);Wv.isPureReactComponent=!0;var Bb=Array.isArray;function Bv(){}var rt={H:null,A:null,T:null,S:null},Jb=Object.prototype.hasOwnProperty;function Yv(e,n,t){var a=t.ref;return{$$typeof:zv,type:e,key:n,ref:a!==void 0?a:null,props:t}}function yp(e,n){return Yv(e.type,n,e.props)}function Gv(e){return typeof e=="object"&&e!==null&&e.$$typeof===zv}function bp(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var zb=/\/+/g;function Nv(e,n){return typeof e=="object"&&e!==null&&e.key!=null?bp(""+e.key):n.toString(36)}function wp(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Bv,Bv):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function cs(e,n,t,a,c){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case zv:case ip:d=!0;break;case Wb:return d=e._init,cs(d(e._payload),n,t,a,c)}}if(d)return c=c(e),d=a===""?"."+Nv(e,0):a,Bb(c)?(t="",d!=null&&(t=d.replace(zb,"$&/")+"/"),cs(c,n,t,"",function(w){return w})):c!=null&&(Gv(c)&&(c=yp(c,t+(c.key==null||e&&e.key===c.key?"":(""+c.key).replace(zb,"$&/")+"/")+d)),n.push(c)),1;d=0;var T=a===""?".":a+":";if(Bb(e))for(var b=0;b<e.length;b++)a=e[b],f=T+Nv(a,b),d+=cs(a,n,t,f,c);else if(b=vp(e),typeof b=="function")for(e=b.call(e),b=0;!(a=e.next()).done;)a=a.value,f=T+Nv(a,b++),d+=cs(a,n,t,f,c);else if(f==="object"){if(typeof e.then=="function")return cs(wp(e),n,t,a,c);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return d}function kd(e,n,t){if(e==null)return e;var a=[],c=0;return cs(e,a,"","",function(f){return n.call(t,f,c++)}),a}function Tp(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ub=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pp={map:kd,forEach:function(e,n,t){kd(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return kd(e,function(){n++}),n},toArray:function(e){return kd(e,function(n){return n})||[]},only:function(e){if(!Gv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Pe.Activity=gp;Pe.Children=pp;Pe.Component=us;Pe.Fragment=ap;Pe.Profiler=cp;Pe.PureComponent=Uv;Pe.StrictMode=op;Pe.Suspense=hp;Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt;Pe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return rt.H.useMemoCache(e)}};Pe.cache=function(e){return function(){return e.apply(null,arguments)}};Pe.cacheSignal=function(){return null};Pe.cloneElement=function(e,n,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=Gb({},e.props),c=e.key;if(n!=null)for(f in n.key!==void 0&&(c=""+n.key),n)!Jb.call(n,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&n.ref===void 0||(a[f]=n[f]);var f=arguments.length-2;if(f===1)a.children=t;else if(1<f){for(var d=Array(f),T=0;T<f;T++)d[T]=arguments[T+2];a.children=d}return Yv(e.type,c,a)};Pe.createContext=function(e){return e={$$typeof:sp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:up,_context:e},e};Pe.createElement=function(e,n,t){var a,c={},f=null;if(n!=null)for(a in n.key!==void 0&&(f=""+n.key),n)Jb.call(n,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(c[a]=n[a]);var d=arguments.length-2;if(d===1)c.children=t;else if(1<d){for(var T=Array(d),b=0;b<d;b++)T[b]=arguments[b+2];c.children=T}if(e&&e.defaultProps)for(a in d=e.defaultProps,d)c[a]===void 0&&(c[a]=d[a]);return Yv(e,f,c)};Pe.createRef=function(){return{current:null}};Pe.forwardRef=function(e){return{$$typeof:fp,render:e}};Pe.isValidElement=Gv;Pe.lazy=function(e){return{$$typeof:Wb,_payload:{_status:-1,_result:e},_init:Tp}};Pe.memo=function(e,n){return{$$typeof:dp,type:e,compare:n===void 0?null:n}};Pe.startTransition=function(e){var n=rt.T,t={};rt.T=t;try{var a=e(),c=rt.S;c!==null&&c(t,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Bv,Ub)}catch(f){Ub(f)}finally{n!==null&&t.types!==null&&(n.types=t.types),rt.T=n}};Pe.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()};Pe.use=function(e){return rt.H.use(e)};Pe.useActionState=function(e,n,t){return rt.H.useActionState(e,n,t)};Pe.useCallback=function(e,n){return rt.H.useCallback(e,n)};Pe.useContext=function(e){return rt.H.useContext(e)};Pe.useDebugValue=function(){};Pe.useDeferredValue=function(e,n){return rt.H.useDeferredValue(e,n)};Pe.useEffect=function(e,n){return rt.H.useEffect(e,n)};Pe.useEffectEvent=function(e){return rt.H.useEffectEvent(e)};Pe.useId=function(){return rt.H.useId()};Pe.useImperativeHandle=function(e,n,t){return rt.H.useImperativeHandle(e,n,t)};Pe.useInsertionEffect=function(e,n){return rt.H.useInsertionEffect(e,n)};Pe.useLayoutEffect=function(e,n){return rt.H.useLayoutEffect(e,n)};Pe.useMemo=function(e,n){return rt.H.useMemo(e,n)};Pe.useOptimistic=function(e,n){return rt.H.useOptimistic(e,n)};Pe.useReducer=function(e,n,t){return rt.H.useReducer(e,n,t)};Pe.useRef=function(e){return rt.H.useRef(e)};Pe.useState=function(e){return rt.H.useState(e)};Pe.useSyncExternalStore=function(e,n,t){return rt.H.useSyncExternalStore(e,n,t)};Pe.useTransition=function(){return rt.H.useTransition()};Pe.version="19.2.4"});var Vb=Ra((ke,Sd)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(C,O){Object.defineProperty(a.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function n(C){return C===null||typeof C!="object"?null:(C=Zl&&C[Zl]||C["@@iterator"],typeof C=="function"?C:null)}function t(C,O){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var Z=C+"."+O;ll[Z]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,C),ll[Z]=!0)}function a(C,O,Z){this.props=C,this.context=O,this.refs=rn,this.updater=Z||me}function c(){}function f(C,O,Z){this.props=C,this.context=O,this.refs=rn,this.updater=Z||me}function d(){}function T(C){return""+C}function b(C){try{T(C);var O=!1}catch{O=!0}if(O){O=console;var Z=O.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Z.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),T(C)}}function w(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===_n?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case lt:return"Fragment";case bn:return"Profiler";case Mn:return"StrictMode";case mt:return"Suspense";case _e:return"SuspenseList";case br:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Me:return"Portal";case Ge:return C.displayName||"Context";case ae:return(C._context.displayName||"Context")+".Consumer";case Bt:var O=C.render;return C=C.displayName,C||(C=O.displayName||O.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case Ee:return O=C.displayName||null,O!==null?O:w(C.type)||"Memo";case it:O=C._payload,C=C._init;try{return w(C(O))}catch{}}return null}function S(C){if(C===lt)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===it)return"<...>";try{var O=w(C);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function E(){var C=we.A;return C===null?null:C.getOwner()}function x(){return Error("react-stack-top-frame")}function k(C){if(Ln.call(C,"key")){var O=Object.getOwnPropertyDescriptor(C,"key").get;if(O&&O.isReactWarning)return!1}return C.key!==void 0}function Q(C,O){function Z(){Vn||(Vn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}Z.isReactWarning=!0,Object.defineProperty(C,"key",{get:Z,configurable:!0})}function X(){var C=w(this.type);return Kn[C]||(Kn[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function V(C,O,Z,$,re,ye){var be=Z.ref;return C={$$typeof:Fe,type:C,key:O,props:Z,_owner:$},(be!==void 0?be:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:X}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function ee(C,O){return O=V(C.type,O,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(O._store.validated=C._store.validated),O}function j(C){ue(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===it&&(C._payload.status==="fulfilled"?ue(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function ue(C){return typeof C=="object"&&C!==null&&C.$$typeof===Fe}function Re(C){var O={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(Z){return O[Z]})}function se(C,O){return typeof C=="object"&&C!==null&&C.key!=null?(b(C.key),Re(""+C.key)):O.toString(36)}function U(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(d,d):(C.status="pending",C.then(function(O){C.status==="pending"&&(C.status="fulfilled",C.value=O)},function(O){C.status==="pending"&&(C.status="rejected",C.reason=O)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function Ye(C,O,Z,$,re){var ye=typeof C;(ye==="undefined"||ye==="boolean")&&(C=null);var be=!1;if(C===null)be=!0;else switch(ye){case"bigint":case"string":case"number":be=!0;break;case"object":switch(C.$$typeof){case Fe:case Me:be=!0;break;case it:return be=C._init,Ye(be(C._payload),O,Z,$,re)}}if(be){be=C,re=re(be);var Ke=$===""?"."+se(be,0):$;return nn(re)?(Z="",Ke!=null&&(Z=Ke.replace(qn,"$&/")+"/"),Ye(re,O,Z,"",function(Ne){return Ne})):re!=null&&(ue(re)&&(re.key!=null&&(be&&be.key===re.key||b(re.key)),Z=ee(re,Z+(re.key==null||be&&be.key===re.key?"":(""+re.key).replace(qn,"$&/")+"/")+Ke),$!==""&&be!=null&&ue(be)&&be.key==null&&be._store&&!be._store.validated&&(Z._store.validated=2),re=Z),O.push(re)),1}if(be=0,Ke=$===""?".":$+":",nn(C))for(var xe=0;xe<C.length;xe++)$=C[xe],ye=Ke+se($,xe),be+=Ye($,O,Z,ye,re);else if(xe=n(C),typeof xe=="function")for(xe===C.entries&&(cn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cn=!0),C=xe.call(C),xe=0;!($=C.next()).done;)$=$.value,ye=Ke+se($,xe++),be+=Ye($,O,Z,ye,re);else if(ye==="object"){if(typeof C.then=="function")return Ye(U(C),O,Z,$,re);throw O=String(C),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return be}function en(C,O,Z){if(C==null)return C;var $=[],re=0;return Ye(C,$,"","",function(ye){return O.call(Z,ye,re++)}),$}function ve(C){if(C._status===-1){var O=C._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=C._result;var Z=O();if(Z.then(function(re){if(C._status===0||C._status===-1){C._status=1,C._result=re;var ye=C._ioInfo;ye!=null&&(ye.end=performance.now()),Z.status===void 0&&(Z.status="fulfilled",Z.value=re)}},function(re){if(C._status===0||C._status===-1){C._status=2,C._result=re;var ye=C._ioInfo;ye!=null&&(ye.end=performance.now()),Z.status===void 0&&(Z.status="rejected",Z.reason=re)}}),O=C._ioInfo,O!=null){O.value=Z;var $=Z.displayName;typeof $=="string"&&(O.name=$)}C._status===-1&&(C._status=0,C._result=Z)}if(C._status===1)return O=C._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
import{e as Ja}from"./chunk-OBIEQJDE.js";import{t as Hv}from"./chunk-YXSB6RET.js";import{b as Hb}from"./chunk-ACQUINWH.js";import{a as Ko,c as Ra,e as Dv}from"./chunk-DXB73IDG.js";var Qb=Ra(Pe=>{"use strict";var zv=Symbol.for("react.transitional.element"),ip=Symbol.for("react.portal"),ap=Symbol.for("react.fragment"),op=Symbol.for("react.strict_mode"),cp=Symbol.for("react.profiler"),up=Symbol.for("react.consumer"),sp=Symbol.for("react.context"),fp=Symbol.for("react.forward_ref"),hp=Symbol.for("react.suspense"),dp=Symbol.for("react.memo"),Wb=Symbol.for("react.lazy"),gp=Symbol.for("react.activity"),Nb=Symbol.iterator;function vp(e){return e===null||typeof e!="object"?null:(e=Nb&&e[Nb]||e["@@iterator"],typeof e=="function"?e:null)}var Yb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gb=Object.assign,Xb={};function us(e,n,t){this.props=e,this.context=n,this.refs=Xb,this.updater=t||Yb}us.prototype.isReactComponent={};us.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zb(){}Zb.prototype=us.prototype;function Uv(e,n,t){this.props=e,this.context=n,this.refs=Xb,this.updater=t||Yb}var Wv=Uv.prototype=new Zb;Wv.constructor=Uv;Gb(Wv,us.prototype);Wv.isPureReactComponent=!0;var Bb=Array.isArray;function Bv(){}var rt={H:null,A:null,T:null,S:null},Jb=Object.prototype.hasOwnProperty;function Yv(e,n,t){var a=t.ref;return{$$typeof:zv,type:e,key:n,ref:a!==void 0?a:null,props:t}}function yp(e,n){return Yv(e.type,n,e.props)}function Gv(e){return typeof e=="object"&&e!==null&&e.$$typeof===zv}function bp(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var zb=/\/+/g;function Nv(e,n){return typeof e=="object"&&e!==null&&e.key!=null?bp(""+e.key):n.toString(36)}function wp(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Bv,Bv):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function cs(e,n,t,a,c){var f=typeof e;(f==="undefined"||f==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case zv:case ip:d=!0;break;case Wb:return d=e._init,cs(d(e._payload),n,t,a,c)}}if(d)return c=c(e),d=a===""?"."+Nv(e,0):a,Bb(c)?(t="",d!=null&&(t=d.replace(zb,"$&/")+"/"),cs(c,n,t,"",function(w){return w})):c!=null&&(Gv(c)&&(c=yp(c,t+(c.key==null||e&&e.key===c.key?"":(""+c.key).replace(zb,"$&/")+"/")+d)),n.push(c)),1;d=0;var T=a===""?".":a+":";if(Bb(e))for(var b=0;b<e.length;b++)a=e[b],f=T+Nv(a,b),d+=cs(a,n,t,f,c);else if(b=vp(e),typeof b=="function")for(e=b.call(e),b=0;!(a=e.next()).done;)a=a.value,f=T+Nv(a,b++),d+=cs(a,n,t,f,c);else if(f==="object"){if(typeof e.then=="function")return cs(wp(e),n,t,a,c);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return d}function kd(e,n,t){if(e==null)return e;var a=[],c=0;return cs(e,a,"","",function(f){return n.call(t,f,c++)}),a}function Tp(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ub=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pp={map:kd,forEach:function(e,n,t){kd(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return kd(e,function(){n++}),n},toArray:function(e){return kd(e,function(n){return n})||[]},only:function(e){if(!Gv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Pe.Activity=gp;Pe.Children=pp;Pe.Component=us;Pe.Fragment=ap;Pe.Profiler=cp;Pe.PureComponent=Uv;Pe.StrictMode=op;Pe.Suspense=hp;Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt;Pe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return rt.H.useMemoCache(e)}};Pe.cache=function(e){return function(){return e.apply(null,arguments)}};Pe.cacheSignal=function(){return null};Pe.cloneElement=function(e,n,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=Gb({},e.props),c=e.key;if(n!=null)for(f in n.key!==void 0&&(c=""+n.key),n)!Jb.call(n,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&n.ref===void 0||(a[f]=n[f]);var f=arguments.length-2;if(f===1)a.children=t;else if(1<f){for(var d=Array(f),T=0;T<f;T++)d[T]=arguments[T+2];a.children=d}return Yv(e.type,c,a)};Pe.createContext=function(e){return e={$$typeof:sp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:up,_context:e},e};Pe.createElement=function(e,n,t){var a,c={},f=null;if(n!=null)for(a in n.key!==void 0&&(f=""+n.key),n)Jb.call(n,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(c[a]=n[a]);var d=arguments.length-2;if(d===1)c.children=t;else if(1<d){for(var T=Array(d),b=0;b<d;b++)T[b]=arguments[b+2];c.children=T}if(e&&e.defaultProps)for(a in d=e.defaultProps,d)c[a]===void 0&&(c[a]=d[a]);return Yv(e,f,c)};Pe.createRef=function(){return{current:null}};Pe.forwardRef=function(e){return{$$typeof:fp,render:e}};Pe.isValidElement=Gv;Pe.lazy=function(e){return{$$typeof:Wb,_payload:{_status:-1,_result:e},_init:Tp}};Pe.memo=function(e,n){return{$$typeof:dp,type:e,compare:n===void 0?null:n}};Pe.startTransition=function(e){var n=rt.T,t={};rt.T=t;try{var a=e(),c=rt.S;c!==null&&c(t,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Bv,Ub)}catch(f){Ub(f)}finally{n!==null&&t.types!==null&&(n.types=t.types),rt.T=n}};Pe.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()};Pe.use=function(e){return rt.H.use(e)};Pe.useActionState=function(e,n,t){return rt.H.useActionState(e,n,t)};Pe.useCallback=function(e,n){return rt.H.useCallback(e,n)};Pe.useContext=function(e){return rt.H.useContext(e)};Pe.useDebugValue=function(){};Pe.useDeferredValue=function(e,n){return rt.H.useDeferredValue(e,n)};Pe.useEffect=function(e,n){return rt.H.useEffect(e,n)};Pe.useEffectEvent=function(e){return rt.H.useEffectEvent(e)};Pe.useId=function(){return rt.H.useId()};Pe.useImperativeHandle=function(e,n,t){return rt.H.useImperativeHandle(e,n,t)};Pe.useInsertionEffect=function(e,n){return rt.H.useInsertionEffect(e,n)};Pe.useLayoutEffect=function(e,n){return rt.H.useLayoutEffect(e,n)};Pe.useMemo=function(e,n){return rt.H.useMemo(e,n)};Pe.useOptimistic=function(e,n){return rt.H.useOptimistic(e,n)};Pe.useReducer=function(e,n,t){return rt.H.useReducer(e,n,t)};Pe.useRef=function(e){return rt.H.useRef(e)};Pe.useState=function(e){return rt.H.useState(e)};Pe.useSyncExternalStore=function(e,n,t){return rt.H.useSyncExternalStore(e,n,t)};Pe.useTransition=function(){return rt.H.useTransition()};Pe.version="19.2.4"});var Vb=Ra((ke,Sd)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){function e(C,O){Object.defineProperty(a.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function n(C){return C===null||typeof C!="object"?null:(C=Zl&&C[Zl]||C["@@iterator"],typeof C=="function"?C:null)}function t(C,O){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var Z=C+"."+O;ll[Z]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,C),ll[Z]=!0)}function a(C,O,Z){this.props=C,this.context=O,this.refs=rn,this.updater=Z||me}function c(){}function f(C,O,Z){this.props=C,this.context=O,this.refs=rn,this.updater=Z||me}function d(){}function T(C){return""+C}function b(C){try{T(C);var O=!1}catch{O=!0}if(O){O=console;var Z=O.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return Z.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),T(C)}}function w(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===_n?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case lt:return"Fragment";case bn:return"Profiler";case Mn:return"StrictMode";case mt:return"Suspense";case _e:return"SuspenseList";case br:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Me:return"Portal";case Ge:return C.displayName||"Context";case ae:return(C._context.displayName||"Context")+".Consumer";case Bt:var O=C.render;return C=C.displayName,C||(C=O.displayName||O.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case Ee:return O=C.displayName||null,O!==null?O:w(C.type)||"Memo";case it:O=C._payload,C=C._init;try{return w(C(O))}catch{}}return null}function S(C){if(C===lt)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===it)return"<...>";try{var O=w(C);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function E(){var C=we.A;return C===null?null:C.getOwner()}function x(){return Error("react-stack-top-frame")}function k(C){if(Ln.call(C,"key")){var O=Object.getOwnPropertyDescriptor(C,"key").get;if(O&&O.isReactWarning)return!1}return C.key!==void 0}function Q(C,O){function Z(){Vn||(Vn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}Z.isReactWarning=!0,Object.defineProperty(C,"key",{get:Z,configurable:!0})}function X(){var C=w(this.type);return Kn[C]||(Kn[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function V(C,O,Z,$,re,ye){var be=Z.ref;return C={$$typeof:Fe,type:C,key:O,props:Z,_owner:$},(be!==void 0?be:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:X}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function ee(C,O){return O=V(C.type,O,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(O._store.validated=C._store.validated),O}function j(C){ue(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===it&&(C._payload.status==="fulfilled"?ue(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function ue(C){return typeof C=="object"&&C!==null&&C.$$typeof===Fe}function Re(C){var O={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(Z){return O[Z]})}function se(C,O){return typeof C=="object"&&C!==null&&C.key!=null?(b(C.key),Re(""+C.key)):O.toString(36)}function U(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(d,d):(C.status="pending",C.then(function(O){C.status==="pending"&&(C.status="fulfilled",C.value=O)},function(O){C.status==="pending"&&(C.status="rejected",C.reason=O)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function Ye(C,O,Z,$,re){var ye=typeof C;(ye==="undefined"||ye==="boolean")&&(C=null);var be=!1;if(C===null)be=!0;else switch(ye){case"bigint":case"string":case"number":be=!0;break;case"object":switch(C.$$typeof){case Fe:case Me:be=!0;break;case it:return be=C._init,Ye(be(C._payload),O,Z,$,re)}}if(be){be=C,re=re(be);var Ke=$===""?"."+se(be,0):$;return nn(re)?(Z="",Ke!=null&&(Z=Ke.replace(qn,"$&/")+"/"),Ye(re,O,Z,"",function(Ne){return Ne})):re!=null&&(ue(re)&&(re.key!=null&&(be&&be.key===re.key||b(re.key)),Z=ee(re,Z+(re.key==null||be&&be.key===re.key?"":(""+re.key).replace(qn,"$&/")+"/")+Ke),$!==""&&be!=null&&ue(be)&&be.key==null&&be._store&&!be._store.validated&&(Z._store.validated=2),re=Z),O.push(re)),1}if(be=0,Ke=$===""?".":$+":",nn(C))for(var xe=0;xe<C.length;xe++)$=C[xe],ye=Ke+se($,xe),be+=Ye($,O,Z,ye,re);else if(xe=n(C),typeof xe=="function")for(xe===C.entries&&(cn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cn=!0),C=xe.call(C),xe=0;!($=C.next()).done;)$=$.value,ye=Ke+se($,xe++),be+=Ye($,O,Z,ye,re);else if(ye==="object"){if(typeof C.then=="function")return Ye(U(C),O,Z,$,re);throw O=String(C),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return be}function en(C,O,Z){if(C==null)return C;var $=[],re=0;return Ye(C,$,"","",function(ye){return O.call(Z,ye,re++)}),$}function ve(C){if(C._status===-1){var O=C._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=C._result;var Z=O();if(Z.then(function(re){if(C._status===0||C._status===-1){C._status=1,C._result=re;var ye=C._ioInfo;ye!=null&&(ye.end=performance.now()),Z.status===void 0&&(Z.status="fulfilled",Z.value=re)}},function(re){if(C._status===0||C._status===-1){C._status=2,C._result=re;var ye=C._ioInfo;ye!=null&&(ye.end=performance.now()),Z.status===void 0&&(Z.status="rejected",Z.reason=re)}}),O=C._ioInfo,O!=null){O.value=Z;var $=Z.displayName;typeof $=="string"&&(O.name=$)}C._status===-1&&(C._status=0,C._result=Z)}if(C._status===1)return O=C._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-SBOTNOWZ.js";var a=1024,s=o({name:"validate-large-files",description:"Detect files exceeding size limit",canFix:!1,stacks:[],defaults:{maxKb:a},checkAll(n,r){let e=r.maxKb??a,l=e*1024,t=[];for(let i of n)if(i.size>l){let c=Math.round(i.size/1024);t.push({path:i.path,message:`file is ${c}KB (max: ${e}KB)`})}return t}}),d=s.run,f=s.validator,x=s.main;export{s as a,d as b,f as c,x as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-AKJB4CER.js";import{a as y}from"./chunk-6U2VEZEM.js";import{a as C}from"./chunk-KAEAT6A4.js";import{f as v}from"./chunk-NUSNMQPL.js";import{b as i,e as m,f as x,g as k,h as g}from"./chunk-PLJNPQFC.js";import{g as p}from"./chunk-DQAEQEXD.js";import{v as h}from"./chunk-YXSB6RET.js";var l=C(),d=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase(),f=(e,o=[])=>{let s=e.split("/").filter(r=>r.length>0);for(let r of s){let t=r.startsWith(".")?r.slice(1):r;if(t.length===0)continue;let a=h.runtime.path.extname(t);if(a.length>0&&(t=t.slice(0,-a.length)),t.length!==0&&!o.includes(t)&&!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(t))return!1}return!0},N=async(e={})=>{let{root:o=".",ignoreWords:s=[]}=e,r=await E(o),t=[];for(let a of r){let n=a.config.exports?.value;if(n!=null){if(typeof n=="string"){f(n,s)||t.push({packageName:a.name,exportPath:n,suggestion:d(n)});continue}if(n!==null&&typeof n=="object")for(let[u,c]of Object.entries(n))f(u,s)||t.push({packageName:a.name,exportPath:u,suggestion:d(u)}),typeof c=="string"&&!f(c,s)&&t.push({packageName:a.name,exportPath:c,suggestion:d(c)})}}return{isValid:t.length===0,violations:t,packagesChecked:r.length}},w=e=>v.fromPromise(()=>N(e)),b=e=>p.ok({root:"."}),A=e=>{if(p.isFail(e))return l.writeln(m("\u2717"),i(" "+String(e.error))),p.fail({exitCode:1});let{value:o}=e;if(l.writeln(g("\u2139"),i(` Checked ${o.packagesChecked} packages.`)),!o.isValid){l.writeln(m("\u2717"),i(` Found ${o.violations.length} naming violations:`));for(let s of o.violations)l.writeln(k("\u26A0"),i(" "+s.packageName)),l.writeln(g("\u2139"),i(` Export: ${s.exportPath}`)),l.writeln(g("\u2139"),i(` Suggestion: ${s.suggestion}`));return p.fail({exitCode:1})}return l.writeln(x("\u2713"),i(" All export names follow conventions.")),p.ok(void 0)},P=y.createTrigger({handler:w,adaptInput:b,adaptOutput:A}),W=async e=>await P({command:"validate-export-names",args:[],flags:{}});export{N as a,w as b,P as c,W as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-SBOTNOWZ.js";var l=[/^<{7}\s/,/^={7}$/,/^>{7}\s/],i=s({name:"validate-merge-conflict",description:"Detect merge conflict markers",canFix:!1,stacks:[],defaults:{},checkFile(a,o){if(o===void 0)return[];let r=[],e=o.split(`
|
|
2
2
|
`);for(let t=0;t<e.length;t++)for(let n of l)if(n.test(e[t])){r.push({path:a.path,line:t+1,message:`merge conflict marker: ${e[t].slice(0,20)}`});break}return r}}),f=i.run,u=i.validator,d=i.main;export{i as a,f as b,u as c,d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as w}from"./chunk-
|
|
1
|
+
import{a as w}from"./chunk-AKJB4CER.js";import{a as v}from"./chunk-6U2VEZEM.js";import{a as y}from"./chunk-KAEAT6A4.js";import{f as k}from"./chunk-NUSNMQPL.js";import{b as l,e as f,f as h,g as C,h as m}from"./chunk-PLJNPQFC.js";import{g as a}from"./chunk-DQAEQEXD.js";var p=y(),D=e=>{let s=new Map,r=new Set(e.map(i=>i.name));for(let i of e){let n=[];for(let d of i.config._loadedFiles){let t=d.content,u=t.dependencies;if(u!==void 0)for(let c of Object.keys(u))r.has(c)&&n.push(c);let o=t.imports;if(o!==void 0)for(let c of Object.values(o))r.has(c)&&n.push(c)}s.set(i.name,[...new Set(n)])}return s},x=e=>{let s=[],r=new Set,i=new Set,n=[],d=t=>{r.add(t),i.add(t),n.push(t);let u=e.get(t)??[];for(let o of u)if(!r.has(o))d(o);else if(i.has(o)){let c=n.indexOf(o),g=n.slice(c);g.push(o),s.push(g)}n.pop(),i.delete(t)};for(let t of e.keys())r.has(t)||d(t);return s},R=async(e={})=>{let{root:s="."}=e,r=await w(s),i=D(r),n=x(i);return{hasCycles:n.length>0,cycles:n,packagesChecked:r.length}},O=e=>k.fromPromise(()=>R(e)),b=e=>a.ok({root:"."}),A=e=>{if(a.isFail(e))return p.writeln(f("\u2717"),l(" "+(e.error instanceof Error?e.error.message:String(e.error)))),a.fail({exitCode:1});let{value:s}=e;if(p.writeln(m("\u2139"),l(` Checked ${s.packagesChecked} packages.`)),s.hasCycles){p.writeln(f("\u2717"),l(` Found ${s.cycles.length} circular dependencies:`));for(let r of s.cycles)p.writeln(C("\u26A0"),l(` ${r.join(" \u2192 ")}`));return a.fail({exitCode:1})}return p.writeln(h("\u2713"),l(" No circular dependencies found.")),a.ok(void 0)},M=v.createTrigger({handler:O,adaptInput:b,adaptOutput:A}),_=async e=>await M({command:"validate-circular-deps",args:[],flags:{}});export{R as a,O as b,M as c,_ as d};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{a as d}from"./chunk-SBOTNOWZ.js";import{b as p}from"./chunk-2J2PXBOC.js";var c="2023",u=new RegExp(`// Copyright ([0-9]{4})-present Eser Ozvataf and other contributors\\. All rights reserved\\. ([0-9A-Za-z-.]+) license\\.
|
|
2
|
+
`),l=`// Copyright ${c}-present Eser Ozvataf and other contributors. All rights reserved. Apache-2.0 license.`,T=[/docs\//,/etc\/templates\//,/manifest\.gen\.ts$/],g=t=>T.some(e=>e.test(t)),x=(t,e,r)=>{if(e===void 0||g(t.path))return[];let s=e.startsWith("#!")?e.indexOf(`
|
|
3
|
+
`)+1:0,n=e.slice(s).match(u);return n!==null?n[1]===c?[]:[{path:t.path,message:"incorrect copyright year",fixed:r.fix}]:[{path:t.path,message:"missing copyright header",fixed:r.fix}]},E=(t,e,r)=>{if(g(t.path))return;let a=e.startsWith("#!"),s=a?e.indexOf(`
|
|
4
|
+
`)+1:0,i=e.slice(s),n=i.match(u);if(n!==null&&n[1]===c)return;let o;if(n!==null){let f=e.slice(0,s),m=i.replace(n[0],"");o=`${f}${l}
|
|
5
|
+
${m}`}else o=a?`${e.slice(0,s)}${l}
|
|
6
|
+
${i}`:`${l}
|
|
7
|
+
${e}`;return{path:t.path,oldContent:e,newContent:o}},h=d({name:"validate-licenses",description:"Validate license headers",canFix:!0,stacks:["javascript"],defaults:{},extensions:p,checkFile:x,fixFile:E}),C=h.run,O=h.validator,$=h.main;export{h as a,C as b,O as c,$ as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,h as t,k as r}from"./chunk-
|
|
1
|
+
import{f as e,h as t,k as r}from"./chunk-TTYO2XJO.js";var g=()=>e({renderer:r.ansi(),sink:t.stdout()}),c=(i,s)=>({command:i,args:s._??[],flags:Object.fromEntries(Object.entries(s).filter(([o])=>o!=="_"))});export{g as a,c as b};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import{e as Q}from"./chunk-LOFP256P.js";import{f as p,h as u,k as d}from"./chunk-TTYO2XJO.js";import{b as r,d as c,e as m,f as w,g as Y,j as a}from"./chunk-PLJNPQFC.js";import{b as x}from"./chunk-BCHXUKWW.js";import{a as v}from"./chunk-MBC2JM7F.js";import{a as h,b as g}from"./chunk-DQAEQEXD.js";import{a as oe,g as z,h as K,i as B,r as U,t as i}from"./chunk-YXSB6RET.js";var X=()=>i.env.get("HOME")??"",k=()=>{let e=i.env.get("SHELL")??"";return e.includes("zsh")?"zsh":e.includes("fish")?"fish":"bash"},ae=e=>{let t=X();switch(e){case"zsh":return i.path.join(t,".zshrc");case"bash":return i.path.join(t,".bashrc");case"fish":return i.path.join(t,".config","fish","config.fish")}},ie=(e,t)=>{let s=X();switch(e){case"zsh":return i.path.join(s,".zshrc");case"bash":return i.path.join(s,".bashrc");case"fish":return i.path.join(s,".config","fish","completions",`${t}.fish`)}},A=(e,t)=>`eval "$(${t} system completions --shell ${e})"`,le=e=>e==="fish"?"file":"eval",E=(e,t="eser")=>{let s=e??k(),n=le(s);return{shell:s,rcFile:ae(s),completionType:n,completionsFile:n==="file"?ie(s,t):void 0}};var ce="# eser CLI completions",j="eser",ee=async e=>{try{return await i.fs.readTextFile(e)}catch{return""}},de=async e=>{try{return await i.fs.stat(e),!0}catch{return!1}},te=async e=>{let t=E(e,j);if(t.completionType==="file")return await de(t.completionsFile);let s=await ee(t.rcFile),n=A(e,j);return s.includes(n)},se=async e=>{let t=E(e,j),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=i.path.dirname(n);try{await i.fs.mkdir(o,{recursive:!0})}catch{}await i.fs.writeTextFile(n,`# eser CLI completions
|
|
2
|
+
# This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
|
|
3
|
+
complete -c eser -f
|
|
4
|
+
complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
|
|
5
|
+
complete -c eser -n "__fish_use_subcommand" -a "system" -d "Commands related with this CLI"
|
|
6
|
+
complete -c eser -n "__fish_use_subcommand" -a "install" -d "Install eser CLI globally"
|
|
7
|
+
complete -c eser -n "__fish_use_subcommand" -a "update" -d "Update eser CLI to latest version"
|
|
8
|
+
complete -c eser -n "__fish_seen_subcommand_from system" -a "install" -d "Install eser CLI globally"
|
|
9
|
+
complete -c eser -n "__fish_seen_subcommand_from system" -a "uninstall" -d "Uninstall eser CLI globally"
|
|
10
|
+
complete -c eser -n "__fish_seen_subcommand_from system" -a "update" -d "Update eser CLI to latest version"
|
|
11
|
+
complete -c eser -n "__fish_seen_subcommand_from system" -a "completions" -d "Generate shell completion scripts"
|
|
12
|
+
`),s.writeln(r(" "),c("Created"),r(" "),a(n))}else{let n=await ee(t.rcFile),o=A(e,j);if(!n.includes(o)){let f=`
|
|
13
|
+
${ce}
|
|
14
|
+
${o}
|
|
15
|
+
`;await i.fs.writeTextFile(t.rcFile,n+f),s.writeln(r(" "),c("Added completions to"),r(" "),a(t.rcFile))}}}catch(n){s.writeln(Y(` Warning: Could not add shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()},me=async e=>{let t=E(e,j),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile;await de(n)&&(await i.fs.remove(n),s.writeln(r(" "),c("Removed"),r(" "),a(n)))}else{let n=await ee(t.rcFile);if(n===""){await s.close();return}let o=A(e,j);if(!n.includes(o)){await s.close();return}let f=n.split(`
|
|
16
|
+
`).filter(l=>!l.includes("eser system completions")).filter(l=>l!==ce).join(`
|
|
17
|
+
`).replace(/\n{3,}/g,`
|
|
18
|
+
|
|
19
|
+
`);await i.fs.writeTextFile(t.rcFile,f),s.writeln(r(" "),c("Removed completions from"),r(" "),a(t.rcFile))}}catch(n){s.writeln(Y(` Warning: Could not remove shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()};var L=i,ye={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},pe={deno:{cmd:"deno",args:["install","-r","-g","-A","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["install","-g","-f","eser"]},bun:{cmd:"bun",args:["install","-g","-f","eser"]}},ve=async()=>{let e=B(),t=L.path.join(e,".local","bin");try{return await L.fs.stat(t),t}catch{}return"/usr/local/bin"},ke=async()=>{let e=L.process.execPath(),t=await ve(),s=L.path.join(t,"eser"),n=p({renderer:d.ansi(),sink:u.stdout()});n.writeln(r("Install method: "),a("compiled binary")),n.writeln(c(`Copying to ${s}...`));try{await L.fs.copyFile(e,s),await L.fs.chmod(s,493)}catch(l){if(l instanceof Deno.errors.PermissionDenied)return n.writeln(m(`
|
|
20
|
+
Permission denied writing to ${t}.
|
|
21
|
+
Try: sudo eser install`)),await n.close(),g({exitCode:1});throw await n.close(),l}n.writeln(w(`
|
|
22
|
+
Installation complete!`)),n.writeln(r("You can now use "),a("eser"),r(" from anywhere in your terminal."));let o=k();if(!await te(o)){n.writeln(r(`
|
|
23
|
+
Setting up `),a(o),r(" completions...")),await se(o);let l=E(o);l.completionType==="eval"&&n.writeln(c(` Restart your shell or run 'source ${l.rcFile}' to enable completions.`))}return await n.close(),h(void 0)},Ee=async e=>{let t=await U(ye);if(t.invoker==="binary")return await ke();let s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t.runtime));let n=pe[t.runtime]??pe.node,{cmd:o,args:f}=n;s.writeln(c(`Running: ${o} ${f.join(" ")}`)),s.writeln();let l=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();if(!l.success)return s.writeln(m(`
|
|
24
|
+
Installation failed.`)),await s.close(),g({exitCode:l.code});s.writeln(w(`
|
|
25
|
+
Installation complete!`)),s.writeln(r("You can now use "),a("eser"),r(" from anywhere in your terminal."));let y=k();if(!await te(y)){s.writeln(r(`
|
|
26
|
+
Setting up `),a(y),r(" completions...")),await se(y);let G=E(y);G.completionType==="eval"&&s.writeln(c(` Restart your shell or run 'source ${G.rcFile}' to enable completions.`))}return await s.close(),h(void 0)};var Pe={deno:{cmd:"deno",args:["uninstall","-g","eser"]},node:{cmd:"npm",args:["uninstall","-g","eser"]},bun:{cmd:"bun",args:["remove","-g","eser"]}},$e=async e=>{let t=oe(),s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t));let n=Pe[t];if(n===void 0){let R=d.ansi();return await s.close(),g({message:`${R.render([m(`
|
|
27
|
+
Unsupported runtime: ${t}`)])}
|
|
28
|
+
Global uninstallation is only supported for Deno, Node.js, and Bun.`,exitCode:1})}let{cmd:o,args:f}=n,l=k();s.writeln(r(`
|
|
29
|
+
Removing `),a(l),r(" completions...")),await me(l),s.writeln(c(`
|
|
30
|
+
Running: ${o} ${f.join(" ")}`)),s.writeln();let y=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return y.success?(s.writeln(w(`
|
|
31
|
+
Uninstallation complete!`)),s.writeln(r("The "),a("eser"),r(" command has been removed from your system.")),await s.close(),h(void 0)):(s.writeln(m(`
|
|
32
|
+
Uninstallation failed.`)),await s.close(),g({exitCode:y.code}))};var N=i,ue=".cache/eser",Se="latest-version.json",_e=24*60*60*1e3,Re="https://api.github.com/repos/eser/stack/releases/latest",fe=()=>{let e=B();return N.path.join(e,ue,Se)},Ae=()=>{let e=B();return N.path.join(e,ue)},be=async()=>{try{let e=fe();if(!await N.fs.exists(e))return;let s=await N.fs.readTextFile(e),n=JSON.parse(s);return typeof n.latestVersion!="string"||typeof n.checkedAt!="number"?void 0:n}catch{return}},Te=async e=>{try{let t=Ae();await N.fs.ensureDir(t);let s=fe(),n={latestVersion:e,checkedAt:Date.now()};await N.fs.writeTextFile(s,JSON.stringify(n))}catch{}},Fe=async()=>{try{let e=await fetch(Re,{headers:{Accept:"application/vnd.github.v3+json"}});if(!e.ok)return;let s=(await e.json()).tag_name;return typeof s!="string"?void 0:s.startsWith("v")?s.slice(1):s}catch{return}},V=async()=>{try{let e=v.version,t=await be();if(t!==void 0&&Date.now()-t.checkedAt<_e)return{latestVersion:t.latestVersion,currentVersion:e,updateAvailable:Q(e,t.latestVersion)};let s=await Fe();return s===void 0?void 0:(await Te(s),{latestVersion:s,currentVersion:e,updateAvailable:Q(e,s)})}catch{return}};var C=i,He={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},he={deno:{cmd:"deno",args:["install","-r","-g","-A","-f","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["update","-g","-f","eser"]},bun:{cmd:"bun",args:["update","-g","-f","eser"]}},Ue={"linux-amd64":"x86_64-unknown-linux-gnu","linux-arm64":"aarch64-unknown-linux-gnu","darwin-amd64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin","windows-amd64":"x86_64-pc-windows-msvc"},je=()=>{let e=z(),t=K(),s=`${e}-${t}`;return Ue[s]},De=async()=>{let e=p({renderer:d.ansi(),sink:u.stdout()});e.writeln(r("Install method: "),a("compiled binary")),e.writeln(r("Current version: "),a(v.version),r(`
|
|
33
|
+
`)),e.writeln(r("Checking for updates..."));let t=await V();if(t===void 0)return e.writeln(m("Could not check for updates.")),await e.close(),g({exitCode:1});if(!t.updateAvailable)return e.writeln(w(`
|
|
34
|
+
Already up to date (v${v.version}).`)),await e.close(),h(void 0);e.writeln(r(`
|
|
35
|
+
New version available: `),a(`v${t.latestVersion}`));let s=je();if(s===void 0){let $=z(),T=K();return e.writeln(m(`
|
|
36
|
+
Unsupported platform: ${$}-${T}`)),await e.close(),g({exitCode:1})}let n=`v${t.latestVersion}`,o=z()==="windows",l=`eser-${n}-${s}.${o?"zip":"tar.gz"}`,y=`https://github.com/eser/stack/releases/download/${n}`;e.writeln(c(`Downloading ${l}...`));let R=await fetch(`${y}/${l}`);if(!R.ok)return e.writeln(m(`
|
|
37
|
+
Failed to download: HTTP ${R.status}`)),await e.close(),g({exitCode:1});let G=await fetch(`${y}/SHA256SUMS.txt`);if(G.ok){let T=(await G.text()).split(`
|
|
38
|
+
`).find(F=>F.includes(l));if(T!==void 0){let F=T.split(/\s+/)[0],H=new Uint8Array(await R.clone().arrayBuffer()),S=await crypto.subtle.digest("SHA-256",H);if(Array.from(new Uint8Array(S)).map(Ce=>Ce.toString(16).padStart(2,"0")).join("")!==F)return e.writeln(m(`
|
|
39
|
+
SHA256 checksum verification failed.`)),await e.close(),g({exitCode:1});e.writeln(c("Checksum verified."))}}let b=await C.fs.makeTempDir({prefix:"eser-update-"});try{let $=C.path.join(b,l),T=new Uint8Array(await R.arrayBuffer());await C.fs.writeFile($,T),o?await x`powershell -Command "Expand-Archive -Path ${$} -DestinationPath ${b}"`.spawn():await x`tar -xzf ${$} -C ${b}`.spawn();let F=o?C.path.join(b,"eser.exe"):C.path.join(b,"eser"),H=C.process.execPath();if(o){let S=H.replace(/\.exe$/i,".new.exe");await C.fs.copyFile(F,S),e.writeln(w(`
|
|
40
|
+
Downloaded v${t.latestVersion}!`)),e.writeln(r(`
|
|
41
|
+
To complete the update, close this terminal and rename:
|
|
42
|
+
`),a(S),r(`
|
|
43
|
+
to:
|
|
44
|
+
`),a(H))}else{let S=`${H}.new`;await C.fs.copyFile(F,S),await C.fs.chmod(S,493),await C.fs.rename(S,H),e.writeln(w(`
|
|
45
|
+
Updated to v${t.latestVersion}!`))}}catch($){if($ instanceof Deno.errors.PermissionDenied)return e.writeln(m(`
|
|
46
|
+
Permission denied. Try running with sudo:
|
|
47
|
+
sudo eser update`)),await e.close(),g({exitCode:1});throw await e.close(),$}finally{try{await C.fs.remove(b,{recursive:!0})}catch{}}return await e.close(),h(void 0)},Ie=async e=>{let t=await U(He);if(t.invoker==="binary")return await De();let s=p({renderer:d.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),a(t.runtime));let n=he[t.runtime]??he.node,{cmd:o,args:f}=n;s.writeln(c(`Running: ${o} ${f.join(" ")}`)),s.writeln();let l=await x`${o} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return l.success?(s.writeln(w(`
|
|
48
|
+
Update complete!`)),s.writeln(r("The "),a("eser"),r(" command has been updated to the latest version.")),await s.close(),h(void 0)):(s.writeln(m(`
|
|
49
|
+
Update failed.`)),await s.close(),g({exitCode:l.code}))};var Le=e=>{let t=E(e,"eser"),s=d.ansi();if(t.completionType==="file")return`
|
|
50
|
+
To install, run:
|
|
51
|
+
|
|
52
|
+
${s.render([c(`eser system completions --shell fish > ${t.completionsFile}`)])}
|
|
53
|
+
`;let n=A(e,"eser");return`
|
|
54
|
+
To install, add the following to your ${s.render([a(t.rcFile)])}:
|
|
55
|
+
|
|
56
|
+
${s.render([c(n)])}
|
|
57
|
+
`},Ne=e=>{let t=e.flags.shell,s=d.ansi(),n=p({renderer:s,sink:u.stdout()}),o;if(t!==void 0){if(!["bash","zsh","fish"].includes(t))return g({message:`${s.render([m(`Invalid shell: ${t}`)])}
|
|
58
|
+
Supported shells: bash, zsh, fish`,exitCode:1});o=t}else o=k();let l=e.root.completions(o);return t===void 0&&(n.writeln(r("Generating "),a(o),r(" completions...")),console.log(Le(o)),n.writeln(c(`--- Completion script ---
|
|
59
|
+
`))),console.log(l),h(void 0)};var Ve=200,Oe=async e=>{let t=p({renderer:d.ansi(),sink:u.stdout()});if(e.flags.bare===!0)return t.writeln(r(v.version)),await t.close(),h(void 0);t.writeln(r(`eser ${v.version}`));try{let s=new Promise(o=>{setTimeout(()=>o(void 0),Ve)}),n=await Promise.race([V(),s]);n!==void 0&&n.updateAvailable&&t.writeln(c(` Update available: v${n.latestVersion} \u2014 run 'eser update'`))}catch{}return await t.close(),h(void 0)};var q=i,Ge={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},J=17,_=p({renderer:d.ansi(),sink:u.stdout()}),O=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),w("\u2713"),r(` ${t}`))},P=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),m("\u2717"),r(` ${t}`))},ge=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}${t}`))},Be=(e,t)=>{let s=`${e}:`.padEnd(J);_.writeln(r(` ${s}`),c("-"),r(` ${t}`))},we=async e=>{try{return await q.fs.stat(e),!0}catch{return!1}},Me=async e=>{try{return await q.fs.readTextFile(e)}catch{return""}},xe=(e,t)=>e.match(t)?.[1],ze=async()=>{let e=q.path.join(".",".git","hooks","pre-commit");if(!await we(e)){P("Git hooks","Not installed");return}(await Me(e)).includes("eser")?O("Git hooks","Installed"):P("Git hooks","Not installed")},We=async()=>{let e=q.path.join(".",".manifest.yml");await we(e)?O("Manifest",".manifest.yml found"):P("Manifest",".manifest.yml not found")},qe=async()=>{try{let e=await x`deno --version`.noThrow().quiet().text(),t=xe(e,/deno\s+(\S+)/);t!==void 0?O("Deno",t):P("Deno","Not found")}catch{P("Deno","Not found")}},Je=async()=>{try{let e=await x`go version`.noThrow().quiet().text(),t=xe(e,/go(\d+\.\d+(?:\.\d+)?)/);t!==void 0?O("Go",t):P("Go","Not found")}catch{P("Go","Not found")}},Ke=async()=>{try{let t=(await x`node --version`.noThrow().quiet().text()).trim();t.length>0?O("Node",t):P("Node","Not found")}catch{P("Node","Not found")}},Ye=async e=>{_.writeln(r(`eser doctor
|
|
60
|
+
`));let t=await U(Ge);ge("Install method",`${t.invoker} (${t.mode})`),ge("Version",v.version);let s=await V();return s===void 0?Be("Update","Could not check for updates"):s.updateAvailable?P("Update",`Update available: v${s.latestVersion}`):O("Update","Up to date"),_.writeln(),await ze(),await We(),_.writeln(),await qe(),await Je(),await Ke(),await _.close(),h(void 0)};export{Ee as a,$e as b,Ie as c,Ne as d,Oe as e,Ye as f};
|