Skip to content

parseCommandOutputResult

parseCommandOutputResult(result): { body: string; tail: string; } | null

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/toolDisplay.ts:245

Parse the shared shell-result shape (Executing '…'…\n\n<COMMAND_OUTPUT>…</COMMAND_OUTPUT>\n\n <status line>). Returns the captured output body and the trailing status text, or null when the result is not shell-shaped.

string | undefined

{ body: string; tail: string; } | null