import { type MemoryInput, type MemoryCorrection, type MemoryLanguage, type MemoryManagementView, type MemoryQuery, type MemoryRecord, type MemoryRetrieval, type MemoryReviewSkillRunner, type MemoryProviderConfig } from '../comet-memory/index.js'; import { PluginRuntime } from './plugin-runtime.js'; import { ContextDirector, type AgentContextApplicationStore, type AgentContextApplicationRecord, type AgentContextExpansion, type AgentContextManifestItem, type AgentContextOutcomeStatus, type AgentContextOutcomeEvidence, type AgentExperienceEvent } from '../agent-learning/index.js'; import type { ProjectKnowledgeSemanticReviewer } from '../project-knowledge/learning.js'; export interface CometPluginBridgeOptions { readonly projectRoot: string; readonly projectId: string; readonly language?: MemoryLanguage; /** Optional isolated user home, primarily for hosts and tests. */ readonly homeDirectory?: string; readonly memoryRoot?: string; /** Optional user-level Provider selection, primarily for hosts and tests. */ readonly memoryProviderConfig?: MemoryProviderConfig; readonly stateRoot?: string; readonly knowledgeCacheRoot?: string; readonly cometVersion?: string; /** Host-owned scheduler for the durable Reflection queue. */ readonly scheduleLearning?: (task: () => Promise) => void | Promise; /** Optional host adapter that invokes the installed comet-memory Skill. */ readonly runMemoryReview?: MemoryReviewSkillRunner; /** Optional host callback for the small number of user-visible memory notices. */ readonly onMemoryReviewNotice?: (notice: string) => void | Promise; /** Optional host-owned adapter for nonblocking project knowledge review. */ readonly runProjectKnowledgeReview?: ProjectKnowledgeSemanticReviewer; } export interface CometPluginContextRequest { readonly task: string; readonly path?: string; readonly phase?: string; readonly operation?: string; readonly sessionId?: string; readonly charBudget?: number; } export interface CometPluginContextContribution { readonly pluginId: 'comet.context-director'; readonly text: string; readonly episodeId: string; readonly manifest: readonly AgentContextManifestItem[]; readonly applications: readonly AgentContextApplicationRecord[]; } export declare class CometPluginBridge { private readonly runtime; private readonly projectId; private readonly language; private readonly contextDirector; private readonly applicationStore?; constructor(runtime: PluginRuntime, projectId: string, language?: MemoryLanguage, contextDirector?: ContextDirector, applicationStore?: AgentContextApplicationStore | undefined); get pluginRuntime(): PluginRuntime; get currentProjectId(): string; get currentLanguage(): MemoryLanguage; collectContext(request: CometPluginContextRequest): Promise; expandContext(id: string, request: CometPluginContextRequest): Promise; recordContextOutcome(applicationId: string, outcome: AgentContextOutcomeStatus, evidence?: AgentContextOutcomeEvidence): Promise; private collectCandidates; private recordContextApplications; /** Replay persisted Context application/outcome events into the idempotent Journal. */ flushContextApplicationOutbox(): Promise; dispatchExperience(event: AgentExperienceEvent): Promise; remember(input: MemoryInput): Promise; observe(input: AgentExperienceEvent): Promise; status(): Promise; retrieve(query: MemoryQuery): Promise; manage(query?: MemoryQuery): Promise; correct(id: string, correction: MemoryCorrection): Promise; forget(id: string, permanent?: boolean): Promise; rollback(id: string): Promise; syncMemory(): Promise; memoryRemote(): Promise; configureMemoryRemote(url: string): Promise; pauseProjectLearning(paused: boolean, projectKey?: string): Promise; pauseProjectRetrieval(paused: boolean, projectKey?: string): Promise; diagnostics(): Promise>; } export declare function createDefaultCometPluginBridge(options: CometPluginBridgeOptions): Promise; //# sourceMappingURL=integration.d.ts.map