cloudaxe-opencode/packages
Kit Langton 38398fd450 feat(llm): provider packages own model request construction
Provider packages in @opencode-ai/llm/providers/* now implement a uniform
ProviderPackage contract: model(modelID, settings) => Model. SessionRunnerModel
becomes provider-agnostic: it resolves a package specifier, folds catalog
settings, credentials, and transport overlays into one Settings object, and
delegates request construction to the package.

- llm: add ProviderPackage (Settings, Definition, define), flat model(id,
  config) constructors on the openai-responses, anthropic-messages, and
  openai-compatible-chat protocols, contract-shaped model exports on the
  openai, anthropic, and openai-compatible providers, and a new
  providers/openai/codex entry point that targets the ChatGPT codex backend
  and sets the chatgpt-account-id header from settings.accountID.
- schema: Provider.Native gains optional package.
- core: SessionRunnerModel loads packages through a static built-in map
  (dynamic import for foreign specifiers) and applies one settings fold;
  the ChatGPT conditional is deleted from the runner. The OpenAI plugin's
  catalog transform now assigns the codex package to eligible models when a
  ChatGPT connection is active, alongside the existing eligibility and cost
  rewrites.
- llm schema: hoist ToolResultValue union out of its Object.assign self
  reference; the previous shape only typechecked under lucky check ordering
  and broke under core's typecheck with the new import graph.

Closes #34765
2026-07-03 14:01:17 -04:00
..
app feat(app): dropdown search fix (#34961) 2026-07-03 10:31:37 +00:00
cli sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
client feat(llm): provider packages own model request construction 2026-07-03 14:01:17 -04:00
codemode chore: generate 2026-07-03 05:20:28 +00:00
console zen: new inference 2026-07-02 21:59:33 -04:00
containers
core feat(llm): provider packages own model request construction 2026-07-03 14:01:17 -04:00
desktop fix(desktop): keep window tabs across app close (#34807) 2026-07-01 23:23:11 +00:00
docs
effect-drizzle-sqlite sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
effect-sqlite-node sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
enterprise sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
function sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
http-recorder sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
httpapi-codegen feat(client): generate complete protocol client (#34164) 2026-06-27 22:25:40 -04:00
identity
llm feat(llm): provider packages own model request construction 2026-07-03 14:01:17 -04:00
opencode refactor(opencode): fail the execute tool on program failure (#35180) 2026-07-03 11:27:36 -05:00
plugin sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
protocol feat(sdk): expose live event stream (#34098) 2026-06-26 21:16:33 +02:00
schema feat(llm): provider packages own model request construction 2026-07-03 14:01:17 -04:00
script
sdk feat(llm): provider packages own model request construction 2026-07-03 14:01:17 -04:00
sdk-next refactor(core): remove tool layer exports (#34622) 2026-06-30 11:18:41 -04:00
server sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
session-ui chore: generate 2026-07-03 07:54:40 +00:00
slack sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00
stats fix(stats): link market share labs 2026-07-03 10:34:13 -05:00
storybook feat(desktop): improve markdown heading spacing in session timeline (#34738) 2026-07-01 20:39:12 +08:00
tui fix(tui): align execute child calls with task indentation (#35190) 2026-07-03 12:06:58 -05:00
ui feat(app): align subagent UI with v2 (#34931) 2026-07-03 15:53:31 +08:00
web sync release versions for v1.17.13 2026-07-01 15:19:04 +00:00