opencode/packages/core/src/plugin
Aiden Cline f7dcfc2680 feat: drive reasoning variants from models.dev reasoning_options
Parse the curated reasoning_options field from models.dev api.json and use
its effort values to generate reasoning variants instead of the hardcoded
per-package tables, in both the v1 provider catalog and the v2 catalog plugin.

- core: ModelsDev.ReasoningOption discriminated union (toggle | effort |
  budget_tokens); effort values stay open strings and unknown option types
  are tolerated since api.json is cast, not decoded
- core: ReasoningVariants shared per-package effort encoder used by v1
  ProviderTransform.variants and the v2 ModelsDevPlugin
- core: v2 catalog generates effort variants from reasoning_options;
  curated experimental modes win id collisions; anthropic profile gains
  the effort semantic
- llm: anthropic protocol supports adaptive thinking, lowers effort to
  output_config.effort, and sends the effort-2025-11-24 beta header
- opencode: resolved Provider.Model carries capabilities.reasoningOptions
  (unknown types and null effort values dropped at the mapping boundary);
  config models accept reasoning_options; models without usable effort
  data fall back to the hardcoded tables unchanged

Catalog-wide audit vs live api.json: 2975 models byte-identical, 38 diffs,
all data correcting stale hardcoded effort lists.
2026-06-09 17:21:11 -05:00
..
command feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
provider fix(core): scope Vertex provider transforms (#31004) 2026-06-05 14:55:52 -04:00
skill docs: fix MCP header interpolation example to {env:VAR} (#31078) 2026-06-06 18:33:01 -05:00
account.ts refactor(core): remove ai sdk option fields (#30581) 2026-06-03 17:32:58 +00:00
agent.ts feat(core): admit v2 skill guidance (#30843) 2026-06-05 11:19:55 -04:00
boot.ts refactor(core): consolidate references (#31539) 2026-06-09 16:08:58 +00:00
command.ts feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
env.ts feat(core): add location-scoped config loading (#29625) 2026-05-30 04:06:08 +00:00
layer-map.example.ts docs: add LayerMap example (#27388) 2026-05-13 17:46:47 -04:00
models-dev.ts feat: drive reasoning variants from models.dev reasoning_options 2026-06-09 17:21:11 -05:00
provider.ts feat(core): add Snowflake Cortex provider (#29901) 2026-06-04 22:19:55 -05:00
skill.ts fix build 2026-06-04 11:11:23 -04:00