/** * CodeBuddy 会话适配器 * * 从 CodeBuddy 的会话存储中读取消息并转换为标准化的 SessionLog 格式 * * 存储结构(Windows): * %LOCALAPPDATA%\CodeBuddyExtension\Data\{userId}\JetBrains\{userId}\history\{projectHash}\ * ├── index.json # 会话列表 * └── {conversationId}\ * ├── index.json # 消息索引 * └── messages\ * └── {messageId}.json # 单条消息 */ import type { SessionAdapter, SessionMeta, SessionLog } from '../memory-types.js'; /** * CodeBuddy 会话适配器 */ export declare class CodeBuddyAdapter implements SessionAdapter { name: string; private dataDir; private historyDir; constructor(); /** * 检测 CodeBuddy 是否已安装 */ detect(): Promise; /** * 列出所有项目(projectHash) */ listProjects(): Promise; /** * 列出指定项目的所有会话 */ listSessions(project: string): Promise; /** * 加载指定会话并转换为标准格式 */ loadSession(project: string, sessionId: string): Promise; } /** * 计算项目路径的 MD5 哈希 */ export declare function computeProjectHash(projectPath: string): string; //# sourceMappingURL=codebuddy-adapter.d.ts.map