session-intelligence-cli
Advanced tools
+12
-6
@@ -17,8 +17,8 @@ import { createInterface } from "node:readline"; | ||
| const idx = args.indexOf("--tool"); | ||
| if (idx !== -1 && args[idx + 1]) { | ||
| const val = args[idx + 1]; | ||
| if (val === "cursor") | ||
| return "cursor"; | ||
| } | ||
| return "claude-code"; | ||
| if (idx === -1 || !args[idx + 1]) | ||
| return null; | ||
| const val = args[idx + 1]; | ||
| if (val === "cursor" || val === "claude-code") | ||
| return val; | ||
| return null; | ||
| } | ||
@@ -47,2 +47,8 @@ // Claude Code hooks — written to ~/.claude/settings.json | ||
| const tool = parseTool(args); | ||
| if (!tool) { | ||
| console.error("\n Please specify which tool to set up:\n"); | ||
| console.error(" session-intelligence setup --tool claude-code"); | ||
| console.error(" session-intelligence setup --tool cursor\n"); | ||
| process.exit(1); | ||
| } | ||
| console.log("\n Session Intelligence — Setup\n"); | ||
@@ -49,0 +55,0 @@ console.log(` Tool: ${tool === "cursor" ? "Cursor" : "Claude Code"}\n`); |
+1
-1
| { | ||
| "name": "session-intelligence-cli", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "description": "Real-time dashboard for AI coding sessions — track activity, git changes, token usage, and session history across Claude Code and Cursor", | ||
@@ -5,0 +5,0 @@ "type": "module", |
34919
0.81%881
0.69%