refactor(capture-kit): resolve recording helper scripts from swift-cache - #2743
Conversation
Size Report
Startup median (7 runs, lower is better):
|
|
Reviewed 6c1c562. Two things need a change before this layer is ready.
Moving Not blocking: png-pixels.fixtures.ts could call CI: Coverage and Compatibility & Provenance fail on code this PR adds or moves, so they are related. iOS Smoke fails at "automation-longpress did not become visible after scrolling"; main also fails the live iOS fixture job and this diff is not on that route, so it looks unrelated. No conflicts. |
6c1c562 to
73fec06
Compare
|
Both fixed, and the shape of this layer changed because of the second point. One pixel primitive. The eager-closure growth. You were right that The glyph-table extraction is withdrawn. Non-blocking items taken: the CI: Coverage and Compatibility & Provenance both came from this diff and are fixed here. iOS Smoke also fails on |
|
Reviewed 73fec06. Both earlier findings are resolved: this PR no longer touches |
73fec06 to
6c8934a
Compare
|
Why
Two recording features now need the same answer: where is
apple/runner/AgentDeviceRunner/RecordingScripts/<script>from a checkout, from a built package, or from a working directory?recording/overlay.tsowned that answer privately.What
buildRecordingScriptPathCandidates()andresolveRecordingScriptPath()move torecording/swift-cache.ts, next to the compile seam that already consumes a resolved script.swift-cache.overlay.tskeeps its memoised paths and itshost-kit/versionimport; behaviour is unchanged, including the searched order and thesearchedPathson the refusal.distcandidate test follows the function toswift-cache.test.ts.First layer of the recording contact sheet stack: the decoder in the next layer compiles a second helper through this seam.