/** * VercelSessionStore — persists Vercel conversation history for resume. * * The Vercel AI SDK is stateless: streamText/generateText don't persist * conversation history server-side (unlike Claude Agent SDK's session ID). * To support checkpoint/resume, we serialize the message array to disk and * reload it on the next run when a session ID is provided. * * Session IDs are role-scoped and stable: a new UUID is minted per role per * org (not per result), persisted in the filename, and reused across restarts * via the `resume` argument. This matches the AgentRunner contract where * session.ts carries `resumeSessionId` across maxTurns restarts and * checkpoint-ops.ts persists it to `runtime.json`. */ export interface VercelMessage { role: 'user' | 'assistant' | 'system' | 'tool'; content: string; } export declare class VercelSessionStore { readonly sessionId: string; private readonly filePath; constructor(orgDir: string, roleId: string, sessionId?: string); load(): Promise; save(messages: VercelMessage[]): Promise; } //# sourceMappingURL=vercel-session-store.d.ts.map