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

Function readPluginEnabledMap

packages/opencode/src/plugin/tui/runtime.ts:470–475  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

468}
469
470function readPluginEnabledMap(value: unknown) {
471 if (!isRecord(value)) return {}
472 return Object.fromEntries(
473 Object.entries(value).filter((item): item is [string, boolean] => typeof item[1] === "boolean"),
474 )
475}
476
477function pluginEnabledState(state: RuntimeState, config: TuiConfig.Resolved) {
478 return {

Callers 2

pluginEnabledStateFunction · 0.85
writePluginEnabledStateFunction · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected