/** * LocalAgentStore:Workspace 内本地 Agent 领域数据入口。 * * 职责说明(中文) * - 统一管理 Session 创建判断、删除、列表、归档与清理。 * - 缓存稳定的 LocalSessionStore,避免同一 Session 重复创建 Message Store。 * - 当前阶段沿用既有本地目录布局;调用方和 Session 不感知该约定。 */ import type { AgentArchiveSessionResult, AgentArchiveSessionsInput, AgentArchiveSessionsResult, AgentCleanArchiveResult, AgentListSessionsInput, AgentSessionSummaryPage } from "../../types/agent/SessionTypes.js"; import type { AgentStore } from "../../types/store/AgentStore.js"; import type { SessionStore } from "../../types/store/SessionStore.js"; import type { LocalAgentStoreOptions } from "../../types/store/LocalStore.js"; /** 默认本地 Agent Store。 */ export declare class LocalAgentStore implements AgentStore { /** 当前 Store 与 WorkspaceTools 共用的 Workspace 文件能力。 */ private readonly files; /** 当前 Agent 的稳定标识。 */ private readonly agent_id; /** 已创建的 Session Store 缓存。 */ private readonly sessions; constructor(options: LocalAgentStoreOptions); /** 返回指定 Session 的稳定持久化视图。 */ session(session_id: string): SessionStore; /** 判断活动 Session 是否存在。 */ has_session(session_id: string): Promise; /** 永久删除活动 Session。 */ remove_session(session_id: string): Promise; /** 清空活动 Session Message 数据。 */ clear_session_messages(session_id: string): Promise; /** 返回活动 Session 摘要页。 */ list_sessions(input: AgentListSessionsInput | undefined, executing_session_ids: ReadonlySet): Promise; /** 将活动 Session 迁入归档区。 */ archive_session(session_id: string): Promise; /** 返回归档 Session 摘要页。 */ list_archived_sessions(input?: AgentArchiveSessionsInput): Promise; /** 永久删除全部归档 Session。 */ clean_archive(): Promise; /** 本地 JSONL Store 当前没有常驻句柄。 */ dispose(): Promise; /** 返回活动 Session 物理目录,仅供本地实现内部使用。 */ private session_path; } //# sourceMappingURL=LocalAgentStore.d.ts.map