aicf-core
Version:
Universal AI Context Format (AICF) - Enterprise-grade AI memory infrastructure with 95.5% compression and zero semantic loss
73 lines • 3.84 kB
TypeScript
/**
* SPDX-License-Identifier: AGPL-3.0-or-later
* Copyright (c) 2025 Dennis van Leeuwen
*
* AICF Core - Universal AI Context Format Infrastructure
* Enterprise-grade AI memory system with 95.5% compression and zero semantic loss
*/
import { AICFAPI } from "./aicf-api.js";
import { AICFReader } from "./aicf-reader.js";
import { AICFWriter } from "./aicf-writer.js";
import { AICFSecure } from "./aicf-secure.js";
export { AICFAPI } from "./aicf-api.js";
export { AICFReader, type AICFReaderConfig, type AICFConversation, type AICFStats, } from "./aicf-reader.js";
export { AICFWriter, type AICFWriterConfig } from "./aicf-writer.js";
export { AICFSecure, type AICFSecureConfig, type SecurityEvent, } from "./aicf-secure.js";
export { MemoryFileWriter, type UserIntent, type AIAction, type TechnicalWork, type Decision, type ConversationFlow, type WorkingState, type AnalysisResult, } from "./writers/MemoryFileWriter.js";
export type { Result, AICFData, AICFMetadata, AICFSession, AICFMemory, AICFState, AICFConversation as AICFConversationType, AICFInsight, AICFDecision, AICFWork, AICFLink, AICFEmbedding, AICFConsolidation, FileSystem, Logger, } from "./types/index.js";
export { ok, err, toError, map, mapError, andThen, combine, tryCatch, tryCatchAsync, } from "./types/result.js";
export { parseAICF, parseSectionName, parsePipeLine, parseKeyValue, validateAICF, } from "./parsers/aicf-parser.js";
export { compileAICF, compileMetadata, compileSession, compileConversations, } from "./parsers/aicf-compiler.js";
export { validatePath, normalizePath } from "./security/path-validator.js";
export { sanitizePipeData, sanitizeString, sanitizeTimestamp, sanitizeNumber, } from "./security/data-sanitizer.js";
export { detectPII, redactPII, PIIDetector, type PIIDetection, type PIIRedactionResult, } from "./security/pii-detector.js";
export { PII_PATTERNS, type PIIType } from "./security/pii-patterns.js";
export { atomicFileOperation, readFileStream, safeReadFile, } from "./security/file-operations.js";
export { RateLimiter, type RateLimiterOptions, } from "./security/rate-limiter.js";
export { calculateChecksum, verifyChecksum } from "./security/checksum.js";
export { validateConfig, SECURE_DEFAULTS, type SecurityConfig, } from "./security/config-validator.js";
export { NodeFileSystem, SafeFileSystem } from "./utils/file-system.js";
export { ConsoleLogger, SilentLogger, type LogLevel } from "./utils/logger.js";
/**
* Main AICF class - Complete interface for AI Context Format
*/
export declare class AICF extends AICFAPI {
/**
* Factory method to create AICF instance
*/
static create(aicfDir?: string): AICF;
/**
* Create reader-only instance for read operations
*/
static createReader(aicfDir?: string): AICFReader;
/**
* Create writer-only instance for write operations
*/
static createWriter(aicfDir?: string): AICFWriter;
/**
* Create secure instance with PII protection
*/
static createSecure(aicfDir?: string): AICFSecure;
/**
* Create memory writer instance for analysis results
* @since 2.1.0
*/
static createMemoryWriter(cwd?: string): import("./writers/MemoryFileWriter.js").MemoryFileWriter;
/**
* Get version information
*/
static getVersion(): {
version: string;
aicfFormat: string;
compressionRatio: string;
semanticLoss: string;
};
}
export default AICF;
export declare const create: typeof AICF.create;
export declare const createReader: typeof AICF.createReader;
export declare const createWriter: typeof AICF.createWriter;
export declare const createSecure: typeof AICF.createSecure;
export declare const createMemoryWriter: typeof AICF.createMemoryWriter;
export declare const getVersion: typeof AICF.getVersion;
//# sourceMappingURL=index.d.ts.map