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

Function info

packages/opencode/src/cli/cmd/run/tool.ts:175–189  ·  view source on GitHub ↗
(data: ToolDict, skip: string[] = [])

Source from the content-addressed store, hash-verified

173}
174
175function info(data: ToolDict, skip: string[] = []): string {
176 const list = Object.entries(data).filter(([key, val]) => {
177 if (skip.includes(key)) {
178 return false
179 }
180
181 return typeof val === "string" || typeof val === "number" || typeof val === "boolean"
182 })
183
184 if (list.length === 0) {
185 return ""
186 }
187
188 return `[${list.map(([key, val]) => `${key}=${String(val)}`).join(", ")}]`
189}
190
191function span(state: ToolDict): string {
192 const time = dict(state.time)

Callers 6

RunFooterViewFunction · 0.70
RunQuestionBodyFunction · 0.70
RunPermissionBodyFunction · 0.70
fallbackStartFunction · 0.70
runReadFunction · 0.70
scrollReadStartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected