Skip to content
Français

conversations

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

Frozen object that groups conversation helpers: transported is createTransportConversations(), harness is createHarnessConversations(), rewrite is relocateTranscript() and projectKey derives Claude’s project folder name.

Complete example and detailed rules.

  • transportedRequired
    (base: ConversationStore, options: TransportConversationOptions) => ConversationStore
    createTransportConversations(): wraps a base store so each capture is also archived through a transport.
  • harnessRequired
    () => ConversationStore
    Create the default custom harness conversation store, whose transcripts live in .outpost/conversations/harness of the target repository.
  • rewriteRequired
    (text: string, destination: string, source?: string) => string
    relocateTranscript(): replaces recorded cwd values equal to source with destination in transcript text, without file I/O.
  • projectKeyRequired
    (path: string) => string
    Encode a repository path as the Claude native project directory key.
export declare const conversations: Readonly<{
  transported: typeof createTransportConversations;
  harness: typeof createHarnessConversations;
  rewrite: typeof relocateTranscript;
  projectKey: typeof projectKey;
}>;