@narumitw/pi-usage 0.26.0 → 0.28.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.
- package/README.md +3 -2
- package/package.json +2 -2
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -126,7 +126,8 @@ Behavior changes:
|
|
|
126
126
|
```txt
|
|
127
127
|
extensions/pi-usage/
|
|
128
128
|
├── src/
|
|
129
|
-
│ ├──
|
|
129
|
+
│ ├── index.ts # Pi package entrypoint and helper export barrel
|
|
130
|
+
│ ├── usage.ts # Menu, cache, and lifecycle orchestration
|
|
130
131
|
│ ├── query.ts # Runtime auth resolution and provider queries
|
|
131
132
|
│ ├── format.ts # Provider-aware notifications and statusline text
|
|
132
133
|
│ ├── core.ts # Cache, concurrency, fingerprint, and redaction helpers
|
|
@@ -139,7 +140,7 @@ extensions/pi-usage/
|
|
|
139
140
|
└── package.json
|
|
140
141
|
```
|
|
141
142
|
|
|
142
|
-
|
|
143
|
+
`index.ts` is the Pi entrypoint and forwards the default factory from `usage.ts` while retaining the package's named helper exports; other source modules are internal.
|
|
143
144
|
|
|
144
145
|
## 🔎 Keywords
|
|
145
146
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-usage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Pi extension that shows current-account usage across supported model providers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"pi": {
|
|
23
23
|
"extensions": [
|
|
24
|
-
"./src/
|
|
24
|
+
"./src/index.ts"
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
export { formatProviderStates, formatUsageReport, formatUsageStatusline } from "./format.js";
|
|
12
12
|
export { normalizeCodexBackendPayload } from "./providers/codex.js";
|
|
13
13
|
export { normalizeOpenRouterKeyPayload } from "./providers/openrouter.js";
|
|
14
|
+
export { default } from "./usage.js";
|
|
14
15
|
export {
|
|
15
16
|
adapterForProvider,
|
|
16
17
|
isStaleExtensionContextError,
|