@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
28 lines • 1.32 kB
TypeScript
/**
* First-run copy-forward for a rebranded install.
*
* A machine that already ran the engine keeps its state in the engine's own directory. A
* branded install reads a different location, so the existing state is COPIED once - never
* moved - because the same machine may keep running the engine standalone, and a move would
* silently empty that install.
*/
/** Written last, so an interrupted copy simply runs again next start. */
export declare const MIGRATION_MARKER = ".migrated-from-senpi";
export interface BrandDirMigrationResult {
readonly migrated: boolean;
readonly copied: readonly string[];
readonly from: string;
readonly to: string;
}
/**
* Copies engine state into the branded directory. Idempotent: entries that already exist in
* the destination are left untouched, so a re-run after a partial copy completes it instead of
* overwriting newer state.
*/
export declare function migrateEngineStateToBrandDir(legacyAgentDir: string, brandDir: string): BrandDirMigrationResult;
/**
* Runs the copy-forward for the active brand, announcing it once so the user knows the two
* installs now hold independent state.
*/
export declare function migrateEngineStateForBrand(homeDir?: string): BrandDirMigrationResult | undefined;
//# sourceMappingURL=brand-dir-migration.d.ts.map