eser 4.1.37 → 4.1.39
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-V7YYHLFH.js +8 -0
- package/chunks/{anthropic-2MXDKLNX.js → anthropic-QBGNUIP3.js} +1 -1
- package/chunks/approve-HVIH2A3C.js +2 -0
- package/chunks/ask-PMB64QWG.js +3 -0
- package/chunks/block-JSK5CJPO.js +2 -0
- package/chunks/browser-JGBNWUEQ.js +2 -0
- package/chunks/{build-EJLFNB4I.js → build-HUKFUVPB.js} +2 -2
- package/chunks/bun-HIMXX54I.js +2 -0
- package/chunks/changelog-gen-JV3EHOMV.js +10 -0
- package/chunks/{chunk-GJ4LCA6D.js → chunk-2KKLYXSA.js} +1 -1
- package/chunks/{chunk-JYNHFD6B.js → chunk-2XNFZXHY.js} +1 -1
- package/chunks/{chunk-2EVWKUN6.js → chunk-3AA3RXKD.js} +1 -1
- package/chunks/{chunk-CUIMSX4V.js → chunk-3IZX4OZ7.js} +1 -1
- package/chunks/{chunk-KPWEJXPI.js → chunk-3QF3I2RD.js} +1 -1
- package/chunks/{chunk-K6H7JTIH.js → chunk-4EHAL3NK.js} +1 -1
- package/chunks/chunk-4FGLERUG.js +2 -0
- package/chunks/{chunk-IDMI5OBK.js → chunk-4QDEJUAF.js} +1 -1
- package/chunks/{chunk-4MVO4LD5.js → chunk-5224ZYEW.js} +1 -1
- package/chunks/{chunk-LCG4SK6K.js → chunk-5DWJ7WEE.js} +1 -1
- package/chunks/chunk-5WJ6AUNY.js +2 -0
- package/chunks/chunk-6E6JUBFH.js +2 -0
- package/chunks/chunk-7UASU4NU.js +10 -0
- package/chunks/chunk-A3JJKZ4C.js +4 -0
- package/chunks/chunk-A3MZV73T.js +32 -0
- package/chunks/chunk-A6K5L4SG.js +3 -0
- package/chunks/{chunk-YVIGHK4H.js → chunk-AHKNU2JM.js} +1 -1
- package/chunks/{chunk-BCPCQHDL.js → chunk-BBOEAL63.js} +1 -1
- package/chunks/chunk-BQT5RJZB.js +2 -0
- package/chunks/{chunk-EBCQCAQ7.js → chunk-BWDCKK63.js} +1 -1
- package/chunks/{chunk-FORPNESQ.js → chunk-CMSPX2RN.js} +1 -1
- package/chunks/{chunk-H4SPMUT6.js → chunk-DKFL6XPX.js} +1 -1
- package/chunks/{chunk-HVLKXRPA.js → chunk-DWLFTRZS.js} +1 -1
- package/chunks/{chunk-PVPMHMKP.js → chunk-ECY4MUD3.js} +1 -1
- package/chunks/{chunk-IIIMOOFE.js → chunk-EGMYM4TM.js} +1 -1
- package/chunks/{chunk-I4C675WP.js → chunk-F35K7YVH.js} +1 -1
- package/chunks/{chunk-IZONBJSX.js → chunk-F5HQDZLN.js} +1 -1
- package/chunks/{chunk-A6RDYP6R.js → chunk-FFWPJP7A.js} +1 -1
- package/chunks/chunk-H2O5G3XB.js +2 -0
- package/chunks/{chunk-Y53YTL4C.js → chunk-HLKFDKLZ.js} +1 -1
- package/chunks/{chunk-SOBOSRJB.js → chunk-HP5W5XT6.js} +1 -1
- package/chunks/{chunk-BP3IFAPO.js → chunk-HTJLIAH4.js} +1 -1
- package/chunks/{chunk-7BFBOLLC.js → chunk-HVTJ5LVU.js} +1 -1
- package/chunks/chunk-HZ2ALFWG.js +66 -0
- package/chunks/{chunk-YQVWAWMO.js → chunk-ILROPD5P.js} +1 -1
- package/chunks/{chunk-LKF6GBNU.js → chunk-ISQIZSXN.js} +1 -1
- package/chunks/chunk-JI536JLJ.js +2 -0
- package/chunks/{chunk-UJPVEQX7.js → chunk-K2MKYDPY.js} +1 -1
- package/chunks/{chunk-T2DRBZ4X.js → chunk-KEOTIPA6.js} +1 -1
- package/chunks/chunk-L2E2H7YT.js +2 -0
- package/chunks/chunk-L7UCWRDZ.js +3 -0
- package/chunks/{chunk-4WQGB7NO.js → chunk-LBMJGMDD.js} +1 -1
- package/chunks/{chunk-2VEVVX6U.js → chunk-LFNUSULJ.js} +1 -1
- package/chunks/{chunk-5GGGQJ4P.js → chunk-MBCPGD5L.js} +1 -1
- package/chunks/chunk-MEZCXQAX.js +2 -0
- package/chunks/{chunk-B6EATLKL.js → chunk-MOY4CXAZ.js} +2 -2
- package/chunks/{chunk-P2DMLPKI.js → chunk-MQ4EMT35.js} +1 -1
- package/chunks/chunk-NEHZOG23.js +7 -0
- package/chunks/{chunk-QZ44TAIY.js → chunk-NJUIBCQR.js} +1 -1
- package/chunks/{chunk-5MWX3POX.js → chunk-NZRU3N6C.js} +1 -1
- package/chunks/{chunk-N2VBT43E.js → chunk-O2TA7OHJ.js} +1 -1
- package/chunks/{chunk-ER4ZWF4Y.js → chunk-OAFB4A6D.js} +1 -1
- package/chunks/chunk-OAT2D23A.js +2 -0
- package/chunks/{chunk-3QIPK7NI.js → chunk-OPPOHKNZ.js} +1 -1
- package/chunks/{chunk-ZNGLZECE.js → chunk-OWV223WQ.js} +1 -1
- package/chunks/{chunk-3BEX5FYF.js → chunk-P2MUEKFT.js} +1 -1
- package/chunks/{chunk-455V3AE5.js → chunk-P72TUTYK.js} +1 -1
- package/chunks/{chunk-Q2KSOC32.js → chunk-PPSDIDOI.js} +1 -1
- package/chunks/chunk-PXCM4FHO.js +2 -0
- package/chunks/{chunk-KVTG56GS.js → chunk-QFFGKP3M.js} +1 -1
- package/chunks/{chunk-PZNCE6QK.js → chunk-QXATB6Z5.js} +1 -1
- package/chunks/chunk-RGUPFAEE.js +68 -0
- package/chunks/{chunk-SP43S32B.js → chunk-RVJZFWN7.js} +1 -1
- package/chunks/{chunk-B5IPHVXT.js → chunk-SBAXURB7.js} +1 -1
- package/chunks/{chunk-7NUMDHE2.js → chunk-T4WKRBQZ.js} +1 -1
- package/chunks/{chunk-UJ6LH5FY.js → chunk-TEOMM3RD.js} +1 -1
- package/chunks/{chunk-QOX7VSID.js → chunk-TLVGNOK3.js} +1 -1
- package/chunks/{chunk-HYT26FYU.js → chunk-U5Q5MC74.js} +1 -1
- package/chunks/chunk-ULNEO3RY.js +4 -0
- package/chunks/{chunk-MXGRYONZ.js → chunk-UMKCOU3N.js} +1 -1
- package/chunks/{chunk-536RBSFU.js → chunk-UQ2BC7UA.js} +1 -1
- package/chunks/{chunk-HVOPUZOM.js → chunk-VIQLCQOI.js} +1 -1
- package/chunks/chunk-VWQLQJVX.js +2 -0
- package/chunks/{chunk-CKNA5LIK.js → chunk-WAEXOK7L.js} +1 -1
- package/chunks/{chunk-NP723K5L.js → chunk-WILZ4OR2.js} +1 -1
- package/chunks/chunk-WJKE6XHF.js +2 -0
- package/chunks/{chunk-KQE6FMKW.js → chunk-XYUJCTPP.js} +1 -1
- package/chunks/{chunk-P2TABZ4A.js → chunk-YEWODYET.js} +1 -1
- package/chunks/{chunk-3SXTMY75.js → chunk-YVN2NZL4.js} +1 -1
- package/chunks/{chunk-GBM3TZFD.js → chunk-ZC4F4MYU.js} +1 -1
- package/chunks/{chunk-KBFKBL6A.js → chunk-ZWMJQZQF.js} +1 -1
- package/chunks/claude-code-ELUDT5TV.js +2 -0
- package/chunks/{clone-H3UAEVVP.js → clone-YEBQK7CG.js} +1 -1
- package/chunks/cmd-2DAVTVOF.js +2 -0
- package/chunks/{commitmsg-7XZGGERO.js → commitmsg-FQ3IZ3TH.js} +2 -2
- package/chunks/concern-TIGYH5DX.js +2 -0
- package/chunks/deno-XQHOVHKR.js +2 -0
- package/chunks/dev-BNGJJR2O.js +4 -0
- package/chunks/dist-QVOR7USR.js +13 -0
- package/chunks/done-GGPPHJW2.js +2 -0
- package/chunks/file-tools-shared-KBTCO2FV.js +2 -0
- package/chunks/{gemini-F4KLO5VU.js → gemini-43AWJEWI.js} +1 -1
- package/chunks/gh-Q7VEABJS.js +4 -0
- package/chunks/gh-contributors-4KGARSNL.js +12 -0
- package/chunks/init-45ODFAV3.js +2 -0
- package/chunks/{init-J4IHOVZL.js → init-RV7K5JC4.js} +3 -3
- package/chunks/{install-KNZDCGIB.js → install-6XIQS5E7.js} +2 -2
- package/chunks/invoke-hook-Q3NMJXDO.js +11 -0
- package/chunks/kiro-NZ7LM6HA.js +2 -0
- package/chunks/list-BOLPKAEY.js +2 -0
- package/chunks/{list-N4ZKDFW7.js → list-NYLFIF2U.js} +1 -1
- package/chunks/list-UQMPOF5Y.js +2 -0
- package/chunks/load-config-G4DHKB5K.js +2 -0
- package/chunks/{main-HJQEBLLN.js → main-236QYA7G.js} +2 -2
- package/chunks/manifest-3VJ4O6HR.js +2 -0
- package/chunks/{mod-4ILLF5PK.js → mod-5JT4O5L3.js} +1 -1
- package/chunks/mod-BQJDMCYC.js +2 -0
- package/chunks/mod-DXA25A4J.js +2 -0
- package/chunks/mod-EWLBSEHA.js +2 -0
- package/chunks/mod-GSWVSC2C.js +28 -0
- package/chunks/mod-IHYN4TEM.js +3 -0
- package/chunks/mod-IXVUQHXS.js +2 -0
- package/chunks/mod-P4AVZJNK.js +2 -0
- package/chunks/mod-PZSJGUM7.js +2 -0
- package/chunks/mod-QWYXFGRG.js +2 -0
- package/chunks/{mod-OS3BCM2G.js → mod-SXL6PDQM.js} +1 -1
- package/chunks/mod-YH5Z6G4Q.js +2 -0
- package/chunks/multipart-parser-SSRHOBFH.js +3 -0
- package/chunks/{new-BOGCXTIY.js → new-U5U4E6HR.js} +1 -1
- package/chunks/next-AQ4TIEL7.js +9 -0
- package/chunks/node-IN5OQP4N.js +68 -0
- package/chunks/node-ZGM6SXXI.js +2 -0
- package/chunks/ollama-LHWMXMLY.js +2 -0
- package/chunks/openai-2KONKHWL.js +2 -0
- package/chunks/openai-IRQY5SCR.js +24 -0
- package/chunks/opencode-24O2MW3L.js +2 -0
- package/chunks/purge-RM6OD5PV.js +5 -0
- package/chunks/recipe-applier-TTZEZGSC.js +2 -0
- package/chunks/registry-fetcher-SPENFEOH.js +2 -0
- package/chunks/release-UEX6YK4K.js +9 -0
- package/chunks/release-notes-GA7CTA54.js +4 -0
- package/chunks/release-tag-VJWBXG5G.js +2 -0
- package/chunks/reset-WHYTPTFB.js +2 -0
- package/chunks/rule-ZQOGLQQI.js +3 -0
- package/chunks/run-IX74MQTI.js +4 -0
- package/chunks/run-L35K3KRF.js +5 -0
- package/chunks/scripts-VI2TKQOH.js +2 -0
- package/chunks/sdk-L2SQCWYV.js +41 -0
- package/chunks/serve-AVVEYGQB.js +4 -0
- package/chunks/{server-KNWQV2HW.js → server-R347ON4B.js} +1 -1
- package/chunks/spec-KMKZDLV2.js +2 -0
- package/chunks/src-6SFGTAGT.js +4 -0
- package/chunks/status-MLX4O37A.js +2 -0
- package/chunks/sync-PB4KWB3R.js +2 -0
- package/chunks/system-BXJ2LV5O.js +2 -0
- package/chunks/system-YLXVXRXW.js +2 -0
- package/chunks/{unstable_chmod-GDQI7NKH.js → unstable_chmod-2W47KJY3.js} +1 -1
- package/chunks/update-522VXIKX.js +6 -0
- package/chunks/validate-bom-JCMRVAUT.js +2 -0
- package/chunks/validate-case-conflict-WZQCMKSZ.js +2 -0
- package/chunks/validate-circular-deps-7R4F2YDV.js +2 -0
- package/chunks/validate-commit-msg-PH7Y3JEI.js +2 -0
- package/chunks/validate-docs-WCIOHNYP.js +2 -0
- package/chunks/validate-eof-KRYQLTFQ.js +2 -0
- package/chunks/validate-export-names-OCQ2XSY6.js +2 -0
- package/chunks/validate-filenames-46O7FCXF.js +2 -0
- package/chunks/validate-json-3EZ2L64H.js +2 -0
- package/chunks/validate-large-files-7YX6MSOB.js +2 -0
- package/chunks/validate-licenses-OC7JRVAH.js +2 -0
- package/chunks/validate-line-endings-2DM5UGCJ.js +2 -0
- package/chunks/validate-merge-conflict-UDMWYMJ5.js +2 -0
- package/chunks/validate-mod-exports-W24IV367.js +2 -0
- package/chunks/validate-package-configs-3Y55ZLUY.js +2 -0
- package/chunks/validate-secrets-66VXCCUF.js +2 -0
- package/chunks/validate-shebangs-AMEAHVLB.js +2 -0
- package/chunks/validate-submodules-DYCE27WK.js +2 -0
- package/chunks/validate-symlinks-QN744GUH.js +2 -0
- package/chunks/validate-toml-5K2XNHAE.js +2 -0
- package/chunks/validate-trailing-whitespace-QYWHHIAK.js +2 -0
- package/chunks/validate-yaml-VGKLHEAQ.js +2 -0
- package/chunks/versions-FYALONNL.js +2 -0
- package/chunks/{vertexai-EXTYPVHK.js → vertexai-2F2A3VTE.js} +1 -1
- package/chunks/watch-P56QT3Q2.js +9 -0
- package/chunks/workerd-LOWXXQEU.js +2 -0
- package/eser.js +1 -1
- package/package.json +1 -1
- package/chunks/add-5SDE43IH.js +0 -8
- package/chunks/approve-DNKMQSPX.js +0 -2
- package/chunks/ask-L3N6REQI.js +0 -3
- package/chunks/block-GRKMCTGR.js +0 -2
- package/chunks/browser-SG2DBNGS.js +0 -2
- package/chunks/bun-3AACRJXG.js +0 -2
- package/chunks/changelog-gen-MX6L2Z24.js +0 -10
- package/chunks/chunk-25FUVC3C.js +0 -13
- package/chunks/chunk-2HBVIH7V.js +0 -3
- package/chunks/chunk-32HV3K27.js +0 -2
- package/chunks/chunk-46ZWBKIW.js +0 -2
- package/chunks/chunk-4DOMGQOO.js +0 -2
- package/chunks/chunk-6FNHSIZJ.js +0 -2
- package/chunks/chunk-CBGABZ5E.js +0 -2
- package/chunks/chunk-CDPSH56U.js +0 -2
- package/chunks/chunk-CZS6DCUY.js +0 -61
- package/chunks/chunk-DAK2I7UC.js +0 -2
- package/chunks/chunk-DTO2YJWZ.js +0 -2
- package/chunks/chunk-DYRTLYTU.js +0 -3
- package/chunks/chunk-G6NAG2EK.js +0 -2
- package/chunks/chunk-JOTAKQMZ.js +0 -2
- package/chunks/chunk-MRCBHVSB.js +0 -2
- package/chunks/chunk-PE2TDUXD.js +0 -19
- package/chunks/chunk-RGUETQSC.js +0 -4
- package/chunks/chunk-STI6DX7K.js +0 -2
- package/chunks/chunk-STTKPXTW.js +0 -2
- package/chunks/chunk-TFPT4BDY.js +0 -15
- package/chunks/chunk-V3WALAAO.js +0 -4
- package/chunks/chunk-VD5ZJBSR.js +0 -7
- package/chunks/chunk-W3RVRCUB.js +0 -2
- package/chunks/chunk-Y4ARZGGL.js +0 -2
- package/chunks/claude-code-VUBEU7RR.js +0 -2
- package/chunks/concern-T2NW35XI.js +0 -2
- package/chunks/deno-7BSPHDRG.js +0 -2
- package/chunks/dev-PTMXZEVC.js +0 -4
- package/chunks/done-RZD34AZF.js +0 -2
- package/chunks/file-tools-shared-G36OYF5S.js +0 -2
- package/chunks/fileFromPath-MB3IRZVW.js +0 -7
- package/chunks/gh-L25JQWOY.js +0 -5
- package/chunks/gh-contributors-E7IZ2LFS.js +0 -12
- package/chunks/init-J46SBNIS.js +0 -2
- package/chunks/invoke-hook-YTLAPETS.js +0 -10
- package/chunks/kiro-HQLXD6ZU.js +0 -2
- package/chunks/list-5TGTYMAU.js +0 -2
- package/chunks/list-PY3A762R.js +0 -2
- package/chunks/load-config-FTQMJVEW.js +0 -2
- package/chunks/manifest-NF2EK757.js +0 -2
- package/chunks/mod-FEGQZ3ZY.js +0 -2
- package/chunks/mod-GY6YJWVP.js +0 -2
- package/chunks/mod-HKYPZOU7.js +0 -2
- package/chunks/mod-JI2A2546.js +0 -2
- package/chunks/mod-JZNE2HH6.js +0 -2
- package/chunks/mod-MLRQFSBE.js +0 -2
- package/chunks/mod-NCF6OSXO.js +0 -2
- package/chunks/mod-PFWQZF3T.js +0 -28
- package/chunks/mod-W3DBWTCY.js +0 -11
- package/chunks/mod-YX3JRMSI.js +0 -2
- package/chunks/next-HAAR572Z.js +0 -4
- package/chunks/node-KCQF6QQA.js +0 -60
- package/chunks/node-MFKYO4CY.js +0 -2
- package/chunks/ollama-36F5QAOO.js +0 -2
- package/chunks/openai-EU5TJZ5T.js +0 -2
- package/chunks/openai-IKXRJYI3.js +0 -20
- package/chunks/opencode-7J3JDC44.js +0 -2
- package/chunks/purge-7QJOGWHM.js +0 -5
- package/chunks/recipe-applier-6QZYAZ57.js +0 -2
- package/chunks/registry-fetcher-76ISLGRR.js +0 -2
- package/chunks/release-J3PVDROM.js +0 -9
- package/chunks/release-notes-AARDYXYA.js +0 -4
- package/chunks/release-tag-H2YWUXRU.js +0 -2
- package/chunks/reset-WSJ47SUR.js +0 -2
- package/chunks/rule-J4FRRKOE.js +0 -3
- package/chunks/run-K6PMBZEQ.js +0 -4
- package/chunks/run-RGEZUAPM.js +0 -5
- package/chunks/scripts-JK6W2MCO.js +0 -2
- package/chunks/sdk-MXV452BR.js +0 -19
- package/chunks/serve-XVAIQ37L.js +0 -4
- package/chunks/spec-KTBVG2EX.js +0 -2
- package/chunks/status-3C2T6QAE.js +0 -2
- package/chunks/sync-WLEELRJW.js +0 -2
- package/chunks/system-GTHT75OL.js +0 -2
- package/chunks/system-WTPEDJU6.js +0 -2
- package/chunks/update-4C4WNXCE.js +0 -6
- package/chunks/validate-bom-QVE5HNBO.js +0 -2
- package/chunks/validate-case-conflict-XFS3URQN.js +0 -2
- package/chunks/validate-circular-deps-BMPAT3PF.js +0 -2
- package/chunks/validate-commit-msg-BPESCI7P.js +0 -2
- package/chunks/validate-docs-ITL4L6KY.js +0 -2
- package/chunks/validate-eof-DTFV74VL.js +0 -2
- package/chunks/validate-export-names-HLOH7D73.js +0 -2
- package/chunks/validate-filenames-J4RTDEBD.js +0 -2
- package/chunks/validate-json-KMODGNSU.js +0 -2
- package/chunks/validate-large-files-X5YF7D7T.js +0 -2
- package/chunks/validate-licenses-OZ7DXQTY.js +0 -2
- package/chunks/validate-line-endings-PFF6QJ3W.js +0 -2
- package/chunks/validate-merge-conflict-KB2X6QLW.js +0 -2
- package/chunks/validate-mod-exports-VHK2NVKI.js +0 -2
- package/chunks/validate-package-configs-ZNCAIYRO.js +0 -2
- package/chunks/validate-secrets-RM6DMZVG.js +0 -2
- package/chunks/validate-shebangs-WC66D7RK.js +0 -2
- package/chunks/validate-submodules-SPAXASAG.js +0 -2
- package/chunks/validate-symlinks-4LOWK2MQ.js +0 -2
- package/chunks/validate-toml-SG4IITMN.js +0 -2
- package/chunks/validate-trailing-whitespace-GRE2PJ6T.js +0 -2
- package/chunks/validate-yaml-RA22QNW6.js +0 -2
- package/chunks/versions-ODYWYT7U.js +0 -2
- package/chunks/watch-NEFCEWP5.js +0 -9
- package/chunks/workerd-VVSAKLDZ.js +0 -2
package/eser.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
3
|
-
import{a as u}from"./chunks/chunk-LKF6GBNU.js";import{a as m}from"./chunks/chunk-4MVO4LD5.js";import"./chunks/chunk-PWLF3WXM.js";import{a as o}from"./chunks/chunk-KVTG56GS.js";import{b as a}from"./chunks/chunk-PZNCE6QK.js";import"./chunks/chunk-MG65QJY6.js";import{b as d,e as c}from"./chunks/chunk-A6RDYP6R.js";import{t as p}from"./chunks/chunk-MRCBHVSB.js";import"./chunks/chunk-Y4ARZGGL.js";import"./chunks/chunk-STI6DX7K.js";import"./chunks/chunk-DTO2YJWZ.js";import"./chunks/chunk-G6NAG2EK.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-5SDE43IH.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-PY3A762R.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-BOGCXTIY.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-H3UAEVVP.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-4C4WNXCE.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-PFWQZF3T.js")},install:{description:"Install git hooks from .eser/manifest.yml",category:"Setup",load:()=>import("./chunks/install-KNZDCGIB.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-KNZDCGIB.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-KNZDCGIB.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-7XZGGERO.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-L25JQWOY.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-ODYWYT7U.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-MX6L2Z24.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-J3PVDROM.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-J3PVDROM.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-J3PVDROM.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-DTFV74VL.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-GRE2PJ6T.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-QVE5HNBO.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-PFF6QJ3W.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-X5YF7D7T.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-XFS3URQN.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-KB2X6QLW.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-KMODGNSU.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-SG4IITMN.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-RA22QNW6.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-4LOWK2MQ.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-WC66D7RK.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-RM6DMZVG.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-J4RTDEBD.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-SPAXASAG.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-BPESCI7P.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-ITL4L6KY.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-BMPAT3PF.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-HLOH7D73.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-OZ7DXQTY.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-VHK2NVKI.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-ZNCAIYRO.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-RGEZUAPM.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-N4ZKDFW7.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-J46SBNIS.js")},status:{description:"Show current state",load:()=>import("./chunks/status-3C2T6QAE.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-KTBVG2EX.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-HAAR572Z.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-DNKMQSPX.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-GRKMCTGR.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-WSJ47SUR.js")},done:{description:"Mark spec execution as complete",load:()=>import("./chunks/done-RZD34AZF.js")},concern:{description:"Manage concerns (add, remove, list)",load:()=>import("./chunks/concern-T2NW35XI.js")},run:{description:"Autonomous execution loop (Ralph loop)",load:()=>import("./chunks/run-K6PMBZEQ.js")},watch:{description:"Live dashboard for monitoring agent progress",load:()=>import("./chunks/watch-NEFCEWP5.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-WLEELRJW.js")},purge:{description:"Remove all noskills content (specs, rules, concerns, hooks)",load:()=>import("./chunks/purge-7QJOGWHM.js")},"invoke-hook":{description:"Internal hook handlers (called by agents)",load:()=>import("./chunks/invoke-hook-YTLAPETS.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-J4FRRKOE.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-J4IHOVZL.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-PTMXZEVC.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-EJLFNB4I.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-XVAIQ37L.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-W3DBWTCY.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-GTHT75OL.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-GY6YJWVP.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-GY6YJWVP.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-GY6YJWVP.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-GY6YJWVP.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-NF2EK757.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let v=s[e],{runScript:b}=await import("./chunks/scripts-JK6W2MCO.js");return await b(e,v,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
|
|
3
|
+
import{a as u}from"./chunks/chunk-ISQIZSXN.js";import{a as m}from"./chunks/chunk-5224ZYEW.js";import"./chunks/chunk-PWLF3WXM.js";import{a as o}from"./chunks/chunk-QFFGKP3M.js";import{b as a}from"./chunks/chunk-QXATB6Z5.js";import"./chunks/chunk-MG65QJY6.js";import{b as d,e as c}from"./chunks/chunk-FFWPJP7A.js";import{i as p}from"./chunks/chunk-WJKE6XHF.js";import"./chunks/chunk-6E6JUBFH.js";import"./chunks/chunk-BQT5RJZB.js";import"./chunks/chunk-5WJ6AUNY.js";var g=new o({description:"Kit \u2014 recipes, templates, project creation",modules:{add:{description:"Add a recipe to your project",category:"Distribution",load:()=>import("./chunks/add-V7YYHLFH.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-BOLPKAEY.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-U5U4E6HR.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-YEBQK7CG.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-522VXIKX.js")}},aliases:{create:"new"}});var f=new o({description:"Codebase management tools",modules:{scaffolding:{description:"Initialize project from template",category:"Setup",load:()=>import("./chunks/mod-GSWVSC2C.js")},install:{description:"Install git hooks from .eser/manifest.yml",category:"Setup",load:()=>import("./chunks/install-6XIQS5E7.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-6XIQS5E7.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-6XIQS5E7.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-FQ3IZ3TH.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-Q7VEABJS.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-FYALONNL.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-JV3EHOMV.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-UEX6YK4K.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-UEX6YK4K.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-UEX6YK4K.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-KRYQLTFQ.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-QYWHHIAK.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-JCMRVAUT.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-2DM5UGCJ.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-7YX6MSOB.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-WZQCMKSZ.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-UDMWYMJ5.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-3EZ2L64H.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-5K2XNHAE.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-VGKLHEAQ.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-QN744GUH.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-AMEAHVLB.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-66VXCCUF.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-46O7FCXF.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-DYCE27WK.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-PH7Y3JEI.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-WCIOHNYP.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-7R4F2YDV.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-OCQ2XSY6.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-OC7JRVAH.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-W24IV367.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-3Y55ZLUY.js")}},aliases:{init:"scaffolding"}});var l=e=>new o({description:"Workflow engine \u2014 run tool pipelines",modules:{run:{description:"Run workflows by event or id",load:async()=>{let t=await import("./chunks/run-L35K3KRF.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-NYLFIF2U.js");return{main:r=>t.main(r,{tools:e??[]})}}}}}),R=l();var y=new o({description:"noskills \u2014 state-machine orchestrator for AI agents",modules:{init:{description:"Initialize noskills in project",load:()=>import("./chunks/init-45ODFAV3.js")},status:{description:"Show current state",load:()=>import("./chunks/status-MLX4O37A.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-KMKZDLV2.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-AQ4TIEL7.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-HVIH2A3C.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-JSK5CJPO.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-WHYTPTFB.js")},done:{description:"Mark spec execution as complete",load:()=>import("./chunks/done-GGPPHJW2.js")},concern:{description:"Manage concerns (add, remove, list)",load:()=>import("./chunks/concern-TIGYH5DX.js")},run:{description:"Autonomous execution loop (Ralph loop)",load:()=>import("./chunks/run-IX74MQTI.js")},watch:{description:"Live dashboard for monitoring agent progress",load:()=>import("./chunks/watch-P56QT3Q2.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-PB4KWB3R.js")},purge:{description:"Remove all noskills content (specs, rules, concerns, hooks)",load:()=>import("./chunks/purge-RM6OD5PV.js")},"invoke-hook":{description:"Internal hook handlers (called by agents)",load:()=>import("./chunks/invoke-hook-Q3NMJXDO.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-ZQOGLQQI.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-RV7K5JC4.js"),flags:[{name:"template",short:"t",type:"string",description:"Project template (minimal, blog, dashboard, docs)",default:"minimal"},{name:"force",short:"f",type:"boolean",description:"Overwrite existing files"},{name:"no-git",type:"boolean",description:"Skip git initialization"},{name:"no-install",type:"boolean",description:"Skip dependency installation"}]},dev:{description:"Start development server with hot reload",load:()=>import("./chunks/dev-BNGJJR2O.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"no-hmr",type:"boolean",description:"Disable hot module replacement"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"},{name:"open",short:"o",type:"boolean",description:"Open browser automatically"}]},build:{description:"Build for production",load:()=>import("./chunks/build-HUKFUVPB.js"),flags:[{name:"out-dir",type:"string",description:"Output directory",default:"dist"},{name:"clean",type:"boolean",description:"Clean output directory first"},{name:"no-minify",type:"boolean",description:"Disable minification"},{name:"analyze",type:"boolean",description:"Analyze bundle size"},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]},serve:{description:"Serve production build locally",load:()=>import("./chunks/serve-AVVEYGQB.js"),flags:[{name:"port",short:"p",type:"number",description:"Server port",default:8e3},{name:"log-level",type:"string",description:"Log level (debug, info, warn, error)",default:"info"}]}}});var i=new o({description:"Terminal client for Eser's work"});i.addSubmodule({name:"ai"},m);i.addSubmodule({name:"kit"},g);i.addSubmodule({name:"codebase",aliases:["cb","."]},f);await i.addSubmoduleAsync({name:"workflows",aliases:["wf"]},(async()=>{let{getWorkflowTools:e}=await import("./chunks/mod-IHYN4TEM.js");return l(e())})());i.addSubmodule({name:"noskills",aliases:["nos"]},y);i.addSubmodule({name:"laroux"},w);var k=i.toCommand("eser",u.version).lazyCommand("system",{description:"Commands related with this CLI",load:async()=>(await import("./chunks/system-YLXVXRXW.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-P4AVZJNK.js");return new a("install").run(e.installHandler)}}).lazyCommand("update",{description:"Update eser CLI to latest version (alias for system update)",load:async()=>{let e=await import("./chunks/mod-P4AVZJNK.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-P4AVZJNK.js");return new a("version").flag({name:"bare",type:"boolean",description:"Print raw version only"}).run(e.versionHandler)}}).lazyCommand("doctor",{description:"Run diagnostic checks",load:async()=>{let e=await import("./chunks/mod-P4AVZJNK.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-3VJ4O6HR.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let v=s[e],{runScript:b}=await import("./chunks/scripts-VI2TKQOH.js");return await b(e,v,s,t)}}return console.error(`Unknown subcommand "${e}"`),d({exitCode:1})}),h=async()=>await k.parse();if(import.meta.main){let e=await h();c(e,{ok:()=>{},fail:t=>{t.message!==void 0&&console.error(t.message),p.process.setExitCode(t.exitCode)}})}export{h as main};
|
package/package.json
CHANGED
package/chunks/add-5SDE43IH.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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-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
|
-
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
|
-
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
|
-
Dry run: ${t}
|
|
6
|
-
`)):s.writeln(y(`
|
|
7
|
-
Adding ${t}...
|
|
8
|
-
`));let i=await $(_({recipeName:t,cwd:w.process.cwd(),registrySource:e.registry,local:e.local===!0,dryRun:a,force:e.force===!0,skipExisting:e["skip-existing"]===!0,verbose:e.verbose===!0,noInstall:e["no-install"]===!0,variables:j(e.var)}),{out:s});return await s.close(),R(i)?d(void 0):c({exitCode:1})};export{B as main};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as y}from"./chunk-V3WALAAO.js";import{a as C,d as P}from"./chunk-P2DMLPKI.js";import"./chunk-IDMI5OBK.js";import{e as v}from"./chunk-STTKPXTW.js";import{c as n}from"./chunk-CBGABZ5E.js";import{d as w,e as h,j as S,n as g}from"./chunk-VD5ZJBSR.js";import"./chunk-JYNHFD6B.js";import{f as d,h as f,k as u}from"./chunk-GBM3TZFD.js";import{c as a,d as o,f as c,g as l,k as m}from"./chunk-3SXTMY75.js";import{a as p}from"./chunk-A6RDYP6R.js";import{t as i}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=d({renderer:u.ansi(),sink:f.stdout()}),s=i.process.cwd(),e=await w(s),R=await S(s);if(e.phase==="SPEC_DRAFT"){if(e.classification===null&&e.spec!==null){let A=(await g(s)).filter(D=>R?.concerns.includes(D.id)??!1);try{await y(s,e,A)}catch{}}let t=v(e);await h(s,t),t.spec!==null&&(await C(s,t.spec,"approved"),await P(s,t.spec,"approved")),r.writeln(l("\u2714")," Spec approved. Phase: ",m("SPEC_APPROVED")),r.writeln("When ready, run ",a(`${n('next --answer="start"')}`)," to begin execution.")}else e.phase==="DISCOVERY"&&e.discovery.completed?(r.writeln(o("Discovery complete. Spec draft already generated.")),r.writeln("Review the spec and run ",a(n("approve"))," again when in SPEC_DRAFT phase.")):r.writeln(c(`Cannot approve in phase: ${e.phase}`));return await r.close(),p(void 0)};export{$ as main};
|
package/chunks/ask-L3N6REQI.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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-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
|
-
`)),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};
|
package/chunks/block-GRKMCTGR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as k}from"./chunk-STTKPXTW.js";import{c as h}from"./chunk-CBGABZ5E.js";import{d as w,e as f}from"./chunk-VD5ZJBSR.js";import"./chunk-JYNHFD6B.js";import{f as c,h as d,k as u}from"./chunk-GBM3TZFD.js";import{c as i,d as m,f as l,h as p}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 N=async g=>{let e=c({renderer:u.ansi(),sink:d.stdout()}),t=a.process.cwd(),r=g?.join(" ")??"No reason given",s=await w(t);if(s.phase!=="EXECUTING")return e.writeln(l(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let b=k(s,r);return await f(t,b),e.writeln(p("\u26A0")," Spec blocked: ",m(r)),e.writeln("Resolve with: ",i(`${h('next --answer="resolution"')}`)),await e.close(),o(void 0)};export{N as main};
|
|
@@ -1,2 +0,0 @@
|
|
|
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")},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};
|
package/chunks/bun-3AACRJXG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as $,b as S}from"./chunk-BP3IFAPO.js";import{a as O}from"./chunk-2HBVIH7V.js";import"./chunk-DYRTLYTU.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-VAIRJES2.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
|
-
|
|
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
|
-
`)},j=(n,t,o)=>{let e=n.split(`
|
|
6
|
-
`);if(o!==void 0){let r=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),g=new RegExp(`^##\\s+${r}\\b`),i=e.findIndex(d=>g.test(d));if(i!==-1){let d=e.length;for(let c=i+1;c<e.length;c++)if(/^##\s+/.test(e[c])){d=c;break}return e.splice(i,d-i,t),e.join(`
|
|
7
|
-
`)}}let s=e.findIndex(r=>/^##\s+\[Unreleased\]/i.test(r));if(s===-1){let r=e.findIndex((i,d)=>d>0&&i.startsWith("## ")),g=r===-1?e.length:r;return e.splice(g,0,"",t,""),e.join(`
|
|
8
|
-
`)}let a=-1;for(let r=s+1;r<e.length;r++)if(/^##\s+/.test(e[r])){a=r;break}let l=a===-1?e.length:a;return e.splice(l,0,t,""),e.join(`
|
|
9
|
-
`)},_=async(n={})=>{let{root:t=".",dryRun:o=!1}=n,e=await O({root:t});if(e===void 0||e==="")throw new Error("VERSION file is missing or empty.");let s;try{s=await $()}catch{throw new Error("No git tags found. Create an initial tag first (e.g., git tag v0.0.0).")}let a=await S(s,"HEAD");if(a.length===0)throw new Error(`No commits found since ${s}. Nothing to release.`);let l=M(a),r=k(l),g=H(e,r);if(!o){let i=m.runtime.path.join(t,"CHANGELOG.md"),d;try{d=await m.runtime.fs.readTextFile(i)}catch{throw new Error(`CHANGELOG.md not found at ${i}. Create one first.`)}let c=j(d,g,e);await m.runtime.fs.writeTextFile(i,c)}return{version:e,commitCount:a.length,entryCount:r.filter(i=>!T.has(i.type)).length,content:g,dryRun:o}},D=n=>R.fromPromise(()=>_(n)),V=n=>p.ok({dryRun:n.flags["dry-run"]===!0}),z=n=>{if(p.isFail(n))return f.writeln(h("\u2717"),u(" "+(n.error instanceof Error?n.error.message:String(n.error)))),p.fail({exitCode:1});let{value:t}=n;return t.dryRun?(f.writeln(v("\u26A0"),u(" [DRY RUN] Generated changelog preview:")),f.writeln(x("\u2139"),u(`
|
|
10
|
-
${t.content}`))):f.writeln(y("\u2713"),u(` Added ${t.entryCount} entries to CHANGELOG.md for v${t.version}`)),p.ok(void 0)},B=E.createTrigger({handler:D,adaptInput:V,adaptOutput:z}),ee=async n=>{let t=C(n??[],{boolean:["dry-run"],alias:{n:"dry-run"}}),o=A("changelog-gen",t);return await B(o)};export{k as deduplicateCommits,_ as generateChangelog,D as generateChangelogHandler,H as generateChangelogSection,L as groupBySection,B as handleCli,j as insertIntoChangelog,ee as main,P as parseConventionalCommit,M as parseConventionalCommits,b as stripTakeSuffix};
|
package/chunks/chunk-25FUVC3C.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as d}from"./chunk-CBGABZ5E.js";import{c as h}from"./chunk-VD5ZJBSR.js";import{t as i}from"./chunk-MRCBHVSB.js";var m="<!-- noskills:start -->",u="<!-- noskills:end -->",v=(e,s,o="npx eser noskills")=>{let t=[m,"## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/rules/`, `.eser/specs/`, or concern files directly.","noskills gives you exactly what you need via JSON output.","","### Protocol","",` ${o} next # get current instruction`,` ${o} next --answer="your response" # submit result and advance`,"","### When to call noskills next","",`You MUST call \`${o} next\` in these situations:`,"","1. At the **START** of every conversation (first thing you do)","2. **BEFORE** creating or modifying any file (to verify you have an active task)","3. **AFTER** completing a logical unit of work (to report progress)","4. When you encounter a **DECISION** that affects architecture or scope","5. When you are **UNSURE** what to do next","","NEVER proceed with implementation without checking noskills first.","NEVER make architectural decisions independently \u2014 noskills routes them to the user."];if((s?.allowGit??!1)||t.push("","### Git is read-only","","You MUST NOT run git write commands: commit, add, push, checkout, stash,","reset, merge, rebase, cherry-pick. The user controls git. You control files.","You MAY read from git: log, diff, status, show, blame."),t.push("","### Convention discovery","","When you discover a pattern, receive a correction, or identify a recurring",'preference from the user, ask: "Should this be a permanent rule for this',`project, or just for this task?" If permanent, run: \`${o} rule add`,'"<description>"`. If just this task, note it and move on.',"Never write to `.eser/rules/` directly.","","### JSON output","","noskills returns JSON with a `phase` field and phase-specific instructions.","The `meta` block contains resume context - use it to orient yourself,","especially after compaction or at the start of a new session.","Follow the `instruction` field. Use `transition` commands to advance state."),e.length>0){t.push("","### Active Rules","");for(let n of e)t.push(`- ${n}`)}return t.push(u),t.join(`
|
|
3
|
-
`)},p=async(e,s,o,t="npx eser noskills")=>{let n=`${e}/CLAUDE.md`,a=v(s,o,t),r;try{r=await i.fs.readTextFile(n);let c=r.indexOf(m),l=r.indexOf(u);c!==-1&&l!==-1?r=r.slice(0,c)+a+r.slice(l+u.length):r=r.trimEnd()+`
|
|
4
|
-
|
|
5
|
-
`+a+`
|
|
6
|
-
`}catch{r=a+`
|
|
7
|
-
`}await i.fs.writeTextFile(n,r)};var f=async(e,s,o="npx eser noskills")=>{let t=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){t.push("## Rules","");for(let n of s)t.push(`- ${n}`);t.push("")}await i.fs.writeTextFile(`${e}/.cursorrules`,t.join(`
|
|
8
|
-
`))};var y=async(e,s,o="npx eser noskills")=>{let t=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){t.push("## Rules","");for(let n of s)t.push(`- ${n}`);t.push("")}await i.fs.mkdir(`${e}/.kiro/steering`,{recursive:!0}),await i.fs.writeTextFile(`${e}/.kiro/steering/conventions.md`,t.join(`
|
|
9
|
-
`))};var k=async(e,s,o="npx eser noskills")=>{let t=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){t.push("## Rules","");for(let n of s)t.push(`- ${n}`);t.push("")}await i.fs.mkdir(`${e}/.github`,{recursive:!0}),await i.fs.writeTextFile(`${e}/.github/copilot-instructions.md`,t.join(`
|
|
10
|
-
`))};var g=async(e,s,o="npx eser noskills")=>{let t=["# Generated by noskills \u2014 do not edit manually","","## noskills orchestrator","","This project uses noskills for state-driven orchestration.","Do NOT read `.eser/specs/` or `.eser/rules/` directly. noskills gives you what you need.","",`Run \`${o} next\` to get your current instruction.`,`Submit results with \`${o} next --answer="..."\``,"","## When to call noskills next","","1. At the START of every conversation","2. BEFORE creating or modifying any file","3. AFTER completing a logical unit of work","4. When you encounter a DECISION that affects architecture","5. When you are UNSURE what to do next","","NEVER proceed with implementation without checking noskills first.",""];if(s.length>0){t.push("## Rules","");for(let n of s)t.push(`- ${n}`);t.push("")}await i.fs.writeTextFile(`${e}/.windsurfrules`,t.join(`
|
|
11
|
-
`))};var N=e=>({hooks:{PreToolUse:[{matcher:"Write|Edit|MultiEdit|Bash",hooks:[{type:"command",command:`${e} invoke-hook pre-tool-use`,timeout:5}]}],PostToolUse:[{matcher:"Write|Edit|MultiEdit",hooks:[{type:"command",command:`${e} invoke-hook post-file-write`,timeout:3}]},{matcher:"Bash",hooks:[{type:"command",command:`${e} invoke-hook post-bash`,timeout:3}]}],Stop:[{hooks:[{type:"command",command:`${e} invoke-hook stop`,timeout:10}]}],SessionStart:[{hooks:[{type:"command",command:`${e} invoke-hook session-start`,timeout:5}]}]}}),w=async(e,s="npx eser@latest noskills")=>{let o=`${e}/.claude/settings.json`,t={};try{let r=await i.fs.readTextFile(o);t=JSON.parse(r)}catch{}let n=N(s),a={...t,...n};await i.fs.mkdir(`${e}/.claude`,{recursive:!0}),await i.fs.writeTextFile(o,JSON.stringify(a,null,2)+`
|
|
12
|
-
`)};var O=async e=>{let s=`${e}/${h.rulesDir}`,o=[];try{for await(let t of i.fs.readDir(s))if(t.isFile&&(t.name.endsWith(".md")||t.name.endsWith(".txt"))){let n=await i.fs.readTextFile(`${s}/${t.name}`),a=n.trim().split(`
|
|
13
|
-
`)[0]??n.trim();o.push(a)}}catch{}return o},A={cursor:f,kiro:y,copilot:k,windsurf:g},B=async(e,s,o)=>{let t=await O(e),n=[],a={allowGit:o?.allowGit??!1},r=await d();for(let c of s){if(c==="claude-code"){await p(e,t,a,r),n.push(c);continue}let l=A[c];l!==void 0&&(await l(e,t,r),n.push(c))}return s.includes("claude-code")&&(await w(e,r),n.push("hooks")),n};export{O as a,B as b};
|
package/chunks/chunk-2HBVIH7V.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as w,f as C}from"./chunk-DYRTLYTU.js";import{a as A}from"./chunk-2VEVVX6U.js";import{a as O,b as U}from"./chunk-4DOMGQOO.js";import{a as b,b as x,c as F,d as m}from"./chunk-J2Z7NG2X.js";import{f as v}from"./chunk-3BEX5FYF.js";import{b as i,g as P,i as l}from"./chunk-3SXTMY75.js";import{a as S}from"./chunk-MG65QJY6.js";import{g as a}from"./chunk-A6RDYP6R.js";import{j as h}from"./chunk-7ATUODBM.js";import{v as V}from"./chunk-MRCBHVSB.js";var d=O(),M=async(n={})=>{let{root:e="."}=n,s=h(e,"VERSION");try{return(await V.runtime.fs.readTextFile(s)).trim()}catch{return}},T=async(n,e)=>{let s=h(n,"VERSION");await V.runtime.fs.writeTextFile(s,e+`
|
|
3
|
-
`)},j=n=>{let e=m("0.0.0");for(let s of n){let r=m(s);b(r,e)>0&&(e=r)}return x(e)},H=async(n={})=>{let{root:e="."}=n,[s,r]=await C(e),p=s.version?.value??"0.0.0";return{packages:[{name:s.name?.value??"(root)",version:p},...r.map(u=>({name:u.name,version:u.version}))]}},D=async(n,e={})=>{let{root:s=".",dryRun:r=!1,updateVersionFile:p=!0}=e,[c,y]=await C(s),u=c.version?.value??"0.0.0",E=c.name?.value??"(root)",$=[u,...y.map(o=>o.version)],R=j($),t;if(n==="explicit"){if(e.explicitVersion===void 0)throw new Error('explicitVersion is required when command is "explicit".');m(e.explicitVersion),t=e.explicitVersion}else n==="sync"?t=R:t=x(F(m(R),n));let g=[],I=u!==t;r||await w(c,t),g.push({name:E,from:u,to:t,changed:I});for(let o of y){let f=o.version!==t;r||await w(o.config,t),g.push({name:o.name,from:o.version,to:t,changed:f})}let k=[];if(p){let o=await M({root:s}),f=o!==t;!r&&f&&await T(s,t),k.push({path:"VERSION",from:o??"",to:t,changed:f})}let N=g.filter(o=>o.changed).length;return{command:n,targetVersion:t,updates:g,fileUpdates:k,changedCount:N,dryRun:r}},W=n=>n.mode==="show"?v.fromPromise(async()=>({mode:"show",result:await H()})):v.fromPromise(async()=>({mode:"update",result:await D(n.command,n.options)})),q=n=>{let e=n.args[0];if(e===void 0)return a.ok({mode:"show"});let s=["sync","patch","minor","major"],r,p;s.includes(e)?r=e:(r="explicit",p=e);let c=n.flags["dry-run"]===!0;return a.ok({mode:"update",command:r,options:{dryRun:c,explicitVersion:p}})},B=n=>{if(a.isFail(n))return a.fail({exitCode:1,message:String(n.error)});let e=n.value;if(e.mode==="show")return console.table(e.result.packages),a.ok(void 0);let{result:s}=e;s.command==="sync"?d.writeln(l("\u2139"),i(" Syncing all versions...")):s.command==="explicit"?d.writeln(l("\u2139"),i(` Setting all versions to ${s.targetVersion}...`)):d.writeln(l("\u2139"),i(` Bumping all versions (${s.command})...`)),d.writeln(l("\u2139"),i(` Target version: ${s.targetVersion}`)),console.table(s.updates);for(let r of s.fileUpdates)r.changed&&d.writeln(l("\u2139"),i(` ${r.path} (${r.from} \u2192 ${r.to})`));return s.dryRun?d.writeln(l("\u2139"),i(` Dry run - ${s.changedCount} packages would be modified.`)):d.writeln(P("\u2713"),i(` Done. Updated ${s.changedCount} packages.`)),a.ok(void 0)},z=A.createTrigger({handler:W,adaptInput:q,adaptOutput:B}),se=async n=>{let e=S(n??[],{boolean:["dry-run"]}),s=U("versions",e);return await z(s)};export{M as a,H as b,D as c,W as d,z as e,se as f};
|
package/chunks/chunk-32HV3K27.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
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};
|
package/chunks/chunk-46ZWBKIW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
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};
|
package/chunks/chunk-4DOMGQOO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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-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};
|
package/chunks/chunk-6FNHSIZJ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as D,c as S,d as k,e as P}from"./chunk-OCPEFZBJ.js";import{c as O}from"./chunk-CBGABZ5E.js";var R=[{id:"status_quo",text:"What does the user do today without this feature?",concerns:["product:status_quo","eng:replace_scope","qa:regression_risk"]},{id:"ambition",text:"Describe the 1-star and 10-star versions.",concerns:["product:scope_direction","eng:complexity_tier","qa:test_depth"]},{id:"reversibility",text:"Does this change involve an irreversible decision?",concerns:["product:one_way_door","eng:migration_strategy","qa:verification_stringency"]},{id:"user_impact",text:"Does this change affect existing users' behavior?",concerns:["product:breaking_change","eng:backward_compat","qa:regression_tests"]},{id:"verification",text:"How do you verify this works correctly?",concerns:["product:success_metric","eng:test_strategy","qa:acceptance_criteria"]},{id:"scope_boundary",text:"What should this feature NOT do?",concerns:["product:focus","eng:out_of_scope","qa:negative_tests"]}],I=e=>R.map(n=>({...n,extras:S(e,n.id)})),K=(e,n)=>{let o=new Set(n.map(s=>s.questionId));for(let s of e)if(!o.has(s.id))return s;return null},A=e=>{let n=new Set(e.map(o=>o.questionId));return R.every(o=>n.has(o.id))};var t=e=>O(e),B="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.",F=(e,n,o,s)=>{let l=e.execution.iteration>=n,i=o?[]:[B],d=s?.outOfScope??[];switch(e.phase){case"IDLE":return{rules:[...i,"When interactiveOptions are present, use AskUserQuestion to present them. Map each option's label and description fields directly to the tool's options array. When the user picks one, run the corresponding command.","For availableConcerns: AskUserQuestion only supports 4 options per question. Use multiSelect and split concerns across two AskUserQuestion calls if needed (e.g., first 3 + last 3), or list all 6 as text and ask which to add. Never silently drop concerns.","Do not take action without the user choosing an option first."],tone:"Welcoming. Present choices, then wait."};case"DISCOVERY":return{rules:[...i,"Present questions to the user ONE AT A TIME. Show concern sub-questions as additional context for each.","Push back on shallow answers. If the user says something vague like 'a CLI project' or 'manual workarounds', probe deeper: 'What specific problem? Who needs this? How often?' \u2014 like a good PM in sprint planning.","A one-sentence answer is almost always too shallow. Ask one follow-up to deepen it before accepting.","Once you have a substantive answer for each question, collect all answers and submit them together in a single `noskills next --answer` call as a JSON object.","Do not start coding or exploring the codebase. Discovery is conversation only."],tone:"Curious interviewer who has a stake in the answers. Push for specifics, don't accept handwaving."};case"SPEC_DRAFT":return{rules:[...i,"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:[...i,"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=[...i,"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 \`${t("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: \`${t('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 r={rules:a,tone:"Direct. No preamble. Start coding immediately.",outOfScope:d.length>0?d:void 0};return l?{...r,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.`}:r}case"BLOCKED":return{rules:[...i,"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:[...i,"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:[...i,`Run \`${t("next")}\` to get your instructions.`,"Do not take action without noskills guidance."],tone:"Neutral. Waiting for direction."}}},q=5*60*1e3,U=(e,n)=>{let o;switch(e.phase){case"IDLE":o=`No active spec. Start one with: \`${t("spec new")}\``;break;case"DISCOVERY":o=`Discovery in progress for "${e.spec}". ${e.discovery.answers.length} questions answered so far.`;break;case"SPEC_DRAFT":o=`Spec draft ready for review at ${e.specState.path}. Waiting for approval.`;break;case"SPEC_APPROVED":o=`Spec "${e.spec}" is approved. Waiting to start execution.`;break;case"EXECUTING":o=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":o=`Execution blocked: ${e.execution.lastProgress}. Ask the user to resolve.`;break;case"DONE":o=`Spec "${e.spec}" completed in ${e.execution.iteration} iterations.`;break;default:o=`Run \`${t("next")}\` to get started.`}return{protocol:`Run \`${t('next --answer="..."')}\` to submit results and advance`,spec:e.spec,branch:e.branch,iteration:e.execution.iteration,lastProgress:e.execution.lastProgress,activeConcerns:n.map(s=>s.id),resumeHint:o}},L=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 \`${t("next")}\` for instructions. Submit results with \`${t('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase};let n=new Date(e.lastCalledAt).getTime();if(Date.now()-n>q)return{what:"noskills orchestrates your work: IDLE \u2192 DISCOVERY \u2192 SPEC_DRAFT \u2192 SPEC_APPROVED \u2192 EXECUTING \u2192 DONE",how:`Run \`${t("next")}\` for instructions. Submit results with \`${t('next --answer="..."')}\`. Never make architectural decisions without asking.`,currentPhase:e.phase}},Z=(e,n,o,s,l,i)=>{let d=U(e,n),a=s?.maxIterationsBeforeRestart??15,r=s?.allowGit??!1,h=F(e,a,r,l),x=L(e),u;switch(e.phase){case"IDLE":u=T(n,D);break;case"DISCOVERY":u=W(e,n,o);break;case"SPEC_DRAFT":u=G(e);break;case"SPEC_APPROVED":u=j(e);break;case"EXECUTING":u=M(e,n,o,a,l,i);break;case"BLOCKED":u=X(e);break;case"DONE":u=H(e);break;default:u=T(n,D)}let m={...u,meta:d,behavioral:h};x!==void 0&&(m={...m,protocolGuide:x}),e.pendingClear&&(m={...m,clearContext:{action:"clear_context",reason:`Task complete. Run \`/clear\` now. After clearing, read \`CLAUDE.md\` and run \`${t("next")}\` to continue.`},instruction:`Task accepted. Run \`/clear\` immediately to start fresh for the next task. After clearing, run \`${t("next")}\`.`});let y=V(e,n);return y.length>0&&(m={...m,interactiveOptions:y}),m},V=(e,n)=>{switch(e.phase){case"IDLE":return n.length===0?[{label:"Add concerns (Recommended)",description:"Shape how discovery and specs work by adding project concerns",command:t("concern add <id>")},{label:"Start a feature spec",description:"Begin discovery questions for a new feature",command:t('spec new "description"')},{label:"Add a coding rule",description:"Add a permanent coding convention for this project",command:t('rule add "rule"')},{label:"Check status",description:"Show current phase, spec, and progress",command:t("status")}]:[{label:"Start a feature spec",description:"Begin discovery questions for a new feature",command:t('spec new "description"')},{label:"Add more concerns",description:"Add additional project concerns",command:t("concern add <id>")},{label:"Add a coding rule",description:"Add a permanent coding convention for this project",command:t('rule add "rule"')},{label:"Check status",description:"Show current phase, spec, and progress",command:t("status")}];case"SPEC_DRAFT":return[{label:"Approve spec",description:"Review looks good \u2014 approve and move to execution",command:t("approve")},{label:"Start over",description:"Reset the spec and start fresh",command:t("reset")}];case"SPEC_APPROVED":return[{label:"Start execution",description:"Begin working through the spec tasks",command:t('next --answer="start"')},{label:"Reset",description:"Discard this spec and start over",command:t("reset")}];case"EXECUTING":return[];case"BLOCKED":return[{label:"Resolve block",description:"Provide a resolution to unblock execution",command:t('next --answer="resolution"')},{label:"Reset spec",description:"Abandon this spec and start over",command:t("reset")}];case"DONE":return[{label:"New spec",description:"Start a new feature spec",command:t('spec new "description"')},{label:"Check status",description:"Review completed spec summary",command:t("status")}];default:return[]}},T=(e,n)=>({phase:"IDLE",instruction:"Present the interactive options to the user using your interactive question tool. Do NOT list them as a text table.",availableConcerns:n.map(o=>({id:o.id,description:o.description})),activeConcerns:e.map(o=>o.id),hint:e.length===0?"No concerns active. Consider adding concerns first \u2014 they shape discovery questions and specs.":void 0}),W=(e,n,o)=>{let s=I(n),l=e.discovery.answers.length;if(A(e.discovery.answers))return{phase:"DISCOVERY",instruction:`All discovery questions answered. Run: \`${t("approve")}\``,questions:[],answeredCount:l,context:{rules:o,concernReminders:[]},transition:{onComplete:t("approve")}};let d=new Set(e.discovery.answers.map(r=>r.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:s.filter(r=>!d.has(r.id)).map(r=>({id:r.id,text:r.text,concerns:[...r.concerns],extras:r.extras.map(h=>h.text)})),answeredCount:l,context:{rules:o,concernReminders:k(n)},transition:{onComplete:`${t(`next --answer='{"status_quo":"...","ambition":"...",...}'`)}`}}},G=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:`${t(`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: `"+t(`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:t("approve")}},j=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:`${t('next --answer="start"')}`}}),Q=(e,n)=>{if(n===null)return!1;switch(e){case"beautiful-product":return n.involvesUI;case"open-source":return n.involvesPublicAPI;case"long-lived":return n.involvesMigration;case"compliance":return n.involvesDataHandling;default:return!0}},Y=(e,n,o,s,l,i,d)=>{let a=[];if(s!==null)for(let r of s.items)a.push(`[DEBT from iteration ${s.fromIteration}] ${r}`);if(n&&a.push(`[FAILED] Tests \u2014 fix this first: ${o.slice(0,200)}`),i!=null)for(let r of i.verification)a.push(r);for(let r of e)if(Q(r.id,l)&&r.acceptanceCriteria!==void 0&&r.acceptanceCriteria.length>0)for(let h of r.acceptanceCriteria)a.push(`(${r.id}) ${h}`);if(d!==void 0)for(let r of d)a.push(`(folder: ${r.folder}) ${r.rule}`);return a},M=(e,n,o,s,l,i)=>{let d=P(n),a=e.execution.iteration>=s,r=e.execution.lastVerification?.passed===!1,h=e.execution.lastVerification?.output??"",x=l?.tasks??[],u=e.execution.completedTasks??[],m=new Set(u),y=x.find(p=>!m.has(p.id))??null,g=y!==null?{id:y.id,title:y.title,totalTasks:x.length,completedTasks:u.length}:void 0;if(e.execution.awaitingStatusReport){let p=Y(n,r,h,e.execution.debt,e.classification,l,i),b={phase:"EXECUTING",instruction:"Before this task is accepted, report your completion status against these acceptance criteria.",context:{rules:o,concernReminders:k(n)},transition:{onComplete:`${t(`next --answer='{"completed":[...],"remaining":[...],"blocked":[...]}'`)}`,onBlocked:`${t('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 r&&(b={...b,verificationFailed:!0,verificationOutput:h.slice(0,2e3)}),b}let E=(e.execution.lastProgress??"").includes("Task not accepted"),v=e.execution.debt?.items??[],C=e.execution.debt?.unaddressedIterations??0,$=g!==void 0?`Execute task ${g.id}: ${g.title} (${g.completedTasks}/${g.totalTasks} completed)`:"All tasks completed. Run `"+t("done")+"` to finish.",w;if(r)w="Verification FAILED. Fix the failing tests before continuing.";else if(E&&v.length>0){let p=C>=3?` These items have been outstanding for ${C} iterations.`:"";w=`Task not accepted \u2014 ${v.length} remaining item(s) must be addressed before this task can be completed.${p} Address them, then submit a new status report.`}else w=$;let c={phase:"EXECUTING",instruction:w,task:g,context:{rules:o,concernReminders:k(n)},transition:{onComplete:`${t('next --answer="..."')}`,onBlocked:`${t('block "reason"')}`,iteration:e.execution.iteration}};if(E&&v.length>0&&(c={...c,taskRejected:!0,rejectionReason:`${v.length} remaining item(s) must be addressed.`,rejectionRemaining:v}),e.execution.debt!==null&&e.execution.debt.items.length>0){let p=e.execution.debt.unaddressedIterations??0,b=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:b}}}if(r){let p=h.slice(0,2e3);c={...c,verificationFailed:!0,verificationOutput:p}}d.length>0&&(c={...c,concernTensions:d}),a&&(c={...c,restartRecommended:!0,restartInstruction:`Context may be getting large after ${e.execution.iteration} iterations. Consider starting a new conversation and running \`${t("next")}\` to resume - your progress is saved.`});let f=[...e.decisions].reverse().find(p=>!p.promoted);return f!==void 0&&e.execution.lastProgress?.startsWith("Resolved:")&&(c={...c,promotePrompt:{decisionId:f.id,question:f.question,choice:f.choice,prompt:`You just resolved a decision: "${f.choice}". Ask the user: "Should this be a permanent rule for future specs too?" If yes, run: \`${t(`rule add "${f.choice}"`)}\``}}),c},X=e=>({phase:"BLOCKED",instruction:"A decision is needed. Ask the user.",reason:e.execution.lastProgress??"Unknown",transition:{onResolved:`${t('next --answer="..."')}`}}),H=e=>({phase:"DONE",summary:{spec:e.spec,iterations:e.execution.iteration,decisionsCount:e.decisions.length}});export{R as a,I as b,K as c,A as d,Z as e};
|
package/chunks/chunk-CBGABZ5E.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{r as s,t as r}from"./chunk-MRCBHVSB.js";var c="npx eser@latest noskills",o={command:"eser",devCommand:"deno task cli",npmPackage:"eser@latest",jsrPackage:"@eser/cli"},e=null,l=async()=>{if(e!==null)return e;try{e=`${(await s(o)).command} noskills`}catch{try{let t=r.process.args;for(let n=0;n<t.length;n++)if(t[n]==="noskills"||t[n]==="nos"){e=t.slice(0,n+1).join(" ");break}}catch{}}return e??=c,e},i=()=>e??c,m=t=>`${i()} ${t}`;export{l as a,i as b,m as c};
|
package/chunks/chunk-CDPSH56U.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
var o=e=>e==="inherit"?"inherit":e==="piped"?"pipe":"ignore";var d=e=>({stdin:e?.stdin??"null",stdout:e?.stdout??"piped",stderr:e?.stderr??"piped"}),i=e=>{let t=d(e);return[o(t.stdin),o(t.stdout),o(t.stderr)]};export{d as a,i as b};
|
package/chunks/chunk-CZS6DCUY.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as _,b as H,c as P}from"./chunk-5GGGQJ4P.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-LKF6GBNU.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
|
-
# This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
|
|
4
|
-
complete -c eser -f
|
|
5
|
-
complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
|
|
6
|
-
complete -c eser -n "__fish_use_subcommand" -a "system" -d "Commands related with this CLI"
|
|
7
|
-
complete -c eser -n "__fish_use_subcommand" -a "install" -d "Install eser CLI globally"
|
|
8
|
-
complete -c eser -n "__fish_use_subcommand" -a "update" -d "Update eser CLI to latest version"
|
|
9
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "install" -d "Install eser CLI globally"
|
|
10
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "uninstall" -d "Uninstall eser CLI globally"
|
|
11
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "update" -d "Update eser CLI to latest version"
|
|
12
|
-
complete -c eser -n "__fish_seen_subcommand_from system" -a "completions" -d "Generate shell completion scripts"
|
|
13
|
-
`),s.writeln(r(" "),l("Created"),r(" "),o(n))}else{let n=await X(t.rcFile),a=H(e,D);if(!n.includes(a)){let f=`
|
|
14
|
-
${oe}
|
|
15
|
-
${a}
|
|
16
|
-
`;await d.fs.writeTextFile(t.rcFile,n+f),s.writeln(r(" "),l("Added completions to"),r(" "),o(t.rcFile))}}}catch(n){s.writeln(Y(` Warning: Could not add shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()},le=async e=>{let t=P(e,D),s=p({renderer:c.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile;await ie(n)&&(await d.fs.remove(n),s.writeln(r(" "),l("Removed"),r(" "),o(n)))}else{let n=await X(t.rcFile);if(n===""){await s.close();return}let a=H(e,D);if(!n.includes(a)){await s.close();return}let f=n.split(`
|
|
17
|
-
`).filter(i=>!i.includes("eser system completions")).filter(i=>i!==oe).join(`
|
|
18
|
-
`).replace(/\n{3,}/g,`
|
|
19
|
-
|
|
20
|
-
`);await d.fs.writeTextFile(t.rcFile,f),s.writeln(r(" "),l("Removed completions from"),r(" "),o(t.rcFile))}}catch(n){s.writeln(Y(` Warning: Could not remove shell completions: ${n instanceof Error?n.message:String(n)}`))}await s.close()};var L=d,we={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},ce={deno:{cmd:"deno",args:["install","-r","-g","-A","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["install","-g","-f","eser"]},bun:{cmd:"bun",args:["install","-g","-f","eser"]}},ge=async()=>{let e=B(),t=L.path.join(e,".local","bin");try{return await L.fs.stat(t),t}catch{}return"/usr/local/bin"},xe=async()=>{let e=L.process.execPath(),t=await ge(),s=L.path.join(t,"eser"),n=p({renderer:c.ansi(),sink:u.stdout()});n.writeln(r("Install method: "),o("compiled binary")),n.writeln(l(`Copying to ${s}...`));try{await L.fs.copyFile(e,s),await L.fs.chmod(s,493)}catch(i){if(i instanceof Deno.errors.PermissionDenied)return n.writeln(m(`
|
|
21
|
-
Permission denied writing to ${t}.
|
|
22
|
-
Try: sudo eser install`)),await n.close(),w({exitCode:1});throw await n.close(),i}n.writeln(g(`
|
|
23
|
-
Installation complete!`)),n.writeln(r("You can now use "),o("eser"),r(" from anywhere in your terminal."));let a=_();if(!await Z(a)){n.writeln(r(`
|
|
24
|
-
Setting up `),o(a),r(" completions...")),await ee(a);let i=P(a);i.completionType==="eval"&&n.writeln(l(` Restart your shell or run 'source ${i.rcFile}' to enable completions.`))}return await n.close(),h(void 0)},ye=async e=>{let t=await I(we);if(t.invoker==="binary")return await xe();let s=p({renderer:c.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),o(t.runtime));let n=ce[t.runtime]??ce.node,{cmd:a,args:f}=n;s.writeln(l(`Running: ${a} ${f.join(" ")}`)),s.writeln();let i=await x`${a} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();if(!i.success)return s.writeln(m(`
|
|
25
|
-
Installation failed.`)),await s.close(),w({exitCode:i.code});s.writeln(g(`
|
|
26
|
-
Installation complete!`)),s.writeln(r("You can now use "),o("eser"),r(" from anywhere in your terminal."));let C=_();if(!await Z(C)){s.writeln(r(`
|
|
27
|
-
Setting up `),o(C),r(" completions...")),await ee(C);let G=P(C);G.completionType==="eval"&&s.writeln(l(` Restart your shell or run 'source ${G.rcFile}' to enable completions.`))}return await s.close(),h(void 0)};var Ce={deno:{cmd:"deno",args:["uninstall","-g","eser"]},node:{cmd:"npm",args:["uninstall","-g","eser"]},bun:{cmd:"bun",args:["remove","-g","eser"]}},ve=async e=>{let t=re(),s=p({renderer:c.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),o(t));let n=Ce[t];if(n===void 0){let A=c.ansi();return await s.close(),w({message:`${A.render([m(`
|
|
28
|
-
Unsupported runtime: ${t}`)])}
|
|
29
|
-
Global uninstallation is only supported for Deno, Node.js, and Bun.`,exitCode:1})}let{cmd:a,args:f}=n,i=_();s.writeln(r(`
|
|
30
|
-
Removing `),o(i),r(" completions...")),await le(i),s.writeln(l(`
|
|
31
|
-
Running: ${a} ${f.join(" ")}`)),s.writeln();let C=await x`${a} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return C.success?(s.writeln(g(`
|
|
32
|
-
Uninstallation complete!`)),s.writeln(r("The "),o("eser"),r(" command has been removed from your system.")),await s.close(),h(void 0)):(s.writeln(m(`
|
|
33
|
-
Uninstallation failed.`)),await s.close(),w({exitCode:C.code}))};var V=d,de=".cache/eser",ke="latest-version.json",Ee=24*60*60*1e3,Pe="https://api.github.com/repos/eser/stack/releases/latest",me=()=>{let e=B();return V.path.join(e,de,ke)},$e=()=>{let e=B();return V.path.join(e,de)},_e=async()=>{try{let e=me();if(!await V.fs.exists(e))return;let s=await V.fs.readTextFile(e),n=JSON.parse(s);return typeof n.latestVersion!="string"||typeof n.checkedAt!="number"?void 0:n}catch{return}},Re=async e=>{try{let t=$e();await V.fs.ensureDir(t);let s=me(),n={latestVersion:e,checkedAt:Date.now()};await V.fs.writeTextFile(s,JSON.stringify(n))}catch{}},Ae=async()=>{try{let e=await fetch(Pe,{headers:{Accept:"application/vnd.github.v3+json"}});if(!e.ok)return;let s=(await e.json()).tag_name;return typeof s!="string"?void 0:s.startsWith("v")?s.slice(1):s}catch{return}},O=async()=>{try{let e=v.version,t=await _e();if(t!==void 0&&Date.now()-t.checkedAt<Ee)return{latestVersion:t.latestVersion,currentVersion:e,updateAvailable:Q(e,t.latestVersion)};let s=await Ae();return s===void 0?void 0:(await Re(s),{latestVersion:s,currentVersion:e,updateAvailable:Q(e,s)})}catch{return}};var y=d,be={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},pe={deno:{cmd:"deno",args:["install","-r","-g","-A","-f","--name","eser","jsr:@eser/cli"]},node:{cmd:"npm",args:["update","-g","-f","eser"]},bun:{cmd:"bun",args:["update","-g","-f","eser"]}},Te={"linux-amd64":"x86_64-unknown-linux-gnu","linux-arm64":"aarch64-unknown-linux-gnu","darwin-amd64":"x86_64-apple-darwin","darwin-arm64":"aarch64-apple-darwin","windows-amd64":"x86_64-pc-windows-msvc"},Se=()=>{let e=W(),t=K(),s=`${e}-${t}`;return Te[s]},Fe=async()=>{let e=p({renderer:c.ansi(),sink:u.stdout()});e.writeln(r("Install method: "),o("compiled binary")),e.writeln(r("Current version: "),o(v.version),r(`
|
|
34
|
-
`)),e.writeln(r("Checking for updates..."));let t=await O();if(t===void 0)return e.writeln(m("Could not check for updates.")),await e.close(),w({exitCode:1});if(!t.updateAvailable)return e.writeln(g(`
|
|
35
|
-
Already up to date (v${v.version}).`)),await e.close(),h(void 0);e.writeln(r(`
|
|
36
|
-
New version available: `),o(`v${t.latestVersion}`));let s=Se();if(s===void 0){let E=W(),S=K();return e.writeln(m(`
|
|
37
|
-
Unsupported platform: ${E}-${S}`)),await e.close(),w({exitCode:1})}let n=`v${t.latestVersion}`,a=W()==="windows",i=`eser-${n}-${s}.${a?"zip":"tar.gz"}`,C=`https://github.com/eser/stack/releases/download/${n}`;e.writeln(l(`Downloading ${i}...`));let A=await fetch(`${C}/${i}`);if(!A.ok)return e.writeln(m(`
|
|
38
|
-
Failed to download: HTTP ${A.status}`)),await e.close(),w({exitCode:1});let G=await fetch(`${C}/SHA256SUMS.txt`);if(G.ok){let S=(await G.text()).split(`
|
|
39
|
-
`).find(F=>F.includes(i));if(S!==void 0){let F=S.split(/\s+/)[0],U=new Uint8Array(await A.clone().arrayBuffer()),$=await crypto.subtle.digest("SHA-256",U);if(Array.from(new Uint8Array($)).map(he=>he.toString(16).padStart(2,"0")).join("")!==F)return e.writeln(m(`
|
|
40
|
-
SHA256 checksum verification failed.`)),await e.close(),w({exitCode:1});e.writeln(l("Checksum verified."))}}let T=await y.fs.makeTempDir({prefix:"eser-update-"});try{let E=y.path.join(T,i),S=new Uint8Array(await A.arrayBuffer());await y.fs.writeFile(E,S),a?await x`powershell -Command "Expand-Archive -Path ${E} -DestinationPath ${T}"`.spawn():await x`tar -xzf ${E} -C ${T}`.spawn();let F=a?y.path.join(T,"eser.exe"):y.path.join(T,"eser"),U=y.process.execPath();if(a){let $=U.replace(/\.exe$/i,".new.exe");await y.fs.copyFile(F,$),e.writeln(g(`
|
|
41
|
-
Downloaded v${t.latestVersion}!`)),e.writeln(r(`
|
|
42
|
-
To complete the update, close this terminal and rename:
|
|
43
|
-
`),o($),r(`
|
|
44
|
-
to:
|
|
45
|
-
`),o(U))}else{let $=`${U}.new`;await y.fs.copyFile(F,$),await y.fs.chmod($,493),await y.fs.rename($,U),e.writeln(g(`
|
|
46
|
-
Updated to v${t.latestVersion}!`))}}catch(E){if(E instanceof Deno.errors.PermissionDenied)return e.writeln(m(`
|
|
47
|
-
Permission denied. Try running with sudo:
|
|
48
|
-
sudo eser update`)),await e.close(),w({exitCode:1});throw await e.close(),E}finally{try{await y.fs.remove(T,{recursive:!0})}catch{}}return await e.close(),h(void 0)},Ue=async e=>{let t=await I(be);if(t.invoker==="binary")return await Fe();let s=p({renderer:c.ansi(),sink:u.stdout()});s.writeln(r("Detected runtime: "),o(t.runtime));let n=pe[t.runtime]??pe.node,{cmd:a,args:f}=n;s.writeln(l(`Running: ${a} ${f.join(" ")}`)),s.writeln();let i=await x`${a} ${f}`.stdout("inherit").stderr("inherit").noThrow().spawn();return i.success?(s.writeln(g(`
|
|
49
|
-
Update complete!`)),s.writeln(r("The "),o("eser"),r(" command has been updated to the latest version.")),await s.close(),h(void 0)):(s.writeln(m(`
|
|
50
|
-
Update failed.`)),await s.close(),w({exitCode:i.code}))};var Ie=e=>{let t=P(e,"eser"),s=c.ansi();if(t.completionType==="file")return`
|
|
51
|
-
To install, run:
|
|
52
|
-
|
|
53
|
-
${s.render([l(`eser system completions --shell fish > ${t.completionsFile}`)])}
|
|
54
|
-
`;let n=H(e,"eser");return`
|
|
55
|
-
To install, add the following to your ${s.render([o(t.rcFile)])}:
|
|
56
|
-
|
|
57
|
-
${s.render([l(n)])}
|
|
58
|
-
`},He=e=>{let t=e.flags.shell,s=c.ansi(),n=p({renderer:s,sink:u.stdout()}),a;if(t!==void 0){if(!["bash","zsh","fish"].includes(t))return w({message:`${s.render([m(`Invalid shell: ${t}`)])}
|
|
59
|
-
Supported shells: bash, zsh, fish`,exitCode:1});a=t}else a=_();let i=e.root.completions(a);return t===void 0&&(n.writeln(r("Generating "),o(a),r(" completions...")),console.log(Ie(a)),n.writeln(l(`--- Completion script ---
|
|
60
|
-
`))),console.log(i),h(void 0)};var De=200,je=async e=>{let t=p({renderer:c.ansi(),sink:u.stdout()});if(e.flags.bare===!0)return t.writeln(r(v.version)),await t.close(),h(void 0);t.writeln(r(`eser ${v.version}`));try{let s=new Promise(a=>{setTimeout(()=>a(void 0),De)}),n=await Promise.race([O(),s]);n!==void 0&&n.updateAvailable&&t.writeln(l(` Update available: v${n.latestVersion} \u2014 run 'eser update'`))}catch{}return await t.close(),h(void 0)};var z=d,Ne={command:"eser",devCommand:"deno task cli",npmPackage:"eser",jsrPackage:"@eser/cli"},J=17,R=p({renderer:c.ansi(),sink:u.stdout()}),b=(e,t)=>{let s=`${e}:`.padEnd(J);R.writeln(r(` ${s}`),g("\u2713"),r(` ${t}`))},k=(e,t)=>{let s=`${e}:`.padEnd(J);R.writeln(r(` ${s}`),m("\u2717"),r(` ${t}`))},ue=(e,t)=>{let s=`${e}:`.padEnd(J);R.writeln(r(` ${s}${t}`))},Le=(e,t)=>{let s=`${e}:`.padEnd(J);R.writeln(r(` ${s}`),l("-"),r(` ${t}`))},ne=async e=>{try{return await z.fs.stat(e),!0}catch{return!1}},Ve=async e=>{try{return await z.fs.readTextFile(e)}catch{return""}},fe=(e,t)=>e.match(t)?.[1],Oe=async()=>{let e=z.path.join(".",".git","hooks","pre-commit");if(!await ne(e)){k("Git hooks","Not installed");return}(await Ve(e)).includes("eser")?b("Git hooks","Installed"):k("Git hooks","Not installed")},Ge=async()=>{let e=z.path.join(".",".eser","manifest.yml"),t=z.path.join(".",".manifest.yml");if(await ne(e)){b("Manifest",".eser/manifest.yml found");return}if(await ne(t)){b("Manifest",".manifest.yml found (legacy path)");return}k("Manifest",".eser/manifest.yml not found")},Be=async()=>{try{let e=await x`deno --version`.noThrow().quiet().text(),t=fe(e,/deno\s+(\S+)/);t!==void 0?b("Deno",t):k("Deno","Not found")}catch{k("Deno","Not found")}},Me=async()=>{try{let e=await x`go version`.noThrow().quiet().text(),t=fe(e,/go(\d+\.\d+(?:\.\d+)?)/);t!==void 0?b("Go",t):k("Go","Not found")}catch{k("Go","Not found")}},ze=async()=>{try{let t=(await x`node --version`.noThrow().quiet().text()).trim();t.length>0?b("Node",t):k("Node","Not found")}catch{k("Node","Not found")}},We=async e=>{R.writeln(r(`eser doctor
|
|
61
|
-
`));let t=await I(Ne);ue("Install method",`${t.invoker} (${t.mode})`),ue("Version",v.version);let s=await O();return s===void 0?Le("Update","Could not check for updates"):s.updateAvailable?k("Update",`Update available: v${s.latestVersion}`):b("Update","Up to date"),R.writeln(),await Oe(),await Ge(),R.writeln(),await Be(),await Me(),await ze(),await R.close(),h(void 0)};export{ye as a,ve as b,Ue as c,He as d,je as e,We as f};
|