fluxflow-cli 4.50.0 → 5.0.1
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/ARCHITECTURE.md +7 -16
- package/README.md +1 -4
- package/TOOLS.md +0 -9
- package/UI_FEATURES.md +1 -2
- package/dist/chunks/ai-WBRHU7IH.js +1 -0
- package/dist/chunks/app-YYK3S5Y5.js +325 -0
- package/dist/chunks/{auto_completion-5WD4TTIP.js → auto_completion-UG6IEWD2.js} +1 -1
- package/dist/chunks/{chat-BA72I6O3.js → chat-ISCVWNVN.js} +1 -1
- package/dist/chunks/chunk-24LJKH4G.js +847 -0
- package/dist/chunks/chunk-7SGZ66KT.js +44 -0
- package/dist/chunks/chunk-B4UKMX5E.js +1 -0
- package/dist/chunks/{chunk-Z5D4VQSG.js → chunk-EXT42EJZ.js} +1 -1
- package/dist/chunks/{chunk-6JMPGZPV.js → chunk-GBH7XI5A.js} +1 -1
- package/dist/chunks/{chunk-5KSNFTQN.js → chunk-J4J3F6BT.js} +1 -1
- package/dist/chunks/chunk-LQM3JK7N.js +1 -0
- package/dist/chunks/{chunk-ZURGYQ4L.js → chunk-QESQR5GB.js} +1 -1
- package/dist/chunks/chunk-V36DXF56.js +13 -0
- package/dist/chunks/{chunk-TRVRMCHV.js → chunk-ZNO55RNG.js} +1 -1
- package/dist/chunks/{click-F4M4FVLQ.js → click-AWHZCV2E.js} +2 -2
- package/dist/chunks/{computer_action-72ZORSKW.js → computer_action-MO2JR2XH.js} +1 -1
- package/dist/chunks/{custom_openai-BLC4CWOL.js → custom_openai-K554R7Q5.js} +1 -1
- package/dist/chunks/{drag-OT2BJZ4P.js → drag-D2GVPIQB.js} +1 -1
- package/dist/chunks/{generate_image-V4OMOT7Z.js → generate_image-45UQ6P2B.js} +1 -1
- package/dist/chunks/{invoke-L2V4QMJG.js → invoke-DVZUJJV3.js} +2 -2
- package/dist/chunks/{invokeSync-7NWIYBX5.js → invokeSync-NEZGW27B.js} +2 -2
- package/dist/chunks/{key_press-IVB7R7CK.js → key_press-AQNKL6UM.js} +1 -1
- package/dist/chunks/{keyboard_typing-A6VFLI7Q.js → keyboard_typing-QSBPTZJ6.js} +1 -1
- package/dist/chunks/{mistral-YTTOZB2J.js → mistral-ON6RQMK7.js} +1 -1
- package/dist/chunks/{model_config-JTMSQGKH.js → model_config-QRYAVWHF.js} +1 -1
- package/dist/chunks/{nvidia-ON4Q6Q26.js → nvidia-I6DPWP6U.js} +2 -2
- package/dist/chunks/{ollama-DIFOZ4PM.js → ollama-6WSZPCI5.js} +1 -1
- package/dist/chunks/{recapture_screen-TVTRNE7C.js → recapture_screen-PPXYK2YY.js} +1 -1
- package/dist/chunks/{screen_grid-AEHMTXP3.js → screen_grid-3RU324CV.js} +1 -1
- package/dist/chunks/{scroll-KFID5QKZ.js → scroll-TSU6MTGU.js} +1 -1
- package/dist/chunks/search_keyword-DZY4MWV7.js +8 -0
- package/dist/chunks/{secrets-JMSL57D2.js → secrets-TNMLVMST.js} +1 -1
- package/dist/chunks/{secrets_v2-U7JR7ZO6.js → secrets_v2-OBRWR3UT.js} +1 -1
- package/dist/chunks/{settings-3VSVCZDF.js → settings-PUFSRWT3.js} +1 -1
- package/dist/chunks/update_file-TGEB5UWK.js +13 -0
- package/dist/chunks/usage-EBE2OVES.js +1 -0
- package/dist/chunks/{usageServer-4X7T4FDJ.js → usageServer-RTK5N5KE.js} +1 -2
- package/dist/chunks/write_file-O6OF7Z2W.js +32 -0
- package/dist/cli.js +25 -22
- package/dist/model_config.json +2 -30
- package/dist/package.json +2 -2
- package/model_config.json +2 -30
- package/package.json +2 -2
- package/dist/chunks/ai-EWDCEXLL.js +0 -1
- package/dist/chunks/app-C7G3NWAQ.js +0 -333
- package/dist/chunks/chunk-HTOLY3HR.js +0 -1
- package/dist/chunks/chunk-OB2V6ZNC.js +0 -951
- package/dist/chunks/chunk-PACSPBDP.js +0 -1
- package/dist/chunks/chunk-T5CUPXCW.js +0 -13
- package/dist/chunks/chunk-TX3H7HDF.js +0 -44
- package/dist/chunks/search_keyword-666PL7YG.js +0 -8
- package/dist/chunks/update_file-RG5QSLR2.js +0 -13
- package/dist/chunks/usage-AJDMLXTH.js +0 -1
- package/dist/chunks/write_file-AQJXPIUV.js +0 -32
package/dist/cli.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as
|
|
3
|
-
[ERROR] Allocation value '${
|
|
4
|
-
`),process.exit(1));var
|
|
5
|
-
[MEMORY] Starting with: '${
|
|
2
|
+
import{a as $}from"./chunks/chunk-26BQ45XP.js";import{spawn as ye}from"child_process";import{fileURLToPath as le}from"url";import Se from"os";import ee from"path";import T from"fs";import N from"dotenv";try{let t=ee.join($,"AGENTS.md"),f=ee.join($,"FLUXFLOW.md");T.existsSync($)||T.mkdirSync($,{recursive:!0}),T.existsSync(t)||T.writeFileSync(t,"","utf8"),T.existsSync(f)||T.writeFileSync(f,"","utf8")}catch{}N.config({path:"./.env",override:!0,quiet:!0});N.config({path:`${$}/.env`,override:!0,quiet:!0});N.config({path:`${$}/.env.agents`,override:!0,quiet:!0});N.config({path:`${$}/.env.fluxflow`,override:!0,quiet:!0});N.config({path:"./.env.agents",override:!0,quiet:!0});N.config({path:"./.env.fluxflow",override:!0,quiet:!0});process.env.NO_INS=!1;var be=Se.totalmem(),ce=be/(1024*1024),$e=.5,Me=Math.floor(ce*$e),me=process.argv.slice(2),ae=me.indexOf("--allocation"),g=ae!==-1?parseInt(me[ae+1],10):NaN,Ce=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,ke=!isNaN(g)||Ce||!1;!isNaN(g)&&g<64&&(console.error(`
|
|
3
|
+
[ERROR] Allocation value '${g} MB' is too low. Minimum: 64 MB, Recommended: 4096 MB.
|
|
4
|
+
`),process.exit(1));var O=Math.floor(ce*.75),Ae=!isNaN(g)&&g>0?Math.min(g,O):Math.max(1536,Math.min(32768,Me)),Ee=le(import.meta.url).endsWith(".js");if(Ee&&!process.execArgv.some(t=>t.includes("max-old-space-size"))&&ke)Number.isNaN(g)||(console.log(`
|
|
5
|
+
[MEMORY] Starting with: '${g>O?O:g} MB' Allocation${g>O?" (Max allowed: '"+O+" MB')":""}. Please Wait...`),await new Promise(f=>setTimeout(f,5e3))),ye(process.execPath,[`--max-old-space-size=${Ae}`,"--expose-gc","--max-semi-space-size=1",le(import.meta.url),...process.argv.slice(2)],{stdio:"inherit"}).on("exit",f=>process.exit(f||0));else{let t=process.argv.slice(2),f=t.includes("--help")&&t[t.indexOf("--help")+1]==="commands",te=t.includes("--help")&&!f,oe=t.includes("--version")||t.includes("-v"),se=t[0]==="--update",re=t[0]==="--export";if(t[0]==="--usage"||t.includes("--usage")||t[0]==="--budget"||t.includes("--budget")){let{openUsageDashboard:o}=await import("./chunks/usageServer-RTK5N5KE.js"),{url:d}=await o();console.log(`
|
|
6
6
|
\u2726 FluxFlow Token Usage & Analytics Dashboard
|
|
7
|
-
\u2800\u2800\u2514\u2500 Serving at: ${
|
|
7
|
+
\u2800\u2800\u2514\u2500 Serving at: ${d}
|
|
8
8
|
\u2800\u2800\u2514\u2500 Opened in default browser. Press Ctrl+C to stop.
|
|
9
|
-
`),await new Promise(()=>{})}if(
|
|
10
|
-
Usage: fluxflow --export error`),process.exit(1)}if(
|
|
9
|
+
`),await new Promise(()=>{})}if(oe||te||f||se||re){let o=await import("fs"),d=await import("path"),{fileURLToPath:s}=await import("url"),u=d.join(d.dirname(s(import.meta.url)),"../package.json"),i=JSON.parse(o.readFileSync(u,"utf8")).version;if(re){let C=(t[1]||"").toLowerCase();if(C==="error"||C==="logs")try{let{exportErrorLogs:x}=await import("./chunks/export-RU6LCZUB.js"),c=await x();console.log(`[EXPORT LOGS] Exported ${c.entryCount} error log entries (FluxFlow: ${c.fluxflowCount}, Memory: ${c.memoryCount}, Usage: ${c.usageCount}) to "${c.exportFile}"`),process.exit(0)}catch(x){console.error(`[EXPORT ERROR] Failed to export error logs: ${x.message}`),process.exit(1)}else console.error(`[EXPORT ERROR] Invalid export target "${t[1]||""}". --export only supports 'error'.
|
|
10
|
+
Usage: fluxflow --export error`),process.exit(1)}if(oe&&(console.log(`v${i}`),process.exit(0)),te&&(console.log(`FluxFlow CLI Arguments:
|
|
11
11
|
--mode <flux|flow|icu|omni> Set startup mode (Agent / Chat / Computer Use / Sentient being)
|
|
12
12
|
--model <model_name> Set startup AI model
|
|
13
13
|
--key <key@provider> Set API key and provider
|
|
14
14
|
--provider Override default provider
|
|
15
15
|
--thinking <Fast|Low|Medium|High|xHigh> Set startup thinking level
|
|
16
|
-
--memory <on|off> Toggle memory system
|
|
17
16
|
--resume <session_id> Resume a previous session
|
|
18
17
|
--allocation <mb> Override Node.js max-old-space-size in MB (default: auto)
|
|
19
18
|
--package <npm|pnpm|yarn|bun> Set package manager for updates
|
|
@@ -33,13 +32,13 @@ Usage: fluxflow --export error`),process.exit(1)}if(ee&&(console.log(`v${i}`),pr
|
|
|
33
32
|
--export error Export system error logs to fluxflow-error-<timestamp>.txt
|
|
34
33
|
--update check Check for new updates
|
|
35
34
|
--update check latest Show the latest version available on npm
|
|
36
|
-
--update [latest] Update the app to the latest version (latest is default)`),process.exit(0)),
|
|
35
|
+
--update [latest] Update the app to the latest version (latest is default)`),process.exit(0)),f&&(console.log(`FluxFlow Chat /Commands:
|
|
37
36
|
/quit Exit and shutdown Flux
|
|
38
37
|
/kill [pid] Kill a process by PID or list active processes
|
|
39
38
|
/help Show help menu
|
|
40
39
|
/clear Clear terminal screen
|
|
41
40
|
/resume Load previous session
|
|
42
|
-
|
|
41
|
+
|
|
43
42
|
/truncate Truncate tool results in chat history
|
|
44
43
|
/revert Revert codebase back to a checkpoint
|
|
45
44
|
/save Force save current chat
|
|
@@ -66,30 +65,34 @@ Usage: fluxflow --export error`),process.exit(1)}if(ee&&(console.log(`v${i}`),pr
|
|
|
66
65
|
/docs View documentation
|
|
67
66
|
/fluxflow init Create FluxFlow.md template
|
|
68
67
|
/update check Check for new version
|
|
69
|
-
/update latest Install latest release`),process.exit(0)),
|
|
68
|
+
/update latest Install latest release`),process.exit(0)),se){let C=t[1]||"latest";if(C==="check"){let x=t[2]==="latest";try{let y=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;y||(console.error("Error: Could not retrieve latest version."),process.exit(1)),console.log(x?`Latest version: v${y}`:y!==i?`A new version of FluxFlow is available: v${y} (current: v${i}). Run "fluxflow --update latest" to upgrade.`:`FluxFlow is up to date (v${i}).`)}catch(c){console.error("Error checking for updates:",c.message),process.exit(1)}process.exit(0)}else if(C==="latest"){console.log("Checking latest version and settings...");try{let m=(await(await fetch("https://registry.npmjs.org/fluxflow-cli",{cache:"no-store"})).json())["dist-tags"]?.latest;m||(console.error("Error: Could not retrieve latest version."),process.exit(1)),m===i&&(console.log(`FluxFlow is already up to date (v${i}).`),process.exit(0));let y=async()=>{let r=(await import("react")).default,{useState:w}=r,{render:U,Box:h,Text:S}=await import("ink"),ie=(await import("ink-select-input")).default,_=(await import("ink-text-input")).default;return new Promise(D=>{let P=[{label:"NPM",value:"npm"},{label:"PNPM",value:"pnpm"},{label:"Yarn",value:"yarn"},{label:"Bun",value:"bun"},{label:"Custom Command",value:"custom"}],H=({label:E,isSelected:F})=>r.createElement(h,{width:"100%"},r.createElement(S,{bold:F},"\u2514\u2500 ",F?"\x1B[32m\u25CF\x1B[0m":"\u25CB"," ",E)),b,X=()=>{let[E,F]=w("select"),[J,j]=w(""),z=R=>{R.value==="custom"?F("custom"):B({manager:R.value})},K=R=>{B({manager:"custom",customCommand:R})};return E==="custom"?r.createElement(h,{flexDirection:"column",marginY:1},r.createElement(h,{marginBottom:1},r.createElement(S,{color:"magenta",bold:!0},"\u{1F527} Enter custom update command:")),r.createElement(h,{flexDirection:"row"},r.createElement(S,{color:"cyan",bold:!0}," \u276F "),r.createElement(_,{value:J,onChange:j,onSubmit:K})),r.createElement(h,{marginTop:1},r.createElement(S,{color:"gray",dimColor:!0,italic:!0}," (Press Enter to confirm)"))):r.createElement(h,{flexDirection:"column",marginY:1},r.createElement(h,{marginBottom:1},r.createElement(S,{color:"magenta",bold:!0},"\u{1F4E6} Select a package manager for the update:")),r.createElement(ie,{items:P,onSelect:z,itemComponent:H,indicatorComponent:()=>null}))},B=E=>{b&&b(),D(E)},{unmount:V}=U(r.createElement(X,null));b=V})},n,k="",A;try{let{loadSettings:r}=await import("./chunks/settings-PUFSRWT3.js");A=await r(),n=A?.systemSettings?.updateManager||A?.updateManager}catch{}if(!n){let r=await y();n=r.manager,k=r.customCommand}let p="";n==="pnpm"?p=`pnpm add -g fluxflow-cli@${m}`:n==="bun"?p=`bun add -g fluxflow-cli@${m}`:n==="yarn"?p=`yarn global add fluxflow-cli@${m}`:n==="custom"?p=k||A?.customUpdateCommand||`npm install -g fluxflow-cli@${m}`:p=`npm install -g fluxflow-cli@${m}`,console.log(`Updating FluxFlow to v${m} using ${n}...`),console.log(`Running: ${p}`);let{execSync:L}=await import("child_process");L(p,{stdio:"inherit"}),console.log(`\x1B[32m\u2705 Update successful! FluxFlow updated to v${m}.\x1B[0m`)}catch(x){console.error("\x1B[31m\u274C Update failed:\x1B[0m",x.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:pe}=await import("react"),{render:de}=await import("ink"),{default:ue}=await import("./chunks/app-YYK3S5Y5.js");process.env.NODE_NO_WARNINGS="1";let ge=["cuimp","Found existing binary","Binary verified","curl.exe not found","Falling back to .bat file","DeprecationWarning"],fe=console.log,xe=console.warn,we=console.error,W=o=>{let d=o.map(String).join(" ");return ge.some(s=>d.includes(s))};console.log=(...o)=>!W(o)&&fe(...o),console.warn=(...o)=>!W(o)&&xe(...o),console.error=(...o)=>!W(o)&&we(...o);let Y=t.findIndex(o=>o==="--cwd"||o==="--path");if(Y!==-1&&Y+1<t.length){let o=t[Y+1],d=await import("path"),s=await import("fs-extra"),u=d.default.resolve(o);try{s.default.existsSync(u)&&s.default.statSync(u).isDirectory()?process.chdir(u):(console.error(`[ERROR] Directory not found: "${o}"`),process.exit(0))}catch(v){console.error(`[ERROR] Failed to change directory to "${o}": ${v.message}`),process.exit(0)}}let M=t.includes("--commit_8f4a2b9c"),q=t.findIndex(o=>o==="-p"||o==="--prompt");if(q!==-1||M){let o=t.includes("--new")||t.includes("-n"),s=(q!==-1?t.slice(q+1).filter(e=>e!=="-n"&&e!=="--new"):[])[0];if(M)try{let{execSync:e}=await import("child_process"),a=e("git diff --cached",{encoding:"utf8",stdio:["ignore","pipe","pipe"]}).trim();a||process.exit(0);let l="";if(s&&s.trim()){let I=s.trim();I.startsWith("={")&&I.endsWith("}")?l=`
|
|
69
|
+
|
|
70
|
+
Instruction: ${I.slice(2,-1).trim()}`:l=`
|
|
71
|
+
|
|
72
|
+
Hint: ${I}`}s=`Git Staged Diff:
|
|
70
73
|
${a}
|
|
71
74
|
---
|
|
72
75
|
|
|
73
|
-
Write as conventional, title + bullet description style commit message. No markdown, emojis, fluff`}catch{process.exit(0)}let
|
|
76
|
+
Write as conventional, title + bullet description style commit message. No markdown, emojis, fluff${l}`}catch{process.exit(0)}let u=t.findIndex(e=>e==="-r"||e==="--run"),v=null,i=null;if(u!==-1&&u+1<t.length){v=t[u+1];try{let{execSync:e}=await import("child_process");i=e(v,{encoding:"utf8",stdio:["ignore","pipe","pipe"]}).trim()}catch(e){i=(e.stdout?e.stdout.toString().trim():"")||(e.stderr?e.stderr.toString().trim():"")||e.message}}if(i){let{stripAnsi:e}=await import("./chunks/exec_command-6V5SM6WI.js");i=e(i).trim(),s?s=`Stdin Context (${v}):
|
|
74
77
|
${i}
|
|
75
78
|
---
|
|
76
79
|
|
|
77
|
-
${
|
|
80
|
+
${s}`:s=i}if(!M&&!process.stdin.isTTY){let e=[];for await(let l of process.stdin)e.push(l);let a=Buffer.concat(e).toString("utf8").trim();if(a){let{stripAnsi:l}=await import("./chunks/exec_command-6V5SM6WI.js");a=l(a).trim(),s?s=`Stdin Context:
|
|
78
81
|
${a}
|
|
79
82
|
---
|
|
80
83
|
|
|
81
|
-
${
|
|
84
|
+
${s}`:s=a}}s||(console.error("[ERROR] -p/--prompt requires a prompt string (or piped stdin input)."),process.exit(1));let{loadSettings:C}=await import("./chunks/settings-PUFSRWT3.js"),{getProviderAPIKey:x}=await import("./chunks/secrets-TNMLVMST.js"),{getDefaultModel:c}=await import("./chunks/model_config-QRYAVWHF.js"),{generateSimpleContent:m}=await import("./chunks/ai-WBRHU7IH.js"),{checkQuotaDetailed:y}=await import("./chunks/usage-EBE2OVES.js"),n=await C(),k=t.filter(e=>e!=="-p"&&e!=="--prompt"&&e!==s&&e!=="-n"&&e!=="--new"),A=M||k.includes("--raw")||t.includes("--raw"),p=e=>{for(let a of e){let l=k.indexOf(a);if(l!==-1&&l+1<k.length)return k[l+1]}return null},L=M&&n.systemSettings?.commitMessageModel&&n.systemSettings.commitMessageModel!=="Default"?n.systemSettings.commitMessageModel:null,r=M&&L&&n.systemSettings?.commitMessageProvider?n.systemSettings.commitMessageProvider:null,w=p(["--provider"])||r||n.aiProvider||"Google",U=p(["--model"])||L||n.activeModel||c(w,n.apiTier)||c(w,"paid"),h=p(["--key"])||await x(w);!h&&!(w==="c_openai"&&n.systemSettings?.customOpenAIBaseUrl)&&(console.error(`[ERROR] No API key resolved for provider "${w}".`),process.exit(1));let S=await y("agent",{aiProvider:w});S.allowed||(console.error(`[ERROR] ${S.reason||"Budget Exhausted"} - adjust with /budget set.`),process.exit(1));let{name:ie="",nickname:_="",instructions:D=""}=n?.profileData??{},P={aiProvider:w,apiKey:h,model:U,mode:"flow",thinkingLevel:p(["--thinking"])||"Fast",systemSettings:n.systemSettings||{}},H=process.platform==="win32"?"Windows":process.platform==="darwin"?"macOS":"Linux",b=new Date,X=b.getFullYear(),B=b.toLocaleString("en-US",{month:"short"}).toUpperCase(),V=String(b.getDate()).padStart(2,"0"),E=b.toLocaleTimeString([],{hour:"2-digit",hour12:!0}),F=`${X}-${B}-${V}, ${E}`,J=(P.model||"").replace(/^.*::/,"").split(":")[0].replace(/\/free$/,"").trim(),j=ee.basename(J).replace(/-free$/,"").replace(/_free$/,"").replace(/^free_/,"").replaceAll("-"," ").replaceAll("_"," ").replace(/\b\w/g,e=>e.toUpperCase().trim()),z=`Identity: FluxFlow. Sassy, CLI Assistant
|
|
82
85
|
Use NO markdown, only plain text
|
|
83
86
|
Context:
|
|
84
|
-
- OS: ${
|
|
85
|
-
- Model: ${
|
|
87
|
+
- OS: ${H}
|
|
88
|
+
- Model: ${j}
|
|
86
89
|
- Approx time: ${F}
|
|
87
90
|
- Non interactive CLI, support piped inputs
|
|
88
|
-
- 'fluxflow' TUI has full agentic tools${
|
|
89
|
-
User Nickname: ${
|
|
90
|
-
User Preferences: ${
|
|
91
|
-
`)}let{text:e}=await
|
|
91
|
+
- 'fluxflow' TUI has full agentic tools${_.trim().length>0?`
|
|
92
|
+
User Nickname: ${_.trim()}`:""}${D.trim().length>0?`
|
|
93
|
+
User Preferences: ${D.trim()}`:""}`.trim(),{getPromptSessionHistory:K,savePromptSessionHistory:R,clearPromptSessionHistory:he}=await import("./chunks/sessionDaemon-GHQTAGDG.js"),G=[];o&&!M?await he():o||(G=await K());let Q=[];if(Array.isArray(G)&&G.length>0)for(let e of G)e.text&&Q.push({role:e.role==="model"?"model":"user",parts:[{text:e.text}]});Q.push({role:"user",parts:[{text:s}]});try{if(!A){let l="\x1B[36m",I="\x1B[35m",Z="\x1B[0m",ve=j;process.stdout.write(`Responding with ${l}${ve}${Z} from ${I}${P.aiProvider}${Z}:
|
|
94
|
+
`)}let{text:e}=await m(P,U,Q,z,P.thinkingLevel),a=(e||"").trim();process.stdout.write(a+`
|
|
92
95
|
${A?"":`
|
|
93
|
-
`}`),a&&await R(
|
|
96
|
+
`}`),a&&await R(s,a)}catch(e){console.error(`[ERROR] Prompt request failed: ${e.message.trim()}
|
|
94
97
|
|
|
95
|
-
`),process.exit(1)}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
|
|
98
|
+
`),process.exit(1)}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 ne=()=>{process.stdout.isTTY&&process.stdout.write("\x1B[?2004l")};if(process.on("exit",ne),["SIGINT","SIGTERM","SIGHUP"].forEach(o=>{process.once(o,()=>{ne(),process.exit(0)})}),t.includes("--playground")){let o=process.cwd();process.argv.push("--original-cwd",o);let{DATA_DIR:d}=await import("./chunks/paths-RQRI2XRY.js"),s=await import("path"),u=await import("fs-extra"),v=s.default.join(d,"playground");try{u.default.ensureDirSync(v),process.chdir(v)}catch{}}de(pe.createElement(ue,{args:process.argv.slice(2)}),{exitOnCtrlC:!1})}
|
package/dist/model_config.json
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 0,
|
|
3
|
-
"release":
|
|
4
|
-
"fallbacks": {
|
|
5
|
-
"janitor_default": "gemini-3.5-flash-lite",
|
|
6
|
-
"janitor_attempts_fallback": "gemma-4-26b-a4b-it",
|
|
7
|
-
"janitor_open_router": "google/gemma-4-26b-a4b-it:free",
|
|
8
|
-
"general_fallback": "gemini-3.5-flash-lite",
|
|
9
|
-
"deepseek_fast_fallback": "deepseek-v4-flash",
|
|
10
|
-
"deepseek_level_1": "deepseek-flash",
|
|
11
|
-
"deepseek_level_2": "deepseek-pro",
|
|
12
|
-
"mistral_janitor_fallback": "",
|
|
13
|
-
"mistral_level_1": "",
|
|
14
|
-
"nvidia_janitor_fallback": "mistralai/mistral-nemotron",
|
|
15
|
-
"nvidia_chat_summarizer_fallback": "nvidia/nemotron-3-super-120b-a12b",
|
|
16
|
-
"google_level_1": "gemini-3-flash-preview",
|
|
17
|
-
"google_level_2": "gemini-3.7-flash",
|
|
18
|
-
"gemma_emergency": "gemma-4-31b-it",
|
|
19
|
-
"gemma_janitor_fallback_google_openrouter": "google/gemma-4-26b-a4b-it:free",
|
|
20
|
-
"gemma_janitor_fallback_google": "gemma-4-26b-a4b-it",
|
|
21
|
-
"inferx_fallback": "",
|
|
22
|
-
"sensenova_fallback": "",
|
|
23
|
-
"crofai_fallback": "",
|
|
24
|
-
"aihubmix_fallback": "",
|
|
25
|
-
"poolside_fallback": "",
|
|
26
|
-
"9router_fallback": "",
|
|
27
|
-
"explabs_fallback": "",
|
|
28
|
-
"tokenharbor_fallback": "",
|
|
29
|
-
"infron_fallback": "",
|
|
30
|
-
"xkiro_fallback": "",
|
|
31
|
-
"c_openai_fallback": ""
|
|
32
|
-
},
|
|
3
|
+
"release": 20261106,
|
|
4
|
+
"fallbacks": {},
|
|
33
5
|
"providers": {}
|
|
34
6
|
}
|
package/dist/package.json
CHANGED
package/model_config.json
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 0,
|
|
3
|
-
"release":
|
|
4
|
-
"fallbacks": {
|
|
5
|
-
"janitor_default": "gemini-3.5-flash-lite",
|
|
6
|
-
"janitor_attempts_fallback": "gemma-4-26b-a4b-it",
|
|
7
|
-
"janitor_open_router": "google/gemma-4-26b-a4b-it:free",
|
|
8
|
-
"general_fallback": "gemini-3.5-flash-lite",
|
|
9
|
-
"deepseek_fast_fallback": "deepseek-v4-flash",
|
|
10
|
-
"deepseek_level_1": "deepseek-flash",
|
|
11
|
-
"deepseek_level_2": "deepseek-pro",
|
|
12
|
-
"mistral_janitor_fallback": "",
|
|
13
|
-
"mistral_level_1": "",
|
|
14
|
-
"nvidia_janitor_fallback": "mistralai/mistral-nemotron",
|
|
15
|
-
"nvidia_chat_summarizer_fallback": "nvidia/nemotron-3-super-120b-a12b",
|
|
16
|
-
"google_level_1": "gemini-3-flash-preview",
|
|
17
|
-
"google_level_2": "gemini-3.7-flash",
|
|
18
|
-
"gemma_emergency": "gemma-4-31b-it",
|
|
19
|
-
"gemma_janitor_fallback_google_openrouter": "google/gemma-4-26b-a4b-it:free",
|
|
20
|
-
"gemma_janitor_fallback_google": "gemma-4-26b-a4b-it",
|
|
21
|
-
"inferx_fallback": "",
|
|
22
|
-
"sensenova_fallback": "",
|
|
23
|
-
"crofai_fallback": "",
|
|
24
|
-
"aihubmix_fallback": "",
|
|
25
|
-
"poolside_fallback": "",
|
|
26
|
-
"9router_fallback": "",
|
|
27
|
-
"explabs_fallback": "",
|
|
28
|
-
"tokenharbor_fallback": "",
|
|
29
|
-
"infron_fallback": "",
|
|
30
|
-
"xkiro_fallback": "",
|
|
31
|
-
"c_openai_fallback": ""
|
|
32
|
-
},
|
|
3
|
+
"release": 20261106,
|
|
4
|
+
"fallbacks": {},
|
|
33
5
|
"providers": {}
|
|
34
6
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as r,B as s,C as t,D as u,E as v,F as w,G as x,k as b,l as c,m as d,n as e,o as f,p as g,q as h,r as i,s as j,t as k,u as l,v as m,w as n,x as o,y as p,z as q}from"./chunk-OB2V6ZNC.js";import"./chunk-HFTI3R3Q.js";import"./chunk-52STSLCN.js";import"./chunk-56EJGQU3.js";import"./chunk-4BLSASW6.js";import"./chunk-TX3H7HDF.js";import"./chunk-UIL6OCU4.js";import"./chunk-Z5D4VQSG.js";import"./chunk-6EYQQ7GQ.js";import"./chunk-Y5JU726N.js";import"./chunk-ZURGYQ4L.js";import"./chunk-5KSNFTQN.js";import"./chunk-T5CUPXCW.js";import"./chunk-PACSPBDP.js";import{l as a}from"./chunk-HTOLY3HR.js";import"./chunk-P5HBJA23.js";import"./chunk-26BQ45XP.js";export{c as RE_LEADING_THINK,u as compressHistory,b as convertChannelThinkTags,v as deleteChatSummary,r as detectToolCalls,e as findGenuineThinkClose,t as generateSimpleContent,w as getAIStream,q as getActiveToolContext,j as getCleanGroupedLength,m as getGoogleClient,f as getLeadingThinkBlock,s as initAI,d as isInsideBacktick,a as isModelMultimodal,l as isTerminationSignaled,o as maskCodeSpans,p as maskExecutedTools,n as runJanitorTask,x as runSubagent,k as signalTermination,g as stripLeadingThinking,h as stripNakedXmlTags,i as stripTrailingFluffAfterTools};
|