Skip to content
Français

Brief

import type { Brief } from "@elie-laloum/outpost/core";

The fields below cover all variants; the signature specifies their allowed combinations.

  • textVariant-dependent
    string | undefined
    Literal task brief: no placeholders or commands are expanded. Dispatch appends response-format instructions when response is provided.
  • fileVariant-dependent
    undefined | string
    Template path resolved from the process working directory and read before each pass. Expands {{NAME}} and !`command` fragments in the sandbox. Response-format instructions are appended after rendering and never expanded.
  • valuesOptional
    undefined | Readonly<Record<string, string | number | boolean>> | undefined
    Values for the file’s {{NAME}} placeholders, also inserted unquoted into commands. WORK_BRANCH and BASE_BRANCH are reserved; a missing value fails with code prompt and unused values reach warn.
export type Brief =
  | {
      readonly text: string;
      readonly file?: never;
      readonly values?: never;
    }
  | {
      readonly file: string;
      readonly text?: never;
      readonly values?: PromptVariables;
    };