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

Function isServerPlugin

packages/opencode/src/plugin/index.ts:84–86  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

82}
83
84function isServerPlugin(value: unknown): value is PluginInstance {
85 return typeof value === "function"
86}
87
88function getServerPlugin(value: unknown) {
89 if (isServerPlugin(value)) return value

Callers 1

getServerPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected