MCPcopy Create free account
hub / github.com/cortexkit/magic-context / findDcpPluginIndexes

Function findDcpPluginIndexes

packages/cli/src/commands/setup-opencode.ts:118–122  ·  view source on GitHub ↗
(plugins: unknown[])

Source from the content-addressed store, hash-verified

116}
117
118export function findDcpPluginIndexes(plugins: unknown[]): number[] {
119 return plugins
120 .map((plugin, index) => (matchesPluginEntry(plugin, DCP_PLUGIN_NAME) ? index : -1))
121 .filter((index) => index >= 0);
122}
123
124function pluginEntryName(entry: unknown): string {
125 if (typeof entry === "string") return entry;

Callers 2

Calls 1

matchesPluginEntryFunction · 0.90

Tested by

no test coverage detected