Commit graph

49 commits

Author SHA1 Message Date
Kit Langton
f019bb3abf fix(core): tighten ChatGPT codex model eligibility
Replace the codex-substring heuristic with the empirically verified
allow/disallow lists plus the >5.4 version rule; the ChatGPT backend
rejects models like gpt-5.3-codex that the substring rule admitted.
2026-07-03 14:51:00 -04:00
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
Aiden Cline
373cd08b98
fix(copilot): honor advertised model endpoints (#34958) 2026-07-02 10:23:57 -05:00
Aiden Cline
d71454c701
fix(core): expose models.dev modes as models (#34521) 2026-06-29 17:51:06 -05:00
opencode-agent[bot]
9205dfe724 chore: generate 2026-06-29 15:37:20 +00:00
James Long
a3776429aa
refactor(core): finish test layer node conversion (#34385) 2026-06-29 11:35:17 -04:00
opencode-agent[bot]
846d548154 chore: generate 2026-06-29 03:49:43 +00:00
James Long
84336e4f91
refactor(core): refine layer node replacements (#34377) 2026-06-28 23:48:18 -04:00
James Long
a31698f99b
refactor(core): move more tests to nodes (#34248) 2026-06-27 18:10:07 +00: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
Dax Raad
f4afb2c0a5 fix(core): preserve unconfigured console models 2026-06-24 18:58:17 -04:00
opencode-agent[bot]
31b58b4704 chore: generate 2026-06-24 17:21:26 +00:00
Dax Raad
42bb793574 feat(core): generate model variants 2026-06-24 13:17:14 -04:00
Dax Raad
17f312d537 refactor(core): simplify model requests 2026-06-24 13:17:14 -04:00
Kit Langton
516cfe4e09
refactor(schema): extract shared public schemas (#33571) 2026-06-23 22:31:06 -04:00
Dax
4898263dec
feat(core): map providers to integrations (#33562) 2026-06-24 00:53:31 +00:00
Dax
c556bddda3
feat(core): add opencode integration (#33560) 2026-06-24 00:26:54 +00:00
Dax
cf80b5c470
feat(core): add opencode integration (#33555) 2026-06-23 23:45:02 +00:00
Dax Raad
975b1132f1 refactor(plugin): use direct runtime registry 2026-06-22 20:10:29 -04:00
Dax
909a1a6d78
feat(plugin): add namespaced hook API (#33416) 2026-06-22 19:06:57 -04:00
opencode-agent[bot]
cd292a4ecb chore: generate 2026-06-22 04:17:10 +00:00
Dax
2bb4311042
refactor(core): simplify integration test fixtures (#33292) 2026-06-22 04:15:34 +00:00
opencode-agent[bot]
02687b6324 chore: generate 2026-06-21 12:07:16 +00:00
Dax
c780d7cee7
feat(plugin): add v2 effect host (#33111) 2026-06-21 08:05:49 -04:00
Dax
0cf3ee4406
refactor(core): derive catalog availability from integrations (#32272) 2026-06-14 14:44:50 +02:00
santigc6
3f174531b9
feat(opencode): add external browser OAuth for snowflake cortex provider (#31700)
Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es>
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com>
Co-authored-by: Cortex Code <noreply@snowflake.com>
2026-06-13 13:09:45 -05:00
Dax
30aec297d8
refactor(core): simplify integration credentials (#31968) 2026-06-12 06:15:25 +00:00
opencode-agent[bot]
710e408709 chore: generate 2026-06-11 06:32:44 +00:00
Dax
dac0dd5309
feat(core): add connector authentication (#31837) 2026-06-11 06:31:17 +00:00
Kit Langton
05d1104ecd
fix(core): scope Vertex provider transforms (#31004) 2026-06-05 14:55:52 -04:00
opencode-agent[bot]
c47cb28781 chore: generate 2026-06-05 03:21:15 +00:00
Kamesh Sampath
2859ce6e73
feat(core): add Snowflake Cortex provider (#29901)
Co-authored-by: Cortex Code <noreply@snowflake.com>
2026-06-04 22:19:55 -05:00
opencode-agent[bot]
30ec231aaf chore: generate 2026-06-04 06:59:09 +00:00
Dax
1ff19103a2
feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
Aiden Cline
9f42bd4a85
feat: bump bedrock and add proper mantle support for openai models through aws bedrock (#30464) 2026-06-04 00:09:12 -05:00
Dax
11dbd15812
refactor(core): nest model api id (#30603) 2026-06-03 14:11:38 -04:00
opencode-agent[bot]
a0e4db3714 chore: generate 2026-06-03 17:35:02 +00:00
Dax
1520b0de20
refactor(core): remove ai sdk option fields (#30581) 2026-06-03 17:32:58 +00:00
Dax
7f571d36ea
refactor(core): move database schema ownership (#29068)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-30 21:08:38 -04:00
Dax
9583e08be4
feat(core): add location-scoped config loading (#29625) 2026-05-30 04:06:08 +00:00
Saurav M H
797c689ec2
fix(opencode): pass OAuth scopes to GoogleAuth for Vertex AI (#15110)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-28 19:05:43 -05:00
JPFrancoia
7a9724496b
fix(vertex): Vertex (Antropic) provider: use .rep.googleapis.com for continental multi-region endpoints (us, eu) (#28347)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-21 23:03:24 -05:00
Kit Langton
e92c4fb460
chore: drop dead imports across opencode/core/llm (#28720) 2026-05-21 17:03:12 -04:00
opencode-agent[bot]
93131b6e4c chore: generate 2026-05-21 00:55:10 +00:00
Dax
8643c0721e
Rename v2 auth service to account (#28260) 2026-05-21 00:53:27 +00:00
Dax
e11e089e42
Add Effect-native core event system (#27415) 2026-05-15 00:50:23 +00:00
nv-kasikritc
d34a0194ec
feat(provider): add NVIDIA endpoints origin header (#27394) 2026-05-14 17:21:58 -05:00
Dax
16c457e712
refactor(core): move models.dev into core (#27347) 2026-05-13 20:58:24 -04:00
Dax
8345152319
core: expose v2 model listing API (#25821) 2026-05-13 14:43:08 +00:00