





























@@ -71,7 +71,12 @@ function posixPrintLogTailFunction(): string {
7171}`;
7272}
737374-function posixAssertAgentOkScript(command: string, input: NpmUpdateScriptInput, sessionId: string) {
74+function posixAssertAgentOkScript(
75+command: string,
76+input: NpmUpdateScriptInput,
77+platform: Extract<Platform, "linux" | "macos">,
78+sessionId: string,
79+) {
7580return `${posixProviderOnlyPluginIsolationScript({
7681 fallbackPluginId: input.auth.modelId.split("/", 1)[0] || "openai",
7782 modelId: input.auth.modelId,
@@ -84,7 +89,7 @@ for attempt in 1 2; do
8489 rm -f "$HOME/.openclaw/agents/main/sessions/$session_id.jsonl"
8590 output_file="$(mktemp)"
8691 set +e
87- OPENCLAW_ALLOW_ROOT="\${OPENCLAW_ALLOW_ROOT:-}" ${input.auth.apiKeyEnv}=${shellQuote(input.auth.apiKeyValue)} ${command} agent --local --agent main --session-id "$session_id" --message 'Reply with exact ASCII text OK only.' --thinking off --json >"$output_file" 2>&1
92+ OPENCLAW_ALLOW_ROOT="\${OPENCLAW_ALLOW_ROOT:-}" ${input.auth.apiKeyEnv}=${shellQuote(input.auth.apiKeyValue)} ${command} agent --local --agent main --session-id "$session_id" --message 'Reply with exact ASCII text OK only.' --thinking off --timeout ${resolveParallelsModelTimeoutSeconds(platform)} --json >"$output_file" 2>&1
8893 rc=$?
8994 set -e
9095 print_log_tail "$output_file"
@@ -259,7 +264,7 @@ ${posixModelProviderConfigCommands(macosOpenClawCommand, input.auth.modelId, "ma
259264"$OPENCLAW_BIN" config set agents.defaults.skipBootstrap true --strict-json
260265"$OPENCLAW_BIN" config set tools.profile minimal
261266${posixAgentWorkspaceScript("Parallels npm update smoke test assistant.")}
262-${posixAssertAgentOkScript(macosOpenClawCommand, input, "parallels-npm-update-macos")}`;
267+${posixAssertAgentOkScript(macosOpenClawCommand, input, "macos", "parallels-npm-update-macos")}`;
263268}
264269265270export function windowsUpdateScript(input: NpmUpdateScriptInput): string {
@@ -403,7 +408,7 @@ ${posixModelProviderConfigCommands("openclaw", input.auth.modelId, "linux")}
403408openclaw config set agents.defaults.skipBootstrap true --strict-json
404409openclaw config set tools.profile minimal
405410${posixAgentWorkspaceScript("Parallels npm update smoke test assistant.")}
406-${posixAssertAgentOkScript("openclaw", input, "parallels-npm-update-linux")}`;
411+${posixAssertAgentOkScript("openclaw", input, "linux", "parallels-npm-update-linux")}`;
407412}
408413409414function posixVersionCheck(command: string, expectedNeedle: string): string {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。