opencode/packages/plugin
Developer 47d6fc7382 fix: preserve full OpenCode provider cost shape in auth.loader
The normalizeProviderModelCosts function was only setting { input: 0, output: 0 }
which doesn't match the full OpenCode provider cost shape that includes cache fields.

This fix:
- Preserves existing cost fields (input, output, cache.read, cache.write) if valid
- Adds missing cache: { read: 0, write: 0 } structure when not present
- Validates provider and model objects before modification to avoid poisoning
  invalid provider metadata
- Updates ProviderModel type to include optional cache field

Fixes provider cost normalization to maintain cache field compatibility.
2026-05-09 15:28:13 -04:00
..
script release: avoid package.json drift during publish 2026-04-18 12:32:23 -04:00
src fix: preserve full OpenCode provider cost shape in auth.loader 2026-05-09 15:28:13 -04:00
.gitignore wip: plugins 2025-08-02 18:50:19 -04:00
package.json sync release versions for v1.14.43 2026-05-09 18:06:16 +00:00
sst-env.d.ts zen: update sst version 2026-02-18 13:54:23 -05:00
tsconfig.json feat(core): expose workspace adaptors to plugins (#21927) 2026-04-13 13:33:13 -04:00