pi-cliproxy-usage 0.1.1 → 0.2.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 +15 -7
  2. package/package.json +14 -4
package/README.md CHANGED
@@ -2,13 +2,6 @@
2
2
 
3
3
  Compact CLIProxyAPI account usage meters for Pi Coding Agent.
4
4
 
5
- Code layout:
6
-
7
- - `index.ts` — Pi lifecycle and command wiring
8
- - `src/settings.ts` / `src/settings-ui.ts` — persisted and interactive settings
9
- - `src/usage.ts` / `src/parsers.ts` — account discovery, provider requests, response mapping
10
- - `src/ui.ts` — widget rendering and text formatting
11
-
12
5
  Shows one colored line below editor per enabled account:
13
6
 
14
7
  ```text
@@ -19,12 +12,19 @@ Shows one colored line below editor per enabled account:
19
12
 
20
13
  Percentages and filled bars show usage **consumed**. Colors shift green → yellow at 70% → red at 90%. Codex intentionally shows Session only; weekly meter is omitted.
21
14
 
15
+ ## Requirements
16
+
17
+ - [Pi Coding Agent](https://github.com/earendil-works/pi)
18
+ - [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) with at least one Claude, Codex, or Grok account configured
19
+
22
20
  ## Install
23
21
 
24
22
  ```bash
25
23
  pi install npm:pi-cliproxy-usage
26
24
  ```
27
25
 
26
+ After installing or updating, run `/reload` in Pi.
27
+
28
28
  Or test directly:
29
29
 
30
30
  ```bash
@@ -62,3 +62,11 @@ Accepted values: `accountsDir` is a non-empty string, `refreshMinutes` is an int
62
62
  - `/cliproxy-usage config` — compatibility alias for `settings`
63
63
 
64
64
  Token refresh is deliberately left to CLIProxyAPI. If provider returns `401`/`403`, let CLIProxyAPI refresh account or log in again.
65
+
66
+ ## Screenshot
67
+
68
+ ![CLIProxyAPI usage widget](docs/preview.png)
69
+
70
+ ## Support
71
+
72
+ Report bugs and request features in [GitHub Issues](https://github.com/Villoh/pi-cliproxy-usage/issues).
package/package.json CHANGED
@@ -1,17 +1,27 @@
1
1
  {
2
2
  "name": "pi-cliproxy-usage",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Compact CLIProxyAPI account usage meters for Pi Coding Agent",
5
5
  "type": "module",
6
- "keywords": ["pi-package", "cliproxyapi", "usage"],
6
+ "keywords": [
7
+ "pi-package",
8
+ "cliproxyapi",
9
+ "usage"
10
+ ],
7
11
  "license": "MIT",
8
12
  "repository": {
9
13
  "type": "git",
10
14
  "url": "git+https://github.com/Villoh/pi-cliproxy-usage.git"
11
15
  },
12
- "files": ["index.ts", "src", "README.md"],
16
+ "files": [
17
+ "index.ts",
18
+ "src",
19
+ "README.md"
20
+ ],
13
21
  "pi": {
14
- "extensions": ["./index.ts"]
22
+ "extensions": [
23
+ "./index.ts"
24
+ ]
15
25
  },
16
26
  "peerDependencies": {
17
27
  "@earendil-works/pi-coding-agent": "*",