fluxflow-cli 2.2.8 → 2.2.10
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/ARCHITECTURE.md +2 -2
- package/dist/fluxflow.js +243 -252
- package/package.json +2 -2
package/ARCHITECTURE.md
CHANGED
|
@@ -22,9 +22,9 @@ The execution flow of a single user prompt follows this loop:
|
|
|
22
22
|
- Each tool is dispatched to its respective handler in `src/tools/`.
|
|
23
23
|
- Tool outputs are collected and appended to the context as `[TOOL RESULT]: ...`.
|
|
24
24
|
4. **Security Governance**: During tool execution, the loop enforces security checks (e.g., blocking `exec_command` from accessing system root drives if "External Workspace Access" is off) and pauses for Human-in-the-Loop (HITL) approval if necessary.
|
|
25
|
-
5. **Turn Management & Continuation**: The model is instructed to append `[turn: finish]` if its goal is complete, or `[turn: continue]` if it expects tool results.
|
|
25
|
+
5. **Turn Management & Continuation**: The model is instructed to append `[[END]]` or `[turn: finish]` if its goal is complete, or `[turn: continue]` if it expects tool results.
|
|
26
26
|
- If tools were called or `[turn: continue]` is present, the loop increments and re-prompts the model with the newly gathered `[TOOL RESULT]` data.
|
|
27
|
-
- If `[turn: finish]` is detected and no further tools were called, the main loop terminates, passing the final synthesized context to the background Janitor process.
|
|
27
|
+
- If `[[END]]` or `[turn: finish]` is detected and no further tools were called, the main loop terminates, passing the final synthesized context to the background Janitor process.
|
|
28
28
|
6. **Loop Limits & Resilience**: To prevent infinite loops or excessive API usage, **Flux mode** is capped at 70 iterations per user prompt, while **Flow mode** is capped at 7.
|
|
29
29
|
- **Multi-Stage Failover**: The loop features a sophisticated 16-attempt retry engine with exponential backoff (1s - 32s).
|
|
30
30
|
- **Critical Fallback Pivot**: If the primary model fails 14 consecutive times, the agent surgically pivots to a lighter, high-concurrency fallback model (`gemini-3.1-flash-lite`) for the final 3 attempts to ensure session navigation through API congestion.
|