eser 4.1.29 → 4.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{add-O35CHPAB.js → add-5SDE43IH.js} +1 -1
- package/chunks/{approve-XMPDDDZD.js → approve-XNUZYGYJ.js} +1 -1
- package/chunks/{ask-BZIPZT7O.js → ask-L3N6REQI.js} +1 -1
- package/chunks/{block-C2GOOMFH.js → block-NWIP4USQ.js} +1 -1
- package/chunks/{browser-JNDQ24XT.js → browser-SG2DBNGS.js} +1 -1
- package/chunks/{build-LADMCGZD.js → build-6DCIDFY7.js} +2 -2
- package/chunks/bun-3AACRJXG.js +2 -0
- package/chunks/{changelog-gen-KMNP2KO4.js → changelog-gen-7V37P7PE.js} +1 -1
- package/chunks/{chunk-SAQAIPUB.js → chunk-2EVWKUN6.js} +1 -1
- package/chunks/{chunk-LXE2WGIW.js → chunk-2TP6IMXY.js} +1 -1
- package/chunks/{chunk-G35GBI4M.js → chunk-32HV3K27.js} +1 -1
- package/chunks/{chunk-XAV6BM52.js → chunk-3KCPUYLZ.js} +1 -1
- package/chunks/{chunk-JPCJIMM5.js → chunk-3MM5EGFB.js} +1 -1
- package/chunks/{chunk-IKYBNRCS.js → chunk-3QIPK7NI.js} +1 -1
- package/chunks/{chunk-YSJNWJ24.js → chunk-3YUV3QIZ.js} +1 -1
- package/chunks/{chunk-DPL7GREV.js → chunk-455V3AE5.js} +1 -1
- package/chunks/{chunk-SOCLJVZ3.js → chunk-46ZWBKIW.js} +1 -1
- package/chunks/{chunk-C2FHTZ2Y.js → chunk-4DOMGQOO.js} +1 -1
- package/chunks/{chunk-YZ4L35HK.js → chunk-4SYC4WJV.js} +1 -1
- package/chunks/{chunk-CFTANV4S.js → chunk-4WQGB7NO.js} +1 -1
- package/chunks/{chunk-GITZBQ2Z.js → chunk-5MWX3POX.js} +1 -1
- package/chunks/{chunk-LT7CC4SX.js → chunk-5PNGVDLV.js} +1 -1
- package/chunks/{chunk-CLXOJOH3.js → chunk-6QC7ILI5.js} +1 -1
- package/chunks/{chunk-EJ4XBQTD.js → chunk-7BFBOLLC.js} +1 -1
- package/chunks/{chunk-Z2CGXVFY.js → chunk-7NUMDHE2.js} +1 -1
- package/chunks/{chunk-RZKZDGNM.js → chunk-AGRTWPDI.js} +1 -1
- package/chunks/{chunk-T4CNY6II.js → chunk-BCPCQHDL.js} +1 -1
- package/chunks/{chunk-V4AJMSER.js → chunk-BP3IFAPO.js} +1 -1
- package/chunks/{chunk-RMGMMTO6.js → chunk-CEYKWASA.js} +1 -1
- package/chunks/{chunk-ZKUI7MRS.js → chunk-CKNA5LIK.js} +1 -1
- package/chunks/{chunk-CS3FL7HI.js → chunk-CLL3YG4W.js} +1 -1
- package/chunks/{chunk-H7XLUEAU.js → chunk-COKZ6MLN.js} +2 -2
- package/chunks/{chunk-VXTKQXGM.js → chunk-CUIMSX4V.js} +1 -1
- package/chunks/{chunk-IAZ2MM3P.js → chunk-EBCQCAQ7.js} +1 -1
- package/chunks/{chunk-QTOUP2B7.js → chunk-ER4ZWF4Y.js} +1 -1
- package/chunks/{chunk-HFFIXVAB.js → chunk-F5BPXG5L.js} +1 -1
- package/chunks/{chunk-TBHZHGUF.js → chunk-FORPNESQ.js} +1 -1
- package/chunks/{chunk-NP2CCJ4C.js → chunk-GBM3TZFD.js} +1 -1
- package/chunks/{chunk-VIOT4AMI.js → chunk-H4SPMUT6.js} +1 -1
- package/chunks/{chunk-6HGMAVFR.js → chunk-HVLKXRPA.js} +1 -1
- package/chunks/{chunk-KXI7O3KZ.js → chunk-HVOPUZOM.js} +1 -1
- package/chunks/{chunk-SMT3I5PQ.js → chunk-HYT26FYU.js} +1 -1
- package/chunks/{chunk-KP3HXVLZ.js → chunk-I4C675WP.js} +1 -1
- package/chunks/{chunk-PDJEHSKZ.js → chunk-IDMI5OBK.js} +1 -1
- package/chunks/chunk-JOTAKQMZ.js +2 -0
- package/chunks/{chunk-MNVCCOJS.js → chunk-K6H7JTIH.js} +1 -1
- package/chunks/{chunk-A3MBTPHJ.js → chunk-K7MYEXOS.js} +1 -1
- package/chunks/{chunk-VXA3KMDF.js → chunk-KKBIUT5L.js} +1 -1
- package/chunks/{chunk-4NEBMHCP.js → chunk-KPWEJXPI.js} +1 -1
- package/chunks/{chunk-TBOM65KB.js → chunk-KQE6FMKW.js} +1 -1
- package/chunks/{chunk-RYOLIM3I.js → chunk-MRCBHVSB.js} +1 -1
- package/chunks/{chunk-VKSH6UPG.js → chunk-MXGRYONZ.js} +1 -1
- package/chunks/{chunk-COJNSVOS.js → chunk-N2VBT43E.js} +1 -1
- package/chunks/{chunk-QEZJTCNE.js → chunk-NP723K5L.js} +1 -1
- package/chunks/{chunk-KLHDNHD3.js → chunk-NTHP6SND.js} +1 -1
- package/chunks/{chunk-2SEPWXDK.js → chunk-OX6ZNNUB.js} +1 -1
- package/chunks/{chunk-VC5BX56D.js → chunk-P2TABZ4A.js} +1 -1
- package/chunks/{chunk-6LVNPRHQ.js → chunk-P74JF7XR.js} +1 -1
- package/chunks/{chunk-JPFGKN4T.js → chunk-PVPMHMKP.js} +1 -1
- package/chunks/{chunk-6XW64HCG.js → chunk-QOX7VSID.js} +1 -1
- package/chunks/{chunk-5YVKJFG6.js → chunk-RGUETQSC.js} +1 -1
- package/chunks/{chunk-HYFBCDIO.js → chunk-SOBOSRJB.js} +1 -1
- package/chunks/{chunk-5BHHLJJN.js → chunk-SQINSLNL.js} +1 -1
- package/chunks/{chunk-EZE3F4PG.js → chunk-U2MR2O3C.js} +1 -1
- package/chunks/{chunk-ZTPERUHN.js → chunk-UESOCN2G.js} +1 -1
- package/chunks/{chunk-KLWWCHOL.js → chunk-UJ6LH5FY.js} +1 -1
- package/chunks/{chunk-4MELQSFH.js → chunk-VC6ERZSI.js} +1 -1
- package/chunks/{chunk-FXBDWBXT.js → chunk-VG72SSDI.js} +1 -1
- package/chunks/{chunk-EETBL6X2.js → chunk-W3RVRCUB.js} +1 -1
- package/chunks/{chunk-U3FRSRMK.js → chunk-WG6J7DFO.js} +1 -1
- package/chunks/{chunk-3HC6RWFJ.js → chunk-XU5SILYR.js} +1 -1
- package/chunks/{chunk-7ZVGNL76.js → chunk-XVSIRN6G.js} +1 -1
- package/chunks/{chunk-XMVLDQGA.js → chunk-Y4ARZGGL.js} +1 -1
- package/chunks/{chunk-PASFORZM.js → chunk-YQVWAWMO.js} +1 -1
- package/chunks/{chunk-AN5JOFHD.js → chunk-YVIGHK4H.js} +1 -1
- package/chunks/{chunk-7FMX4QXF.js → chunk-ZNGLZECE.js} +1 -1
- package/chunks/{claude-code-T26K2CSI.js → claude-code-VUBEU7RR.js} +1 -1
- package/chunks/{clone-UYEZ44LL.js → clone-H3UAEVVP.js} +1 -1
- package/chunks/{commitmsg-646PHU7A.js → commitmsg-UK2ABB7D.js} +2 -2
- package/chunks/{concern-YRABYUVO.js → concern-Y7LJ2MWE.js} +1 -1
- package/chunks/{deno-VWFDRCYK.js → deno-7BSPHDRG.js} +1 -1
- package/chunks/{dev-G4VQ2IYE.js → dev-XBH6C6DH.js} +2 -2
- package/chunks/{done-5SD4KWRA.js → done-DIN56LXZ.js} +1 -1
- package/chunks/{file-tools-shared-6W7Q4BM3.js → file-tools-shared-G36OYF5S.js} +1 -1
- package/chunks/{gh-CD3B5KEN.js → gh-RKKHKA3B.js} +2 -2
- package/chunks/{gh-contributors-35JDS77W.js → gh-contributors-X7BW57DD.js} +1 -1
- package/chunks/{init-URA5HJ76.js → init-32DVDSNZ.js} +3 -3
- package/chunks/{init-FAWK4Z3E.js → init-PBLGKCHC.js} +1 -1
- package/chunks/{install-M74UAT7X.js → install-LM44N3DB.js} +1 -1
- package/chunks/{invoke-hook-4LHASYW3.js → invoke-hook-4DBMDFA5.js} +1 -1
- package/chunks/{kiro-G4OHOVFL.js → kiro-HQLXD6ZU.js} +1 -1
- package/chunks/{list-LBUVQR7O.js → list-5TGTYMAU.js} +1 -1
- package/chunks/{list-J5HOVH5E.js → list-N4ZKDFW7.js} +1 -1
- package/chunks/{list-4EO2DKMM.js → list-PY3A762R.js} +1 -1
- package/chunks/{load-config-DVKFZVST.js → load-config-FTQMJVEW.js} +1 -1
- package/chunks/{main-ODLLH74E.js → main-JTYNMHNL.js} +2 -2
- package/chunks/{manifest-QSFTIV3B.js → manifest-NF2EK757.js} +1 -1
- package/chunks/{mod-ZZYMEYCH.js → mod-5WXRQGLS.js} +1 -1
- package/chunks/{mod-YSMK5V7P.js → mod-FEGQZ3ZY.js} +1 -1
- package/chunks/{mod-QHYBU43F.js → mod-HKYPZOU7.js} +1 -1
- package/chunks/mod-IILBPQMK.js +2 -0
- package/chunks/{mod-5ZKIEGUP.js → mod-JI2A2546.js} +1 -1
- package/chunks/{mod-U23K3LXJ.js → mod-JZNE2HH6.js} +1 -1
- package/chunks/{mod-T55CWDLD.js → mod-MLRQFSBE.js} +1 -1
- package/chunks/{mod-S5HDMMLJ.js → mod-NCF6OSXO.js} +1 -1
- package/chunks/{mod-EWGGLW3S.js → mod-SA3J2VR5.js} +1 -1
- package/chunks/{mod-BE3R7D2V.js → mod-Y4UHOKMZ.js} +2 -2
- package/chunks/{mod-RLMNE7UW.js → mod-YX3JRMSI.js} +1 -1
- package/chunks/{new-GDE5UZWP.js → new-BOGCXTIY.js} +1 -1
- package/chunks/{next-2HGZUAMR.js → next-NQOJEFA5.js} +1 -1
- package/chunks/node-MFKYO4CY.js +2 -0
- package/chunks/{ollama-EE7S3UZE.js → ollama-36F5QAOO.js} +1 -1
- package/chunks/{opencode-WUF4YPPD.js → opencode-7J3JDC44.js} +1 -1
- package/chunks/{purge-OIEP3ALR.js → purge-SQ6NCKWN.js} +1 -1
- package/chunks/{recipe-applier-WZ43N5XT.js → recipe-applier-6QZYAZ57.js} +1 -1
- package/chunks/{registry-fetcher-G33L5S7X.js → registry-fetcher-76ISLGRR.js} +1 -1
- package/chunks/{release-5BYYTQJI.js → release-WKMSWXDS.js} +2 -2
- package/chunks/{release-notes-6M2YRB3G.js → release-notes-GOUHBQ2F.js} +1 -1
- package/chunks/{release-tag-QP4ZKQNS.js → release-tag-5WNEA4HM.js} +1 -1
- package/chunks/{reset-TKTDLTXB.js → reset-EYLAZVKO.js} +1 -1
- package/chunks/{rule-6TDBH4BL.js → rule-HV7DARH6.js} +1 -1
- package/chunks/{run-TQEEFEDE.js → run-CPCSTIAL.js} +1 -1
- package/chunks/{run-SU27QAHR.js → run-RGEZUAPM.js} +1 -1
- package/chunks/{scripts-ZSF43ZJN.js → scripts-JK6W2MCO.js} +1 -1
- package/chunks/{serve-JSDQDTTM.js → serve-DEYVWV2K.js} +2 -2
- package/chunks/{server-P46LIK5C.js → server-KNWQV2HW.js} +1 -1
- package/chunks/{spec-ATRKKK2P.js → spec-JCR5EYCU.js} +1 -1
- package/chunks/{status-H2KLEMT6.js → status-O5HUGPGE.js} +1 -1
- package/chunks/{sync-CK7PWMKK.js → sync-ZOU46K25.js} +1 -1
- package/chunks/{system-IV54LJTN.js → system-BJCQKFCP.js} +1 -1
- package/chunks/{system-NSABXTHD.js → system-X3EJ3FN3.js} +1 -1
- package/chunks/{update-HP5WGRNK.js → update-4C4WNXCE.js} +1 -1
- package/chunks/{validate-filenames-GKDIEJH4.js → validate-bom-KEC4IOKO.js} +1 -1
- package/chunks/{validate-bom-KGIGVVOU.js → validate-case-conflict-ZZKZQQX4.js} +1 -1
- package/chunks/validate-circular-deps-QCJYK5K5.js +2 -0
- package/chunks/{validate-commit-msg-2FLWH6TC.js → validate-commit-msg-PZZ4T4QF.js} +1 -1
- package/chunks/validate-docs-M55HAXPX.js +2 -0
- package/chunks/{validate-case-conflict-OO2AO434.js → validate-eof-MX52AUUT.js} +1 -1
- package/chunks/validate-export-names-UFXPIDFW.js +2 -0
- package/chunks/{validate-eof-E33EQKDM.js → validate-filenames-LXIMPWRW.js} +1 -1
- package/chunks/validate-json-TABLVKEH.js +2 -0
- package/chunks/validate-large-files-CMCMEGYA.js +2 -0
- package/chunks/validate-licenses-MDGIDYNC.js +2 -0
- package/chunks/validate-line-endings-K36HS73S.js +2 -0
- package/chunks/validate-merge-conflict-PMGZYM3B.js +2 -0
- package/chunks/validate-mod-exports-M3UYNBK7.js +2 -0
- package/chunks/{validate-package-configs-FXHXJMG4.js → validate-package-configs-V5LR7K5C.js} +1 -1
- package/chunks/validate-secrets-IAMY5DB5.js +2 -0
- package/chunks/validate-shebangs-GUBDNU2N.js +2 -0
- package/chunks/validate-submodules-ZA2FAF3W.js +2 -0
- package/chunks/validate-symlinks-LSEEVFTR.js +2 -0
- package/chunks/validate-toml-JLQ3BY73.js +2 -0
- package/chunks/validate-trailing-whitespace-3UUUKE22.js +2 -0
- package/chunks/validate-yaml-2BG7G35N.js +2 -0
- package/chunks/{versions-PZPDQ673.js → versions-IVXYMSAZ.js} +1 -1
- package/chunks/{watch-47KEOG5L.js → watch-YKYNWTZF.js} +1 -1
- package/chunks/{workerd-LDORGZ6V.js → workerd-VVSAKLDZ.js} +1 -1
- package/eser.js +1 -1
- package/package.json +1 -1
- package/chunks/bun-ZPIZVC7D.js +0 -2
- package/chunks/chunk-PHI2BESG.js +0 -2
- package/chunks/mod-6DSPYXMK.js +0 -2
- package/chunks/node-SUFYFPRO.js +0 -2
- package/chunks/validate-circular-deps-32ISYSEO.js +0 -2
- package/chunks/validate-docs-MNQ7ZRID.js +0 -2
- package/chunks/validate-export-names-IWS4NRYR.js +0 -2
- package/chunks/validate-json-L7BSQN3G.js +0 -2
- package/chunks/validate-large-files-CHHOQREX.js +0 -2
- package/chunks/validate-licenses-5WEHTSL4.js +0 -2
- package/chunks/validate-line-endings-EWGW2ZWD.js +0 -2
- package/chunks/validate-merge-conflict-IN5ZQJDJ.js +0 -2
- package/chunks/validate-mod-exports-PHEFFLDK.js +0 -2
- package/chunks/validate-secrets-ABX5UNHC.js +0 -2
- package/chunks/validate-shebangs-47GMC7WX.js +0 -2
- package/chunks/validate-submodules-4BPO5ORH.js +0 -2
- package/chunks/validate-symlinks-OCGMLYJS.js +0 -2
- package/chunks/validate-toml-MYSG53JW.js +0 -2
- package/chunks/validate-trailing-whitespace-AXXHTIAE.js +0 -2
- package/chunks/validate-yaml-FT5PODBP.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as N,b as x,c as H}from"./chunk-
|
|
2
|
+
import{a as N,b as x,c as H}from"./chunk-SOBOSRJB.js";import{f as C}from"./chunk-I4C675WP.js";import{a as E,d as $}from"./chunk-3BEX5FYF.js";import{k as S}from"./chunk-UJ6LH5FY.js";import{f as b,h,k as I}from"./chunk-GBM3TZFD.js";import{d as o,f as k,g,h as A,k as y}from"./chunk-3SXTMY75.js";import{a as v}from"./chunk-MG65QJY6.js";import{a as d,b as c,c as R}from"./chunk-A6RDYP6R.js";import{t as w}from"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var _=r=>E(async e=>{try{let t=await S(r.registrySource,{verbose:r.verbose,local:r.local}),s=t.recipes.find(n=>n.name===r.recipeName);if(s===void 0)return c({_tag:"RecipeNotFound",message:`Recipe '${r.recipeName}' not found. Run \`eser kit list\` to see available recipes.`});let a=await N(r.cwd),i=x(s,a);for(let n of i.warnings)e.out.writeln(A(`Warning: ${n}`));let l=await C(r.recipeName,t.recipes,{cwd:r.cwd,registryUrl:t.registryUrl,force:r.force,skipExisting:r.skipExisting,dryRun:r.dryRun,verbose:r.verbose,variables:r.variables}),m=0,p=0;for(let n of l.recipes)m+=n.result.written.length,p+=n.result.skipped.length;e.out.writeln(g(`\u2713 Added ${m} file(s)`)),l.recipes.length>1&&e.out.writeln(o(` Applied ${l.recipes.length} recipes (including dependencies)`)),p>0&&e.out.writeln(o(` Skipped ${p} existing file(s)`));let f=l.recipes.find(n=>n.name===r.recipeName);if(f!==void 0)for(let n of f.result.written)e.out.writeln(` \u2192 ${n}`);let u;if(!r.noInstall&&!r.dryRun&&i.instructions.length>0){e.out.writeln(o(`
|
|
3
3
|
Installing dependencies...`)),u=await H(i.instructions,r.cwd,{verbose:r.verbose});for(let n of u)n.success?e.out.writeln(g(` \u2713 ${n.command}`)):e.out.writeln(k(` \u2717 ${n.command}: ${n.error}`))}else if(i.instructions.length>0){e.out.writeln(o(`
|
|
4
4
|
Dependencies (run manually):`));for(let n of i.instructions)e.out.writeln(o(` ${n}`))}return d({recipe:s,chainResult:l,depInfo:i,installResults:u})}catch(t){let s=t instanceof Error?t.message:String(t);return c({_tag:"ApplyError",message:s})}});var j=r=>{let e={};for(let t of r){let[s,...a]=String(t).split("=");s!==void 0&&s!==""&&(e[s]=a.join("="))}return e},B=async r=>{let e=v(r??[],{string:["registry","var"],boolean:["dry-run","force","skip-existing","verbose","local","no-install"],collect:["var"]}),t=e._[0],s=b({renderer:I.ansi(),sink:h.stdout()});if(t===void 0)return s.writeln("Usage: eser kit add <recipe> [--registry <url>] [--dry-run] [--var key=value]"),s.writeln(),s.writeln("Run ",o("`eser kit list`")," to see available recipes."),await s.close(),d(void 0);let a=e["dry-run"]===!0;a?s.writeln(y(`
|
|
5
5
|
Dry run: ${t}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as C}from"./chunk-
|
|
2
|
+
import{a as C}from"./chunk-XVSIRN6G.js";import{a as P,d as R}from"./chunk-P74JF7XR.js";import"./chunk-IDMI5OBK.js";import{e as y}from"./chunk-UESOCN2G.js";import{a as p}from"./chunk-LNNNLUZT.js";import{d as h,e as S,j as g,n as v}from"./chunk-WG6J7DFO.js";import"./chunk-JYNHFD6B.js";import{f,h as u,k as w}from"./chunk-GBM3TZFD.js";import{c as n,d as c,f as l,g as m,k as d}from"./chunk-3SXTMY75.js";import{a as i}from"./chunk-A6RDYP6R.js";import{t as o}from"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var $=async E=>{let r=f({renderer:w.ansi(),sink:u.stdout()}),s=o.process.cwd(),e=await h(s),a=await g(s);if(e.phase==="SPEC_DRAFT"){if(e.classification===null&&e.spec!==null){let A=(await v(s)).filter(D=>a?.concerns.includes(D.id)??!1);try{await C(s,e,A)}catch{}}let t=y(e);await S(s,t),t.spec!==null&&(await P(s,t.spec,"approved"),await R(s,t.spec,"approved")),r.writeln(m("\u2714")," Spec approved. Phase: ",d("SPEC_APPROVED")),r.writeln("When ready, run ",n(`${p('next --answer="start"',a)}`)," to begin execution.")}else e.phase==="DISCOVERY"&&e.discovery.completed?(r.writeln(c("Discovery complete. Spec draft already generated.")),r.writeln("Review the spec and run ",n(p("approve",a))," again when in SPEC_DRAFT phase.")):r.writeln(l(`Cannot approve in phase: ${e.phase}`));return await r.close(),i(void 0)};export{$ as main};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as _,b as $}from"./chunk-GE3LJ6QM.js";import{a as F}from"./chunk-BNQAZLIQ.js";import{d as x,f as v,g as I,h as y,k as P}from"./chunk-
|
|
2
|
+
import{a as _,b as $}from"./chunk-GE3LJ6QM.js";import{a as F}from"./chunk-BNQAZLIQ.js";import{d as x,f as v,g as I,h as y,k as P}from"./chunk-GBM3TZFD.js";import{d as O,e as L,g as R}from"./chunk-LCG4SK6K.js";import{a as T}from"./chunk-7DPLGQHN.js";import"./chunk-3SXTMY75.js";import"./chunk-J7YTWK67.js";import{d as S}from"./chunk-PVPMHMKP.js";import{a as C,b as g}from"./chunk-A6RDYP6R.js";import{t as m}from"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var k=(e,t,n)=>{let i=e.streamText(t,n);return{name:`ai-text/${e.provider}/${e.modelId}`,readable:new ReadableStream({async start(o){try{for await(let s of i)s.kind==="content_delta"&&o.enqueue(x(s.textDelta));o.close()}catch(s){o.error(s)}}})}};var Y={cc:"claude-code",ol:"ollama",oc:"opencode",oai:"openai",ant:"anthropic",gem:"gemini",vtx:"vertexai"},q={"claude-code":"Claude Code",ollama:"Ollama",opencode:"OpenCode",kiro:"Kiro",anthropic:"Anthropic API",openai:"OpenAI API",gemini:"Gemini API",vertexai:"Vertex AI"},H=e=>Y[e]??e,K=async e=>{if(e){let t=m.process.stderr.getWriter(),n=v({renderer:P.ansi(),sink:y.writable(new WritableStream({async write(i){await t.write(new TextEncoder().encode(String(i.data)))},close(){t.releaseLock()}}))});await O.configure({sinks:{stderr:R.getOutputSink(n)},loggers:[{category:["ai"],lowestLevel:T.Debug,sinks:["stderr"]}]})}return L.getLogger(["ai","ask"])},M=async e=>{await e.info("Auto-detecting AI provider...");try{if(await S`which claude`.noThrow().code()===0)return await e.info("Claude Code detected."),"claude-code"}catch{}try{if((await fetch("http://localhost:11434/api/version",{signal:AbortSignal.timeout(1e3)})).ok)return await e.info("Ollama detected at localhost:11434."),"ollama"}catch{}try{if(await S`which opencode`.noThrow().code()===0)return await e.info("OpenCode detected."),"opencode"}catch{}if(m.capabilities.env){if(m.env.has("ANTHROPIC_API_KEY"))return await e.info("Anthropic API key detected."),"anthropic";if(m.env.has("OPENAI_API_KEY"))return await e.info("OpenAI API key detected."),"openai"}throw new Error("No AI provider detected. Install claude, ollama, or set ANTHROPIC_API_KEY / OPENAI_API_KEY.")},U=async e=>{switch(e){case"claude-code":return(await import("./claude-code-VUBEU7RR.js")).claudeCodeFactory;case"ollama":return(await import("./ollama-36F5QAOO.js")).ollamaFactory;case"opencode":return(await import("./opencode-7J3JDC44.js")).openCodeFactory;case"kiro":return(await import("./kiro-HQLXD6ZU.js")).kiroFactory;case"anthropic":return(await import("./anthropic-2MXDKLNX.js")).anthropicFactory;case"openai":return(await import("./openai-EU5TJZ5T.js")).openaiFactory;case"gemini":return(await import("./gemini-F4KLO5VU.js")).geminiFactory;case"vertexai":return(await import("./vertexai-EXTYPVHK.js")).vertexaiFactory;default:throw new Error(`Unknown provider: ${e}`)}},le=async e=>{let t=e??[],n=null,i=null,o=null,s=!1,p=!1,A=[],a=0;for(;a<t.length;){let r=t[a];if(r==="-p"||r==="--provider"){n=t[a+1]??null,a+=2;continue}if(r==="-m"||r==="--model"){i=t[a+1]??null,a+=2;continue}if(r==="--max-tokens"){let c=t[a+1];c!==void 0&&(o=Number(c)),a+=2;continue}if(r==="--json"){s=!0,a+=1;continue}if(r==="-v"||r==="--verbose"){p=!0,a+=1;continue}r.startsWith("-")||A.push(r),a+=1}let f=A.join(" ");if(f.length===0)return g({message:'Usage: ai ask "your prompt" [-p provider] [-m model] [--verbose]',exitCode:1});let d=await K(p);try{let r=n!==null?H(n):await M(d),c=q[r]??r,E=i??z(r);await d.info(`Using ${c} (${E})`);let N=await U(r),w=new _({factories:[N]});await w.addModel("default",{provider:r,model:E});let h=w.getDefault();if(h===null)return g({message:"Failed to initialize model",exitCode:1});let b=[F("user",f)];if(await d.info(`Sending prompt (${f.length} chars)...`),s){let u=await h.generateText({messages:b,maxTokens:o??void 0});await d.info(`Response received (${$(u).length} chars)`);let l=v({sink:y.stdout()});l.writeln(JSON.stringify(u,null,2)),await l.close()}else{let u=k(h,{messages:b,maxTokens:o??void 0});await I().from(u).to(V()).run();let l=m.process.stdout.getWriter();await l.write(new TextEncoder().encode(`
|
|
3
3
|
`)),l.releaseLock()}return await w.close(),C(void 0)}catch(r){let c=r instanceof Error?r.message:String(r);return await d.error(c),p&&r instanceof Error&&r.cause!==void 0&&await d.debug(`Cause: ${String(r.cause)}`),g({message:c,exitCode:1})}},j=12,G=e=>new Promise(t=>setTimeout(t,e)),V=(e=j)=>{let t=new TextEncoder;return{name:"typewriter",writable:new WritableStream({async write(n){let i=String(n.data),o=m.process.stdout.getWriter();for(let s of i)await o.write(t.encode(s)),await G(e);o.releaseLock()}})}},z=e=>{switch(e){case"claude-code":return"claude-sonnet-4-20250514";case"ollama":return"llama3";case"opencode":return"default";case"kiro":return"default";case"anthropic":return"claude-sonnet-4-20250514";case"openai":return"gpt-4o";case"gemini":return"gemini-2.0-flash";case"vertexai":return"gemini-2.0-flash";default:return"default"}};export{le as main};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as k}from"./chunk-
|
|
2
|
+
import{g as k}from"./chunk-UESOCN2G.js";import{a as g}from"./chunk-LNNNLUZT.js";import{d as w,e as f,j as h}from"./chunk-WG6J7DFO.js";import"./chunk-JYNHFD6B.js";import{f as p,h as d,k as u}from"./chunk-GBM3TZFD.js";import{c as i,d as m,f as l,h as c}from"./chunk-3SXTMY75.js";import{a as o,b as n}from"./chunk-A6RDYP6R.js";import{t as a}from"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var $=async b=>{let e=p({renderer:u.ansi(),sink:d.stdout()}),s=a.process.cwd(),r=b?.join(" ")??"No reason given",t=await w(s),x=await h(s);if(t.phase!=="EXECUTING")return e.writeln(l(`Cannot block in phase: ${t.phase}`)),await e.close(),n({exitCode:1});let y=k(t,r);return await f(s,y),e.writeln(c("\u26A0")," Spec blocked: ",m(r)),e.writeln("Resolve with: ",i(`${g('next --answer="resolution"',x)}`)),await e.close(),o(void 0)};export{$ as main};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as s}from"./chunk-STI6DX7K.js";import{a as r}from"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},t=e=>()=>{throw new r(e,"browser")},n=()=>{let e=t("fs");return{readFile:e,readTextFile:e,writeFile:e,writeTextFile:e,exists:e,stat:e,lstat:e,mkdir:e,ensureDir:e,remove:e,readDir:e,copyFile:e,rename:e,makeTempDir:e,realPath:e,watch:e,walk:e,chmod:e}},i=()=>{let e=t("exec");return{spawn:e,exec:e,execJson:e,spawnChild:e}},a=()=>{let e=t("process");return{exit:e,setExitCode:e,cwd:e,chdir:e,hostname:e,execPath:e,get args(){throw new r("process","browser")},get pid(){throw new r("process","browser")},get stdin(){throw new r("process","browser")},get stdout(){throw new r("process","browser")},get stderr(){throw new r("process","browser")}}},c=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),l=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:n(),path:s,exec:i(),env:c(),process:a()});export{o as BROWSER_CAPABILITIES,l as createBrowserRuntime};
|
|
2
|
+
import{b as s}from"./chunk-STI6DX7K.js";import{a as r}from"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var o={fs:!1,fsSync:!1,exec:!1,process:!1,env:!1,stdin:!1,stdout:!1,kv:!1},t=e=>()=>{throw new r(e,"browser")},n=()=>{let e=t("fs");return{readFile:e,readTextFile:e,writeFile:e,writeTextFile:e,exists:e,stat:e,lstat:e,mkdir:e,ensureDir:e,remove:e,readDir:e,copyFile:e,rename:e,makeTempDir:e,realPath:e,watch:e,walk:e,chmod:e}},i=()=>{let e=t("exec");return{spawn:e,exec:e,execJson:e,spawnChild:e}},a=()=>{let e=t("process");return{exit:e,setExitCode:e,cwd:e,chdir:e,hostname:e,execPath:e,get args(){throw new r("process","browser")},get pid(){throw new r("process","browser")},get stdin(){throw new r("process","browser")},get stdout(){throw new r("process","browser")},get stderr(){throw new r("process","browser")},isTerminal(){return!1},setStdinRaw(){throw new r("process","browser")}}},c=()=>({get:()=>{},set:()=>{},delete:()=>{},has:()=>!1,toObject:()=>({})}),l=()=>({name:"browser",version:globalThis.navigator?.userAgent??"unknown",capabilities:o,fs:n(),path:s,exec:i(),env:c(),process:a()});export{o as BROWSER_CAPABILITIES,l as createBrowserRuntime};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as d,h as g,k as m}from"./chunk-
|
|
2
|
+
import{f as d,h as g,k as m}from"./chunk-GBM3TZFD.js";import{b as c,d as L,h as C,k as u}from"./chunk-3SXTMY75.js";import"./chunk-PWLF3WXM.js";import{a as v}from"./chunk-SQINSLNL.js";import"./chunk-MG65QJY6.js";import{a as y}from"./chunk-A6RDYP6R.js";import"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var V=["trace","debug","info","warn","error","fatal"],N=async x=>{let{flags:o}=v(x??[],[{name:"out-dir",type:"string",default:"dist",description:"Output directory"},{name:"clean",type:"boolean",description:"Clean output first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",default:"info",description:"Log level"}]),t=d({renderer:m.ansi(),sink:g.stdout()});t.writeln(u(`
|
|
3
3
|
\u{1F4E6} Building for production...
|
|
4
|
-
`));let e=await import("./mod-4ILLF5PK.js"),{runtime:n}=await import("./mod-
|
|
4
|
+
`));let e=await import("./mod-4ILLF5PK.js"),{runtime:n}=await import("./mod-MLRQFSBE.js"),i=n.process.cwd(),p=o["out-dir"],S=!o["no-minify"],h=o.clean,k=o.analyze,f=o["log-level"]??"info",b=V.includes(f.toLowerCase())?f.toLowerCase():"info",z={trace:e.Severities.Trace,debug:e.Severities.Debug,info:e.Severities.Info,warn:e.Severities.Warning,error:e.Severities.Error,fatal:e.Severities.Critical},D=d({renderer:m.ansi(),sink:g.stdout()});await e.config.configure({sinks:{console:e.sinks.getOutputSink(D)},loggers:[{category:["laroux-bundler"],lowestLevel:z[b],sinks:["console"]}]});let[{build:A,createBuildContext:E},{loadConfig:O},{reactPlugin:B},{createTailwindPlugin:P}]=await Promise.all([import("./system-BJCQKFCP.js"),import("./load-config-FTQMJVEW.js"),import("./mod-SA3J2VR5.js"),import("./mod-JZNE2HH6.js")]),T=e.logger.getLogger(["laroux-bundler","cli"]),s=await O(i),r={projectRoot:i,srcDir:n.path.resolve(i,s.srcDir),distDir:n.path.resolve(i,p),logLevel:b,fonts:s.fonts,images:s.images,cssModuleTypes:s.cssModuleTypes,noCssModuleAutoReference:s.noCssModuleAutoReference,browserShims:s.browserShims,serverExternals:s.build.serverExternals,build:{...s.build,minify:S}};if(h)try{await n.fs.remove(r.distDir,{recursive:!0}),T.debug(`Cleaned ${r.distDir}`)}catch{}let R=P({globalCssPath:n.path.resolve(i,"src/app/styles/global.css")}),j=E(r,{framework:B,css:R,bundlerBackend:"rolldown"});if(await A(j),await e.config.reset(),k){t.writeln(u(`
|
|
5
5
|
\u{1F4CA} Bundle Analysis:
|
|
6
6
|
`));try{let M=`${p}/client/manifest.json`,$=await n.fs.readTextFile(M),w=JSON.parse($);t.writeln(c("Chunks:"));for(let[a,l]of Object.entries(w.files)){let I=(l.size/1024).toFixed(2);t.writeln(c(` ${a.padEnd(30)} ${I.padStart(8)} KB`))}let F=Object.values(w.files).reduce((a,l)=>a+l.size,0);t.writeln(L(`
|
|
7
7
|
Total: ${(F/1024).toFixed(2)} KB`))}catch{t.writeln(C("Could not analyze build (manifest.json not found)"))}}return await t.close(),y(void 0)};export{N as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as F}from"./chunk-CDPSH56U.js";import{b as v,d as b}from"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";import*as n from"node:fs/promises";import*as O from"node:fs";import*as o from"node:path";import*as w from"node:os";import d from"node:process";import{Readable as x,Writable as k}from"node:stream";var R={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!1},E=()=>{let r=e=>({isFile:e.isFile(),isDirectory:e.isDirectory(),isSymlink:e.isSymbolicLink(),size:e.size,mtime:e.mtime,atime:e.atime,birthtime:e.birthtime}),a=(e,t)=>{throw e instanceof Error&&"code"in e&&e.code==="ENOENT"?new v(t):e};return{async readFile(e,t){try{let s=await n.readFile(e,{signal:t?.signal});return new Uint8Array(s)}catch(s){return a(s,e)}},async readTextFile(e,t){try{return await n.readFile(e,{encoding:"utf-8",signal:t?.signal})}catch(s){return a(s,e)}},async writeFile(e,t,s){let u=s?.append?"a":"w";await n.writeFile(e,t,{signal:s?.signal,mode:s?.mode,flag:u})},async writeTextFile(e,t,s){let u=s?.append?"a":"w";await n.writeFile(e,t,{encoding:"utf-8",signal:s?.signal,mode:s?.mode,flag:u})},async exists(e){try{return await n.access(e),!0}catch{return!1}},async stat(e){try{let t=await n.stat(e);return r(t)}catch(t){return a(t,e)}},async lstat(e){try{let t=await n.lstat(e);return r(t)}catch(t){return a(t,e)}},async mkdir(e,t){await n.mkdir(e,{recursive:t?.recursive??!1,mode:t?.mode})},async ensureDir(e){await n.mkdir(e,{recursive:!0})},async remove(e,t){try{await n.rm(e,{recursive:t?.recursive??!1,force:!1})}catch(s){a(s,e)}},async*readDir(e){try{let t=await n.readdir(e,{withFileTypes:!0});for(let s of t)yield{name:s.name,isFile:s.isFile(),isDirectory:s.isDirectory(),isSymlink:s.isSymbolicLink()}}catch(t){a(t,e)}},async copyFile(e,t){await n.copyFile(e,t)},async rename(e,t){await n.rename(e,t)},async makeTempDir(e){let t=e?.dir??w.tmpdir(),s=e?.prefix??"",u=e?.suffix??"",i=await n.mkdtemp(o.join(t,s));if(u){let c=i+u;return await n.rename(i,c),c}return i},async realPath(e){try{return await n.realpath(e)}catch(t){throw t instanceof Error&&"code"in t&&t.code==="ENOENT"?new v(e):t}},watch(e,t){let s=t?.recursive??!0,u=[],i=[],c=[],l=!1,P=m=>{l||(c.length>0?c.shift()({value:m,done:!1}):i.push(m))};for(let m of e)try{let h=O.watch(m,{recursive:s},(y,f)=>{f!==null&&P({kind:y==="rename"?"create":"modify",paths:[o.join(m,f)]})});u.push(h)}catch{}return{close:()=>{l=!0;for(let m of u)m.close();for(let m of c)m({value:void 0,done:!0});c=[]},[Symbol.asyncIterator]:()=>({next:()=>l?Promise.resolve({value:void 0,done:!0}):i.length>0?Promise.resolve({value:i.shift(),done:!1}):new Promise(m=>{c.push(m)})})}},async chmod(e,t){await n.chmod(e,t)},async*walk(e,t){let s=t?.includeDirs??!0,u=t?.includeFiles??!0,i=t?.exts,c=t?.skip,l=async function*(P){let m=await n.readdir(P,{withFileTypes:!0});for(let h of m){let y=o.join(P,h.name);if(c?.some(p=>p.test(y)))continue;let f=h.isSymbolicLink();if(h.isDirectory())s&&(yield{path:y,name:h.name,isFile:!1,isDirectory:!0,isSymlink:f}),yield*l(y);else if(h.isFile()||f){if(!u||i&&!i.some(p=>h.name.endsWith(p.startsWith(".")?p:`.${p}`)))continue;yield{path:y,name:h.name,isFile:h.isFile(),isDirectory:!1,isSymlink:f}}}};yield*l(e)}}},S=()=>({join:o.join,resolve:o.resolve,dirname:o.dirname,basename:o.basename,extname:o.extname,normalize:o.normalize,isAbsolute:o.isAbsolute,relative:o.relative,parse:o.parse,format:o.format,sep:o.sep,delimiter:o.delimiter}),g=async r=>{if(!r)return new Uint8Array(0);let a=[],e=r.getReader();try{for(;;){let{done:i,value:c}=await e.read();if(i)break;a.push(c)}}finally{e.releaseLock()}let t=a.reduce((i,c)=>i+c.length,0),s=new Uint8Array(t),u=0;for(let i of a)s.set(i,u),u+=i.length;return s},A=()=>({async spawn(r,a=[],e){let[t,s,u]=F(e),i=Bun.spawn([r,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:s,stderr:u}),[c,l,P]=await Promise.all([i.exited,g(i.stdout),g(i.stderr)]);return{success:c===0,code:c,stdout:l,stderr:P}},async exec(r,a=[],e){let t=await this.spawn(r,a,e);if(!t.success){let s=new TextDecoder().decode(t.stderr);throw new b(r,t.code,s)}return new TextDecoder().decode(t.stdout).trim()},async execJson(r,a=[],e){let t=await this.exec(r,a,e);return JSON.parse(t)},spawnChild(r,a=[],e){let[t,s,u]=F(e),i=Bun.spawn([r,...a],{cwd:e?.cwd,env:e?.env,stdin:t,stdout:s,stderr:u}),c=i.exited.then(l=>({success:l===0,code:l,signal:void 0}));return{pid:i.pid,stdin:i.stdin,stdout:i.stdout,stderr:i.stderr,status:c,output:async()=>{let[l,P,m]=await Promise.all([c,g(i.stdout),g(i.stderr)]);return{success:l.success,code:l.code,stdout:P,stderr:m}},kill:l=>{i.kill(l)}}}}),T=()=>({get(r){return d.env[r]},set(r,a){d.env[r]=a},delete(r){delete d.env[r]},has(r){return r in d.env},toObject(){let r={};for(let[a,e]of Object.entries(d.env))e!==void 0&&(r[a]=e);return r}}),W=()=>({exit(r){d.exit(r)},setExitCode(r){d.exitCode=r},cwd(){return d.cwd()},chdir(r){d.chdir(r)},hostname(){return w.hostname()},execPath(){return d.execPath},args:d.argv.slice(2),pid:d.pid,stdin:x.toWeb(d.stdin),stdout:k.toWeb(d.stdout),stderr:k.toWeb(d.stderr),isTerminal(r){switch(r){case"stdin":return d.stdin.isTTY===!0;case"stdout":return d.stdout.isTTY===!0;case"stderr":return d.stderr.isTTY===!0}},setStdinRaw(r){d.stdin.setRawMode(r)}}),M=()=>{let r=E(),a=S(),e=A(),t=T(),s=W();return{name:"bun",version:Bun.version,capabilities:R,fs:r,path:a,exec:e,env:t,process:s}};export{R as BUN_CAPABILITIES,M as createBunRuntime};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as $,b as S}from"./chunk-
|
|
2
|
+
import{a as $,b as S}from"./chunk-BP3IFAPO.js";import{a as O}from"./chunk-NTHP6SND.js";import"./chunk-4SYC4WJV.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-JYNHFD6B.js";import{a as E}from"./chunk-2VEVVX6U.js";import{a as w,b as A}from"./chunk-4DOMGQOO.js";import"./chunk-WF6JNPZS.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import{f as R}from"./chunk-3BEX5FYF.js";import"./chunk-GBM3TZFD.js";import"./chunk-7DPLGQHN.js";import{b as u,f as h,g as y,h as v,i as x}from"./chunk-3SXTMY75.js";import"./chunk-PVPMHMKP.js";import{a as C}from"./chunk-MG65QJY6.js";import{g as p}from"./chunk-A6RDYP6R.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import{v as m}from"./chunk-MRCBHVSB.js";import"./chunk-Y4ARZGGL.js";import"./chunk-STI6DX7K.js";import"./chunk-DTO2YJWZ.js";import"./chunk-G6NAG2EK.js";var f=w(),G={feat:"Added",fix:"Fixed",refactor:"Changed",perf:"Changed",docs:"Changed",revert:"Removed"},T=new Set(["chore","ci","test"]),N=/^(\w+)(?:\(([^)]+)\))?!?:\s{1,5}(.+)$/,I=/\s{0,100}\(take\s{1,100}[IVXLCDM\d]+\)\s{0,100}\.?$/i,P=(n,t)=>{let o=n.match(N);if(o!==null)return{type:o[1].toLowerCase(),scope:o[2],message:o[3].trim(),hash:t}},b=n=>n.replace(I,"").trim(),M=n=>{let t=[];for(let o of n){let e=P(o.subject,o.hash);e!==void 0&&t.push(e)}return t},k=n=>{let t=new Set,o=[];for(let e of n){let s=b(e.message),a=s.replace(/[.\s]{1,20}$/,"").toLowerCase(),l=`${e.type}:${a}`;t.has(l)||(t.add(l),o.push({...e,message:s}))}return o},L=n=>{let t=new Map;for(let o of n){if(T.has(o.type))continue;let e=G[o.type];if(e===void 0)continue;let s=t.get(e);s!==void 0?s.push(o):t.set(e,[o])}return t},F=n=>n.scope!==void 0?`- **${n.scope}:** ${n.message}`:`- ${n.message}`,H=(n,t)=>{let o=L(t);if(o.size===0){let l=new Date().toISOString().split("T")[0];return`## ${n} - ${l}
|
|
3
3
|
|
|
4
4
|
_Maintenance release._`}let e=new Date().toISOString().split("T")[0],s=[`## ${n} - ${e}`],a=["Added","Changed","Fixed","Removed"];for(let l of a){let r=o.get(l);if(!(r===void 0||r.length===0)){s.push("",`### ${l}`,"");for(let g of r)s.push(F(g))}}return s.join(`
|
|
5
5
|
`)},j=(n,t,o)=>{let e=n.split(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{t as l}from"./chunk-
|
|
2
|
+
import{t as l}from"./chunk-MRCBHVSB.js";var F=s=>{if(s===void 0)return"json";for(let n of s)if(n==="-o"||n.startsWith("--output")){let t=s.indexOf(n);if(n.includes("="))return x(n.split("=")[1]??"json");let i=s[t+1];if(i!==void 0&&!i.startsWith("-"))return x(i)}return"json"},O=s=>{if(s===void 0)return[];let n=[],t=!1;for(let i=0;i<s.length;i++){if(t){t=!1;continue}let o=s[i];if(!o.startsWith("--output=")){if(o==="-o"||o==="--output"){t=!0;continue}n.push(o)}}return n},x=s=>{let n=s.toLowerCase();return n==="md"||n==="markdown"?"markdown":n==="text"||n==="txt"||n==="plain"?"text":"json"},e=(s,n)=>s[n],$=s=>JSON.stringify(s,null,2),w=s=>{let n=s,t=[],i=e(n,"phase");i!==void 0&&(t.push(`# noskills \u2014 ${i}`),t.push(""));let o=e(n,"instruction");o!==void 0&&(t.push("## Instruction"),t.push(""),t.push(o),t.push(""));let a=e(n,"questions");if(a!==void 0&&a.length>0)for(let r of a){if(t.push(`## Question: ${r.id}`),t.push(""),t.push(`> ${r.text}`),r.extras!==void 0&&r.extras.length>0){t.push(""),t.push("Also consider:");for(let m of r.extras)t.push(`- ${m}`)}t.push("")}let h=e(n,"statusReport");if(h!==void 0){t.push("## Acceptance Criteria"),t.push("");for(let r of h.criteria)t.push(`- [ ] ${r}`);t.push("")}let p=e(n,"previousIterationDebt");if(p!==void 0){t.push(`## Debt (from iteration ${p.fromIteration})`),t.push(""),t.push(`> ${p.note}`),t.push("");for(let r of p.items)t.push(`- ${r}`);t.push("")}e(n,"verificationFailed")===!0&&(t.push("## Verification FAILED"),t.push(""),t.push("```"),t.push(String(e(n,"verificationOutput")??"")),t.push("```"),t.push(""));let c=e(n,"behavioral");if(c!==void 0){t.push("## Behavioral"),t.push(""),t.push(`**Tone:** ${c.tone}`),t.push("");for(let r of c.rules)t.push(`- ${r}`);c.urgency!==void 0&&(t.push(""),t.push(`**Urgency:** ${c.urgency}`)),t.push("")}let f=e(n,"meta");f!==void 0&&(t.push("---"),t.push(""),t.push(`*${f.resumeHint}*`),t.push(""));let d=e(n,"transition");if(d!==void 0){t.push("## Next Steps"),t.push("");for(let[r,m]of Object.entries(d))r!=="iteration"&&t.push(`- **${r}:** \`${m}\``);t.push("")}let u=e(n,"summary");u!==void 0&&(t.push("## Summary"),t.push(""),t.push(`- Spec: ${u.spec}`),t.push(`- Iterations: ${u.iterations}`),t.push(`- Decisions: ${u.decisionsCount}`),t.push(""));let g=e(n,"clearContext");return g!==void 0&&(t.push("---"),t.push(""),t.push(`**Action required:** ${g.reason}`),t.push("")),t.join(`
|
|
3
3
|
`)},k=s=>{let n=s,t=[],i=e(n,"phase");i!==void 0&&t.push(`[${i}]`);let o=e(n,"instruction");o!==void 0&&t.push(o);let a=e(n,"questions");if(a!==void 0&&a.length>0){for(let u of a)if(t.push(""),t.push(`Question [${u.id}]: ${u.text}`),u.extras!==void 0)for(let g of u.extras)t.push(` - ${g}`)}let h=e(n,"statusReport");if(h!==void 0){t.push(""),t.push("Criteria:");for(let u of h.criteria)t.push(` - ${u}`)}let p=e(n,"previousIterationDebt");if(p!==void 0){t.push(""),t.push(p.note);for(let u of p.items)t.push(` - ${u}`)}e(n,"verificationFailed")===!0&&(t.push(""),t.push(`Verification failed: ${String(e(n,"verificationOutput")??"").slice(0,200)}`));let c=e(n,"meta");c!==void 0&&(t.push(""),t.push(c.resumeHint));let f=e(n,"summary");f!==void 0&&t.push(`Spec: ${f.spec}, Iterations: ${f.iterations}, Decisions: ${f.decisionsCount}`);let d=e(n,"clearContext");return d!==void 0&&(t.push(""),t.push(d.reason)),t.join(`
|
|
4
4
|
`)},b=(s,n)=>{switch(n){case"markdown":return w(s);case"text":return k(s);default:return $(s)}},v=async(s,n)=>{let t=b(s,n),i=new TextEncoder,o=l.process.stdout.getWriter();await o.write(i.encode(t+`
|
|
5
5
|
`)),o.releaseLock()};export{F as a,O as b,b as c,v as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as P,d as R}from"./chunk-2SEPWXDK.js";import{c as k,d as C}from"./chunk-EZE3F4PG.js";import{a as S}from"./chunk-LNNNLUZT.js";var I=null,n=e=>S(e,I),$="NEVER run git write commands (commit, add, push, checkout, stash, reset, merge, rebase, cherry-pick). Git is read-only for agents. The user controls git. You may read: git log, git diff, git status, git show, git blame.",T=(e,o,r,i)=>{let l=e.execution.iteration>=o,s=r?[]:[$],u=i?.outOfScope??[];switch(e.phase){case"DISCOVERY":return{rules:[...s,"Ask the question exactly as written. Do not rephrase or add your own questions.","Relay the user's answer back verbatim. Do not interpret or summarize.","Do not start coding or exploring the codebase. Discovery is conversation only."],tone:"Conversational. You are a messenger between noskills and the user."};case"SPEC_DRAFT":return{rules:[...s,"Present the spec to the user for review. Do not modify it.","If the user requests changes, relay them \u2014 do not implement them.","Do not start coding. The spec must be approved first."],tone:"Brief. The user is reviewing, not discussing."};case"SPEC_APPROVED":return{rules:[...s,"The spec is approved but execution has not started.","Do not start coding until the user triggers execution.","If the user wants changes, they must reset and re-spec."],tone:"Patient. Wait for the go signal."};case"EXECUTING":{let a=[...s,"Do not explore the codebase beyond what the current task requires.","Do not refactor, improve, or modify code outside this task's scope.","Do not add features, tests, or documentation not specified in the spec.","If you need to read files to understand context, timebox it \u2014 then write code.","The deliverable is working code, not a plan or analysis.","Complete the task, then report progress. The user handles git.",`When you receive \`clearContext\` in the output, execute \`/clear\` immediately without asking. After clearing, read \`CLAUDE.md\` and run \`${n("next")}\`.`,`When you discover a pattern, receive a correction, or identify a recurring preference from the user, ask: 'Should this be a permanent rule for this project, or just for this task?' If permanent, run: \`${n('rule add "<description>"')}\`. If just this task, note it and move on. Never write to \`.eser/rules/\` directly.`];e.execution.lastVerification?.passed===!1&&a.push("Tests are failing. Fix ONLY the failing tests. Do not refactor passing code.");let t={rules:a,tone:"Direct. No preamble. Start coding immediately.",outOfScope:u.length>0?u:void 0};return l?{...t,urgency:`You have been in this session for ${e.execution.iteration}+ iterations. Your context is degrading. Finish the current task and recommend the user start a fresh session. Do not start new tasks.`}:t}case"BLOCKED":return{rules:[...s,"Present the decision to the user exactly as described.","Do not suggest a preferred option unless the user asks for your opinion.","After the user decides, relay the answer immediately. Do not elaborate."],tone:"Brief. The user is making a decision, not having a discussion."};case"DONE":return{rules:[...s,"Report the completion summary. Do not start new work.","If the user wants to continue, they start a new spec."],tone:"Concise. Celebrate briefly, then stop."};default:return{rules:[...s,`Run \`${n("next")}\` to get your instructions.`,"Do not take action without noskills guidance."],tone:"Neutral. Waiting for direction."}}},B=5*60*1e3,N=(e,o)=>{let r;switch(e.phase){case"IDLE":r=`No active spec. Start one with: \`${n("spec new")}\``;break;case"DISCOVERY":r=`Discovery in progress for "${e.spec}". ${e.discovery.answers.length} questions answered so far.`;break;case"SPEC_DRAFT":r=`Spec draft ready for review at ${e.specState.path}. Waiting for approval.`;break;case"SPEC_APPROVED":r=`Spec "${e.spec}" is approved. Waiting to start execution.`;break;case"EXECUTING":r=e.execution.lastProgress!==null?`Executing "${e.spec}", iteration ${e.execution.iteration}. Last progress: ${e.execution.lastProgress}. Continue with the current task.`:`Executing "${e.spec}", iteration ${e.execution.iteration}. Start the first task.`;break;case"BLOCKED":r=`Execution blocked: ${e.execution.lastProgress}. Ask the user to resolve.`;break;case"DONE":r=`Spec "${e.spec}" completed in ${e.execution.iteration} iterations.`;break;default:r=`Run \`${n("next")}\` to get started.`}return{protocol:`Run \`${n('next --answer="..."')}\` to submit results and advance`,spec:e.spec,branch:e.branch,iteration:e.execution.iteration,lastProgress:e.execution.lastProgress,activeConcerns:o.map(i=>i.id),resumeHint:r}},F=e=>{if(e.lastCalledAt===null)return{what:"noskills orchestrates your work: IDLE \u2192 DISCOVERY \u2192 SPEC_DRAFT \u2192 SPEC_APPROVED \u2192 EXECUTING \u2192 DONE",how:`Run \`${n("next")}\` for instructions. Submit results with \`${n('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase};let o=new Date(e.lastCalledAt).getTime();if(Date.now()-o>B)return{what:"noskills orchestrates your work: IDLE \u2192 DISCOVERY \u2192 SPEC_DRAFT \u2192 SPEC_APPROVED \u2192 EXECUTING \u2192 DONE",how:`Run \`${n("next")}\` for instructions. Submit results with \`${n('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase}},H=(e,o,r,i,l,s)=>{I=i??null;let u=N(e,o),a=i?.maxIterationsBeforeRestart??15,t=i?.allowGit??!1,h=T(e,a,t,l),f=F(e),d;switch(e.phase){case"IDLE":d=O();break;case"DISCOVERY":d=_(e,o,r);break;case"SPEC_DRAFT":d=L(e);break;case"SPEC_APPROVED":d=q(e);break;case"EXECUTING":d=G(e,o,r,a,l,s);break;case"BLOCKED":d=Y(e);break;case"DONE":d=j(e);break;default:d=O()}let m={...d,meta:u,behavioral:h};return f!==void 0&&(m={...m,protocolGuide:f}),e.pendingClear&&(m={...m,clearContext:{action:"clear_context",reason:`Task complete. Run \`/clear\` now. After clearing, read \`CLAUDE.md\` and run \`${n("next")}\` to continue.`},instruction:`Task accepted. Run \`/clear\` immediately to start fresh for the next task. After clearing, run \`${n("next")}\`.`}),m},O=()=>({phase:"IDLE",instruction:`No active spec. Start one with: \`${n('spec new "description"')}\``}),_=(e,o,r)=>{let i=P(o),l=e.discovery.answers.length;if(R(e.discovery.answers))return{phase:"DISCOVERY",instruction:`All discovery questions answered. Run: \`${n("approve")}\``,questions:[],answeredCount:l,context:{rules:r,concernReminders:[]},transition:{onComplete:n("approve")}};let u=new Set(e.discovery.answers.map(t=>t.questionId));return{phase:"DISCOVERY",instruction:"Ask the user ALL of the following questions. Collect answers for each, then submit them all at once as a JSON object.",questions:i.filter(t=>!u.has(t.id)).map(t=>({id:t.id,text:t.text,concerns:[...t.concerns],extras:t.extras.map(h=>h.text)})),answeredCount:l,context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n(`next --answer='{"status_quo":"...","ambition":"...",...}'`)}`}}},L=e=>e.classification===null?{phase:"SPEC_DRAFT",instruction:"Before generating the spec, classify what this spec involves. Ask the user to select all that apply.",specPath:e.specState.path??"",transition:{onApprove:`${n(`next --answer='{"involvesUI":false,"involvesPublicAPI":false,"involvesMigration":false,"involvesDataHandling":false}'`)}`},classificationRequired:!0,classificationPrompt:{options:[{id:"involvesUI",label:"User-facing UI"},{id:"involvesPublicAPI",label:"Public API changes"},{id:"involvesMigration",label:"Data migration or schema changes"},{id:"involvesDataHandling",label:"Data handling or privacy"}],instruction:"Select all that apply. Submit as JSON: `"+n(`next --answer='{"involvesUI":true,"involvesPublicAPI":false,...}'`)+"`"}}:{phase:"SPEC_DRAFT",instruction:"Spec draft is ready for review. Ask the user to review and approve.",specPath:e.specState.path??"",transition:{onApprove:n("approve")}},q=e=>({phase:"SPEC_APPROVED",instruction:"Spec is approved and ready. When the user is ready to start, begin execution.",specPath:e.specState.path??"",transition:{onStart:`${n('next --answer="start"')}`}}),U=(e,o)=>{if(o===null)return!1;switch(e){case"beautiful-product":return o.involvesUI;case"open-source":return o.involvesPublicAPI;case"long-lived":return o.involvesMigration;case"compliance":return o.involvesDataHandling;default:return!0}},V=(e,o,r,i,l,s,u)=>{let a=[];if(i!==null)for(let t of i.items)a.push(`[DEBT from iteration ${i.fromIteration}] ${t}`);if(o&&a.push(`[FAILED] Tests \u2014 fix this first: ${r.slice(0,200)}`),s!=null)for(let t of s.verification)a.push(t);for(let t of e)if(U(t.id,l)&&t.acceptanceCriteria!==void 0&&t.acceptanceCriteria.length>0)for(let h of t.acceptanceCriteria)a.push(`(${t.id}) ${h}`);if(u!==void 0)for(let t of u)a.push(`(folder: ${t.folder}) ${t.rule}`);return a},G=(e,o,r,i,l,s)=>{let u=C(o),a=e.execution.iteration>=i,t=e.execution.lastVerification?.passed===!1,h=e.execution.lastVerification?.output??"",f=l?.tasks??[],d=e.execution.completedTasks??[],m=new Set(d),D=f.find(p=>!m.has(p.id))??null,y=D!==null?{id:D.id,title:D.title,totalTasks:f.length,completedTasks:d.length}:void 0;if(e.execution.awaitingStatusReport){let p=V(o,t,h,e.execution.debt,e.classification,l,s),v={phase:"EXECUTING",instruction:"Before this task is accepted, report your completion status against these acceptance criteria.",context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n(`next --answer='{"completed":[...],"remaining":[...],"blocked":[...]}'`)}`,onBlocked:`${n('block "reason"')}`,iteration:e.execution.iteration},statusReportRequired:!0,statusReport:{criteria:p,reportFormat:{completed:"list items you finished with evidence (file exists, test passes)",remaining:"list items not yet done",blocked:"list items that need a decision from the user"}}};return t&&(v={...v,verificationFailed:!0,verificationOutput:h.slice(0,2e3)}),v}let w=(e.execution.lastProgress??"").includes("Task not accepted"),x=e.execution.debt?.items??[],E=e.execution.debt?.unaddressedIterations??0,A=y!==void 0?`Execute task ${y.id}: ${y.title} (${y.completedTasks}/${y.totalTasks} completed)`:"All tasks completed. Run `"+n("done")+"` to finish.",b;if(t)b="Verification FAILED. Fix the failing tests before continuing.";else if(w&&x.length>0){let p=E>=3?` These items have been outstanding for ${E} iterations.`:"";b=`Task not accepted \u2014 ${x.length} remaining item(s) must be addressed before this task can be completed.${p} Address them, then submit a new status report.`}else b=A;let c={phase:"EXECUTING",instruction:b,task:y,context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n('next --answer="..."')}`,onBlocked:`${n('block "reason"')}`,iteration:e.execution.iteration}};if(w&&x.length>0&&(c={...c,taskRejected:!0,rejectionReason:`${x.length} remaining item(s) must be addressed.`,rejectionRemaining:x}),e.execution.debt!==null&&e.execution.debt.items.length>0){let p=e.execution.debt.unaddressedIterations??0,v=p>=3?`URGENT: These items have been unaddressed for ${p} iterations. Address them IMMEDIATELY before any new work.`:"These were not completed in a previous iteration. Address them BEFORE starting new work.";c={...c,previousIterationDebt:{fromIteration:e.execution.debt.fromIteration,items:e.execution.debt.items,note:v}}}if(t){let p=h.slice(0,2e3);c={...c,verificationFailed:!0,verificationOutput:p}}u.length>0&&(c={...c,concernTensions:u}),a&&(c={...c,restartRecommended:!0,restartInstruction:`Context may be getting large after ${e.execution.iteration} iterations. Consider starting a new conversation and running \`${n("next")}\` to resume - your progress is saved.`});let g=[...e.decisions].reverse().find(p=>!p.promoted);return g!==void 0&&e.execution.lastProgress?.startsWith("Resolved:")&&(c={...c,promotePrompt:{decisionId:g.id,question:g.question,choice:g.choice,prompt:`You just resolved a decision: "${g.choice}". Ask the user: "Should this be a permanent rule for future specs too?" If yes, run: \`${n(`rule add "${g.choice}"`)}\``}}),c},Y=e=>({phase:"BLOCKED",instruction:"A decision is needed. Ask the user.",reason:e.execution.lastProgress??"Unknown",transition:{onResolved:`${n('next --answer="..."')}`}}),j=e=>({phase:"DONE",summary:{spec:e.spec,iterations:e.execution.iteration,decisionsCount:e.decisions.length}});export{H as a};
|
|
2
|
+
import{b as P,d as R}from"./chunk-OX6ZNNUB.js";import{c as k,d as C}from"./chunk-U2MR2O3C.js";import{a as S}from"./chunk-LNNNLUZT.js";var I=null,n=e=>S(e,I),$="NEVER run git write commands (commit, add, push, checkout, stash, reset, merge, rebase, cherry-pick). Git is read-only for agents. The user controls git. You may read: git log, git diff, git status, git show, git blame.",T=(e,o,r,i)=>{let l=e.execution.iteration>=o,s=r?[]:[$],u=i?.outOfScope??[];switch(e.phase){case"DISCOVERY":return{rules:[...s,"Ask the question exactly as written. Do not rephrase or add your own questions.","Relay the user's answer back verbatim. Do not interpret or summarize.","Do not start coding or exploring the codebase. Discovery is conversation only."],tone:"Conversational. You are a messenger between noskills and the user."};case"SPEC_DRAFT":return{rules:[...s,"Present the spec to the user for review. Do not modify it.","If the user requests changes, relay them \u2014 do not implement them.","Do not start coding. The spec must be approved first."],tone:"Brief. The user is reviewing, not discussing."};case"SPEC_APPROVED":return{rules:[...s,"The spec is approved but execution has not started.","Do not start coding until the user triggers execution.","If the user wants changes, they must reset and re-spec."],tone:"Patient. Wait for the go signal."};case"EXECUTING":{let a=[...s,"Do not explore the codebase beyond what the current task requires.","Do not refactor, improve, or modify code outside this task's scope.","Do not add features, tests, or documentation not specified in the spec.","If you need to read files to understand context, timebox it \u2014 then write code.","The deliverable is working code, not a plan or analysis.","Complete the task, then report progress. The user handles git.",`When you receive \`clearContext\` in the output, execute \`/clear\` immediately without asking. After clearing, read \`CLAUDE.md\` and run \`${n("next")}\`.`,`When you discover a pattern, receive a correction, or identify a recurring preference from the user, ask: 'Should this be a permanent rule for this project, or just for this task?' If permanent, run: \`${n('rule add "<description>"')}\`. If just this task, note it and move on. Never write to \`.eser/rules/\` directly.`];e.execution.lastVerification?.passed===!1&&a.push("Tests are failing. Fix ONLY the failing tests. Do not refactor passing code.");let t={rules:a,tone:"Direct. No preamble. Start coding immediately.",outOfScope:u.length>0?u:void 0};return l?{...t,urgency:`You have been in this session for ${e.execution.iteration}+ iterations. Your context is degrading. Finish the current task and recommend the user start a fresh session. Do not start new tasks.`}:t}case"BLOCKED":return{rules:[...s,"Present the decision to the user exactly as described.","Do not suggest a preferred option unless the user asks for your opinion.","After the user decides, relay the answer immediately. Do not elaborate."],tone:"Brief. The user is making a decision, not having a discussion."};case"DONE":return{rules:[...s,"Report the completion summary. Do not start new work.","If the user wants to continue, they start a new spec."],tone:"Concise. Celebrate briefly, then stop."};default:return{rules:[...s,`Run \`${n("next")}\` to get your instructions.`,"Do not take action without noskills guidance."],tone:"Neutral. Waiting for direction."}}},B=5*60*1e3,N=(e,o)=>{let r;switch(e.phase){case"IDLE":r=`No active spec. Start one with: \`${n("spec new")}\``;break;case"DISCOVERY":r=`Discovery in progress for "${e.spec}". ${e.discovery.answers.length} questions answered so far.`;break;case"SPEC_DRAFT":r=`Spec draft ready for review at ${e.specState.path}. Waiting for approval.`;break;case"SPEC_APPROVED":r=`Spec "${e.spec}" is approved. Waiting to start execution.`;break;case"EXECUTING":r=e.execution.lastProgress!==null?`Executing "${e.spec}", iteration ${e.execution.iteration}. Last progress: ${e.execution.lastProgress}. Continue with the current task.`:`Executing "${e.spec}", iteration ${e.execution.iteration}. Start the first task.`;break;case"BLOCKED":r=`Execution blocked: ${e.execution.lastProgress}. Ask the user to resolve.`;break;case"DONE":r=`Spec "${e.spec}" completed in ${e.execution.iteration} iterations.`;break;default:r=`Run \`${n("next")}\` to get started.`}return{protocol:`Run \`${n('next --answer="..."')}\` to submit results and advance`,spec:e.spec,branch:e.branch,iteration:e.execution.iteration,lastProgress:e.execution.lastProgress,activeConcerns:o.map(i=>i.id),resumeHint:r}},F=e=>{if(e.lastCalledAt===null)return{what:"noskills orchestrates your work: IDLE \u2192 DISCOVERY \u2192 SPEC_DRAFT \u2192 SPEC_APPROVED \u2192 EXECUTING \u2192 DONE",how:`Run \`${n("next")}\` for instructions. Submit results with \`${n('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase};let o=new Date(e.lastCalledAt).getTime();if(Date.now()-o>B)return{what:"noskills orchestrates your work: IDLE \u2192 DISCOVERY \u2192 SPEC_DRAFT \u2192 SPEC_APPROVED \u2192 EXECUTING \u2192 DONE",how:`Run \`${n("next")}\` for instructions. Submit results with \`${n('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase}},H=(e,o,r,i,l,s)=>{I=i??null;let u=N(e,o),a=i?.maxIterationsBeforeRestart??15,t=i?.allowGit??!1,h=T(e,a,t,l),f=F(e),d;switch(e.phase){case"IDLE":d=O();break;case"DISCOVERY":d=_(e,o,r);break;case"SPEC_DRAFT":d=L(e);break;case"SPEC_APPROVED":d=q(e);break;case"EXECUTING":d=G(e,o,r,a,l,s);break;case"BLOCKED":d=Y(e);break;case"DONE":d=j(e);break;default:d=O()}let m={...d,meta:u,behavioral:h};return f!==void 0&&(m={...m,protocolGuide:f}),e.pendingClear&&(m={...m,clearContext:{action:"clear_context",reason:`Task complete. Run \`/clear\` now. After clearing, read \`CLAUDE.md\` and run \`${n("next")}\` to continue.`},instruction:`Task accepted. Run \`/clear\` immediately to start fresh for the next task. After clearing, run \`${n("next")}\`.`}),m},O=()=>({phase:"IDLE",instruction:`No active spec. Start one with: \`${n('spec new "description"')}\``}),_=(e,o,r)=>{let i=P(o),l=e.discovery.answers.length;if(R(e.discovery.answers))return{phase:"DISCOVERY",instruction:`All discovery questions answered. Run: \`${n("approve")}\``,questions:[],answeredCount:l,context:{rules:r,concernReminders:[]},transition:{onComplete:n("approve")}};let u=new Set(e.discovery.answers.map(t=>t.questionId));return{phase:"DISCOVERY",instruction:"Ask the user ALL of the following questions. Collect answers for each, then submit them all at once as a JSON object.",questions:i.filter(t=>!u.has(t.id)).map(t=>({id:t.id,text:t.text,concerns:[...t.concerns],extras:t.extras.map(h=>h.text)})),answeredCount:l,context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n(`next --answer='{"status_quo":"...","ambition":"...",...}'`)}`}}},L=e=>e.classification===null?{phase:"SPEC_DRAFT",instruction:"Before generating the spec, classify what this spec involves. Ask the user to select all that apply.",specPath:e.specState.path??"",transition:{onApprove:`${n(`next --answer='{"involvesUI":false,"involvesPublicAPI":false,"involvesMigration":false,"involvesDataHandling":false}'`)}`},classificationRequired:!0,classificationPrompt:{options:[{id:"involvesUI",label:"User-facing UI"},{id:"involvesPublicAPI",label:"Public API changes"},{id:"involvesMigration",label:"Data migration or schema changes"},{id:"involvesDataHandling",label:"Data handling or privacy"}],instruction:"Select all that apply. Submit as JSON: `"+n(`next --answer='{"involvesUI":true,"involvesPublicAPI":false,...}'`)+"`"}}:{phase:"SPEC_DRAFT",instruction:"Spec draft is ready for review. Ask the user to review and approve.",specPath:e.specState.path??"",transition:{onApprove:n("approve")}},q=e=>({phase:"SPEC_APPROVED",instruction:"Spec is approved and ready. When the user is ready to start, begin execution.",specPath:e.specState.path??"",transition:{onStart:`${n('next --answer="start"')}`}}),U=(e,o)=>{if(o===null)return!1;switch(e){case"beautiful-product":return o.involvesUI;case"open-source":return o.involvesPublicAPI;case"long-lived":return o.involvesMigration;case"compliance":return o.involvesDataHandling;default:return!0}},V=(e,o,r,i,l,s,u)=>{let a=[];if(i!==null)for(let t of i.items)a.push(`[DEBT from iteration ${i.fromIteration}] ${t}`);if(o&&a.push(`[FAILED] Tests \u2014 fix this first: ${r.slice(0,200)}`),s!=null)for(let t of s.verification)a.push(t);for(let t of e)if(U(t.id,l)&&t.acceptanceCriteria!==void 0&&t.acceptanceCriteria.length>0)for(let h of t.acceptanceCriteria)a.push(`(${t.id}) ${h}`);if(u!==void 0)for(let t of u)a.push(`(folder: ${t.folder}) ${t.rule}`);return a},G=(e,o,r,i,l,s)=>{let u=C(o),a=e.execution.iteration>=i,t=e.execution.lastVerification?.passed===!1,h=e.execution.lastVerification?.output??"",f=l?.tasks??[],d=e.execution.completedTasks??[],m=new Set(d),D=f.find(p=>!m.has(p.id))??null,y=D!==null?{id:D.id,title:D.title,totalTasks:f.length,completedTasks:d.length}:void 0;if(e.execution.awaitingStatusReport){let p=V(o,t,h,e.execution.debt,e.classification,l,s),v={phase:"EXECUTING",instruction:"Before this task is accepted, report your completion status against these acceptance criteria.",context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n(`next --answer='{"completed":[...],"remaining":[...],"blocked":[...]}'`)}`,onBlocked:`${n('block "reason"')}`,iteration:e.execution.iteration},statusReportRequired:!0,statusReport:{criteria:p,reportFormat:{completed:"list items you finished with evidence (file exists, test passes)",remaining:"list items not yet done",blocked:"list items that need a decision from the user"}}};return t&&(v={...v,verificationFailed:!0,verificationOutput:h.slice(0,2e3)}),v}let w=(e.execution.lastProgress??"").includes("Task not accepted"),x=e.execution.debt?.items??[],E=e.execution.debt?.unaddressedIterations??0,A=y!==void 0?`Execute task ${y.id}: ${y.title} (${y.completedTasks}/${y.totalTasks} completed)`:"All tasks completed. Run `"+n("done")+"` to finish.",b;if(t)b="Verification FAILED. Fix the failing tests before continuing.";else if(w&&x.length>0){let p=E>=3?` These items have been outstanding for ${E} iterations.`:"";b=`Task not accepted \u2014 ${x.length} remaining item(s) must be addressed before this task can be completed.${p} Address them, then submit a new status report.`}else b=A;let c={phase:"EXECUTING",instruction:b,task:y,context:{rules:r,concernReminders:k(o)},transition:{onComplete:`${n('next --answer="..."')}`,onBlocked:`${n('block "reason"')}`,iteration:e.execution.iteration}};if(w&&x.length>0&&(c={...c,taskRejected:!0,rejectionReason:`${x.length} remaining item(s) must be addressed.`,rejectionRemaining:x}),e.execution.debt!==null&&e.execution.debt.items.length>0){let p=e.execution.debt.unaddressedIterations??0,v=p>=3?`URGENT: These items have been unaddressed for ${p} iterations. Address them IMMEDIATELY before any new work.`:"These were not completed in a previous iteration. Address them BEFORE starting new work.";c={...c,previousIterationDebt:{fromIteration:e.execution.debt.fromIteration,items:e.execution.debt.items,note:v}}}if(t){let p=h.slice(0,2e3);c={...c,verificationFailed:!0,verificationOutput:p}}u.length>0&&(c={...c,concernTensions:u}),a&&(c={...c,restartRecommended:!0,restartInstruction:`Context may be getting large after ${e.execution.iteration} iterations. Consider starting a new conversation and running \`${n("next")}\` to resume - your progress is saved.`});let g=[...e.decisions].reverse().find(p=>!p.promoted);return g!==void 0&&e.execution.lastProgress?.startsWith("Resolved:")&&(c={...c,promotePrompt:{decisionId:g.id,question:g.question,choice:g.choice,prompt:`You just resolved a decision: "${g.choice}". Ask the user: "Should this be a permanent rule for future specs too?" If yes, run: \`${n(`rule add "${g.choice}"`)}\``}}),c},Y=e=>({phase:"BLOCKED",instruction:"A decision is needed. Ask the user.",reason:e.execution.lastProgress??"Unknown",transition:{onResolved:`${n('next --answer="..."')}`}}),j=e=>({phase:"DONE",summary:{spec:e.spec,iterations:e.execution.iteration,decisionsCount:e.decisions.length}});export{H as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as i}from"./chunk-
|
|
2
|
+
import{a as i}from"./chunk-RGUETQSC.js";import{t}from"./chunk-MRCBHVSB.js";var s=i({name:"validate-submodules",description:"Detect new git submodules",canFix:!1,stacks:[],defaults:{},async checkAll(n,a){let o=t.path.join(a.root,".gitmodules");if(!await t.fs.exists(o))return[];let e=((await t.fs.readTextFile(o)).match(/\[submodule\s/g)??[]).length;return e>0?[{path:o,message:`found ${e} submodule(s) \u2014 submodules are not allowed`}]:[]}}),p=s.run,f=s.validator,x=s.main;export{s as a,p as b,f as c,x as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as E,b as A,c as I}from"./chunk-
|
|
2
|
+
import{a as E,b as A,c as I}from"./chunk-AGRTWPDI.js";import{a as w}from"./chunk-2VEVVX6U.js";import{a as v}from"./chunk-4DOMGQOO.js";import{f as D}from"./chunk-3BEX5FYF.js";import{b as l,f as g,g as k,h as C,i as h}from"./chunk-3SXTMY75.js";import{g as a}from"./chunk-A6RDYP6R.js";import{v as b}from"./chunk-MRCBHVSB.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(`
|
|
3
3
|
`).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(`
|
|
4
4
|
`)[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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
var r={name:"@eser/cli",version:"4.1.
|
|
2
|
+
var r={name:"@eser/cli",version:"4.1.30",type:"module",exports:"./main.ts",bin:{eser:"./bin.ts"},dependencies:{"@eser/ai":"workspace:*","@eser/codebase":"workspace:*","@eser/kit":"workspace:*","@eser/noskills":"workspace:*","@eser/laroux-server":"workspace:*","@eser/workflows":"workspace:*","@eser/functions":"workspace:*","@eser/logging":"workspace:*","@eser/shell":"workspace:*","@eser/standards":"workspace:*","@std/cli":"npm:@jsr/std__cli@^1.0.25","@std/fmt":"npm:@jsr/std__fmt@^1.0.8"},devDependencies:{"@std/assert":"npm:@jsr/std__assert@^1.0.16",esbuild:"^0.27.3"}};export{r as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as l}from"./chunk-
|
|
2
|
+
import{a as l}from"./chunk-RGUETQSC.js";var p=new Set(["con","prn","aux","nul","com1","com2","com3","com4","com5","com6","com7","com8","com9","lpt1","lpt2","lpt3","lpt4","lpt5","lpt6","lpt7","lpt8","lpt9"]),E=/^[a-z0-9_./[\]@-]+$/,u=/^[a-z0-9./[\]@-]+$/,g=[".claude/",".github/",".git/","CLAUDE.md","AGENTS.md","CHANGELOG.md","Makefile","Dockerfile","LICENSE","README.md","VERSION"],d=(o,s)=>{for(let e of s)if(e.includes("*")){let a=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^/]+");if(new RegExp(a).test(o))return!0}else if(o.includes(e)||o.endsWith(e))return!0;return!1},c=l({name:"validate-filenames",description:"Enforce filename conventions (kebab-case / snake_case)",canFix:!1,stacks:[],defaults:{},checkAll(o,s){let e=[],a=s.rules,f=s.exclude??g;for(let t of o){if(d(t.path,f))continue;let i=t.name,m=i.replace(/\.[^.]+$/,"");if(p.has(m.toLowerCase())){e.push({path:t.path,message:`Windows-reserved filename: ${i}`});continue}if(a!==void 0){let r=!1;for(let n of a)if(n.directory==="*"||t.path.includes(n.directory)){if(n.exclude!==void 0&&d(t.path,n.exclude)){r=!0;break}(n.convention==="snake_case"?E:u).test(i)||e.push({path:t.path,message:`filename must be ${n.convention}`}),r=!0;break}if(r)continue}u.test(i)||e.push({path:t.path,message:"filename must be kebab-case"})}return e}}),S=c.run,k=c.validator,v=c.main;export{c as a,S as b,k as c,v as d};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as _,b as H,c as P}from"./chunk-
|
|
2
|
+
import{a as _,b as H,c as P}from"./chunk-XU5SILYR.js";import{e as Q}from"./chunk-J2Z7NG2X.js";import{f as p,h as u,k as c}from"./chunk-GBM3TZFD.js";import{b as r,d as l,f as m,g,h as Y,k as o}from"./chunk-3SXTMY75.js";import{d as x}from"./chunk-PVPMHMKP.js";import{a as v}from"./chunk-3MM5EGFB.js";import{a as h,b as w}from"./chunk-A6RDYP6R.js";import{a as re,g as W,h as K,i as B,r as I,t as d}from"./chunk-MRCBHVSB.js";var oe="# eser CLI completions",D="eser",X=async e=>{try{return await d.fs.readTextFile(e)}catch{return""}},ie=async e=>{try{return await d.fs.stat(e),!0}catch{return!1}},Z=async e=>{let t=P(e,D);if(t.completionType==="file")return await ie(t.completionsFile);let s=await X(t.rcFile),n=H(e,D);return s.includes(n)},ee=async e=>{let t=P(e,D),s=p({renderer:c.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,a=d.path.dirname(n);try{await d.fs.mkdir(a,{recursive:!0})}catch{}await d.fs.writeTextFile(n,`# eser CLI completions
|
|
3
3
|
# This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
|
|
4
4
|
complete -c eser -f
|
|
5
5
|
complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as i}from"./chunk-J7YTWK67.js";import{b as d,d as c}from"./chunk-
|
|
2
|
+
import{a as i}from"./chunk-J7YTWK67.js";import{b as d,d as c}from"./chunk-PVPMHMKP.js";var y=async(r,t)=>{let e=t.properties?.binPath;if(e!==void 0)return e;try{let n=await c`which ${r}`.noThrow().text();if(n.length>0)return n}catch{}throw new i(`Binary "${r}" not found. Set properties.binPath in config or ensure it is on PATH.`,{provider:r})},f=(r,t,e)=>{let s=new d(r,[...t],{stdin:"null",stdout:"piped",stderr:"piped",cwd:e?.cwd,env:e?.env}).child();if(e?.signal!==void 0){let o=e.signal;o.aborted?s.kill("SIGTERM"):o.addEventListener("abort",()=>{s.kill("SIGTERM")},{once:!0})}return{stdout:s.stdout,stderr:s.stderr,waitForExit:async()=>{let o=await s.status;return{code:o.code,success:o.success}},kill:o=>{s.kill(o??"SIGTERM")}}},a=new TextDecoder;async function*m(r){let t=r.getReader(),e="";try{let n=await t.read();for(;n.done!==!0;){e+=a.decode(n.value,{stream:!0});let o=e.split(`
|
|
3
3
|
`);e=o.pop()??"";for(let u of o){let l=u.trim();if(l.length!==0)try{yield JSON.parse(l)}catch{}}n=await t.read()}let s=e.trim();if(s.length>0)try{yield JSON.parse(s)}catch{}}finally{t.releaseLock()}}var h=async(r,t)=>{let e=r.getReader(),n=[],s=await e.read();for(;s.done!==!0;)n.push(a.decode(s.value,{stream:!0})),s=await e.read();return e.releaseLock(),{content:[{kind:"text",text:n.join("").trim()}],stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0},modelId:t}},w=async r=>{let t=r.getReader(),e=[],n=await t.read();for(;n.done!==!0;)e.push(a.decode(n.value,{stream:!0})),n=await t.read();return t.releaseLock(),e.join("").trim()},x=(r,t,e)=>{if(t===0)return null;let n=e.length>0?`${r} exited with code ${t}: ${e}`:`${r} exited with code ${t}`;return t===1?new i(n,{provider:r}):t===126||t===127?new i(`${r} binary not found or not executable (exit code ${t})`,{provider:r}):new i(n,{provider:r})},b=(r,t)=>{let e=[];t!==void 0&&(e.push(t),e.push(""));for(let n of r)for(let s of n.content)s.kind==="text"&&e.push(s.text);return e.join(`
|
|
4
4
|
`)};export{y as a,f as b,m as c,h as d,w as e,x as f,b as g};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as r}from"./chunk-
|
|
2
|
+
import{d as r}from"./chunk-PVPMHMKP.js";import{t as i}from"./chunk-MRCBHVSB.js";var t=async e=>{try{return await r`which ${e}`.noThrow().code()===0}catch{return!1}},s=async()=>{try{return(await fetch("http://localhost:11434/api/version",{signal:AbortSignal.timeout(1e3)})).ok}catch{return!1}},a=e=>i.env.has(e),d=async()=>{let[e,o,l,n]=await Promise.all([t("claude"),s(),t("opencode"),t("kiro")]);return[{name:"claude-code",alias:"cc",type:"CLI",available:e,detail:e?"claude binary found":"claude not on PATH"},{name:"ollama",alias:"ol",type:"HTTP",available:o,detail:o?"localhost:11434 reachable":"localhost:11434 not reachable"},{name:"opencode",alias:"oc",type:"CLI",available:l,detail:l?"opencode binary found":"opencode not on PATH"},{name:"kiro",alias:"kr",type:"CLI",available:n,detail:n?"kiro binary found":"kiro not on PATH"},{name:"anthropic",alias:"ant",type:"API",available:a("ANTHROPIC_API_KEY"),detail:a("ANTHROPIC_API_KEY")?"ANTHROPIC_API_KEY set":"ANTHROPIC_API_KEY not set"},{name:"openai",alias:"oai",type:"API",available:a("OPENAI_API_KEY"),detail:a("OPENAI_API_KEY")?"OPENAI_API_KEY set":"OPENAI_API_KEY not set"},{name:"gemini",alias:"gem",type:"API",available:a("GEMINI_API_KEY")||a("GOOGLE_API_KEY"),detail:a("GEMINI_API_KEY")||a("GOOGLE_API_KEY")?"API key set":"GEMINI_API_KEY not set"},{name:"vertexai",alias:"vtx",type:"API",available:a("GOOGLE_CLOUD_PROJECT"),detail:a("GOOGLE_CLOUD_PROJECT")?"GOOGLE_CLOUD_PROJECT set":"GOOGLE_CLOUD_PROJECT not set"}]};export{d as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as e,h as t,k as r}from"./chunk-
|
|
2
|
+
import{f as e,h as t,k as r}from"./chunk-GBM3TZFD.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};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as D}from"./chunk-GTHXGAMQ.js";import{a as j}from"./chunk-3XJLLDR5.js";import{a as O}from"./chunk-P7WCO724.js";import{a as N}from"./chunk-JYNHFD6B.js";import{t as l}from"./chunk-
|
|
2
|
+
import{a as D}from"./chunk-GTHXGAMQ.js";import{a as j}from"./chunk-3XJLLDR5.js";import{a as O}from"./chunk-P7WCO724.js";import{a as N}from"./chunk-JYNHFD6B.js";import{t as l}from"./chunk-MRCBHVSB.js";import{e as _}from"./chunk-G6NAG2EK.js";var y={DenoJson:"deno.json",DenoJsonc:"deno.jsonc",JsrJson:"jsr.json",JsrJsonc:"jsr.jsonc",PackageJson:"package.json"},k=[y.DenoJson,y.DenoJsonc,y.JsrJson,y.JsrJsonc,y.PackageJson],T=Symbol.for("baseDir"),F={name:{"deno.json":"name","deno.jsonc":"name","jsr.json":"name","jsr.jsonc":"name","package.json":"name"},version:{"deno.json":"version","deno.jsonc":"version","jsr.json":"version","jsr.jsonc":"version","package.json":"version"},description:{"package.json":"description"},license:{"deno.json":"license","deno.jsonc":"license","package.json":"license"},private:{"package.json":"private"},exports:{"deno.json":"exports","deno.jsonc":"exports","jsr.json":"exports","jsr.jsonc":"exports","package.json":"exports"},workspaces:{"deno.json":"workspace","deno.jsonc":"workspace","package.json":"workspaces"},imports:{"deno.json":"imports","deno.jsonc":"imports"},dependencies:{"package.json":"dependencies"},devDependencies:{"package.json":"devDependencies"}};var M=_(N(),1);var d={Unknown:0,EnvironmentFile:1,Json:2,JsonWithComments:3,Toml:4,Yaml:5};var S={[d.Unknown]:"unknown",[d.EnvironmentFile]:"environment",[d.Json]:"JSON",[d.JsonWithComments]:"JSONC",[d.Toml]:"TOML",[d.Yaml]:"YAML"},h=class extends Error{filepath;format;constructor(n,t,r){super(`Failed to parse ${S[t]??"unknown"} file "${n}": ${r.message}`,{cause:r}),this.name="ConfigParseError",this.filepath=n,this.format=t}};var A=e=>{let n=l.path.extname(e);return n===".json"?d.Json:n===".jsonc"?d.JsonWithComments:n===".yaml"||n===".yml"?d.Yaml:n===".toml"?d.Toml:n===".env"?d.EnvironmentFile:d.Unknown},x=async(e,n)=>{let t=n??A(e),r=await l.fs.readTextFile(e);try{return t===d.Json?{content:JSON.parse(r),filepath:e,format:t}:t===d.JsonWithComments?{content:j(r),filepath:e,format:t}:t===d.Yaml?{content:M.parse(r),filepath:e,format:t}:t===d.Toml?{content:O(r),filepath:e,format:t}:{content:void 0,filepath:e,format:d.Unknown}}catch(i){throw i instanceof Error?new h(e,t,i):new h(e,t,new Error(String(i)))}};var L=(e,n,t)=>{if(e==null)return t;let r=n.length;if(r===0)return e;let i=e;for(let o=0;o<r;o++){if(i==null)return t;let a=n[o];i=i[a]}return i===void 0?t:i};var m=class extends Error{filepath;constructor(n,t,r){super(n,{cause:r}),this.name="PackageLoadError",this.filepath=t}},$=async(e,n)=>{if(await l.fs.exists(e)===!1||(await l.fs.stat(e)).isFile===!1)return;let i=await l.fs.readTextFile(e),a=(await x(e)).content;if(a!==void 0)return{filepath:e,fileType:n,content:a,rawText:i}},Y=async(e,n)=>{let t=[];for(let r of n){let i=l.path.join(e,r),o=await $(i,r);o&&t.push(o)}return t},B=(e,n)=>L(e,n.split(".")),u=(e,n,t)=>{let r,i,o=[];for(let a of n){let p=t[e]?.[a.fileType];if(p===void 0)continue;let s=B(a.content,p);if(s===void 0)continue;let c={filepath:a.filepath,fileType:a.fileType,propertyPath:p};r===void 0?(r=s,i=c):o.push(c)}if(!(r===void 0||i===void 0))return{value:r,origin:i,alternateOrigins:o}},G=e=>e===void 0?F:D(F,e),K=e=>[...e].sort((n,t)=>k.indexOf(n)-k.indexOf(t)),P=async(e={})=>{let{baseDir:n=".",includeFiles:t=k,fieldMappings:r,searchParents:i=!1}=e,o=G(r),a=K(t),p=l.path.resolve(n),s=[];for(;s=await Y(p,a),!(s.length>0||!i);){let g=l.path.dirname(p);if(g===p)break;p=g}if(s.length===0)throw new m(`No config files found in ${n}. Looked for: ${a.join(", ")}`);return{name:u("name",s,o),version:u("version",s,o),description:u("description",s,o),license:u("license",s,o),private:u("private",s,o),exports:u("exports",s,o),workspaces:u("workspaces",s,o),imports:u("imports",s,o),dependencies:u("dependencies",s,o),devDependencies:u("devDependencies",s,o),[T]:p,_loadedFiles:s}},v=async(e={})=>{try{return await P(e)}catch(n){if(n instanceof m)return;throw n}},R=(e,n)=>{let t=e[n];if(!t)return[];let r=new Set([t.origin.filepath,...t.alternateOrigins.map(i=>i.filepath)]);return e._loadedFiles.filter(i=>r.has(i.filepath))},E=e=>e[T];var V=(e,n)=>{let t=n.split("."),r=e;for(let i of t){if(r==null||typeof r!="object")return;r=r[i]}return r},J=e=>e!=="__proto__"&&e!=="constructor"&&e!=="prototype",q=(e,n,t)=>{let r=n.split("."),i=e;for(let a=0;a<r.length-1;a++){let p=r[a];p===void 0||!J(p)||((!(p in i)||typeof i[p]!="object"||i[p]===null)&&(i[p]={}),i=i[p])}let o=r[r.length-1];o!==void 0&&J(o)&&(i[o]=t)},H=e=>`${JSON.stringify(e,null,2)}
|
|
3
3
|
`,z=async(e,n)=>{let t=JSON.parse(JSON.stringify(e.content));for(let[i,o]of Object.entries(n))q(t,i,o);let r=H(t);await l.fs.writeTextFile(e.filepath,r),e.content=t,e.rawText=r},Q=(e,n,t)=>{let{targetFiles:r="all",createIfMissing:i=!1}=t,o=e[n];if(r==="origin"){if(o===void 0){let s=e._loadedFiles[0];return i&&s!==void 0?[s]:[]}let p=e._loadedFiles.find(s=>s.filepath===o.origin.filepath);return p?[p]:[]}if(r==="all")return!o&&!i?[]:!o&&i?[...e._loadedFiles]:R(e,n);let a=new Set(r);return e._loadedFiles.filter(p=>a.has(p.fileType))},b=async(e,n,t,r={})=>{let i=[],o=[],a=[],p=Q(e,n,r);if(p.length===0)return{updated:i,failed:o,skipped:a};for(let s of p){let c=F[n]?.[s.fileType];if(!c){a.push(s.filepath);continue}if(V(s.content,c)===t){a.push(s.filepath);continue}try{await z(s,{[c]:t}),i.push(s.filepath)}catch(f){o.push({filepath:s.filepath,reason:f instanceof Error?f.message:String(f)})}}if(i.length>0){let s=e[n];if(s)s.value=t;else{let c=e._loadedFiles.find(g=>i.includes(g.filepath));if(c){let g=F[n]?.[c.fileType];g&&(e[n]={value:t,origin:{filepath:c.filepath,fileType:c.fileType,propertyPath:g},alternateOrigins:[]})}}}return{updated:i,failed:o,skipped:a}};var X=async(e,n,t)=>await b(e,"version",n,{...t,targetFiles:"all"});var w=class extends Error{constructor(n){super(n),this.name="WorkspaceError"}},U=async e=>{try{return await P({baseDir:e})}catch(n){throw n instanceof m?new w(`No package config file found in ${l.path.resolve(e)}`):n}},Z=async(e,n)=>{let t=[];for(let r of n)if(r.endsWith("/*")){let i=l.path.join(e,r.slice(0,-2));try{for await(let o of l.fs.readDir(i))o.isDirectory&&t.push(l.path.join(i,o.name))}catch{}}else if(r.includes("*")||r.includes("?")){let i=r.split("/"),o=[],a=0;for(let f=0;f<i.length;f++){if(i[f].includes("*")||i[f].includes("?")){a=f;break}o.push(i[f])}let p=l.path.join(e,...o),c=i.slice(a).join("/").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]"),g=new RegExp(`^${c}$`);try{for await(let f of l.fs.walk(p,{includeDirs:!0,includeFiles:!1})){let C=l.path.relative(p,f.path);C!==""&&g.test(C)&&t.push(f.path)}}catch{}}else t.push(l.path.join(e,r));return t},ee=async e=>{let n=await U(e),t=n.workspaces?.value;if(!Array.isArray(t))throw new w("Package config doesn't have workspace field.");for(let o of t)if(typeof o!="string")throw new w("Package config workspace field should be an array of strings.");let r=await Z(e,t),i=[];for(let o of r){let a=await v({baseDir:o});if(a===void 0)continue;let p=a.name?.value,s=a.version?.value,c=a.private?.value;p!==void 0&&c!==!0&&i.push({name:p,version:s??"0.0.0",config:a})}return[n,i]};export{y as a,P as b,v as c,E as d,X as e,ee as f};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as k,b as p,c as h,e as m,f as u,g as f}from"./chunk-
|
|
2
|
+
import{a as k,b as p,c as h,e as m,f as u,g as f}from"./chunk-455V3AE5.js";import{a as c}from"./chunk-J7YTWK67.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
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as o}from"./chunk-
|
|
2
|
+
import{a as o}from"./chunk-RGUETQSC.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as w}from"./chunk-
|
|
2
|
+
import{a as w}from"./chunk-AGRTWPDI.js";import{a as v}from"./chunk-2VEVVX6U.js";import{a as y}from"./chunk-4DOMGQOO.js";import{f as k}from"./chunk-3BEX5FYF.js";import{b as l,f,g as h,h as C,i as m}from"./chunk-3SXTMY75.js";import{g as a}from"./chunk-A6RDYP6R.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as o}from"./chunk-
|
|
2
|
+
import{d as o}from"./chunk-XU5SILYR.js";var d=(e,n)=>{if(e!==void 0)for(let r of e){if(r==="--agent")return"agent";if(r==="--human")return"human"}let t=n?.agentMode;return t===!0?"agent":t===!1?"human":o()};var u=e=>e===void 0?[]:e.filter(n=>n!=="--agent"&&n!=="--human"&&n!=="--non-interactive");export{d as a,u as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as Ja}from"./chunk-LCG4SK6K.js";import{t as Hv}from"./chunk-RYOLIM3I.js";import{b as Hb}from"./chunk-DTO2YJWZ.js";import{a as Ko,c as Ra,e as Dv}from"./chunk-G6NAG2EK.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
|
+
import{e as Ja}from"./chunk-LCG4SK6K.js";import{t as Hv}from"./chunk-MRCBHVSB.js";import{b as Hb}from"./chunk-DTO2YJWZ.js";import{a as Ko,c as Ra,e as Dv}from"./chunk-G6NAG2EK.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
|
|
3
3
|
|
|
4
4
|
Your code should look like:
|
|
5
5
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as o}from"./chunk-
|
|
2
|
+
import{a as o}from"./chunk-RGUETQSC.js";var p=[{name:"AWS Access Key ID",pattern:/AKIA[0-9A-Z]{16}/},{name:"Private Key",pattern:/-----BEGIN\s{1,5}(RSA\s{1,5}|EC\s{1,5}|DSA\s{1,5}|OPENSSH\s{1,5})?PRIVATE KEY-----/},{name:"Generic secret assignment",pattern:/(?:secret|password|api_key|apikey|access_token|auth_token|private_key)\s{0,5}[=:]\s{0,5}["'][^"']{8,}["']/i}],d=[/\.lock$/,/package-lock\.json$/,/\.test\./,/testdata\//,/\.snap$/,/\.min\./],t=o({name:"validate-secrets",description:"Detect credentials and private keys",canFix:!1,stacks:[],defaults:{},checkFile(a,s){if(s===void 0)return[];for(let e of d)if(e.test(a.path))return[];let n=[],r=s.split(`
|
|
3
3
|
`);for(let e=0;e<r.length;e++){let i=r[e];for(let{name:c,pattern:l}of p)if(l.test(i)){n.push({path:a.path,line:e+1,message:`potential ${c} detected`});break}}return n}}),k=t.run,T=t.validator,y=t.main;export{t as a,k as b,T as c,y as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as a,f as g}from"./chunk-
|
|
2
|
+
import{d as a,f as g}from"./chunk-4SYC4WJV.js";import{b as i}from"./chunk-NBA6EFWU.js";import{t as s}from"./chunk-MRCBHVSB.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,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as r}from"./chunk-
|
|
2
|
+
import{a as r}from"./chunk-RGUETQSC.js";var n=r({name:"validate-eof",description:"Ensure files end with exactly one newline",canFix:!0,stacks:[],defaults:{},checkFile(i,e){return e===void 0?[]:e.length===0?[]:e.endsWith(`
|
|
3
3
|
`)?e.endsWith(`
|
|
4
4
|
|
|
5
5
|
`)?[{path:i.path,message:"file has multiple trailing newlines"}]:[]:[{path:i.path,message:"file does not end with a newline"}]},fixFile(i,e){if(e.length===0)return;let t=`${e.replace(/\n+$/,"")}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as i}from"./chunk-
|
|
2
|
+
import{d as i}from"./chunk-PVPMHMKP.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(`
|
|
3
3
|
`);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,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as e}from"./chunk-
|
|
2
|
+
import{a as e}from"./chunk-KKBIUT5L.js";var i=new e({description:"AI provider interface \u2014 ask questions, generate content",modules:{ask:{description:"Send a prompt to an AI provider",load:()=>import("./ask-L3N6REQI.js")},list:{description:"List available AI providers",load:()=>import("./list-5TGTYMAU.js")}}});export{i as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as t}from"./chunk-
|
|
2
|
+
import{a as t}from"./chunk-RGUETQSC.js";var n=t({name:"validate-line-endings",description:"Normalize line endings to LF",canFix:!0,stacks:[],defaults:{},checkFile(i,e){return e===void 0?[]:e.includes("\r")?[{path:i.path,message:"file contains CRLF or CR line endings"}]:[]},fixFile(i,e){let r=e.replace(/\r\n/g,`
|
|
3
3
|
`).replace(/\r/g,`
|
|
4
4
|
`);if(r!==e)return{path:i.path,oldContent:e,newContent:r}}}),s=n.run,d=n.validator,p=n.main;export{n as a,s as b,d as c,p as d};
|