chore(contracts): remove dead exports

Merged
TH
10d ago
+3-6

Summary

Removes three fallow-flagged dead exports from @agent-device/contracts (2 files touched):

  • packages/contracts/src/gesture-plan.ts — sampleGestureOffsets, interpolateGesturePoint
  • packages/contracts/src/android-snapshot-quality.ts — ANDROID_CAPTURE_FAILURE_REASONS

Each symbol was referenced only inside its own module, so the export keyword was dropped and the declarations became module-private (no behavior change; exported types like AndroidCaptureFailureReason are unchanged). A workspace-wide grep (src, packages, scripts, test, tools, website, docs, .github, skills, including string/dynamic references) found no external reference; the published root ./contracts export (dist/src/contracts from src/sdk/contracts.ts) and src/sdk/index.ts do not re-export them, and dist/ contains no occurrence of any of the three symbols. pnpm check:production-exports passes and does not require them, so they are provably not public API.

Validation

Tested SHA: d49eca85646bbced916049b0521ba96154f3a05f

  • npx fallow dead-code --config .fallowrc.json — the three symbols no longer listed (0 matches; unused-export count 10 → 7, remainder pre-existing in other packages)
  • pnpm lint — 0 warnings, 0 errors (oxlint, 5230 files)
  • pnpm format:check — all files use the correct format
  • pnpm typecheck — pass (tsc -b)
  • pnpm check:production-exports — "No issues found"
  • pnpm check:fallow — "No issues in 2 changed files"
  • npx vitest run --project unit-core packages/contracts — 94 files / 840 tests passed
  • npx vitest run --project unit-core on all other test files importing gesture-plan or android-snapshot-quality (platform-android, platform-apple, platform-linux, platform-harmonyos, provider-webdriver, daemon, maestro, src/sdk, repo-guards, layering) — 90 files / 1075 tests passed

CI obligations: the serialized gate stage validates the pushed head (d49eca85646bbced916049b0521ba96154f3a05f); this PR is not merged and CI is not awaited here.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.