@agent-vm/agent-vm-worker 0.0.91 → 0.0.93
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.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function resolveWorkerRuntimeEntrypoint(repoRoot: string): string;
|
|
2
|
+
export declare function shouldRunWorkerRuntimeE2e(options: {
|
|
3
|
+
readonly commandExists: (command: string) => boolean;
|
|
4
|
+
readonly env: Partial<Record<'AGENT_VM_WORKER_E2E' | 'AGENT_VM_TEST_OPENAI_API_KEY', string>>;
|
|
5
|
+
}): boolean;
|
|
6
|
+
//# sourceMappingURL=worker-e2e-gates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-e2e-gates.d.ts","sourceRoot":"","sources":["../src/worker-e2e-gates.ts"],"names":[],"mappings":"AAEA,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IAClD,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IACrD,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,GAAG,8BAA8B,EAAE,MAAM,CAAC,CAAC,CAAC;CAC9F,GAAG,OAAO,CAOV"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
export function resolveWorkerRuntimeEntrypoint(repoRoot) {
|
|
3
|
+
return path.join(repoRoot, 'packages', 'agent-vm-worker', 'dist', 'main.js');
|
|
4
|
+
}
|
|
5
|
+
export function shouldRunWorkerRuntimeE2e(options) {
|
|
6
|
+
return (options.env.AGENT_VM_WORKER_E2E === '1' &&
|
|
7
|
+
typeof options.env.AGENT_VM_TEST_OPENAI_API_KEY === 'string' &&
|
|
8
|
+
options.env.AGENT_VM_TEST_OPENAI_API_KEY.length > 0 &&
|
|
9
|
+
options.commandExists('codex'));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=worker-e2e-gates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-e2e-gates.js","sourceRoot":"","sources":["../src/worker-e2e-gates.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,UAAU,8BAA8B,CAAC,QAAgB;IAC9D,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,OAGzC;IACA,OAAO,CACN,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,GAAG;QACvC,OAAO,OAAO,CAAC,GAAG,CAAC,4BAA4B,KAAK,QAAQ;QAC5D,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,MAAM,GAAG,CAAC;QACnD,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAC9B,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-vm/agent-vm-worker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.93",
|
|
4
4
|
"description": "Worker process that runs inside a sandboxed VM, plans, edits, validates, and reviews coding tasks.",
|
|
5
5
|
"homepage": "https://github.com/ShravanSunder/agent-vm#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"hono": "^4.12.18",
|
|
42
42
|
"jsonc-parser": "^3.3.1",
|
|
43
43
|
"zod": "^4.4.3",
|
|
44
|
-
"@agent-vm/gateway-interface": "0.0.
|
|
44
|
+
"@agent-vm/gateway-interface": "0.0.93"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"vitest": "^4.1.5"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"build": "tsc -p tsconfig.build.json",
|
|
51
51
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
52
52
|
"test": "pnpm test:unit",
|
|
53
|
-
"test:unit": "vitest run --root ../../ --config vitest.config.ts packages/agent-vm-worker/src",
|
|
54
|
-
"test:integration": "vitest run --root ../../ --config vitest.
|
|
55
|
-
"test:
|
|
53
|
+
"test:unit": "vitest run --root ../../ --config vitest.config.ts --project unit packages/agent-vm-worker/src",
|
|
54
|
+
"test:integration": "vitest run --root ../../ --config vitest.config.ts --project integration packages/agent-vm-worker/src",
|
|
55
|
+
"test:e2e:worker": "AGENT_VM_WORKER_E2E=1 tsx ../../scripts/run-vitest-evidence-project.ts e2e-worker packages/agent-vm-worker/src",
|
|
56
56
|
"start": "node ./dist/main.js"
|
|
57
57
|
}
|
|
58
58
|
}
|