Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

fix(ci): avoid sandbox provisioning during typecheck (#3636)

Casey Gowrie9f174533d55b
diff --git a/.changeset/quiet-typecheck-sandboxes.md b/.changeset/quiet-typecheck-sandboxes.md
new file mode 100644
index 000000000..3d13083e5
--- /dev/null
+++ b/.changeset/quiet-typecheck-sandboxes.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Clarify that `eve build --skip-sandbox-prewarm` skips sandbox preparation for local and hosted builds. Workspace fixture typechecks now use this mode instead of provisioning sandbox infrastructure.
diff --git a/.github/workflows/bundle-analysis.yml b/.github/workflows/bundle-analysis.yml
index bf670fcfd..198ca3714 100644
--- a/.github/workflows/bundle-analysis.yml
+++ b/.github/workflows/bundle-analysis.yml
@@ -37,6 +37,7 @@ jobs:
runs-on: ubuntu-latest
env:
BUNDLE_WARNING_ACK_LABEL: acknowledge-bundle-warning
+ EVE_SANDBOX_IMAGE_TAG: latest
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
diff --git a/apps/fixtures/agent-tui-client/package.json b/apps/fixtures/agent-tui-client/package.json
index db4130fbc..ee7ce58fb 100644
--- a/apps/fixtures/agent-tui-client/package.json
+++ b/apps/fixtures/agent-tui-client/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc"
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc"
},
"dependencies": {
"eve": "workspace:*",
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index 6a9d5455e..f4edb80f9 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -161,7 +161,7 @@ Run this first when something behaves unexpectedly. It confirms a file was disco
eve build [--profile <path>] [--skip-sandbox-prewarm]
```
-Compiles and bundles in an invocation-owned directory under `.eve/builds/`, then publishes the completed host output and prints its path. Scratch workspaces are removed after success or failure.
+Compiles and bundles in an invocation-owned directory under `.eve/builds/`, prepares sandbox artifacts, then publishes the completed host output and prints its path. Scratch workspaces are removed after success or failure. Pass `--skip-sandbox-prewarm` when you only need compiled output, such as before a separate typecheck. Skipping preparation can produce output that cannot start its configured sandbox, so do not deploy that output.
Authored bundles preserve custom Node.js resolution conditions supplied through `--conditions`,
`-C`, or `NODE_OPTIONS`. For example, `NODE_OPTIONS="--conditions=react-server" eve build`
@@ -170,7 +170,7 @@ keeps a channel's `server-only` imports on the same export used during compilati
| Flag | Type | Default | Description |
| ------------------------ | ------ | ------- | --------------------------------------------------------------------------------------------- |
| `--profile <path>` | string | off | Best-effort versioned JSON report with build-phase timings and final output-size measurements |
-| `--skip-sandbox-prewarm` | flag | off | Skip sandbox template prewarm for a Vercel build; the output might not be deployable |
+| `--skip-sandbox-prewarm` | flag | off | Skip sandbox preparation; the output might not be deployable |
Use a profile file to establish a repeatable baseline before changing the build pipeline:
diff --git a/e2e/fixtures/agent-agent-tool-controls/package.json b/e2e/fixtures/agent-agent-tool-controls/package.json
index 3d0e9584e..80655169a 100644
--- a/e2e/fixtures/agent-agent-tool-controls/package.json
+++ b/e2e/fixtures/agent-agent-tool-controls/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-authored-bundling/package.json b/e2e/fixtures/agent-authored-bundling/package.json
index bbf2f07c2..141de2911 100644
--- a/e2e/fixtures/agent-authored-bundling/package.json
+++ b/e2e/fixtures/agent-authored-bundling/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-background-tools/package.json b/e2e/fixtures/agent-background-tools/package.json
index 968ace0d4..f7554ae18 100644
--- a/e2e/fixtures/agent-background-tools/package.json
+++ b/e2e/fixtures/agent-background-tools/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-basic-runtime/package.json b/e2e/fixtures/agent-basic-runtime/package.json
index 94e417307..f636af737 100644
--- a/e2e/fixtures/agent-basic-runtime/package.json
+++ b/e2e/fixtures/agent-basic-runtime/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-cancellation/package.json b/e2e/fixtures/agent-cancellation/package.json
index 7645faf2d..cf126f726 100644
--- a/e2e/fixtures/agent-cancellation/package.json
+++ b/e2e/fixtures/agent-cancellation/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-channels/package.json b/e2e/fixtures/agent-channels/package.json
index ba341b10d..451ddc043 100644
--- a/e2e/fixtures/agent-channels/package.json
+++ b/e2e/fixtures/agent-channels/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict",
"test:unit": "node --test test/*.test.mjs"
},
diff --git a/e2e/fixtures/agent-compaction-envelope/package.json b/e2e/fixtures/agent-compaction-envelope/package.json
index 6493ff91c..1d3edc1bb 100644
--- a/e2e/fixtures/agent-compaction-envelope/package.json
+++ b/e2e/fixtures/agent-compaction-envelope/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-compaction-measured/package.json b/e2e/fixtures/agent-compaction-measured/package.json
index cc6973fd5..42a02d7c6 100644
--- a/e2e/fixtures/agent-compaction-measured/package.json
+++ b/e2e/fixtures/agent-compaction-measured/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-compaction-regressions/package.json b/e2e/fixtures/agent-compaction-regressions/package.json
index 37483e67d..e21b30cf9 100644
--- a/e2e/fixtures/agent-compaction-regressions/package.json
+++ b/e2e/fixtures/agent-compaction-regressions/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-dynamic-model-session/package.json b/e2e/fixtures/agent-dynamic-model-session/package.json
index 1345ccc3e..9697eeae4 100644
--- a/e2e/fixtures/agent-dynamic-model-session/package.json
+++ b/e2e/fixtures/agent-dynamic-model-session/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-evaluate/package.json b/e2e/fixtures/agent-evaluate/package.json
index 2ba883b6e..da7d59261 100644
--- a/e2e/fixtures/agent-evaluate/package.json
+++ b/e2e/fixtures/agent-evaluate/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-memory/package.json b/e2e/fixtures/agent-memory/package.json
index 7451e2400..d08217337 100644
--- a/e2e/fixtures/agent-memory/package.json
+++ b/e2e/fixtures/agent-memory/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-model/package.json b/e2e/fixtures/agent-model/package.json
index 9492498ce..844994d8a 100644
--- a/e2e/fixtures/agent-model/package.json
+++ b/e2e/fixtures/agent-model/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-openapi-swagger/package.json b/e2e/fixtures/agent-openapi-swagger/package.json
index f2017b1b2..5b0b30fba 100644
--- a/e2e/fixtures/agent-openapi-swagger/package.json
+++ b/e2e/fixtures/agent-openapi-swagger/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-pending-approval-projection/package.json b/e2e/fixtures/agent-pending-approval-projection/package.json
index dbe314f5d..c5fd0adf9 100644
--- a/e2e/fixtures/agent-pending-approval-projection/package.json
+++ b/e2e/fixtures/agent-pending-approval-projection/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-prompt-cache/package.json b/e2e/fixtures/agent-prompt-cache/package.json
index 0f3ff7111..8457f2641 100644
--- a/e2e/fixtures/agent-prompt-cache/package.json
+++ b/e2e/fixtures/agent-prompt-cache/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-router/package.json b/e2e/fixtures/agent-router/package.json
index 12ec77f92..b94520cfd 100644
--- a/e2e/fixtures/agent-router/package.json
+++ b/e2e/fixtures/agent-router/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-schedules/package.json b/e2e/fixtures/agent-schedules/package.json
index e48fd8b20..dc18a962f 100644
--- a/e2e/fixtures/agent-schedules/package.json
+++ b/e2e/fixtures/agent-schedules/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-self-modification/package.json b/e2e/fixtures/agent-self-modification/package.json
index 7fa5c2c1a..459a0dce8 100644
--- a/e2e/fixtures/agent-self-modification/package.json
+++ b/e2e/fixtures/agent-self-modification/package.json
@@ -8,7 +8,7 @@
"build": "pnpm run e2e:prepare && eve build",
"dev": "pnpm run e2e:prepare && eve dev",
"start": "eve start",
- "typecheck": "pnpm run build && tsc",
+ "typecheck": "pnpm run e2e:prepare && eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "pnpm run e2e:prepare && eve eval --strict",
"test:scenario": "node --test test/*.scenario.test.mjs"
},
diff --git a/e2e/fixtures/agent-session-limits/package.json b/e2e/fixtures/agent-session-limits/package.json
index 01ea50427..1a4307b4f 100644
--- a/e2e/fixtures/agent-session-limits/package.json
+++ b/e2e/fixtures/agent-session-limits/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-session-timeout/package.json b/e2e/fixtures/agent-session-timeout/package.json
index 75e099786..73bd6be04 100644
--- a/e2e/fixtures/agent-session-timeout/package.json
+++ b/e2e/fixtures/agent-session-timeout/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-skills/package.json b/e2e/fixtures/agent-skills/package.json
index e2e90715a..e6920cb23 100644
--- a/e2e/fixtures/agent-skills/package.json
+++ b/e2e/fixtures/agent-skills/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-subagents-hitl/package.json b/e2e/fixtures/agent-subagents-hitl/package.json
index 281703653..6bcdcf6c8 100644
--- a/e2e/fixtures/agent-subagents-hitl/package.json
+++ b/e2e/fixtures/agent-subagents-hitl/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-subagents/package.json b/e2e/fixtures/agent-subagents/package.json
index b3f2d2724..c4b3dec3c 100644
--- a/e2e/fixtures/agent-subagents/package.json
+++ b/e2e/fixtures/agent-subagents/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-task-reporting/package.json b/e2e/fixtures/agent-task-reporting/package.json
index 48950c95f..d75b5b353 100644
--- a/e2e/fixtures/agent-task-reporting/package.json
+++ b/e2e/fixtures/agent-task-reporting/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict",
"test:unit": "node --test evals/event-matching.test.mjs"
},
diff --git a/e2e/fixtures/agent-task-wake-policy/package.json b/e2e/fixtures/agent-task-wake-policy/package.json
index dc8c1d8c9..5b61938ad 100644
--- a/e2e/fixtures/agent-task-wake-policy/package.json
+++ b/e2e/fixtures/agent-task-wake-policy/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-tools-hitl-openai/package.json b/e2e/fixtures/agent-tools-hitl-openai/package.json
index 3b0843cd9..2b0c9e19a 100644
--- a/e2e/fixtures/agent-tools-hitl-openai/package.json
+++ b/e2e/fixtures/agent-tools-hitl-openai/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-tools-hitl/package.json b/e2e/fixtures/agent-tools-hitl/package.json
index ad1576354..f7a156601 100644
--- a/e2e/fixtures/agent-tools-hitl/package.json
+++ b/e2e/fixtures/agent-tools-hitl/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-tools-sandbox/package.json b/e2e/fixtures/agent-tools-sandbox/package.json
index c856bb05a..9f1568d8b 100644
--- a/e2e/fixtures/agent-tools-sandbox/package.json
+++ b/e2e/fixtures/agent-tools-sandbox/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-tools/package.json b/e2e/fixtures/agent-tools/package.json
index cc5b92937..d857b5aaa 100644
--- a/e2e/fixtures/agent-tools/package.json
+++ b/e2e/fixtures/agent-tools/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-workflow-stress/package.json b/e2e/fixtures/agent-workflow-stress/package.json
index a0d0a109a..3a7df02a0 100644
--- a/e2e/fixtures/agent-workflow-stress/package.json
+++ b/e2e/fixtures/agent-workflow-stress/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/agent-workflow-tools/package.json b/e2e/fixtures/agent-workflow-tools/package.json
index 9e7d8a39d..b228324bf 100644
--- a/e2e/fixtures/agent-workflow-tools/package.json
+++ b/e2e/fixtures/agent-workflow-tools/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/extensions/package.json b/e2e/fixtures/extensions/package.json
index 072ec4a81..32416b7af 100644
--- a/e2e/fixtures/extensions/package.json
+++ b/e2e/fixtures/extensions/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "eve build && tsc",
+ "typecheck": "eve build --skip-sandbox-prewarm && tsc",
"test:e2e": "eve eval --strict"
},
"dependencies": {
diff --git a/e2e/fixtures/fixture-tasks/package.json b/e2e/fixtures/fixture-tasks/package.json
index 055a0faa1..2ccaccfaf 100644
--- a/e2e/fixtures/fixture-tasks/package.json
+++ b/e2e/fixtures/fixture-tasks/package.json
@@ -7,7 +7,7 @@
"build": "eve build",
"dev": "eve dev",
"start": "eve start",
- "typecheck": "pnpm validate:transitions && eve build && tsc",
+ "typecheck": "pnpm validate:transitions && eve build --skip-sandbox-prewarm && tsc",
"validate:transitions": "node scripts/validate-transitions.mjs",
"test:e2e": "eve eval --strict",
"test:unit": "node --test evals/lifecycle-model.test.mjs"
diff --git a/packages/eve/src/cli/commands/build.ts b/packages/eve/src/cli/commands/build.ts
index 27dad7991..0707d27ea 100644
--- a/packages/eve/src/cli/commands/build.ts
+++ b/packages/eve/src/cli/commands/build.ts
@@ -39,10 +39,7 @@ export function registerBuildCommand(input: {
})
.description("Build the current eve application.")
.option("--profile <path>", "Write best-effort timing and output-size profile JSON to a file")
- .option(
- "--skip-sandbox-prewarm",
- "Skip sandbox template prewarm for a Vercel build; output may not be deployable",
- )
+ .option("--skip-sandbox-prewarm", "Skip sandbox preparation; output may not be deployable")
.action(async (options: BuildCliOptions) => {
const { loadDevelopmentEnvironmentFiles } = await import("#cli/dev/environment.js");
@@ -78,12 +75,12 @@ export function registerBuildCommand(input: {
const buildOptions: {
profileOutputPath?: string;
readonly publicRoutePrefix: ApplicationBuildOptions["publicRoutePrefix"];
- readonly skipVercelSandboxPrewarm: boolean;
+ readonly skipSandboxPrewarm: boolean;
readonly vercelServiceOutput: ApplicationBuildOptions["vercelServiceOutput"];
readonly workspaceMember: boolean;
} = {
publicRoutePrefix: normalizePublicRoutePrefix(process.env[EVE_PUBLIC_ROUTE_PREFIX_ENV]),
- skipVercelSandboxPrewarm: options.skipSandboxPrewarm === true,
+ skipSandboxPrewarm: options.skipSandboxPrewarm === true,
vercelServiceOutput: resolveInternalVercelServiceOutput(input.applicationContext.root),
workspaceMember:
projectContext.kind === "workspace-member" ||
diff --git a/packages/eve/src/cli/run.test.ts b/packages/eve/src/cli/run.test.ts
index e6922dec8..da7c718df 100644
--- a/packages/eve/src/cli/run.test.ts
+++ b/packages/eve/src/cli/run.test.ts
@@ -1155,7 +1155,7 @@ describe("eve build output ownership", () => {
expect(buildHost).toHaveBeenCalledWith(process.cwd(), {
profileOutputPath: resolve(process.cwd(), profilePath),
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
vercelServiceOutput: undefined,
workspaceMember: false,
});
@@ -1175,7 +1175,7 @@ describe("eve build output ownership", () => {
}
expect(buildHost).toHaveBeenCalledWith(process.cwd(), {
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
vercelServiceOutput: {
hostOutputDirectory: resolve(process.cwd(), configuredHostDirectory),
serviceOutputDirectory: resolve(process.cwd(), configuredDirectory),
diff --git a/packages/eve/src/internal/nitro/host/authored-workflow-scope.scenario.test.ts b/packages/eve/src/internal/nitro/host/authored-workflow-scope.scenario.test.ts
index 237ae7234..9f8a0afd4 100644
--- a/packages/eve/src/internal/nitro/host/authored-workflow-scope.scenario.test.ts
+++ b/packages/eve/src/internal/nitro/host/authored-workflow-scope.scenario.test.ts
@@ -64,7 +64,7 @@ describe("authored workflow scope", () => {
);
expect(code).toContain(ALIAS_MARKER);
expect(code).not.toContain('require("@/lib/describe")');
- await buildApplication(appRoot, { skipVercelSandboxPrewarm: false });
+ await buildApplication(appRoot, { skipSandboxPrewarm: false });
const server = await startProductionServer(appRoot, { port: 0, host: "127.0.0.1" });
try {
expect((await fetch(new URL("/eve/v1/health", server.url))).status).toBe(200);
diff --git a/packages/eve/src/internal/nitro/host/build-application.scenario.test.ts b/packages/eve/src/internal/nitro/host/build-application.scenario.test.ts
index 32c261ab4..286a23290 100644
--- a/packages/eve/src/internal/nitro/host/build-application.scenario.test.ts
+++ b/packages/eve/src/internal/nitro/host/build-application.scenario.test.ts
@@ -125,7 +125,7 @@ vi.mock("#execution/sandbox/prewarm.js", () => ({
}));
const createScratchDirectory = useTemporaryDirectories();
-const DEPLOYABLE_BUILD_OPTIONS = { skipVercelSandboxPrewarm: false } as const;
+const DEPLOYABLE_BUILD_OPTIONS = { skipSandboxPrewarm: false } as const;
async function createPreparedHost(appRoot: string): Promise<PreparedApplicationHost> {
const agentRoot = join(appRoot, "agent");
@@ -280,7 +280,7 @@ describe("buildApplication", () => {
const { buildApplication } = await import("#internal/nitro/host/build-application.js");
await buildApplication(appRoot, {
profileOutputPath: profilePath,
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
});
const profile = JSON.parse(await readFile(profilePath, "utf8")) as ApplicationBuildProfile;
@@ -327,7 +327,7 @@ describe("buildApplication", () => {
const { buildApplication } = await import("#internal/nitro/host/build-application.js");
const outputDir = await buildApplication(appRoot, {
profileOutputPath: profilePath,
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
});
expect(outputDir).toBe(join(appRoot, ".output"));
@@ -358,7 +358,7 @@ describe("buildApplication", () => {
const { buildApplication } = await import("#internal/nitro/host/build-application.js");
const outputDir = await buildApplication(appRoot, {
profileOutputPath: profilePath,
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
});
expect(outputDir).toBe(join(appRoot, ".output"));
@@ -550,7 +550,7 @@ describe("buildApplication", () => {
expect((summary.agent as { name: string }).name).toBe("scenario-test-agent");
});
- it("skips Vercel sandbox prewarm only when the build opts out", async () => {
+ it("skips sandbox preparation when the build opts out", async () => {
vi.stubEnv("VERCEL", "1");
const appRoot = await createScratchDirectory("eve-build-application-skip-prewarm-");
@@ -562,7 +562,7 @@ describe("buildApplication", () => {
const { buildApplication } = await import("#internal/nitro/host/build-application.js");
const outputDir = await buildApplication(appRoot, {
- skipVercelSandboxPrewarm: true,
+ skipSandboxPrewarm: true,
});
expect(outputDir).toBe(join(appRoot, ".vercel", "output"));
diff --git a/packages/eve/src/internal/nitro/host/build-application.ts b/packages/eve/src/internal/nitro/host/build-application.ts
index 19168e9c1..97153b5f1 100644
--- a/packages/eve/src/internal/nitro/host/build-application.ts
+++ b/packages/eve/src/internal/nitro/host/build-application.ts
@@ -329,7 +329,7 @@ async function buildApplicationInWorkspace(
try {
// Complete sandbox preparation before bundling so runtime never needs to
// mutate or repair the prepared artifacts embedded in production output.
- if (!options.skipVercelSandboxPrewarm) {
+ if (!options.skipSandboxPrewarm) {
const prewarmInput = {
appRoot: preparedHost.appRoot,
compiledArtifactsSource: createDiskRuntimeCompiledArtifactsSource(
diff --git a/packages/eve/src/internal/nitro/host/relocated-production.scenario.test.ts b/packages/eve/src/internal/nitro/host/relocated-production.scenario.test.ts
index cd848e467..f21040f2a 100644
--- a/packages/eve/src/internal/nitro/host/relocated-production.scenario.test.ts
+++ b/packages/eve/src/internal/nitro/host/relocated-production.scenario.test.ts
@@ -83,7 +83,7 @@ describe("relocated production applications", () => {
await rename(join(root, entry), join(buildRoot, entry));
}
const appRoot = join(buildRoot, "apps", "service");
- await buildApplication(appRoot, { skipVercelSandboxPrewarm: false });
+ await buildApplication(appRoot, { skipSandboxPrewarm: false });
await rename(buildRoot, runtimeRoot);
await expect(access(buildRoot)).rejects.toMatchObject({ code: "ENOENT" });
diff --git a/packages/eve/src/internal/nitro/host/types.ts b/packages/eve/src/internal/nitro/host/types.ts
index 9290eeb3c..cb7888fdb 100644
--- a/packages/eve/src/internal/nitro/host/types.ts
+++ b/packages/eve/src/internal/nitro/host/types.ts
@@ -20,7 +20,7 @@ export interface ApplicationBuildOptions {
* command.
*/
readonly publicRoutePrefix?: string;
- readonly skipVercelSandboxPrewarm: boolean;
+ readonly skipSandboxPrewarm: boolean;
/** Whether this build is for a member of a top-level `agents/` workspace. */
readonly workspaceMember?: boolean;
readonly vercelServiceOutput?: {
diff --git a/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts b/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
index be6e66c03..fa61fb177 100644
--- a/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
+++ b/packages/eve/test/scenarios/app-runtime-dependencies.scenario.test.ts
@@ -20,7 +20,7 @@ const EVE_PACKAGE_INFO = resolveInstalledPackageInfo();
const EVE_PACKAGE_ROOT = resolvePackageRoot();
const createScratchDirectory = useTemporaryDirectories();
const DEPLOYABLE_BUILD_OPTIONS = {
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
} as const;
async function readJavaScriptModulesRecursively(rootDirectory: string): Promise<string> {
diff --git a/packages/eve/test/scenarios/cli.scenario.test.ts b/packages/eve/test/scenarios/cli.scenario.test.ts
index 6d17d00d6..d455f8f95 100644
--- a/packages/eve/test/scenarios/cli.scenario.test.ts
+++ b/packages/eve/test/scenarios/cli.scenario.test.ts
@@ -433,7 +433,7 @@ describe("runCli", () => {
it("preserves imported tool schema composition in the built server", async () => {
const { buildApplication } = await import("../../src/internal/nitro/host.js");
const { appRoot } = await scenarioApp(COMPOSED_TOOL_SCHEMAS_DESCRIPTOR);
- await buildApplication(appRoot, { skipVercelSandboxPrewarm: true });
+ await buildApplication(appRoot, { skipSandboxPrewarm: true });
const server = await startPackagedEveStart(appRoot);
try {
@@ -457,7 +457,7 @@ describe("runCli", () => {
const appRoot = await createMinimalAppRoot("eve-cli-start-health-");
await buildApplication(appRoot, {
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
});
const server = await startPackagedEveStart(appRoot);
@@ -582,7 +582,7 @@ describe("runCli", () => {
expect(buildHost).toHaveBeenCalledWith(resolvedWorkspaceRoot, {
publicRoutePrefix: undefined,
- skipVercelSandboxPrewarm: false,
+ skipSandboxPrewarm: false,
vercelServiceOutput: undefined,
workspaceMember: false,
});
@@ -618,7 +618,7 @@ describe("runCli", () => {
expect(buildHost).toHaveBeenCalledWith(resolvedWorkspaceRoot, {
publicRoutePrefix: undefined,
- skipVercelSandboxPrewarm: true,
+ skipSandboxPrewarm: true,
vercelServiceOutput: undefined,
workspaceMember: false,
});
diff --git a/turbo.json b/turbo.json
index a6cf3dfdc..9ab1a449b 100644
--- a/turbo.json
+++ b/turbo.json
@@ -86,6 +86,7 @@
},
"test:scenario": {
"cache": false,
+ "env": ["EVE_SANDBOX_IMAGE_TAG"],
"inputs": [
"$TURBO_DEFAULT$",
"!.eve/**",