fluxflow-cli 1.17.0 → 1.17.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/dist/fluxflow.js +5 -5
- package/package.json +2 -2
package/dist/fluxflow.js
CHANGED
|
@@ -1280,7 +1280,7 @@ var init_main_tools = __esm({
|
|
|
1280
1280
|
TOOL_PROTOCOL = (mode, osDetected) => `
|
|
1281
1281
|
-- TOOL DEFINITIONS --
|
|
1282
1282
|
Access to internal tools. To call a tool, MUST use the exact syntax on a new line: [tool:functions.ToolName(args)]
|
|
1283
|
-
- **STRICT POLICY: MAX
|
|
1283
|
+
- **STRICT POLICY: MAX 4 TOOL CALLS PER TURN. Next Turn, verify results, plan next**
|
|
1284
1284
|
|
|
1285
1285
|
- COMMUNICATION TOOLS -
|
|
1286
1286
|
1. [tool:functions.Ask(question="...", optionA="option::description", ...MAX 4)]. Ambiguity Resolution. Mandatory Triggers: Path Divergence, Security, Risk Mitigation. ask >> finish
|
|
@@ -1293,8 +1293,8 @@ Suggest best options; don't ask for preferences
|
|
|
1293
1293
|
${mode === "Flux" ? `- PROJECT TOOLS (path = relative to CWD) -
|
|
1294
1294
|
1. [tool:functions.ReadFile(path="...", startLine=number, endLine=number)]. Supports images/docs. User gives image/doc: VIEW FIRST
|
|
1295
1295
|
2. [tool:functions.ReadFolder(path="...")]. Detailed DIR stats
|
|
1296
|
-
3. [tool:functions.
|
|
1297
|
-
4. [tool:functions.
|
|
1296
|
+
3. [tool:functions.PatchFile(path="...", replaceContent="exact old content", newContent="new content")]. Surgical patching. Unsure replaceContent? ReadFile > guessing
|
|
1297
|
+
4. [tool:functions.WriteFile(path="...", content="...")]. Creates/Overwrites. File Exist? PatchFile >> WriteFile. Verify Imports
|
|
1298
1298
|
5. [tool:functions.SearchKeyword(keyword="...")]. Global project search. Finds definitions/logic without reading every file
|
|
1299
1299
|
6. [tool:functions.Run(command="...")]. Runs a ${osDetected === "Windows" ? "Windows CMD" : "Bash"} command. Destructive/Irreversible ops -> Ask user
|
|
1300
1300
|
7. [tool:functions.GenerateImage(path="... png", prompt="detailed", ratio="16:9, 9:16, 1:1")]. Usage: Mockups, PDF thumbnails, any visual content
|
|
@@ -1302,12 +1302,12 @@ ${mode === "Flux" ? `- PROJECT TOOLS (path = relative to CWD) -
|
|
|
1302
1302
|
9. [tool:functions.WriteDoc(path="...", content="...")]. A4 Word document
|
|
1303
1303
|
|
|
1304
1304
|
- VERIFY TOOL RESULT CONTENTS. Fix errors. No hallucinations
|
|
1305
|
-
- File tools
|
|
1305
|
+
- File tools >>> Long chat
|
|
1306
1306
|
|
|
1307
1307
|
- Escape quotes: \\" for code strings
|
|
1308
1308
|
- Literal escapes: Double-escape sequences (e.g., \\\\n, \\\\t)
|
|
1309
1309
|
- File structure: Real newlines for code formatting`.trim() : `
|
|
1310
|
-
- FILE TOOLS ARE NOT AVAILABLE IN FLOW`.trim()}
|
|
1310
|
+
- FILE TOOLS ARE NOT AVAILABLE IN FLOW (Tell user,\` /mode flux\` if needed)`.trim()}
|
|
1311
1311
|
|
|
1312
1312
|
- Results: Passed as [TOOL RESULT] (system priority)
|
|
1313
1313
|
- MAX Tool call stack: STRICTLY 3 per turn`.trim();
|