@thariman/ccstatusline 2.2.27 → 2.2.28
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 +33 -11
- package/dist/ccstatusline.js +1945 -1856
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,11 +14,19 @@
|
|
|
14
14
|
**🎨 A highly customizable status line formatter for Claude Code CLI**
|
|
15
15
|
*Display model info, git branch, token usage, and other metrics in your terminal*
|
|
16
16
|
|
|
17
|
-
[
|
|
18
|
-
[
|
|
17
|
+
> **🔱 Fork notice:** This is [@thariman](https://github.com/thariman)'s fork of
|
|
18
|
+
> [sirmalloc/ccstatusline](https://github.com/sirmalloc/ccstatusline), published on npm as
|
|
19
|
+
> [`@thariman/ccstatusline`](https://www.npmjs.com/package/@thariman/ccstatusline). It adds
|
|
20
|
+
> **multi-account support**: when running multiple Claude accounts on one machine via
|
|
21
|
+
> `CLAUDE_CONFIG_DIR`, each session's status line shows its own account's usage (per-config-dir
|
|
22
|
+
> macOS keychain lookup), and concurrent sessions no longer thrash each other's usage cache
|
|
23
|
+
> (per-config-dir cache/lock files).
|
|
24
|
+
|
|
25
|
+
[](https://www.npmjs.com/package/@thariman/ccstatusline)
|
|
26
|
+
[](https://www.npmjs.com/package/@thariman/ccstatusline)
|
|
19
27
|
[](https://github.com/sirmalloc/ccstatusline/blob/main/LICENSE)
|
|
20
|
-
[](https://nodejs.org)
|
|
29
|
+
[](https://packagephobia.com/result?p=@thariman/ccstatusline)
|
|
22
30
|
[](https://github.com/sirmalloc/ccstatusline/graphs/commit-activity)
|
|
23
31
|
|
|
24
32
|
[](https://github.com/hesreallyhim/awesome-claude-code)
|
|
@@ -47,6 +55,12 @@
|
|
|
47
55
|
|
|
48
56
|
## 🆕 Recent Updates
|
|
49
57
|
|
|
58
|
+
### v2.2.28 - Multi-account support (fork)
|
|
59
|
+
|
|
60
|
+
- **👥 Multi-account usage** - Sessions launched with different `CLAUDE_CONFIG_DIR` values each show their own account's usage: the macOS keychain lookup now derives the per-config-dir service name (`Claude Code-credentials-<sha256(dir)[:8]>`) instead of always reading the default account's entry.
|
|
61
|
+
- **🗂️ Per-account usage cache** - The usage cache and fetch lock are keyed per config dir, so concurrent sessions from different accounts no longer thrash each other's cache or trigger spurious timeout states.
|
|
62
|
+
- **📦 Scoped package** - Published as `@thariman/ccstatusline`; the TUI installer and update checker follow the scoped package.
|
|
63
|
+
|
|
50
64
|
### v2.2.27 - Portable configuration import and export
|
|
51
65
|
|
|
52
66
|
- **📦 Config import/export** - Export the current TUI configuration to JSON, validate and preview imports, then replace all settings or merge only supplied fields while preserving local installation metadata and leaving the result unsaved for review.
|
|
@@ -299,10 +313,10 @@ The localizations in this section are third-party forks maintained outside this
|
|
|
299
313
|
|
|
300
314
|
```bash
|
|
301
315
|
# Run the configuration TUI with npm
|
|
302
|
-
npx -y ccstatusline@latest
|
|
316
|
+
npx -y @thariman/ccstatusline@latest
|
|
303
317
|
|
|
304
318
|
# Or with Bun (faster)
|
|
305
|
-
bunx -y ccstatusline@latest
|
|
319
|
+
bunx -y @thariman/ccstatusline@latest
|
|
306
320
|
```
|
|
307
321
|
|
|
308
322
|
Both commands launch the same TUI. During the initial setup flow, choose **Pinned global install** if you want Claude Code to stay on the ccstatusline version you are running instead of following `@latest`; the TUI will install that version globally with npm or Bun and write the pinned `ccstatusline` command to Claude Code settings. After a pinned install, you can run `ccstatusline` directly to launch the TUI in the future.
|
|
@@ -345,20 +359,28 @@ When you install from the TUI, ccstatusline writes a `statusLine` command object
|
|
|
345
359
|
{
|
|
346
360
|
"statusLine": {
|
|
347
361
|
"type": "command",
|
|
348
|
-
"command": "npx -y ccstatusline@latest",
|
|
362
|
+
"command": "npx -y @thariman/ccstatusline@latest",
|
|
349
363
|
"padding": 0,
|
|
350
364
|
"refreshInterval": 10
|
|
351
365
|
}
|
|
352
366
|
}
|
|
353
367
|
```
|
|
354
368
|
|
|
369
|
+
> 💡 **Default setting used on this fork's machines** (in each account's `settings.json`,
|
|
370
|
+
> i.e. `~/.claude/settings.json` and any `CLAUDE_CONFIG_DIR` directory's `settings.json`):
|
|
371
|
+
> ```json
|
|
372
|
+
> "statusLine": { "type": "command", "command": "bunx -y @thariman/ccstatusline@latest", "padding": 0 }
|
|
373
|
+
> ```
|
|
374
|
+
> The account each status line reports on is selected by the `CLAUDE_CONFIG_DIR` the Claude Code
|
|
375
|
+
> session was launched with — the command itself is identical for every account.
|
|
376
|
+
|
|
355
377
|
`refreshInterval` is written only when your Claude Code version supports it (>=2.1.97). The TUI can set it to `1-60` seconds, or remove it by leaving the input empty.
|
|
356
378
|
|
|
357
379
|
Other supported command values are:
|
|
358
|
-
- `bunx -y ccstatusline@latest`
|
|
380
|
+
- `bunx -y @thariman/ccstatusline@latest`
|
|
359
381
|
- `ccstatusline` (for self-managed/global installs)
|
|
360
382
|
|
|
361
|
-
For pinned installs, launch the TUI with `npx -y ccstatusline@latest` or `bunx -y ccstatusline@latest`, then choose **Pinned global install**. The TUI pins the active version by installing it globally and writing `"command": "ccstatusline"` to `settings.json`; afterward, you can run `ccstatusline` directly to open the TUI.
|
|
383
|
+
For pinned installs, launch the TUI with `npx -y @thariman/ccstatusline@latest` or `bunx -y @thariman/ccstatusline@latest`, then choose **Pinned global install**. The TUI pins the active version by installing it globally and writing `"command": "ccstatusline"` to `settings.json`; afterward, you can run `ccstatusline` directly to open the TUI.
|
|
362
384
|
|
|
363
385
|
</details>
|
|
364
386
|
|
|
@@ -433,8 +455,8 @@ Give a ⭐ if this project helped you!
|
|
|
433
455
|
[](https://github.com/sirmalloc/ccstatusline/network/members)
|
|
434
456
|
[](https://github.com/sirmalloc/ccstatusline/watchers)
|
|
435
457
|
|
|
436
|
-
[](https://www.npmjs.com/package/@thariman/ccstatusline)
|
|
459
|
+
[](https://www.npmjs.com/package/@thariman/ccstatusline)
|
|
438
460
|
[](https://github.com/sirmalloc/ccstatusline/blob/main/LICENSE)
|
|
439
461
|
[](https://bun.sh)
|
|
440
462
|
|