aicf-core
Version:
Universal AI Context Format (AICF) - Enterprise-grade AI memory infrastructure with 95.5% compression and zero semantic loss
45 lines • 1.43 kB
TypeScript
/**
* AI-Native Conversation Format (AICF) v1.0
* Copyright (c) 2025 Dennis van Leeuwen
*
* Optimized for AI parsing efficiency, not human readability.
* Token reduction: 85% vs YAML, 95% vs prose
*
* Format: C#|YYYYMMDD|T|TOPIC|WHAT|WHY|O|FILES
*
* Types: R=Release, F=Feature, X=Fix, D=Docs, W=Work, M=Refactor
* Outcomes: S=Shipped, D=Decided, R=Resolved, P=InProgress, B=Blocked
*/
export type ConversationType = "R" | "F" | "X" | "D" | "W" | "M";
export type OutcomeType = "S" | "D" | "R" | "P" | "B";
export interface ParsedData {
chat?: string;
date?: string;
type?: ConversationType;
topic?: string;
what?: string;
why?: string;
outcome?: OutcomeType;
files?: string[];
}
/**
* Convert YAML entry to AI-native format
*/
export declare function yamlToAiNative(yamlEntry: string): string;
/**
* Convert AI-native format to YAML entry
*/
export declare function aiNativeToYaml(aiNativeLine: string): string;
/**
* Convert markdown entry to AI-native format
*/
export declare function markdownToAiNative(markdownEntry: string): string;
/**
* Convert entire conversation log to AI-native format
*/
export declare function convertConversationLog(content: string, format?: "yaml" | "markdown"): string[];
/**
* Generate AI-native summary section
*/
export declare function generateAiNativeSummary(aiNativeLines: string[]): string;
//# sourceMappingURL=ai-native-format.d.ts.map