Repository navigation
refactor(move): move the recording Swift helpers into packages/host-swift - #4742
Conversation
…wift The touch overlay, the contact-sheet frame decoder and the video validator are macOS host tools: recording post-processing for every device platform (Android, HarmonyOS, Apple, provider transports) compiles them on the daemon host. They sat in the iOS runner tree and in capture-kit only by location. packages/host-swift now owns the .swift sources, the generated embedding, the validator source and the Swift compile cache. capture-kit keeps its cross-platform drivers and calls host-swift. Same Swift bytes, same cache keys, same lazy import: behavior is unchanged.
… moved Swift files The layering model, the R11 dependency expectations and the examples/sdk project references list host-swift with the other workspace packages. The trailing-comma scan, the Apple bridge-proof trigger, the darwin helper proof, the native clone scan and the device-lane ownership follow the .swift files to packages/host-swift/swift. The clone-gate model test creates every configured scan root instead of a fixed list.
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This is ready to merge at 8ed876a: the Swift sources move byte-for-byte into packages/host-swift, with no problems found. CI is green on that commit, including Repo Guards & Compatibility, Lint/Typecheck/Package, Coverage, Integration Tests and the macOS smoke run with the darwin proof, and there are no conflicts. The clone-scan config now covers the moved path. Not blocking, and fine to take or leave: host-swift keeps local copies of two test fixtures that match the capture-kit ones, which the package cycle requires, so a later test-support entry in host-kit could remove them; ADR 0019 could name host-swift in its package direction with one sentence; and the bridge-proof trigger in scripts/apple-ci-impact.ts now matches all of packages/host-swift/, so a TS-only change there also runs the darwin proof, which you could narrow to the swift/ directory and recording-swift-sources.ts. |
Summary
Behavior unchanged. Moves the recording Swift helpers out of
capture-kitand the iOS runner tree into a new private host-tool package,packages/host-swift. Reason: 0.22 extracts providers and some platforms into plugins, so the core must stay lean, and shared packages must not carry native sources.The touch overlay, the frame decoder and the video validator are macOS host tools. Android, HarmonyOS, Apple and provider recordings all compile them on the daemon host. So they do not belong in
platform-apple.host-swiftowns the.swiftfiles, the generated embedding, the validator source and the Swift compile cache.capture-kitkeeps its cross-platform drivers and depends onhost-swift. The Swift bytes, the cache keys and the lazy import do not change.git diff -M90%: +198/−87).Validation
8ed876a18c:pnpm check:affected --run --head 8ed876a18cpassed withexactCommit=true. 42 checks passed. The full set ran (fail-open on manifest changes). 25 checks were skipped as CI-only or device lanes, including swift-runner, coverage and replay.pnpm check:native-dupesandpnpm check:native-dupes:testpassed.packages/host-swift,capture-kit/src/recordingand the repo guard on darwin. They passed.swift-cache-recording-scripts), coverage, and the device lanes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.