glrs
    Preparing search index...

    Type Alias SessionRepository

    Durable session operations required by an SDK host.

    type SessionRepository = {
        append: (id: string, events: readonly SessionEvent[]) => Promise<void>;
        create: (cwd: string) => Promise<Session>;
        fork: (id: string, atEvent?: number) => Promise<Session>;
        list: () => Promise<Session[]>;
        load: (id: string) => Promise<Session | null>;
        save: (session: Session) => Promise<void>;
    }
    Index
    append: (id: string, events: readonly SessionEvent[]) => Promise<void>
    create: (cwd: string) => Promise<Session>
    fork: (id: string, atEvent?: number) => Promise<Session>
    list: () => Promise<Session[]>
    load: (id: string) => Promise<Session | null>
    save: (session: Session) => Promise<void>