MCPcopy Index your code
hub / github.com/anomalyco/opencode / createTuiApi

Function createTuiApi

packages/tui/src/plugin/api.ts:42–52  ·  view source on GitHub ↗
(input: Omit<TuiPluginApi, "lifecycle">)

Source from the content-addressed store, hash-verified

40export type PluginRoutes = ReturnType<typeof createPluginRoutes>
41
42export function createTuiApi(input: Omit<TuiPluginApi, "lifecycle">): TuiPluginApi {
43 return {
44 ...input,
45 lifecycle: {
46 signal: new AbortController().signal,
47 onDispose() {
48 return () => {}
49 },
50 },
51 }
52}

Callers 1

AppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected