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

推荐订阅源

D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
博客园 - 聂微东
罗磊的独立博客
W
WeLiveSecurity
博客园_首页
Scott Helme
Scott Helme
V
Visual Studio Blog
T
The Exploit Database - CXSecurity.com
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Latest news
Latest news
L
Lohrmann on Cybersecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
F
Full Disclosure
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 司徒正美
博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
阮一峰的网络日志
阮一峰的网络日志
S
Schneier on Security
雷峰网
雷峰网
博客园 - 【当耐特】
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
T
Tor Project blog
V
V2EX
爱范儿
爱范儿
C
Check Point Blog
T
Threatpost
Project Zero
Project Zero
量子位
V
Vulnerabilities – Threatpost
Know Your Adversary
Know Your Adversary
I
Intezer
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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
Add Apple Watch screenshot pipeline · openclaw/openclaw@21e3cfa
joshavant · 2026-06-16 · via Recent Commits to openclaw:main

@@ -3,12 +3,16 @@ require "open3"

33

require "json"

44

require "fileutils"

55

require "tmpdir"

6+

require "tempfile"

67

require "cgi"

7889

default_platform(:ios)

9101011

APP_STORE_APP_IDENTIFIER = "ai.openclawfoundation.app"

1112

DEFAULT_SNAPSHOT_DEVICES = ["iPhone 16 Pro Max", "iPad Pro 13-inch (M4)"].freeze

13+

DEFAULT_WATCH_SNAPSHOT_DEVICE = "Apple Watch Ultra 3 (49mm)"

14+

WATCH_SCREENSHOT_MODE_DEFAULTS_KEY = "openclaw.watch.screenshotMode"

15+

WATCH_SNAPSHOT_STATUS_BAR_TIME = "09:41"

1216

SNAPSHOT_STATUS_BAR_ARGUMENTS = "--time 09:41 --dataNetwork wifi --wifiMode active --wifiBars 3 --cellularMode active --cellularBars 4 --batteryState charged --batteryLevel 100".freeze

1317

REQUIRED_SCREENSHOT_FAMILIES = {

1418

"iPhone" => /iPhone/,

@@ -66,6 +70,270 @@ def snapshot_devices

6670

raw.split(",").map(&:strip).reject(&:empty?)

6771

end

687273+

def watch_snapshot_device

74+

raw = ENV["OPENCLAW_WATCH_SNAPSHOT_DEVICE"].to_s.strip

75+

raw.empty? ? DEFAULT_WATCH_SNAPSHOT_DEVICE : raw

76+

end

77+78+

def available_simulator_devices

79+

stdout, stderr, status = Open3.capture3("xcrun", "simctl", "list", "devices", "available", "--json")

80+

unless status.success?

81+

detail = stderr.to_s.strip

82+

detail = stdout.to_s.strip if detail.empty?

83+

UI.user_error!("Failed to list simulator devices: #{detail}")

84+

end

85+86+

JSON.parse(stdout).fetch("devices").values.flatten

87+

rescue JSON::ParserError => e

88+

UI.user_error!("Invalid JSON from simctl device list: #{e.message}")

89+

end

90+91+

def resolve_simulator_device(name)

92+

devices = available_simulator_devices

93+

exact = devices.find { |device| device["name"] == name }

94+

return exact if exact

95+96+

watch_devices = devices.select { |device| device["name"].to_s.include?("Apple Watch") }

97+

fallback = watch_devices.find { |device| device["name"].to_s.include?("Ultra") } || watch_devices.first

98+

UI.user_error!("No available Apple Watch simulators found.") unless fallback

99+100+

UI.important("Apple Watch simulator '#{name}' was not found; using '#{fallback.fetch("name")}'.")

101+

fallback

102+

end

103+104+

def bundle_identifier_for_product(product_path)

105+

info_plist_path = File.join(product_path, "Info.plist")

106+

UI.user_error!("Expected Info.plist at #{info_plist_path}.") unless File.exist?(info_plist_path)

107+108+

stdout, stderr, status = Open3.capture3(

109+

"/usr/libexec/PlistBuddy",

110+

"-c",

111+

"Print:CFBundleIdentifier",

112+

info_plist_path

113+

)

114+

unless status.success?

115+

detail = stderr.to_s.strip

116+

detail = stdout.to_s.strip if detail.empty?

117+

UI.user_error!("Failed to read bundle identifier from #{info_plist_path}: #{detail}")

118+

end

119+120+

bundle_identifier = stdout.to_s.strip

121+

UI.user_error!("Missing bundle identifier in #{info_plist_path}.") if bundle_identifier.empty?

122+

bundle_identifier

123+

end

124+125+

def write_watch_screenshot_mode_defaults(udid, bundle_identifiers)

126+

bundle_identifiers.each do |bundle_identifier|

127+

sh(

128+

shell_join([

129+

"xcrun",

130+

"simctl",

131+

"spawn",

132+

udid,

133+

"defaults",

134+

"write",

135+

bundle_identifier,

136+

WATCH_SCREENSHOT_MODE_DEFAULTS_KEY,

137+

"-bool",

138+

"YES",

139+

])

140+

)

141+

end

142+

end

143+144+

def clear_watch_screenshot_mode_defaults(udid, bundle_identifiers)

145+

bundle_identifiers.each do |bundle_identifier|

146+

sh(

147+

"#{shell_join([

148+

"xcrun",

149+

"simctl",

150+

"spawn",

151+

udid,

152+

"defaults",

153+

"delete",

154+

bundle_identifier,

155+

WATCH_SCREENSHOT_MODE_DEFAULTS_KEY,

156+

])} >/dev/null 2>&1 || true"

