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

Function toolLayer

packages/core/test/tool-webfetch.test.ts:42–47  ·  view source on GitHub ↗
(replacements: LayerNode.Replacements = [])

Source from the content-addressed store, hash-verified

40 }),
41)
42const toolLayer = (replacements: LayerNode.Replacements = []) =>
43 AppNodeBuilder.build(LayerNode.group([ToolRegistry.node, ToolRegistry.toolsNode, WebFetchTool.node]), [
44 [PermissionV2.node, permission],
45 [ToolOutputStore.node, ToolOutputStore.nodeWithoutConfig],
46 ...replacements,
47 ])
48const it = testEffect(toolLayer([[LayerNodePlatform.httpClient, http]]))
49const live = testEffect(toolLayer())
50

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected