fluxflow-cli 4.2.3 → 4.2.4

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/dist/cli.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import{spawn as re}from"child_process";import{fileURLToPath as L}from"url";import ne from"os";import O from"dotenv";O.config({quiet:!0});O.config({path:"./fluxflow.env",override:!0,quiet:!0});var ie=ne.totalmem(),R=ie/(1024*1024),le=.5,ce=Math.floor(R*le),D=process.argv.slice(2),N=D.indexOf("--allocation"),a=N!==-1?parseInt(D[N+1],10):NaN;!isNaN(a)&&a<64&&(console.error(`
3
- [ERROR] Allocation value '${a} MB' is too low. Minimum: 64 MB, Recommended: 4096 MB.
4
- `),process.exit(1));var w=Math.floor(R*.75),me=!isNaN(a)&&a>0?Math.min(a,w):Math.max(1536,Math.min(32768,ce)),ue=L(import.meta.url).endsWith(".js");if(ue&&!process.execArgv.some(o=>o.includes("max-old-space-size")))Number.isNaN(a)||(console.log(`
5
- [MEMORY] Starting with: '${a>w?w:a} MB' Allocation${a>w?" (Max allowed: '"+w+" MB')":""}. Please Wait...`),await new Promise(l=>setTimeout(l,5e3))),re(process.execPath,[`--max-old-space-size=${me}`,"--expose-gc","--max-semi-space-size=1",L(import.meta.url),...process.argv.slice(2)],{stdio:"inherit"}).on("exit",l=>process.exit(l||0));else{let o=process.argv.slice(2),l=o.includes("--help")&&o[o.indexOf("--help")+1]==="commands",M=o.includes("--help")&&!l,T=o.includes("--version")||o.includes("-v"),A=o[0]==="--update",P=o[0]==="--export";if(T||M||l||A||P){let t=await import("fs"),p=await import("path"),{fileURLToPath:g}=await import("url"),C=p.join(p.dirname(g(import.meta.url)),"../package.json"),c=JSON.parse(t.readFileSync(C,"utf8")).version;if(P){let f=(o[1]||"").toLowerCase();if(f==="error"||f==="logs")try{let{exportErrorLogs:r}=await import("./chunks/export-NRMLNZUN.js"),n=await r();console.log(`[EXPORT LOGS] Exported ${n.entryCount} error log entries (FluxFlow: ${n.fluxflowCount}, Memory: ${n.memoryCount}) to "${n.exportFile}"`),process.exit(0)}catch(r){console.error(`[EXPORT ERROR] Failed to export error logs: ${r.message}`),process.exit(1)}else console.error(`[EXPORT ERROR] Invalid export target "${o[1]||""}". --export only supports 'error'.
6
- Usage: fluxflow --export error`),process.exit(1)}if(T&&(console.log(`v${c}`),process.exit(0)),M&&(console.log(`FluxFlow CLI Arguments:
2
+ import{spawn as ne}from"child_process";import{fileURLToPath as _}from"url";import ie from"os";import k from"dotenv";k.config({quiet:!0});k.config({path:"./fluxflow.env",override:!0,quiet:!0});k.config({path:"./.fluxflow.env",override:!0,quiet:!0});var le=ie.totalmem(),L=le/(1024*1024),ce=.5,me=Math.floor(L*ce),D=process.argv.slice(2),O=D.indexOf("--allocation"),s=O!==-1?parseInt(D[O+1],10):NaN,pe=process.env.EXPERIMENTAL_MEMORY_MANAGER==="true"||process.env.EXPERIMENTAL_MEMORY_MANAGER==="1"||process.env.EXPERIMENTAL_MEMORY_MANAGER===!0||process.env.EXPERIMENTAL_MEMORY_MANAGER===1||!1,ue=!isNaN(s)||pe||!1;!isNaN(s)&&s<64&&(console.error(`
3
+ [ERROR] Allocation value '${s} MB' is too low. Minimum: 64 MB, Recommended: 4096 MB.
4
+ `),process.exit(1));var y=Math.floor(L*.75),de=!isNaN(s)&&s>0?Math.min(s,y):Math.max(1536,Math.min(32768,me)),ge=_(import.meta.url).endsWith(".js");if(ge&&!process.execArgv.some(t=>t.includes("max-old-space-size"))&&ue)Number.isNaN(s)||(console.log(`
5
+ [MEMORY] Starting with: '${s>y?y:s} MB' Allocation${s>y?" (Max allowed: '"+y+" MB')":""}. Please Wait...`),await new Promise(m=>setTimeout(m,5e3))),ne(process.execPath,[`--max-old-space-size=${de}`,"--expose-gc","--max-semi-space-size=1",_(import.meta.url),...process.argv.slice(2)],{stdio:"inherit"}).on("exit",m=>process.exit(m||0));else{let t=process.argv.slice(2),m=t.includes("--help")&&t[t.indexOf("--help")+1]==="commands",F=t.includes("--help")&&!m,T=t.includes("--version")||t.includes("-v"),R=t[0]==="--update",P=t[0]==="--export";if(T||F||m||R||P){let e=await import("fs"),a=await import("path"),{fileURLToPath:n}=await import("url"),p=a.join(a.dirname(n(import.meta.url)),"../package.json"),u=JSON.parse(e.readFileSync(p,"utf8")).version;if(P){let h=(t[1]||"").toLowerCase();if(h==="error"||h==="logs")try{let{exportErrorLogs:i}=await import("./chunks/export-NRMLNZUN.js"),l=await i();console.log(`[EXPORT LOGS] Exported ${l.entryCount} error log entries (FluxFlow: ${l.fluxflowCount}, Memory: ${l.memoryCount}) to "${l.exportFile}"`),process.exit(0)}catch(i){console.error(`[EXPORT ERROR] Failed to export error logs: ${i.message}`),process.exit(1)}else console.error(`[EXPORT ERROR] Invalid export target "${t[1]||""}". --export only supports 'error'.
6
+ Usage: fluxflow --export error`),process.exit(1)}if(T&&(console.log(`v${u}`),process.exit(0)),F&&(console.log(`FluxFlow CLI Arguments:
7
7
  --mode <flux|flow> Set startup mode (flux: Agent / flow: Chat)
8
8
  --model <model_name> Set startup AI model
9
9
  --key <key@provider> Set API key and provider
@@ -21,10 +21,12 @@ Usage: fluxflow --export error`),process.exit(1)}if(T&&(console.log(`v${c}`),pro
21
21
  --help Show this help menu
22
22
  --help commands Show available /commands
23
23
  --playground Launch in Playground mode (fixed session, CWD: DATA_DIR/playground)
24
- --export error Export system error logs to fluxflow-error-<timestamp>.txt
25
- --update check Check for new updates
26
- --update check latest Show the latest version available on npm
27
- --update [latest] Update the app to the latest version (latest is default)`),process.exit(0)),l&&(console.log(`FluxFlow Chat /Commands:
24
+ --cwd <path> Set working directory to path
25
+ --path <path> Same as --cwd, set working directory
26
+ --export error Export system error logs to fluxflow-error-<timestamp>.txt
27
+ --update check Check for new updates
28
+ --update check latest Show the latest version available on npm
29
+ --update [latest] Update the app to the latest version (latest is default)`),process.exit(0)),m&&(console.log(`FluxFlow Chat /Commands:
28
30
  /quit Exit and shutdown Flux
29
31
  /help Show help menu
30
32
  /clear Clear terminal screen
@@ -55,4 +57,4 @@ Usage: fluxflow --export error`),process.exit(1)}if(T&&(console.log(`v${c}`),pro
55
57
  /docs View documentation
56
58
  /fluxflow init Create FluxFlow.md template
57
59
  /update check Check for new version
58
- /update latest Install latest release`),process.exit(0)),A){let f=o[1]||"latest";if(f==="check"){let r=o[2]==="latest";try{let d=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;d||(console.error("Error: Could not retrieve latest version."),process.exit(1)),console.log(r?`Latest version: v${d}`:d!==c?`A new version of FluxFlow is available: v${d} (current: v${c}). Run "fluxflow --update latest" to upgrade.`:`FluxFlow is up to date (v${c}).`)}catch(n){console.error("Error checking for updates:",n.message),process.exit(1)}process.exit(0)}else if(f==="latest"){console.log("Checking latest version and settings...");try{let s=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;s||(console.error("Error: Could not retrieve latest version."),process.exit(1)),s===c&&(console.log(`FluxFlow is already up to date (v${c}).`),process.exit(0));let d=async()=>{let e=(await import("react")).default,{useState:$}=e,{render:G,Box:u,Text:x}=await import("ink"),J=(await import("ink-select-input")).default,q=(await import("ink-text-input")).default;return new Promise(X=>{let K=[{label:"NPM",value:"npm"},{label:"PNPM",value:"pnpm"},{label:"Yarn",value:"yarn"},{label:"Bun",value:"bun"},{label:"Custom Command",value:"custom"}],Q=({label:h,isSelected:y})=>e.createElement(u,{width:"100%"},e.createElement(x,{bold:y},"\u2514\u2500 ",y?"\x1B[32m\u25CF\x1B[0m":"\u25CB"," ",h)),F,Z=()=>{let[h,y]=$("select"),[oe,te]=$(""),se=b=>{b.value==="custom"?y("custom"):B({manager:b.value})},ae=b=>{B({manager:"custom",customCommand:b})};return h==="custom"?e.createElement(u,{flexDirection:"column",marginY:1},e.createElement(u,{marginBottom:1},e.createElement(x,{color:"magenta",bold:!0},"\u{1F527} Enter custom update command:")),e.createElement(u,{flexDirection:"row"},e.createElement(x,{color:"cyan",bold:!0}," \u276F "),e.createElement(q,{value:oe,onChange:te,onSubmit:ae})),e.createElement(u,{marginTop:1},e.createElement(x,{color:"gray",dimColor:!0,italic:!0}," (Press Enter to confirm)"))):e.createElement(u,{flexDirection:"column",marginY:1},e.createElement(u,{marginBottom:1},e.createElement(x,{color:"magenta",bold:!0},"\u{1F4E6} Select a package manager for the update:")),e.createElement(J,{items:K,onSelect:se,itemComponent:Q,indicatorComponent:()=>null}))},B=h=>{F&&F(),X(h)},{unmount:ee}=G(e.createElement(Z,null));F=ee})},i,I="",v;try{let{loadSettings:e}=await import("./chunks/settings-REIFJELQ.js");v=await e(),i=v?.systemSettings?.updateManager||v?.updateManager}catch{}if(!i){let e=await d();i=e.manager,I=e.customCommand}let m="";i==="pnpm"?m=`pnpm add -g fluxflow-cli@${s}`:i==="bun"?m=`bun add -g fluxflow-cli@${s}`:i==="yarn"?m=`yarn global add fluxflow-cli@${s}`:i==="custom"?m=I||v?.customUpdateCommand||`npm install -g fluxflow-cli@${s}`:m=`npm install -g fluxflow-cli@${s}`,console.log(`Updating FluxFlow to v${s} using ${i}...`),console.log(`Running: ${m}`);let{execSync:z}=await import("child_process");z(m,{stdio:"inherit"}),console.log(`\x1B[32m\u2705 Update successful! FluxFlow updated to v${s}.\x1B[0m`)}catch(r){console.error("\x1B[31m\u274C Update failed:\x1B[0m",r.message),process.exit(1)}process.exit(0)}else console.error("Unknown update command. Available options: --update, --update check, --update check latest, --update latest"),process.exit(1)}}let{default:U}=await import("react"),{render:_}=await import("ink"),{default:j}=await import("./chunks/app-2IGWLVWG.js");process.env.NODE_NO_WARNINGS="1";let H=["cuimp","Found existing binary","Binary verified","curl.exe not found","Falling back to .bat file","DeprecationWarning"],W=console.log,V=console.warn,Y=console.error,S=t=>{let p=t.map(String).join(" ");return H.some(g=>p.includes(g))};console.log=(...t)=>!S(t)&&W(...t),console.warn=(...t)=>!S(t)&&V(...t),console.error=(...t)=>!S(t)&&Y(...t),process.stdout.write("\x1B[2J\x1B[3J\x1B[H"),process.stdout.isTTY&&(process.stdout.write("\x1B]0;FluxFlow\x07"),process.stdout.write("\x1B]633;P;TerminalTitle=FluxFlow\x07"),process.stdout.write("\x1B[?2004h"));let E=()=>{process.stdout.isTTY&&process.stdout.write("\x1B[?2004l")};if(process.on("exit",E),["SIGINT","SIGTERM","SIGHUP"].forEach(t=>{process.once(t,()=>{E(),process.exit(0)})}),o.includes("--playground")){let t=process.cwd();process.argv.push("--original-cwd",t);let{DATA_DIR:p}=await import("./chunks/paths-R3DD7CRF.js"),g=await import("path"),C=await import("fs-extra"),k=g.default.join(p,"playground");try{C.default.ensureDirSync(k),process.chdir(k)}catch{}}_(U.createElement(j,{args:process.argv.slice(2)}),{exitOnCtrlC:!1})}
60
+ /update latest Install latest release`),process.exit(0)),R){let h=t[1]||"latest";if(h==="check"){let i=t[2]==="latest";try{let f=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;f||(console.error("Error: Could not retrieve latest version."),process.exit(1)),console.log(i?`Latest version: v${f}`:f!==u?`A new version of FluxFlow is available: v${f} (current: v${u}). Run "fluxflow --update latest" to upgrade.`:`FluxFlow is up to date (v${u}).`)}catch(l){console.error("Error checking for updates:",l.message),process.exit(1)}process.exit(0)}else if(h==="latest"){console.log("Checking latest version and settings...");try{let r=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;r||(console.error("Error: Could not retrieve latest version."),process.exit(1)),r===u&&(console.log(`FluxFlow is already up to date (v${u}).`),process.exit(0));let f=async()=>{let o=(await import("react")).default,{useState:$}=o,{render:q,Box:g,Text:w}=await import("ink"),z=(await import("ink-select-input")).default,J=(await import("ink-text-input")).default;return new Promise(K=>{let Q=[{label:"NPM",value:"npm"},{label:"PNPM",value:"pnpm"},{label:"Yarn",value:"yarn"},{label:"Bun",value:"bun"},{label:"Custom Command",value:"custom"}],Z=({label:v,isSelected:b})=>o.createElement(g,{width:"100%"},o.createElement(w,{bold:b},"\u2514\u2500 ",b?"\x1B[32m\u25CF\x1B[0m":"\u25CB"," ",v)),A,ee=()=>{let[v,b]=$("select"),[te,se]=$(""),re=E=>{E.value==="custom"?b("custom"):B({manager:E.value})},ae=E=>{B({manager:"custom",customCommand:E})};return v==="custom"?o.createElement(g,{flexDirection:"column",marginY:1},o.createElement(g,{marginBottom:1},o.createElement(w,{color:"magenta",bold:!0},"\u{1F527} Enter custom update command:")),o.createElement(g,{flexDirection:"row"},o.createElement(w,{color:"cyan",bold:!0}," \u276F "),o.createElement(J,{value:te,onChange:se,onSubmit:ae})),o.createElement(g,{marginTop:1},o.createElement(w,{color:"gray",dimColor:!0,italic:!0}," (Press Enter to confirm)"))):o.createElement(g,{flexDirection:"column",marginY:1},o.createElement(g,{marginBottom:1},o.createElement(w,{color:"magenta",bold:!0},"\u{1F4E6} Select a package manager for the update:")),o.createElement(z,{items:Q,onSelect:re,itemComponent:Z,indicatorComponent:()=>null}))},B=v=>{A&&A(),K(v)},{unmount:oe}=q(o.createElement(ee,null));A=oe})},c,N="",M;try{let{loadSettings:o}=await import("./chunks/settings-REIFJELQ.js");M=await o(),c=M?.systemSettings?.updateManager||M?.updateManager}catch{}if(!c){let o=await f();c=o.manager,N=o.customCommand}let d="";c==="pnpm"?d=`pnpm add -g fluxflow-cli@${r}`:c==="bun"?d=`bun add -g fluxflow-cli@${r}`:c==="yarn"?d=`yarn global add fluxflow-cli@${r}`:c==="custom"?d=N||M?.customUpdateCommand||`npm install -g fluxflow-cli@${r}`:d=`npm install -g fluxflow-cli@${r}`,console.log(`Updating FluxFlow to v${r} using ${c}...`),console.log(`Running: ${d}`);let{execSync:X}=await import("child_process");X(d,{stdio:"inherit"}),console.log(`\x1B[32m\u2705 Update successful! FluxFlow updated to v${r}.\x1B[0m`)}catch(i){console.error("\x1B[31m\u274C Update failed:\x1B[0m",i.message),process.exit(1)}process.exit(0)}else console.error("Unknown update command. Available options: --update, --update check, --update check latest, --update latest"),process.exit(1)}}let{default:U}=await import("react"),{render:j}=await import("ink"),{default:Y}=await import("./chunks/app-J6LEKBDN.js");process.env.NODE_NO_WARNINGS="1";let G=["cuimp","Found existing binary","Binary verified","curl.exe not found","Falling back to .bat file","DeprecationWarning"],H=console.log,W=console.warn,V=console.error,S=e=>{let a=e.map(String).join(" ");return G.some(n=>a.includes(n))};console.log=(...e)=>!S(e)&&H(...e),console.warn=(...e)=>!S(e)&&W(...e),console.error=(...e)=>!S(e)&&V(...e);let C=t.findIndex(e=>e==="--cwd"||e==="--path");if(C!==-1&&C+1<t.length){let e=t[C+1],a=await import("path"),n=await import("fs-extra"),p=a.default.resolve(e);try{n.default.existsSync(p)&&n.default.statSync(p).isDirectory()?process.chdir(p):(console.error(`[ERROR] Directory not found: "${e}"`),process.exit(0))}catch(x){console.error(`[ERROR] Failed to change directory to "${e}": ${x.message}`),process.exit(0)}}process.stdout.write("\x1B[2J\x1B[3J\x1B[H"),process.stdout.isTTY&&(process.stdout.write("\x1B]0;FluxFlow\x07"),process.stdout.write("\x1B]633;P;TerminalTitle=FluxFlow\x07"),process.stdout.write("\x1B[?2004h"));let I=()=>{process.stdout.isTTY&&process.stdout.write("\x1B[?2004l")};if(process.on("exit",I),["SIGINT","SIGTERM","SIGHUP"].forEach(e=>{process.once(e,()=>{I(),process.exit(0)})}),t.includes("--playground")){let e=process.cwd();process.argv.push("--original-cwd",e);let{DATA_DIR:a}=await import("./chunks/paths-R3DD7CRF.js"),n=await import("path"),p=await import("fs-extra"),x=n.default.join(a,"playground");try{p.default.ensureDirSync(x),process.chdir(x)}catch{}}j(U.createElement(Y,{args:process.argv.slice(2)}),{exitOnCtrlC:!1})}
package/dist/entry.js CHANGED
@@ -5,10 +5,6 @@ import { enableCompileCache } from 'node:module';
5
5
 
6
6
  const cacheDir = path.join(os.homedir(), '.fluxflow', '.cache');
7
7
 
8
- if (process.env.NODE_COMPILE_CACHE === undefined) {
9
- process.env.NODE_COMPILE_CACHE = cacheDir;
10
- }
11
-
12
8
  if (typeof enableCompileCache === 'function') {
13
9
  try {
14
10
  enableCompileCache(cacheDir);
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": 1,
3
- "release": 20260817,
2
+ "version": 0,
3
+ "release": 20260818,
4
4
  "fallbacks": {
5
5
  "janitor_default": "gemini-3.1-flash-lite",
6
6
  "janitor_attempts_fallback": "gemma-4-26b-a4b-it",
@@ -200,6 +200,34 @@
200
200
  "cmd": "nvidia/nemotron-3-ultra-550b-a55b:free",
201
201
  "multimodal": false,
202
202
  "desc": "Text Only"
203
+ },
204
+ {
205
+ "cmd": "nvidia/nemotron-3-super-120b-a12b:free",
206
+ "multimodal": false,
207
+ "desc": "Text Only"
208
+ },
209
+ {
210
+ "cmd": "nvidia/nemotron-3.5-lightning:free",
211
+ "multimodal": false,
212
+ "desc": "Text Only"
213
+ },
214
+ {
215
+ "cmd": "\n--- North Mini Code Models ---",
216
+ "desc": ""
217
+ },
218
+ {
219
+ "cmd": "cohere/north-mini-code:free",
220
+ "multimodal": false,
221
+ "desc": "Text Only"
222
+ },
223
+ {
224
+ "cmd": "\n--- GLM Models ---",
225
+ "desc": ""
226
+ },
227
+ {
228
+ "cmd": "z-ai/glm-5.2:free",
229
+ "multimodal": false,
230
+ "desc": "Text Only"
203
231
  }
204
232
  ],
205
233
  "Paid": [
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "4.2.3",
4
- "date": "2026-08-17",
3
+ "version": "4.2.4",
4
+ "date": "2026-08-18",
5
5
  "description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era. Now has Computer Use.",
6
6
  "keywords": [
7
7
  "ai",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "type": "module",
38
38
  "bin": {
39
- "fluxflow-cli": "dist/cli.js",
39
+ "fluxflow-jit": "dist/cli.js",
40
40
  "fluxflow": "dist/entry.js"
41
41
  },
42
42
  "scripts": {
package/model_config.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": 1,
3
- "release": 20260817,
2
+ "version": 0,
3
+ "release": 20260818,
4
4
  "fallbacks": {
5
5
  "janitor_default": "gemini-3.1-flash-lite",
6
6
  "janitor_attempts_fallback": "gemma-4-26b-a4b-it",
@@ -200,6 +200,34 @@
200
200
  "cmd": "nvidia/nemotron-3-ultra-550b-a55b:free",
201
201
  "multimodal": false,
202
202
  "desc": "Text Only"
203
+ },
204
+ {
205
+ "cmd": "nvidia/nemotron-3-super-120b-a12b:free",
206
+ "multimodal": false,
207
+ "desc": "Text Only"
208
+ },
209
+ {
210
+ "cmd": "nvidia/nemotron-3.5-lightning:free",
211
+ "multimodal": false,
212
+ "desc": "Text Only"
213
+ },
214
+ {
215
+ "cmd": "\n--- North Mini Code Models ---",
216
+ "desc": ""
217
+ },
218
+ {
219
+ "cmd": "cohere/north-mini-code:free",
220
+ "multimodal": false,
221
+ "desc": "Text Only"
222
+ },
223
+ {
224
+ "cmd": "\n--- GLM Models ---",
225
+ "desc": ""
226
+ },
227
+ {
228
+ "cmd": "z-ai/glm-5.2:free",
229
+ "multimodal": false,
230
+ "desc": "Text Only"
203
231
  }
204
232
  ],
205
233
  "Paid": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "4.2.3",
4
- "date": "2026-08-17",
3
+ "version": "4.2.4",
4
+ "date": "2026-08-18",
5
5
  "description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era. Now has Computer Use.",
6
6
  "keywords": [
7
7
  "ai",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "type": "module",
38
38
  "bin": {
39
- "fluxflow-cli": "dist/cli.js",
39
+ "fluxflow-jit": "dist/cli.js",
40
40
  "fluxflow": "dist/entry.js"
41
41
  },
42
42
  "scripts": {