claude-trello-cli 0.1.4 → 0.1.5
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/index.js +32 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -548,7 +548,7 @@ async function handleMessage(message, session) {
|
|
|
548
548
|
await session.streamInput(userInput());
|
|
549
549
|
}
|
|
550
550
|
} else {
|
|
551
|
-
console.log(
|
|
551
|
+
console.log(formatToolUse(name, toolInput));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
@@ -562,6 +562,37 @@ async function handleMessage(message, session) {
|
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
+
function formatToolUse(name, toolInput) {
|
|
566
|
+
const path = toolInput.file_path ?? toolInput.path ?? toolInput.pattern ?? "";
|
|
567
|
+
const shortPath = path ? ` ${chalk3.cyan(path)}` : "";
|
|
568
|
+
switch (name) {
|
|
569
|
+
case "Read":
|
|
570
|
+
return chalk3.dim(` Reading${shortPath}`);
|
|
571
|
+
case "Edit":
|
|
572
|
+
return chalk3.dim(` Editing${shortPath}`);
|
|
573
|
+
case "Write":
|
|
574
|
+
return chalk3.dim(` Writing${shortPath}`);
|
|
575
|
+
case "Glob":
|
|
576
|
+
return chalk3.dim(` Searching files${shortPath}`);
|
|
577
|
+
case "Grep":
|
|
578
|
+
return chalk3.dim(
|
|
579
|
+
` Searching for ${chalk3.cyan(toolInput.pattern || "...")}${toolInput.path ? ` in ${chalk3.cyan(toolInput.path)}` : ""}`
|
|
580
|
+
);
|
|
581
|
+
case "Bash": {
|
|
582
|
+
const cmd = toolInput.command || "";
|
|
583
|
+
const preview = cmd.length > 80 ? cmd.slice(0, 77) + "..." : cmd;
|
|
584
|
+
return chalk3.dim(` Running ${chalk3.cyan(preview)}`);
|
|
585
|
+
}
|
|
586
|
+
case "TodoWrite":
|
|
587
|
+
return chalk3.dim(" Updating task list");
|
|
588
|
+
case "Agent":
|
|
589
|
+
return chalk3.dim(
|
|
590
|
+
` Spawning agent${toolInput.description ? `: ${toolInput.description}` : ""}`
|
|
591
|
+
);
|
|
592
|
+
default:
|
|
593
|
+
return chalk3.dim(` [${name}]${shortPath}`);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
565
596
|
|
|
566
597
|
// src/commands/boards.ts
|
|
567
598
|
import { Command as Command4 } from "commander";
|