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

Function listPluginStatus

packages/opencode/src/plugin/tui/runtime.ts:491–500  ·  view source on GitHub ↗
(state: RuntimeState)

Source from the content-addressed store, hash-verified

489}
490
491function listPluginStatus(state: RuntimeState): TuiPluginStatus[] {
492 return state.plugins.map((plugin) => ({
493 id: plugin.id,
494 source: plugin.meta.source,
495 spec: plugin.meta.spec,
496 target: plugin.meta.target,
497 enabled: plugin.enabled,
498 active: plugin.scope !== undefined,
499 }))
500}
501
502async function deactivatePluginEntry(state: RuntimeState, plugin: PluginEntry, persist: boolean) {
503 plugin.enabled = false

Callers 4

deactivatePluginEntryFunction · 0.85
activatePluginEntryFunction · 0.85
listFunction · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected