ccus-cli 0.1.0 → 0.1.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 CHANGED
@@ -21,12 +21,6 @@
21
21
  npm install -g ccus-cli
22
22
  ```
23
23
 
24
- 安装后 PATH 上即可使用 `ccus` 命令。一次性命令(如 `dashboard` / `export`)也可以用 `npx`:
25
-
26
- ```bash
27
- npx ccus-cli export
28
- ```
29
-
30
24
  要求 Node.js >= 20。
31
25
 
32
26
  ## 快速开始
@@ -199,7 +199,7 @@ function renderDailyUserRequestChart(people, dailyIndex, dateAxis) {
199
199
  * 用横向条形图对比每个人的「周使用量(7 天额度)峰值」。
200
200
  *
201
201
  * 7 天额度是 Claude 给出的滚动周额度使用率,峰值代表这段时间里每个人最接近用满周额度的程度。
202
- * 条长按当前样本里的最大峰值做归一,方便在数值都偏小时也能横向比较;右侧仍标注绝对百分比。
202
+ * 条长按固定的 100% 满刻度归一,直接反映绝对使用率水平;右侧仍标注绝对百分比。
203
203
  */
204
204
  function renderSevenDayPeakChart(people) {
205
205
  const ranked = people
@@ -227,7 +227,7 @@ function renderSevenDayPeakChart(people) {
227
227
  const height = paddingTop + paddingBottom + ranked.length * rowHeight;
228
228
  const trackX = labelWidth;
229
229
  const trackWidth = width - labelWidth - valueWidth - 16;
230
- const maxValue = Math.max(...ranked.map((person) => person.sevenDayPeakUsagePct ?? 0), 1);
230
+ const maxValue = 100;
231
231
  const bars = ranked
232
232
  .map((person, index) => {
233
233
  const pct = person.sevenDayPeakUsagePct ?? 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccus-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Claude Code statusline usage logger and dashboard CLI",
5
5
  "type": "commonjs",
6
6
  "bin": {