Repository navigation
v0.4.0
The plugin now reads the limits snapshot the scheduled workflow publishes, so new measurements reach installed hosts without an npm release.
- Default source: https://raw.githubusercontent.com/tkhs101/OpenCode-Zen-FreeX/main/limits-observed.json (the same limits-observed.json the walls workflow merges into main).
- Startup installs the local cache before the first model list; a background fetch (one per hour, 5 s timeout, single-flight) updates it. No request ever waits on GitHub.
- 256 KiB streamed body cap, version/row/numeric validation (including named windows at the 4M-token ceiling), zero-valid documents never wipe the table; cache writes are atomic and 0600.
- Precedence: explicit file > OPENCODE_ZEN_FREE_LIMITS_SNAPSHOT (path or empty) > cache/remote > bundled. OPENCODE_ZEN_FREE_LIMITS_SNAPSHOT_URL/CACHE/REFRESH_MS/TIMEOUT_MS configure the layer.
- One-time upgrade: 0.3.x does not read the remote; after 0.4.0, workflow data needs no release. Unreachable raw GitHub falls back to cache/bundled (documented; mirror URL supported).
- Audit: R7-01..R7-07 findings fixed and independently verified; bun test 729 pass, CI test/node-host/gate green.