Skip to content

v1.7.0

Choose a tag to compare

@ramtinJ95 ramtinJ95 released this 07 Jun 10:21
· 39 commits to main since this release

Added

  • Added live OpenCode provider/model metadata lookup for pricing, with bundled models.json retained as a fallback.
  • Added support for current OpenCode nested cache pricing and large-context pricing metadata (cost.cache, cost.tiers, and experimentalOver200K).
  • Added directory-routed OpenCode client calls for session messages, child sessions, tool metadata, and provider metadata so TokenScope analyzes the correct project context.

Changed

  • Reworked cost estimation to price each API call by its own context tier instead of applying large-context rates to aggregated session totals.
  • Improved cache-efficiency cost math by recalculating uncached costs per call and per tier.
  • Updated cost report wording to distinguish OpenCode-recorded actual cost from TokenScope API-equivalent estimates.
  • Raised the supported OpenCode plugin peer range to @opencode-ai/plugin >=1.1.48.

Fixed

  • Fixed context exports to run from the active session directory.
  • Fixed script-installed plugins by including all split library files, installing build dependencies, and building dist/ during install/update.
  • Fixed report summary paths to print a safely shell-quoted full report path.
  • Fixed live pricing alias handling for provider model keys, API model IDs, ambiguous bare aliases, incomplete metadata, cache rates, and non-200K context thresholds.
  • Fixed subagent cost estimates to use the same per-call context-tier pricing as main sessions.

Validation

  • cd plugin && npm test → 50 passing tests.
  • Smoke-tested script install/update and real OpenCode sessions before release.