fluxflow-cli 1.13.4 → 1.13.6

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.
Files changed (2) hide show
  1. package/dist/fluxflow.js +12 -11
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -946,7 +946,7 @@ var init_secrets = __esm({
946
946
  var TOOL_PROTOCOL;
947
947
  var init_main_tools = __esm({
948
948
  "src/data/main_tools.js"() {
949
- TOOL_PROTOCOL = (mode) => `
949
+ TOOL_PROTOCOL = (mode, osDetected) => `
950
950
  -- TOOL DEFINITIONS --
951
951
  Access to internal tools. To call a tool, MUST use the exact syntax on a new line:
952
952
  [tool:functions.ToolName(args)]
@@ -966,7 +966,7 @@ ${mode === "Flux" ? `- FILE TOOLS (path = relative to CWD) -
966
966
  4. [tool:functions.PatchFile(path="...", content_to_replace="exact old content", content_to_add="new content")]. Surgical patching. Unsure content_to_replace? -> view_file >> guessing.
967
967
  5. [tool:functions.WritePDF(path="...", content="...", orientation="...")]. **USE PROPER PROACTIVE A4 PAGE BREAKS**. HTML/CSS for PREMIUM layout (100vh/vw). No manual footers
968
968
  6. [tool:functions.WriteDoc(path="...", content="...")]. A4 Word doc. Proper margins and page breaks
969
- 7. [tool:functions.Run(command="...")]. Runs a shell command. Destructive/Irreversible ops -> ask user
969
+ 7. [tool:functions.Run(command="...")]. Runs a ${osDetected === "Windows" ? "Windows CMD" : "Bash"} command. Destructive/Irreversible ops -> ask user
970
970
  8. [tool:functions.SearchKeyword(keyword="...")]. Global search. Finds definitions/logic without reading every file
971
971
  9. [tool:functions.GenerateImage(path="... png", prompt="detailed", ratio="16:9, 9:16, 1:1, 4:3, 3:4")]. AI images. Usage: Mockups, PDF thumbnails, any visual content
972
972
 
@@ -1022,7 +1022,7 @@ var thinking_prompts_default;
1022
1022
  var init_thinking_prompts = __esm({
1023
1023
  "src/data/thinking_prompts.json"() {
1024
1024
  thinking_prompts_default = {
1025
- xHigh: `EFFORT_LEVEL: MAX
1025
+ xHigh: `EFFORT_LEVEL: HIGHEST
1026
1026
  Think in a continuous, fluid analytical monologue within the <think>...</think> block. Do NOT use headings, bullet points, or artificial sections. Engage in a rigorous "Stream of Consciousness" that aggressively interrogates the problem:
1027
1027
  Deep Contextual Analysis: Deconstruct requirements, trace implicit assumptions, and evaluate system-wide implications.
1028
1028
  First-Principles Design: Formulate solutions focusing on extreme modularity, DRY principles, and clean abstractions. Mentally simulate the architecture.
@@ -1032,9 +1032,9 @@ RULES:
1032
1032
  - NO HEADINGS. Maintain a dense, unbroken analytical monologue.
1033
1033
  - Be exhaustive. Detail the exact 'why' behind architectural choices and algorithm selections.
1034
1034
  - Question your own logic ruthlessly as you go.
1035
- - MANDATORY THINKING: You MUST engage in full reasoning regardless of simplicity, even for greetings.`,
1036
- High: "EFFORT_LEVEL: HIGH\nThink in a stable, analytical monologue within the <think>...</think> block. Avoid headings or structured formatting. Your thinking should be a continuous stream of logical deduction:\nTask Decomposition: Break the objective down into atomic, executable steps.\nLogic Simulation: Mentally execute your planned code/actions. Identify missing dependencies or potential failure states.\nStructural Strategy: Ensure your approach adheres to good folder structures, modularity, and clean code practices.\nRULES:\n- NO HEADINGS. Maintain a fluid monologue style.\n- Be detailed and rigorous in self-correction.\n- Focus heavily on technical correctness, clean abstractions, and edge-case prevention.\n- MANDATORY THINKING: You MUST enter reasoning to verify the path forward, even for greetings.",
1037
- Medium: "EFFORT_LEVEL: MEDIUM\nThink in a concise, stable monologue within the <think>...</think> block. Focus on the core logic required to solve the task efficiently:\nDirect Path Identification: Determine the most straightforward solution that meets the requirements.\nSanity Check: Briefly review the chosen approach against obvious anti-patterns or missing imports.\nExecution Readiness: Outline the exact files and functions to modify.\nRULES:\n- NO HEADINGS. Keep it as a simple, logical stream.\n- Be efficient but deliberate. Spend energy primarily on actionable steps.\n- MANDATORY THINKING: Engage in a baseline mental check for all technical tasks, even for greetings.",
1035
+ - MANDATORY THINKING: You MUST engage in full reasoning regardless of simplicity, even for greetings`,
1036
+ High: "EFFORT_LEVEL: HIGH\nThink in a stable, analytical monologue within the <think>...</think> block. Avoid headings or structured formatting. Your thinking should be a continuous stream of logical deduction:\nTask Decomposition: Break the objective down into atomic, executable steps.\nLogic Simulation: Mentally execute your planned code/actions. Identify missing dependencies or potential failure states.\nStructural Strategy: Ensure your approach adheres to good folder structures, modularity, and clean code practices.\nRULES:\n- NO HEADINGS. Maintain a fluid monologue style.\n- Be detailed and rigorous in self-correction.\n- Focus heavily on technical correctness, clean abstractions, and edge-case prevention.\n- MANDATORY THINKING: You MUST enter reasoning to verify the path forward, even for greeting.",
1037
+ Medium: "EFFORT_LEVEL: MEDIUM\nThink in a concise, stable monologue within the <think>...</think> block. Focus on the core logic required to solve the task efficiently:\nDirect Path Identification: Determine the most straightforward solution that meets the requirements.\nSanity Check: Briefly review the chosen approach against obvious anti-patterns or missing imports.\nExecution Readiness: Outline the exact files and functions to modify.\nRULES:\n- NO HEADINGS. Keep it as a simple, logical stream.\n- Be efficient but deliberate. Spend energy primarily on actionable steps.\n- MANDATORY THINKING: Engage in a baseline mental check for all technical tasks, even for greeting",
1038
1038
  Minimal: "EFFORT_LEVEL: LOW\nThink in a brief, focused monologue within the <think>...</think> block. Just a quick mental check before acting:\nIntent Verification: Confirm what the user is asking.\nAction Mapping: Note the specific tool or file to target.\nRULES:\n- NO HEADINGS. Keep it to a few lines of clear, linear thought.\n- Use minimal thinking suitable for simple or conversational requests, even for greetings.",
1039
1039
  Off: "EFFORT_LEVEL: FAST\nNo internal thinking required. Respond directly"
1040
1040
  };
@@ -1101,9 +1101,9 @@ ${nicknameStr.length || userInstrStr.length ? "" : "\n"}` : "";
1101
1101
  ${foundFiles.map((f) => `- ${f.name}: ${f.desc}`).join("\n")}
1102
1102
  Check these first; these files > training data for project consistency. Safety rules apply` : "";
1103
1103
  return `${nameStr}${nicknameStr}${userInstrStr}[SYSTEM (OVERRIDES EVERYTHING)]
1104
- Identity: Flux Flow (by Kushal Roy Chowdhury). ${mode === "Flux" ? "Warm, Professional" : "Sassy, Friendly, Humorous, Sarcastic"}, CLI Agent
1105
- Mode: ${mode}${thinkingLevel !== "Fast" ? "(Thinking Mode)" : ""}. ${mode === "Flux" ? "Expert Developer & Orchestrator: Logical, Highly Detailed, Task-Driven. Prioritizes scalable file/folder structures, modular architecture, clean code abstractions, and step-by-step execution." : "Conversational & UX-focused, Concise"}
1106
- CWD: ${cwdStr}.${isSystemDir ? " [PROTECTED: ASK BEFORE MODIFYING]" : ""} OS: ${osDetected}${osDetected === "Windows" && mode === "Flux" ? ". PS via CMD" : ""}
1104
+ Identity: Flux Flow (by Kushal Roy Chowdhury). Sassy${mode === "Flux" ? "" : ", Friendly, Humorous, Sarcastic"}, CLI Agent
1105
+ Mode: ${mode}${thinkingLevel !== "Fast" ? " (Thinking Mode)" : ""}. ${mode === "Flux" ? "Expert Developer & Orchestrator: Logical, Highly Detailed, Task-Driven. Prioritizes scalable file/folder structures, modular architecture, clean code abstractions, and step-by-step execution. Industry standard coding practices/libraries, clean code" : "Conversational & UX-focused, Concise"}
1106
+ CWD: ${cwdStr}.${isSystemDir ? " [PROTECTED: ASK BEFORE MODIFYING]" : ""} OS: ${osDetected}
1107
1107
  High Priority: [SYSTEM], [STEERING HINT].
1108
1108
 
1109
1109
  -- THINKING RULES --
@@ -1114,7 +1114,7 @@ CRITICAL THINKING POLICY
1114
1114
  - NEVER skip thinking, even for simple tasks, code, or greetings
1115
1115
  - NEVER START responses directly, regardless of task complexity
1116
1116
  ` : ""}
1117
- ${TOOL_PROTOCOL(mode)}
1117
+ ${TOOL_PROTOCOL(mode, osDetected)}
1118
1118
  ${projectContextBlock}
1119
1119
 
1120
1120
  -- MEMORY RULES --
@@ -1124,6 +1124,7 @@ ${projectContextBlock}
1124
1124
  -- SECURITY RULES --
1125
1125
  - EXTERNAL ACCESS: ${systemSettings.allowExternalAccess ? "ENABLED" : "RESTRICTED CWD only"}
1126
1126
  - Sensitive files? Ask before Read
1127
+ [SYSTEM] >>> [USER]
1127
1128
 
1128
1129
  -- FORMATTING --
1129
1130
  - Clean, concise responses
@@ -4145,7 +4146,7 @@ ${newMemoryListStr}
4145
4146
  const dateTimeStr = (/* @__PURE__ */ new Date()).toLocaleString([], { year: "numeric", month: "numeric", day: "numeric", hour: "2-digit", minute: "2-digit", hour12: true });
4146
4147
  const firstUserMsg = `${memoryPrompt}
4147
4148
  [METADATA (PRIORITY: DYNAMIC)] Time: ${dateTimeStr} | v${versionFluxflow2}
4148
- ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS STRICT PRIORITY. DO NOT START A RESPONSE WITHOUT THINKING <think> ... </think>**\n" : ""}[USER] ${agentText.replace(/\s*\[Prompted on:.*?\]/g, "").trim()}`.trim();
4149
+ ${thinkingLevel != "Fast" ? "[SYSTEM] **STRICTLY FOLLOW THINKING POLICY AS CORE PRIORITY. DO NOT START A RESPONSE WITHOUT <think> ... </think>**\n" : ""}[USER] ${agentText.replace(/\s*\[Prompted on:.*?\]/g, "").trim()}`.trim();
4149
4150
  modifiedHistory.push({ role: "user", text: firstUserMsg });
4150
4151
  let lastUsage = null;
4151
4152
  const MAX_LOOPS = mode === "Flux" ? 70 : 7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.13.4",
3
+ "version": "1.13.6",
4
4
  "date": "2026-05-25",
5
5
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
6
6
  "keywords": [