Fix tests

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Ben Brandt
2025-08-27 12:54:48 -07:00
parent 16a352f98e
commit cb4cda0d1c
5 changed files with 11 additions and 12 deletions

10
package-lock.json generated
View File

@@ -12,7 +12,7 @@
"@anthropic-ai/claude-code": "^1.0.92",
"@modelcontextprotocol/sdk": "^1.17.4",
"@types/express": "^5.0.3",
"@zed-industries/agent-client-protocol": "0.1.0",
"@zed-industries/agent-client-protocol": "0.1.2",
"express": "^5.1.0",
"minimist": "^1.2.8",
"uuid": "11.1.0"
@@ -1496,10 +1496,10 @@
}
},
"node_modules/@zed-industries/agent-client-protocol": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@zed-industries/agent-client-protocol/-/agent-client-protocol-0.1.0.tgz",
"integrity": "sha512-HRGL1UYoewZpcvd1Yiaw57WMTVk0iQsYkk/N/r++fT4dfLItGW1ZT0mZ3++dFFK6g799KWeQOb+iFxL8wuRlMw==",
"license": "MIT",
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@zed-industries/agent-client-protocol/-/agent-client-protocol-0.1.2.tgz",
"integrity": "sha512-A1RCN7Uf09vngbhBVLiZENenKYOYD2OGiILLGXPaSBloDbem8xmLaDmrKQuYl0kjLJ1DcWmVaHUv97n1l5vJ6w==",
"license": "Apache-2.0",
"dependencies": {
"zod": "^3.0.0"
}

View File

@@ -29,7 +29,7 @@
"@anthropic-ai/claude-code": "^1.0.92",
"@modelcontextprotocol/sdk": "^1.17.4",
"@types/express": "^5.0.3",
"@zed-industries/agent-client-protocol": "0.1.0",
"@zed-industries/agent-client-protocol": "0.1.2",
"express": "^5.1.0",
"minimist": "^1.2.8",
"uuid": "11.1.0"

View File

@@ -89,7 +89,6 @@ export class ClaudeAcpAgent implements Agent {
options: {
cwd: params.cwd,
mcpServers,
executableArgs: ["--debug"],
allowedTools: ["mcp__acp__read"],
disallowedTools: ["Read"],
strictMcpConfig: true,

View File

@@ -63,7 +63,7 @@ export function createMcpServer(
{
type: "text",
text:
content +
content.content +
`
<system-reminder>

View File

@@ -24,8 +24,8 @@ describe("ACP subprocess integration", () => {
beforeAll(async () => {
// Start the subprocess
child = spawn("npm", ["run", "dev"], {
stdio: ["pipe", "pipe", "pipe"],
child = spawn("npm", ["run", "--silent", "dev"], {
stdio: ["pipe", "pipe", "inherit"],
env: process.env,
});
});
@@ -46,7 +46,7 @@ describe("ACP subprocess integration", () => {
throw new Error("Method not implemented.");
}
async sessionUpdate(params: SessionNotification): Promise<void> {
console.log(params);
console.error(params);
}
writeTextFile(
params: WriteTextFileRequest,
@@ -64,7 +64,7 @@ describe("ACP subprocess integration", () => {
return new TestClient(agent);
},
nodeToWebWritable(child.stdin!),
nodeToWebReadable(child.stdout!) as any,
nodeToWebReadable(child.stdout!),
);
let session = await connection.newSession({ cwd: "./", mcpServers: [] });