claude-trello-cli 0.1.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +37 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -78,6 +78,7 @@ async function apiFetch(path, options) {
78
78
  ...options,
79
79
  headers: {
80
80
  "Content-Type": "application/json",
81
+ Origin: serverUrl,
81
82
  Cookie: cookie,
82
83
  ...options?.headers ?? {}
83
84
  },
@@ -103,7 +104,10 @@ async function apiFetch(path, options) {
103
104
  async function signIn(serverUrl, email, password2) {
104
105
  const res = await fetch(`${serverUrl}/api/auth/sign-in/email`, {
105
106
  method: "POST",
106
- headers: { "Content-Type": "application/json" },
107
+ headers: {
108
+ "Content-Type": "application/json",
109
+ Origin: serverUrl
110
+ },
107
111
  body: JSON.stringify({ email, password: password2 }),
108
112
  redirect: "manual"
109
113
  });
@@ -544,7 +548,7 @@ async function handleMessage(message, session) {
544
548
  await session.streamInput(userInput());
545
549
  }
546
550
  } else {
547
- console.log(chalk3.dim(` [${name}]`));
551
+ console.log(formatToolUse(name, toolInput));
548
552
  }
549
553
  }
550
554
  }
@@ -558,6 +562,37 @@ async function handleMessage(message, session) {
558
562
  }
559
563
  }
560
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
+ }
561
596
 
562
597
  // src/commands/boards.ts
563
598
  import { Command as Command4 } from "commander";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-trello-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "CLI for Claude Trello Bridge — point Claude Code at a Trello board and work through tasks from your terminal",
5
5
  "type": "module",
6
6
  "bin": {