claude-queue 1.0.7 → 1.2.0

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/cli.js CHANGED
@@ -21,6 +21,7 @@ var PID_FILE = join(KANBAN_DIR, "server.pid");
21
21
  var LOG_FILE = join(KANBAN_DIR, "server.log");
22
22
  var CLAUDE_DIR = join(homedir(), ".claude");
23
23
  var SKILLS_DIR = join(CLAUDE_DIR, "skills");
24
+ var MCP_SETTINGS_FILE = join(homedir(), ".claude.json");
24
25
 
25
26
  // src/server.ts
26
27
  import { spawn } from "child_process";
@@ -185,22 +186,21 @@ async function registerProject(port, projectPath, verbose) {
185
186
  // src/skills.ts
186
187
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2, rmSync } from "fs";
187
188
  import { join as join3 } from "path";
189
+ import { homedir as homedir2 } from "os";
190
+ var LEGACY_SETTINGS_FILE = join3(homedir2(), ".claude", "settings.json");
188
191
  async function configureMcp() {
189
- const settingsPath = join3(CLAUDE_DIR, "settings.json");
190
- if (!existsSync2(CLAUDE_DIR)) {
191
- mkdirSync2(CLAUDE_DIR, { recursive: true });
192
- }
193
192
  let settings = {};
194
- if (existsSync2(settingsPath)) {
193
+ if (existsSync2(MCP_SETTINGS_FILE)) {
195
194
  try {
196
- settings = JSON.parse(readFileSync2(settingsPath, "utf-8"));
195
+ settings = JSON.parse(readFileSync2(MCP_SETTINGS_FILE, "utf-8"));
197
196
  } catch {
198
- console.log("Warning: Could not parse existing settings.json");
197
+ console.log("Warning: Could not parse existing .claude.json");
199
198
  }
200
199
  }
201
200
  const mcpServers = settings.mcpServers || {};
202
201
  if (!mcpServers["claude-queue"]) {
203
202
  mcpServers["claude-queue"] = {
203
+ type: "stdio",
204
204
  command: "npx",
205
205
  args: ["-y", "-p", "claude-queue", "claude-queue-mcp"],
206
206
  env: {
@@ -208,8 +208,8 @@ async function configureMcp() {
208
208
  }
209
209
  };
210
210
  settings.mcpServers = mcpServers;
211
- writeFileSync2(settingsPath, JSON.stringify(settings, null, 2));
212
- console.log("\u2713 Configured MCP server in ~/.claude/settings.json");
211
+ writeFileSync2(MCP_SETTINGS_FILE, JSON.stringify(settings, null, 2));
212
+ console.log("\u2713 Configured MCP server in ~/.claude.json");
213
213
  }
214
214
  }
215
215
  function getSkillPath() {
@@ -242,24 +242,34 @@ function installSkills(force = false) {
242
242
  return true;
243
243
  }
244
244
  function removeMcp() {
245
- const settingsPath = join3(CLAUDE_DIR, "settings.json");
246
- if (!existsSync2(settingsPath)) {
247
- return false;
248
- }
249
- let settings = {};
250
- try {
251
- settings = JSON.parse(readFileSync2(settingsPath, "utf-8"));
252
- } catch {
253
- return false;
245
+ let removed = false;
246
+ if (existsSync2(MCP_SETTINGS_FILE)) {
247
+ try {
248
+ const settings = JSON.parse(readFileSync2(MCP_SETTINGS_FILE, "utf-8"));
249
+ const mcpServers = settings.mcpServers || {};
250
+ if (mcpServers["claude-queue"]) {
251
+ delete mcpServers["claude-queue"];
252
+ settings.mcpServers = mcpServers;
253
+ writeFileSync2(MCP_SETTINGS_FILE, JSON.stringify(settings, null, 2));
254
+ removed = true;
255
+ }
256
+ } catch {
257
+ }
254
258
  }
255
- const mcpServers = settings.mcpServers || {};
256
- if (!mcpServers["claude-queue"]) {
257
- return false;
259
+ if (existsSync2(LEGACY_SETTINGS_FILE)) {
260
+ try {
261
+ const settings = JSON.parse(readFileSync2(LEGACY_SETTINGS_FILE, "utf-8"));
262
+ const mcpServers = settings.mcpServers || {};
263
+ if (mcpServers["claude-queue"]) {
264
+ delete mcpServers["claude-queue"];
265
+ settings.mcpServers = mcpServers;
266
+ writeFileSync2(LEGACY_SETTINGS_FILE, JSON.stringify(settings, null, 2));
267
+ removed = true;
268
+ }
269
+ } catch {
270
+ }
258
271
  }
259
- delete mcpServers["claude-queue"];
260
- settings.mcpServers = mcpServers;
261
- writeFileSync2(settingsPath, JSON.stringify(settings, null, 2));
262
- return true;
272
+ return removed;
263
273
  }
264
274
  function removeSkills() {
265
275
  const queueSkillDir = join3(SKILLS_DIR, "queue");
@@ -657,4 +667,20 @@ program.command("uninstall").description("Remove MCP server and skill from Claud
657
667
  console.log("\nRestart Claude Code to complete the uninstall.");
658
668
  }
659
669
  });
670
+ program.command("setup").description("Clean setup: remove existing config and reinstall fresh").action(async () => {
671
+ console.log("Cleaning existing configuration...");
672
+ const mcpRemoved = removeMcp();
673
+ if (mcpRemoved) {
674
+ console.log(" Removed old MCP config");
675
+ }
676
+ const skillsRemoved = removeSkills();
677
+ if (skillsRemoved) {
678
+ console.log(" Removed old skill files");
679
+ }
680
+ console.log("\nInstalling fresh configuration...");
681
+ await configureMcp();
682
+ installSkills(true);
683
+ console.log("\n\u2713 Setup complete!");
684
+ console.log("\nRestart Claude Code, then run: claude-queue");
685
+ });
660
686
  program.parse();
@@ -42,34 +42,20 @@ Check the arguments passed to this skill:
42
42
  When invoked with `/queue plan <project-id>`:
43
43
 
44
44
  1. **Connect**: Call `queue_watch` with the project ID
45
- 2. **Ask for input**: Ask the user "What would you like to plan?"
46
- 3. **Generate tasks**: Based on the description, propose a breakdown:
47
- - List each task with a title and brief description
48
- - Keep tasks focused and actionable
49
- - Order them logically (dependencies first if relevant)
50
- 4. **Refine**: Ask if they want to adjust anything
51
- 5. **Confirm destination**: Ask "Add to ready (default) or backlog?"
52
- 6. **Create tasks**: Call `queue_create_task` for each task with the chosen status
53
- 7. **Done**: Summarize what was created (count and column)
54
-
55
- ### Example Planning Flow
56
-
57
- ```
58
- User: /queue plan kbn-a3x9
59
- Claude: What would you like to plan?
60
- User: User authentication with email/password
61
- Claude: Here's my proposed breakdown:
62
-
63
- 1. **Create auth database schema** - users table with email, password_hash, created_at
64
- 2. **Implement registration endpoint** - POST /auth/register with validation
65
- 3. **Implement login endpoint** - POST /auth/login returning JWT
66
- 4. **Add auth middleware** - Verify JWT on protected routes
67
- 5. **Create React auth context** - Login state and token management
68
-
69
- Want me to adjust anything? If not, should I add these to ready (default) or backlog?
70
- User: Looks good, add to ready
71
- Claude: ✓ Created 5 tasks in ready column for kbn-a3x9
72
- ```
45
+ 2. **Check for existing context**: Read the project's CLAUDE.md file if it exists (at the project path)
46
+ 3. **Start discovery**: Ask the user what they're planning to work on
47
+ 4. **Iterative refinement**: Use the AskUserQuestion tool to ask clarifying questions. Keep asking until you have a clear understanding of:
48
+ - What they want to accomplish
49
+ - The scope and constraints
50
+ - What success looks like
51
+ - Any preferences or requirements
52
+ 5. **Propose the plan**: Present a comprehensive plan document capturing everything discussed. Ask if it captures their intent correctly.
53
+ 6. **Refine until approved**: If the user wants changes, refine the plan. Repeat until they're happy.
54
+ 7. **Create/update CLAUDE.md**: Once approved, write the plan to CLAUDE.md in the project directory. This provides context for all future sessions.
55
+ 8. **Break into tasks**: Derive task titles and detailed descriptions from the plan
56
+ 9. **Ready to start?**: Ask "Ready to start? (or should I just add these to backlog for later?)"
57
+ - If user wants to start: Create tasks in "ready", then proceed to **Work Mode** and begin the main loop
58
+ - If user wants backlog: Create tasks in "backlog", inform them they can start later by running `/queue <project-id>`
73
59
 
74
60
  ---
75
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-queue",
3
- "version": "1.0.7",
3
+ "version": "1.2.0",
4
4
  "description": "A local kanban board for managing Claude Code projects",
5
5
  "type": "module",
6
6
  "bin": {