claude-scope 0.8.48 → 0.9.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/README.md +137 -177
- package/dist/claude-scope.cjs +749 -507
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,77 +1,52 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="
|
|
3
|
+
<img src="assets/logo.png" alt="claude-scope logo" width="180" height="180"/>
|
|
4
4
|
|
|
5
5
|
# claude-scope
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Real-time statusline for Claude Code CLI
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/claude-scope)
|
|
10
|
+
[](https://www.npmjs.com/package/claude-scope)
|
|
10
11
|
[](LICENSE.md)
|
|
11
12
|
[](https://github.com/YuriNachos/claude-scope)
|
|
12
|
-
[](https://github.com/YuriNachos/claude-scope)
|
|
13
13
|
[](https://codecov.io/gh/YuriNachos/claude-scope)
|
|
14
|
+
[](https://github.com/YuriNachos/claude-scope)
|
|
14
15
|
|
|
15
|
-
**
|
|
16
|
-
|
|
17
|
-
</div>
|
|
16
|
+
**Track context, cost, git, docker, and more — right in your terminal**
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
[Quick Start](#-quick-start) · [Features](#-features) · [Themes](#-themes) · [Configuration](#-configuration) · [Docs](#-documentation)
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
<i>Real-time session analytics in your terminal — zero runtime dependencies, 14 widgets, 17 themes</i>
|
|
23
|
-
</p>
|
|
20
|
+
</div>
|
|
24
21
|
|
|
25
22
|
---
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- **14 customizable widgets** — model, context, cost, git, docker, and more
|
|
33
|
-
- **17 built-in themes** — from Dracula to Nord to Cyberpunk
|
|
34
|
-
- **12 display styles** — balanced, playful, compact, verbose, technical...
|
|
35
|
-
- **AI-friendly configuration** — just ask Claude to customize it!
|
|
24
|
+
<div align="center">
|
|
25
|
+
<img src="assets/demo.png" alt="claude-scope demo" width="800"/>
|
|
26
|
+
<br/>
|
|
27
|
+
<sub>claude-scope in action — model, context, cost, git, docker, system metrics and more</sub>
|
|
28
|
+
</div>
|
|
36
29
|
|
|
37
30
|
---
|
|
38
31
|
|
|
39
|
-
##
|
|
32
|
+
## 🚀 Quick Start
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
**Dracula Theme** (default)
|
|
44
|
-
```
|
|
45
|
-
Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
|
|
46
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
47
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
**Tokyo Night Theme**
|
|
51
|
-
```
|
|
52
|
-
Claude Opus 4.5 | 67% [████████] | +127/-42 | $1.24 | 2h 15m
|
|
53
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
54
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
34
|
+
```bash
|
|
35
|
+
npx -y claude-scope@latest install
|
|
55
36
|
```
|
|
56
37
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
main [+127 -42] | v0.8.16 | 💾 45.2k | 📄 1 📜 2 🔌 3 🪝 2
|
|
61
|
-
⚡ Nuxt (running) | 🐳 3/5 🟢 | Edits: 8 | Bash: 3 | Read: 12
|
|
62
|
-
```
|
|
38
|
+
This single command:
|
|
39
|
+
1. ✅ Adds statusLine to `~/.claude/settings.json`
|
|
40
|
+
2. ✅ Opens interactive configurator to choose layout, theme, and style
|
|
63
41
|
|
|
64
|
-
|
|
42
|
+
**Restart Claude Code — done!**
|
|
65
43
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Get up and running in 30 seconds:
|
|
44
|
+
<details>
|
|
45
|
+
<summary>📝 Manual installation</summary>
|
|
69
46
|
|
|
70
|
-
|
|
71
|
-
# 1. Install via npx (no installation required)
|
|
72
|
-
npx -y claude-scope@latest
|
|
47
|
+
Add to your `~/.claude/settings.json`:
|
|
73
48
|
|
|
74
|
-
|
|
49
|
+
```json
|
|
75
50
|
{
|
|
76
51
|
"statusLine": {
|
|
77
52
|
"type": "command",
|
|
@@ -79,115 +54,119 @@ npx -y claude-scope@latest
|
|
|
79
54
|
"padding": 0
|
|
80
55
|
}
|
|
81
56
|
}
|
|
82
|
-
|
|
83
|
-
# 3. Restart Claude Code — you're done! 🎉
|
|
84
57
|
```
|
|
85
58
|
|
|
86
|
-
|
|
87
|
-
- **Layout**: `rich` (3 lines)
|
|
88
|
-
- **Style**: `balanced`
|
|
89
|
-
- **Theme**: `dracula`
|
|
59
|
+
</details>
|
|
90
60
|
|
|
91
61
|
---
|
|
92
62
|
|
|
93
|
-
##
|
|
63
|
+
## 💡 Why claude-scope?
|
|
94
64
|
|
|
95
|
-
**claude-scope
|
|
65
|
+
**claude-scope** transforms your Claude Code CLI into a powerful command center. See everything you need at a glance:
|
|
96
66
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
**
|
|
67
|
+
| What you get | Why it matters |
|
|
68
|
+
|--------------|----------------|
|
|
69
|
+
| 📊 **Context usage** | Know when you're running low before it's too late |
|
|
70
|
+
| 💰 **Session cost** | Track spending in real-time |
|
|
71
|
+
| 🔀 **Git status** | Branch, changes, tags — no switching windows |
|
|
72
|
+
| 🐳 **Docker containers** | Monitor your stack without leaving the terminal |
|
|
73
|
+
| 🔧 **Active tools** | See what Claude is doing right now |
|
|
74
|
+
| 💻 **System metrics** | CPU, RAM, disk, network — all in one place |
|
|
105
75
|
|
|
106
|
-
|
|
107
|
-
>
|
|
108
|
-
> **Claude:** Sure! Adding poker widget and changing styles to playful...
|
|
109
|
-
>
|
|
110
|
-
> ✅ Done! Your statusline now shows poker hands with emojis.
|
|
76
|
+
---
|
|
111
77
|
|
|
112
|
-
|
|
78
|
+
## ✨ Highlights
|
|
113
79
|
|
|
114
|
-
**
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
80
|
+
- 🪶 **Zero runtime dependencies** — pure TypeScript, native Node.js only
|
|
81
|
+
- 🧩 **15 customizable widgets** — model, context, cost, git, docker, sysmon, and more
|
|
82
|
+
- 🎨 **17 built-in themes** — from Dracula to Nord to Cyberpunk
|
|
83
|
+
- 🎭 **12 display styles** — balanced, playful, compact, verbose, technical...
|
|
84
|
+
- 🤖 **AI-friendly configuration** — just ask Claude to customize it!
|
|
85
|
+
- ⚡ **Instant setup** — one command, works immediately
|
|
118
86
|
|
|
119
87
|
---
|
|
120
88
|
|
|
121
|
-
##
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
|
126
|
-
|
|
127
|
-
| **
|
|
128
|
-
| **
|
|
129
|
-
| **
|
|
130
|
-
| **
|
|
131
|
-
| **
|
|
132
|
-
| **
|
|
133
|
-
| **
|
|
134
|
-
| **
|
|
135
|
-
| **
|
|
136
|
-
| **
|
|
137
|
-
| **
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
|
89
|
+
## 🧩 Features
|
|
90
|
+
|
|
91
|
+
### Available Widgets
|
|
92
|
+
|
|
93
|
+
| Widget | Description | Example |
|
|
94
|
+
|--------|-------------|---------|
|
|
95
|
+
| **model** | Current Claude model | `Opus 4.5` |
|
|
96
|
+
| **context** | Context usage with progress bar | `42% [████████░░░░░░░░░]` |
|
|
97
|
+
| **cost** | Session cost | `$33.05` |
|
|
98
|
+
| **duration** | Session time | `2h 10m 20s` |
|
|
99
|
+
| **lines** | Lines added/removed | `+382/-112` |
|
|
100
|
+
| **git** | Branch and tracking | `main...origin/main` |
|
|
101
|
+
| **git-tag** | Latest tag | `v0.8.49` |
|
|
102
|
+
| **cache-metrics** | Cache statistics | `81k cache` |
|
|
103
|
+
| **config-count** | Config files count | `CLAUDE.md:1 │ MCPs:5` |
|
|
104
|
+
| **active-tools** | Running/completed tools | `Bash (1 running, 10 done)` |
|
|
105
|
+
| **dev-server** | Dev server status | `⚡ Nuxt (running)` |
|
|
106
|
+
| **docker** | Docker containers | `Docker: 1 🟢` |
|
|
107
|
+
| **sysmon** | System metrics | `CPU 45% │ RAM 19GB │ Disk 2%` |
|
|
108
|
+
| **poker** | Easter egg | `🃏 A♠ K♠` |
|
|
109
|
+
| **cwd** | Current directory | `~/projects/app` |
|
|
110
|
+
|
|
111
|
+
### 📐 Layout Presets
|
|
112
|
+
|
|
113
|
+
| Preset | Lines | Best for |
|
|
114
|
+
|--------|-------|----------|
|
|
115
|
+
| **Rich** | 4 | Full information, large terminals |
|
|
116
|
+
| **Balanced** | 2 | Most users, good balance |
|
|
117
|
+
| **Compact** | 1 | Minimal footprint |
|
|
146
118
|
|
|
147
119
|
---
|
|
148
120
|
|
|
149
|
-
## Themes
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
|
160
|
-
|
|
161
|
-
|
|
|
162
|
-
| `one-dark-pro` |
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
121
|
+
## 🎨 Themes
|
|
122
|
+
|
|
123
|
+
<div align="center">
|
|
124
|
+
<img src="assets/themes.png" alt="claude-scope themes" width="700"/>
|
|
125
|
+
<br/>
|
|
126
|
+
<sub>Same data, different themes — find your style</sub>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
### 17 Built-in Themes
|
|
130
|
+
|
|
131
|
+
| Category | Themes |
|
|
132
|
+
|----------|--------|
|
|
133
|
+
| 🔥 **Popular** | `dracula`, `tokyo-night`, `nord`, `monokai` |
|
|
134
|
+
| 💻 **IDE** | `vscode-dark-plus`, `one-dark-pro`, `github-dark-dimmed` |
|
|
135
|
+
| 🌸 **Pastel** | `catppuccin-mocha`, `rose-pine` |
|
|
136
|
+
| ⚡ **Vibrant** | `cyberpunk-neon` |
|
|
137
|
+
| 👔 **Professional** | `professional-blue`, `solarized-dark` |
|
|
138
|
+
| 🌫️ **Minimal** | `gray`, `muted-gray`, `slate-blue`, `dusty-sage` |
|
|
139
|
+
| 🎯 **Semantic** | `semantic-classic` |
|
|
140
|
+
|
|
141
|
+
Switch themes instantly:
|
|
142
|
+
```bash
|
|
143
|
+
npx -y claude-scope@latest quick-config
|
|
144
|
+
```
|
|
172
145
|
|
|
173
146
|
---
|
|
174
147
|
|
|
175
|
-
## Configuration
|
|
148
|
+
## ⚙️ Configuration
|
|
176
149
|
|
|
177
|
-
###
|
|
150
|
+
### 🤖 AI-Powered Customization
|
|
178
151
|
|
|
179
|
-
|
|
152
|
+
**claude-scope is built to work with AI!** Just ask Claude:
|
|
180
153
|
|
|
181
|
-
```
|
|
182
|
-
|
|
154
|
+
```
|
|
155
|
+
"Add the docker widget to line 3"
|
|
156
|
+
"Switch theme to nord"
|
|
157
|
+
"Make it more playful"
|
|
158
|
+
"Show only model and context"
|
|
159
|
+
"Add system monitoring"
|
|
183
160
|
```
|
|
184
161
|
|
|
185
|
-
|
|
186
|
-
- **Layout**: Rich (3 lines), Balanced (2 lines), Compact (1 line)
|
|
187
|
-
- **Theme**: 17 themes with live preview
|
|
188
|
-
- **Style**: balanced, playful, compact, verbose, technical...
|
|
162
|
+
Claude automatically edits `~/.claude-scope/config.json` — changes take effect instantly.
|
|
189
163
|
|
|
190
|
-
|
|
164
|
+
**How it works:**
|
|
165
|
+
- Config contains `$aiDocs` field linking to [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md)
|
|
166
|
+
- AI understands all 15 widgets, 12 styles, and 17 themes
|
|
167
|
+
- Natural language → instant configuration
|
|
168
|
+
|
|
169
|
+
### 📝 Manual Configuration
|
|
191
170
|
|
|
192
171
|
Edit `~/.claude-scope/config.json` directly:
|
|
193
172
|
|
|
@@ -197,71 +176,48 @@ Edit `~/.claude-scope/config.json` directly:
|
|
|
197
176
|
"$aiDocs": "https://github.com/YuriNachos/claude-scope/blob/main/AI-CONFIG-GUIDE.md",
|
|
198
177
|
"lines": {
|
|
199
178
|
"0": [
|
|
200
|
-
{ "id": "model", "style": "balanced", "colors": {
|
|
201
|
-
{ "id": "context", "style": "balanced", "colors": {
|
|
179
|
+
{ "id": "model", "style": "balanced", "colors": { ... } },
|
|
180
|
+
{ "id": "context", "style": "balanced", "colors": { ... } }
|
|
181
|
+
],
|
|
182
|
+
"1": [
|
|
183
|
+
{ "id": "git", "style": "balanced", "colors": { ... } }
|
|
202
184
|
]
|
|
203
185
|
}
|
|
204
186
|
}
|
|
205
187
|
```
|
|
206
188
|
|
|
207
|
-
See [AI-CONFIG-GUIDE](AI-CONFIG-GUIDE.md) for complete
|
|
189
|
+
See [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) for complete reference.
|
|
208
190
|
|
|
209
191
|
---
|
|
210
192
|
|
|
211
|
-
##
|
|
193
|
+
## 📚 Documentation
|
|
212
194
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
<summary><b>Layout & Line System</b></summary>
|
|
221
|
-
|
|
222
|
-
- **Line 0**: Primary info (model, context, cost, duration, lines, git, dev-server, docker)
|
|
223
|
-
- **Line 1**: Extended (git-tag, config-count)
|
|
224
|
-
- **Line 2**: Activity (cache-metrics, active-tools)
|
|
225
|
-
- **Line 4**: Poker widget (easter egg)
|
|
226
|
-
- **Line 5**: Empty line widget
|
|
227
|
-
</details>
|
|
228
|
-
|
|
229
|
-
<details>
|
|
230
|
-
<summary><b>Widget System</b></summary>
|
|
231
|
-
|
|
232
|
-
Each widget implements the `IWidget` interface with lifecycle methods:
|
|
233
|
-
- `initialize()` — Set up the widget
|
|
234
|
-
- `render()` — Generate output
|
|
235
|
-
- `update()` — Handle new data
|
|
236
|
-
- `isEnabled()` — Check if active
|
|
237
|
-
|
|
238
|
-
Widgets gracefully degrade on errors — if something fails, it returns `null`.
|
|
239
|
-
</details>
|
|
195
|
+
| Topic | Description |
|
|
196
|
+
|-------|-------------|
|
|
197
|
+
| [AI-CONFIG-GUIDE.md](AI-CONFIG-GUIDE.md) | Complete configuration reference for AI |
|
|
198
|
+
| [ARCHITECTURE.md](docs/ARCHITECTURE.md) | System architecture, data flow |
|
|
199
|
+
| [WIDGETS.md](docs/WIDGETS.md) | All widgets, styles, examples |
|
|
200
|
+
| [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) | Theme system, customization |
|
|
201
|
+
| [CHANGELOG.md](docs/CHANGELOG.md) | Version history, roadmap |
|
|
240
202
|
|
|
241
203
|
---
|
|
242
204
|
|
|
243
|
-
##
|
|
205
|
+
## 📋 Requirements
|
|
244
206
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
| Architecture, data flow, providers | [ARCHITECTURE.md](docs/ARCHITECTURE.md) |
|
|
248
|
-
| All widgets, styles, examples | [WIDGETS.md](docs/WIDGETS.md) |
|
|
249
|
-
| Theme system, customization | [THEME-SYSTEM.md](docs/THEME-SYSTEM.md) |
|
|
250
|
-
| Formatters, ANSI colors | [FORMATTERS.md](docs/FORMATTERS.md) |
|
|
251
|
-
| Version history, roadmap | [CHANGELOG.md](docs/CHANGELOG.md) |
|
|
207
|
+
- **Node.js** 18+
|
|
208
|
+
- **Claude Code** CLI
|
|
252
209
|
|
|
253
210
|
---
|
|
254
211
|
|
|
255
|
-
##
|
|
212
|
+
## 🤝 Contributing
|
|
256
213
|
|
|
257
|
-
|
|
258
|
-
- **Claude Code** CLI
|
|
214
|
+
Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
259
215
|
|
|
260
216
|
---
|
|
261
217
|
|
|
262
|
-
## License
|
|
218
|
+
## 📄 License
|
|
263
219
|
|
|
264
|
-
[MIT](LICENSE.md) —
|
|
220
|
+
[MIT](LICENSE.md) — use freely in your projects.
|
|
265
221
|
|
|
266
222
|
---
|
|
267
223
|
|
|
@@ -269,6 +225,10 @@ Widgets gracefully degrade on errors — if something fails, it returns `null`.
|
|
|
269
225
|
|
|
270
226
|
**Made with ❤️ by [YuriNachos](https://github.com/YuriNachos)**
|
|
271
227
|
|
|
272
|
-
[GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [
|
|
228
|
+
[GitHub](https://github.com/YuriNachos/claude-scope) · [Issues](https://github.com/YuriNachos/claude-scope/issues) · [npm](https://www.npmjs.com/package/claude-scope)
|
|
229
|
+
|
|
230
|
+
<br/>
|
|
231
|
+
|
|
232
|
+
If you find claude-scope useful, consider giving it a ⭐
|
|
273
233
|
|
|
274
234
|
</div>
|