惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
Engineering at Meta
Engineering at Meta
C
Cisco Blogs
H
Heimdal Security Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
N
Netflix TechBlog - Medium
雷峰网
雷峰网
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Project Zero
Project Zero
Spread Privacy
Spread Privacy
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
T
Threatpost
The Hacker News
The Hacker News
WordPress大学
WordPress大学
AWS News Blog
AWS News Blog
Latest news
Latest news
P
Privacy International News Feed
T
Tenable Blog
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
NISL@THU
NISL@THU
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
The Cloudflare Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Blog — PlanetScale
Blog — PlanetScale
K
Kaspersky official blog
小众软件
小众软件
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
N
News | PayPal Newsroom
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
TaoSecurity Blog
TaoSecurity Blog
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
About on SuperTechFans
V
Visual Studio Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(crabbox): preflight macOS Swift toolchain · openclaw/openclaw@f0afbd7
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main

@@ -141,6 +141,14 @@ const jsRuntimeEntrypoints = new Set([

141141

const awsMacosCorepackEntrypoints = new Set(["pnpm", "yarn", "corepack"]);

142142

const awsMacosBunEntrypoints = new Set(["bun", "bunx"]);

143143

const awsMacosBunVersion = "1.3.14";

144+

const awsMacosSwiftEntrypoints = new Set(["swift", "xcodebuild"]);

145+

const awsMacosSwiftScriptTargets = new Set([

146+

"mac:package",

147+

"mac:restart",

148+

"scripts/build-and-run-mac.sh",

149+

"scripts/package-mac-app.sh",

150+

"scripts/restart-mac.sh",

151+

]);

144152

const minimumBlacksmithCrabboxVersion = [0, 22, 0];

145153

const shellControlCommandPrefixes = new Set([

146154

"if",

@@ -955,6 +963,89 @@ function commandNeedsAwsMacosBun(commandArgs) {

955963

return commandNeedsEntrypoint(commandArgs, awsMacosBunEntrypoints);

956964

}

957965966+

function commandNeedsAwsMacosSwiftToolchain(commandArgs) {

967+

if (commandArgs.length === 1) {

968+

return shellCommandWordCandidates(commandArgs[0]).some(commandWordsNeedAwsMacosSwiftToolchain);

969+

}

970+

return commandWordsNeedAwsMacosSwiftToolchain(normalizedCommandWords(commandArgs));

971+

}

972+973+

function commandWordsNeedAwsMacosSwiftToolchain(wordsInput) {

974+

let words = wordsInput;

975+

words = normalizeExecutableWords(words);

976+

const first = (words[0] ?? "").split("/").pop();

977+

if (isSupportedSystemEnvCommand(first)) {

978+

const targetWords = [...words];

979+

if (stripEnvCommandOptions(targetWords, { canShimIgnoreEnvironment: true })) {

980+

return commandWordsNeedAwsMacosSwiftToolchain(targetWords);

981+

}

982+

}

983+

if (awsMacosSwiftEntrypoints.has(first)) {

984+

return true;

985+

}

986+987+

if (first === "pnpm") {

988+

const scriptName = words[1] === "run" ? words[2] : words[1];

989+

if (awsMacosSwiftScriptTargets.has(scriptName)) {

990+

return true;

991+

}

992+

}

993+994+

if (isAwsMacosSwiftScriptTarget(words[0])) {

995+

return true;

996+

}

997+998+

if (commandWordsRunAwsMacosSwiftScript(words)) {

999+

return true;

1000+

}

1001+1002+

const inlineCommand = shellInlineCommand(words);

1003+

if (!inlineCommand) {

1004+

return false;

1005+

}

1006+

return shellCommandWordCandidates(inlineCommand).some(commandWordsNeedAwsMacosSwiftToolchain);

1007+

}

1008+1009+

function isAwsMacosSwiftScriptTarget(word) {

1010+

if (!word) {

1011+

return false;

1012+

}

1013+

const normalized = word.replace(/^\.\//u, "");

1014+

return (

1015+

awsMacosSwiftScriptTargets.has(normalized) ||

1016+

awsMacosSwiftScriptTargets.has(normalized.split("/").pop() ?? "")

1017+

);

1018+

}

1019+1020+

function commandWordsRunAwsMacosSwiftScript(words) {

1021+

const first = (words[0] ?? "").split("/").pop();

1022+

if (!shellInlineCommandInterpreters.has(first)) {

1023+

return false;

1024+

}

1025+1026+

for (let index = 1; index < words.length; index += 1) {

1027+

const word = words[index] ?? "";

1028+

if (!word) {

1029+

return false;

1030+

}

1031+

if (word === "--") {

1032+

continue;

1033+

}

1034+

if (word === "-c" || /^-[^-]*c/u.test(word)) {

1035+

return false;

1036+

}

1037+

if (shellInlineCommandOptionConsumesNextValue(word)) {

1038+

index += 1;

1039+

continue;

1040+

}

1041+

if (word.startsWith("-") || word.startsWith("+")) {

1042+

continue;

1043+

}

1044+

return isAwsMacosSwiftScriptTarget(word);

1045+

}

1046+

return false;

1047+

}

1048+9581049

function commandNeedsEntrypoint(commandArgs, entrypoints) {

9591050

if (commandArgs.length === 1) {

9601051

return shellCommandWordCandidates(commandArgs[0]).some((words) =>

@@ -2078,6 +2169,62 @@ function injectRemoteAwsMacosJsBootstrap(commandArgs, providerName) {

20782169

return normalizedArgs;

20792170

}

208021712172+

function remoteAwsMacosSwiftBootstrap() {

2173+

return [

2174+

"openclaw_crabbox_require_macos_swift_62() {",

2175+

'openclaw_xcode="";',

2176+

'for openclaw_candidate in /Applications/Xcode_26.1.app /Applications/Xcode_26*.app /Applications/Xcode-26*.app; do if [ -d "$openclaw_candidate" ]; then openclaw_xcode="$openclaw_candidate"; fi; done;',

2177+

'if [ -n "$openclaw_xcode" ]; then openclaw_developer="$openclaw_xcode/Contents/Developer"; if [ ! -d "$openclaw_developer" ]; then openclaw_developer="$openclaw_xcode"; fi; sudo xcode-select -s "$openclaw_developer" || return 1; fi;',

2178+

'openclaw_swift_version="$(swift --version 2>&1)" || { status=$?; printf "%s\\n" "$openclaw_swift_version" >&2; return "$status"; };',

2179+

'printf "%s\\n" "$openclaw_swift_version" >&2;',

2180+

'openclaw_swift_major_minor="$(printf "%s\\n" "$openclaw_swift_version" | sed -nE "s/.*Apple Swift version ([0-9]+)\\.([0-9]+).*/\\1 \\2/p" | head -n 1)";',

2181+

'if [ -z "$openclaw_swift_major_minor" ]; then echo "[crabbox] OpenClaw macOS app proof requires Swift tools 6.2+; unable to parse swift --version." >&2; return 2; fi;',

2182+

"set -- $openclaw_swift_major_minor;",

2183+

'if [ "$1" -lt 6 ] || { [ "$1" -eq 6 ] && [ "$2" -lt 2 ]; }; then',

2184+

'echo "[crabbox] OpenClaw macOS app proof requires Swift tools 6.2+ (Xcode 26.x)." >&2;',

2185+

'echo "[crabbox] current Swift is $1.$2; select/install Xcode 26.x or use a Blacksmith macOS runner with Xcode_26.1.app." >&2;',

2186+

"return 2;",

2187+

"fi;",

2188+

"};",

2189+

"openclaw_crabbox_require_macos_swift_62",

2190+

].join(" ");

2191+

}

2192+2193+

function injectRemoteAwsMacosSwiftBootstrap(commandArgs, providerName, force = false) {

2194+

const runArgs = runCommandArgs(commandArgs);

2195+

if (

2196+

!isAwsMacosRemoteTarget(commandArgs, providerName) ||

2197+

(!force && !commandNeedsAwsMacosSwiftToolchain(runArgs))

2198+

) {

2199+

return commandArgs;

2200+

}

2201+2202+

const { start, optionEnd } = runCommandBounds(commandArgs);

2203+

if (start < 0) {

2204+

return commandArgs;

2205+

}

2206+2207+

const normalizedArgs = [...commandArgs];

2208+

const remoteCommand = normalizedArgs.slice(start);

2209+

const originalShellCommand =

2210+

hasOption(normalizedArgs, "--shell") && remoteCommand.length === 1

2211+

? remoteCommand[0]

2212+

: shellJoin(remoteCommand);

2213+

const shellCommand = `${remoteAwsMacosSwiftBootstrap()} && { ${originalShellCommand}\n}`;

2214+2215+

if (!hasOption(normalizedArgs, "--shell")) {

2216+

normalizedArgs.splice(optionEnd, 0, "--shell");

2217+

}

2218+2219+

const updatedBounds = runCommandBounds(normalizedArgs);

2220+

normalizedArgs.splice(

2221+

updatedBounds.start,

2222+

normalizedArgs.length - updatedBounds.start,

2223+

shellCommand,

2224+

);

2225+

return normalizedArgs;

2226+

}

2227+20812228

function hasRunOption(commandArgs, name) {

20822229

if (commandArgs[0] !== "run") {

20832230

return false;

@@ -2136,11 +2283,11 @@ function prepareAwsMacosScriptStdinBootstrap(commandArgs, providerName) {

21362283

function createAwsMacosScriptStdinWrapper(script) {

21372284

const requirements = awsMacosScriptBootstrapRequirements(script);

21382285

if (!script.startsWith("#!")) {

2139-

return `${remoteAwsMacosJsBootstrap(requirements)} || exit $?\n${script}`;

2286+

return `${remoteAwsMacosScriptBootstrap(requirements)} || exit $?\n${script}`;

21402287

}

21412288

const delimiterValue = uniqueHereDocDelimiter(script);

21422289

return [

2143-

`${remoteAwsMacosJsBootstrap(requirements)} || exit $?`,

2290+

`${remoteAwsMacosScriptBootstrap(requirements)} || exit $?`,

21442291

'tmp_script="$(mktemp "${TMPDIR:-/tmp}/openclaw-crabbox-script.XXXXXX")" || exit $?',

21452292

'cleanup_openclaw_crabbox_script() { rm -f "$tmp_script"; }',

21462293

"trap cleanup_openclaw_crabbox_script EXIT",

@@ -2153,22 +2300,33 @@ function createAwsMacosScriptStdinWrapper(script) {

21532300

].join("\n");

21542301

}

215523022303+

function remoteAwsMacosScriptBootstrap(requirements) {

2304+

const bootstraps = [remoteAwsMacosJsBootstrap(requirements)];

2305+

if (requirements.swift) {

2306+

bootstraps.push(remoteAwsMacosSwiftBootstrap());

2307+

}

2308+

return bootstraps.join(" && ");

2309+

}

2310+21562311

function awsMacosScriptBootstrapRequirements(script) {

2157-

const requirements = { packageManager: false, bun: false };

2312+

const requirements = { packageManager: false, bun: false, swift: false };

21582313

const firstLine = script.match(/^[^\r\n]*/u)?.[0] ?? "";

21592314

if (firstLine.startsWith("#!")) {

21602315

const words = firstLine.slice(2).trim().split(/\s+/u).filter(Boolean);

21612316

requirements.packageManager = commandWordsNeedEntrypoint(words, awsMacosCorepackEntrypoints);

21622317

requirements.bun = commandWordsNeedEntrypoint(words, awsMacosBunEntrypoints);

2318+

requirements.swift = commandWordsNeedAwsMacosSwiftToolchain(words);

21632319

if (commandWordsShellEntrypoint(words)) {

21642320

const body = script.slice(firstLine.length).replace(/^\r?\n/u, "");

21652321

requirements.packageManager ||= commandNeedsAwsMacosPackageManager([body]);

21662322

requirements.bun ||= commandNeedsAwsMacosBun([body]);

2323+

requirements.swift ||= commandNeedsAwsMacosSwiftToolchain([body]);

21672324

}

21682325

return requirements;

21692326

}

21702327

requirements.packageManager = commandNeedsAwsMacosPackageManager([script]);

21712328

requirements.bun = commandNeedsAwsMacosBun([script]);

2329+

requirements.swift = commandNeedsAwsMacosSwiftToolchain([script]);

21722330

return requirements;

21732331

}

21742332

@@ -2677,15 +2835,26 @@ if (

26772835

}

2678283626792837

const remoteMarkedArgs = injectRemoteChangedGateEnvironment(normalizedArgs);

2838+

const remoteMarkedNeedsAwsMacosSwift =

2839+

isAwsMacosRemoteTarget(remoteMarkedArgs, provider) &&

2840+

commandNeedsAwsMacosSwiftToolchain(runCommandArgs(remoteMarkedArgs));

26802841

const childArgs =

26812842

childCwd === repoRoot

26822843

? injectRemoteWindowsHydratedNodeModulesBootstrap(

2683-

injectRemoteAwsMacosJsBootstrap(remoteMarkedArgs, provider),

2844+

injectRemoteAwsMacosSwiftBootstrap(

2845+

injectRemoteAwsMacosJsBootstrap(remoteMarkedArgs, provider),

2846+

provider,

2847+

remoteMarkedNeedsAwsMacosSwift,

2848+

),

26842849

provider,

26852850

)

26862851

: injectRemoteChangedGateGitBootstrap(

26872852

injectRemoteWindowsHydratedNodeModulesBootstrap(

2688-

injectRemoteAwsMacosJsBootstrap(absolutizeLocalRunPaths(remoteMarkedArgs), provider),

2853+

injectRemoteAwsMacosSwiftBootstrap(

2854+

injectRemoteAwsMacosJsBootstrap(absolutizeLocalRunPaths(remoteMarkedArgs), provider),

2855+

provider,

2856+

remoteMarkedNeedsAwsMacosSwift,

2857+

),

26892858

provider,

26902859

),

26912860

remoteChangedGateBase,