eser 4.1.50 → 4.1.53
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/approve-VBXGXWZI.js +2 -0
- package/chunks/block-Z4BELXXO.js +2 -0
- package/chunks/{build-S4DSRSSR.js → build-4WTOXDXD.js} +1 -1
- package/chunks/cancel-HHW2G675.js +2 -0
- package/chunks/{changelog-gen-TE6FXELA.js → changelog-gen-JTU6WIYA.js} +1 -1
- package/chunks/{chunk-66VSO643.js → chunk-352YGR5O.js} +1 -1
- package/chunks/{chunk-BJ45FF6F.js → chunk-4BOZ4A55.js} +1 -1
- package/chunks/chunk-5GGWX7CO.js +4 -0
- package/chunks/{chunk-NWWXAZFA.js → chunk-5QUEAV4O.js} +26 -26
- package/chunks/chunk-5YBG2HOI.js +3 -0
- package/chunks/chunk-6F4PFXYY.js +2 -0
- package/chunks/{chunk-N6PXARPJ.js → chunk-6HJUPT5Y.js} +1 -1
- package/chunks/{chunk-AUDMKDAA.js → chunk-6M64JLJW.js} +1 -1
- package/chunks/{chunk-Z2RL2SFY.js → chunk-6WFCBJPF.js} +1 -1
- package/chunks/{chunk-ZQ7KN4HT.js → chunk-7L4DDCRL.js} +1 -1
- package/chunks/{chunk-TTLUVJIR.js → chunk-7V3IDYYI.js} +1 -1
- package/chunks/{chunk-YCI2VITZ.js → chunk-BKWQQUSY.js} +1 -1
- package/chunks/{chunk-OSNPAAYT.js → chunk-BZSILAX3.js} +1 -1
- package/chunks/{chunk-BNZPRQUS.js → chunk-DGI7M6TL.js} +1 -1
- package/chunks/{chunk-TBRDRQQK.js → chunk-DYBJ6UPO.js} +1 -1
- package/chunks/{chunk-QRNSYEPI.js → chunk-EJBYYUXZ.js} +1 -1
- package/chunks/{chunk-3SBAWBWS.js → chunk-F4QK3J3J.js} +1 -1
- package/chunks/{chunk-HV3EYAGF.js → chunk-GQ4WRANA.js} +1 -1
- package/chunks/{chunk-4QMRLILJ.js → chunk-H6U2EE7V.js} +1 -1
- package/chunks/{chunk-4NNSMDFH.js → chunk-IUORSUN6.js} +1 -1
- package/chunks/{chunk-3CE7GA2P.js → chunk-JBUJTUEU.js} +1 -1
- package/chunks/chunk-KFVUFHJB.js +6 -0
- package/chunks/{chunk-IY3YRKJJ.js → chunk-L6J3BWVP.js} +1 -1
- package/chunks/{chunk-PG7KG7NX.js → chunk-LRAHXO3G.js} +1 -1
- package/chunks/chunk-NE2J6ISX.js +6 -0
- package/chunks/chunk-NQS27P25.js +6 -0
- package/chunks/{chunk-2PWSTO7A.js → chunk-NYHMH3N5.js} +1 -1
- package/chunks/chunk-ODBJ5KMQ.js +3 -0
- package/chunks/chunk-OXP2FOO5.js +2 -0
- package/chunks/{chunk-JTSRGXS4.js → chunk-PZUDTTK4.js} +1 -1
- package/chunks/{chunk-WJI2X6IA.js → chunk-RLA2Z7XV.js} +1 -1
- package/chunks/{chunk-PY6ZNQ4B.js → chunk-RLTTHJ3E.js} +1 -1
- package/chunks/{chunk-UYGKTA3C.js → chunk-RSHUTH4K.js} +1 -1
- package/chunks/chunk-RUTM4VP7.js +11 -0
- package/chunks/{chunk-4XXI5LYN.js → chunk-SKW7N57D.js} +1 -1
- package/chunks/{chunk-CE6UVD6F.js → chunk-TJ4VL7T5.js} +1 -1
- package/chunks/{chunk-KFSZ6MDH.js → chunk-UTENCUNI.js} +1 -1
- package/chunks/{chunk-BESTYZQY.js → chunk-V3KWM26F.js} +1 -1
- package/chunks/{chunk-72R6CKNY.js → chunk-VGCEFEFY.js} +1 -1
- package/chunks/{chunk-MGNBNMJZ.js → chunk-VJSHVZ7R.js} +1 -1
- package/chunks/chunk-YWSOQJ7G.js +5 -0
- package/chunks/{chunk-DHNS2KLJ.js → chunk-ZZMU6YO4.js} +1 -1
- package/chunks/concern-YFXJJ7DL.js +2 -0
- package/chunks/delegate-FVHPWQS7.js +2 -0
- package/chunks/{dev-NJVFMPTE.js → dev-UV7J3QTQ.js} +1 -1
- package/chunks/diagrams-IC2ADMKS.js +2 -0
- package/chunks/diagrams-MRJB73CF.js +2 -0
- package/chunks/done-DMKJ27IQ.js +2 -0
- package/chunks/followup-XKVSZT2H.js +2 -0
- package/chunks/{gh-YLYXDL2X.js → gh-3GMLD6TO.js} +2 -2
- package/chunks/{gh-contributors-YFATSPSW.js → gh-contributors-PNU47Y7Q.js} +1 -1
- package/chunks/init-ONTNPCSY.js +2 -0
- package/chunks/invoke-hook-ZM6UQND6.js +14 -0
- package/chunks/learn-SRDLP7B5.js +8 -0
- package/chunks/{main-JZTE4B4L.js → main-PQW6MNZM.js} +1 -1
- package/chunks/manager-BMNUSWJO.js +7 -0
- package/chunks/{mod-MC2WNSB2.js → mod-6LLSLOX6.js} +1 -1
- package/chunks/{mod-TUZZQKGZ.js → mod-MKKBIIC4.js} +1 -1
- package/chunks/next-FD3EHJW3.js +8 -0
- package/chunks/pack-ZQMMSIIP.js +6 -0
- package/chunks/{purge-ZQ23VDGR.js → purge-LXL3F3EJ.js} +1 -1
- package/chunks/{release-XACZAR6J.js → release-5PXID6GL.js} +2 -2
- package/chunks/{release-notes-W6MNV6OT.js → release-notes-3OMBQLOK.js} +1 -1
- package/chunks/{release-tag-HSZX6WYU.js → release-tag-2B2CWVMZ.js} +1 -1
- package/chunks/reopen-3NA6JI4N.js +2 -0
- package/chunks/reset-XITFRWII.js +2 -0
- package/chunks/review-UVYK4M4T.js +2 -0
- package/chunks/rule-BAO7IP5S.js +7 -0
- package/chunks/run-EBKNNOG7.js +4 -0
- package/chunks/{serve-3PZ7RBQY.js → serve-T5HR56BZ.js} +1 -1
- package/chunks/session-SZYH2UOE.js +2 -0
- package/chunks/spec-CPRKQGOX.js +2 -0
- package/chunks/status-SRCNQJ4V.js +2 -0
- package/chunks/sync-WE6A7KC7.js +2 -0
- package/chunks/{system-CP5L6XUP.js → system-6TO2XBOH.js} +1 -1
- package/chunks/{system-N5A3SM5G.js → system-RWYI6DJF.js} +1 -1
- package/chunks/{validate-bom-EH5Z5TVU.js → validate-bom-YFYXM4ND.js} +1 -1
- package/chunks/{validate-case-conflict-XN4KQDSK.js → validate-case-conflict-E7LKQYVM.js} +1 -1
- package/chunks/{validate-circular-deps-YZ4DIXIM.js → validate-circular-deps-L4MDRIG3.js} +1 -1
- package/chunks/{validate-commit-msg-MXTBUPTC.js → validate-commit-msg-2JQ2W6Y6.js} +1 -1
- package/chunks/{validate-docs-BE32R2UM.js → validate-docs-EXDICKDK.js} +1 -1
- package/chunks/{validate-filenames-DMZ46CRH.js → validate-eof-UYQI6DYK.js} +1 -1
- package/chunks/{validate-export-names-D3QNF6VB.js → validate-export-names-QBYWTK5Q.js} +1 -1
- package/chunks/{validate-eof-JPKT2D3D.js → validate-filenames-Z6VSIR2C.js} +1 -1
- package/chunks/{validate-json-KG3U4NLK.js → validate-json-2JS2Y4YU.js} +1 -1
- package/chunks/validate-large-files-JKQBKNS4.js +2 -0
- package/chunks/validate-licenses-7MVLVDZA.js +2 -0
- package/chunks/validate-line-endings-KMXN5IUT.js +2 -0
- package/chunks/validate-merge-conflict-N7M4OVXI.js +2 -0
- package/chunks/{validate-mod-exports-J6KLADGR.js → validate-mod-exports-C7WDH4FK.js} +1 -1
- package/chunks/{validate-package-configs-BFCQMBEI.js → validate-package-configs-AYVT55GJ.js} +1 -1
- package/chunks/validate-secrets-3PW5GJZD.js +2 -0
- package/chunks/validate-shebangs-JACZB7C3.js +2 -0
- package/chunks/validate-submodules-SCY4LARV.js +2 -0
- package/chunks/validate-symlinks-PDLYFPNE.js +2 -0
- package/chunks/{validate-toml-OMUYIHX2.js → validate-toml-NGF5Q27B.js} +1 -1
- package/chunks/validate-trailing-whitespace-PDAFNVPQ.js +2 -0
- package/chunks/{validate-yaml-VTE42YLF.js → validate-yaml-ILJZJGDG.js} +1 -1
- package/chunks/{versions-GXSXTSSG.js → versions-VGXMC5GM.js} +1 -1
- package/chunks/{watch-EVUCQISN.js → watch-WBZB2C5P.js} +7 -7
- package/chunks/web-GAF33V4M.js +2 -0
- package/chunks/wontfix-JBPCNL6S.js +2 -0
- package/eser.js +1 -1
- package/package.json +1 -1
- package/chunks/approve-PXC7FMDI.js +0 -2
- package/chunks/block-CSVO3R47.js +0 -2
- package/chunks/cancel-AJOYWYV5.js +0 -2
- package/chunks/chunk-4TTJVJEI.js +0 -2
- package/chunks/chunk-IZUADMIU.js +0 -3
- package/chunks/chunk-KNIM3QST.js +0 -10
- package/chunks/chunk-QL5FA3P3.js +0 -2
- package/chunks/chunk-UTWYRNI6.js +0 -17
- package/chunks/concern-DXCLVP5Y.js +0 -2
- package/chunks/done-HGZT3ZOT.js +0 -2
- package/chunks/init-X6KNS3NC.js +0 -2
- package/chunks/invoke-hook-KLJOYZF5.js +0 -12
- package/chunks/manager-FMP6PKIR.js +0 -7
- package/chunks/next-6K3PS64Z.js +0 -9
- package/chunks/pack-YQVWUWCL.js +0 -6
- package/chunks/reopen-Z3MPVAGR.js +0 -2
- package/chunks/reset-NWO3MNAG.js +0 -2
- package/chunks/rule-CH5GMFKE.js +0 -7
- package/chunks/run-5YOXFMP2.js +0 -4
- package/chunks/session-22XFZLH2.js +0 -2
- package/chunks/spec-PWS2UYVL.js +0 -2
- package/chunks/status-G5D6BYFF.js +0 -2
- package/chunks/sync-URY32B7Y.js +0 -2
- package/chunks/validate-large-files-C2ILVCDB.js +0 -2
- package/chunks/validate-licenses-P24RTTYG.js +0 -2
- package/chunks/validate-line-endings-F65GG2PC.js +0 -2
- package/chunks/validate-merge-conflict-PVT6WR2W.js +0 -2
- package/chunks/validate-secrets-RBD2KJ3R.js +0 -2
- package/chunks/validate-shebangs-L5YR7AGC.js +0 -2
- package/chunks/validate-submodules-HD7CSBOG.js +0 -2
- package/chunks/validate-symlinks-RPSZMV5Y.js +0 -2
- package/chunks/validate-trailing-whitespace-BIG3YYFY.js +0 -2
- package/chunks/wontfix-4R2ESAR5.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-GQ4WRANA.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-L6J3BWVP.js";import"./chunk-3XJLLDR5.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-RSHUTH4K.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-4BOZ4A55.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-BZSILAX3.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-V3KWM26F.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-6M64JLJW.js";import"./chunk-VXVW4UNH.js";import"./chunk-HTC2FO4I.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-2XNFZXHY.js";import"./chunk-LFNUSULJ.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-P2MUEKFT.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{a as checkModExports,b as checkModExportsHandler,c as handleCli,d as main};
|
package/chunks/{validate-package-configs-BFCQMBEI.js → validate-package-configs-AYVT55GJ.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-LRAHXO3G.js";import"./chunk-HTC2FO4I.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-2XNFZXHY.js";import"./chunk-LFNUSULJ.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-S7S2I2K5.js";import"./chunk-P2MUEKFT.js";import"./chunk-SHN5MT56.js";import"./chunk-YVN2NZL4.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{a as checkPackageConfigs,b as checkPackageConfigsHandler,c as handleCli,d as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-SKW7N57D.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-352YGR5O.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-EJBYYUXZ.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-6HJUPT5Y.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-BKWQQUSY.js";import"./chunk-P7WCO724.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d}from"./chunk-RLTTHJ3E.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-7L4DDCRL.js";import"./chunk-VJSHVZ7R.js";import"./chunk-BVIGTD2Z.js";import"./chunk-2XNFZXHY.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as main,b as run,a as tool,c as validator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f}from"./chunk-
|
|
2
|
+
import{a,b,c,d,e,f}from"./chunk-UTENCUNI.js";import"./chunk-HTC2FO4I.js";import"./chunk-GTHXGAMQ.js";import"./chunk-3XJLLDR5.js";import"./chunk-P7WCO724.js";import"./chunk-2XNFZXHY.js";import"./chunk-LFNUSULJ.js";import"./chunk-PZUDTTK4.js";import"./chunk-5GGWX7CO.js";import"./chunk-VV47GXU5.js";import"./chunk-J2Z7NG2X.js";import"./chunk-YTF3BAQS.js";import"./chunk-S7S2I2K5.js";import"./chunk-NBA6EFWU.js";import"./chunk-P2MUEKFT.js";import"./chunk-SHN5MT56.js";import"./chunk-7DPLGQHN.js";import"./chunk-YVN2NZL4.js";import"./chunk-MG65QJY6.js";import"./chunk-FFWPJP7A.js";import"./chunk-2BOCLC67.js";import"./chunk-N7DXBY3O.js";import"./chunk-7ATUODBM.js";import"./chunk-AP72BKVG.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{e as handleCli,f as main,a as readVersionFile,b as showVersions,c as versions,d as versionsHandler};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as
|
|
3
|
-
`).filter(Boolean),s=[];for(let c of l)try{let u=JSON.parse(c);s.includes(u.file)||s.push(u.file)}catch{}return s}catch{return[]}},
|
|
4
|
-
`)},
|
|
5
|
-
`)),n.releaseLock(),C({exitCode:1})}let s=`${t}/.eser/.state`,c="",u=async()=>{let r=await
|
|
6
|
-
`)),$.releaseLock()}else if(l==="markdown"){let h=new TextEncoder,$=
|
|
2
|
+
import{a as L,c as I}from"./chunk-2ZYCRMUT.js";import{a as O,c as F}from"./chunk-ODBJ5KMQ.js";import{A as D,B as v,d as S,k as x,l as P}from"./chunk-RUTM4VP7.js";import"./chunk-2XNFZXHY.js";import{a as y,b as C}from"./chunk-FFWPJP7A.js";import{i as g}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var A=async e=>{let t=await S(e),d=await P(e),l=await W(e),s=null,c=null,u=0,a=0;if(t.spec!==null){let n=await O(e,t.spec);if(n!==null){u=n.tasks.length,a=t.execution.completedTasks.length;let f=F(n.tasks,t.execution.completedTasks);f!==null&&(s=f.id,c=f.title)}}let p=null;t.lastCalledAt!==null&&(p=Math.floor((Date.now()-new Date(t.lastCalledAt).getTime())/1e3));let r=(await x(e)).map(n=>({name:n.name,phase:n.state.phase,iteration:n.state.execution.iteration}));return{spec:t.spec,phase:t.phase,iteration:t.execution.iteration,activeTaskId:s,activeTaskTitle:c,totalTasks:u,completedTaskCount:a,lastProgress:t.execution.lastProgress,lastCalledAt:t.lastCalledAt,modifiedFiles:t.execution.modifiedFiles,debt:t.execution.debt,concerns:d?.concerns??[],maxIterations:d?.maxIterationsBeforeRestart??15,awaitingStatusReport:t.execution.awaitingStatusReport,verificationPassed:t.execution.lastVerification?.passed??null,decisionsCount:t.decisions.length,discoveryAnswered:t.discovery.answers.length,discoveryTotal:6,trackedFiles:l,timeSinceUpdate:p,allSpecs:r}},W=async e=>{let t=`${e}/.eser/.state/files-changed.jsonl`;try{let l=(await g.fs.readTextFile(t)).trim().split(`
|
|
3
|
+
`).filter(Boolean),s=[];for(let c of l)try{let u=JSON.parse(c);s.includes(u.file)||s.push(u.file)}catch{}return s}catch{return[]}},N="\x1B[2J\x1B[H",E="\x1B[1m",m="\x1B[2m",o="\x1B[0m",k="\x1B[32m",T="\x1B[33m",w="\x1B[31m",M="\x1B[36m",b=e=>{switch(e){case"COMPLETED":return k;case"BLOCKED":return w;case"EXECUTING":return M;default:return T}},R=(e,t,d)=>{if(t===0)return"\u2591".repeat(d);let l=Math.min(e/t,1),s=Math.round(l*d);return"\u2588".repeat(s)+"\u2591".repeat(d-s)},B=e=>e===null?"never":e<60?`${e}s ago`:e<3600?`${Math.floor(e/60)}m ago`:`${Math.floor(e/3600)}h ago`,U=e=>e.replace(/\x1b\[[0-9;]*m/g,""),j=(e,t)=>{let d=U(e).length;return e+" ".repeat(Math.max(0,t-d))},K=e=>{let t=[],l="\u2500".repeat(54),s=a=>`${m}\u2502${o} ${j(a,52)}${m}\u2502${o}`,c=()=>`${m}\u2502${"".padEnd(54)}\u2502${o}`;if(t.push(`${m}\u256D${l}\u256E${o}`),t.push(s(`${E}noskills watch${o}`)),t.push(c()),t.push(s(`${E}Specs:${o}`)),e.allSpecs.length>0)for(let a of e.allSpecs){let p=b(a.phase),i=a.name.slice(0,18).padEnd(18),r=`${p}${a.phase}${o}`.padEnd(a.phase.length+10);if(a.phase==="EXECUTING"||a.phase==="BLOCKED"){let n=R(e.completedTaskCount,e.totalTasks,10),f=e.totalTasks>0?Math.round(e.completedTaskCount/e.totalTasks*100):0;t.push(s(` ${i} ${r} ${n} ${e.completedTaskCount}/${e.totalTasks} (${f}%)`))}else a.phase==="COMPLETED"?t.push(s(` ${i} ${r} done`)):t.push(s(` ${i} ${r}`))}else if(e.spec!==null){let a=b(e.phase);t.push(s(` ${e.spec} ${a}${e.phase}${o}`))}else t.push(s(` ${m}No specs yet${o}`));if(t.push(c()),e.phase==="DISCOVERY"||e.phase==="DISCOVERY_REVIEW")t.push(s(`Phase: ${b(e.phase)}${e.phase}${o} Discovery: ${e.discoveryAnswered}/${e.discoveryTotal} questions answered`));else if(e.phase==="SPEC_DRAFT")t.push(s(`Phase: ${T}${e.phase}${o} ${T}Awaiting approval${o}`));else if(e.phase==="SPEC_APPROVED")t.push(s(`Phase: ${T}${e.phase}${o} ${k}Ready to start${o}`));else if(e.phase==="EXECUTING"||e.phase==="BLOCKED"){if(e.spec!==null&&t.push(s(`${E}${e.spec}${o} (iteration ${e.iteration}):`)),e.activeTaskId!==null){let i=`${e.activeTaskId}${e.activeTaskTitle!==null?` (${e.activeTaskTitle})`:""}`;t.push(s(` Active task: ${M}${i.slice(0,36)}${o}`))}let a=R(e.completedTaskCount,e.totalTasks,12),p=e.totalTasks>0?Math.round(e.completedTaskCount/e.totalTasks*100):0;if(t.push(s(` Progress: ${k}${a} ${e.completedTaskCount}/${e.totalTasks} tasks (${p}%)${o}`)),t.push(s(` Iteration: ${e.iteration}`)),t.push(s(` Last update: ${B(e.timeSinceUpdate)}`)),e.lastProgress!==null&&t.push(s(` ${m}${e.lastProgress.slice(0,50)}${o}`)),e.phase==="BLOCKED"){let i=(e.lastProgress??"unknown").replace(/^BLOCKED:\s*/,"");t.push(s(` ${w}BLOCKED: ${i.slice(0,40)}${o}`)),t.push(s(` ${T}Human input needed${o}`))}if(e.awaitingStatusReport&&t.push(s(` ${T}Status report pending${o}`)),e.verificationPassed===!1&&t.push(s(` ${w}Verification failed${o}`)),t.push(c()),e.debt!==null&&e.debt.items.length>0){t.push(s(` Debt: ${e.debt.items.length} item(s)`));for(let i of e.debt.items.slice(0,3))t.push(s(` \u2514\u2500 ${i.text.slice(0,44)}`));e.debt.items.length>3&&t.push(s(` \u2514\u2500 ... and ${e.debt.items.length-3} more`))}if(e.trackedFiles.length>0||e.modifiedFiles.length>0){let i=e.trackedFiles.length>0?e.trackedFiles:e.modifiedFiles;t.push(s(` Files changed: ${i.length}`));for(let r of i.slice(0,5)){let n=r.length>44?"..."+r.slice(-41):r;t.push(s(` \u2514\u2500 ${n}`))}i.length>5&&t.push(s(` \u2514\u2500 ... and ${i.length-5} more`))}}else e.phase==="COMPLETED"?t.push(s(`${k}Complete!${o} ${e.iteration} iterations, ${e.decisionsCount} decisions`)):e.phase==="IDLE"&&t.push(s(`${m}No active spec \u2014 work freely${o}`));t.push(c()),e.concerns.length>0&&t.push(s(`Concerns: ${e.concerns.join(", ").slice(0,40)}`));let u=e.iteration>=e.maxIterations?`${w}RESTART RECOMMENDED${o}`:`${k}ok${o} (${e.iteration}/${e.maxIterations})`;return t.push(s(`Context: ${u}`)),t.push(`${m}\u2570${l}\u256F${o}`),t.push(` ${m}watching .eser/.state/ ... ctrl+c to stop${o}`),t.join(`
|
|
4
|
+
`)},V=e=>JSON.stringify({ts:new Date().toISOString(),phase:e.phase,spec:e.spec,iteration:e.iteration,activeTask:e.activeTaskId,tasks:{completed:e.completedTaskCount,total:e.totalTasks},progress:e.lastProgress,debt:e.debt?.items.length??0,filesChanged:e.trackedFiles.length>0?e.trackedFiles:e.modifiedFiles,timeSinceUpdate:e.timeSinceUpdate,verificationPassed:e.verificationPassed}),z=async e=>{let{root:t}=await v(),l=e!==void 0&&e.some(r=>r==="-o"||r.startsWith("--output"))?L(e):"ansi";if(!await D(t)){let r=new TextEncoder,n=g.process.stdout.getWriter();return await n.write(r.encode(`noskills not initialized.
|
|
5
|
+
`)),n.releaseLock(),C({exitCode:1})}let s=`${t}/.eser/.state`,c="",u=async()=>{let r=await A(t),n=l==="json"?V(r):l==="markdown"?I(r,"markdown"):K(r);if(l==="json"){let h=new TextEncoder,$=g.process.stdout.getWriter();await $.write(h.encode(n+`
|
|
6
|
+
`)),$.releaseLock()}else if(l==="markdown"){let h=new TextEncoder,$=g.process.stdout.getWriter();await $.write(h.encode(n+`
|
|
7
7
|
---
|
|
8
|
-
`)),$.releaseLock()}else if(n!==c){let h=new TextEncoder,$=
|
|
9
|
-
`)),$.releaseLock(),c=n}return r.allSpecs.length>0&&r.allSpecs.every(h=>h.phase==="COMPLETED")||r.allSpecs.length===0&&r.phase==="COMPLETED"};if(await u())return y(void 0);let p=1e3,i=0;for(;;){await new Promise(r=>setTimeout(r,p));try{let n=(await
|
|
8
|
+
`)),$.releaseLock()}else if(n!==c){let h=new TextEncoder,$=g.process.stdout.getWriter();await $.write(h.encode(N+n+`
|
|
9
|
+
`)),$.releaseLock(),c=n}return r.allSpecs.length>0&&r.allSpecs.every(h=>h.phase==="COMPLETED")||r.allSpecs.length===0&&r.phase==="COMPLETED"};if(await u())return y(void 0);let p=1e3,i=0;for(;;){await new Promise(r=>setTimeout(r,p));try{let n=(await g.fs.stat(`${s}/state.json`)).mtime?.getTime()??0;if(n>i&&(i=n,await new Promise(h=>setTimeout(h,200)),await u()))break}catch{}}return y(void 0)};export{A as buildSnapshot,z as main,V as renderJsonLine,K as renderTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{A as l,B as a}from"./chunk-RUTM4VP7.js";import"./chunk-2XNFZXHY.js";import{a as n,b as s}from"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var m=async p=>{let{root:t}=await a();if(!await l(t))return console.error("noskills is not initialized. Run: noskills init"),s({exitCode:1});let r=3e3,o=!1;for(let e of p??[])e.startsWith("--port=")&&(r=parseInt(e.slice(7),10)),e==="--open"&&(o=!0);let c="@eser/noskills-web",i;try{i=(await import(c)).startServer}catch{return console.error("@eser/noskills-web is not installed. Run: deno install"),s({exitCode:1})}return await i({root:t,port:r,open:o}),n(void 0)};export{m as main};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as P}from"./chunk-YWSOQJ7G.js";import{a as T,d as L}from"./chunk-NYHMH3N5.js";import{h as I}from"./chunk-L32KHQVT.js";import{C as A,p as v,s as D}from"./chunk-OXP2FOO5.js";import{B as C,c as g,e as x,g as E,h as k,j as y}from"./chunk-RUTM4VP7.js";import"./chunk-2XNFZXHY.js";import{f as w,h,k as S}from"./chunk-SHN5MT56.js";import{d as f,f as n,g as u}from"./chunk-YVN2NZL4.js";import{a as m,b as i}from"./chunk-FFWPJP7A.js";import{i as d}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var z=async c=>{let e=w({renderer:S.ansi(),sink:h.stdout()}),{root:r}=await C(),p=E(c);if(!p.ok)return e.writeln(n(p.error)),await e.close(),i({exitCode:1});let o=(c??[]).filter(a=>!a.startsWith("--spec=")).join(" ");if(o.length===0)return e.writeln(n('A reason is required: noskills wontfix "reason text"')),await e.close(),i({exitCode:1});let t;try{t=await x(r,p.spec)}catch(a){let $=a instanceof Error?a.message:String(a);return e.writeln(n($)),await e.close(),i({exitCode:1})}if(t.phase==="IDLE"||t.phase==="UNINITIALIZED"||t.phase==="COMPLETED")return e.writeln(n(`Cannot mark as won't fix in phase: ${t.phase}`)),await e.close(),i({exitCode:1});if(t.spec!==null){let a=`${r}/${g.specDir(t.spec)}`;try{await d.fs.stat(a)}catch{return e.writeln(n(`Active spec '${t.spec}' directory not found.`)),e.writeln(f("Run `noskills reset` to return to idle.")),await e.close(),i({exitCode:1})}}let l=await I(r),s=v(t,"wontfix",o);s=D(s,t.phase,"COMPLETED",l,o),s.spec!==null&&await y(r,s.spec,s);let U=A(s);return await k(r,U),s.spec!==null&&(await T(r,s.spec,"wontfix"),await L(r,s.spec,"wontfix")),await P(r,{ts:new Date().toISOString(),type:"phase-change",spec:t.spec??"unknown",user:l.name,from:t.phase,to:"COMPLETED",reason:"wontfix"}),e.writeln(u("\u2714"),` Spec marked as won't fix: ${o}`),await e.close(),m(void 0)};export{z as main};
|
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-BNZPRQUS.js";import{a as m}from"./chunks/chunk-PBZV2KA3.js";import"./chunks/chunk-PWLF3WXM.js";import{a as o}from"./chunks/chunk-NMEPQK3T.js";import{b as a}from"./chunks/chunk-RNFCAHVL.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-6DBKPC2O.js";import"./chunks/chunk-ALFFE37K.js";import"./chunks/chunk-6G6UVWJN.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-HBUORTI5.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-M5DGQG46.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-SS67ZKMK.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-455UAECS.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-VLYRDEH4.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-DESWHMN6.js")},install:{description:"Install git hooks from .eser/manifest.yml",category:"Setup",load:()=>import("./chunks/install-USGLFPAU.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-USGLFPAU.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-USGLFPAU.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-BRWGZ26L.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-YLYXDL2X.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-GXSXTSSG.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-TE6FXELA.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-XACZAR6J.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-XACZAR6J.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-XACZAR6J.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-JPKT2D3D.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-BIG3YYFY.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-EH5Z5TVU.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-F65GG2PC.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-C2ILVCDB.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-XN4KQDSK.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-PVT6WR2W.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-KG3U4NLK.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-OMUYIHX2.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-VTE42YLF.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-RPSZMV5Y.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-L5YR7AGC.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-RBD2KJ3R.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-DMZ46CRH.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-HD7CSBOG.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-MXTBUPTC.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-BE32R2UM.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-YZ4DIXIM.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-D3QNF6VB.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-P24RTTYG.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-J6KLADGR.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-BFCQMBEI.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-IMXYUDHS.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-RI4IF5TD.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-X6KNS3NC.js")},status:{description:"Show current state",load:()=>import("./chunks/status-G5D6BYFF.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-PWS2UYVL.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-6K3PS64Z.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-PXC7FMDI.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-CSVO3R47.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-NWO3MNAG.js")},done:{description:"Mark spec execution as complete",load:()=>import("./chunks/done-HGZT3ZOT.js")},free:{description:"Show idle mode info (noskills starts permissive by default)",load:()=>import("./chunks/free-IPJPYOJS.js")},cancel:{description:"Cancel current spec",load:()=>import("./chunks/cancel-AJOYWYV5.js")},wontfix:{description:"Mark spec as won't fix (requires reason)",load:()=>import("./chunks/wontfix-4R2ESAR5.js")},reopen:{description:"Reopen a completed spec for revision",load:()=>import("./chunks/reopen-Z3MPVAGR.js")},concern:{description:"Manage concerns (add, remove, list)",load:()=>import("./chunks/concern-DXCLVP5Y.js")},run:{description:"Autonomous execution loop (Ralph loop)",load:()=>import("./chunks/run-5YOXFMP2.js")},watch:{description:"Live dashboard for monitoring agent progress",load:()=>import("./chunks/watch-EVUCQISN.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-URY32B7Y.js")},purge:{description:"Remove all noskills content (specs, rules, concerns, hooks)",load:()=>import("./chunks/purge-ZQ23VDGR.js")},"invoke-hook":{description:"Internal hook handlers (called by agents)",load:()=>import("./chunks/invoke-hook-KLJOYZF5.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-CH5GMFKE.js")},config:{description:"Manage configuration (set-user, get-user, clear-user)",load:()=>import("./chunks/config-O3OOS5BQ.js")},pack:{description:"Manage packs (list, install, uninstall, inspect, search)",load:()=>import("./chunks/pack-YQVWUWCL.js")},session:{description:"Manage sessions for multi-instance support",load:()=>import("./chunks/session-22XFZLH2.js")},manager:{description:"Multi-spec TUI with tab management",load:()=>import("./chunks/manager-FMP6PKIR.js")},mgr:{description:"Alias for manager",load:()=>import("./chunks/manager-FMP6PKIR.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-BZ6B74SY.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-NJVFMPTE.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-S4DSRSSR.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-3PZ7RBQY.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-TUZZQKGZ.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-CP5L6XUP.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-MC2WNSB2.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-MC2WNSB2.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-MC2WNSB2.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-MC2WNSB2.js");return new a("doctor").run(e.doctorHandler)}}).lazyCommand("ajan",{description:"Ajan native bridge commands",load:async()=>(await import("./chunks/ajan-CL22MZYV.js")).ajanCommand}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-3GT2RMQL.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-XTXYY5MJ.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-DGI7M6TL.js";import{a as m}from"./chunks/chunk-PBZV2KA3.js";import"./chunks/chunk-PWLF3WXM.js";import{a as o}from"./chunks/chunk-NMEPQK3T.js";import{b as a}from"./chunks/chunk-RNFCAHVL.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-6DBKPC2O.js";import"./chunks/chunk-ALFFE37K.js";import"./chunks/chunk-6G6UVWJN.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-HBUORTI5.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-M5DGQG46.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-SS67ZKMK.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-455UAECS.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-VLYRDEH4.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-DESWHMN6.js")},install:{description:"Install git hooks from .eser/manifest.yml",category:"Setup",load:()=>import("./chunks/install-USGLFPAU.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-USGLFPAU.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-USGLFPAU.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-BRWGZ26L.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-3GMLD6TO.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-VGXMC5GM.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-JTU6WIYA.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-5PXID6GL.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-5PXID6GL.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-5PXID6GL.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-UYQI6DYK.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-PDAFNVPQ.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-YFYXM4ND.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-KMXN5IUT.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-JKQBKNS4.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-E7LKQYVM.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-N7M4OVXI.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-2JS2Y4YU.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-NGF5Q27B.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-ILJZJGDG.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-PDLYFPNE.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-JACZB7C3.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-3PW5GJZD.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-Z6VSIR2C.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-SCY4LARV.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-2JQ2W6Y6.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-EXDICKDK.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-L4MDRIG3.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-QBYWTK5Q.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-7MVLVDZA.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-C7WDH4FK.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-AYVT55GJ.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-IMXYUDHS.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-RI4IF5TD.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-ONTNPCSY.js")},status:{description:"Show current state",load:()=>import("./chunks/status-SRCNQJ4V.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-CPRKQGOX.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-FD3EHJW3.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-VBXGXWZI.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-Z4BELXXO.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-XITFRWII.js")},done:{description:"Mark spec execution as complete",load:()=>import("./chunks/done-DMKJ27IQ.js")},free:{description:"Show idle mode info (noskills starts permissive by default)",load:()=>import("./chunks/free-IPJPYOJS.js")},cancel:{description:"Cancel current spec",load:()=>import("./chunks/cancel-HHW2G675.js")},wontfix:{description:"Mark spec as won't fix (requires reason)",load:()=>import("./chunks/wontfix-JBPCNL6S.js")},reopen:{description:"Reopen a completed spec for revision",load:()=>import("./chunks/reopen-3NA6JI4N.js")},concern:{description:"Manage concerns (add, remove, list)",load:()=>import("./chunks/concern-YFXJJ7DL.js")},run:{description:"Autonomous execution loop (Ralph loop)",load:()=>import("./chunks/run-EBKNNOG7.js")},watch:{description:"Live dashboard for monitoring agent progress",load:()=>import("./chunks/watch-WBZB2C5P.js")},web:{description:"Start web interface (browser dashboard)",load:()=>import("./chunks/web-GAF33V4M.js")},sync:{description:"Regenerate tool-specific files (redirects to init)",load:()=>import("./chunks/sync-WE6A7KC7.js")},learn:{description:"Manage cross-session learnings (list, remove)",load:()=>import("./chunks/learn-SRDLP7B5.js")},diagrams:{description:"Diagram registry and staleness checks (scan, list, check, verify)",load:()=>import("./chunks/diagrams-MRJB73CF.js")},purge:{description:"Remove all noskills content (specs, rules, concerns, hooks)",load:()=>import("./chunks/purge-LXL3F3EJ.js")},"invoke-hook":{description:"Internal hook handlers (called by agents)",load:()=>import("./chunks/invoke-hook-ZM6UQND6.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-BAO7IP5S.js")},config:{description:"Manage configuration (set-user, get-user, clear-user)",load:()=>import("./chunks/config-O3OOS5BQ.js")},pack:{description:"Manage packs (list, install, uninstall, inspect, search)",load:()=>import("./chunks/pack-ZQMMSIIP.js")},session:{description:"Manage sessions for multi-instance support",load:()=>import("./chunks/session-SZYH2UOE.js")},manager:{description:"Multi-spec TUI with tab management",load:()=>import("./chunks/manager-BMNUSWJO.js")},mgr:{description:"Alias for manager",load:()=>import("./chunks/manager-BMNUSWJO.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-BZ6B74SY.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-UV7J3QTQ.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-4WTOXDXD.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-T5HR56BZ.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-MKKBIIC4.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-6TO2XBOH.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-6LLSLOX6.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-6LLSLOX6.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-6LLSLOX6.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-6LLSLOX6.js");return new a("doctor").run(e.doctorHandler)}}).lazyCommand("ajan",{description:"Ajan native bridge commands",load:async()=>(await import("./chunks/ajan-CL22MZYV.js")).ajanCommand}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-3GT2RMQL.js")).loadManifest("."))?.scripts;if(n!=null&&typeof n=="object"){let s=n;if(e in s){let b=s[e],{runScript:v}=await import("./chunks/scripts-XTXYY5MJ.js");return await v(e,b,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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as T}from"./chunk-Z2RL2SFY.js";import"./chunk-IZUADMIU.js";import{a as V,d as k}from"./chunk-2PWSTO7A.js";import{h}from"./chunk-L32KHQVT.js";import{i as _,l as F,s as S}from"./chunk-QL5FA3P3.js";import{c as g,e as E,g as D,h as u,i as f,k as P,o as A}from"./chunk-KNIM3QST.js";import{c as o}from"./chunk-UEMWZOIU.js";import"./chunk-2XNFZXHY.js";import{f as y,h as C,k as R}from"./chunk-SHN5MT56.js";import{c as p,d,f as n,g as m,k as w}from"./chunk-YVN2NZL4.js";import{a as v,b as i}from"./chunk-FFWPJP7A.js";import{i as l}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var J=async x=>{let s=y({renderer:R.ansi(),sink:C.stdout()}),r=l.process.cwd(),c=D(x);if(!c.ok)return s.writeln(n(c.error)),await s.close(),i({exitCode:1});let t;try{t=await E(r,c.spec)}catch(a){let e=a instanceof Error?a.message:String(a);return s.writeln(n(e)),await s.close(),i({exitCode:1})}let I=await P(r);if(t.spec!==null){let a=`${r}/${g.specDir(t.spec)}`;try{await l.fs.stat(a)}catch{return s.writeln(n(`Active spec '${t.spec}' directory not found.`)),s.writeln(d("Run `noskills reset` to return to idle.")),await s.close(),i({exitCode:1})}}if(t.phase==="SPEC_DRAFT"){if(t.classification===null&&t.spec!==null){let O=(await A(r)).filter(U=>I?.concerns.includes(U.id)??!1);try{await T(r,t,O)}catch{}}let a=await h(r),e=F(t);e=S(e,"SPEC_DRAFT","SPEC_APPROVED",a),await u(r,e),e.spec!==null&&await f(r,e.spec,e),e.spec!==null&&(await V(r,e.spec,"approved"),await k(r,e.spec,"approved")),s.writeln(m("\u2714")," Spec approved. Phase: ",w("SPEC_APPROVED")),s.writeln("When ready, run ",p(`${o('next --answer="start"')}`)," to begin execution.")}else if(t.phase==="DISCOVERY_REVIEW"){let a=await h(r),e=_(t);e=S(e,"DISCOVERY_REVIEW","SPEC_DRAFT",a),await u(r,e),e.spec!==null&&await f(r,e.spec,e),s.writeln(m("\u2714")," Discovery answers approved. Phase: ",w("SPEC_DRAFT")),s.writeln("Review the spec and run ",p(o("approve"))," again to approve.")}else t.phase==="DISCOVERY"&&t.discovery.completed?(s.writeln(d("Discovery complete. Spec draft already generated.")),s.writeln("Review the spec and run ",p(o("approve"))," again when in SPEC_DRAFT phase.")):s.writeln(n(`Cannot approve in phase: ${t.phase}`));return await s.close(),v(void 0)};export{J as main};
|
package/chunks/block-CSVO3R47.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{h as $}from"./chunk-L32KHQVT.js";import{n as v,s as A}from"./chunk-QL5FA3P3.js";import{c as y,e as k,g as C,h as S,i as x}from"./chunk-KNIM3QST.js";import{c as E}from"./chunk-UEMWZOIU.js";import"./chunk-2XNFZXHY.js";import{f as w,h,k as g}from"./chunk-SHN5MT56.js";import{c as u,d as p,f as a,h as f}from"./chunk-YVN2NZL4.js";import{a as d,b as n}from"./chunk-FFWPJP7A.js";import{i as l}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var q=async m=>{let e=w({renderer:g.ansi(),sink:h.stdout()}),i=l.process.cwd(),o=C(m);if(!o.ok)return e.writeln(a(o.error)),await e.close(),n({exitCode:1});let c=(m??[]).filter(t=>!t.startsWith("--spec=")).join(" ")||"No reason given",s;try{s=await k(i,o.spec)}catch(t){let R=t instanceof Error?t.message:String(t);return e.writeln(a(R)),await e.close(),n({exitCode:1})}if(s.spec!==null){let t=`${i}/${y.specDir(s.spec)}`;try{await l.fs.stat(t)}catch{return e.writeln(a(`Active spec '${s.spec}' directory not found.`)),e.writeln(p("Run `noskills reset` to return to idle.")),await e.close(),n({exitCode:1})}}if(s.phase!=="EXECUTING")return e.writeln(a(`Cannot block in phase: ${s.phase}`)),await e.close(),n({exitCode:1});let b=await $(i),r=v(s,c);return r=A(r,"EXECUTING","BLOCKED",b,c),await S(i,r),r.spec!==null&&await x(i,r.spec,r),e.writeln(f("\u26A0")," Spec blocked: ",p(c)),e.writeln("Resolve with: ",u(`${E('next --answer="resolution"')}`)),await e.close(),d(void 0)};export{q as main};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as I,d as x}from"./chunk-2PWSTO7A.js";import{h as D}from"./chunk-L32KHQVT.js";import{p as C,s as E,v as k}from"./chunk-QL5FA3P3.js";import{c as w,e as h,g as S,h as g,i as y}from"./chunk-KNIM3QST.js";import"./chunk-2XNFZXHY.js";import{f as d,h as u,k as f}from"./chunk-SHN5MT56.js";import{d as l,f as n,g as m}from"./chunk-YVN2NZL4.js";import{a as p,b as i}from"./chunk-FFWPJP7A.js";import{i as o}from"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var q=async T=>{let e=d({renderer:f.ansi(),sink:u.stdout()}),r=o.process.cwd(),c=S(T);if(!c.ok)return e.writeln(n(c.error)),await e.close(),i({exitCode:1});let s;try{s=await h(r,c.spec)}catch(a){let A=a instanceof Error?a.message:String(a);return e.writeln(n(A)),await e.close(),i({exitCode:1})}if(s.phase==="IDLE"||s.phase==="UNINITIALIZED"||s.phase==="COMPLETED")return e.writeln(n(`Cannot cancel in phase: ${s.phase}`)),await e.close(),i({exitCode:1});if(s.spec!==null){let a=`${r}/${w.specDir(s.spec)}`;try{await o.fs.stat(a)}catch{return e.writeln(n(`Active spec '${s.spec}' directory not found.`)),e.writeln(l("Run `noskills reset` to return to idle.")),await e.close(),i({exitCode:1})}}let U=await D(r),t=C(s,"cancelled");t=E(t,s.phase,"COMPLETED",U,"cancelled"),t.spec!==null&&await y(r,t.spec,t);let v=k(t);return await g(r,v),t.spec!==null&&(await I(r,t.spec,"cancelled"),await x(r,t.spec,"cancelled")),e.writeln(m("\u2714")," Spec cancelled."),await e.close(),p(void 0)};export{q as main};
|
package/chunks/chunk-4TTJVJEI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as ge,h as ne,k as ie}from"./chunk-SHN5MT56.js";import{b as l,c as Le,d,e as U,f as R,g,h as B,i as Be,k,l as _,n as ye,o as V}from"./chunk-YVN2NZL4.js";import{i as x}from"./chunk-6DBKPC2O.js";import{d as D}from"./chunk-5WJ6AUNY.js";var h=Symbol("tui.cancel"),We=e=>e===h,Me={ctrlC:"exit",escape:"cancel"},je=()=>{try{return x.process.stdin}catch{return new ReadableStream}},ze=e=>{let t=e?.interaction??(e?.target==="non-interactive"?"non-interactive":"interactive"),r=e?.audience??"human",s=t==="non-interactive"?"non-interactive":"interactive",n=t==="interactive";return{output:e?.output??ge({renderer:n?ie.ansi():ie.plain(),sink:n?ne.stdout():ne.stderr()}),input:e?.input??je(),target:s,interaction:t,audience:r,signals:{...Me,...e?.signals},stderr:e?.stderr??ge({renderer:ie.plain(),sink:ne.stderr()})}};var Ie={};D(Ie,{disableMouse:()=>Ye,enableMouse:()=>Xe,isSGRMouseSequence:()=>xe,parseMouseEvent:()=>be});var Xe=()=>"\x1B[?1000h\x1B[?1002h\x1B[?1006h",Ye=()=>"\x1B[?1006l\x1B[?1002l\x1B[?1000l",Je=/^\x1b\[<(\d+);(\d+);(\d+)([Mm])$/,be=e=>{let t=e.match(Je);if(t===null)return null;let r=parseInt(t[1],10),s=parseInt(t[2],10)-1,n=parseInt(t[3],10)-1,i=t[4]==="m",o=r&3,a=(r&4)!==0,p=(r&16)!==0,c=(r&32)!==0;return(r&64)!==0?{type:"wheel",button:0,x:s,y:n,shift:a,ctrl:p,direction:r&1?"down":"up"}:c?{type:"mousemove",button:o,x:s,y:n,shift:a,ctrl:p}:{type:i?"mouseup":"mousedown",button:o,x:s,y:n,shift:a,ctrl:p}},xe=e=>e.length>=4&&e[0]===27&&e[1]===91&&e[2]===60;var E=async e=>{let t=!1;if(x.capabilities.stdin&&x.process.isTerminal("stdin"))try{x.process.setStdinRaw(!0),t=!0}catch{}try{return await e()}finally{if(t)try{x.process.setStdinRaw(!1)}catch{}}},P=e=>{e.write(l("\x1B[?25l"))},A=e=>{e.write(l("\x1B[?25h"))},f=(e,t)=>{t>0&&e.write(l(`\x1B[${t}A\x1B[J`))},oe=e=>{e.write(l("\r\x1B[2K"))},Ne=e=>{let t=new Uint8Array(e);if(e.length===1&&e[0]===3)return{name:"c",ctrl:!0,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===27)return{name:"escape",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&(e[0]===13||e[0]===10))return{name:"return",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===9)return{name:"tab",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===127)return{name:"backspace",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length>=3&&e[0]===27&&e[1]===91)switch(e[2]){case 65:return{name:"up",ctrl:!1,meta:!1,shift:!1,raw:t};case 66:return{name:"down",ctrl:!1,meta:!1,shift:!1,raw:t};case 67:return{name:"right",ctrl:!1,meta:!1,shift:!1,raw:t};case 68:return{name:"left",ctrl:!1,meta:!1,shift:!1,raw:t};case 72:return{name:"home",ctrl:!1,meta:!1,shift:!1,raw:t};case 70:return{name:"end",ctrl:!1,meta:!1,shift:!1,raw:t}}if(e.length===1&&e[0]>=1&&e[0]<=26)return{name:String.fromCharCode(e[0]+96),ctrl:!0,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]===32)return{name:"space",char:" ",ctrl:!1,meta:!1,shift:!1,raw:t};if(e.length===1&&e[0]>=33&&e[0]<=126){let r=String.fromCharCode(e[0]);return{name:r,char:r,ctrl:!1,meta:!1,shift:!1,raw:t}}if(e.length>0&&e[0]>=192){let r=new TextDecoder().decode(e);return{name:r,char:r,ctrl:!1,meta:!1,shift:!1,raw:t}}return{name:"unknown",ctrl:!1,meta:!1,shift:!1,raw:t}};async function*L(e,t){let r=e.getReader();try{for(;!t?.aborted;){let{done:s,value:n}=await r.read();if(s||n===void 0)break;yield Ne(n)}}finally{r.releaseLock()}}async function*Ze(e,t){let r=e.getReader(),s=new TextDecoder;try{for(;!t?.aborted;){let{done:n,value:i}=await r.read();if(n||i===void 0)break;if(xe(i)){let o=s.decode(i),a=be(o);if(a!==null){yield{kind:"mouse",event:a};continue}}yield{kind:"key",event:Ne(i)}}}finally{r.releaseLock()}}var w=(e,t)=>{if(e==="exit"){A(t.output);try{x.process.setStdinRaw(!1)}catch{}x.process.exit(130)}return e==="cancel"?"cancel":"continue"};var y="\u2502",De="\u250C",C="\u2514";var F="\u25CF",q="\u25CB",_e="\u25FC",Ge="\u25FB",M="\u25C6",v="\u25C7",O="\u25A0",$e="\u25CF";var G="\u25B2";var Ue="\u25C7";var ae=(e,t,r,s)=>{if(s==="done"){let o=r?"Yes":"No";return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${o}`)),1}if(s==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let n=r?U(g(F),l(" Yes")):U(d(q),d(" Yes")),i=r?U(d(q),d(" No")):U(g(F),l(" No"));return e.output.writeln(k(M),l(` ${t}`)),e.output.writeln(d(y),l(" "),n,d(" / "),i),e.output.writeln(d(C)),3},Qe=async(e,t)=>{let r=t.initialValue??!0,s=0;P(e.output);try{return await E(async()=>{s=ae(e,t.message,r,"active"),await e.output.flush();let n=()=>{f(e.output,s),ae(e,t.message,r,"cancel")};for await(let i of L(e.input)){if(i.name==="c"&&i.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="escape"){if(w(e.signals.escape,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="return")return f(e.output,s),ae(e,t.message,r,"done"),await e.output.flush(),r;let o=!1;(i.name==="left"||i.name==="right")&&(r=!r,o=!0),(i.name==="y"||i.name==="Y")&&(r=!0,o=!0),(i.name==="n"||i.name==="N")&&(r=!1,o=!0),o&&(f(e.output,s),s=ae(e,t.message,r,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var W=(e,t,r,s,n,i)=>{if(i==="done")return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${r}`)),1;if(i==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let o=r.length>0?l(r):s!==void 0?d(s):l(""),a=n!==void 0?B(G):k(M);e.output.writeln(a,l(` ${t}`)),e.output.writeln(d(y),l(" "),o);let p=2;return n!==void 0?(e.output.writeln(d(C),l(" "),B(n)),p=3):(e.output.writeln(d(C)),p=3),p},et=async(e,t)=>{let r=t.initialValue??"",s=r.length,n,i=0;P(e.output);try{return await E(async()=>{i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush();let o=()=>{f(e.output,i),W(e,t.message,r,t.placeholder,void 0,"cancel")};for await(let a of L(e.input)){if(a.name==="c"&&a.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="escape"){if(w(e.signals.escape,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="return"){if(t.validate!==void 0){let p=t.validate(r);if(p!==void 0){n=p,f(e.output,i),i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush();continue}}return f(e.output,i),W(e,t.message,r,t.placeholder,void 0,"done"),await e.output.flush(),r}if(n=void 0,a.name==="backspace")s>0&&(r=r.slice(0,s-1)+r.slice(s),s--);else if(a.name==="left")s>0&&s--;else if(a.name==="right")s<r.length&&s++;else if(a.name==="home")s=0;else if(a.name==="end")s=r.length;else if(a.char!==void 0)r=r.slice(0,s)+a.char+r.slice(s),s++;else continue;f(e.output,i),i=W(e,t.message,r,t.placeholder,n,"active"),await e.output.flush()}return h})}finally{A(e.output),await e.output.flush()}};var le=(e,t,r,s,n)=>{if(n==="done"){let i=r[s];return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${i?.label??""}`)),1}if(n==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;e.output.writeln(k(M),l(` ${t}`));for(let i=0;i<r.length;i++){let o=r[i],a=i===s,p=o.disabled===!0,c=a?g(F):d(q),u=p?d(` ${o.label}`):a?l(` ${o.label}`):d(` ${o.label}`),m=o.hint!==void 0?d(` (${o.hint})`):l("");e.output.writeln(d(y),l(" "),c,u,m)}return e.output.writeln(d(C)),r.length+2},we=(e,t,r)=>{let s=e.length,n=t;for(let i=0;i<s;i++)if(n=(n+r+s)%s,e[n]?.disabled!==!0)return n;return t},tt=async(e,t)=>{let r=0;if(t.initialValue!==void 0){let n=t.options.findIndex(i=>i.value===t.initialValue);n>=0&&(r=n)}t.options[r]?.disabled===!0&&(r=we(t.options,r,1));let s=0;P(e.output);try{return await E(async()=>{s=le(e,t.message,t.options,r,"active"),await e.output.flush();let n=()=>{f(e.output,s),le(e,t.message,t.options,r,"cancel")};for await(let i of L(e.input)){if(i.name==="c"&&i.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="escape"){if(w(e.signals.escape,e)==="cancel")return n(),await e.output.flush(),h;continue}if(i.name==="return")return f(e.output,s),le(e,t.message,t.options,r,"done"),await e.output.flush(),t.options[r].value;let o=!1;(i.name==="up"||i.name==="k")&&(r=we(t.options,r,-1),o=!0),(i.name==="down"||i.name==="j")&&(r=we(t.options,r,1),o=!0),o&&(f(e.output,s),s=le(e,t.message,t.options,r,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var j=(e,t,r,s,n,i,o)=>{if(o==="done"){let c=[...n].sort((u,m)=>u-m).map(u=>r[u]?.label??"").join(", ");return e.output.writeln(g(v),l(` ${t}`),d(` \xB7 ${c}`)),1}if(o==="cancel")return e.output.writeln(R(O),l(` ${t}`)),1;let a=i!==void 0?B(G):k(M);e.output.writeln(a,l(` ${t}`));for(let c=0;c<r.length;c++){let u=r[c],m=c===s,b=n.has(c),S=u.disabled===!0,se=b?g(_e):d(Ge),$=S?d(` ${u.label}`):m?l(` ${u.label}`):d(` ${u.label}`),he=u.hint!==void 0?d(` (${u.hint})`):l("");e.output.writeln(d(y),l(" "),se,$,he)}let p=r.length+2;return i!==void 0?e.output.writeln(d(C),l(" "),B(i)):e.output.writeln(d(C)),p},Ce=(e,t,r)=>{let s=e.length,n=t;for(let i=0;i<s;i++)if(n=(n+r+s)%s,e[n]?.disabled!==!0)return n;return t},rt=async(e,t)=>{let r=0,s=new Set;if(t.initialValues!==void 0)for(let o of t.initialValues){let a=t.options.findIndex(p=>p.value===o);a>=0&&s.add(a)}t.options[r]?.disabled===!0&&(r=Ce(t.options,r,1));let n=0,i;P(e.output);try{return await E(async()=>{n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush();let o=()=>{f(e.output,n),j(e,t.message,t.options,r,s,void 0,"cancel")};for await(let a of L(e.input)){if(a.name==="c"&&a.ctrl){if(w(e.signals.ctrlC,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="escape"){if(w(e.signals.escape,e)==="cancel")return o(),await e.output.flush(),h;continue}if(a.name==="return"){if(t.required!==!1&&s.size===0){i="Please select at least one option.",f(e.output,n),n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush();continue}return f(e.output,n),j(e,t.message,t.options,r,s,void 0,"done"),await e.output.flush(),[...s].sort((c,u)=>c-u).map(c=>t.options[c].value)}i=void 0;let p=!1;if((a.name==="up"||a.name==="k")&&(r=Ce(t.options,r,-1),p=!0),(a.name==="down"||a.name==="j")&&(r=Ce(t.options,r,1),p=!0),a.name==="space"&&t.options[r]?.disabled!==!0&&(s.has(r)?s.delete(r):s.add(r),p=!0),a.name==="a"){let c=t.options.every((u,m)=>u.disabled===!0||s.has(m));for(let u=0;u<t.options.length;u++)t.options[u]?.disabled!==!0&&(c?s.delete(u):s.add(u));p=!0}p&&(f(e.output,n),n=j(e,t.message,t.options,r,s,i,"active"),await e.output.flush())}return h})}finally{A(e.output),await e.output.flush()}};var st=(e,t)=>{e.output.writeln(_(De),l(" "),Le(t)),e.output.writeln(_(y))},nt=(e,t)=>{e.output.writeln(_(y)),e.output.writeln(_(C),l(" "),l(t))},it=e=>{e.output.writeln(l(""))},ot=(e,t)=>{e.output.writeln(l(" "),d(t))},at=e=>{e.output.writeln(_(y))},lt={info:(e,t)=>{e.output.writeln(V("info",t))},success:(e,t)=>{e.output.writeln(V("success",t))},warn:(e,t)=>{e.output.writeln(V("warning",t))},error:(e,t)=>{e.output.writeln(V("error",t))},step:(e,t)=>{e.output.writeln(d(Ue),l(" "),d(t))},message:(e,t,r)=>{e.output.writeln(d(r??y),l(" "),l(t))}};var ut=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"],ct=80,pt=(e,t,r)=>{let s=r?.frames??ut,n=r?.interval??ct,i=t,o=0,a,p=()=>{e.output.write(l(`\r${" ".repeat(i.length+4)}\r`))},c=()=>{a!==void 0&&(clearInterval(a),a=void 0,p())};return{start:u=>{u!==void 0&&(i=u),a=setInterval(()=>{let m=s[o%s.length];e.output.write(l("\r"),k(m??""),l(` ${i}`)),o++},n)},stop:u=>{c(),u!==void 0&&(i=u)},update:u=>{i=u},succeed:u=>{c(),e.output.writeln(g(v),l(` ${u??i}`))},fail:u=>{c(),e.output.writeln(R(O),l(` ${u??i}`))},warn:u=>{c(),e.output.writeln(B(G),l(` ${u??i}`))},info:u=>{c(),e.output.writeln(Be($e),l(` ${u??i}`))}}};var dt=(e,t)=>{let r=0,s=t.label??"",n=!1,i=()=>{let o=t.total>0?Math.round(r/t.total*100):0;oe(e.output),e.output.write(d(y),l(" "),ye(o,{width:t.width??20,label:s}))};return{start:o=>{o!==void 0&&(s=o),n=!0,e.output.writeln(d(v),l(` ${s}`)),i()},advance:(o,a)=>{n&&(r=Math.min(r+o,t.total),a!==void 0&&(s=a),i())},stop:o=>{n&&(n=!1,r=t.total,o!==void 0&&(s=o),oe(e.output),e.output.writeln(d(y),l(" "),ye(100,{width:t.width??20,label:s})))}}};var Ve={};D(Ve,{clearScreenSeq:()=>gt,enterAlternateScreen:()=>mt,exitAlternateScreen:()=>ht,getTerminalSize:()=>bt,hideCursorSeq:()=>ft,showCursorSeq:()=>yt});var mt=()=>"\x1B[?1049h",ht=()=>"\x1B[?1049l",ft=()=>"\x1B[?25l",yt=()=>"\x1B[?25h",gt=()=>"\x1B[2J\x1B[H",bt=()=>{try{let{columns:e,rows:t}=x.process.consoleSize();return{cols:e,rows:t}}catch{return{cols:80,rows:24}}};var de={};D(de,{bgBlue:()=>vt,bgGreen:()=>Ct,bold:()=>xt,cyan:()=>Se,dim:()=>ue,green:()=>ce,inverse:()=>Re,moveTo:()=>T,red:()=>Te,reset:()=>pe,stripAnsi:()=>ke,truncate:()=>X,visibleLength:()=>z,white:()=>wt,yellow:()=>ve});var T=(e,t)=>`\x1B[${e};${t}H`,xt=e=>`\x1B[1m${e}\x1B[22m`,ue=e=>`\x1B[2m${e}\x1B[22m`,ce=e=>`\x1B[32m${e}\x1B[39m`,ve=e=>`\x1B[33m${e}\x1B[39m`,Te=e=>`\x1B[31m${e}\x1B[39m`,Se=e=>`\x1B[36m${e}\x1B[39m`,wt=e=>`\x1B[37m${e}\x1B[39m`,Ct=e=>`\x1B[42m${e}\x1B[49m`,vt=e=>`\x1B[44m${e}\x1B[49m`,Re=e=>`\x1B[7m${e}\x1B[27m`,pe=()=>"\x1B[0m",Tt=/\x1b\[[0-9;]*[a-zA-Z]/g,ke=e=>e.replace(Tt,""),z=e=>ke(e).length,X=(e,t)=>{if(ke(e).length<=t)return e;let s=0,n=0,i=e;for(;n<i.length&&s<t-1;){if(i[n]==="\x1B"){let o=i.indexOf("m",n);if(o!==-1){n=o+1;continue}}s++,n++}return i.slice(0,n)+"\u2026"+pe()};var Ke={};D(Ke,{calculateLayout:()=>St});var St=(e,t,r)=>{let s=r.leftWidth<=1?Math.floor(e*r.leftWidth):Math.min(Math.floor(r.leftWidth),e),n=e-s,i=t-1,o=r.rightTopHeight<=1?Math.floor(i*r.rightTopHeight):Math.min(Math.floor(r.rightTopHeight),i),a=i-o;return{left:{id:"left",x:1,y:1,width:s,height:i},rightTop:{id:"rightTop",x:s+1,y:1,width:n,height:o},rightBottom:{id:"rightBottom",x:s+1,y:o+1,width:n,height:a},statusBar:{id:"statusBar",x:1,y:t,width:e,height:1}}};var He={};D(He,{nextSelectableIndex:()=>kt,renderList:()=>At});var Rt=(e,t)=>{switch(t){case"green":return ce(e);case"yellow":return ve(e);case"red":return Te(e);case"cyan":return Se(e);case"dim":return ue(e);default:return e}},kt=(e,t,r)=>{let s=r==="up"?-1:1,n=t+s;for(;n>=0&&n<e.length;){if(e[n].selectable!==!1)return n;n+=s}return t},At=(e,t,r)=>{let s=[],n=r.width-2,i=r.height-2,o=0;t>=i&&(o=t-i+1);for(let a=0;a<i;a++){let p=o+a,c=r.y+1+a;if(p>=e.length){s.push(T(c,r.x+1)+" ".repeat(n));continue}let u=e[p],m=u.selectable!==!1,b=p===t&&m,S=u.active?ce("\u25CF"):b?"\u25B8":" ",se=u.badge!==void 0?" "+Rt(`[${u.badge}]`,u.badgeColor??"dim"):"",$=u.dimmed?ue(u.label):u.label,he=` ${S} ${$}${se}`,fe=X(he,n),Pe=Math.max(0,n-z(fe));b?s.push(T(c,r.x+1)+Re(fe+" ".repeat(Pe))):s.push(T(c,r.x+1)+fe+" ".repeat(Pe))}return s.join("")};var J=()=>({char:" ",fg:-1,bg:-1,fgRGB:null,bgRGB:null,bold:!1,dim:!1,italic:!1,underline:!1,inverse:!1}),me=(e,t)=>{let r=[];for(let s=0;s<e;s++){let n=[];for(let i=0;i<t;i++)n.push(J());r.push(n)}return r},Y=e=>{let t=[];for(let r=0;r<e;r++)t.push(J());return t},Z=class{#e;#t;#r;#i=null;#o=0;#n;#s=new Set;constructor(t,r){this.#e=t,this.#t=r,this.#r=me(t,r),this.#n=t-1}get rows(){return this.#e}get cols(){return this.#t}getCell(t,r){return t<0||t>=this.#e||r<0||r>=this.#t?J():this.#r[t][r]}setCell(t,r,s,n){t<0||t>=this.#e||r<0||r>=this.#t||(this.#r[t][r]={char:n,fg:s.fg,bg:s.bg,fgRGB:s.fgRGB,bgRGB:s.bgRGB,bold:s.bold,dim:s.dim,italic:s.italic,underline:s.underline,inverse:s.inverse},this.#s.add(t))}scrollUp(t=1){for(let r=0;r<t;r++)this.#r.splice(this.#o,1),this.#r.splice(this.#n,0,Y(this.#t));for(let r=this.#o;r<=this.#n;r++)this.#s.add(r)}scrollDown(t=1){for(let r=0;r<t;r++)this.#r.splice(this.#n,1),this.#r.splice(this.#o,0,Y(this.#t));for(let r=this.#o;r<=this.#n;r++)this.#s.add(r)}setScrollRegion(t,r){this.#o=Math.max(0,t),this.#n=Math.min(this.#e-1,r)}insertLines(t,r){for(let s=0;s<t;s++)this.#r.splice(this.#n,1),this.#r.splice(r,0,Y(this.#t));for(let s=r;s<=this.#n;s++)this.#s.add(s)}deleteLines(t,r){for(let s=0;s<t;s++)this.#r.splice(r,1),this.#r.splice(this.#n,0,Y(this.#t));for(let s=r;s<=this.#n;s++)this.#s.add(s)}clearLine(t,r){if(t<0||t>=this.#e)return;let s=this.#r[t];if(r===2)for(let n=0;n<this.#t;n++)s[n]=J();this.#s.add(t)}clearLineRange(t,r,s){if(t<0||t>=this.#e)return;let n=this.#r[t];for(let i=r;i<=Math.min(s,this.#t-1);i++)n[i]=J();this.#s.add(t)}clearDisplay(t,r,s){if(t===0){this.clearLineRange(r,s,this.#t-1);for(let n=r+1;n<this.#e;n++)this.clearLine(n,2)}else if(t===1){for(let n=0;n<r;n++)this.clearLine(n,2);this.clearLineRange(r,0,s)}else{this.#r=me(this.#e,this.#t);for(let n=0;n<this.#e;n++)this.#s.add(n)}}enterAlternateScreen(){this.#i=this.#r,this.#r=me(this.#e,this.#t);for(let t=0;t<this.#e;t++)this.#s.add(t)}exitAlternateScreen(){if(this.#i!==null){this.#r=this.#i,this.#i=null;for(let t=0;t<this.#e;t++)this.#s.add(t)}}resize(t,r){let s=me(t,r),n=Math.min(t,this.#e),i=Math.min(r,this.#t);for(let o=0;o<n;o++)for(let a=0;a<i;a++)s[o][a]=this.#r[o][a];this.#e=t,this.#t=r,this.#r=s,this.#n=t-1;for(let o=0;o<t;o++)this.#s.add(o)}getLine(t){return t<0||t>=this.#e?Y(this.#t):this.#r[t]}getGrid(){return this.#r}getDirtyLines(){return this.#s}clearDirty(){this.#s.clear()}markAllDirty(){for(let t=0;t<this.#e;t++)this.#s.add(t)}markLineDirty(t){t>=0&&t<this.#e&&this.#s.add(t)}};var Q=class{row=0;col=0;visible=!0;#e=0;#t=0;moveTo(t,r){this.row=t,this.col=r}moveUp(t=1){this.row=Math.max(0,this.row-t)}moveDown(t=1){this.row+=t}moveForward(t=1){this.col+=t}moveBack(t=1){this.col=Math.max(0,this.col-t)}moveToColumn(t){this.col=t}save(){this.#e=this.row,this.#t=this.col}restore(){this.row=this.#e,this.col=this.#t}clamp(t,r){this.row=Math.max(0,Math.min(this.row,t-1)),this.col=Math.max(0,Math.min(this.col,r-1))}};var ee=()=>({fg:-1,bg:-1,fgRGB:null,bgRGB:null,bold:!1,dim:!1,italic:!1,underline:!1,inverse:!1}),Ae=(e,t)=>{let r={...t},s=0;for(;s<e.length;){let n=e[s];switch(n){case 0:Object.assign(r,ee());break;case 1:r.bold=!0;break;case 2:r.dim=!0;break;case 3:r.italic=!0;break;case 4:r.underline=!0;break;case 7:r.inverse=!0;break;case 22:r.bold=!1,r.dim=!1;break;case 23:r.italic=!1;break;case 24:r.underline=!1;break;case 27:r.inverse=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:r.fg=n-30;break;case 39:r.fg=-1;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:r.bg=n-40;break;case 49:r.bg=-1;break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:r.fg=n-90+8;break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:r.bg=n-100+8;break;case 38:s+1<e.length&&e[s+1]===5&&s+2<e.length?(r.fg=e[s+2],r.fgRGB=null,s+=2):s+1<e.length&&e[s+1]===2&&s+4<e.length&&(r.fgRGB={r:e[s+2],g:e[s+3],b:e[s+4]},r.fg=-1,s+=4);break;case 48:s+1<e.length&&e[s+1]===5&&s+2<e.length?(r.bg=e[s+2],r.bgRGB=null,s+=2):s+1<e.length&&e[s+1]===2&&s+4<e.length&&(r.bgRGB={r:e[s+2],g:e[s+3],b:e[s+4]},r.bg=-1,s+=4);break}s++}return r};var te=class{#e="GROUND";#t="";#r="";#i="";feed(t){let r=[],s=()=>{this.#i.length>0&&(r.push({type:"text",text:this.#i}),this.#i="")};for(let n=0;n<t.length;n++){let i=t[n],o=i.charCodeAt(0);switch(this.#e){case"GROUND":i==="\x1B"?(s(),this.#e="ESC"):o<32&&o!==27?(s(),r.push({type:"control",code:o})):this.#i+=i;break;case"ESC":i==="["?(this.#e="CSI_PARAM",this.#t=""):i==="]"?(this.#e="OSC",this.#r=""):(r.push({type:"esc",command:i}),this.#e="GROUND");break;case"CSI_PARAM":if(o>=48&&o<=63||i===";"||i==="?")this.#t+=i;else if(o>=64&&o<=126){let a=this.#t.replace(/^\?/,""),p=this.#t.startsWith("?"),c=a.length>0?a.split(";").map(m=>{let b=parseInt(m,10);return isNaN(b)?0:b}):[],u=(p?"?":"")+i;r.push({type:"csi",command:u,params:c}),this.#e="GROUND"}else this.#t+=i;break;case"OSC":if(i==="\x07"||i==="\\"&&this.#r.endsWith("\x1B")){let a=i==="\\"?this.#r.slice(0,-1):this.#r,p=a.indexOf(";"),c=p>=0?parseInt(a.slice(0,p),10):0,u=p>=0?a.slice(p+1):a;r.push({type:"osc",command:isNaN(c)?0:c,data:u}),this.#e="GROUND"}else this.#r+=i;break}}return s(),r}};var re=class{screen;cursor;#e;#t;constructor(t,r){this.screen=new Z(t,r),this.cursor=new Q,this.#e=new te,this.#t=ee()}write(t){let r=this.#e.feed(t);for(let s of r)switch(s.type){case"text":this.#r(s.text);break;case"csi":this.#o(s.command,s.params);break;case"esc":this.#n(s.command);break;case"control":this.#i(s.code);break;case"osc":break}}resize(t,r){this.screen.resize(t,r),this.cursor.clamp(t,r)}getScreen(){return this.screen}getCursor(){return this.cursor}#r(t){for(let r of t)this.cursor.col>=this.screen.cols&&(this.cursor.col=0,this.cursor.row++,this.cursor.row>=this.screen.rows&&(this.screen.scrollUp(),this.cursor.row=this.screen.rows-1)),this.screen.setCell(this.cursor.row,this.cursor.col,this.#t,r),this.cursor.col++}#i(t){switch(t){case 13:this.cursor.col=0;break;case 10:this.cursor.row++,this.cursor.row>=this.screen.rows&&(this.screen.scrollUp(),this.cursor.row=this.screen.rows-1);break;case 9:this.cursor.col=Math.min(this.screen.cols-1,(Math.floor(this.cursor.col/8)+1)*8);break;case 8:this.cursor.moveBack();break;case 7:break}}#o(t,r){let s=r[0]??0,n=r[1]??0,i=s||1;switch(t){case"A":this.cursor.moveUp(i);break;case"B":this.cursor.moveDown(i);break;case"C":this.cursor.moveForward(i);break;case"D":this.cursor.moveBack(i);break;case"H":case"f":this.cursor.moveTo((s||1)-1,(n||1)-1);break;case"G":this.cursor.moveToColumn((s||1)-1);break;case"d":this.cursor.moveTo((s||1)-1,this.cursor.col);break;case"J":this.screen.clearDisplay(s,this.cursor.row,this.cursor.col);break;case"K":s===0?this.screen.clearLineRange(this.cursor.row,this.cursor.col,this.screen.cols-1):s===1?this.screen.clearLineRange(this.cursor.row,0,this.cursor.col):this.screen.clearLine(this.cursor.row,2);break;case"m":this.#t=Ae(r.length>0?r:[0],this.#t);break;case"S":this.screen.scrollUp(i);break;case"T":this.screen.scrollDown(i);break;case"L":this.screen.insertLines(i,this.cursor.row);break;case"M":this.screen.deleteLines(i,this.cursor.row);break;case"s":this.cursor.save();break;case"u":this.cursor.restore();break;case"r":this.screen.setScrollRegion((s||1)-1,(n||this.screen.rows)-1);break;case"?h":s===25&&(this.cursor.visible=!0),s===1049&&this.screen.enterAlternateScreen();break;case"?l":s===25&&(this.cursor.visible=!1),s===1049&&this.screen.exitAlternateScreen();break}this.cursor.clamp(this.screen.rows,this.screen.cols)}#n(t){switch(t){case"7":this.cursor.save();break;case"8":this.cursor.restore();break;case"M":this.cursor.row===0?this.screen.scrollDown():this.cursor.moveUp();break;case"c":this.screen.clearDisplay(2,0,0),this.cursor.moveTo(0,0),this.#t=ee();break}}};var Bt=e=>{let t=[];return e.bold&&t.push(1),e.dim&&t.push(2),e.italic&&t.push(3),e.underline&&t.push(4),e.fgRGB!==null?t.push(38,2,e.fgRGB.r,e.fgRGB.g,e.fgRGB.b):e.fg>=0&&e.fg<8?t.push(30+e.fg):e.fg>=8&&e.fg<16?t.push(90+(e.fg-8)):e.fg>=16&&t.push(38,5,e.fg),t.length===0?"":`\x1B[${t.join(";")}m`},Mt=e=>e.fg===-1&&e.fgRGB===null&&!e.bold&&!e.dim&&!e.italic&&!e.underline,Oe=(e,t,r,s)=>{s!==void 0&&s.prevCursorRow>=0&&s.prevCursorRow<e.rows&&e.markLineDirty(s.prevCursorRow),t.visible&&t.row>=0&&t.row<e.rows&&e.markLineDirty(t.row);let n=[],i=e.getDirtyLines(),o=r.fullRedraw===!0||i.size>=r.height,a=Math.min(r.height,e.rows),p=Math.min(r.width,e.cols);for(let c=0;c<a;c++){if(!o&&!i.has(c))continue;n.push(`\x1B[${r.offsetRow+c};${r.offsetCol}H`);let u=e.getLine(c),m=!1,b=0;for(;b<p;b++){let S=b<u.length?u[b]:void 0;if(t.visible&&c===t.row&&b===t.col)m&&(n.push("\x1B[0m"),m=!1),n.push("\x1B[7m"),n.push(S?.char??" "),n.push("\x1B[27m");else if(S===void 0||Mt(S))m&&(n.push("\x1B[0m"),m=!1),n.push(S?.char??" ");else{let $=Bt(S);n.push($),m=!0,n.push(S.char)}}m&&n.push("\x1B[0m")}return s!==void 0&&(s.prevCursorRow=t.row,s.prevCursorCol=t.col),e.clearDirty(),n.join("")};var Ee=class{#e;#t=!1;constructor(t,r){this.#e=new re(t,r)}write(t){this.#e.write(t),this.#t=!0}render(t,r=!1){let s={offsetRow:t.y+1,offsetCol:t.x+1,width:t.width-2,height:t.height-2,fullRedraw:r};return this.#t=!1,Oe(this.#e.getScreen(),this.#e.getCursor(),s)}resize(t,r){this.#e.resize(t,r),this.#t=!0}get dirty(){return this.#t}clearDirty(){this.#t=!1}get terminal(){return this.#e}};var qe={};D(qe,{drawBox:()=>Fe,fillBox:()=>Nt});var It={single:{tl:"\u250C",tr:"\u2510",bl:"\u2514",br:"\u2518",h:"\u2500",v:"\u2502"},double:{tl:"\u2554",tr:"\u2557",bl:"\u255A",br:"\u255D",h:"\u2550",v:"\u2551"},rounded:{tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502"}},Fe=e=>{let t=e.borderStyle??"single",r=It[t],s=e.width-2,n=[],i=r.tl;if(e.title!==void 0){let o=` ${e.title} `;i+=o+r.h.repeat(Math.max(0,s-o.length))}else i+=r.h.repeat(s);if(i+=r.tr,n.push(T(e.y,e.x)+i),e.skipInterior===!0)for(let o=1;o<e.height-1;o++)n.push(T(e.y+o,e.x)+r.v+T(e.y+o,e.x+e.width-1)+r.v);else for(let o=1;o<e.height-1;o++)n.push(T(e.y+o,e.x)+r.v+pe()+" ".repeat(s)+r.v);return n.push(T(e.y+e.height-1,e.x)+r.bl+r.h.repeat(s)+r.br),n.join("")},Nt=(e,t)=>{let r=Fe(e),s=e.width-2,n=e.height-2,i=[];for(let o=0;o<n;o++){let a=o<t.length?t[o]:"",p=X(a??"",s),c=Math.max(0,s-z(p));i.push(T(e.y+1+o,e.x+1)+p+" ".repeat(c))}return r+i.join("")};export{We as a,ze as b,Ie as c,E as d,Ze as e,Qe as f,et as g,tt as h,rt as i,st as j,nt as k,it as l,ot as m,at as n,lt as o,pt as p,dt as q,Ve as r,de as s,qe as t,Ke as u,He as v,Ee as w};
|
package/chunks/chunk-IZUADMIU.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{i as c}from"./chunk-6DBKPC2O.js";var f=async(n,r)=>{let e=`${n}/.eser/specs/${r}/spec.md`,t;try{t=await c.fs.readTextFile(e)}catch{return null}return d(r,t)},d=(n,r)=>{let e=[],t=[],o=[],i="";for(let l of r.split(`
|
|
3
|
-
`)){let s=l.trim();if(s.startsWith("## ")){i=s.slice(3).trim().toLowerCase();continue}if(i.startsWith("tasks")){let a=s.match(/^-\s*\[[ x]\]\s*(task-\d+):\s*(.+)$/i);a!==null&&e.push({id:a[1],title:a[2].trim()})}i.startsWith("out of scope")&&s.startsWith("- ")&&t.push(s.slice(2).trim()),i.startsWith("verification")&&s.startsWith("- ")&&o.push(s.slice(2).trim())}return{name:n,tasks:e,outOfScope:t,verification:o}},u=(n,r)=>{let e=new Set(r);for(let t of n)if(!e.has(t.id))return t;return null};export{f as a,d as b,u as c};
|
package/chunks/chunk-KNIM3QST.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as v}from"./chunk-2XNFZXHY.js";import{i as s}from"./chunk-6DBKPC2O.js";import{e as $}from"./chunk-5WJ6AUNY.js";var f=()=>({version:"0.1.0",phase:"IDLE",spec:null,specDescription:null,branch:null,discovery:{answers:[],completed:!1,currentQuestion:0,audience:"human",approved:!1,planPath:null},specState:{path:null,status:"none"},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]},decisions:[],lastCalledAt:null,classification:null,completionReason:null,completedAt:null,completionNote:null,reopenedFrom:null,revisitHistory:[]}),k=(e,t,r,n)=>({concerns:e,tools:t,providers:r,project:n,maxIterationsBeforeRestart:15,verifyCommand:null,allowGit:!1,command:"npx eser@latest noskills"});var l=$(v(),1);var i=".eser",c=`${i}/.state`,S=`${c}/state.json`,m=`${i}/manifest.yml`,y=`${i}/concerns`,h=`${i}/rules`,u=`${i}/specs`,w=`${i}/workflows`,p=`${c}/specs`,F=`${c}/active.json`,a=`${i}/.sessions`,d={eserDir:i,stateDir:c,stateFile:S,manifestFile:m,concernsDir:y,rulesDir:h,specsDir:u,workflowsDir:w,specStatesDir:p,activeFile:F,specDir:e=>`${u}/${e}`,specFile:e=>`${u}/${e}/spec.md`,specStateFile:e=>`${p}/${e}.json`,concernFile:e=>`${y}/${e}.json`,sessionsDir:a,sessionFile:e=>`${a}/${e}.json`,eserGitignore:`${i}/.gitignore`},x=async e=>{let t=`${e}/${S}`;try{let r=await s.fs.readTextFile(t);return JSON.parse(r)}catch{return f()}},O=async(e,t)=>{if(t==null)return x(e);let r=`${e}/${d.specDir(t)}`;try{await s.fs.stat(r)}catch{throw new Error(`Spec '${t}' not found. Run \`noskills spec list\` to see available specs.`)}let n=await b(e,t);if(n.spec===t)return n;let o=await x(e);return o.spec===t?o:{...n,spec:t}};var A=e=>{if(e===void 0)return null;for(let t of e)if(t.startsWith("--spec="))return t.slice(7);return null},j=e=>{let t=A(e);return t===null||t.length===0?{ok:!1,error:"Error: spec name is required. Use `noskills spec <name> <command>` format."}:{ok:!0,spec:t}},I=async(e,t)=>{let r=`${e}/${c}`,n=`${e}/${S}`;await s.fs.mkdir(r,{recursive:!0}),await s.fs.writeTextFile(n,JSON.stringify(t,null,2)+`
|
|
3
|
-
`)};var b=async(e,t)=>{let r=`${e}/${d.specStateFile(t)}`;try{let n=await s.fs.readTextFile(r);return JSON.parse(n)}catch{return f()}},C=async(e,t,r)=>{let n=`${e}/${p}`,o=`${e}/${d.specStateFile(t)}`;await s.fs.mkdir(n,{recursive:!0}),await s.fs.writeTextFile(o,JSON.stringify(r,null,2)+`
|
|
4
|
-
`)},_=async e=>{let t=`${e}/${p}`,r=[];try{for await(let n of s.fs.readDir(t))if(n.isFile&&n.name.endsWith(".json")){let o=n.name.replace(/\.json$/,""),g=await s.fs.readTextFile(`${t}/${n.name}`);r.push({name:o,state:JSON.parse(g)})}}catch{}return r},M=async e=>{let t=`${e}/${m}`;try{let r=await s.fs.readTextFile(t),n=l.parse(r);return n?.noskills===void 0?null:n.noskills}catch{return null}},L=async(e,t)=>{let r=`${e}/${m}`,n;try{let g=await s.fs.readTextFile(r);n=l.parseDocument(g)}catch{n=new l.Document({})}let o=n.createNode(t);o.commentBefore=" noskills orchestrator \u2014 inline comments in this section won't be preserved on next write",n.set("noskills",o),await s.fs.writeTextFile(r,n.toString())},J=async(e,t)=>{let r=`${e}/${d.concernFile(t)}`;try{let n=await s.fs.readTextFile(r);return JSON.parse(n)}catch{return null}},q=async(e,t)=>{let r=`${e}/${y}`,n=`${e}/${d.concernFile(t.id)}`;await s.fs.mkdir(r,{recursive:!0}),await s.fs.writeTextFile(n,JSON.stringify(t,null,2)+`
|
|
5
|
-
`)},U=async e=>{let t=`${e}/${y}`,r=[];try{for await(let n of s.fs.readDir(t))if(n.isFile&&n.name.endsWith(".json")){let o=await s.fs.readTextFile(`${t}/${n.name}`);r.push(JSON.parse(o))}}catch{}return r},V=async e=>{let t=[i,c,p,y,h,u,w];for(let n of t)await s.fs.mkdir(`${e}/${n}`,{recursive:!0});let r=`${e}/${d.eserGitignore}`;try{await s.fs.stat(r)}catch{await s.fs.writeTextFile(r,`# eser toolchain runtime state \u2014 not tracked by git
|
|
6
|
-
.state/
|
|
7
|
-
.sessions/
|
|
8
|
-
`)}},W=async(e,t)=>{await I(e,t),t.spec!==null&&await C(e,t.spec,t)},D=2*60*60*1e3,G=async(e,t)=>{let r=`${e}/${a}`;await s.fs.mkdir(r,{recursive:!0}),await s.fs.writeTextFile(`${r}/${t.id}.json`,JSON.stringify(t,null,2)+`
|
|
9
|
-
`)},T=async(e,t)=>{try{let r=await s.fs.readTextFile(`${e}/${a}/${t}.json`);return JSON.parse(r)}catch{return null}},E=async e=>{let t=`${e}/${a}`,r=[];try{for await(let n of s.fs.readDir(t))if(n.isFile&&n.name.endsWith(".json"))try{let o=await s.fs.readTextFile(`${t}/${n.name}`);r.push(JSON.parse(o))}catch{}}catch{}return r},R=async(e,t)=>{try{return await s.fs.remove(`${e}/${a}/${t}.json`),!0}catch{return!1}},H=async(e,t,r)=>{let n=await T(e,t);if(n===null)return;let o={...n,phase:r,lastActiveAt:new Date().toISOString()};await s.fs.writeTextFile(`${e}/${a}/${t}.json`,JSON.stringify(o,null,2)+`
|
|
10
|
-
`)},B=async e=>{let t=await E(e),r=Date.now(),n=[];for(let o of t)r-new Date(o.lastActiveAt).getTime()>D&&(await R(e,o.id),n.push(o.id));return n},Q=e=>Date.now()-new Date(e.lastActiveAt).getTime()>D,z=()=>{let e=new Uint8Array(4);return crypto.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")},K=async e=>{try{let t=await s.fs.readTextFile(`${e}/${m}`);return l.parse(t)?.noskills!==void 0}catch{return!1}};export{f as a,k as b,d as c,x as d,O as e,A as f,j as g,I as h,C as i,_ as j,M as k,L as l,J as m,q as n,U as o,V as p,W as q,G as r,T as s,E as t,R as u,H as v,B as w,Q as x,z as y,K as z};
|
package/chunks/chunk-QL5FA3P3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c}from"./chunk-KNIM3QST.js";var l={UNINITIALIZED:["IDLE"],IDLE:["DISCOVERY","COMPLETED"],DISCOVERY:["DISCOVERY_REVIEW","COMPLETED"],DISCOVERY_REVIEW:["DISCOVERY_REVIEW","SPEC_DRAFT","COMPLETED"],SPEC_DRAFT:["SPEC_DRAFT","SPEC_APPROVED","COMPLETED"],SPEC_APPROVED:["EXECUTING","COMPLETED"],EXECUTING:["COMPLETED","BLOCKED"],BLOCKED:["EXECUTING","COMPLETED"],COMPLETED:["IDLE","DISCOVERY"]},p=(e,s)=>l[e].includes(s),r=(e,s)=>{if(!p(e,s))throw new Error(`Invalid phase transition: ${e} \u2192 ${s}. Allowed: ${l[e].join(", ")}`)},m=(e,s)=>(r(e.phase,s),{...e,phase:s}),d=(e,s,t,n)=>(r(e.phase,"DISCOVERY"),{...e,phase:"DISCOVERY",spec:s,specDescription:n??null,branch:t,discovery:{answers:[],completed:!1,currentQuestion:0,audience:"human",approved:!1,planPath:null},specState:{path:null,status:"none"},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]},decisions:[]}),u=(e,s)=>{if(e.phase!=="DISCOVERY")throw new Error(`Cannot set discovery mode in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,mode:s}}},E=(e,s)=>{if(e.phase!=="DISCOVERY")throw new Error(`Cannot complete premises in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,premises:s,premisesCompleted:!0}}},S=(e,s)=>{if(e.phase!=="DISCOVERY_REVIEW")throw new Error(`Cannot select approach in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,selectedApproach:s,alternativesPresented:!0}}},C=e=>{if(e.phase!=="DISCOVERY_REVIEW")throw new Error(`Cannot skip alternatives in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,alternativesPresented:!0}}},D=(e,s,t,n)=>{if(e.phase!=="DISCOVERY"&&e.phase!=="DISCOVERY_REVIEW")throw new Error(`Cannot add discovery answer in phase: ${e.phase}`);let a=e.discovery.answers.filter(o=>o.questionId!==s),i={questionId:s,answer:t,user:n?.name??"Unknown User",email:n?.email??"",timestamp:new Date().toISOString(),type:"original"};return{...e,discovery:{...e.discovery,answers:[...a,i]}}};var v=e=>{if(e.phase!=="DISCOVERY")throw new Error(`Cannot complete discovery in phase: ${e.phase}`);return{...e,phase:"DISCOVERY_REVIEW",discovery:{...e.discovery,completed:!0},specState:{path:c.specFile(e.spec),status:"draft"}}},I=e=>(r(e.phase,"SPEC_DRAFT"),{...e,phase:"SPEC_DRAFT"}),w=e=>{if(e.phase!=="DISCOVERY_REVIEW")throw new Error(`Cannot approve discovery answers in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,approved:!0}}},F=e=>{if(e.phase!=="DISCOVERY")throw new Error(`Cannot advance discovery question in phase: ${e.phase}`);return{...e,discovery:{...e.discovery,currentQuestion:e.discovery.currentQuestion+1}}},y=e=>(r(e.phase,"SPEC_APPROVED"),{...e,phase:"SPEC_APPROVED",specState:{...e.specState,status:"approved"}}),R=e=>(r(e.phase,"EXECUTING"),{...e,phase:"EXECUTING",discovery:{...e.discovery,completed:!0,approved:!1},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]}});var O=(e,s)=>(r(e.phase,"BLOCKED"),{...e,phase:"BLOCKED",execution:{...e.execution,lastProgress:`BLOCKED: ${s}`}}),P=(e,s)=>({...e,decisions:[...e.decisions,s]}),g=(e,s,t)=>(r(e.phase,"COMPLETED"),{...e,phase:"COMPLETED",completionReason:s,completedAt:new Date().toISOString(),completionNote:t??null}),x=e=>{if(e.phase!=="COMPLETED")throw new Error(`Cannot reopen in phase: ${e.phase}`);return{...e,phase:"DISCOVERY",reopenedFrom:e.completionReason,completionReason:null,completedAt:null,completionNote:null,discovery:{...e.discovery,completed:!1,currentQuestion:0},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]},classification:null}},f=(e,s)=>{if(e.phase!=="EXECUTING"&&e.phase!=="BLOCKED")throw new Error(`Cannot revisit in phase: ${e.phase}. Only EXECUTING or BLOCKED can revisit.`);let t={from:e.phase,reason:s,completedTasks:[...e.execution.completedTasks],timestamp:new Date().toISOString()};return{...e,phase:"DISCOVERY",discovery:{...e.discovery,completed:!1,currentQuestion:0,approved:!1},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]},classification:null,revisitHistory:[...e.revisitHistory??[],t]}},V=(e,s,t,n,a)=>{let i={from:s,to:t,user:n?.name??"Unknown User",email:n?.email??"",timestamp:new Date().toISOString(),reason:a},o=e.transitionHistory??[];return{...e,transitionHistory:[...o,i]}},T=(e,s,t)=>{let n=e.customACs??[],i={id:`custom-ac-${n.length+1}`,text:s,user:t?.name??"Unknown User",email:t?.email??"",timestamp:new Date().toISOString(),addedInPhase:e.phase};return{...e,customACs:[...n,i]}},A=(e,s,t)=>{let n=e.specNotes??[],i={id:`note-${n.length+1}`,text:s,user:t?.name??"Unknown User",email:t?.email??"",timestamp:new Date().toISOString(),phase:e.phase};return{...e,specNotes:[...n,i]}},L=e=>({...e,phase:"IDLE",spec:null,branch:null,discovery:{answers:[],completed:!1,currentQuestion:0,audience:"human",approved:!1,planPath:null},specState:{path:null,status:"none"},execution:{iteration:0,lastProgress:null,modifiedFiles:[],lastVerification:null,awaitingStatusReport:!1,debt:null,completedTasks:[],debtCounter:0,naItems:[]},decisions:[],classification:null,completionReason:null,completedAt:null,completionNote:null,reopenedFrom:null});export{m as a,d as b,u as c,E as d,S as e,C as f,D as g,v as h,I as i,w as j,F as k,y as l,R as m,O as n,P as o,g as p,x as q,f as r,V as s,T as t,A as u,L as v};
|