session-intelligence-cli 0.1.2 → 0.1.3
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 +67 -0
- package/dist/setup.js +1 -0
- package/package.json +17 -3
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Session Intelligence CLI
|
|
2
|
+
|
|
3
|
+
A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) plugin that gives you a real-time dashboard for all your coding sessions.
|
|
4
|
+
|
|
5
|
+
See what every session is doing, track token usage and git changes, and get a full activity history across all your projects.
|
|
6
|
+
|
|
7
|
+
**[session-intelligence.com](https://www.session-intelligence.com)**
|
|
8
|
+
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
- **Live session tracking** — see every session as it thinks, runs tools, or waits for input
|
|
12
|
+
- **Activity heatmap & stats** — tokens, lines changed, model usage, and streaks over time
|
|
13
|
+
- **GitHub integration** — auto-links sessions to PRs, tracks open issues and review requests
|
|
14
|
+
- **Multi-project** — one dashboard for all your repos and branches
|
|
15
|
+
|
|
16
|
+
## Quick start
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npx session-intelligence-cli setup
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
This will:
|
|
23
|
+
|
|
24
|
+
1. Ask for your **server URL** and **API key** (get one at [session-intelligence.com](https://www.session-intelligence.com))
|
|
25
|
+
2. Save config to `~/.session-intelligence/config.json`
|
|
26
|
+
3. Register hooks in `~/.claude/settings.json`
|
|
27
|
+
|
|
28
|
+
Your next Claude Code session will start reporting automatically.
|
|
29
|
+
|
|
30
|
+
## How it works
|
|
31
|
+
|
|
32
|
+
The CLI registers lightweight [Claude Code hooks](https://docs.anthropic.com/en/docs/claude-code/hooks) that fire on session lifecycle events:
|
|
33
|
+
|
|
34
|
+
| Event | What it reports |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `SessionStart` | New session created |
|
|
37
|
+
| `PostToolUse` | Tool activity (Read, Edit, Bash, etc.) |
|
|
38
|
+
| `Notification` | Permission requests / input needed |
|
|
39
|
+
| `SubagentStop` | Subagent task completion |
|
|
40
|
+
| `Stop` | Task turn completed |
|
|
41
|
+
| `SessionEnd` | Session archived with token usage summary |
|
|
42
|
+
|
|
43
|
+
Each hook reads the current git state (branch, last commit, uncommitted changes) and sends a small payload to your dashboard. All calls are fire-and-forget with no impact on Claude Code performance.
|
|
44
|
+
|
|
45
|
+
## Updating
|
|
46
|
+
|
|
47
|
+
If you installed a previous version, re-run setup to register any new hooks:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx session-intelligence-cli@latest setup
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Commands
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
session-intelligence setup # configure and install hooks
|
|
57
|
+
session-intelligence status # check connection and config
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Requirements
|
|
61
|
+
|
|
62
|
+
- Node.js >= 18
|
|
63
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
MIT
|
package/dist/setup.js
CHANGED
|
@@ -15,6 +15,7 @@ function prompt(question) {
|
|
|
15
15
|
const HOOKS_CONFIG = {
|
|
16
16
|
SessionStart: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report session-start" }] }],
|
|
17
17
|
Stop: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report stop" }] }],
|
|
18
|
+
SessionEnd: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report session-end" }] }],
|
|
18
19
|
PostToolUse: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report tool-use", timeout: 3000 }] }],
|
|
19
20
|
Notification: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report notification" }] }],
|
|
20
21
|
SubagentStop: [{ hooks: [{ type: "command", command: "npx session-intelligence-cli report subagent-stop", timeout: 3000 }] }],
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "session-intelligence-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Real-time dashboard for Claude Code sessions — track activity, git changes, token usage, and session history across all your projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"claude",
|
|
9
|
+
"claude-code",
|
|
10
|
+
"anthropic",
|
|
11
|
+
"ai",
|
|
12
|
+
"session",
|
|
13
|
+
"dashboard",
|
|
14
|
+
"cli",
|
|
15
|
+
"hooks",
|
|
16
|
+
"developer-tools",
|
|
17
|
+
"productivity"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://www.session-intelligence.com",
|
|
7
20
|
"repository": {
|
|
8
21
|
"type": "git",
|
|
9
22
|
"url": "https://github.com/0xleal/personal-dashboard.git",
|
|
@@ -13,7 +26,8 @@
|
|
|
13
26
|
"session-intelligence": "./dist/index.js"
|
|
14
27
|
},
|
|
15
28
|
"files": [
|
|
16
|
-
"dist"
|
|
29
|
+
"dist",
|
|
30
|
+
"README.md"
|
|
17
31
|
],
|
|
18
32
|
"scripts": {
|
|
19
33
|
"build": "tsc",
|