157+

)

158+

end

159+

end

160+161+

def status_bar_unsupported?(detail)

162+

detail.include?("Status bar overrides not supported on this platform") ||

163+

detail.include?("Operation not supported")

164+

end

165+166+

def set_watch_status_bar_override(udid)

167+

stdout, stderr, status = Open3.capture3(

168+

"xcrun",

169+

"simctl",

170+

"status_bar",

171+

udid,

172+

"override",

173+

"--time",

174+

WATCH_SNAPSHOT_STATUS_BAR_TIME

175+

)

176+

return true if status.success?

177+178+

detail = stderr.to_s.strip

179+

detail = stdout.to_s.strip if detail.empty?

180+

if status_bar_unsupported?(detail)

181+

UI.important("watchOS simulator status bar overrides are not supported; Watch screenshot clock will use simulator time.")

182+

return false

183+

end

184+185+

UI.user_error!("Failed to override Watch simulator status bar: #{detail}")

186+

end

187+188+

def clear_watch_status_bar_override(udid)

189+

stdout, stderr, status = Open3.capture3("xcrun", "simctl", "status_bar", udid, "clear")

190+

return if status.success?

191+192+

detail = stderr.to_s.strip

193+

detail = stdout.to_s.strip if detail.empty?

194+

UI.user_error!("Failed to clear Watch simulator status bar override: #{detail}") unless status_bar_unsupported?(detail)

195+

end

196+197+

def normalize_watch_screenshot_status_bar(path)

198+

script = <<~SWIFT

199+

import AppKit

200+

import Foundation

201+202+

let path = CommandLine.arguments[1]

203+

let timeText = CommandLine.arguments[2]

204+205+

guard let source = NSImage(contentsOfFile: path),

206+

let cgImage = source.cgImage(forProposedRect: nil, context: nil, hints: nil)

207+

else {

208+

fputs("Failed to load screenshot at \\(path)\\n", stderr)

209+

exit(2)

210+

}

211+212+

let width = CGFloat(cgImage.width)

213+

let height = CGFloat(cgImage.height)

214+

guard let bitmap = NSBitmapImageRep(

215+

bitmapDataPlanes: nil,

216+

pixelsWide: Int(width),

217+

pixelsHigh: Int(height),

218+

bitsPerSample: 8,

219+

samplesPerPixel: 4,

220+

hasAlpha: true,

221+

isPlanar: false,

222+

colorSpaceName: .deviceRGB,

223+

bytesPerRow: 0,

224+

bitsPerPixel: 0),

225+

let graphicsContext = NSGraphicsContext(bitmapImageRep: bitmap)

226+

else {

227+

fputs("Failed to create normalized screenshot bitmap at \\(path)\\n", stderr)

228+

exit(3)

229+

}

230+231+

bitmap.size = NSSize(width: width, height: height)

232+

NSGraphicsContext.saveGraphicsState()

233+

NSGraphicsContext.current = graphicsContext

234+

source.draw(

235+

in: NSRect(x: 0, y: 0, width: width, height: height),

236+

from: NSRect(x: 0, y: 0, width: width, height: height),

237+

operation: .copy,

238+

fraction: 1.0)

239+240+

NSColor.black.setFill()

241+

NSBezierPath(rect: NSRect(x: width - 146, y: height - 92, width: 124, height: 70)).fill()

242+243+

let paragraphStyle = NSMutableParagraphStyle()

244+

paragraphStyle.alignment = .right

245+

let attributes: [NSAttributedString.Key: Any] = [

246+

.font: NSFont.monospacedDigitSystemFont(ofSize: 34, weight: .semibold),

247+

.foregroundColor: NSColor.white,

248+

.paragraphStyle: paragraphStyle,

249+

]

250+

timeText.draw(

251+

in: NSRect(x: width - 134, y: height - 82, width: 102, height: 44),

252+

withAttributes: attributes)

253+

NSGraphicsContext.restoreGraphicsState()

254+255+

