eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
24 lines (23 loc) • 1 kB
TypeScript
interface Snapshot {
readonly path: string;
readonly contents?: Buffer;
}
export declare function snapshotRegistryInstall(appRoot: string, item: unknown): Promise<readonly Snapshot[]>;
export declare function rollbackRegistryInstall(appRoot: string, snapshots: readonly Snapshot[]): Promise<{
readonly restored: boolean;
readonly changed: readonly string[];
}>;
export type RegistryInstallFailureCode = "pnpm_build_policy" | "dependency_install";
export declare function registryInstallFailureCode(error: unknown): RegistryInstallFailureCode;
export declare function registryInstallFailureMessage(code: RegistryInstallFailureCode): string;
export declare function installRegistryItemTransaction(input: {
readonly appRoot: string;
readonly item: string;
readonly registryItem: unknown;
readonly nonInteractive: boolean | undefined;
readonly logger: {
log(message: string): void;
};
readonly install: () => Promise<void>;
}): Promise<void>;
export {};