/** * Agent Migration Script * * 职责: * 1. 从 ~/.config/opencode/agents/ 读取现有 agent 定义 * 2. 检查 data/agents/ 目录是否为空 * 3. 如果为空,将 OpenCode agent 配置导入为 JSON 文件 * 4. 记录迁移结果日志 * * 设计原则: * - 仅在首次启动时执行一次(data/agents/ 为空时) * - 不删除 OpenCode 配置(只读) * - 保留现有 agent 数据 * - 清晰的日志输出 */ interface MigrationResult { success: boolean; migratedCount: number; skippedCount: number; errors: string[]; } /** * 执行迁移 */ export declare function migrateAgentsFromOpenCode(): Promise; export {}; //# sourceMappingURL=migration.d.ts.map