/** * migrate — 将老版本 Zhin 项目快速升级到最新 * * - 升级 package.json 中 zhin.js 与所有 @zhin.js/* 依赖为 latest * - 补全缺失的推荐 scripts、engines * - 确保 data、plugins 等目录存在 * - 执行 pnpm install */ import { Command } from 'commander'; export declare function upgradePackageJson(pkgPath: string, options: { toLatest: boolean; dryRun: boolean; }): boolean; /** * Detect whether a file is using the old Chinese template. * 需同时命中多个特异短语,避免单个高频词(如「记忆」「工具组合」)误伤用户自定义文件。 */ export declare function isOldChineseTemplate(content: string): boolean; export declare function upgradeBootstrapFiles(dir: string, dryRun: boolean): number; export declare const migrateCommand: Command; //# sourceMappingURL=migrate.d.ts.map