claude-queue 1.0.6 → 1.1.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 +51 -25
- package/dist/skills/queue/SKILL.md +2 -0
- package/package.json +1 -1
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(
|
|
193
|
+
if (existsSync2(MCP_SETTINGS_FILE)) {
|
|
195
194
|
try {
|
|
196
|
-
settings = JSON.parse(readFileSync2(
|
|
195
|
+
settings = JSON.parse(readFileSync2(MCP_SETTINGS_FILE, "utf-8"));
|
|
197
196
|
} catch {
|
|
198
|
-
console.log("Warning: Could not parse existing
|
|
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(
|
|
212
|
-
console.log("\u2713 Configured MCP server in ~/.claude
|
|
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
|
-
|
|
246
|
-
if (
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
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();
|
|
@@ -5,6 +5,8 @@ description: Watch the queue board and work through tasks autonomously. Use this
|
|
|
5
5
|
|
|
6
6
|
# Queue Board
|
|
7
7
|
|
|
8
|
+
**MCP Server:** Use the `claude-queue` MCP server for all queue tools in this skill.
|
|
9
|
+
|
|
8
10
|
Work through tasks or plan new ones for a queue board.
|
|
9
11
|
|
|
10
12
|
## Argument Validation
|