@daliovic/cc-statusline 1.1.0 → 1.1.2
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 +3 -2
- package/dist/statusline.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@ A minimal, informative statusline for [Claude Code](https://claude.ai/claude-cod
|
|
|
12
12
|
- **Context usage** - Percentage + token count (turns orange at 75%)
|
|
13
13
|
- **Usage limits** - 5-hour session and 7-day limits with reset times
|
|
14
14
|
- **Budget delta** - Shows if you're under (▼ green) or over (▲ red) your expected usage rate
|
|
15
|
+
- **Customizable** - Interactive wizard to configure colors, visibility, and thresholds
|
|
15
16
|
|
|
16
17
|
## Installation
|
|
17
18
|
|
|
@@ -89,10 +90,10 @@ Config is saved to `~/.claude/cc-statusline.json`.
|
|
|
89
90
|
🤖 Model │ 📊 Context% Tokens │ ⏱ 5hr% Time Delta/7day% Time Delta
|
|
90
91
|
```
|
|
91
92
|
|
|
92
|
-
**Colors
|
|
93
|
+
**Default Colors** (customizable via `--config`):
|
|
93
94
|
- Cyan: Model name and icons
|
|
94
95
|
- Gray: Percentages and times
|
|
95
|
-
- Orange: Context at
|
|
96
|
+
- Orange: Context at threshold
|
|
96
97
|
- Green ▼: Under budget
|
|
97
98
|
- Red ▲: Over budget
|
|
98
99
|
|
package/dist/statusline.js
CHANGED
|
@@ -3,12 +3,11 @@ import { readFileSync, writeFileSync, existsSync } from "node:fs";
|
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { loadConfig } from "./config.js";
|
|
6
|
-
// Handle --config flag
|
|
6
|
+
// Handle --config flag first and exit
|
|
7
7
|
if (process.argv.includes("--config")) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
main().catch(() => process.exit(1));
|
|
8
|
+
const { runWizard } = await import("./wizard.js");
|
|
9
|
+
await runWizard();
|
|
10
|
+
process.exit(0);
|
|
12
11
|
}
|
|
13
12
|
// Load user config
|
|
14
13
|
const userConfig = loadConfig();
|
|
@@ -244,3 +243,5 @@ async function main() {
|
|
|
244
243
|
// Output
|
|
245
244
|
console.log(segments.join(` ${color.dim}\u{2502}${color.reset} `));
|
|
246
245
|
}
|
|
246
|
+
// Run main
|
|
247
|
+
main().catch(() => process.exit(1));
|