claude-trello-cli 0.1.5 → 0.1.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.
package/README.md CHANGED
@@ -104,12 +104,16 @@ The main command. Select a board interactively, review the cards, and launch a C
104
104
  npx claude-trello-cli run
105
105
  npx claude-trello-cli run --board 60d5e2a3f1a2b40017c3d4e5
106
106
  npx claude-trello-cli run --dir ~/projects/my-api
107
+ npx claude-trello-cli run --message "Check the development branch for comparison"
107
108
  ```
108
109
 
110
+ Without `--message`, you'll be prompted interactively before the session starts. Press Enter to skip.
111
+
109
112
  | Flag | Description |
110
113
  |------|-------------|
111
114
  | `-b, --board <id>` | Board ID — skip interactive selection |
112
115
  | `-d, --dir <path>` | Working directory (default: current directory) |
116
+ | `-m, --message <text>` | Initial instructions for Claude (e.g. "focus on API cards first") |
113
117
 
114
118
  ### `claude-trello-cli boards`
115
119
 
package/dist/index.js CHANGED
@@ -258,13 +258,20 @@ Do not mark items complete unless the code change has actually been made and ver
258
258
  After completing ALL checklist items on a card, call move_card_to_done with the cardId to move it to the Done list.
259
259
  Once a card is in Done, do not interact with it again \u2014 move on to the next card.
260
260
  Focus on one card at a time. Complete all its items, move it to Done, then proceed to the next.`;
261
- function buildUserPrompt(boardData) {
262
- return `Here is the Trello board with tasks to complete:
261
+ function buildUserPrompt(boardData, userMessage) {
262
+ let prompt = `Here is the Trello board with tasks to complete:
263
263
 
264
264
  ${JSON.stringify(boardData, null, 2)}`;
265
+ if (userMessage?.trim()) {
266
+ prompt += `
267
+
268
+ Additional instructions from the user:
269
+ ${userMessage.trim()}`;
270
+ }
271
+ return prompt;
265
272
  }
266
273
  function launchSession(options) {
267
- const { credentials, boardData, cwd, abortController } = options;
274
+ const { credentials, boardData, cwd, userMessage, abortController } = options;
268
275
  const trello = createTrelloClient(
269
276
  credentials.trelloApiKey,
270
277
  credentials.trelloToken
@@ -316,7 +323,7 @@ function launchSession(options) {
316
323
  tools: [checkTrelloItem, moveCardToDone]
317
324
  });
318
325
  return query({
319
- prompt: buildUserPrompt(activeBoardData),
326
+ prompt: buildUserPrompt(activeBoardData, userMessage),
320
327
  options: {
321
328
  abortController,
322
329
  cwd,
@@ -340,7 +347,7 @@ function launchSession(options) {
340
347
  }
341
348
 
342
349
  // src/commands/run.ts
343
- var runCommand = new Command3("run").description("Select a Trello board and start a Claude Code session").option("-b, --board <id>", "Board ID (skip interactive selection)").option("-d, --dir <path>", "Working directory (default: current)").action(async (opts) => {
350
+ var runCommand = new Command3("run").description("Select a Trello board and start a Claude Code session").option("-b, --board <id>", "Board ID (skip interactive selection)").option("-d, --dir <path>", "Working directory (default: current)").option("-m, --message <text>", "Initial instructions for Claude").action(async (opts) => {
344
351
  if (!isLoggedIn()) {
345
352
  console.log(
346
353
  chalk3.red("Not logged in. Run `claude-trello login` first.")
@@ -445,6 +452,12 @@ ${chalk3.bold(boardName)}`);
445
452
  console.log(chalk3.dim("Cancelled."));
446
453
  return;
447
454
  }
455
+ let userMessage = opts.message;
456
+ if (!userMessage) {
457
+ userMessage = await input2({
458
+ message: "Instructions for Claude (optional \u2014 press Enter to skip):"
459
+ });
460
+ }
448
461
  const credSpinner = ora2("Loading credentials...").start();
449
462
  let credentials;
450
463
  try {
@@ -475,6 +488,7 @@ ${chalk3.bold.blue("Starting Claude Code session...")}
475
488
  credentials,
476
489
  boardData,
477
490
  cwd,
491
+ userMessage: userMessage || void 0,
478
492
  abortController
479
493
  });
480
494
  for await (const message of session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-trello-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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": {