Skip to content
Français

FileDispatchResult

import type { FileDispatchResult } from "@elie-laloum/outpost/core";
  • reportDataRequired
    FileRunReport
    Version-2 FileRunReport data with workspaceInfo and fileOutputs, without synthetic Git fields. Available after cleanup with the same redaction as report(); independent of the renderer and other result fields. Editing this snapshot does not change report().
  • logReferenceOptional
    TransportReference | undefined
    Transport journal reference for this execution; file replay effects are refused when they cannot be reproduced.
  • observerErrorsOptional
    readonly unknown[] | undefined
    Observer failures collected separately without changing execution outcomes.
  • transcriptOptional
    string | undefined
    Captured conversation content or its Transport reference, independent of agent authentication.
  • transcriptReferenceOptional
    TransportReference | undefined
    Captured conversation content or its Transport reference, independent of agent authentication.
  • fallbackOptional
    FallbackRecord | undefined
    Explicit fallback attempts and their usage, retaining each captured conversation.
  • workspaceInfoRequired
    FileWorkspaceRecord
    Versioned workspace description retaining ownership, settled generation and recovery references.
  • directoryRequired
    string
    Absolute local materialization or source directory; it is not a portable resource identity.
  • fileOutputsRequired
    readonly WorkspacePublication[]
    Verified publication results, separate from Git commits and branch integration.
  • reportRequired
    (options?: RunReportOptions) => string
    Render the saved version-2 FileRunReport as JSON by default or Markdown on request. Synchronous, without filesystem reads; independent of edits to reportData. Redaction applies to every string. Git reports keep version 1 and default to Markdown.
  • resumeRequired
    <U = undefined>(options: DispatchOptions<U>) => Promise<FileDispatchResult<U>>
    Continue a captured conversation in the same retained file workspace without recopying initial inputs.
  • forkRequired
    <U = undefined>(options: DispatchOptions<U>) => Promise<FileDispatchResult<U>>
    Fork a captured conversation when supported while retaining the current workspace files.
  • observationIdOptional
    string | undefined
    Tracking ID when createObservation() owns this dispatch session; use it with observation.readRun/watchRun when a transport is configured. Equal to the retained runId field. Absent for legacy hubs and nested dispatches, which join the parent projection. Continuations own new sessions.
  • runIdOptional
    string | undefined
    Tracking ID returned when createObservation() owns this dispatch session; absent for legacy hubs and nested dispatches. Read its persisted state through the observation client when a transport is configured. Retained for compatibility; prefer observationId when reading or watching tracking state.
  • textRequired
    string
    Text of every turn of the execution, joined with newlines, including response repair turns.
  • turnsRequired
    readonly Turn[]
    Every turn in order, including response repairs and turns resumed by steering.
  • usageRequired
    Usage
    Token counters summed over every turn; not a cost.
  • conversationOptional
    string | undefined
    Native conversation id of the last turn, when the agent reported one.
  • valueRequired
    T
    Parsed and validated response; undefined without a response option.
  • completedRequired
    boolean
    True when the last turn’s text contains a completion marker, or when a typed response was validated.
  • completionOptional
    string | undefined
    Completion marker found in the last turn’s text.
export interface FileDispatchResult<T> extends Execution<T> {
  readonly reportData: FileRunReport;
  readonly logReference?: TransportReference;
  readonly observerErrors?: readonly unknown[];
  readonly transcript?: string;
  readonly transcriptReference?: TransportReference;
  readonly fallback?: FallbackRecord;
  readonly workspaceInfo: FileWorkspaceRecord;
  readonly directory: string;
  readonly fileOutputs: readonly WorkspacePublication[];
  report(options?: RunReportOptions): string;
  resume<U = undefined>(
    options: DispatchOptions<U>,
  ): Promise<FileDispatchResult<U>>;
  fork<U = undefined>(
    options: DispatchOptions<U>,
  ): Promise<FileDispatchResult<U>>;
}