(api)
| 6 | import { openPanelModal } from "./lib/tui/modals" |
| 7 | |
| 8 | const 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 | |
| 23 | export default { |
| 24 | id: "opencode-dcp", |
nothing calls this directly
no test coverage detected