Commit graph

16 commits

Author SHA1 Message Date
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
Kit Langton
dfeb1b5051
feat(client): generate complete protocol client (#34164) 2026-06-27 22:25:40 -04:00
Dax Raad
93159bccbf feat(core): port v2 runtime fixes onto dev
Cherry-picks the packages/core changes from the v2 branch onto dev:
- combined ordered stdout/stderr in AppProcess + bash structured output
- edit/apply-patch return FileDiff info with status and line stats
- ignore no-op model switches; record reasoning timestamps
- return unexpected local tool defects to the model and continue
- keep OAuth account metadata out of request bodies
- nest OpenAI reasoning effort/summary options
- load OpenCode provider config asynchronously; batch plugin boot
- export latest public event manifest

Includes the supporting schema reasoning time field and regenerated
client/SDK types.
2026-06-27 00:07:25 -04:00
Kit Langton
42e6b7db32
feat(sdk): expose live event stream (#34098) 2026-06-26 21:16:33 +02:00
opencode-agent[bot]
20f47fec7a chore: generate 2026-06-26 18:51:42 +00:00
Kit Langton
65210f2d97
feat(api): add finite durable session history pages (#34097) 2026-06-26 14:49:47 -04:00
Dax Raad
850a0dfe7c fix(core): resolve prompt attachment mime types 2026-06-26 13:51:00 -04:00
Kit Langton
ef5c9f4931
feat(sdk): expose active sessions (#33991) 2026-06-26 03:33:35 +00:00
Kit Langton
f44423609b
feat(sdk): restore session runtime operations (#33777) 2026-06-25 14:23:01 -04:00
Kit Langton
9e9d405d7e
refactor(schema): tighten public contracts (#33771) 2026-06-25 17:10:23 +00:00
Frank
fec087bf37 zen: new inference 2026-06-25 12:15:34 -04:00
opencode-agent[bot]
e6c45134ab
fix(client): exclude generated files from formatting (#33832)
Co-authored-by: Test <test@opencode.test>
2026-06-25 07:53:00 -04:00
opencode-agent[bot]
259e153d10 chore: generate 2026-06-25 04:43:34 +00:00
Luke Parker
cfd75d62fe
fix(app): separate provider lifetimes and reactive ownership (#33739) 2026-06-25 04:42:06 +00:00
opencode-agent[bot]
546527b7d6 chore: generate 2026-06-25 03:10:23 +00:00
Kit Langton
cdd67cf30f
feat(sdk): add HttpApi clients and embedded host (#33445) 2026-06-24 23:08:54 -04:00