The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2026 BoxLite AI
* SPDX-License-Identifier: AGPL-3.0
*/
/** Env var naming the registry proxy's host, the one runners pull private images through. */
const REGISTRY_PROXY_HOST_ENV = 'REGISTRY_PROXY_HOST'
/**
* A lowercase DNS name that fits a proxy repository segment. The dot
* distinguishes a registry from a Docker Hub namespace, and the last label
* starts with a letter to exclude numeric TLDs and IP literals.
*/
export const REGISTRY_HOSTNAME =
/^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/
/** The registry proxy's host, or undefined when this deployment runs none. */
export function registryProxyHost(): string | undefined {
return process.env[REGISTRY_PROXY_HOST_ENV]?.trim() || undefined
}