agentflex 0.1.1 → 0.3.0

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.
Files changed (2) hide show
  1. package/README.md +16 -2
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # agentflex
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/agentflex?color=cb3837)](https://www.npmjs.com/package/agentflex) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/corral-dev/agentflex/blob/main/LICENSE)
4
+
3
5
  **An animated card of your coding-agent week, in one command.**
4
6
 
5
7
  ![agentflex card animation (fictional data)](https://raw.githubusercontent.com/corral-dev/agentflex/main/docs/demo.gif)
@@ -16,7 +18,8 @@ Also works with `pnpm dlx agentflex` and `bunx agentflex`.
16
18
 
17
19
  - **Tokens** for the period, as each assistant recorded them (cache reads included).
18
20
  - **Sessions**, **tokens per day** and **peak parallel sessions** (the most agent sessions active at the same moment).
19
- - **Agent share** across Claude Code, Codex, OpenCode and Pi.
21
+ - **Agent share** across Claude Code, Codex, OpenCode and Pi (by sessions).
22
+ - **Top models** by their share of your tokens, read from each recorded reply.
20
23
  - **Activity** by weekday and hour, with your busiest hour.
21
24
 
22
25
  ## Options
@@ -29,6 +32,15 @@ npx agentflex --json # print the numbers as JSON
29
32
  npx agentflex --no-anim # final card without animation
30
33
  ```
31
34
 
35
+ ## Language
36
+
37
+ The card follows your locale. A Chinese locale (`zh_CN`, `zh-Hans`, …) shows the terminal card, loading state, key hints and exported PNG in Simplified Chinese; every other language keeps the English card. `CODING WEEK`, `tokens` and `AGENTS` stay in English as the card's own vocabulary.
38
+
39
+ ```bash
40
+ LANG=zh_CN.UTF-8 npx agentflex # force the Chinese card
41
+ LANG=en_US.UTF-8 npx agentflex # force English
42
+ ```
43
+
32
44
  ## Fast
33
45
 
34
46
  The default 7-day card is computed in well under a second on a heavy-use machine (about 900 MB of history): histories are read in parallel, pruned to the period, and only the fields that matter are decoded. The parsing engine is [SessKit](https://github.com/x0c/sesskit)'s native `sesskit-stats` crate, checked session by session against SessKit's reference implementation.
@@ -45,6 +57,8 @@ Everything stays on your machine. The card shows totals only: no prompts, file n
45
57
 
46
58
  agentflex comes from [Corral](https://github.com/corral-dev/corral), a terminal home for all your coding-agent sessions: see who needs you, run agents side by side, and pick up from your phone. Corral users can also run `corral flex`.
47
59
 
60
+ Burning tokens across multiple accounts? [subswap](https://github.com/x0c/subswap) checks live quotas and switches accounts in 1 second.
61
+
48
62
  ## License
49
63
 
50
- MIT. The PNG export embeds a subset of the [Spleen](https://github.com/fcambus/spleen) bitmap font (BSD-2-Clause, see https://github.com/corral-dev/agentflex/blob/main/assets/SPLEEN-LICENSE.txt).
64
+ MIT. The PNG export embeds subsets of the [Spleen](https://github.com/fcambus/spleen) (BSD-2-Clause) and [Fusion Pixel](https://github.com/TakWolf/fusion-pixel-font) (OFL-1.1) bitmap fonts; licenses are in [assets/](https://github.com/corral-dev/agentflex/blob/main/assets/).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentflex",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Animated, shareable card of your coding-agent week (terminal + PNG export)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,12 +16,12 @@
16
16
  "README.md"
17
17
  ],
18
18
  "optionalDependencies": {
19
- "agentflex-darwin-arm64": "0.1.1",
20
- "agentflex-darwin-x64": "0.1.1",
21
- "agentflex-linux-arm64": "0.1.1",
22
- "agentflex-linux-x64": "0.1.1",
23
- "agentflex-windows-arm64": "0.1.1",
24
- "agentflex-windows-x64": "0.1.1"
19
+ "agentflex-darwin-arm64": "0.3.0",
20
+ "agentflex-darwin-x64": "0.3.0",
21
+ "agentflex-linux-arm64": "0.3.0",
22
+ "agentflex-linux-x64": "0.3.0",
23
+ "agentflex-windows-arm64": "0.3.0",
24
+ "agentflex-windows-x64": "0.3.0"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=18"