@tanstack/ai-persistence
Version:
Composable state persistence for TanStack AI messages, runs, interrupts, metadata, and locks.
10 lines (9 loc) • 1.54 kB
JavaScript
import { composePersistence, defineAIPersistence, defineArtifactStore, defineBlobStore, defineGenerationRunStore, defineInterruptStore, defineMessageStore, defineMetadataStore, defineRunStore, isTerminalRunStatus } from "./types.js";
import { InterruptsCapability, PersistenceCapability, PersistenceCompletionCapability, getInterrupts, getPersistence, getPersistenceCompletion, provideInterrupts, providePersistence, providePersistenceCompletion } from "./capabilities.js";
import { resolveArtifactBlobKey, retrieveArtifact, retrieveBlob } from "./retrieve.js";
import { withGenerationPersistence, withPersistence } from "./middleware.js";
import { reconstructChat } from "./reconstruct.js";
import { getGenerationHydration, reconstructGeneration } from "./reconstruct-generation.js";
import { parseRangeHeader, resolveBlobRange } from "./blob-range.js";
import { memoryPersistence } from "./memory.js";
export { InterruptsCapability, PersistenceCapability, PersistenceCompletionCapability, composePersistence, defineAIPersistence, defineArtifactStore, defineBlobStore, defineGenerationRunStore, defineInterruptStore, defineMessageStore, defineMetadataStore, defineRunStore, getGenerationHydration, getInterrupts, getPersistence, getPersistenceCompletion, isTerminalRunStatus, memoryPersistence, parseRangeHeader, provideInterrupts, providePersistence, providePersistenceCompletion, reconstructChat, reconstructGeneration, resolveArtifactBlobKey, resolveBlobRange, retrieveArtifact, retrieveBlob, withGenerationPersistence, withPersistence };