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

Function activatePluginById

packages/opencode/src/plugin/tui/runtime.ts:558–563  ·  view source on GitHub ↗
(state: RuntimeState | undefined, id: string, persist: boolean)

Source from the content-addressed store, hash-verified

556}
557
558async function activatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) {
559 if (!state) return false
560 const plugin = state.plugins_by_id.get(id)
561 if (!plugin) return false
562 return activatePluginEntry(state, plugin, persist)
563}
564
565async function deactivatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) {
566 if (!state) return false

Callers 2

activateFunction · 0.85
activatePluginFunction · 0.85

Calls 2

activatePluginEntryFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected