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

Function experimentalWebSocketsEnabled

packages/opencode/src/plugin/index.ts:60–62  ·  view source on GitHub ↗
(input: { enabled: boolean; channel?: string })

Source from the content-addressed store, hash-verified

58export class Service extends Context.Service<Service, Interface>()("@opencode/Plugin") {}
59
60export function experimentalWebSocketsEnabled(input: { enabled: boolean; channel?: string }) {
61 return input.enabled || ["local", "dev", "beta"].includes(input.channel ?? InstallationChannel)
62}
63
64// Built-in plugins that are directly imported (not installed from npm)
65function internalPlugins(flags: RuntimeFlags.Info): PluginInstance[] {

Callers 2

internalPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected