ccclub 0.2.42 → 0.2.43
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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -879,7 +879,9 @@ async function printActivity(apiUrl, code, range) {
|
|
|
879
879
|
const user = active[i];
|
|
880
880
|
const buckets = allBuckets[i];
|
|
881
881
|
const spark = buckets.map((v) => {
|
|
882
|
-
|
|
882
|
+
if (v === 0) return SPARK_CHARS[0];
|
|
883
|
+
const normalized = Math.sqrt(v / globalMax);
|
|
884
|
+
const idx = 1 + Math.min(Math.floor(normalized * (SPARK_CHARS.length - 1)), SPARK_CHARS.length - 2);
|
|
883
885
|
return SPARK_CHARS[idx];
|
|
884
886
|
}).join("");
|
|
885
887
|
const total = user.blocks.reduce((s, b) => s + b.cost, 0);
|
|
@@ -1104,7 +1106,7 @@ async function hookCommand() {
|
|
|
1104
1106
|
}
|
|
1105
1107
|
|
|
1106
1108
|
// src/index.ts
|
|
1107
|
-
var VERSION = "0.2.
|
|
1109
|
+
var VERSION = "0.2.43";
|
|
1108
1110
|
startUpdateCheck(VERSION);
|
|
1109
1111
|
var program = new Command();
|
|
1110
1112
|
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version(VERSION);
|