Skip to content
Français

createTransportConversations

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

Wrap a base ConversationStore that declares a format, such as createKimiConversations(), so each capture is also archived under conversations/<namespace>/<format>/<id>. locate() materializes the latest snapshot under the repository’s .outpost/recovery/conversations and restore() delegates to the base store. Archives are neither encrypted nor authenticated.

Complete example and detailed rules.

  • baseRequired
    ConversationStore
    Store whose captures are archived, such as createKimiConversations() or createHarnessConversations(). Without a format, creation rejects with code configuration.
  • optionsRequired
    TransportConversationOptions
    Transport and stable project namespace shared by all runners restoring these conversations.
  • options.namespaceRequired
    string
    Project name in the keys, conversations/<namespace>/<format>/<id>; must be a valid transport key. Use the same value on every machine that resumes these conversations, and a distinct one per project.
  • options.transporterRequired
    Transport
    Caller-owned object transport used by the store or operation. Closing a workflow or sandbox does not close this transport.

ConversationStore

export declare function createTransportConversations(
  base: ConversationStore,
  options: TransportConversationOptions,
): ConversationStore;