@narumitw/pi-usage 0.52.0 → 0.52.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
@@ -40,6 +40,10 @@ Try this package locally from the repository root:
40
40
  pi -e ./packages/pi-usage
41
41
  ```
42
42
 
43
+ The package declares `dist/index.ts`, so an unbuilt local checkout must run `npm --workspace @narumitw/pi-usage run build` before Pi loads the package directory.
44
+
45
+ `just try usage` runs that build automatically.
46
+
43
47
  ## 🚀 Usage
44
48
 
45
49
  Run:
@@ -191,6 +195,9 @@ Behavior changes:
191
195
 
192
196
  ```txt
193
197
  packages/pi-usage/
198
+ ├── dist/ # Generated TypeScript runtime loaded by Jiti
199
+ ├── scripts/
200
+ │ └── build-runtime.mjs # Deterministic runtime builder and boundary validator
194
201
  ├── src/
195
202
  │ ├── index.ts # Pi package entrypoint and helper export barrel
196
203
  │ ├── usage.ts # Menu, cache, and usage lifecycle orchestration
@@ -213,6 +220,8 @@ packages/pi-usage/
213
220
 
214
221
  `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.
215
222
 
223
+ The generated runtime is built from the authoritative `src/index.ts` graph and does not import back into `src`.
224
+
216
225
  ## 🔎 Keywords
217
226
 
218
227
  Pi extension, Pi coding agent, usage, quota, OpenAI Codex usage, ChatGPT subscription limits, GitHub Copilot AI credits, GitHub Copilot premium requests, OpenRouter credits, API-key spend limits, TypeScript Pi package, npm Pi extension.