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

Function userBody

packages/opencode/src/cli/cmd/run/entry.body.ts:51–59  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

49}
50
51function userBody(raw: string): RunEntryBody {
52 if (!raw.trim()) {
53 return RUN_ENTRY_NONE
54 }
55
56 const lead = raw.match(/^\n+/)?.[0] ?? ""
57 const body = lead ? raw.slice(lead.length) : raw
58 return textBody(`${lead}› ${body}`)
59}
60
61function reasoningBody(raw: string): RunEntryBody {
62 const clean = raw.replace(/\[REDACTED\]/g, "")

Callers 1

entryBodyFunction · 0.85

Calls 1

textBodyFunction · 0.70

Tested by

no test coverage detected