Skip to content
Français

createReporter

import { createReporter } from "@elie-laloum/outpost";

Create an observe callback that prints one line per event: phases, tool calls, warnings, failures and each pass summary with its token counts. It writes to process.stdout unless write is given and never changes execution.

Complete example and detailed rules.

  • optionsOptional
    ReporterOptions | undefined
    Output label, verbosity, silence mode and optional custom writer.
  • options.labelOptional
    string | undefined
    Prefix printed in brackets on every line, default outpost; the pass number follows it.
  • options.verboseOptional
    boolean | undefined
    Also print tool inputs and result previews, prompts, raw protocol lines, conversation IDs, harness steps and compactions, the workspace directory and successful operations.
  • options.quietOptional
    boolean | undefined
    Suppress all reporter output, including warnings and failures.
  • options.writeOptional
    ((text: string) => void) | undefined
    Receives each formatted chunk of output instead of process.stdout.

(event: ObservationEvent & ReportPass) => void

export declare function createReporter(
  options?: ReporterOptions,
): (event: ObservationEvent & ReportPass) => void;