/** * Memory Provider Interface * * This defines the interface for memory capabilities that can be * registered in external systems. This standalone version doesn't * depend on pi-orchestration. */ import type { SQLiteStore } from "./store.js"; import type { ReasoningEngine } from "./reasoning.js"; export interface MemoryQuery { query: string; scope?: 'project' | 'global'; topK?: number; peerId?: string; } export interface MemoryObservation { peerId?: string; aboutPeerId?: string; sessionId?: string; role: 'user' | 'assistant' | 'system'; content: string; metadata?: Record; } export interface IMemoryCapability { query(options: MemoryQuery): Promise<{ results: Array<{ content: string; similarity: number; metadata: unknown; }>; summary?: string; }>; observe(obs: MemoryObservation): Promise<{ success: boolean; id?: string; }>; getContext(peerId?: string, scope?: 'project' | 'global'): Promise; } export declare class MemoryProvider implements IMemoryCapability { private store; private _reasoning; private activeWorkspaceId; constructor(store: SQLiteStore, _reasoning: ReasoningEngine, activeWorkspaceId: string); /** * Search memory for relevant information using * a blend of keyword and semantic search. */ query(options: MemoryQuery): Promise<{ results: Array<{ content: string; similarity: number; metadata: unknown; }>; summary?: string; }>; /** * Record a raw observation into the store. */ observe(obs: MemoryObservation): Promise<{ success: boolean; id?: string; }>; /** * Retrieve the general context for the current project. */ getContext(peerId?: string, scope?: 'project' | 'global'): Promise; } //# sourceMappingURL=bridge.d.ts.map