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

Function firstLine

packages/desktop/src/main/wsl/runtime.ts:367–374  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

365}
366
367function firstLine(value: string) {
368 return (
369 value
370 .split(/\r?\n/g)
371 .map((line) => line.trim())
372 .find(Boolean) ?? null
373 )
374}
375
376export function summarize(value: string) {
377 return value

Callers 3

probeWslRuntimeFunction · 0.85
resolveWslOpencodeFunction · 0.85
readWslCommandVersionFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected