callstack/agent-device
Open source device layer for AI coding agents: a CLI, MCP server, and typed Node.js API to control mobile, web, TV, and desktop apps on devices and simulators, locally or in the cloud.
ddbfc85 ↗TypeScript★ 5,378 (+21 today)lists: typescriptvitest-dedup 0.10.0
- Tests analyzed
- 17,664
- in 2,352 files
- Compared
- 96.1%
- 686 tests could not be compared
- Findings
- 395
- 391 warnings
- Exact duplicates
- 4
- error severity
Top candidates
The largest findings, linked to the analyzed commit. Review them before changing any test: identical bodies can still run under different setups the analyzer does not model.
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
ensureXctestrunArtifact prefers validated cache manifest over recursive scan
packages/apple-runner/src/__tests__/runner-artifact-reuse.test.ts:384–421 ↗ensureXctestrunArtifact ignores a newer foreign xctestrun beside a certified build
packages/apple-runner/src/__tests__/runner-artifact-reuse.test.ts:423–462 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
extractRecordingFrames > counts the sample times the decoder declined
packages/capture-kit/src/recording/contact-sheet-frames.test.ts:131–143 ↗extractRecordingFrames > counts samples the manifest neither answered nor declared skipped
packages/capture-kit/src/recording/contact-sheet-frames.test.ts:221–235 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
the wire request shape carries no daemon-only half
packages/daemon/src/core/__tests__/daemon-request-wire.test.ts:63–69 ↗the daemon request shape does reach both, so the walk above can find them
packages/daemon/src/core/__tests__/daemon-request-wire.test.ts:71–77 ↗
- Duplicate testerror
2 tests have identical bodies under an equivalent context.
routes a platform-less request to a sole default-leaf session
packages/daemon/src/sessions/__tests__/session-routing.test.ts:302–313 ↗joins the session already keyed to the platform-less default leaf
packages/daemon/src/sessions/__tests__/session-routing.test.ts:461–472 ↗
- Near-duplicate testwarning
5 tests execute the same behavior events in the same order under an equivalent context, but their normalized bodies differ; a supported normalization may explain the similarity, but equivalence is not proven, so the likely remedy is to cons.
clipboard, the app switcher, app events, settings and alerts carry no web bucket
packages/platform-web/src/runtime.test.ts:205–240 ↗boot and shutdown report the runtime-owned unavailable readiness fact
packages/platform-web/src/runtime.test.ts:508–521 ↗install-from-source reports the runtime-owned unavailable materialize and deploy facts
packages/platform-web/src/runtime.test.ts:553–570 ↗push reports the runtime-owned unavailable readiness and push facts
packages/platform-web/src/runtime.test.ts:574–587 ↗
and 1 more
Findings by rule
- Parameterization candidate386
- Near-duplicate test5
- Duplicate test4
Not compared
- context could not be resolved345
- registered-elsewhere317
- imported helper unreadable21
- order-dependent-state3
No finding is reported for these tests, which does not mean they have no duplicates.
Appearances
| Day | Rank | Commit | Version | Tests | Compared | Findings | Duplicates |
|---|---|---|---|---|---|---|---|
| 2026-11-14 | 11 | ddbfc85 | 0.10.0 | 17,664 | 96.1% | 395 | 4 |
Reproduce
The latest analysis, at the same commit and version:
git clone https://github.com/callstack/agent-device.git
cd agent-device
git checkout ddbfc855661fa9d29b8c836057b7f5b099bcad44
npx [email protected] .