eser 4.1.22 → 4.1.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
var r={name:"@eser/cli",version:"4.1.
|
|
1
|
+
var r={name:"@eser/cli",version:"4.1.23",type:"module",exports:"./main.ts",bin:{eser:"./bin.ts"},dependencies:{"@eser/ai":"workspace:*","@eser/codebase":"workspace:*","@eser/kit":"workspace:*","@eser/noskills":"workspace:*","@eser/laroux-server":"workspace:*","@eser/workflows":"workspace:*","@eser/functions":"workspace:*","@eser/logging":"workspace:*","@eser/shell":"workspace:*","@eser/standards":"workspace:*","@std/cli":"npm:@jsr/std__cli@^1.0.25","@std/fmt":"npm:@jsr/std__fmt@^1.0.8"},devDependencies:{"@std/assert":"npm:@jsr/std__assert@^1.0.16",esbuild:"^0.27.3"}};export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as u,h as f,k as d}from"./chunk-FGDJVQG3.js";import{b as r,d as c,e as p,f as x,g as W,j as i}from"./chunk-PLJNPQFC.js";import{b as y}from"./chunk-DOV5776P.js";import{a as C}from"./chunk-
|
|
1
|
+
import{f as u,h as f,k as d}from"./chunk-FGDJVQG3.js";import{b as r,d as c,e as p,f as x,g as W,j as i}from"./chunk-PLJNPQFC.js";import{b as y}from"./chunk-DOV5776P.js";import{a as C}from"./chunk-O2MNBI7V.js";import{a as g,b as w}from"./chunk-DQAEQEXD.js";import{a as te,g as G,h as z,i as V,r as H,t as o}from"./chunk-GRTR6TNJ.js";var q=()=>o.env.get("HOME")??"",v=()=>{let n=o.env.get("SHELL")??"";return n.includes("zsh")?"zsh":n.includes("fish")?"fish":"bash"},ne=n=>{let e=q();switch(n){case"zsh":return o.path.join(e,".zshrc");case"bash":return o.path.join(e,".bashrc");case"fish":return o.path.join(e,".config","fish","config.fish")}},se=(n,e)=>{let t=q();switch(n){case"zsh":return o.path.join(t,".zshrc");case"bash":return o.path.join(t,".bashrc");case"fish":return o.path.join(t,".config","fish","completions",`${e}.fish`)}},_=(n,e)=>`eval "$(${e} system completions --shell ${n})"`,re=n=>n==="fish"?"file":"eval",k=(n,e="eser")=>{let t=n??v(),s=re(t);return{shell:t,rcFile:ne(t),completionType:s,completionsFile:s==="file"?se(t,e):void 0}};var ae="# eser CLI completions",U="eser",K=async n=>{try{return await o.fs.readTextFile(n)}catch{return""}},oe=async n=>{try{return await o.fs.stat(n),!0}catch{return!1}},Y=async n=>{let e=k(n,U);if(e.completionType==="file")return await oe(e.completionsFile);let t=await K(e.rcFile),s=_(n,U);return t.includes(s)},Q=async n=>{let e=k(n,U),t=u({renderer:d.ansi(),sink:f.stdout()});try{if(e.completionType==="file"){let s=e.completionsFile,a=o.path.dirname(s);try{await o.fs.mkdir(a,{recursive:!0})}catch{}await o.fs.writeTextFile(s,`# eser CLI completions
|
|
2
2
|
# This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
|
|
3
3
|
complete -c eser -f
|
|
4
4
|
complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"./chunk-RUZDG5PT.js";import"./chunk-FGDJVQG3.js";import"./chunk-PLJNPQFC.js";import"./chunk-DOV5776P.js";import"./chunk-O2MNBI7V.js";import"./chunk-DQAEQEXD.js";import"./chunk-GRTR6TNJ.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";export{d as completionsHandler,f as doctorHandler,a as installHandler,b as uninstallHandler,c as updateHandler,e as versionHandler};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as s,c as l,d as o,e as r,f as a}from"./chunk-
|
|
1
|
+
import{a as e,b as s,c as l,d as o,e as r,f as a}from"./chunk-RUZDG5PT.js";import"./chunk-FGDJVQG3.js";import"./chunk-PLJNPQFC.js";import"./chunk-DOV5776P.js";import"./chunk-O2MNBI7V.js";import"./chunk-ZOZYBQX2.js";import{b as n}from"./chunk-WE7PSSAQ.js";import"./chunk-HPPFA3XU.js";import"./chunk-DQAEQEXD.js";import"./chunk-GRTR6TNJ.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var i=new n("system").description("Commands related with this CLI").command(new n("install").description("Install eser CLI globally").run(e)).command(new n("uninstall").description("Uninstall eser CLI globally").run(s)).command(new n("update").description("Update eser CLI to the latest version").run(l)).command(new n("completions").description("Generate shell completion scripts").flag({name:"shell",type:"string",description:"Shell type: bash, zsh, or fish"}).run(o)).command(new n("version").description("Show version and check for updates").flag({name:"bare",type:"boolean",description:"Print version number only"}).run(r)).command(new n("doctor").description("Run diagnostic checks").run(a));export{i as systemCommand};
|
package/eser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as u}from"./chunks/chunk-4HNB3UTC.js";import{a as m}from"./chunks/chunk-5O7V5P53.js";import"./chunks/chunk-ZOZYBQX2.js";import{a as o}from"./chunks/chunk-DRQWYJMH.js";import{b as a}from"./chunks/chunk-WE7PSSAQ.js";import"./chunks/chunk-HPPFA3XU.js";import{b as d,e as c}from"./chunks/chunk-DQAEQEXD.js";import{t as p}from"./chunks/chunk-GRTR6TNJ.js";import"./chunks/chunk-Z7742D7Q.js";import"./chunks/chunk-VTQ72OK7.js";import"./chunks/chunk-QXTK62N4.js";import"./chunks/chunk-DXB73IDG.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-4LRHVBEC.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-MN7OUE52.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-W5YBJFGW.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-DASXIL35.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-QD5S73WT.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-STKIZYZ3.js")},install:{description:"Install git hooks from .manifest.yml",category:"Setup",load:()=>import("./chunks/install-Q2KQZM62.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-SQRQONCS.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-Y4BXDXR5.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-CWT5S7G4.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-ZCNNOY7G.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-YJOLKWDT.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-ZSIYNHO5.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-HXO7M3ED.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-IVALGNGE.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-C6NHWHGI.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-MWWSFDOE.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-LKECKLD5.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-KTBL4FUY.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-YRCFW2O7.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-7H2N5AKI.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-ZJJCQVBB.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-R2PNE5TG.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-3UO4MDMZ.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-UFDJ7ITY.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-G4XJ2LHN.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-YA654D3B.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-77CBKGOF.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-3UGB7LN7.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-PXFPCBXA.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-BPSCBX7B.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-Q2YA2MND.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-LQIIQRIS.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-36PYXIWC.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-7JXDS75G.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-B7L4FZKG.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-GXBXQGGV.js")},status:{description:"Show current state",load:()=>import("./chunks/status-HK3P6J6G.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-5446CSQC.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-773GX25N.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-364KOMLB.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-JVJQU723.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-5LQGIOGB.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-4FSA5257.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-K42YEAMO.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-UFJL24PW.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-FLO2KEPZ.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-VKOO2WEA.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-U6IXMGXQ.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-QODEWK3G.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-KWFBSQYQ.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-7X3BOO5H.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-7X3BOO5H.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-7X3BOO5H.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-7X3BOO5H.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-VJQJG2LS.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-RSK5XDRW.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};
|
|
2
|
+
import{a as u}from"./chunks/chunk-O2MNBI7V.js";import{a as m}from"./chunks/chunk-5O7V5P53.js";import"./chunks/chunk-ZOZYBQX2.js";import{a as o}from"./chunks/chunk-DRQWYJMH.js";import{b as a}from"./chunks/chunk-WE7PSSAQ.js";import"./chunks/chunk-HPPFA3XU.js";import{b as d,e as c}from"./chunks/chunk-DQAEQEXD.js";import{t as p}from"./chunks/chunk-GRTR6TNJ.js";import"./chunks/chunk-Z7742D7Q.js";import"./chunks/chunk-VTQ72OK7.js";import"./chunks/chunk-QXTK62N4.js";import"./chunks/chunk-DXB73IDG.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-4LRHVBEC.js")},list:{description:"Browse available recipes and templates",category:"Distribution",load:()=>import("./chunks/list-MN7OUE52.js")},new:{description:"Create a new project from a template",category:"Distribution",load:()=>import("./chunks/new-W5YBJFGW.js")},clone:{description:"Clone a recipe from any GitHub repo",category:"Distribution",load:()=>import("./chunks/clone-DASXIL35.js")},update:{description:"Re-fetch and update an applied recipe",category:"Distribution",load:()=>import("./chunks/update-QD5S73WT.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-STKIZYZ3.js")},install:{description:"Install git hooks from .manifest.yml",category:"Setup",load:()=>import("./chunks/install-Q2KQZM62.js")},uninstall:{description:"Remove managed git hooks",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).uninstallMain})},status:{description:"Show git hook installation status",category:"Setup",load:async()=>({main:(await import("./chunks/install-Q2KQZM62.js")).statusMain})},commitmsg:{description:"Generate commit message from git diff",category:"AI",load:()=>import("./chunks/commitmsg-SQRQONCS.js")},gh:{description:"GitHub operations (contributors, releases, tags)",category:"GitHub",load:()=>import("./chunks/gh-Y4BXDXR5.js")},versions:{description:"Manage workspace package versions",category:"Release",load:()=>import("./chunks/versions-CWT5S7G4.js")},"changelog-gen":{description:"Generate CHANGELOG from commits",category:"Release",load:()=>import("./chunks/changelog-gen-ZCNNOY7G.js")},release:{description:"Create a release (bump, changelog, commit, push)",category:"Release",load:()=>import("./chunks/release-YJOLKWDT.js")},rerelease:{description:"Delete and recreate the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).rereleaseMain})},unrelease:{description:"Delete the current version tag",category:"Release",load:async()=>({main:(await import("./chunks/release-YJOLKWDT.js")).unreleaseMain})},"validate-eof":{description:"Ensure files end with newline",category:"Validation",load:()=>import("./chunks/validate-eof-ZSIYNHO5.js")},"validate-trailing-whitespace":{description:"Remove trailing whitespace",category:"Validation",load:()=>import("./chunks/validate-trailing-whitespace-HXO7M3ED.js")},"validate-bom":{description:"Remove UTF-8 byte order markers",category:"Validation",load:()=>import("./chunks/validate-bom-IVALGNGE.js")},"validate-line-endings":{description:"Normalize line endings to LF",category:"Validation",load:()=>import("./chunks/validate-line-endings-C6NHWHGI.js")},"validate-large-files":{description:"Detect files exceeding size limit",category:"Validation",load:()=>import("./chunks/validate-large-files-MWWSFDOE.js")},"validate-case-conflict":{description:"Detect case-conflicting filenames",category:"Validation",load:()=>import("./chunks/validate-case-conflict-LKECKLD5.js")},"validate-merge-conflict":{description:"Detect merge conflict markers",category:"Validation",load:()=>import("./chunks/validate-merge-conflict-KTBL4FUY.js")},"validate-json":{description:"Validate JSON syntax",category:"Validation",load:()=>import("./chunks/validate-json-YRCFW2O7.js")},"validate-toml":{description:"Validate TOML syntax",category:"Validation",load:()=>import("./chunks/validate-toml-7H2N5AKI.js")},"validate-yaml":{description:"Validate YAML syntax",category:"Validation",load:()=>import("./chunks/validate-yaml-ZJJCQVBB.js")},"validate-symlinks":{description:"Detect broken symlinks",category:"Validation",load:()=>import("./chunks/validate-symlinks-R2PNE5TG.js")},"validate-shebangs":{description:"Validate shebang consistency",category:"Validation",load:()=>import("./chunks/validate-shebangs-3UO4MDMZ.js")},"validate-secrets":{description:"Detect credentials and private keys",category:"Validation",load:()=>import("./chunks/validate-secrets-UFDJ7ITY.js")},"validate-filenames":{description:"Enforce filename conventions",category:"Validation",load:()=>import("./chunks/validate-filenames-G4XJ2LHN.js")},"validate-submodules":{description:"Detect git submodules",category:"Validation",load:()=>import("./chunks/validate-submodules-YA654D3B.js")},"validate-commit-msg":{description:"Validate conventional commit format",category:"Validation",load:()=>import("./chunks/validate-commit-msg-77CBKGOF.js")},"validate-docs":{description:"Validate JSDoc documentation",category:"Validation",load:()=>import("./chunks/validate-docs-3UGB7LN7.js")},"validate-circular-deps":{description:"Detect circular dependencies",category:"Validation",load:()=>import("./chunks/validate-circular-deps-PXFPCBXA.js")},"validate-export-names":{description:"Validate export naming conventions",category:"Validation",load:()=>import("./chunks/validate-export-names-BPSCBX7B.js")},"validate-licenses":{description:"Validate license headers",category:"Validation",load:()=>import("./chunks/validate-licenses-Q2YA2MND.js")},"validate-mod-exports":{description:"Validate mod.ts export coverage",category:"Validation",load:()=>import("./chunks/validate-mod-exports-LQIIQRIS.js")},"validate-package-configs":{description:"Validate package configurations",category:"Validation",load:()=>import("./chunks/validate-package-configs-36PYXIWC.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-7JXDS75G.js");return{main:r=>t.main(r,{tools:e??[]})}}},list:{description:"List available workflows and tools",load:async()=>{let t=await import("./chunks/list-B7L4FZKG.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-GXBXQGGV.js")},status:{description:"Show current state",load:()=>import("./chunks/status-HK3P6J6G.js")},spec:{description:"Manage specs (new, list)",load:()=>import("./chunks/spec-5446CSQC.js")},next:{description:"Get next instruction for agent",load:()=>import("./chunks/next-773GX25N.js")},approve:{description:"Approve phase transition",load:()=>import("./chunks/approve-364KOMLB.js")},block:{description:"Mark spec as blocked",load:()=>import("./chunks/block-JVJQU723.js")},reset:{description:"Reset current spec state",load:()=>import("./chunks/reset-5LQGIOGB.js")},sync:{description:"Regenerate tool-specific files",load:()=>import("./chunks/sync-4FSA5257.js")},rule:{description:"Manage rules (add, list, promote)",load:()=>import("./chunks/rule-K42YEAMO.js")}}});var w=new o({description:"laroux.js framework commands",modules:{init:{description:"Create a new laroux.js project",load:()=>import("./chunks/init-UFJL24PW.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-FLO2KEPZ.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-VKOO2WEA.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-U6IXMGXQ.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-QODEWK3G.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-DTVAUBIX.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.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-S33TIBIC.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-S33TIBIC.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-S33TIBIC.js");return new a("doctor").run(e.doctorHandler)}}).fallback(async(e,t)=>{let n=(await(await import("./chunks/manifest-VJQJG2LS.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-RSK5XDRW.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};
|