@runuai/host 0.9.124 → 0.9.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/standard-image.ts +9 -0
- package/package.json +1 -1
package/lib/standard-image.ts
CHANGED
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
standardImagePullCommands,
|
|
46
46
|
standardImagePullDigest,
|
|
47
47
|
} from "./standard-image-pin";
|
|
48
|
+
import { sidecarMode } from "./sidecar";
|
|
48
49
|
|
|
49
50
|
/** Pinned, host-wide constants (must match task-up.sh and the compose gen). */
|
|
50
51
|
export const STANDARD_IMAGE_TAG = "uai-standard:dev";
|
|
@@ -1138,6 +1139,14 @@ function markAgentClisReady(): void {
|
|
|
1138
1139
|
export function ensureStandardImage(
|
|
1139
1140
|
opts: { maxAgeMs?: number } = {},
|
|
1140
1141
|
): Promise<StandardImageResult> {
|
|
1142
|
+
// ADR-133 sidecar mode: a task machine has no container image to keep —
|
|
1143
|
+
// its agent CLIs are baked into the machine image. Live 2026-09-10
|
|
1144
|
+
// (hostless smoke 4): task-up refused with "could not prepare the host
|
|
1145
|
+
// base image uai-standard:dev … Docker is not available".
|
|
1146
|
+
if (sidecarMode()) {
|
|
1147
|
+
markAgentClisReady();
|
|
1148
|
+
return Promise.resolve({ ok: true });
|
|
1149
|
+
}
|
|
1141
1150
|
// A task-up passes maxAgeMs: a pass that succeeded recently for the same
|
|
1142
1151
|
// engine configuration is reused instead of spending ~15 s spinning a
|
|
1143
1152
|
// maintenance container per task (live 2026-09-09: 16 s of every task
|