chore: upgrade claude agent sdk (#150)

This commit is contained in:
Eyejoker
2026-05-23 09:09:32 +09:00
committed by GitHub
parent dd6cb3c220
commit 262534cac9
5 changed files with 62 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
export function buildClaudeSdkEnv(
baseEnv: Record<string, string | undefined>,
secrets: Record<string, string> = {},
): Record<string, string | undefined> {
const env: Record<string, string | undefined> = { ...baseEnv };
for (const [key, value] of Object.entries(secrets)) {
env[key] = value;
}
// Claude Agent SDK 0.3.x connects MCP servers in the background by default.
// EJClaw expects its local MCP server to be available on the first turn.
env.MCP_CONNECTION_NONBLOCKING ??= '0';
return env;
}