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

Function deactivatePluginById

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

Source from the content-addressed store, hash-verified

563}
564
565async function deactivatePluginById(state: RuntimeState | undefined, id: string, persist: boolean) {
566 if (!state) return false
567 const plugin = state.plugins_by_id.get(id)
568 if (!plugin) return false
569 return deactivatePluginEntry(state, plugin, persist)
570}
571
572function pluginApi(runtime: RuntimeState, plugin: PluginEntry, scope: PluginScope, base: string): TuiPluginApi {
573 const api = runtime.api

Callers 2

deactivateFunction · 0.85
deactivatePluginFunction · 0.85

Calls 2

deactivatePluginEntryFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected