UNPKG

@codervisor/devlog-core

Version:

Core devlog management functionality

43 lines 1.23 kB
/** * TypeORM entity for chat sessions * Maps to the ChatSession interface and chat_sessions table */ import 'reflect-metadata'; import type { AgentType, ChatStatus } from '../types/index.js'; /** * Chat session entity matching the ChatSession interface */ export declare class ChatSessionEntity { id: string; agent: AgentType; timestamp: string; workspace?: string; workspacePath?: string; title?: string; status: ChatStatus; messageCount: number; duration?: number; metadata: Record<string, any>; tags: string[]; importedAt: string; updatedAt: string; archived: boolean; linkedDevlogs: number[]; /** * Convert entity to ChatSession interface */ toChatSession(): import('../types/index.js').ChatSession; /** * Create entity from ChatSession interface */ static fromChatSession(session: import('../types/index.js').ChatSession): ChatSessionEntity; /** * Helper method for JSON field parsing (database-specific) */ private parseJsonField; /** * Helper method for JSON field stringification (database-specific) */ private stringifyJsonField; } //# sourceMappingURL=chat-session.entity.d.ts.map