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

Function pluginList

packages/opencode/src/plugin/install.ts:98–103  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

96}
97
98function pluginList(data: unknown) {
99 if (!data || typeof data !== "object" || Array.isArray(data)) return
100 const item = data as { plugin?: unknown }
101 if (!Array.isArray(item.plugin)) return
102 return item.plugin
103}
104
105function exportValue(value: unknown): string | undefined {
106 if (typeof value === "string") {

Callers 1

patchOneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected