UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

18 lines • 1.08 kB
import { type EnvAccountSlot } from "./accounts.ts"; /** * One-shot, idempotent move of the per-account directory to its canonical name, * performed the first time the lane resolves an account dir. Returns the base * directory the caller should use. * * - No legacy tree (fresh install or already migrated): use the canonical name. * - Both exist: never merge two account trees - keep the canonical one and set * the legacy tree aside with a timestamp suffix. * - Otherwise move it: `rename` first, and on ANY error (cross-device `EXDEV`, * or a Windows `EPERM`/`EBUSY` sharing violation while a file is open) fall * back to a full copy-then-remove. A failure mid-copy leaves the SOURCE * authoritative (the partial target is discarded) and the move is retried on * the next resolve. A failed move is never fatal. */ export declare function resolveAccountsDirectory(agentDir: string): string; export declare function writeConfigDirCredential(agentDir: string, slot: EnvAccountSlot, access: string): string; //# sourceMappingURL=config-dir-credentials.d.ts.map