test(session): port llm.test.ts to it.instance (#28578)

This commit is contained in:
Kit Langton
2026-05-21 00:01:13 -04:00
committed by GitHub
parent d9ed62e51c
commit 14366af069
4 changed files with 642 additions and 860 deletions

View File

@@ -1,4 +1,5 @@
import { Provider } from "@/provider/provider"
import { serviceUse } from "@/effect/service-use"
import * as Log from "@opencode-ai/core/util/log"
import { Context, Effect, Layer } from "effect"
import * as Stream from "effect/Stream"
@@ -54,6 +55,8 @@ export interface Interface {
export class Service extends Context.Service<Service, Interface>()("@opencode/LLM") {}
export const use = serviceUse(Service)
const live: Layer.Layer<
Service,
never,