(output: ModelOutput)
| 30 | |
| 31 | /** Format raw search results into the concise line-oriented output models expect. */ |
| 32 | export 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. */ |
| 38 | const layer = Layer.effectDiscard( |