(transport: { url: string; headers: RequestInit["headers"] })
| 5 | import { Global } from "@opencode-ai/core/global" |
| 6 | |
| 7 | export function runTui(transport: { url: string; headers: RequestInit["headers"] }) { |
| 8 | const config = TuiConfig.resolve({}, { terminalSuspend: false }) |
| 9 | return run({ |
| 10 | ...transport, |
| 11 | args: {}, |
| 12 | config, |
| 13 | fetch: gracefulFetch, |
| 14 | pluginHost: { |
| 15 | async start() {}, |
| 16 | async dispose() {}, |
| 17 | }, |
| 18 | }).pipe(Effect.provide(AppNodeBuilder.build(Global.node))) |
| 19 | } |
| 20 | |
| 21 | const legacyDefaults: Record<string, unknown> = { |
| 22 | "/config/providers": { providers: [], default: {} }, |
no test coverage detected