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

Function tui

tui.tsx:8–21  ·  view source on GitHub ↗
(api)

Source from the content-addressed store, hash-verified

6import { openPanelModal } from "./lib/tui/modals"
7
8const tui: TuiPluginModule["tui"] = async (api) => {
9 const config = loadConfig(api)
10 if (!config.enabled || !config.commands.enabled) return
11
12 registerCommands(api, [
13 {
14 title: "DCP",
15 name: "dcp.panel",
16 description: "Open DCP panel",
17 slashName: "dcp",
18 run: () => openPanelModal(api, config),
19 },
20 ])
21}
22
23export default {
24 id: "opencode-dcp",

Callers

nothing calls this directly

Calls 3

loadConfigFunction · 0.90
registerCommandsFunction · 0.90
openPanelModalFunction · 0.90

Tested by

no test coverage detected