/** * Context management for mom. * * Mom uses two files per channel: * - context.jsonl: Structured API messages for LLM context (same format as coding-agent sessions) * - log.jsonl: Human-readable channel history for grep (no tool results) * * This module provides: * - syncLogToSessionManager: Syncs messages from log.jsonl to SessionManager * - createMomSettingsManager: Creates a SettingsManager backed by workspace settings.json */ import { type SessionManager, SettingsManager } from "@apholdings/jensen-code"; /** * Sync user messages from log.jsonl to SessionManager. * * This ensures that messages logged while mom wasn't running (channel chatter, * backfilled messages, messages while busy) are added to the LLM context. * * @param sessionManager - The SessionManager to sync to * @param channelDir - Path to channel directory containing log.jsonl * @param excludeSlackTs - Slack timestamp of current message (will be added via prompt(), not sync) * @returns Number of messages synced */ export declare function syncLogToSessionManager(sessionManager: SessionManager, channelDir: string, excludeSlackTs?: string): number; export declare function createMomSettingsManager(workspaceDir: string): SettingsManager; //# sourceMappingURL=context.d.ts.map