Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

test(assistant): add sandbox runtime unit and docker e2e tests (#16288)

Ben Bachemfc732f643ed4
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 5fb79f9a23..0517c13c67 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -298,6 +298,53 @@ jobs:
- name: run eslint-plugin tests
run: pnpm --filter @repo/eslint-plugin run test
+ tests-in-app-agent-sandbox-runtime:
+ runs-on: blacksmith-4vcpu-ubuntu-2404
+ timeout-minutes: 15
+ needs:
+ - pre-job
+ # pre-job only runs on push events; everywhere else it resolves as skipped
+ # at run creation, so this job starts immediately (!cancelled() lets the
+ # condition evaluate despite the skipped dependency).
+ if: ${{ !cancelled() && (github.event_name != 'push' || needs.pre-job.outputs.should_skip != 'true') }}
+ env:
+ NODE_ENV: test
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
+ with:
+ version: 11.22.0
+ - name: Use Node.js ${{ env.NODE_VERSION }} without cache
+ if: env.CI_CACHE_ALLOWED != 'true'
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ package-manager-cache: false
+ - name: Use Node.js ${{ env.NODE_VERSION }} with pnpm cache
+ if: env.CI_CACHE_ALLOWED == 'true'
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # zizmor: ignore[cache-poisoning] sandbox-runtime test dependency cache only; no published artifacts are built from this cached state
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ cache: "pnpm"
+ cache-dependency-path: "pnpm-lock.yaml"
+ - name: Login to Docker Hub
+ if: github.repository == 'langfuse/langfuse' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}
+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}
+ - name: install dependencies
+ run: |
+ pnpm install
+ - name: typecheck sandbox runtime
+ run: pnpm --filter @repo/in-app-agent-sandbox-runtime run typecheck
+ - name: run sandbox runtime unit tests
+ run: pnpm --filter @repo/in-app-agent-sandbox-runtime run test
+ - name: run sandbox runtime docker e2e tests
+ run: pnpm --filter @repo/in-app-agent-sandbox-runtime run test:e2e
+
tests-storybook:
runs-on: blacksmith-4vcpu-ubuntu-2404
needs:
@@ -1129,6 +1176,7 @@ jobs:
knip,
prettier-check,
tests-eslint-plugin,
+ tests-in-app-agent-sandbox-runtime,
tests-storybook,
tests-shared,
tests-web,
diff --git a/knip.jsonc b/knip.jsonc
index f7f75b6bc4..75027b47d5 100644
--- a/knip.jsonc
+++ b/knip.jsonc
@@ -39,7 +39,7 @@
},
"packages/in-app-agent-sandbox-runtime": {
"entry": ["src/server.ts"],
- "project": ["src/**/*.ts"],
+ "project": ["src/**/*.ts", "tests/**/*.ts"],
},
"packages/config-eslint": {
"project": ["*.js"],
diff --git a/packages/in-app-agent-sandbox-runtime/README.md b/packages/in-app-agent-sandbox-runtime/README.md
index 063a1970f3..e67ca83059 100644
--- a/packages/in-app-agent-sandbox-runtime/README.md
+++ b/packages/in-app-agent-sandbox-runtime/README.md
@@ -34,6 +34,27 @@ pnpm turbo run build:docker-image --filter @repo/in-app-agent-sandbox-runtime --
This produces `langfuse-in-app-agent-sandbox:latest`.
+## Testing
+
+Typecheck:
+
+```bash
+pnpm --filter @repo/in-app-agent-sandbox-runtime run typecheck
+```
+
+Unit tests:
+
+```bash
+pnpm --filter @repo/in-app-agent-sandbox-runtime run test
+```
+
+The end-to-end test builds the runtime Docker image, starts the container, and
+sends HTTP requests to `/health`, `/sandbox`, and the MicroVM lifecycle hooks:
+
+```bash
+pnpm --filter @repo/in-app-agent-sandbox-runtime run test:e2e
+```
+
## Build And Publish An AWS Lambda MicroVM Image
Use `packages/in-app-agent-sandbox-runtime/build-microvm-image.sh` as the canonical build and publish flow.
diff --git a/packages/in-app-agent-sandbox-runtime/package.json b/packages/in-app-agent-sandbox-runtime/package.json
index da8d8eaa02..95063185a1 100644
--- a/packages/in-app-agent-sandbox-runtime/package.json
+++ b/packages/in-app-agent-sandbox-runtime/package.json
@@ -11,6 +11,9 @@
"build:test": "tsc",
"build:docker-image": "tsc && docker build . -t langfuse-in-app-agent-sandbox:latest && touch .local-image-built",
"start": "node ./dist/server.js",
+ "test": "vitest run src",
+ "test:e2e": "pnpm run build && vitest run tests",
+ "typecheck": "tsc --noEmit -p tsconfig.test.json",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
@@ -19,8 +22,11 @@
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
+ "@types/dockerode": "^4.0.1",
"@types/node": "^24.3.0",
+ "dockerode": "^4.0.12",
"prettier": "^3.8.3",
- "typescript": "^5.7.2"
+ "typescript": "^5.7.2",
+ "vitest": "^4.1.10"
}
}
diff --git a/packages/in-app-agent-sandbox-runtime/src/contracts.test.ts b/packages/in-app-agent-sandbox-runtime/src/contracts.test.ts
new file mode 100644
index 0000000000..309a15f971
--- /dev/null
+++ b/packages/in-app-agent-sandbox-runtime/src/contracts.test.ts
@@ -0,0 +1,92 @@
+import { describe, expect, it } from "vitest";
+
+import { SandboxFileSchema, SandboxOperationSchema } from "./contracts.js";
+
+describe("SandboxOperationSchema", () => {
+ it("accepts each supported sandbox operation", () => {
+ expect(
+ SandboxOperationSchema.parse({
+ operation: "read",
+ path: "/workspace/notes.txt",
+ }),
+ ).toMatchObject({ operation: "read", path: "/workspace/notes.txt" });
+
+ expect(
+ SandboxOperationSchema.parse({
+ operation: "write",
+ path: "output.txt",
+ content: "hello",
+ }),
+ ).toMatchObject({
+ operation: "write",
+ path: "output.txt",
+ content: "hello",
+ });
+
+ expect(
+ SandboxOperationSchema.parse({
+ operation: "edit",
+ path: "output.txt",
+ oldText: "hello",
+ newText: "hello world",
+ }),
+ ).toMatchObject({
+ operation: "edit",
+ oldText: "hello",
+ newText: "hello world",
+ });
+
+ expect(
+ SandboxOperationSchema.parse({
+ operation: "bash",
+ command: "echo hi",
+ timeoutMs: 1_000,
+ }),
+ ).toMatchObject({
+ operation: "bash",
+ command: "echo hi",
+ timeoutMs: 1_000,
+ });
+ });
+
+ it("accepts optional toolCallFiles on operations", () => {
+ const parsed = SandboxOperationSchema.parse({
+ operation: "bash",
+ command: "cat /workspace/tool_calls/note.txt",
+ toolCallFiles: [
+ {
+ path: "/workspace/tool_calls/note.txt",
+ content: "prior tool output",
+ },
+ ],
+ });
+
+ expect(parsed.toolCallFiles).toEqual([
+ {
+ path: "/workspace/tool_calls/note.txt",
+ content: "prior tool output",
+ },
+ ]);
+ });
+
+ it("rejects unknown operations and invalid bash timeouts", () => {
+ expect(
+ SandboxOperationSchema.safeParse({
+ operation: "delete",
+ path: "/workspace/notes.txt",
+ }).success,
+ ).toBe(false);
+
+ expect(
+ SandboxOperationSchema.safeParse({
+ operation: "bash",
+ command: "echo hi",
+ timeoutMs: Number.POSITIVE_INFINITY,
+ }).success,
+ ).toBe(false);
+
+ expect(
+ SandboxFileSchema.safeParse({ path: "/workspace/a.txt" }).success,
+ ).toBe(false);
+ });
+});
diff --git a/packages/in-app-agent-sandbox-runtime/tests/sandbox.test.ts b/packages/in-app-agent-sandbox-runtime/tests/sandbox.test.ts
new file mode 100644
index 0000000000..1655af6075
--- /dev/null
+++ b/packages/in-app-agent-sandbox-runtime/tests/sandbox.test.ts
@@ -0,0 +1,332 @@
+import { readdir } from "node:fs/promises";
+import { randomUUID } from "node:crypto";
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+
+import Docker from "dockerode";
+import { afterAll, beforeAll, describe, expect, it } from "vitest";
+
+const PACKAGE_ROOT = path.resolve(
+ path.dirname(fileURLToPath(import.meta.url)),
+ "..",
+);
+const IMAGE_TAG = "langfuse-in-app-agent-sandbox:e2e";
+const MICROVM_HOOKS_ROOT = "/aws/lambda-microvms/runtime/v1";
+const HEALTH_TIMEOUT_MS = 30_000;
+
+type JsonResponse = {
+ status: number;
+ body: unknown;
+};
+
+describe("sandbox runtime docker container", () => {
+ const docker = new Docker();
+ let container: Docker.Container | undefined;
+ let baseUrl = "";
+
+ beforeAll(async () => {
+ await buildSandboxImage(docker);
+
+ container = await docker.createContainer({
+ Image: IMAGE_TAG,
+ name: `langfuse-in-app-agent-sandbox-e2e-${randomUUID().slice(0, 8)}`,
+ ExposedPorts: { "5000/tcp": {} },
+ HostConfig: {
+ PortBindings: {
+ "5000/tcp": [{ HostIp: "127.0.0.1", HostPort: "0" }],
+ },
+ },
+ });
+ await container.start();
+
+ const inspect = await container.inspect();
+ const hostPort = inspect.NetworkSettings.Ports["5000/tcp"]?.[0]?.HostPort;
+ if (!hostPort) {
+ throw new Error("Docker did not publish sandbox server port 5000");
+ }
+
+ baseUrl = `http://127.0.0.1:${hostPort}`;
+ await waitForHealth(baseUrl, container);
+ }, 300_000);
+
+ afterAll(async () => {
+ await container?.remove({ force: true }).catch(() => undefined);
+ });
+
+ it(
+ "serves health, sandbox operations, and microvm hooks over HTTP",
+ { timeout: 120_000 },
+ async () => {
+ const health = await requestJson(baseUrl, "/health");
+ expect(health).toEqual({ status: 200, body: { status: "ok" } });
+
+ const written = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "write",
+ path: "hello.txt",
+ content: "hello",
+ }),
+ });
+ expect(written.status).toBe(200);
+ expect(written.body).toEqual({
+ result: {
+ path: "/workspace/hello.txt",
+ bytesWritten: Buffer.byteLength("hello", "utf8"),
+ },
+ });
+
+ const readBack = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "read",
+ path: "/workspace/hello.txt",
+ }),
+ });
+ expect(readBack).toEqual({
+ status: 200,
+ body: {
+ result: {
+ path: "/workspace/hello.txt",
+ content: "hello",
+ },
+ },
+ });
+
+ const edited = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "edit",
+ path: "hello.txt",
+ oldText: "hello",
+ newText: "hello world",
+ }),
+ });
+ expect(edited).toEqual({
+ status: 200,
+ body: {
+ result: {
+ path: "/workspace/hello.txt",
+ replaced: true,
+ },
+ },
+ });
+
+ const bash = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "bash",
+ command: "cat hello.txt; pwd",
+ }),
+ });
+ expect(bash.status).toBe(200);
+ expect(bash.body).toEqual({
+ result: expect.objectContaining({
+ stdout: expect.stringMatching(/^hello world\/workspace\n$/),
+ stderr: "",
+ exitCode: 0,
+ }),
+ });
+
+ const toolCall = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "bash",
+ command: "cat /workspace/tool_calls/note.txt",
+ toolCallFiles: [
+ {
+ path: "/workspace/tool_calls/note.txt",
+ content: "from-previous-tool",
+ },
+ ],
+ }),
+ });
+ expect(toolCall.status).toBe(200);
+ expect(toolCall.body).toEqual({
+ result: expect.objectContaining({
+ stdout: "from-previous-tool",
+ exitCode: 0,
+ }),
+ });
+
+ const toolCallReset = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "bash",
+ command: "test ! -e /workspace/tool_calls/note.txt",
+ }),
+ });
+ expect(toolCallReset.status).toBe(200);
+ expect(toolCallReset.body).toEqual({
+ result: expect.objectContaining({ exitCode: 0 }),
+ });
+
+ const timedOut = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "bash",
+ command: "sleep 2",
+ timeoutMs: 200,
+ }),
+ });
+ expect(timedOut.status).toBe(200);
+ expect(timedOut.body).toEqual({
+ result: expect.objectContaining({
+ exitCode: 124,
+ stderr: expect.stringContaining("timed out after 200ms"),
+ }),
+ });
+
+ const escaped = await requestJson(baseUrl, "/sandbox", {
+ method: "POST",
+ body: JSON.stringify({
+ operation: "read",
+ path: "/etc/passwd",
+ }),
+ });
+ expect(escaped.status).toBe(500);
+ expect(escaped.body).toEqual({
+ error: "Sandbox path escapes workspace: /etc/passwd",
+ });
+
+ const missing = await requestJson(baseUrl, "/not-a-route");
+ expect(missing).toEqual({
+ status: 404,
+ body: { error: "Not found" },
+ });
+
+ for (const [hookPath, expected] of [
+ [`${MICROVM_HOOKS_ROOT}/ready`, { ready: true }],
+ [`${MICROVM_HOOKS_ROOT}/run`, { ready: true }],
+ [`${MICROVM_HOOKS_ROOT}/resume`, { resumed: true }],
+ [`${MICROVM_HOOKS_ROOT}/suspend`, { suspended: true }],
+ [`${MICROVM_HOOKS_ROOT}/terminate`, { terminated: true }],
+ ] as const) {
+ const hook = await requestJson(baseUrl, hookPath, {
+ method: "POST",
+ body: "{}",
+ });
+ expect(hook).toEqual({ status: 200, body: expected });
+ }
+ },
+ );
+});
+
+async function buildSandboxImage(docker: Docker) {
+ const src = [
+ "Dockerfile",
+ "package.json",
+ ...(await listRelativeFiles(path.join(PACKAGE_ROOT, "dist"), "dist")),
+ ];
+ const stream = await docker.buildImage(
+ { context: PACKAGE_ROOT, src },
+ { t: IMAGE_TAG },
+ );
+
+ await new Promise<void>((resolve, reject) => {
+ docker.modem.followProgress(stream, (error) => {
+ if (error) {
+ reject(error);
+ return;
+ }
+
+ resolve();
+ });
+ });
+}
+
+async function listRelativeFiles(
+ absDir: string,
+ relativePrefix: string,
+): Promise<string[]> {
+ const entries = await readdir(absDir, { withFileTypes: true });
+ const files: string[] = [];
+
+ for (const entry of entries) {
+ const relativePath = `${relativePrefix}/${entry.name}`;
+ if (entry.isDirectory()) {
+ files.push(
+ ...(await listRelativeFiles(
+ path.join(absDir, entry.name),
+ relativePath,
+ )),
+ );
+ continue;
+ }
+
+ files.push(relativePath);
+ }
+
+ return files;
+}
+
+async function waitForHealth(baseUrl: string, container: Docker.Container) {
+ const startedAt = Date.now();
+ let lastError: unknown;
+
+ while (Date.now() - startedAt < HEALTH_TIMEOUT_MS) {
+ try {
+ const response = await requestJson(baseUrl, "/health");
+ if (response.status === 200) {
+ return;
+ }
+ lastError = new Error(`Health check returned ${response.status}`);
+ } catch (error) {
+ lastError = error;
+ }
+
+ await new Promise((resolve) => setTimeout(resolve, 250));
+ }
+
+ const logs = await container
+ .logs({ stdout: true, stderr: true, tail: 50 })
+ .catch(() => Buffer.from(""));
+ const logText = Buffer.isBuffer(logs)
+ ? logs.toString("utf8")
+ : await readStreamToString(logs);
+
+ throw new Error(
+ [
+ `Sandbox container did not become healthy within ${HEALTH_TIMEOUT_MS}ms.`,
+ lastError instanceof Error ? lastError.message : String(lastError ?? ""),
+ logText,
+ ]
+ .filter(Boolean)
+ .join("\n"),
+ );
+}
+
+function readStreamToString(stream: NodeJS.ReadableStream) {
+ return new Promise<string>((resolve, reject) => {
+ const chunks: Buffer[] = [];
+ stream.on("data", (chunk: Buffer | string) => {
+ chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
+ });
+ stream.on("end", () => resolve(Buffer.concat(chunks).toString("utf8")));
+ stream.on("error", reject);
+ });
+}
+
+async function requestJson(
+ baseUrl: string,
+ pathname: string,
+ init: RequestInit = {},
+): Promise<JsonResponse> {
+ const response = await fetch(`${baseUrl}${pathname}`, {
+ ...init,
+ headers: {
+ ...(init.body ? { "Content-Type": "application/json" } : {}),
+ ...init.headers,
+ },
+ });
+ const text = await response.text();
+ let body: unknown = text;
+
+ try {
+ body = text ? (JSON.parse(text) as unknown) : null;
+ } catch {
+ body = text;
+ }
+
+ return { status: response.status, body };
+}
diff --git a/packages/in-app-agent-sandbox-runtime/tsconfig.json b/packages/in-app-agent-sandbox-runtime/tsconfig.json
index 49dac55de6..c73226fee0 100644
--- a/packages/in-app-agent-sandbox-runtime/tsconfig.json
+++ b/packages/in-app-agent-sandbox-runtime/tsconfig.json
@@ -10,5 +10,5 @@
"types": ["node"]
},
"include": ["src/**/*.ts"],
- "exclude": ["node_modules", "dist"]
+ "exclude": ["node_modules", "dist", "src/**/*.test.ts"]
}
diff --git a/packages/in-app-agent-sandbox-runtime/tsconfig.test.json b/packages/in-app-agent-sandbox-runtime/tsconfig.test.json
new file mode 100644
index 0000000000..c5c354c775
--- /dev/null
+++ b/packages/in-app-agent-sandbox-runtime/tsconfig.test.json
@@ -0,0 +1,10 @@
+{
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "noEmit": true,
+ "rootDir": ".",
+ "types": ["node"]
+ },
+ "include": ["src/**/*.ts", "tests/**/*.ts"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/packages/in-app-agent-sandbox-runtime/vitest.config.ts b/packages/in-app-agent-sandbox-runtime/vitest.config.ts
new file mode 100644
index 0000000000..57b945a685
--- /dev/null
+++ b/packages/in-app-agent-sandbox-runtime/vitest.config.ts
@@ -0,0 +1,7 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ include: ["**/*.test.ts"],
+ },
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 199645767b..257829c883 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -221,15 +221,24 @@ importers:
'@repo/typescript-config':
specifier: workspace:*
version: link:../config-typescript
+ '@types/dockerode':
+ specifier: ^4.0.1
+ version: 4.0.1
'@types/node':
specifier: ^24.3.0
version: 24.3.0
+ dockerode:
+ specifier: ^4.0.12
+ version: 4.0.12([email protected])
prettier:
specifier: ^3.8.3
version: 3.8.3
typescript:
specifier: ^5.7.2
version: 5.9.3
+ vitest:
+ specifier: ^4.1.10
packages/shared:
dependencies:
@@ -17845,6 +17854,20 @@ snapshots:
- vite
optional: true
+ dependencies:
+ playwright: 1.57.0
+ tinyrainbow: 3.1.0
+ transitivePeerDependencies:
+ - bufferutil
+ - msw
+ - utf-8-validate
+ - vite
+ optional: true
+
dependencies:
@@ -17876,6 +17899,24 @@ snapshots:
- vite
optional: true
+ dependencies:
+ '@blazediff/core': 1.9.1
+ '@vitest/utils': 4.1.10
+ magic-string: 0.30.21
+ pngjs: 7.0.0
+ sirv: 3.0.2
+ tinyrainbow: 3.1.0
+ ws: 8.21.1
+ transitivePeerDependencies:
+ - bufferutil
+ - msw
+ - utf-8-validate
+ - vite
+ optional: true
+
dependencies:
'@blazediff/core': 1.9.1
@@ -17935,6 +17976,15 @@ snapshots:
msw: 2.6.5(@types/[email protected])(@typescript/[email protected])
+ dependencies:
+ '@vitest/spy': 4.1.10
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ optionalDependencies:
+
dependencies:
'@vitest/spy': 4.1.10
@@ -21775,6 +21825,32 @@ snapshots:
transitivePeerDependencies:
- '@types/node'
+ dependencies:
+ '@bundled-es-modules/cookie': 2.0.1
+ '@bundled-es-modules/statuses': 1.0.1
+ '@bundled-es-modules/tough-cookie': 0.1.6
+ '@inquirer/confirm': 5.1.21(@types/[email protected])
+ '@mswjs/interceptors': 0.37.1
+ '@open-draft/deferred-promise': 2.2.0
+ '@open-draft/until': 2.1.0
+ '@types/cookie': 0.6.0
+ '@types/statuses': 2.0.5
+ chalk: 4.1.2
+ graphql: 16.13.2
+ headers-polyfill: 4.0.3
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ path-to-regexp: 6.3.0
+ strict-event-emitter: 0.5.1
+ type-fest: 4.27.0
+ yargs: 17.7.2
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@types/node'
+ optional: true
+
dependencies:
'@bundled-es-modules/cookie': 2.0.1
@@ -24246,6 +24322,37 @@ snapshots:
transitivePeerDependencies:
- msw
+ dependencies:
+ '@vitest/expect': 4.1.10
+ '@vitest/pretty-format': 4.1.10
+ '@vitest/runner': 4.1.10
+ '@vitest/snapshot': 4.1.10
+ '@vitest/spy': 4.1.10
+ '@vitest/utils': 4.1.10
+ es-module-lexer: 2.3.0
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ obug: 2.1.1
+ pathe: 2.0.3
+ picomatch: 4.0.5
+ std-env: 4.0.0
+ tinybench: 2.9.0
+ tinyexec: 1.1.2
+ tinyglobby: 0.2.17
+ tinyrainbow: 3.1.0
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@opentelemetry/api': 1.9.1
+ '@types/node': 24.3.0
+ '@vitest/coverage-v8': 4.1.10(@vitest/[email protected])([email protected])
+ jsdom: 26.1.0([email protected])
+ transitivePeerDependencies:
+ - msw
+
dependencies:
'@vitest/expect': 4.1.10
diff --git a/turbo.json b/turbo.json
index 23b4f1abff..433fed3eb7 100644
--- a/turbo.json
+++ b/turbo.json
@@ -119,6 +119,14 @@
"cache": true,
"outputLogs": "errors-only"
},
+ "@repo/in-app-agent-sandbox-runtime#test": {
+ "dependsOn": [],
+ "cache": true
+ },
+ "@repo/in-app-agent-sandbox-runtime#test:e2e": {
+ "dependsOn": ["build"],
+ "cache": false
+ },
"worker#dev": {
"cache": false,
"persistent": true