import { Service, type Context } from '@deepseek-ai/cordis'; import z from '@deepseek-ai/schemastery'; import { WorkspaceMemoryEngine, type CheckpointInput, type CheckpointResult, type ForgetInput, type MemoryContext, type RecallInput, type RememberInput, type WorkspaceMemory } from './core.js'; export declare const name = "workspace-memory"; declare module '@deepseek-ai/dsh-llm' { interface MessageSourceMap { 'workspace-memory': { readonly kind: 'workspace-memory'; }; } } export interface Config { memoryDir?: string; checkpointTurns?: number; checkpointChars?: number; idleCheckpointMs?: number; consolidateEvery?: number; summaryMaxBytes?: number; recallMaxBytes?: number; recallLimit?: number; checkpointMaxChars?: number; keepSummaryVersions?: number; summarizeProvider?: string; summarizeModel?: string; surfacedPenalty?: number; } export declare const Config: z; checkpointTurns: z; checkpointChars: z; idleCheckpointMs: z; consolidateEvery: z; summaryMaxBytes: z; recallMaxBytes: z; recallLimit: z; checkpointMaxChars: z; keepSummaryVersions: z; summarizeProvider: z; summarizeModel: z; surfacedPenalty: z; }>>, Schemastery.ObjectT; checkpointTurns: z; checkpointChars: z; idleCheckpointMs: z; consolidateEvery: z; summaryMaxBytes: z; recallMaxBytes: z; recallLimit: z; checkpointMaxChars: z; keepSummaryVersions: z; summarizeProvider: z; summarizeModel: z; surfacedPenalty: z; }>>, "plain">; declare module '@deepseek-ai/cordis' { interface Context { workspaceMemory: WorkspaceMemoryRuntime; } } /** Cordis adapter exposing the deep WorkspaceMemory module to Agents and Voco. */ export declare class WorkspaceMemoryRuntime extends Service implements WorkspaceMemory { static Config: z; checkpointTurns: z; checkpointChars: z; idleCheckpointMs: z; consolidateEvery: z; summaryMaxBytes: z; recallMaxBytes: z; recallLimit: z; checkpointMaxChars: z; keepSummaryVersions: z; summarizeProvider: z; summarizeModel: z; surfacedPenalty: z; }>>, Schemastery.ObjectT; checkpointTurns: z; checkpointChars: z; idleCheckpointMs: z; consolidateEvery: z; summaryMaxBytes: z; recallMaxBytes: z; recallLimit: z; checkpointMaxChars: z; keepSummaryVersions: z; summarizeProvider: z; summarizeModel: z; surfacedPenalty: z; }>>, "plain">; private readonly settings; private readonly idleTimers; private readonly retryAttempts; private readonly store; private readonly engine; private readonly surfacedBySession; private syncOrphanedScopesAt; private syncOrphanedScopesPromise; constructor(ctx: Context, config?: Config); recall(input: RecallInput): Promise; checkpoint(input: CheckpointInput): Promise; remember(input: RememberInput): ReturnType; forget(input: ForgetInput): ReturnType; private isArchivedCwd; /** Move scopes whose workspace registration was deleted into the recoverable archive. */ private syncOrphanedScopes; private resolveCwd; private updateIdleTimer; private nextRetryDelay; private scheduleIdleCheckpoint; private recoverPendingCheckpoints; private distill; private installPromptInjection; private installAgentRetrieval; private installAgentCheckpointing; private installTools; /** Expose a redacted, read-only projection for the settings memory browser. */ private installBrowserApi; } export { WorkspaceMemoryEngine, WorkspaceMemoryStore } from './core.js'; export default WorkspaceMemoryRuntime; //# sourceMappingURL=index.d.ts.map