MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / loadConfig

Function loadConfig

lib/tui/data.ts:11–17  ·  view source on GitHub ↗
(api: TuiApi)

Source from the content-addressed store, hash-verified

9export const logger = new Logger(false)
10
11export function loadConfig(api: TuiApi): PluginConfig {
12 return getConfig({
13 client: api.client,
14 directory: api.state.path.directory,
15 worktree: api.state.path.worktree,
16 } as any)
17}
18
19export function activeSessionID(api: TuiApi): string | undefined {
20 const current = api.route.current

Callers 1

tuiFunction · 0.90

Calls 1

getConfigFunction · 0.90

Tested by

no test coverage detected