opencode/packages/llm/src
Aiden Cline 49e86dd8ef feat(llm): enforce terminal stream contract for every route
LLMClient.stream now guarantees, for native protocol routes and the
synthetic AI SDK route alike: a successful stream emits exactly one
terminal finish event and nothing after it. EOF before finish means the
provider stream was truncated (proxy cut, silent drop) and fails as
LLM.MalformedResponse instead of letting a partial response settle as
complete; output after finish also fails. Enforcement applies after
protocol parsing so stream.onHalt flushes remain subject to it, with
per-subscription state.
2026-07-13 12:23:39 -05:00
..
protocols refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
providers feat(llm): complete provider package entrypoints (#35907) 2026-07-08 18:41:46 +05:30
route feat(llm): enforce terminal stream contract for every route 2026-07-13 12:23:39 -05:00
schema refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
utils Refactor LLM route-first provider API (#28523) 2026-05-20 20:15:52 -04:00
cache-policy.ts Refactor LLM route-first provider API (#28523) 2026-05-20 20:15:52 -04:00
index.ts refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
llm.ts refactor(llm): replace LLMError reasons with flat tagged union 2026-07-13 12:21:21 -05:00
provider-error.ts refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
provider-package.ts feat(core): flatten provider config and load native packages (#35563) 2026-07-06 16:18:56 -04:00
provider.ts chore: merge dev into v2 (#34788) 2026-07-01 17:12:00 -04:00
tool-runtime.ts chore: generate 2026-06-04 03:03:39 +00:00
tool.ts refactor(core): simplify location filesystem (#31545) 2026-06-09 14:28:45 -04:00