MCPcopy
hub / github.com/anomalyco/opencode / key

Function key

packages/opencode/src/cli/cmd/run/tool.ts:1234–1236  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1232} as const satisfies ToolRegistry
1233
1234function key(name: string): name is ToolName {
1235 return Object.prototype.hasOwnProperty.call(TOOL_RULES, name)
1236}
1237
1238function rule(name?: string): AnyToolRule | undefined {
1239 if (!name || !key(name)) {

Callers 2

ruleFunction · 0.70
fetchFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected