fluxflow-cli 2.7.0 → 2.7.2
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/TOOLS.md +78 -50
- package/dist/fluxflow.js +490 -269
- package/package.json +2 -2
package/TOOLS.md
CHANGED
|
@@ -4,64 +4,92 @@ Flux Flow provides a robust set of tools that allow the AI to interact with the
|
|
|
4
4
|
|
|
5
5
|
## Tool Availability by Mode
|
|
6
6
|
|
|
7
|
-
| Tool | Flux Mode (Dev) | Flow Mode (Chat) |
|
|
7
|
+
| Tool Category | Flux Mode (Dev) | Flow Mode (Chat) |
|
|
8
8
|
| :--- | :---: | :---: |
|
|
9
|
-
| **
|
|
10
|
-
| **Web Scrape** | ✅ | ✅ |
|
|
11
|
-
| **Write
|
|
12
|
-
| **
|
|
13
|
-
| **View/Read Files** | ✅ | ❌ |
|
|
14
|
-
| **Write/Update Files** | ✅ | ❌ |
|
|
15
|
-
| **Execute Commands** | ✅ | ❌ |
|
|
9
|
+
| **Communication (Ask)** | ✅ | ✅ |
|
|
10
|
+
| **Web Search & Scrape** | ✅ | ✅ |
|
|
11
|
+
| **File System (Read/Write)** | ✅ | ❌ |
|
|
12
|
+
| **Terminal Execution** | ✅ | ❌ |
|
|
16
13
|
| **Search Keyword** | ✅ | ❌ |
|
|
17
14
|
| **File Map** | ✅ | ❌ |
|
|
15
|
+
| **Todo (Planning)** | ✅ | ❌ |
|
|
16
|
+
| **Creative (PDF/DOCX/Image)** | ❌ | ✅ |
|
|
18
17
|
|
|
19
18
|
---
|
|
20
19
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **`WebScrape`**: Extracts the detailed text content from a specific URL, allowing the agent to read documentation or articles.
|
|
26
|
-
|
|
27
|
-
### 📄 Document Engineering (The Office Suite)
|
|
28
|
-
- **`WritePDF`**: Generates high-fidelity, branded PDF documents from HTML/CSS. Features automatic watermarking and page-aware layout management.
|
|
29
|
-
- **`WriteDOCX`**: Generates professional Word documents (.docx) from HTML. Supports multi-page layouts, automatic page numbering, and native styling.
|
|
30
|
-
|
|
31
|
-
### 🎨 Creative & Visual
|
|
32
|
-
- **`GenerateImage`**: Generates high-fidelity images using Pollinations AI.
|
|
33
|
-
- **Customization**: Supports customizable models (Flux, ZImage, Qwen, Nanobanana-Pro, etc.), aspect ratios, custom prompt generation, and random seeds.
|
|
34
|
-
- **Telemetry**: Tracks hourly credit usage (Low, Medium, Ultra, Premium tiers) with built-in daily limit checks and interactive dashboard displays.
|
|
35
|
-
|
|
36
|
-
### 📁 File System Operations
|
|
37
|
-
- **`ListFiles`**: Lists the contents of a directory to help the agent understand the project structure.
|
|
38
|
-
- **`ReadFolder`**: Provides detailed statistics and metadata about a directory's contents.
|
|
39
|
-
- **`ViewFile`**: Reads the content of a file.
|
|
40
|
-
- **Native Multimodality**: Supports analyzing images (JPG, PNG, WEBP) and PDF documents. The tool automatically detects binary formats and encodes them for AI analysis.
|
|
41
|
-
- **Text Reading**: Supports specific line ranges (`start_line`, `end_line`) to manage context size efficiently.
|
|
42
|
-
- **`FileMap`**: Generates a high-level structural map of a code file using Tree-Sitter.
|
|
43
|
-
- **Structural Insight**: Identifies classes, functions, methods, and control flow blocks without reading the entire file content.
|
|
44
|
-
- **Multi-Language**: Supports JS, TS, TSX, Python, C, C++, Java, and HTML.
|
|
45
|
-
- **`SearchKeyword`**: Performs a global project search for a specific string or keyword. Returns file paths and line numbers where matches are found, making it essential for navigation and impact analysis.
|
|
46
|
-
|
|
47
|
-
### ✍️ Code Editing
|
|
48
|
-
- **`WriteFile`**: Creates a new file or completely overwrites an existing one with new content.
|
|
49
|
-
- **`UpdateFile` (Smart Patching)**: Surgically replaces a specific block of text within a file.
|
|
50
|
-
- *Diff Generation*: It returns a high-fidelity visual diff (Red/Green changes with context lines) to the UI, allowing the user to see exactly what the agent modified.
|
|
51
|
-
|
|
52
|
-
### 💻 Terminal Execution
|
|
53
|
-
- **`Run`**: Runs a shell command directly in the terminal using Node's `child_process.spawn` or `node-pty` when available.
|
|
54
|
-
- *Context Aware*: Runs in the current working directory.
|
|
55
|
-
- *Cross-Platform*: Uses `shell: true` to handle Windows `.cmd`/`.bat` files natively.
|
|
20
|
+
## Tool Protocol
|
|
21
|
+
|
|
22
|
+
FluxFlow uses a transparent, string-based protocol for tool dispatching:
|
|
23
|
+
`[tool:functions.ToolName(arg1="value", arg2=123)]`
|
|
56
24
|
|
|
57
25
|
---
|
|
58
26
|
|
|
59
|
-
##
|
|
27
|
+
## Communication Tools
|
|
28
|
+
|
|
29
|
+
### `Ask`
|
|
30
|
+
- **Purpose**: Ambiguity Resolution.
|
|
31
|
+
- **Triggers**: Mandatory for Path Divergence, Security concerns, or Risk Mitigation.
|
|
32
|
+
- **Usage**: Suggests up to 4 best options; does not ask for open-ended preferences.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Web Tools
|
|
37
|
+
|
|
38
|
+
### `WebSearch`
|
|
39
|
+
- **Purpose**: Proactive search for unknown topics.
|
|
40
|
+
- **Limit**: 3-10 results.
|
|
41
|
+
|
|
42
|
+
### `WebScrape`
|
|
43
|
+
- **Purpose**: Deep-dive research into specific webpages, documentation, or APIs.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Workspace Tools (Flux Mode Only)
|
|
48
|
+
|
|
49
|
+
### `ReadFile`
|
|
50
|
+
- **Purpose**: Reads file content with support for line ranges.
|
|
51
|
+
- **Multimodal**: Supports images and documents.
|
|
52
|
+
|
|
53
|
+
### `FileMap`
|
|
54
|
+
- **Purpose**: Shows file structure, dependencies, functions, and variable maps. More token-efficient than ReadFile.
|
|
55
|
+
|
|
56
|
+
### `ReadFolder`
|
|
57
|
+
- **Purpose**: Provides detailed directory statistics.
|
|
60
58
|
|
|
61
|
-
|
|
59
|
+
### `PatchFile` (UpdateFile)
|
|
60
|
+
- **Purpose**: Surgical patching of code.
|
|
61
|
+
- **Usage**: Supports multiple patches in a single call to prevent spam. MUST VERIFY DIFF.
|
|
62
|
+
|
|
63
|
+
### `WriteFile`
|
|
64
|
+
- **Purpose**: Creates or overwrites files.
|
|
65
|
+
- **Safety**: Prefers PatchFile if the file already exists.
|
|
66
|
+
|
|
67
|
+
### `SearchKeyword`
|
|
68
|
+
- **Purpose**: Global project search for definitions or logic.
|
|
69
|
+
|
|
70
|
+
### `Run` (exec_command)
|
|
71
|
+
- **Purpose**: Runs shell commands (PowerShell/CMD on Windows, Bash on Unix).
|
|
72
|
+
- **Safety**: Restricted to workspace directory unless explicitly allowed. Irreversible operations require user approval.
|
|
73
|
+
|
|
74
|
+
### `Todo`
|
|
75
|
+
- **Purpose**: Manages an internal task list (`todo.md`) to keep goals consistent during long tasks.
|
|
76
|
+
- **Methods**: `create`, `append`, `check`.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Creative Tools (Flow Mode Only)
|
|
81
|
+
|
|
82
|
+
### `WritePDF`
|
|
83
|
+
- **Purpose**: Generates high-fidelity, branded PDF documents from HTML/CSS.
|
|
84
|
+
|
|
85
|
+
### `WriteDoc`
|
|
86
|
+
- **Purpose**: Creates professional Word documents (.docx).
|
|
87
|
+
|
|
88
|
+
### `GenerateImage`
|
|
89
|
+
- **Purpose**: Creates high-fidelity images via AI.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Memory Management
|
|
62
94
|
|
|
63
|
-
|
|
64
|
-
- **Persistent User Memory (`action='user'`)**:
|
|
65
|
-
- The Janitor analyzes conversations to detect user preferences, hobbies, or instructions.
|
|
66
|
-
- It uses `add`, `update`, or `delete` methods to manage facts in the encrypted `memories.json` vault.
|
|
67
|
-
- These memories are injected into the system prompt of *future* sessions, allowing Flux Flow to learn and adapt to the user over time.
|
|
95
|
+
Managed primarily by the background **Janitor** model to maintain persistent user context and session summaries without bloating the reasoning loop.
|