fluxflow-cli 1.18.3 → 1.18.4

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 +17 -3
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -1676,7 +1676,7 @@ ${mode === "Flux" ? `- PROJECT TOOLS (path = relative to CWD) -
1676
1676
  3. [tool:functions.PatchFile(path="...", replaceContent1="exact string", newContent1="...", ...MAX 8)]. Surgical Patch. Unsure? ReadFile > guessing. Multiple blocks same file? Use replaceContent2, newContent2 etc.
1677
1677
  4. [tool:functions.WriteFile(path="...", content="...")]. Creates/Overwrites. File Exist? PatchFile >> WriteFile. Verify Imports
1678
1678
  5. [tool:functions.SearchKeyword(keyword="...", file="path/to/file")]. Global project search. If 'file' is provided, searches only that file. Finds definitions/logic without reading every file
1679
- 6. [tool:functions.Run(command="...")]. Runs a ${osDetected === "Windows" ? isPsAvailable() ? "Windows Powershell" : "Windows CMD" : "Bash"} command. Destructive/Irreversible ops -> Ask user
1679
+ 6. [tool:functions.Run(command="...")]. Runs ${osDetected === "Windows" ? isPsAvailable() ? "WINDOWS POWERSHELL" : "WINDOWS CMD" : "Bash"} command. Destructive/Irreversible ops -> Ask user
1680
1680
  7. [tool:functions.GenerateImage(path="... png", prompt="detailed", ratio="16:9, 9:16, 1:1")]. Usage: Mockups, PDF thumbnails, any visual content
1681
1681
  8. [tool:functions.WritePDF(path="...", content="...", orientation="...")]. PROACTIVE A4 PAGE BREAKS MUST IN CSS. HTML/CSS for PREMIUM layout (100vh/vw)
1682
1682
  9. [tool:functions.WriteDoc(path="...", content="...")]. A4 Word document
@@ -1825,8 +1825,8 @@ ${projectContextBlock}
1825
1825
  - Tables: Max 4 cols
1826
1826
  - NO LaTeX${mode === "Flux" ? "" : ". Kaomojis"}
1827
1827
 
1828
- -- RESPONSE RULES --
1829
- - End with [turn: continue] to continue or [turn: finish] when task done
1828
+ -- TURN RULES (PRIORITY: HIGH) --
1829
+ - End with [turn: continue] to continue or [turn: finish] to finish agent loop (MUST INCLUDE EVERY RESPONSE)
1830
1830
  - Tool Called? No post tool response until [turn: continue]
1831
1831
  - Task Complete? End loop with [turn: finish]
1832
1832
  - NEVER USE [turn: continue] [turn:finish] together
@@ -3437,6 +3437,7 @@ var pty, activeChildProcess, isActiveCommandPty, writeToActiveCommand, terminate
3437
3437
  var init_exec_command = __esm({
3438
3438
  async "src/tools/exec_command.js"() {
3439
3439
  init_arg_parser();
3440
+ init_main_tools();
3440
3441
  pty = null;
3441
3442
  try {
3442
3443
  const ptyModule = await import("node-pty");
@@ -3538,9 +3539,22 @@ var init_exec_command = __esm({
3538
3539
  if (/[\(\)\{\}\;\<\>\=\'\"]/.test(str)) return false;
3539
3540
  return true;
3540
3541
  };
3542
+ let inMkdir = false;
3541
3543
  const translatedTokens = [];
3542
3544
  for (let i = 0; i < tokens.length; i++) {
3543
3545
  const token = tokens[i];
3546
+ if (token === "mkdir" && usePowerShell && isPsAvailable()) {
3547
+ inMkdir = true;
3548
+ }
3549
+ if (inMkdir) {
3550
+ const controlOperators = [">", ">>", "<", "&", "&&", "|", "||", ";"];
3551
+ if (controlOperators.includes(token)) {
3552
+ inMkdir = false;
3553
+ } else if (token === "-p" || token === "--parents") {
3554
+ translatedTokens.push("-Force");
3555
+ continue;
3556
+ }
3557
+ }
3544
3558
  if (token === "|" && tokens[i + 1] === "tee") {
3545
3559
  if (tokens[i + 2] === "-a") {
3546
3560
  translatedTokens.push(">>");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.18.3",
3
+ "version": "1.18.4",
4
4
  "date": "2026-05-30",
5
5
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
6
6
  "keywords": [