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.
@@ -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
- # 🌌 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
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
- ### *The High-Fidelity Agentic CLI with Sub-Agents for the Flux Era.*
10
+ **A Beautiful, Autonomous Terminal AI Agent**
11
11
 
12
- πŸ“– **[Official Documentation](https://fluxflow-cli.onrender.com/)**
12
+ πŸ“– **[Official Documentatio]n(https://fluxflow-cli.onrender.com/)**
13
13
 
14
- **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.
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
- ## πŸš€ Instant Ignition (No Setup Required)
19
- You don't even need to install it. Just fire up your terminal and run:
18
+ ---
20
19
 
21
- ```bash
22
- # Run instantly (Zero Setup)
23
- npx fluxflow-cli
20
+ ## ✨ Features
24
21
 
25
- # OR Install Globally
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
- ## ✨ Why Flux Flow?
39
-
40
- ### 🎨 **Premium Visual Sovereignty**
41
- Experience a terminal UI that feels alive. Built with **Ink** and **React**, Flux Flow features:
42
- - **Dynamic Status Bar**: Real-time telemetry showing your "Neural Headroom" (token usage), Thinking Level, and Session ID.
43
-
44
- ### πŸ”Œ **High-Fidelity IDE Companion**
45
- Flux Flow now pairs with a dedicated VS Code extension to bridge the gap between terminal and editor:
46
- - **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.
47
- - **Live Status Heartbeat**: The VS Code Status Bar acts as a live feed, showing the agent's current task (*Thinking*, *Web Searching*, *Patching*, etc.).
48
- - **Clickable Terminal Links**: Jump from the terminal output straight to your code with clickable file:line links.
49
- - **Right-Click Integration**: "FluxFlow > Chat" is available in the editor, explorer, and tab bars, even when no files are open.
50
- - **Selection-Driven Reasoning**: Select a block of code and ask "What does this do?"β€”the agent receives your selection instantly.
51
- - **Universal Compatibility**: Works flawlessly with VS Code, Cursor, VSCodium, Trae, and Antigravity.
52
-
53
- ### πŸ‘οΈ **Native Multimodality**
54
- 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.
55
-
56
- ### πŸ“‘ **Document Engineering Suite**
57
- Need a report or a presentation? Just ask. Flux Flow features a high-fidelity "Printing Press" that generates professional, branded documents natively:
58
- - **PDF**: Branded documents from HTML/CSS with automatic watermarking.
59
- - **DOCX**: Native Word documents with multi-page support and automatic numbering.
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
- ### ⏱️ **Codebase Time Travel (Git-less Reversion)**
62
- Refactor and build with absolute fearlessness. Flux Flow maintains transaction-based secure snapshots of files before they are generated or edited:
63
- - **Instant Rollback**: Revert your workspace files (source code, generated documents, images) to their exact state prior to any selected prompt in the history.
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
- ### πŸš‘ **Self-Healing Infrastructure**
68
- 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.
68
+ # OR Install Globally
69
+ npm install -g fluxflow-cli
70
+ fluxflow
71
+ ```
69
72
 
70
- - **Archived Terminal Flow**: See execution outputs transform from live elements into permanent conversation records.
71
- - **Rich Aesthetics**: High-contrast, sleek design with smooth transitions and micro-animations.
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
- ### 🧠 **The Dual-Intelligence System**
74
- - **Flux Mode (Dev)**: High-speed, agentic problem solving with a 70-turn persistent loop for massive coding tasks.
75
- - **Flow Mode (Chat)**: Optimized for high-quality conversation and web-assisted reasoning.
81
+ 2. Start the agent:
82
+ ```bash
83
+ npm start
84
+ ```
76
85
 
77
- ### πŸ›‘οΈ **Digital Fortress Governance**
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
- ### 🧹 **The Background Janitor**
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
- ### πŸ€– **Autonomous Subagent System**
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
- ## πŸ› οΈ Key Capabilities
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-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.
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 | 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.
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
- ## βš™οΈ Configuration
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
- ## 🏁 License
134
- 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.
135
135
 
136
136
  ---
137
- *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 === "")) {
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.16",
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": {