mirror of
https://github.com/anomalyco/opencode.git
synced 2026-09-29 05:53:24 +08:00
17 lines
542 B
TypeScript
17 lines
542 B
TypeScript
import type { Effect, Fiber, FileSystem } from "effect"
|
|
import type { TuiInput } from "@opencode/tui"
|
|
import type { Global } from "@opencode/util/global"
|
|
import type { Route } from "../../tui/src/context/route"
|
|
|
|
export type Run = (input: TuiInput) => Effect.Effect<void, unknown, Global.Service | FileSystem.FileSystem>
|
|
|
|
export declare const host: {
|
|
active?: Fiber.Fiber<void, unknown>
|
|
mount?: (app: Run) => Promise<void>
|
|
stop?: () => Promise<void>
|
|
reset?: () => void
|
|
recover?: () => boolean
|
|
settle?: () => void
|
|
route?: Route
|
|
}
|