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

Function writePluginEnabledState

packages/opencode/src/plugin/tui/runtime.ts:484–489  ·  view source on GitHub ↗
(api: Api, id: string, enabled: boolean)

Source from the content-addressed store, hash-verified

482}
483
484function writePluginEnabledState(api: Api, id: string, enabled: boolean) {
485 api.kv.set(KV_KEY, {
486 ...readPluginEnabledMap(api.kv.get(KV_KEY, {})),
487 [id]: enabled,
488 })
489}
490
491function listPluginStatus(state: RuntimeState): TuiPluginStatus[] {
492 return state.plugins.map((plugin) => ({

Callers 2

deactivatePluginEntryFunction · 0.85
activatePluginEntryFunction · 0.85

Calls 3

readPluginEnabledMapFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected