fluxflow-cli 3.0.15 โ†’ 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.
@@ -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,21 +1,65 @@
1
- # ๐ŸŒŒ Flux Flow (`fluxflow-cli`)
2
- ![Flux Flow Logo](https://github.com/KushalRoyChowdhury/fluxflow-cli/blob/main/fluxflow.png)
1
+ # ๐ŸŒŠ Flux Flow
2
+ ![Flux Flow Hero](./fluxflow.png)
3
3
 
4
4
  <p align="left">
5
- <a href="https://github.com/KushalRoyChowdhury/fluxflow-cli"><img src="https://img.shields.io/badge/FluxFlow-v2-blue?style=plastic" alt="FluxFlow Version"></a>
6
- <a href="https://deepmind.google"><img src="https://img.shields.io/badge/Engine-Gemma%204-red?style=plastic" alt="Engine Gemma 4"></a>
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
6
  <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=plastic" alt="License MIT"></a>
8
7
  <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node-%3E%3D20-green?style=plastic" alt="Node Compatibility"></a>
9
8
  </p>
10
9
 
11
- ### *The High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.*
10
+ **A Beautiful, Autonomous Terminal AI Agent**
12
11
 
13
- **Flux Flow** is not just another CLIโ€”it's a high-speed, sassy, and goal-oriented CLI AI Agent powered by the latest Gemini/Gemma frontier models. Designed for developers who demand a premium UI/UX while managing complex file-system tasks, web research, and autonomous workflows.
12
+ ๐Ÿ“– **[Official Documentatio]n(https://fluxflow-cli.onrender.com/)**
13
+
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
+
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.
14
17
 
15
18
  ---
16
19
 
17
- ## ๐Ÿš€ Instant Ignition (No Setup Required)
18
- You don't even need to install it. Just fire up your terminal and run:
20
+ ## โœจ Features
21
+
22
+ - **Multi-Provider Support**: Choose your preferred engine!
23
+ - **Google GenAI** (Gemini & Gemma models)
24
+ - **DeepSeek** (Native DeepSeek API)
25
+ - **OpenRouter** (Access to hundreds of models; *Experimental*)
26
+ - **NVIDIA** (Access to selected models)
27
+
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:
19
63
 
20
64
  ```bash
21
65
  # Run instantly (Zero Setup)
@@ -23,83 +67,34 @@ npx fluxflow-cli
23
67
 
24
68
  # OR Install Globally
25
69
  npm install -g fluxflow-cli
26
- fluxflow-cli
70
+ fluxflow
27
71
  ```
28
72
 
29
- *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:
30
- - **Google GenAI** (Gemini & Gemma models)
31
- - **DeepSeek** (Native DeepSeek API)
32
- - **OpenRouter** (Access to hundreds of models; *Experimental*)
33
- - **NVIDIA** (Access to selected models; *Experimental*)
34
-
35
- ---
36
-
37
- ## โœจ Why Flux Flow?
38
-
39
- ### ๐ŸŽจ **Premium Visual Sovereignty**
40
- Experience a terminal UI that feels alive. Built with **Ink** and **React**, Flux Flow features:
41
- - **Dynamic Status Bar**: Real-time telemetry showing your "Neural Headroom" (token usage), Thinking Level, and Session ID.
42
-
43
- ### ๐Ÿ”Œ **High-Fidelity IDE Companion**
44
- Flux Flow now pairs with a dedicated VS Code extension to bridge the gap between terminal and editor:
45
- - **Surgical Diagnostic Sync**: Proactive background scanning for errors. If your project breaks, a "Magic Wand" icon $(\text{sparkle})$ appears in your editor title bar for an instant AI fix.
46
- - **Live Status Heartbeat**: The VS Code Status Bar acts as a live feed, showing the agent's current task (*Thinking*, *Web Searching*, *Patching*, etc.).
47
- - **Clickable Terminal Links**: Jump from the terminal output straight to your code with clickable file:line links.
48
- - **Right-Click Integration**: "FluxFlow > Chat" is available in the editor, explorer, and tab bars, even when no files are open.
49
- - **Selection-Driven Reasoning**: Select a block of code and ask "What does this do?"โ€”the agent receives your selection instantly.
50
- - **Universal Compatibility**: Works flawlessly with VS Code, Cursor, VSCodium, Trae, and Antigravity.
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
+ ```
51
80
 
52
- ### ๐Ÿ‘๏ธ **Native Multimodality**
53
- Flux Flow can now see! Use the `view_file` tool to analyze images (JPG, PNG) or deep-dive into PDF technical papers. The agent extracts high-fidelity visual context natively, making it a true multimodal companion.
81
+ 2. Start the agent:
82
+ ```bash
83
+ npm start
84
+ ```
54
85
 
55
- ### ๐Ÿ“‘ **Document Engineering Suite**
56
- Need a report or a presentation? Just ask. Flux Flow features a high-fidelity "Printing Press" that generates professional, branded documents natively:
57
- - **PDF**: Branded documents from HTML/CSS with automatic watermarking.
58
- - **DOCX**: Native Word documents with multi-page support and automatic numbering.
86
+ ## ๐Ÿ“– Documentation
59
87
 
60
- ### โฑ๏ธ **Codebase Time Travel (Git-less Reversion)**
61
- Refactor and build with absolute fearlessness. Flux Flow maintains transaction-based secure snapshots of files before they are generated or edited:
62
- - **Instant Rollback**: Revert your workspace files (source code, generated documents, images) to their exact state prior to any selected prompt in the history.
63
- - **Double-ESC Shortcut**: Press `ESC` twice while idle to pop open a sleek selection modal.
64
- - **`/revert` Command**: Run the `/revert` command directly in the chat to open the checkpoint viewer.
88
+ ๐ŸŒ **Official Documentation**: [HERE](https://fluxflow-cli.onrender.com/)
65
89
 
66
- ### ๐Ÿš‘ **Self-Healing Infrastructure**
67
- Zero setup means zero setup. On first run, Flux Flow performs an integrity check and autonomously installs its own Chromium engine if needed, ensuring features like PDF generation work 100% of the time without manual intervention.
90
+ To keep this README concise, detailed information about specific components of Flux Flow has been split into separate documents:
68
91
 
69
- - **Archived Terminal Flow**: See execution outputs transform from live elements into permanent conversation records.
70
- - **Rich Aesthetics**: High-contrast, sleek design with smooth transitions and micro-animations.
71
-
72
- ### ๐Ÿง  **The Dual-Intelligence System**
73
- - **Flux Mode (Dev)**: High-speed, agentic problem solving with a 70-turn persistent loop for massive coding tasks.
74
- - **Flow Mode (Chat)**: Optimized for high-quality conversation and web-assisted reasoning.
75
-
76
- ### ๐Ÿ›ก๏ธ **Digital Fortress Governance**
77
- Security isn't an afterthought; it's a boundary.
78
- - **Sandbox Presets**: Choose from **Strict**, **Balanced**, **Autonomous**, or **Custom** security profiles to control agent autonomy.
79
- - **Granular Command Policies**: Configure Auto-Approve (`Auto` / `Read-Only` / `None`), Auto-Disallow (`Auto` / `Destructive` / `None`), Network Access toggle, and Auto-Approve Git Commits independently.
80
- - **External Path Hardlock**: Restricts the agent to your Current Working Directory (CWD) unless you explicitly unlock it.
81
- - **Human-in-the-Loop (HITL)**: Every file write and terminal command requires your high-fidelity approval.
82
- - **XOR Vaulting**: All local session histories, memories, and API keys are obfuscated and encrypted at rest.
83
- - **Adaptive Failover**: Automatic multi-stage retry logic with high-concurrency fallback model switching (Gemini 3.1 Flash Lite) during peak API congestion.
84
-
85
- ### ๐Ÿงน **The Background Janitor**
86
- 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.
87
-
88
- ### ๐Ÿค– **Autonomous Subagent System**
89
- 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
-
91
- ---
92
-
93
- ## ๐Ÿ› ๏ธ Key Capabilities
94
- - **Deep File-System Interaction**: Edit, move, and refactor code across multiple files with atomic precision.
95
- - **Real-Time Web Intelligence**: Autonomous web-searching via DuckDuckGo for live news and technical research.
96
- - **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.
97
- - **High-Reliability Fallback**: Automatic failover to a lighter, high-concurrency model during peak traffic to ensure zero session loss.
98
- - **Persistent Memory**: The agent learns from your preferences and project requirements across sessions.
99
-
100
- ---
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.
101
95
 
102
96
  ## ๐Ÿ’ป CLI Startup Arguments
97
+
103
98
  Customize your session parameters directly from your console launch command:
104
99
 
105
100
  ```bash
@@ -107,30 +102,36 @@ fluxflow [options]
107
102
  ```
108
103
 
109
104
  ### Supported Flags:
110
- - `--model <model-name>`: Temporary override for the active AI model (e.g., `gemini-2.5-pro`). Keeps settings file untouched.
105
+ - `--model <model-name>`: Temporary override for the active AI model (e.g., `gemini-3.1-pro-preview`). Keps settings file untouched.
111
106
  - `--memory <on | off>`: Toggle persistent long-term agent memory for the session.
112
107
  - `--resume <session-id>`: Resume a previous chat session programmatically.
113
108
  - `--update <check | latest>`: Manually run an update check (`check`) or execute latest update setup (`latest`).
114
109
  - `--package <npm | pnpm | yarn | bun>`: Override default package manager to run core application updates.
115
110
  - `--auto-del <1d | 7d | 30d>`: Set automated chat log deletion schedule.
116
- - `--yolo <on | off>`: Toggle autonomous execution permission.
111
+ - `--yolo <on | off>`: Toggle autonomous command execution permission.
117
112
  - `--external-access <on | off>`: Toggle permission to let agent read files outside CWD.
118
- - `--thinking <Fast | Low | Medium/Standard | High | xHigh>`: Override thinking level for reasoning depth. `Medium` and `Standard` is the same (Deepseek compatibility).
113
+ - `--thinking <Fast | Medium | High | xHigh>`: Override default thinking level.
119
114
  - `--key <key@google | key@deepseek | key@openrouter>`: Set API key and provider.
120
115
  - `--provider <google | deepseek | openrouter>`: Override default provider.
121
116
 
122
117
  ---
123
118
 
124
- ## โš™๏ธ Configuration
125
- Type `/settings` in-app to live-configure:
126
- - **Thinking Level**: Fast (No Reasoning), Low, Medium, High, xHigh (Extended Reasoning).
127
- - **Sandbox Preset**: Strict, Balanced, Autonomous, or Custom security profiles.
128
- - **Security Perimeter**: Toggle External Workspace access, Network Access, and Git Commit auto-approval.
119
+ ## ๐Ÿ”’ Security & Privacy
129
120
 
130
- ---
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
131
130
 
132
- ## ๐Ÿ License
133
- MIT ยฉ 2026 Flux Flow.
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.
134
135
 
135
136
  ---
136
- *Forged with โšก and ๐Ÿงฌ. Welcome to the FluxFlow.*
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 === "")) {
@@ -7875,7 +7875,7 @@ var init_web_search = __esm({
7875
7875
  ]
7876
7876
  });
7877
7877
  const page = await browser.newPage();
7878
- await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.7778.97 Safari/537.36");
7878
+ await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.7778.178 Safari/537.36");
7879
7879
  await page.setViewport({ width: 1366, height: 768 });
7880
7880
  const jitter = attempt === 1 ? Math.random() * 1e3 + 500 : Math.random() * 2e3 + 1e3;
7881
7881
  await new Promise((r) => setTimeout(r, jitter));
@@ -7947,7 +7947,7 @@ var init_web_scrape = __esm({
7947
7947
  ]
7948
7948
  });
7949
7949
  const page = await browser.newPage();
7950
- await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.7778.97 Safari/537.36");
7950
+ await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.7778.178 Safari/537.36");
7951
7951
  await page.setViewport({ width: 1366, height: 768 });
7952
7952
  const jitter = attempt === 1 ? Math.random() * 1e3 + 500 : Math.random() * 2e3 + 1e3;
7953
7953
  await new Promise((r) => setTimeout(r, jitter));
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.15",
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": {