guard let png = bitmap.representation(using: .png, properties: [:])

256+

else {

257+

fputs("Failed to encode normalized screenshot at \\(path)\\n", stderr)

258+

exit(4)

259+

}

260+261+

try png.write(to: URL(fileURLWithPath: path))

262+

SWIFT

263+264+

Tempfile.create(["openclaw-watch-status-bar", ".swift"]) do |file|

265+

file.write(script)

266+

file.flush

267+

sh(shell_join(["xcrun", "swift", file.path, path, "9:41"]))

268+

end

269+

end

270+271+

def capture_watch_screenshot

272+

device = resolve_simulator_device(watch_snapshot_device)

273+

device_name = device.fetch("name")

274+

udid = device.fetch("udid")

275+

output_dir = File.join(ios_root, "fastlane", "screenshots", "en-US")

276+

output_path = File.join(output_dir, "#{device_name}-01-quick-reply.png")

277+

derived_data_path = File.join(ios_root, "build", "WatchScreenshotDerivedData")

278+

app_path = File.join(derived_data_path, "Build", "Products", "Debug-watchsimulator", "OpenClawWatchApp.app")

279+280+

FileUtils.mkdir_p(output_dir)

281+

Dir[File.join(output_dir, "Apple Watch*-*.png")].each { |path| FileUtils.rm_f(path) }

282+

FileUtils.rm_rf(derived_data_path)

283+284+

sh(

285+

xcodebuild_shell_join([

286+

"xcodebuild",

287+

"-project",

288+

File.join(ios_root, "OpenClaw.xcodeproj"),

289+

"-scheme",

290+

"OpenClawWatchApp",

291+

"-configuration",

292+

"Debug",

293+

"-destination",

294+

"platform=watchOS Simulator,id=#{udid}",

295+

"-derivedDataPath",

296+

derived_data_path,

297+

"build",

298+

])

299+

)

300+301+

UI.user_error!("Watch screenshot build did not produce #{app_path}.") unless File.exist?(app_path)

302+

extension_path = File.join(app_path, "PlugIns", "OpenClawWatchExtension.appex")

303+

watch_app_identifier = bundle_identifier_for_product(app_path)

304+

watch_extension_identifier = bundle_identifier_for_product(extension_path)

305+

screenshot_mode_bundle_identifiers = [watch_app_identifier, watch_extension_identifier]

306+307+

sh("#{shell_join(["xcrun", "simctl", "boot", udid])} >/dev/null 2>&1 || true")

308+

sh(shell_join(["xcrun", "simctl", "bootstatus", udid, "-b"]))

309+

sh("#{shell_join(["xcrun", "simctl", "uninstall", udid, watch_app_identifier])} >/dev/null 2>&1 || true")

310+

status_bar_overridden = false

311+

begin

312+

sh(shell_join(["xcrun", "simctl", "install", udid, app_path]))

313+

write_watch_screenshot_mode_defaults(udid, screenshot_mode_bundle_identifiers)

314+

status_bar_overridden = set_watch_status_bar_override(udid)

315+

sh(

316+

"SIMCTL_CHILD_OPENCLAW_WATCH_SCREENSHOT_MODE=1 #{shell_join([

317+

"xcrun",

318+

"simctl",

319+

"launch",

320+

udid,

321+

watch_app_identifier,

322+

"--openclaw-watch-screenshot-mode",

323+

])}"

324+

)

325+

sleep(3)

326+

sh(shell_join(["xcrun", "simctl", "io", udid, "screenshot", output_path]))

327+

normalize_watch_screenshot_status_bar(output_path)

328+

ensure

329+

clear_watch_status_bar_override(udid) if status_bar_overridden

330+

clear_watch_screenshot_mode_defaults(udid, screenshot_mode_bundle_identifiers)

331+

end

332+333+

UI.success("Captured Apple Watch screenshot: #{output_path}")

334+

output_path

335+

end

336+69337

def maybe_decode_hex_keychain_secret(value)

70338

return value unless env_present?(value)

71339

@@ -567,6 +835,16 @@ platform :ios do

567835

skip_open_summary: true,

568836

xcargs: "-allowProvisioningUpdates"

569837

)

838+839+

watch_screenshot

840+

end

841+842+

desc "Generate deterministic Apple Watch screenshot for App Store metadata"

843+

lane :watch_screenshot do

844+

sh(shell_join(["bash", File.join(repo_root, "scripts", "ios-configure-signing.sh")]))

845+

sh(shell_join(["bash", File.join(repo_root, "scripts", "ios-write-version-xcconfig.sh")]))

846+

sh(shell_join(["xcodegen", "generate", "--spec", File.join(ios_root, "project.yml"), "--project", ios_root]))

847+

capture_watch_screenshot

570848

end

571849572850

desc "Validate App Store Connect API auth"