/** * `atomic storage status` shows which storage each domain (sessions, workflow runs, Intercom) selects, where the * selection comes from, whether its adapter loads and its database answers, and what the running Intercom broker * uses. `atomic storage join` points this machine's global `storage` setting at a shared libSQL / Turso database. */ import type { IntercomBrokerControl } from "../core/intercom-broker-control.js"; import { type StorageStatus } from "../core/storage/storage-status.js"; /** The first-party libSQL / Turso adapter package that `atomic storage join` selects. */ export declare const LIBSQL_ADAPTER_PACKAGE = "@bastani/atomic-storage-libsql"; /** Filename prefix for private token files created by `atomic storage join` in the agent directory. */ export declare const STORAGE_TOKEN_FILE = "storage-token"; export type StorageCommand = { readonly kind: "help"; } | { readonly kind: "status"; readonly json: boolean; } | { readonly kind: "join"; readonly url: string; readonly tokenFile?: string; readonly prefix?: string; }; export declare class StorageCommandError extends Error { } /** Parse the arguments after `storage`. */ export declare function parseStorageCommand(args: readonly string[]): StorageCommand; export interface StorageCommandOptions { readonly cwd: string; readonly agentDir: string; readonly log?: (line: string) => void; readonly error?: (line: string) => void; /** Defaults to the bundled Intercom package's broker control. */ readonly loadControl?: () => Promise; } /** The status as the lines `atomic storage status` prints. */ export declare function formatStorageStatus(status: StorageStatus): string[]; /** Run `atomic storage ` and return the exit code. */ export declare function runStorageCommand(args: readonly string[], options: StorageCommandOptions): Promise; //# sourceMappingURL=storage-command.d.ts.map