Releases: omarwaly-ai/OpenCode-tokens-source
Releases · omarwaly-ai/OpenCode-tokens-source
Release list
V 1.2.0
Fixed
- Per-tool token estimates no longer inflated by 6x due to Effect Schema AST bloat
- No more crash on /tokens command in attach mode
- Cache-read tokens now included in the API actual input count
- Plugin export format corrected to match opencode 1.17.10 requirements
- Dead fetch wrapper removed — was never triggering in standalone mode
Improved
- Tools section shows "(from API body)" when captured live, "(registered)" as fallback
- Real JSON schemas captured from the actual API request body
- System prompt parsed into named sections: base, environment, skills, instructions, structured output
- Messages grouped by role and part type for clearer breakdown
- Estimated total compared against API actual with diff shown
- Session-level totals shown: input, output, reasoning, turns
New
- Captures the real tools array sent to the LLM, reflecting any modifications by other plugins
- Effect Schema converted to real JSON Schema for accurate size estimation
Minimum Version
- Requires opencode 1.17.10 or later
V 1.0.0
Full Changelog: https://github.com/omarwaly-ai/OpenCode-tokens-source/commits/V1