Kit Langton
ddbd119dcb
test: drop AppRuntime usage from tests
...
Removes all direct AppRuntime usage from packages/opencode/test —
`grep -r AppRuntime packages/opencode/test` now returns nothing.
Two patterns are applied:
1. Event tests rewritten in the httpapi-cors.test.ts style. The two
/event SSE tests now serve HttpApiApp.routes on
NodeHttpServer.layerTest and hit them via HttpClient. Pub/sub
identity with the in-process routes is preserved via a new opt-in
`testEffectShared` (in test/lib/effect.ts) that builds the test
layer through the shared process-wide memoMap so Bus.defaultLayer
resolves to the same Bus.Service the routes subscribed to.
The SSE reader helpers move to test/lib/sse.ts and use HttpClient +
Effect.Stream + Queue<SseEvent>.
The D7 diagnostic case is removed: the AppRuntime-vs-test-runtime
distinction it diagnosed no longer exists.
2. Surgical swap in the remaining four files
(provider/{amazon-bedrock,provider}, session/llm,
control-plane/workspace). Each `AppRuntime.runPromise(...)` becomes a
module-level `ManagedRuntime.make(Service.defaultLayer, { memoMap })`.
The shared memoMap preserves service identity, so behavior is
unchanged.
Tests: event (9/9), amazon-bedrock (19/19), provider (84/84),
workspace (35/35); 147 pass across the 5 affected files. The 3
pre-existing failures in session/llm.test.ts are independent of this
change (verified by stashing the diff).
2026-05-20 20:50:32 -04:00
Kit Langton
41f6daf96a
Refactor LLM route-first provider API ( #28523 )
2026-05-20 20:15:52 -04:00
Kit Langton
dbe36851bc
Preview native LLM runtime stack ( #27114 )
2026-05-18 14:41:36 -04:00
Dax
e85119aa64
Load models.dev snapshot from build global ( #28077 )
2026-05-17 21:59:44 -04:00
Shoubhit Dash
65f96a5851
refactor(instance): retire WithInstance adapter ( #27782 )
2026-05-16 01:30:07 +05:30
Shoubhit Dash
0c9cfe923f
refactor(instance): remove legacy runtime fallback ( #27757 )
2026-05-15 23:05:44 +05:30
Dax
16c457e712
refactor(core): move models.dev into core ( #27347 )
2026-05-13 20:58:24 -04:00
Aiden Cline
c2b1ebd9dc
feat: update pricing schema for models to ensure more accurate cost tracking ( #27184 )
2026-05-12 20:44:06 -05:00
Kit Langton
67b9c9c027
Source HTTP API ID path patterns ( #26623 )
2026-05-09 22:58:47 -04:00
Kit Langton
7d91d3b1ed
Normalize instance lifecycle wiring ( #25501 )
2026-05-02 20:39:20 -04:00
Dax
f25f1485d5
refactor: remove module barrels ( #24554 )
2026-04-27 14:33:33 -04:00
Kit Langton
6b20838981
feat: unwrap provider namespaces to flat exports + barrel ( #22760 )
2026-04-16 05:02:50 +00:00
Kit Langton
80f1f1b5b8
feat: enable type-aware no-floating-promises rule, fix all 177 violations ( #22741 )
2026-04-15 23:27:32 -04:00
Kit Langton
343a564183
feat: unwrap 11 util namespaces to flat exports + barrel ( #22739 )
2026-04-15 23:15:58 -04:00
Kit Langton
cce05c1665
fix: clean up 49 unused variables, catch params, and stale imports ( #22695 )
2026-04-16 02:01:53 +00:00
Kit Langton
1d81335ab5
feat: unwrap Provider namespace + improved automation script ( #22690 )
2026-04-15 21:44:46 -04:00
Aiden Cline
348a84969d
fix: ensure tool_use is always followed by tool_result ( #22646 )
...
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-04-15 14:56:45 -05:00
Kit Langton
e8471256f2
refactor(session): move llm stream into layer ( #22358 )
2026-04-13 19:53:30 -04:00
Kit Langton
663e798e76
refactor(provider): remove async facade exports ( #22320 )
2026-04-13 12:40:00 -04:00
Dax
1f94c48bdd
fix(opencode): keep user message variants scoped to model ( #21332 )
2026-04-07 10:12:53 -04:00
Aiden Cline
3c31d04666
chore: bump anthropic ai sdk pkg, delete patch ( #21247 )
2026-04-06 20:28:32 -05:00
Aiden Cline
48c1b6b338
tweak: move the max token exclusions to plugins @rekram1-node ( #21225 )
2026-04-06 17:43:58 -05:00
Aiden Cline
5a6d10cd53
tweak: ensure copilot anthropic models have same reasoning effort model as copilot cli, also fix qwen incorrectly having variants ( #21212 )
2026-04-06 18:12:43 +00:00
Kit Langton
c5442d418d
refactor(session): effectify SessionPrompt service ( #19483 )
2026-03-30 20:06:51 +00:00
Aiden Cline
c33d9996f0
feat: AI SDK v6 support ( #18433 )
2026-03-27 15:24:30 -05:00
Luke Parker
59c530cc6c
fix(opencode): teach Kit's test what an ID is ( #17745 )
2026-03-16 18:08:27 +10:00
Jason Quense
c2ca1494e5
fix(opencode): preserve prompt tool enables with empty agent permissions ( #17064 )
...
Co-authored-by: jquense <jquense@ramp.com>
2026-03-15 23:01:46 -05:00
Kit Langton
1cb7df7159
refactor(provider): flow branded ProviderID/ModelID through internal signatures ( #17182 )
2026-03-12 14:48:17 +00:00
Kit Langton
c45467964c
feat(id): brand ProviderID and ModelID ( #17110 )
2026-03-12 09:27:52 -04:00
Kit Langton
16a6d6feba
feat(id): brand WorkspaceID through Drizzle and Zod schemas ( #16964 )
2026-03-11 23:30:17 +00:00
Kit Langton
cb67465675
feat(id): brand SessionID through Drizzle and Zod schemas ( #16953 )
2026-03-11 23:16:56 +00:00
Dax Raad
cb5a0de42f
core: remove User-Agent header assertion from LLM test to fix failing test
2026-02-19 18:37:55 -06:00
Dax
02a9495063
Remove use of Bun.file ( #14215 )
2026-02-19 11:32:32 -05:00
Aiden Cline
0fd6f365be
fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact ( #12924 )
...
Co-authored-by: James Lal <james@littlebearlabs.io>
2026-02-10 19:55:22 -06:00
Aiden Cline
f834915d3f
test: fix flaky test ( #11427 )
2026-01-31 01:07:22 -06:00
Aiden Cline
9d3f32065b
test: add llm.test.ts ( #11375 )
2026-01-30 17:04:32 -06:00
seilk
9b57db30d1
feat: add litellmProxy provider option for explicit LiteLLM compatibility ( #8658 )
...
Co-authored-by: Mark Henderson <Mark.Henderson99@hotmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-01-15 22:01:15 +00:00