Skip to content

Commit 3883c2c

Browse files
NathanFlurryclaude
andauthored
fix(agent): mount @agentclientprotocol/sdk for pi and claude adapters (#135)
- The pi and claude ACP adapters import `@agentclientprotocol/sdk`, but it was missing from each agent descriptor's `requires`, so it was never projected into the VM at `/root/node_modules`. - On runtimes whose module resolver does not fall back to the host tree, the adapter exits code 1 with "Cannot resolve module '@agentclientprotocol/sdk'" (reported against `@agentos-software/claude-code@0.2.0`). - Add it to `requires` for both agents so it is mounted regardless of resolver/runtime version; both packages already declare it as a dependency. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 305ef78 commit 3883c2c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

registry/agent/claude/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const claude = {
88
name: "claude",
99
type: "agent" as const,
1010
packageDir,
11-
requires: ["@anthropic-ai/claude-agent-sdk"],
11+
requires: ["@agentclientprotocol/sdk", "@anthropic-ai/claude-agent-sdk"],
1212
agent: {
1313
id: "claude",
1414
acpAdapter: "@agentos-software/claude-code",

registry/agent/pi/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const pi = {
88
name: "pi",
99
type: "agent" as const,
1010
packageDir,
11-
requires: ["@agentos-software/pi", "@mariozechner/pi-coding-agent"],
11+
requires: [
12+
"@agentclientprotocol/sdk",
13+
"@agentos-software/pi",
14+
"@mariozechner/pi-coding-agent",
15+
],
1216
agent: {
1317
id: "pi",
1418
acpAdapter: "@agentos-software/pi",

0 commit comments

Comments
 (0)