/** SDK-owned platform module. This implementation is maintained in goodvibes-sdk. */ /** * SessionEvent, discriminated union covering all session lifecycle events. * * Covers session lifecycle events for the runtime event bus. */ export type SessionEvent = /** A new session has been created and is initialising. */ { type: 'SESSION_STARTED'; sessionId: string; profileId: string; workingDir: string; } /** An existing session is being loaded from disk. */ | { type: 'SESSION_LOADING'; sessionId: string; path: string; } /** A previously saved session is being resumed. */ | { type: 'SESSION_RESUMED'; sessionId: string; turnCount: number; } /** Session state is being repaired after a detected inconsistency. */ | { type: 'SESSION_REPAIRING'; sessionId: string; reason: string; } /** Context messages are being reconciled with stored state. */ | { type: 'SESSION_RECONCILING'; sessionId: string; messageCount: number; } /** Session is fully loaded and ready for input. */ | { type: 'SESSION_READY'; sessionId: string; } /** Session recovery has failed unrecoverably. */ | { type: 'SESSION_RECOVERY_FAILED'; sessionId: string; error: string; } /** The pending mid-turn message queue changed (enqueued/edited/deleted/delivered). */ | { type: 'QUEUED_MESSAGES_CHANGED'; sessionId: string; action: 'enqueued' | 'edited' | 'deleted' | 'delivered'; messageId: string; pendingCount: number; } /** A companion-app follow-up message was received for the session. */ | { type: 'COMPANION_MESSAGE_RECEIVED'; sessionId: string; messageId: string; body: string; source: string; timestamp: number; metadata?: Readonly> | undefined; }; /** All session event type literals as a union. */ export type SessionEventType = SessionEvent['type']; //# sourceMappingURL=session.d.ts.map