fluxflow-cli 3.0.16 β 3.0.17
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/.puppeteerrc.cjs +13 -0
- package/README.md +87 -87
- package/dist/fluxflow.js +1 -1
- package/flux-flow.cjs +16 -0
- package/package.json +4 -2
package/.puppeteerrc.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { join } = require('path');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @type {import("puppeteer").Configuration}
|
|
5
|
+
*/
|
|
6
|
+
module.exports = {
|
|
7
|
+
// Pin the precise version of Chrome you need
|
|
8
|
+
chrome: {
|
|
9
|
+
version: '148.0.7778.178',
|
|
10
|
+
},
|
|
11
|
+
// Use the home directory for the browser cache to keep the project folder clean
|
|
12
|
+
cacheDirectory: join(require('os').homedir(), '.cache', 'puppeteer'),
|
|
13
|
+
};
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#
|
|
2
|
-

|
|
3
3
|
|
|
4
4
|
<p align="left">
|
|
5
5
|
<a href="https://github.com/KushalRoyChowdhury/fluxflow-cli"><img src="https://img.shields.io/badge/FluxFlow-v3-blue?style=plastic" alt="FluxFlow Version"></a>
|
|
@@ -7,100 +7,94 @@
|
|
|
7
7
|
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-%3E%3D20-green?style=plastic" alt="Node Compatibility"></a>
|
|
8
8
|
</p>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**A Beautiful, Autonomous Terminal AI Agent**
|
|
11
11
|
|
|
12
|
-
π **[Official
|
|
12
|
+
π **[Official Documentatio]n(https://fluxflow-cli.onrender.com/)**
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Flux Flow is an advanced, fully autonomous AI agent that lives directly in your terminal. Built with Node.js and [Ink](https://github.com/vadimdemedes/ink) (React for interactive command-line apps), it provides a highly responsive, component-based UI powered by a sophisticated dual-model AI architecture.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Whether you need a conversational partner or an autonomous developer that can write code, run shell commands, and read your project files, Flux Flow adapts to your needs.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
You don't even need to install it. Just fire up your terminal and run:
|
|
18
|
+
---
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
# Run instantly (Zero Setup)
|
|
23
|
-
npx fluxflow-cli
|
|
20
|
+
## β¨ Features
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
npm install -g fluxflow-cli
|
|
27
|
-
fluxflow-cli
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
*The agent will prompt you for your API Key on the first run and store it securely in an encrypted vault.* Choose from multiple supported AI providers:
|
|
22
|
+
- **Multi-Provider Support**: Choose your preferred engine!
|
|
31
23
|
- **Google GenAI** (Gemini & Gemma models)
|
|
32
24
|
- **DeepSeek** (Native DeepSeek API)
|
|
33
25
|
- **OpenRouter** (Access to hundreds of models; *Experimental*)
|
|
34
26
|
- **NVIDIA** (Access to selected models)
|
|
35
27
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- **
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- **
|
|
47
|
-
- **
|
|
48
|
-
- **
|
|
49
|
-
-
|
|
50
|
-
- **
|
|
51
|
-
- **
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
Flux
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- **
|
|
59
|
-
- **
|
|
28
|
+
- **High-Fidelity IDE Companion**: Flux Flow now pairs with a dedicated VS Code extension to bridge the gap between terminal and editor:
|
|
29
|
+
- **Surgical Diagnostic Sync**: The agent has "Red Squiggle Radar"βit proactively detects errors across your entire workspace and offers a "Magic Wand" fix button.
|
|
30
|
+
- **Live Status Heartbeat**: Real-time telemetry in the VS Code Status Bar shows exactly what the agent is doing (e.g., *Thinking...*, *Reading file.js...*, *Patching app.jsx...*).
|
|
31
|
+
- **Clickable Terminal Links**: All file paths and line numbers printed in the terminal are live links; click them to jump straight to that code in your IDE.
|
|
32
|
+
- **Selection-Driven Reasoning**: Select code and right-click -> "Chat with FluxFlow" to instantly focus the agent with full context.
|
|
33
|
+
- **Smart Context Awareness**: The agent knows your cursor position, active selection, and even errors in files you don't have open.
|
|
34
|
+
- **Universal Compatibility**: Works flawlessly with VS Code, Cursor, VSCodium, Trae, and Antigravity.
|
|
35
|
+
|
|
36
|
+
- **Native Multimodality**: Flux Flow can now see! Analyze images (JPG, PNG) and PDF documents natively through the `ReadFile` tool with high-fidelity context retention (Only on supported models).
|
|
37
|
+
- **Document Engineering Suite**: Generate professional, branded PDF, DOCX documents on the fly. Features native HTML-to-Office translation for selectable text, high-performance rendering, and automatic watermarking.
|
|
38
|
+
- **Codebase Time Travel (Git-less Reversion)**: Refactor and build with absolute fearlessness. Flux Flow maintains transaction-based secure snapshots of files before they are generated or edited:
|
|
39
|
+
- **Instant Rollback**: Revert your workspace files (source code, generated documents, images) to their exact state prior to any selected prompt in the history.
|
|
40
|
+
- **Double-ESC Shortcut**: Press `ESC` twice while idle to pop open a sleek selection modal.
|
|
41
|
+
- **`/revert` Command**: Run the `/revert` command directly in the chat to open the checkpoint viewer.
|
|
42
|
+
- **External Data Sanctuary**: Redirect your logs, history, and memories to any external path for maximum portability and privacy.
|
|
43
|
+
- **Responsive Terminal UI**: A gorgeous, reactive interface built with React and Ink, featuring multi-line input, status bars, modals, and diff views.
|
|
44
|
+
- **Dual-Model Architecture**: A primary agent interacts with you and executes tasks, while a silent background "Janitor" model handles chat summarization and long-term memory extraction without blocking the main UI.
|
|
45
|
+
- **Two Operating Modes**:
|
|
46
|
+
- **Flux (Dev Mode)**: Full system access. The agent can read/write files, execute shell commands, and run autonomous agentic loops (up to 45 iterations) to solve complex coding tasks.
|
|
47
|
+
- **Flow (Chat Mode)**: Focused on conversation and web research, with limited agentic loops for faster response times.
|
|
48
|
+
- **Advanced Memory System**: Features both temporary session context and persistent, cross-session user memories encrypted locally on your machine.
|
|
49
|
+
- **Agentic Tooling**: Built-in tools for smart file patching, web scraping, web searching, terminal execution and high-fidelity Office document generation (PDF/DOCX).
|
|
50
|
+
- **Autonomous Project Alignment**: Automatically detects and adheres to project-specific instructions in `Agent.md`, `Skills.md`, and `Fluxflow.md` for high-fidelity coding standards and complex workflows.
|
|
51
|
+
- **Customizable "Thinking" Levels**: Adjust the depth of the model's reasoning process (from Fast to xHigh).
|
|
52
|
+
- **Autonomous Subagent System**: Spawns subagents in either blocking mode (`invokeSync`) or asynchronous mode (`invoke`) to offload tasks. Runs with a permanent suite of 10 system tools (e.g. ReadFile, PatchFile, WebSearch, WritePDF), excluding shell commands (`Run` is disabled). Telemetry is quietly tracked in the CLI's active subagents UI block and backed up in transaction-safe restoration records.
|
|
53
|
+
- **High-Reliability Fallback**: Automatic failover to a lighter, high-concurrency model (Gemini 3.1 Flash Lite) during peak traffic to ensure 100% session persistence.
|
|
54
|
+
|
|
55
|
+
## π Quick Start
|
|
56
|
+
|
|
57
|
+
### Prerequisites
|
|
58
|
+
- [Node.js](https://nodejs.org/) (v18 or higher recommended)
|
|
59
|
+
- `npm`, `yarn`, or `pnpm`
|
|
60
|
+
|
|
61
|
+
### Via NPM (Global & Instant)
|
|
62
|
+
You can run the agent instantly or install it globally for high-speed access:
|
|
60
63
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
- **Double-ESC Shortcut**: Press `ESC` twice while idle to pop open a sleek selection modal.
|
|
65
|
-
- **`/revert` Command**: Run the `/revert` command directly in the chat to open the checkpoint viewer.
|
|
64
|
+
```bash
|
|
65
|
+
# Run instantly (Zero Setup)
|
|
66
|
+
npx fluxflow-cli
|
|
66
67
|
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
# OR Install Globally
|
|
69
|
+
npm install -g fluxflow-cli
|
|
70
|
+
fluxflow
|
|
71
|
+
```
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
### From Source (Local Development)
|
|
74
|
+
1. Clone the repository and install dependencies:
|
|
75
|
+
```bash
|
|
76
|
+
git clone https://github.com/KushalRoyChowdhury/fluxflow-cli
|
|
77
|
+
cd fluxflow-cli
|
|
78
|
+
npm install
|
|
79
|
+
```
|
|
72
80
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
2. Start the agent:
|
|
82
|
+
```bash
|
|
83
|
+
npm start
|
|
84
|
+
```
|
|
76
85
|
|
|
77
|
-
|
|
78
|
-
Security isn't an afterthought; it's a boundary.
|
|
79
|
-
- **Sandbox Presets**: Choose from **Strict**, **Balanced**, **Autonomous**, or **Custom** security profiles to control agent autonomy.
|
|
80
|
-
- **Granular Command Policies**: Configure Auto-Approve (`Auto` / `Read-Only` / `None`), Auto-Disallow (`Auto` / `Destructive` / `None`), Network Access toggle, and Auto-Approve Git Commits independently.
|
|
81
|
-
- **External Path Hardlock**: Restricts the agent to your Current Working Directory (CWD) unless you explicitly unlock it.
|
|
82
|
-
- **Human-in-the-Loop (HITL)**: Every file write and terminal command requires your high-fidelity approval.
|
|
83
|
-
- **XOR Vaulting**: All local session histories, memories, and API keys are obfuscated and encrypted at rest.
|
|
84
|
-
- **Adaptive Failover**: Automatic multi-stage retry logic with high-concurrency fallback model switching (Gemini 3.1 Flash Lite) during peak API congestion.
|
|
86
|
+
## π Documentation
|
|
85
87
|
|
|
86
|
-
|
|
87
|
-
While you move at high speed, the Janitor follows behindβrefining session titles, compressing data, and ensuring your context window remains at absolute peak performance.
|
|
88
|
+
π **Official Documentation**: [HERE](https://fluxflow-cli.onrender.com/)
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
Delegate complex tasks to subagents. Spawns blocking subagents (`invokeSync`) or asynchronous background subagents (`invoke`) with distinct telemetry and silent background logging. Built-in transaction-safe reversion logs all subagent changes under the active turn, preserving rollback security.
|
|
90
|
+
To keep this README concise, detailed information about specific components of Flux Flow has been split into separate documents:
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
- **Deep File-System Interaction**: Edit, move, and refactor code across multiple files with atomic precision.
|
|
96
|
-
- **Real-Time Web Intelligence**: Autonomous web-searching via DuckDuckGo for live news and technical research.
|
|
97
|
-
- **Autonomous Project Alignment**: Automatically detects and adheres to project-specific instructions in `Agent.md`, `Skills.md`, and `Fluxflow.md` for high-fidelity alignment with your coding standards and custom workflows.
|
|
98
|
-
- **High-Reliability Fallback**: Automatic failover to a lighter, high-concurrency model during peak traffic to ensure zero session loss.
|
|
99
|
-
- **Persistent Memory**: The agent learns from your preferences and project requirements across sessions.
|
|
100
|
-
|
|
101
|
-
---
|
|
92
|
+
- **[Architecture & Design](./ARCHITECTURE.md)**: Deep dive into the React/Ink rendering, the Agentic Loop, and the Janitor background process.
|
|
93
|
+
- **[Agent Tools & Capabilities](./TOOLS.md)**: A comprehensive list of the tools available to the agent (e.g., File I/O, Execution, Web tools).
|
|
94
|
+
- **[UI & Interaction Features](./UI_FEATURES.md)**: Details on commands, thinking levels, and human-in-the-loop verification.
|
|
102
95
|
|
|
103
96
|
## π» CLI Startup Arguments
|
|
97
|
+
|
|
104
98
|
Customize your session parameters directly from your console launch command:
|
|
105
99
|
|
|
106
100
|
```bash
|
|
@@ -108,30 +102,36 @@ fluxflow [options]
|
|
|
108
102
|
```
|
|
109
103
|
|
|
110
104
|
### Supported Flags:
|
|
111
|
-
- `--model <model-name>`: Temporary override for the active AI model (e.g., `gemini-
|
|
105
|
+
- `--model <model-name>`: Temporary override for the active AI model (e.g., `gemini-3.1-pro-preview`). Keps settings file untouched.
|
|
112
106
|
- `--memory <on | off>`: Toggle persistent long-term agent memory for the session.
|
|
113
107
|
- `--resume <session-id>`: Resume a previous chat session programmatically.
|
|
114
108
|
- `--update <check | latest>`: Manually run an update check (`check`) or execute latest update setup (`latest`).
|
|
115
109
|
- `--package <npm | pnpm | yarn | bun>`: Override default package manager to run core application updates.
|
|
116
110
|
- `--auto-del <1d | 7d | 30d>`: Set automated chat log deletion schedule.
|
|
117
|
-
- `--yolo <on | off>`: Toggle autonomous execution permission.
|
|
111
|
+
- `--yolo <on | off>`: Toggle autonomous command execution permission.
|
|
118
112
|
- `--external-access <on | off>`: Toggle permission to let agent read files outside CWD.
|
|
119
|
-
- `--thinking <Fast |
|
|
113
|
+
- `--thinking <Fast | Medium | High | xHigh>`: Override default thinking level.
|
|
120
114
|
- `--key <key@google | key@deepseek | key@openrouter>`: Set API key and provider.
|
|
121
115
|
- `--provider <google | deepseek | openrouter>`: Override default provider.
|
|
122
116
|
|
|
123
117
|
---
|
|
124
118
|
|
|
125
|
-
##
|
|
126
|
-
Type `/settings` in-app to live-configure:
|
|
127
|
-
- **Thinking Level**: Fast (No Reasoning), Low, Medium, High, xHigh (Extended Reasoning).
|
|
128
|
-
- **Sandbox Preset**: Strict, Balanced, Autonomous, or Custom security profiles.
|
|
129
|
-
- **Security Perimeter**: Toggle External Workspace access, Network Access, and Git Commit auto-approval.
|
|
119
|
+
## π Security & Privacy
|
|
130
120
|
|
|
131
|
-
|
|
121
|
+
Flux Flow runs entirely locally on your machine.
|
|
122
|
+
- **Sandbox Presets**: Choose from **Strict**, **Balanced**, **Autonomous**, or **Custom** profiles to fine-tune agent autonomy out of the box.
|
|
123
|
+
- **Granular Command Policies**: Configure Auto-Approve (`Auto` / `Read-Only` / `None`), Auto-Disallow (`Auto` / `Destructive` / `None`), Network Access toggle, and Auto-Approve Git Commits independently.
|
|
124
|
+
- **Global Storage**: All history, memories, and API keys are stored securely in your home directory at `~/.fluxflow`. Sensitive data is encrypted.
|
|
125
|
+
- **Nuclear Reset**: Use the `/reset` command to instantly purge all logs, secrets, and settings from the global storage directory.
|
|
126
|
+
- **Configurable Boundaries**: In Flux mode, file access can be strictly confined to the Current Working Directory, or expanded globally via settings.
|
|
127
|
+
- **API Keys**: You supply your own API keys for your preferred provider: Google GenAI, DeepSeek, or OpenRouter (Experimental).
|
|
128
|
+
|
|
129
|
+
## π οΈ Built With
|
|
132
130
|
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
- **[React](https://react.dev/) & [Ink](https://github.com/vadimdemedes/ink)**: For the interactive CLI rendering.
|
|
132
|
+
- **[@google/genai](https://www.npmjs.com/package/@google/genai)**: The core AI SDK powering the agent's intelligence.
|
|
133
|
+
- **[chalk](https://www.npmjs.com/package/chalk) & [gradient-string](https://www.npmjs.com/package/gradient-string)**: For terminal styling and aesthetics.
|
|
134
|
+
- **[fs-extra](https://www.npmjs.com/package/fs-extra)**: For robust file system operations.
|
|
135
135
|
|
|
136
136
|
---
|
|
137
|
-
*
|
|
137
|
+
*Created as a demonstration of highly capable AI tooling.*
|
package/dist/fluxflow.js
CHANGED
|
@@ -3702,7 +3702,7 @@ var init_TerminalBox = __esm({
|
|
|
3702
3702
|
return resultLines.join("\n");
|
|
3703
3703
|
};
|
|
3704
3704
|
const cleanOutput = processPTY(output).replace(/\n{3,}/g, "\n\n");
|
|
3705
|
-
const rawLines = isPty ? cleanOutput ? cleanOutput.split("\n") : [] : cleanOutput ? wrapText(cleanOutput, columns - 6) : [];
|
|
3705
|
+
const rawLines = isPty ? cleanOutput ? cleanOutput.split("\n") : [] : cleanOutput ? wrapText(cleanOutput, columns - 6).split("\n") : [];
|
|
3706
3706
|
const [isExpanded, setIsExpanded] = useState3(false);
|
|
3707
3707
|
useInput2((input, key) => {
|
|
3708
3708
|
if (isFocused && key.ctrl && (input === "o" || input === "")) {
|
package/flux-flow.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require('child_process');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
// Resolve paths relative to this absolute CJS root
|
|
6
|
+
const CLI_PATH = path.join(__dirname, 'src', 'cli.jsx');
|
|
7
|
+
const TSX_PATH = path.join(__dirname, 'node_modules', '.bin', 'tsx' + (process.platform === 'win32' ? '.cmd' : ''));
|
|
8
|
+
|
|
9
|
+
const flux = spawn(TSX_PATH, [CLI_PATH], {
|
|
10
|
+
stdio: 'inherit',
|
|
11
|
+
shell: true
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
flux.on('exit', (code) => {
|
|
15
|
+
process.exit(code || 0);
|
|
16
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fluxflow-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17",
|
|
4
4
|
"date": "2026-07-04",
|
|
5
5
|
"description": "A High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,9 @@
|
|
|
29
29
|
"ARCHITECTURE.md",
|
|
30
30
|
"TOOLS.md",
|
|
31
31
|
"UI_FEATURES.md",
|
|
32
|
-
"cat.txt"
|
|
32
|
+
"cat.txt",
|
|
33
|
+
".puppeteerrc.cjs",
|
|
34
|
+
"flux-flow.cjs"
|
|
33
35
|
],
|
|
34
36
|
"type": "module",
|
|
35
37
|
"bin": {
|