/** * Registry image pull * * The image published by .github/workflows/ci-cd.yml (publish_image) is built * from this repository's docker/Dockerfile with the same AGENT_VERSION build-arg * that buildImage() passes, so for an unmodified Dockerfile a local build only * reproduces what CI already produced — at the cost of compiling neovim from * source, installing a rust toolchain and Playwright's dependencies on the * user's machine (CI budgets 120 minutes for that job). * * Pulling is therefore the fast path; buildImage() remains the fallback, and the * only path whenever the Dockerfile is customised (see canUseRegistryImage() in * version-manager.ts). */ /** * Public multi-arch (linux/amd64 + linux/arm64) image published by the release * workflow — the same repository manifest-generator.ts points at with * DEFAULT_AGENT_IMAGE. */ export declare const REGISTRY_IMAGE = "ghcr.io/mbc-net/ai-support-agent-cli"; /** * Upper bound for `docker pull`. Deliberately generous: the image is ~2.6 GB * compressed, so a slow link legitimately needs a long time, and expiring early * trades a working pull for an hour-long local build. It exists only so a * connection that stalls forever (one-way network loss, a proxy that accepts * the connection and never answers) cannot block agent startup indefinitely — * without it there is nothing to fall back from, since the fallback only * triggers on a *failed* pull, never on a hung one. */ export declare const PULL_TIMEOUT_MS: number; /** Upper bound for the local-only `docker tag` / `docker rmi` calls. */ export declare const TAG_TIMEOUT_MS = 60000; /** * Pull `REGISTRY_IMAGE:` and tag it as `IMAGE_NAME:` so every * downstream consumer (DockerSupervisor, the per-project `FROM * ai-support-agent:` images, the service wrapper scripts) keeps * referring to the local name it always has. * * Returns false — with a warning, never silently — on any failure so the caller * can fall back to a local build. Not every version is on the registry: image * publishing only started at 0.5.0-beta.2, npm publishes minutes before the * image job finishes (so a just-released version is briefly npm-only), an image * job can fail outright, and the host may simply be offline. */ export declare function pullRegistryImage(version: string): boolean; //# sourceMappingURL=image-registry.d.ts.map