session-intelligence-cli
Advanced tools
+9
-6
@@ -15,9 +15,12 @@ import { createInterface } from "node:readline"; | ||
| } | ||
| // Use the direct binary name — after `npm install -g`, `session-intelligence` | ||
| // is in PATH. Avoids npx cold-start overhead that causes SessionEnd hooks to | ||
| // be killed before they can spawn the detached background process. | ||
| const HOOKS_CONFIG = { | ||
| SessionStart: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report session-start" }] }], | ||
| Stop: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report stop" }] }], | ||
| SessionEnd: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report session-end" }] }], | ||
| PostToolUse: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report tool-use", timeout: 3000 }] }], | ||
| Notification: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report notification" }] }], | ||
| SubagentStop: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report subagent-stop", timeout: 3000 }] }], | ||
| SessionStart: [{ hooks: [{ type: "command", command: "session-intelligence report session-start" }] }], | ||
| Stop: [{ hooks: [{ type: "command", command: "session-intelligence report stop" }] }], | ||
| SessionEnd: [{ hooks: [{ type: "command", command: "session-intelligence report session-end" }] }], | ||
| PostToolUse: [{ hooks: [{ type: "command", command: "session-intelligence report tool-use", timeout: 3000 }] }], | ||
| Notification: [{ hooks: [{ type: "command", command: "session-intelligence report notification" }] }], | ||
| SubagentStop: [{ hooks: [{ type: "command", command: "session-intelligence report subagent-stop", timeout: 3000 }] }], | ||
| }; | ||
@@ -24,0 +27,0 @@ export async function setup() { |
+1
-1
| { | ||
| "name": "session-intelligence-cli", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "Real-time dashboard for Claude Code sessions — track activity, git changes, token usage, and session history across all your projects", | ||
@@ -5,0 +5,0 @@ "type": "module", |
17318
1.04%387
0.78%