refactor(move): complete replay port package extraction

Merged
TH
2mo ago
+121-110

Summary

  • Move the final 15 connected replay production modules unchanged into @agent-device/replay-port, route daemon callers through package exports, and remove src/daemon/replay/**.
  • Update package ownership and source references. The original replay subtree held 108 files / 24,089 LOC and now has no tracked files. This layer touches 52 files; all 15 source moves are exact renames (git diff -M90%).
  • Daemon coordinator, repair transaction, device selection, and handler adapters remain as specified by the issue’s retention scope.
  • Closes #2663 after the preceding stack layers merge.

Validation

  • Head a4badbb72: fresh pnpm install --frozen-lockfile && pnpm build && pnpm format && pnpm check:affected --run passed, including related tests, package checks, Maestro conformance, and wire compatibility.
  • Layering and depgraph: R4 0 value cycles, R5 0 back-edges, R6 3 type inversions, R11 zero root back-imports. Fallow and 753 eager-closure budget tests passed.
  • Live iPhone 18 Pro simulator on a4badbb72: recorded .ad replay passed 2/2 steps, 0 heals; Maestro checkout form passed 17/17 steps, 0 heals. Baseline 3c1f51382 had the same 2/2 and 17/17 results. Both final sessions closed; session list and device claims are empty.
  • Review fixes cover package-relative dynamic imports in the ownership test and move the native-command complexity baseline to its package path. GitHub CI is pending on this PR head.