fluxflow-cli 1.18.18 → 1.18.19
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 +7 -6
- package/package.json +1 -1
package/dist/fluxflow.js
CHANGED
|
@@ -1162,10 +1162,11 @@ var init_main_tools = __esm({
|
|
|
1162
1162
|
};
|
|
1163
1163
|
TOOL_PROTOCOL = (mode, osDetected) => `
|
|
1164
1164
|
-- TOOL DEFINITIONS --
|
|
1165
|
-
Access to internal tools.
|
|
1165
|
+
Access to internal tools. MUST use the exact syntax on a new line: [tool:functions.ToolName(args)]
|
|
1166
1166
|
STRICT POLICY
|
|
1167
1167
|
- **MAX 3 TOOL CALLS PER TURN. Next Turn, verify results, plan next**${mode === "Flux" ? "\n- **File Tools >> Code in chat**" : ""}
|
|
1168
|
-
- Use
|
|
1168
|
+
- Use contextually BEST tool, no brute force, no spamming
|
|
1169
|
+
- Use multiple search & replace on patch tool if same file/path
|
|
1169
1170
|
|
|
1170
1171
|
- COMMUNICATION TOOLS -
|
|
1171
1172
|
1. [tool:functions.Ask(question="...", optionA="option::description", ...MAX 4)]. Ambiguity Resolution. Mandatory Triggers: Path Divergence, Security, Risk Mitigation. ask >> finish
|
|
@@ -1178,8 +1179,8 @@ Suggest best options; don't ask for preferences
|
|
|
1178
1179
|
${mode === "Flux" ? `- PROJECT TOOLS (path = relative to CWD) -
|
|
1179
1180
|
1. [tool:functions.ReadFile(path="...", startLine=number, endLine=number)]. Supports images/docs. User gives image/doc: VIEW FIRST
|
|
1180
1181
|
2. [tool:functions.ReadFolder(path="...")]. Detailed DIR stats
|
|
1181
|
-
3. [tool:functions.PatchFile(path="...", replaceContent1="exact string", newContent1="...", ...MAX 8)]. Surgical Patch.
|
|
1182
|
-
4. [tool:functions.WriteFile(path="...", content="...")]. Creates/Overwrites. File Exist? PatchFile
|
|
1182
|
+
3. [tool:functions.PatchFile(path="...", replaceContent1="exact string", newContent1="...", ...MAX 8)]. Surgical Patch. **Multiple patch on same file/path? Use replaceContent2, newContent2 etc >>> multiple spams**. Unsure? ReadFile > guessing.
|
|
1183
|
+
4. [tool:functions.WriteFile(path="...", content="...")]. Creates/Overwrites. File Exist? PatchFile >>> WriteFile. Verify Imports
|
|
1183
1184
|
5. [tool:functions.SearchKeyword(keyword="...", file="optional")]. Global project search. If 'file' is provided, searches only that file. Finds definitions/logic without reading every file
|
|
1184
1185
|
6. [tool:functions.Run(command="...")]. Runs ${osDetected === "Windows" ? isPsAvailable() ? `${isPtyAvailable ? "Interactive " : ""}WINDOWS POWERSHELL ONLY` : `${isPtyAvailable ? "Interactive " : ""}WINDOWS CMD` : `${isPtyAvailable ? "Interactive " : ""}BASH`} command. Destructive/Irreversible ops -> Ask user
|
|
1185
1186
|
7. [tool:functions.GenerateImage(path="... png", prompt="detailed", ratio="16:9, 9:16, 1:1")]. Usage: Mockups, PDF thumbnails, any visual content
|
|
@@ -5670,7 +5671,7 @@ ${newMemoryListStr}
|
|
|
5670
5671
|
else if (totalFolders > 128) dynamicMaxDepth = 8;
|
|
5671
5672
|
else if (totalFolders > 64) dynamicMaxDepth = 9;
|
|
5672
5673
|
else if (totalFolders > 32) dynamicMaxDepth = 10;
|
|
5673
|
-
let dirStructure =
|
|
5674
|
+
let dirStructure = process.cwd() + "\n" + getDirTree(process.cwd(), dynamicMaxDepth);
|
|
5674
5675
|
const firstUserMsg = `[SYSTEM METADATA (PRIORITY: DYNAMIC)] Time: ${dateTimeStr} | v${versionFluxflow2}
|
|
5675
5676
|
CWD: ${process.cwd()}
|
|
5676
5677
|
**DIRECTORY STRUCTURE**
|
|
@@ -5796,7 +5797,7 @@ ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CRITI
|
|
|
5796
5797
|
systemInstruction: currentSystemInstruction,
|
|
5797
5798
|
temperature: mode === "Flux" ? 1 : 1.4,
|
|
5798
5799
|
maxOutputTokens: 32768,
|
|
5799
|
-
mediaResolution: "
|
|
5800
|
+
mediaResolution: "MEDIA_RESOLUTION_HIGH",
|
|
5800
5801
|
safetySettings: [
|
|
5801
5802
|
{ category: HarmCategory.HARM_CATEGORY_HARASSMENT, threshold: HarmBlockThreshold.BLOCK_NONE },
|
|
5802
5803
|
{ category: HarmCategory.HARM_CATEGORY_HATE_SPEECH, threshold: HarmBlockThreshold.BLOCK_NONE },
|