import { Command } from 'commander'; import { type DeployPlan } from '@cogitator-ai/deploy'; import type { DeployConfig, DeployTarget } from '@cogitator-ai/types'; export interface DeployFlags { target?: string; config?: string; registry?: string; push: boolean; dryRun?: boolean; region?: string; json?: boolean; follow?: boolean; tail?: string; timestamps?: boolean; } /** What `cogitator deploy` hands the deployer: the config file, the target's name and the settings over the file. */ export interface DeployInputs { /** The `-c` file, else the project's own config file (`findConfigFile`) */ configPath?: string; /** `--target`, else `deploy.target` from the environment or the config file */ target?: string; /** `COGITATOR_DEPLOY_*` variables and flags, applied over the config file's deploy section */ overrides: Partial; } /** * Resolves the config file and the settings of a deploy. The config file is * the one passed with `-c` (an error when it does not exist), else the * project's own, found like `loadConfig` finds it. The analyzer reads the * model, memory and deploy section from that same file. */ export declare function resolveDeployInputs(projectDir: string, flags: Pick): DeployInputs; /** A deploy plan as data: what `--json` prints and what the terminal view shows. */ export declare function describePlan(plan: DeployPlan, target: DeployTarget, configPath?: string): { config: { instances?: number | undefined; org?: string | undefined; app?: string | undefined; image?: string | undefined; registry?: string | undefined; region?: string | undefined; port?: number | undefined; server?: import("@cogitator-ai/types").DeployServer | undefined; kind?: import("@cogitator-ai/types").DeployKind | undefined; }; services: { provisioned: boolean; ollamaModels?: string[] | undefined; redis: boolean; postgres: boolean; ollama: boolean; }; volumes: string[]; secrets: string[]; warnings: string[]; preflight: { passed: boolean; checks: { fix?: string | undefined; name: string; passed: boolean; message: string; }[]; }; configPath?: string | undefined; target: DeployTarget; }; export type PlanSummary = ReturnType; /** * `cogitator deploy logs [service]`: the logs of the deployment, from * `docker compose logs` on the docker target and `flyctl logs` on Fly. The * command runs with the terminal attached and its exit code becomes the CLI's. */ export declare function runDeployLogs(service: string | undefined, flags: DeployFlags): Promise; /** * Refuses the flags that do nothing for `action`: the logs flags anywhere but * `deploy logs`, and the deploy flags (`--json`, `--dry-run`, `--registry`, * `--no-push`, `--region`) on it. */ export declare function checkDeployFlags(action: string | undefined, flags: DeployFlags): void; export declare const deployCommand: Command; //# sourceMappingURL=deploy.d.ts.map