cc-api-statusline 0.2.0 → 0.2.1
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 +2 -2
- package/dist/cc-api-statusline.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -513,7 +513,7 @@ bun run start
|
|
|
513
513
|
bun run example
|
|
514
514
|
|
|
515
515
|
# Run tests
|
|
516
|
-
bun test
|
|
516
|
+
bun run test
|
|
517
517
|
|
|
518
518
|
# Lint
|
|
519
519
|
bun run lint
|
|
@@ -577,7 +577,7 @@ bun run check
|
|
|
577
577
|
|
|
578
578
|
## Testing
|
|
579
579
|
|
|
580
|
-
- **
|
|
580
|
+
- **578 tests** across **34 test files**
|
|
581
581
|
- Unit tests for all services, renderers, and shared utilities
|
|
582
582
|
- Core execution path tests (A/B/C/D)
|
|
583
583
|
- E2E smoke tests with isolated environments
|
|
@@ -4,7 +4,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "cc-api-statusline",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.1",
|
|
8
8
|
description: "Claude Code statusline tool that polls API usage from third-party proxy backends",
|
|
9
9
|
type: "module",
|
|
10
10
|
bin: {
|
|
@@ -1500,11 +1500,11 @@ var ANSI_COLORS = {
|
|
|
1500
1500
|
grey: "\x1B[90m"
|
|
1501
1501
|
};
|
|
1502
1502
|
var THEME_COLORS = {
|
|
1503
|
-
cool: "#
|
|
1504
|
-
comfortable: "#
|
|
1505
|
-
warm: "#
|
|
1506
|
-
hot: "#
|
|
1507
|
-
critical: "#
|
|
1503
|
+
cool: "#56B6C2",
|
|
1504
|
+
comfortable: "#6BAF8D",
|
|
1505
|
+
warm: "#C9A84C",
|
|
1506
|
+
hot: "#CB7E55",
|
|
1507
|
+
critical: "#C96B6B"
|
|
1508
1508
|
};
|
|
1509
1509
|
var ANSI_RESET = "\x1B[0m";
|
|
1510
1510
|
var ANSI_DIM = "\x1B[2m";
|
|
@@ -2310,7 +2310,7 @@ function renderDivider(divider) {
|
|
|
2310
2310
|
const padding = divider.padding ?? 1;
|
|
2311
2311
|
const pad = " ".repeat(padding);
|
|
2312
2312
|
const padded = `${pad}${text}${pad}`;
|
|
2313
|
-
return
|
|
2313
|
+
return ansiColor(padded, divider.color ?? "#555753");
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
2316
|
// src/services/capabilities.ts
|