fluxflow-cli 1.0.5 → 1.0.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 +5 -2
  2. package/package.json +1 -1
package/dist/fluxflow.js CHANGED
@@ -1381,15 +1381,18 @@ USER_PROMPT: ${agentText}`.trim();
1381
1381
  } else if (toolCall.toolName === "view_file") {
1382
1382
  const { path: targetPath2, start_line = 1, end_line = 500 } = parseArgs(toolCall.args);
1383
1383
  let totalLines = "...";
1384
+ let actualEndLine = end_line;
1384
1385
  try {
1385
1386
  const absPath = path13.resolve(process.cwd(), targetPath2);
1386
1387
  if (fs12.existsSync(absPath)) {
1387
1388
  const content = fs12.readFileSync(absPath, "utf8");
1388
- totalLines = content.split("\n").length;
1389
+ const lines = content.split("\n").length;
1390
+ totalLines = lines;
1391
+ actualEndLine = Math.min(end_line, lines);
1389
1392
  }
1390
1393
  } catch (e) {
1391
1394
  }
1392
- label = `\u{1F4C4} READING FILE: ${targetPath2}. LINES ${start_line} - ${end_line} FROM ${totalLines}`.toUpperCase();
1395
+ label = `\u{1F4C4} READING FILE: ${targetPath2}. LINES ${start_line} - ${actualEndLine} FROM ${totalLines}`.toUpperCase();
1393
1396
  } else if (toolCall.toolName === "list_files" || toolCall.toolName === "read_folder") {
1394
1397
  const action = toolCall.toolName === "list_files" ? "LISTING" : "DISCOVERING";
1395
1398
  label = `\u{1F4C2} ${action} DIRECTORY: ${parseArgs(toolCall.args).path || "."}`.toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxflow-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A high-fidelity agentic terminal assistant for the Flux Era.",
5
5
  "keywords": [
6
6
  "ai",