UNPKG

create-ai-chat-context-experimental

Version:

Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).

77 lines 2.2 kB
"use strict"; /** * This file is part of create-ai-chat-context-experimental. * Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). * See LICENSE file for details. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationError = exports.PlatformDetectionError = exports.ExtractionError = exports.ConversationParsingError = exports.FileOperationError = exports.AppError = void 0; /** * Error type definitions * Phase 2: TypeScript rewrite - October 2025 */ /** * Base application error */ class AppError extends Error { code; details; constructor(code, message, details) { super(message); this.code = code; this.details = details; this.name = 'AppError'; } } exports.AppError = AppError; /** * File operation error */ class FileOperationError extends AppError { constructor(message, details) { super('FILE_OPERATION_ERROR', message, details); this.name = 'FileOperationError'; } } exports.FileOperationError = FileOperationError; /** * Conversation parsing error */ class ConversationParsingError extends AppError { constructor(message, details) { super('CONVERSATION_PARSING_ERROR', message, details); this.name = 'ConversationParsingError'; } } exports.ConversationParsingError = ConversationParsingError; /** * Extraction error */ class ExtractionError extends AppError { constructor(message, details) { super('EXTRACTION_ERROR', message, details); this.name = 'ExtractionError'; } } exports.ExtractionError = ExtractionError; /** * Platform detection error */ class PlatformDetectionError extends AppError { constructor(message, details) { super('PLATFORM_DETECTION_ERROR', message, details); this.name = 'PlatformDetectionError'; } } exports.PlatformDetectionError = PlatformDetectionError; /** * Validation error */ class ValidationError extends AppError { constructor(message, details) { super('VALIDATION_ERROR', message, details); this.name = 'ValidationError'; } } exports.ValidationError = ValidationError; //# sourceMappingURL=errors.js.map