reviewHeadingBlock
reviewHeadingBlock(
command,model?,provider?):string
Defined in: packages/review/src/modules/reviewHeading.ts:58
Build the review’s opening header: Gaunt Sloth · <command> · <model> (<provider>), plus a
trailing newline so the review body does not start flush against it.
The line is assembled by the SHARED runHeaderLine, and the model half by the SHARED
model (provider) spelling (modelProviderLabel) — the same two the agent’s own run
header uses, rather than a second spelling of the same facts.
Both halves of the model are allowed to be missing, and neither prints a placeholder:
- No provider — a
.gsloth.config.jsmodule config hands the loader an already-builtBaseChatModeland legitimately has no provider string. The bare model prints; there is no(unknown)and no empty(). - No model — the label is dropped entirely and the line ends after the command. A provider name on its own would sit exactly where a model name sits and read as one, and a misidentified model in a review someone later quotes is worse than an absent one. That is the same drop-rather-than-mislead rule the banner applies to a version that does not fit.
Parameters
Section titled “Parameters”command
Section titled “command”"pr" | "review"
model?
Section titled “model?”string
provider?
Section titled “provider?”string
Returns
Section titled “Returns”string