Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

devin-mcp-smoke.ts

29 lines936 Bytes

1// @effect-diagnostics nodeBuiltinImport:off
2// @effect-diagnostics globalConsole:off
3import * as NodeChildProcess from "node:child_process";
4import * as NodePath from "node:path";
5import * as NodeURL from "node:url";
6​
7const repoRoot = NodePath.resolve(NodePath.dirname(NodeURL.fileURLToPath(import.meta.url)), "..");
8const vpExecutable = process.platform === "win32" ? "vp.cmd" : "vp";
9const args = ["test", "run", "apps/server/src/provider/acp/DevinAcpCliProbe.test.ts"];
10const command = [vpExecutable, ...args].join(" ");
11​
12const result = NodeChildProcess.spawnSync(vpExecutable, args, {
13 cwd: repoRoot,
14 env: {
15 ...process.env,
16 T3_DEVIN_ACP_PROBE: "0",
17 T3_DEVIN_MCP_SMOKE: "1",
18 },
19 shell: process.platform === "win32",
20 stdio: "inherit",
21 windowsHide: true,
22});
23​
24if (result.error) {
25 console.error(`${command}: ${result.error.message}`);
26 process.exitCode = 1;
27} else {
28 process.exitCode = result.status ?? 1;