@dxos/compute - v0.16.0
    Preparing search index...

    Type Alias PromptState

    type PromptState = {
        entries: readonly PromptEntry[];
        held: Readonly<Record<Trajectory.EventId, PromptEntry>>;
        origin?: Trajectory.ThreadOrigin;
        position: number;
        positions: HashMap.HashMap<Trajectory.EventId, number>;
        stale: Readonly<Record<Trajectory.ThreadId, readonly Trajectory.EventId[]>>;
        threads: Readonly<Record<Trajectory.ThreadId, ThreadBuffer>>;
    }
    Index

    Properties

    entries: readonly PromptEntry[]

    The main thread's prompt; only appended to, except by compact.

    held: Readonly<Record<Trajectory.EventId, PromptEntry>>

    User messages waiting for a promptConsume.

    Conversation this feed continues (fork); its prompt up to origin.event precedes entries.

    position: number

    Events folded so far, which is the feed position of the next one.

    positions: HashMap.HashMap<Trajectory.EventId, number>

    Feed position of every folded event, to resolve a from.event; persistent, since a copy per event is quadratic.

    stale: Readonly<Record<Trajectory.ThreadId, readonly Trajectory.EventId[]>>

    Threads and turns that merged into a parent holding entries they never saw, with those entries' source events. The merge still happens; whether to accept, re-run or correct is the harness's call.

    threads: Readonly<Record<Trajectory.ThreadId, ThreadBuffer>>