cloudaxe-opencode/packages/opencode
Aiden Cline 5d87c7ad1f refactor(llm): remove the provider-error stream event
Delete the provider-error LLMEvent so streams carry output only and
every provider-reported failure exits through the typed error channel.
Anthropic SSE error events, OpenAI Responses response.failed/error
events, and Bedrock exception frames now fail the stream with an
LLMError from the shared classifier (carrying the provider code, e.g.
rate_limit_exceeded -> LLM.RateLimit).

Core follows: the publisher drops its provider-error case, the runner
drops held-back overflow events (overflow recovery keys off a thrown
LLM.ContextOverflow), compaction and title stop scanning events for
failures, and isContextOverflowFailure is deleted with its last
consumer. V1 packages/opencode gets minimal compile fixes only (dead
switch case, one test stream).
2026-07-13 12:22:30 -05:00
..
bin
migration/20260511173437_session-metadata
script tui: remove legacy V1 CLI TUI integration to simplify startup 2026-07-13 01:05:14 -04:00
specs refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
src refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
test refactor(llm): remove the provider-error stream event 2026-07-13 12:22:30 -05:00
.gitignore
AGENTS.md docs(opencode): mark package as v1 2026-06-27 01:16:30 -04:00
bunfig.toml
Dockerfile
git
package.json chore: merge dev into v2 (#36144) 2026-07-09 16:32:44 -05:00
parsers-config.ts
README.md
sst-env.d.ts
tsconfig.json

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.