MCPcopy Create free account
hub / github.com/anomalyco/opencode / runTui

Function runTui

packages/cli/src/tui.ts:7–19  ·  view source on GitHub ↗
(transport: { url: string; headers: RequestInit["headers"] })

Source from the content-addressed store, hash-verified

5import { Global } from "@opencode-ai/core/global"
6
7export 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
21const legacyDefaults: Record<string, unknown> = {
22 "/config/providers": { providers: [], default: {} },

Callers 2

default.tsFile · 0.85
runFunction · 0.85

Calls 1

runFunction · 0.90

Tested by

no test coverage detected