cc-claw 0.5.4 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +34 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -49,7 +49,7 @@ var VERSION;
49
49
  var init_version = __esm({
50
50
  "src/version.ts"() {
51
51
  "use strict";
52
- VERSION = true ? "0.5.4" : (() => {
52
+ VERSION = true ? "0.5.5" : (() => {
53
53
  try {
54
54
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
55
55
  } catch {
@@ -11605,29 +11605,54 @@ After installing, restart the service: cc-claw service restart`;
11605
11605
  }
11606
11606
  function formatToolStart(toolName, input, level) {
11607
11607
  if (level === "normal") {
11608
+ const path = input.file_path ?? input.path ?? input.file ?? "";
11609
+ const cmd = String(input.command ?? input.cmd ?? "").slice(0, 100);
11610
+ const query = String(input.query ?? input.search_query ?? "").slice(0, 100);
11611
+ const pattern = String(input.pattern ?? "").slice(0, 80);
11608
11612
  switch (toolName) {
11613
+ // Claude tools
11609
11614
  case "Read":
11610
- return `\u{1F4D6} Reading: ${input.file_path}`;
11615
+ case "read_file":
11616
+ case "ReadFile":
11617
+ return `\u{1F4D6} Reading: ${path}`;
11611
11618
  case "Write":
11612
- return `\u270F\uFE0F Writing: ${input.file_path}`;
11619
+ case "write_file":
11620
+ case "WriteFile":
11621
+ return `\u270F\uFE0F Writing: ${path}`;
11613
11622
  case "Edit":
11614
- return `\u270F\uFE0F Editing: ${input.file_path}`;
11623
+ case "edit_file":
11624
+ case "EditFile":
11625
+ case "StrReplace":
11626
+ return `\u270F\uFE0F Editing: ${path}`;
11615
11627
  case "Bash":
11616
- return `\u{1F527} Bash: ${String(input.command ?? "").slice(0, 100)}`;
11628
+ case "run_shell_command":
11629
+ case "Shell":
11630
+ case "shell":
11631
+ return `\u{1F527} Shell: ${cmd}`;
11617
11632
  case "Glob":
11618
- return `\u{1F50D} Glob: ${input.pattern}`;
11633
+ case "list_directory":
11634
+ case "ListDir":
11635
+ return `\u{1F50D} Listing: ${path || pattern}`;
11619
11636
  case "Grep":
11620
- return `\u{1F50D} Grep: ${String(input.pattern ?? "").slice(0, 60)}${input.path ? ` in ${input.path}` : ""}`;
11637
+ case "search_files":
11638
+ case "SearchFiles":
11639
+ return `\u{1F50D} Grep: ${pattern}${path ? ` in ${path}` : ""}`;
11621
11640
  case "WebFetch":
11641
+ case "web_fetch":
11642
+ case "fetch_url":
11622
11643
  return `\u{1F310} Fetching: ${String(input.url ?? "").slice(0, 100)}`;
11623
11644
  case "WebSearch":
11624
- return `\u{1F50D} Searching: ${input.query}`;
11645
+ case "google_web_search":
11646
+ case "web_search":
11647
+ return `\u{1F50D} Searching: ${query}`;
11625
11648
  case "Agent":
11649
+ case "spawn_agent":
11626
11650
  return `\u{1F916} Sub-agent task...`;
11627
11651
  case "AskUserQuestion":
11652
+ case "ask_user":
11628
11653
  return `\u2753 ${String(input.question ?? "").slice(0, 120)}`;
11629
11654
  default:
11630
- return `\u{1F527} ${toolName}`;
11655
+ return `\u{1F527} ${toolName}${cmd ? `: ${cmd}` : path ? `: ${path}` : query ? `: ${query}` : ""}`;
11631
11656
  }
11632
11657
  }
11633
11658
  const inputStr = JSON.stringify(input, null, 2).slice(0, 600);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",