Make memory runtime-native for companion chat

Replace the old project-scoped file memory plumbing with runtime-native conversational memory and remove obsolete pi-memory-md shipping/wiring.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-08 15:24:52 -07:00
parent 9765576c0a
commit 5c389efcf9
10 changed files with 1859 additions and 1536 deletions

View file

@ -63,6 +63,17 @@ export interface GatewaySettings {
webhook?: GatewayWebhookSettings;
}
export interface CompanionMemorySettings {
enabled?: boolean;
storageDir?: string;
maxCoreTokens?: number;
maxRecallResults?: number;
writer?: {
enabled?: boolean;
maxTokens?: number;
};
}
export type TransportSetting = Transport;
/**
@ -125,6 +136,7 @@ export interface Settings {
showHardwareCursor?: boolean; // Show terminal cursor while still positioning it for IME
markdown?: MarkdownSettings;
gateway?: GatewaySettings;
companionMemory?: CompanionMemorySettings;
}
/** Deep merge settings: project/overrides take precedence, nested objects merge recursively */