@cc-status-line/cli 0.2.0 → 0.3.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.
Files changed (3) hide show
  1. package/README.md.full +30 -13
  2. package/index.js +2 -1
  3. package/package.json +4 -5
package/README.md.full CHANGED
@@ -1,6 +1,9 @@
1
1
  # cc-status
2
2
 
3
- > Multi-line, mode-switchable status line for [Claude Code](https://docs.claude.com/en/docs/claude-code) — written in Rust, no daemon, ~20 ms render.
3
+ > Multi-line, mode-switchable status line for [Claude Code](https://docs.claude.com/en/docs/claude-code) — written in Rust, with optional daemon, ~140ms cold render.
4
+
5
+ 🌐 **Site**: <https://hankegui.github.io/cc-status>
6
+ 🐙 **Source**: <https://github.com/hankeGui/cc-status>
4
7
 
5
8
  ```
6
9
  ~/hanke-dev/cc-status main Claude Opus 4.7 ctx 86% █████▏ 154.6k/950k
@@ -12,6 +15,8 @@ ctx 86% █████▏ 154.6k/950k ↑154.6k ↓185 +687 🎯99% cache 4:4
12
15
  skills: jira×3 wiki×1 mcp: github×2
13
16
  ```
14
17
 
18
+ > Run `bash scripts/screenshots.sh` (with `freeze` on PATH) to regenerate the PNG/SVG screenshots embedded above.
19
+
15
20
  ## Why
16
21
 
17
22
  Most Claude Code status lines stop at "model name + ctx percentage." That hides what actually drives cost and behavior:
@@ -130,20 +135,28 @@ cc-status follows a "passive bar + on-demand panel" design. You don't need to re
130
135
  The bar at the top of every Claude Code prompt. Choose a layout:
131
136
 
132
137
  ```sh
133
- ccs mode compact # one line, the basics
134
- ccs mode detailed # three lines, all metrics
135
- ccs mode debug # six lines, one metric per line with labels
138
+ ccs mode compact # 1 line, the basics (default)
139
+ ccs mode minimal # 1 line, just dir + ctx
140
+ ccs mode detailed # 3 lines, all metrics
141
+ ccs mode cost # 2 lines focused on $ spent
142
+ ccs mode tokens # 3 lines focused on token flow
143
+ ccs mode tools # 3 lines focused on Skill / MCP usage
144
+ ccs mode debug # 8 lines, one metric per line with labels
136
145
  ```
137
146
 
138
- Or build your own:
147
+ Or build your own without rewriting:
139
148
 
140
149
  ```sh
141
- ccs segments # see all available segments
142
- ccs mode add mine -l "{dir} {git} {ctx}" \
143
- -l "{last_turn} {hit_rate}" # define a 2-line mode
144
- ccs mode mine # switch to it
145
- ccs mode list # show all modes
146
- ccs mode rm mine # delete one
150
+ ccs segments # see all segments
151
+ ccs mode append cost_today # append a new line to current mode
152
+ ccs mode append hit_rate burn # append several segments together
153
+ ccs mode append --line 1 git # append to an existing line
154
+ ccs mode append --mode detailed cost_today # target a specific mode
155
+ ccs mode edit # full edit in $EDITOR
156
+ ccs mode add mine -l "{dir} {git}" \
157
+ -l "{last_turn} {hit_rate}" # define a brand-new mode
158
+ ccs mode list # show all modes
159
+ ccs mode rm mine # delete one
147
160
  ```
148
161
 
149
162
  ### 2. The detail panel (`ccs status`)
@@ -284,11 +297,15 @@ file; subsequent renders only read newly-appended bytes.
284
297
 
285
298
  ## Roadmap
286
299
 
287
- - [ ] Daemon mode (Unix socket) for sub-ms cold start
288
- - [ ] Cost segment with per-model pricing
300
+ - [x] Daemon mode (Unix socket) for sub-ms cold start
301
+ - [x] Cost segment with per-model pricing
302
+ - [x] Cross-session cost dashboard (`ccs cost`)
303
+ - [x] Auto-update (`ccs upgrade`)
304
+ - [x] Shell completions
289
305
  - [ ] Per-session colors / titles (parallel CC instances)
290
306
  - [ ] Pace-aware quota burn warning
291
307
  - [ ] Plugin segments (custom shell commands)
308
+ - [ ] Re-enable Windows builds
292
309
 
293
310
  ## License
294
311
 
package/index.js CHANGED
@@ -20,7 +20,8 @@ function resolveBinary() {
20
20
  "darwin-arm64": "@cc-status-line/darwin-arm64",
21
21
  "linux-x64": "@cc-status-line/linux-x64",
22
22
  "linux-arm64": "@cc-status-line/linux-arm64",
23
- "win32-x64": "@cc-status-line/win32-x64",
23
+ // win32-x64 is temporarily disabled. Windows users should build
24
+ // from source: https://github.com/hankeGui/cc-status
24
25
  };
25
26
 
26
27
  const key = `${platform}-${arch}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-status-line/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Multi-line, mode-switchable status line for Claude Code (Rust binary, npm-distributed)",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -35,9 +35,8 @@
35
35
  "postinstall": "node postinstall.js || true"
36
36
  },
37
37
  "optionalDependencies": {
38
- "@cc-status-line/darwin-arm64": "0.2.0",
39
- "@cc-status-line/linux-x64": "0.2.0",
40
- "@cc-status-line/linux-arm64": "0.2.0",
41
- "@cc-status-line/win32-x64": "0.2.0"
38
+ "@cc-status-line/darwin-arm64": "0.3.0",
39
+ "@cc-status-line/linux-x64": "0.3.0",
40
+ "@cc-status-line/linux-arm64": "0.3.0"
42
41
  }
43
42
  }