claude-scope 0.8.29 → 0.8.31
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/dist/claude-scope.cjs +4 -22
- package/package.json +3 -4
package/dist/claude-scope.cjs
CHANGED
|
@@ -1559,73 +1559,52 @@ var init_constants = __esm({
|
|
|
1559
1559
|
"use strict";
|
|
1560
1560
|
TIME = {
|
|
1561
1561
|
/** Milliseconds per second */
|
|
1562
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1563
1562
|
MS_PER_SECOND: 1e3,
|
|
1564
1563
|
/** Seconds per minute */
|
|
1565
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1566
1564
|
SECONDS_PER_MINUTE: 60,
|
|
1567
1565
|
/** Seconds per hour */
|
|
1568
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1569
1566
|
SECONDS_PER_HOUR: 3600
|
|
1570
1567
|
};
|
|
1571
1568
|
DEFAULTS = {
|
|
1572
1569
|
/** Default separator between widgets */
|
|
1573
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1574
1570
|
SEPARATOR: " ",
|
|
1575
1571
|
/** Default width for progress bars in characters */
|
|
1576
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1577
1572
|
PROGRESS_BAR_WIDTH: 20
|
|
1578
1573
|
};
|
|
1579
1574
|
ANSI_COLORS = {
|
|
1580
1575
|
/** Green color */
|
|
1581
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1582
1576
|
GREEN: "\x1B[32m",
|
|
1583
1577
|
/** Yellow color */
|
|
1584
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1585
1578
|
YELLOW: "\x1B[33m",
|
|
1586
1579
|
/** Red color */
|
|
1587
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1588
1580
|
RED: "\x1B[31m",
|
|
1589
1581
|
/** Reset color */
|
|
1590
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1591
1582
|
RESET: "\x1B[0m"
|
|
1592
1583
|
};
|
|
1593
1584
|
DEMO_DATA = {
|
|
1594
1585
|
/** Demo session cost in USD */
|
|
1595
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1596
1586
|
COST_USD: 0.42,
|
|
1597
1587
|
/** Demo session duration in milliseconds (~1h 1m 5s) */
|
|
1598
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1599
1588
|
DURATION_MS: 3665e3,
|
|
1600
1589
|
/** Demo API duration in milliseconds (~50m) */
|
|
1601
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1602
1590
|
API_DURATION_MS: 3e6,
|
|
1603
1591
|
/** Demo lines added */
|
|
1604
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1605
1592
|
LINES_ADDED: 142,
|
|
1606
1593
|
/** Demo lines removed */
|
|
1607
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1608
1594
|
LINES_REMOVED: 27,
|
|
1609
1595
|
/** Demo context window size in tokens */
|
|
1610
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1611
1596
|
CONTEXT_WINDOW_SIZE: 2e5,
|
|
1612
1597
|
/** Demo total input tokens */
|
|
1613
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1614
1598
|
TOTAL_INPUT_TOKENS: 185e3,
|
|
1615
1599
|
/** Demo total output tokens */
|
|
1616
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1617
1600
|
TOTAL_OUTPUT_TOKENS: 5e4,
|
|
1618
1601
|
/** Demo current input tokens */
|
|
1619
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1620
1602
|
CURRENT_INPUT_TOKENS: 8e4,
|
|
1621
1603
|
/** Demo current output tokens */
|
|
1622
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1623
1604
|
CURRENT_OUTPUT_TOKENS: 3e4,
|
|
1624
1605
|
/** Demo cache creation tokens */
|
|
1625
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1626
1606
|
CACHE_CREATION_TOKENS: 1e3,
|
|
1627
1607
|
/** Demo cache read tokens */
|
|
1628
|
-
// biome-ignore lint/style/useNamingConvention: UPPER_CASE is standard for constants
|
|
1629
1608
|
CACHE_READ_TOKENS: 15e3
|
|
1630
1609
|
};
|
|
1631
1610
|
DEFAULT_PROGRESS_BAR_WIDTH = DEFAULTS.PROGRESS_BAR_WIDTH;
|
|
@@ -3435,6 +3414,7 @@ var init_cost_widget = __esm({
|
|
|
3435
3414
|
}
|
|
3436
3415
|
renderWithData(data, _context) {
|
|
3437
3416
|
if (!data.cost || data.cost.total_cost_usd === void 0) return null;
|
|
3417
|
+
if (data.cost.total_cost_usd === 0) return null;
|
|
3438
3418
|
const renderData = {
|
|
3439
3419
|
costUsd: data.cost.total_cost_usd
|
|
3440
3420
|
};
|
|
@@ -4047,6 +4027,7 @@ var init_duration_widget = __esm({
|
|
|
4047
4027
|
}
|
|
4048
4028
|
renderWithData(data, _context) {
|
|
4049
4029
|
if (!data.cost || data.cost.total_duration_ms === void 0) return null;
|
|
4030
|
+
if (data.cost.total_duration_ms === 0) return null;
|
|
4050
4031
|
const renderData = {
|
|
4051
4032
|
durationMs: data.cost.total_duration_ms
|
|
4052
4033
|
};
|
|
@@ -4530,6 +4511,7 @@ var init_lines_widget = __esm({
|
|
|
4530
4511
|
renderWithData(data, _context) {
|
|
4531
4512
|
const added = data.cost?.total_lines_added ?? 0;
|
|
4532
4513
|
const removed = data.cost?.total_lines_removed ?? 0;
|
|
4514
|
+
if (added === 0 && removed === 0) return null;
|
|
4533
4515
|
const renderData = { added, removed };
|
|
4534
4516
|
return this.styleFn(renderData, this.colors.lines);
|
|
4535
4517
|
}
|
|
@@ -7117,7 +7099,7 @@ var init_mjs = __esm({
|
|
|
7117
7099
|
"node_modules/signal-exit/dist/mjs/index.js"() {
|
|
7118
7100
|
init_signals();
|
|
7119
7101
|
processOk = (process4) => !!process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
|
|
7120
|
-
kExitEmitter = Symbol.for("signal-exit emitter");
|
|
7102
|
+
kExitEmitter = /* @__PURE__ */ Symbol.for("signal-exit emitter");
|
|
7121
7103
|
global = globalThis;
|
|
7122
7104
|
ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
7123
7105
|
Emitter = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-scope",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.31",
|
|
4
4
|
"description": "Claude Code plugin for session status and analytics",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,15 +28,14 @@
|
|
|
28
28
|
"dev": "tsx src/index.ts",
|
|
29
29
|
"prepare": "husky",
|
|
30
30
|
"lint": "biome check .",
|
|
31
|
-
"lint:fix": "biome check --write ."
|
|
32
|
-
"lint:file-size": "node scripts/check-file-size.js"
|
|
31
|
+
"lint:fix": "biome check --write ."
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@biomejs/biome": "^2.3.11",
|
|
36
35
|
"@types/node": "^22.10.2",
|
|
37
36
|
"c8": "^10.1.3",
|
|
38
37
|
"chai": "^6.2.2",
|
|
39
|
-
"esbuild": "^0.
|
|
38
|
+
"esbuild": "^0.27.2",
|
|
40
39
|
"husky": "^9.1.7",
|
|
41
40
|
"lint-staged": "^16.2.7",
|
|
42
41
|
"rimraf": "^6.1.2",
|