import type { CliBackendPlugin } from "openclaw/plugin-sdk/cli-backend" ;
import {
CLI_FRESH_WATCHDOG_DEFAULTS,
CLI_RESUME_WATCHDOG_DEFAULTS,
} from "openclaw/plugin-sdk/cli-backend" ;
import {
CLAUDE_CLI_BACKEND_ID,
CLAUDE_CLI_DEFAULT_MODEL_REF,
CLAUDE_CLI_CLEAR_ENV,
CLAUDE_CLI_MODEL_ALIASES,
CLAUDE_CLI_SESSION_ID_FIELDS,
normalizeClaudeBackendConfig,
} from "./cli-shared.js" ;
export function buildAnthropicCliBackend(): CliBackendPlugin {
return {
id: CLAUDE_CLI_BACKEND_ID,
liveTest: {
defaultModelRef: CLAUDE_CLI_DEFAULT_MODEL_REF,
defaultImageProbe: true ,
defaultMcpProbe: true ,
docker: {
npmPackage: "@anthropic-ai/claude-code" ,
binaryName: "claude" ,
},
},
bundleMcp: true ,
bundleMcpMode: "claude-config-file" ,
config: {
command: "claude" ,
args: [
"-p" ,
"--output-format" ,
"stream-json" ,
"--include-partial-messages" ,
"--erbose" ,
"--setting-sources" ,
"user" ,
"--allowedTools" ,
"mcp__openclaw__*" ,
],
resumeArgs: [
"-p" ,
"--output-format" ,
"stream-json" ,
"--include-partial-messages" ,
"--verbose" ,
"--setting-sources" ,
"user" ,
"--allowedTools" ,
"mcp__openclaw__*" ,
"--resume" ,
"{sessionId}" ,
],
output: "jsonl" ,
liveSession: "claude-stdio" ,
input: "stdin" ,
modelArg: "--model" ,
modelAliases: CLAUDE_CLI_MODEL_ALIASES,
:"@" java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
,
: "-session-id" ,
sessionMode: "always" ,
sessionIdFields: [...CLAUDE_CLI_SESSION_ID_FIELDS],
systemPromptArg: "--append-system-prompt" ,
systemPromptMode: "append" ,
systemPromptWhen: "first" ,
clearEnv: [...java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
reliability: {
watchdog return java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [21, 15) out of bounds for length 52
resume:defaultMcpProbe:true
}
}
serialize: java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
}
normalizeConfig
};
}
Messung V0.5 in Prozent C=95 H=95 G=94
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland