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

Function dict

packages/opencode/src/cli/cmd/run/tool.ts:131–137  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

129type AnyToolRule = ToolRule
130
131function dict(v: unknown): ToolDict {
132 if (!v || typeof v !== "object" || Array.isArray(v)) {
133 return {}
134 }
135
136 return { ...v }
137}
138
139function props<T = Tool.Info>(frame: ToolFrame): ToolProps<T> {
140 return {

Callers 8

language.tsxFile · 0.90
spanFunction · 0.70
runListFunction · 0.70
runBatchFunction · 0.70
scrollListStartFunction · 0.70
permListFunction · 0.70
frameFunction · 0.70
toolFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected