eser 4.1.53 → 4.1.54

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,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{f as l,h as m,k as d}from"./chunk-SHN5MT56.js";import{b as r,f as i}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-RNFCAHVL.js";import"./chunk-MG65QJY6.js";import{a,b as o}from"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var c=async w=>{let s=l({renderer:d.ansi(),sink:m.stdout()});try{let t=await(await import("./mod-TB73AJG3.js")).loadEserAjan();try{let p=t.symbols.EserAjanVersion();s.writeln(r(p))}finally{t.close()}}catch(e){return s.writeln(i("Error: "),r(`Failed to load ajan library: ${e instanceof Error?e.message:String(e)}`)),s.writeln(),s.writeln(r("To fix this, try one of:")),s.writeln(r(" Install via npm: npm install @eser/ajan")),s.writeln(r(" Or via Homebrew: brew install eser/tap/eser")),await s.close(),o({exitCode:1})}return await s.close(),a(void 0)},h=new n("ajan").description("Ajan native bridge commands").command(new n("version").description("Show ajan library version").run(c));export{h as ajanCommand};
2
+ import{f as l,h as m,k as d}from"./chunk-SHN5MT56.js";import{b as r,f as i}from"./chunk-YVN2NZL4.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-RNFCAHVL.js";import"./chunk-MG65QJY6.js";import{a,b as o}from"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";var c=async w=>{let s=l({renderer:d.ansi(),sink:m.stdout()});try{let t=await(await import("./mod-ZCIGCCW4.js")).loadEserAjan();try{let p=t.symbols.EserAjanVersion();s.writeln(r(p))}finally{t.close()}}catch(e){return s.writeln(i("Error: "),r(`Failed to load ajan library: ${e instanceof Error?e.message:String(e)}`)),s.writeln(),s.writeln(r("To fix this, try one of:")),s.writeln(r(" Install via npm: npm install @eser/ajan")),s.writeln(r(" Or via Homebrew: brew install eser/tap/eser")),await s.close(),o({exitCode:1})}return await s.close(),a(void 0)},h=new n("ajan").description("Ajan native bridge commands").command(new n("version").description("Show ajan library version").run(c));export{h as ajanCommand};
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as S,b as G,c as R}from"./chunk-L5OC7F24.js";import{e as ee}from"./chunk-J2Z7NG2X.js";import{f as p,h as u,k as d}from"./chunk-SHN5MT56.js";import{b as r,d as i,f as w,g as y,h as Z,k as l}from"./chunk-YVN2NZL4.js";import{d as v}from"./chunk-VKB3B2FE.js";import{a as k}from"./chunk-DGI7M6TL.js";import{a as f,b as g}from"./chunk-FFWPJP7A.js";import{g as T,i as m}from"./chunk-6DBKPC2O.js";import{g as ie,m as O,n as K,o as I,p as le}from"./chunk-6G6UVWJN.js";var de="# eser CLI completions",B="eser",te=async e=>{try{return await m.fs.readTextFile(e)}catch{return""}},me=async e=>{try{return await m.fs.stat(e),!0}catch{return!1}},se=async e=>{let t=R(e,B);if(t.completionType==="file")return await me(t.completionsFile);let s=await te(t.rcFile),n=G(e,B);return s.includes(n)},ne=async e=>{let t=R(e,B),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=m.path.dirname(n);try{await m.fs.mkdir(o,{recursive:!0})}catch{}await m.fs.writeTextFile(n,`# eser CLI completions
2
+ import{a as S,b as G,c as R}from"./chunk-L5OC7F24.js";import{e as ee}from"./chunk-J2Z7NG2X.js";import{f as p,h as u,k as d}from"./chunk-SHN5MT56.js";import{b as r,d as i,f as w,g as y,h as Z,k as l}from"./chunk-YVN2NZL4.js";import{d as v}from"./chunk-VKB3B2FE.js";import{a as k}from"./chunk-GOWXYTXW.js";import{a as f,b as g}from"./chunk-FFWPJP7A.js";import{g as T,i as m}from"./chunk-6DBKPC2O.js";import{g as ie,m as O,n as K,o as I,p as le}from"./chunk-6G6UVWJN.js";var de="# eser CLI completions",B="eser",te=async e=>{try{return await m.fs.readTextFile(e)}catch{return""}},me=async e=>{try{return await m.fs.stat(e),!0}catch{return!1}},se=async e=>{let t=R(e,B);if(t.completionType==="file")return await me(t.completionsFile);let s=await te(t.rcFile),n=G(e,B);return s.includes(n)},ne=async e=>{let t=R(e,B),s=p({renderer:d.ansi(),sink:u.stdout()});try{if(t.completionType==="file"){let n=t.completionsFile,o=m.path.dirname(n);try{await m.fs.mkdir(o,{recursive:!0})}catch{}await m.fs.writeTextFile(n,`# eser CLI completions
3
3
  # This file is auto-generated. Run 'eser system completions --shell fish' to regenerate.
4
4
  complete -c eser -f
5
5
  complete -c eser -n "__fish_use_subcommand" -a "codebase" -d "Codebase management tools"
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- var r={name:"@eser/cli",version:"4.1.53",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"},optionalDependencies:{"@eserstack/ajan-darwin-arm64":"^4.1.47","@eserstack/ajan-darwin-x64":"^4.1.47","@eserstack/ajan-linux-arm64":"^4.1.47","@eserstack/ajan-linux-x64":"^4.1.47","@eserstack/ajan-win32-x64":"^4.1.47","@eserstack/ajan-wasm":"^4.1.47"}};export{r as a};
2
+ var r={name:"@eser/cli",version:"4.1.54",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"},optionalDependencies:{"@eserstack/ajan-darwin-arm64":"^4.1.47","@eserstack/ajan-darwin-x64":"^4.1.47","@eserstack/ajan-linux-arm64":"^4.1.47","@eserstack/ajan-linux-x64":"^4.1.47","@eserstack/ajan-win32-x64":"^4.1.47","@eserstack/ajan-wasm":"^4.1.47"}};export{r as a};
@@ -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,g}from"./chunk-RLA2Z7XV.js";import"./chunk-L5OC7F24.js";import"./chunk-J2Z7NG2X.js";import"./chunk-SHN5MT56.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-DGI7M6TL.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as completionsHandler,f as doctorHandler,g as infoHandler,a as installHandler,b as uninstallHandler,c as updateHandler,e as versionHandler};
2
+ import{a,b,c,d,e,f,g}from"./chunk-5K2B6EQM.js";import"./chunk-L5OC7F24.js";import"./chunk-J2Z7NG2X.js";import"./chunk-SHN5MT56.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-GOWXYTXW.js";import"./chunk-FFWPJP7A.js";import"./chunk-6DBKPC2O.js";import"./chunk-ALFFE37K.js";import"./chunk-6G6UVWJN.js";import"./chunk-5WJ6AUNY.js";export{d as completionsHandler,f as doctorHandler,g as infoHandler,a as installHandler,b as uninstallHandler,c as updateHandler,e as versionHandler};
@@ -0,0 +1,9 @@
1
+ import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import"./chunk-5WJ6AUNY.js";var $=await import("node:fs"),c=s=>{try{return $.statSync(s),!0}catch{return!1}},P=s=>{let o=globalThis;if(typeof o.process<"u"&&typeof o.process.env=="object")return o.process.env[s]??void 0},A=s=>{if(s!==void 0)return s;let o=globalThis;return typeof o.__dirname=="string"?o.__dirname:typeof o.process<"u"&&typeof o.process.cwd=="function"?o.process.cwd():"."},g={command:"eser-ajan.wasm",reactor:"eser-ajan-reactor.wasm"},l=(s="command",o)=>{let a=g[s]??g.command,r=[a,`${a}.bin`],f=s==="reactor"?"wasi-reactor":"wasi",e=[],m=P("ESER_AJAN_WASM_PATH");if(m!==void 0){if(c(m))return m;e.push(`$ESER_AJAN_WASM_PATH = ${m}`)}let d=A(o);for(let n of r){let t=`${d}/${n}`;if(e.push(t),c(t))return t}let h=`${d}/..`;for(let n of r){let t=`${h}/dist/${f}/${n}`;if(e.push(t),c(t))return t}for(let n of r){let t=`${d}/dist/${f}/${n}`;if(e.push(t),c(t))return t}let u=globalThis,p=typeof u.process<"u"&&typeof u.process.cwd=="function"?u.process.cwd():".";if(p!==d)for(let n of r){let t=`${p}/pkg/@eser/ajan/dist/${f}/${n}`;if(e.push(t),c(t))return t}let w=[d,h,p];for(let n of w)for(let t of r){let i=`${n}/node_modules/@eserstack/ajan-wasm/${t}`;if(e.push(i),c(i))return i}for(let n of r){let t=[`/usr/local/lib/${n}`,`/usr/lib/${n}`];for(let i of t)if(e.push(i),c(i))return i}throw new Error(`Could not find eser-ajan WASM module (${a}).
3
+ Checked the following locations:
4
+ `+e.map(n=>` - ${n}`).join(`
5
+ `)+`
6
+
7
+ To fix this:
8
+ 1. Install: npm install @eser/ajan
9
+ 2. Or set ESER_AJAN_WASM_PATH to the full path of ${a}`)};var y=import.meta.dirname,_=(s="command")=>{try{return l(s,y),!0}catch{return!1}},W=async s=>{let o=s?.mode??"command",a=s?.wasmPath??l(o,y);if(o==="reactor"){let{loadReactorWasm:f}=await import("./loader-reactor-P6I3MX5L.js");return f(a)}let{loadCommandWasm:r}=await import("./loader-command-I5DTYP25.js");return r(a)};export{_ as isWasmAvailable,W as loadEserAjanWasm};
@@ -13,7 +13,7 @@ Supported runtimes:
13
13
  - Node 25+ (node:ffi, experimental)
14
14
 
15
15
  Current runtime: ${n}`)},nn=async(n,e)=>{let r=typeof n=="string"?n:void 0,t=typeof n=="object"?n:e;if(f("ESER_AJAN"))throw F("ALL disabled \u2014 ESER_AJAN=disabled"),new Error(`Ajan is disabled via ESER_AJAN=disabled environment variable.
16
- Unset ESER_AJAN to re-enable.`);let o=!f("ESER_AJAN_NATIVE")&&t?.native!==!1,s=!f("ESER_AJAN_WASM")&&t?.wasm!==!1;if(o||F("Native FFI disabled \u2014 skipping to WASM fallback"),s||F("WASM fallback disabled"),o)try{let a=r??I(R);return Q().open(a)}catch{}if(s)try{return await(await import("./mod-IALKEUJL.js")).loadEserAjanWasm()}catch(a){throw new Error(`No native FFI backend available and WASM fallback failed.
16
+ Unset ESER_AJAN to re-enable.`);let o=!f("ESER_AJAN_NATIVE")&&t?.native!==!1,s=!f("ESER_AJAN_WASM")&&t?.wasm!==!1;if(o||F("Native FFI disabled \u2014 skipping to WASM fallback"),s||F("WASM fallback disabled"),o)try{let a=r??I(R);return Q().open(a)}catch{}if(s)try{return await(await import("./mod-HZDU4RQ6.js")).loadEserAjanWasm()}catch(a){throw new Error(`No native FFI backend available and WASM fallback failed.
17
17
  WASM error: ${a instanceof Error?a.message:String(a)}
18
18
 
19
19
  To fix this, install the @eser/ajan package or build the native library.
@@ -1,2 +1,2 @@
1
1
  import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import{a as e,b as s,c as o,d as l,e as r,f as a,g as t}from"./chunk-RLA2Z7XV.js";import"./chunk-L5OC7F24.js";import"./chunk-J2Z7NG2X.js";import"./chunk-SHN5MT56.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-DGI7M6TL.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-RNFCAHVL.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";var d=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(o)).command(new n("completions").description("Generate shell completion scripts").flag({name:"shell",type:"string",description:"Shell type: bash, zsh, or fish"}).run(l)).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)).command(new n("info").description("Show runtime and execution context diagnostics").run(t));export{d as systemCommand};
2
+ import{a as e,b as s,c as o,d as l,e as r,f as a,g as t}from"./chunk-5K2B6EQM.js";import"./chunk-L5OC7F24.js";import"./chunk-J2Z7NG2X.js";import"./chunk-SHN5MT56.js";import"./chunk-YVN2NZL4.js";import"./chunk-VKB3B2FE.js";import"./chunk-GOWXYTXW.js";import"./chunk-PWLF3WXM.js";import{b as n}from"./chunk-RNFCAHVL.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";var d=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(o)).command(new n("completions").description("Generate shell completion scripts").flag({name:"shell",type:"string",description:"Shell type: bash, zsh, or fish"}).run(l)).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)).command(new n("info").description("Show runtime and execution context diagnostics").run(t));export{d as systemCommand};
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-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};
3
+ import{a as u}from"./chunks/chunk-GOWXYTXW.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-X6YWUEZJ.js")).systemCommand}).lazyCommand("install",{description:"Install eser CLI globally (alias for system install)",load:async()=>{let e=await import("./chunks/mod-5SS5V7LJ.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-5SS5V7LJ.js");return new a("update").run(e.updateHandler)}}).lazyCommand("version",{description:"Show version number",load:async()=>{let e=await import("./chunks/mod-5SS5V7LJ.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-5SS5V7LJ.js");return new a("doctor").run(e.doctorHandler)}}).lazyCommand("ajan",{description:"Ajan native bridge commands",load:async()=>(await import("./chunks/ajan-HYDPJF3Z.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,6 +1,6 @@
1
1
  {
2
2
  "name": "eser",
3
- "version": "4.1.53",
3
+ "version": "4.1.54",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "eser": "./eser.js"
@@ -1,9 +0,0 @@
1
- import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
- import"./chunk-5WJ6AUNY.js";var A=await import("node:fs"),r=t=>{try{return A.statSync(t),!0}catch{return!1}},_=t=>{let s=globalThis;if(typeof s.process<"u"&&typeof s.process.env=="object")return s.process.env[t]??void 0},W=t=>{if(t!==void 0)return t;let s=globalThis;return typeof s.__dirname=="string"?s.__dirname:typeof s.process<"u"&&typeof s.process.cwd=="function"?s.process.cwd():"."},y={command:"eser-ajan.wasm",reactor:"eser-ajan-reactor.wasm"},h=(t="command",s)=>{let e=y[t]??y.command,a=t==="reactor"?"wasi-reactor":"wasi",o=[],c=_("ESER_AJAN_WASM_PATH");if(c!==void 0){if(r(c))return c;o.push(`$ESER_AJAN_WASM_PATH = ${c}`)}let i=W(s),d=`${i}/${e}`;if(o.push(d),r(d))return d;let g=`${i}/..`,m=`${g}/dist/${a}/${e}`;if(o.push(m),r(m))return m;let f=`${i}/dist/${a}/${e}`;if(o.push(f),r(f))return f;let u=globalThis,p=typeof u.process<"u"&&typeof u.process.cwd=="function"?u.process.cwd():".";if(p!==i){let n=`${p}/pkg/@eser/ajan/dist/${a}/${e}`;if(o.push(n),r(n))return n}let $=[i,g,p];for(let n of $){let l=`${n}/node_modules/@eserstack/ajan-wasm/${e}`;if(o.push(l),r(l))return l}let P=[`/usr/local/lib/${e}`,`/usr/lib/${e}`];for(let n of P)if(o.push(n),r(n))return n;throw new Error(`Could not find eser-ajan WASM module (${e}).
3
- Checked the following locations:
4
- `+o.map(n=>` - ${n}`).join(`
5
- `)+`
6
-
7
- To fix this:
8
- 1. Install: npm install @eser/ajan
9
- 2. Or set ESER_AJAN_WASM_PATH to the full path of ${e}`)};var w=import.meta.dirname,b=(t="command")=>{try{return h(t,w),!0}catch{return!1}},S=async t=>{let s=t?.mode??"command",e=t?.wasmPath??h(s,w);if(s==="reactor"){let{loadReactorWasm:o}=await import("./loader-reactor-P6I3MX5L.js");return o(e)}let{loadCommandWasm:a}=await import("./loader-command-I5DTYP25.js");return a(e)};export{b as isWasmAvailable,S as loadEserAjanWasm};