/** * KHAELOR * File: src/session/index.ts * Description: Public barrel for the session module (Layer 1 — imports shared only). * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai */ export { EVENT_SCHEMA_VERSION, DURABLE_EVENT_TYPES, EPHEMERAL_EVENT_TYPES, isDurableEventType, isEphemeralEventType, isDurableEvent, } from "./events.js"; export type { EventSchemaVersion, Durable, Ephemeral, StopReason, ModelUsage, DiffStats, CheckResult, CompletionEvidence, GitBaseline, ModelErrorKind, ToolName, SessionStarted, SessionResumed, SessionRenamed, ModelChanged, BaselineRecorded, UserMessageCreated, SteeringQueued, SteeringInjected, Interrupted, ModelRequestStarted, ModelTextDelta, ModelThinkingDelta, ToolCallStarted, ToolInputDelta, ModelTextBlockCompleted, ModelThinkingBlockCompleted, ToolRequested, ModelResponseCompleted, ModelRequestFailed, PermissionRequested, PermissionGranted, PermissionDenied, ToolApproved, ToolStarted, ToolOutput, ToolCompleted, ToolFailed, ToolCancelled, FileRead, FileModified, ProcessStarted, ProcessOutput, ProcessExited, ContextPruned, ContextCompacted, VerificationRequested, TaskCompleted, TaskFailed, Phase, DesignArtifact, PhaseEntered, PhaseArtifact, PhaseApproved, PhaseRejected, VerifyResult, MemoryWritten, SubtaskCreated, SubtaskCompleted, DurableEvent, EphemeralEvent, KhaelorEvent, DurableEventType, EphemeralEventType, DurableEventInput, EphemeralEventInput, } from "./events.js"; export { SessionEventBus, Coalescer, blockKey, COALESCER_TRUNCATION_MARKER } from "./bus.js"; export type { EventBus, DurableAppender, SessionEventBusOptions, BlockKey, CoalescedFrame, CoalescerOptions, } from "./bus.js"; export { SessionLog, defaultSessionsDir, canonicalizeJsonValue } from "./store.js"; export { extractUserTurns, forkSession, listForkCheckpoints, metaFilePath, readSessionMeta, writeSessionMeta, } from "./fork.js"; export type { ForkCheckpoint, ForkOptions, ForkResult, SessionMeta } from "./fork.js"; export { renderSessionDiff, summarizeSessionRun } from "./sdiff.js"; export type { SessionRunSummary } from "./sdiff.js"; export type { SessionLogCreateOptions, SessionLogOpenOptions, TornLineRecovery, } from "./store.js"; export { buildConversation, buildUsageTotals, buildFileChangeSet, findDanglingToolUseIds, isPairingSafeCut, COMPACTION_MESSAGE_PREFIX, } from "./projections.js"; export type { ContentBlock, ConversationMessage, ModelUsageTotals, UsageTotals, FileChange, FileReadRecord, FileChangeSet, } from "./projections.js";