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

Function toModelOutput

packages/core/src/tool/glob.ts:32–35  ·  view source on GitHub ↗
(output: ModelOutput)

Source from the content-addressed store, hash-verified

30
31/** Format raw search results into the concise line-oriented output models expect. */
32export const toModelOutput = (output: ModelOutput) => {
33 const lines = output.length === 0 ? ["No files found"] : output.map((item) => item.path)
34 return lines.join("\n")
35}
36
37/** Glob leaf that defaults its filesystem root to the active Location. */
38const layer = Layer.effectDiscard(

Callers 1

glob.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected