Skip to content

Commit c83c1bb

Browse files
committed
chore(gates): shrink the contracts export surface by the moved subpaths
The nine relocated modules no longer live in @agent-device/contracts, so its exports map drops their subpaths (118 -> 109) and scripts/layering/contracts-exports.snapshot.json is regenerated from the manifest, which is what R11 package-boundaries diffs the live surface against. The two resolution assertions naming the retired snapshot-presentation and snapshot-timeout-evidence subpaths go with them; interaction, snapshot and react-native-overlay still cover both the direct-module and facade shapes the assertions were there to prove. The property tests that needed fast-check left with snapshot-presentation and replay-divergence, so the dependency moves too: contracts drops it and platform-android declares it, as fallow's unused-devDependency check reports. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdXHhx9NkfH1PT4XjYe7tE
1 parent c23a9ba commit c83c1bb

4 files changed

Lines changed: 0 additions & 68 deletions

File tree

packages/contracts/package.json

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"dependencies": {
88
"@agent-device/kernel": "workspace:*"
99
},
10-
"devDependencies": {
11-
"fast-check": "^4.9.0"
12-
},
1310
"exports": {
1411
"./alert-contract": {
1512
"types": "./src/alert-contract.ts",
@@ -23,10 +20,6 @@
2320
"types": "./src/android-clipboard-support.ts",
2421
"default": "./src/android-clipboard-support.ts"
2522
},
26-
"./android-helper-artifacts": {
27-
"types": "./src/android-helper-artifacts.ts",
28-
"default": "./src/android-helper-artifacts.ts"
29-
},
3023
"./android-input-ownership": {
3124
"types": "./src/android-input-ownership.ts",
3225
"default": "./src/android-input-ownership.ts"
@@ -43,10 +36,6 @@
4336
"types": "./src/android-system-chrome.ts",
4437
"default": "./src/android-system-chrome.ts"
4538
},
46-
"./android-touch-plan": {
47-
"types": "./src/android-touch-plan.ts",
48-
"default": "./src/android-touch-plan.ts"
49-
},
5039
"./app-deployment-runtime": {
5140
"types": "./src/app-deployment-runtime.ts",
5241
"default": "./src/app-deployment-runtime.ts"
@@ -75,10 +64,6 @@
7564
"types": "./src/app-switcher-runtime.ts",
7665
"default": "./src/app-switcher-runtime.ts"
7766
},
78-
"./apple-multitouch-support": {
79-
"types": "./src/apple-multitouch-support.ts",
80-
"default": "./src/apple-multitouch-support.ts"
81-
},
8267
"./apple-runner-request": {
8368
"types": "./src/apple-runner-request.ts",
8469
"default": "./src/apple-runner-request.ts"
@@ -167,10 +152,6 @@
167152
"types": "./src/daemon-http.ts",
168153
"default": "./src/daemon-http.ts"
169154
},
170-
"./daemon-owner-cleanup": {
171-
"types": "./src/daemon-owner-cleanup.ts",
172-
"default": "./src/daemon-owner-cleanup.ts"
173-
},
174155
"./device": {
175156
"types": "./src/facades/device.ts",
176157
"default": "./src/facades/device.ts"
@@ -239,10 +220,6 @@
239220
"types": "./src/interaction.ts",
240221
"default": "./src/interaction.ts"
241222
},
242-
"./interaction-error": {
243-
"types": "./src/interaction-error.ts",
244-
"default": "./src/interaction-error.ts"
245-
},
246223
"./is-predicate": {
247224
"types": "./src/is-predicate.ts",
248225
"default": "./src/is-predicate.ts"
@@ -323,10 +300,6 @@
323300
"types": "./src/perf-runtime-operation-builder.ts",
324301
"default": "./src/perf-runtime-operation-builder.ts"
325302
},
326-
"./perf-runtime-plan": {
327-
"types": "./src/perf-runtime-plan.ts",
328-
"default": "./src/perf-runtime-plan.ts"
329-
},
330303
"./platform-module": {
331304
"types": "./src/platform-module.ts",
332305
"default": "./src/platform-module.ts"
@@ -339,10 +312,6 @@
339312
"types": "./src/platform-providers.ts",
340313
"default": "./src/platform-providers.ts"
341314
},
342-
"./platform-resource-cleanup": {
343-
"types": "./src/platform-resource-cleanup.ts",
344-
"default": "./src/platform-resource-cleanup.ts"
345-
},
346315
"./platform-runtime": {
347316
"types": "./src/platform-runtime.ts",
348317
"default": "./src/platform-runtime.ts"
@@ -435,10 +404,6 @@
435404
"types": "./src/facades/snapshot.ts",
436405
"default": "./src/facades/snapshot.ts"
437406
},
438-
"./snapshot-presentation": {
439-
"types": "./src/snapshot-presentation.ts",
440-
"default": "./src/snapshot-presentation.ts"
441-
},
442407
"./snapshot-runtime": {
443408
"types": "./src/snapshot-runtime.ts",
444409
"default": "./src/snapshot-runtime.ts"
@@ -447,10 +412,6 @@
447412
"types": "./src/snapshot-scope.ts",
448413
"default": "./src/snapshot-scope.ts"
449414
},
450-
"./snapshot-timeout-evidence": {
451-
"types": "./src/snapshot-timeout-evidence.ts",
452-
"default": "./src/snapshot-timeout-evidence.ts"
453-
},
454415
"./startup-recovery-fence": {
455416
"types": "./src/startup-recovery-fence.ts",
456417
"default": "./src/startup-recovery-fence.ts"

pnpm-lock.yaml

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/layering/contracts-exports.snapshot.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
"@agent-device/contracts/alert-contract",
33
"@agent-device/contracts/alert-runtime",
44
"@agent-device/contracts/android-clipboard-support",
5-
"@agent-device/contracts/android-helper-artifacts",
65
"@agent-device/contracts/android-input-ownership",
76
"@agent-device/contracts/android-observation",
87
"@agent-device/contracts/android-snapshot-quality",
98
"@agent-device/contracts/android-system-chrome",
10-
"@agent-device/contracts/android-touch-plan",
119
"@agent-device/contracts/app-deployment-runtime",
1210
"@agent-device/contracts/app-deployment-runtime-plan",
1311
"@agent-device/contracts/app-event-runtime",
1412
"@agent-device/contracts/app-inventory-runtime",
1513
"@agent-device/contracts/app-log-runtime",
1614
"@agent-device/contracts/app-state-runtime",
1715
"@agent-device/contracts/app-switcher-runtime",
18-
"@agent-device/contracts/apple-multitouch-support",
1916
"@agent-device/contracts/apple-runner-request",
2017
"@agent-device/contracts/application-lifecycle-interaction",
2118
"@agent-device/contracts/application-lifecycle-runtime",
@@ -38,7 +35,6 @@
3835
"@agent-device/contracts/command",
3936
"@agent-device/contracts/command-platform-execution",
4037
"@agent-device/contracts/daemon-http",
41-
"@agent-device/contracts/daemon-owner-cleanup",
4238
"@agent-device/contracts/device",
4339
"@agent-device/contracts/device-readiness-runtime",
4440
"@agent-device/contracts/device-shutdown-runtime",
@@ -56,7 +52,6 @@
5652
"@agent-device/contracts/home-runtime",
5753
"@agent-device/contracts/host-diagnostics",
5854
"@agent-device/contracts/interaction",
59-
"@agent-device/contracts/interaction-error",
6055
"@agent-device/contracts/interaction-guarantees",
6156
"@agent-device/contracts/interactor-operation-catalog",
6257
"@agent-device/contracts/interactor-types",
@@ -77,11 +72,9 @@
7772
"@agent-device/contracts/perf-runtime",
7873
"@agent-device/contracts/perf-runtime-host",
7974
"@agent-device/contracts/perf-runtime-operation-builder",
80-
"@agent-device/contracts/perf-runtime-plan",
8175
"@agent-device/contracts/platform-module",
8276
"@agent-device/contracts/platform-plugin",
8377
"@agent-device/contracts/platform-providers",
84-
"@agent-device/contracts/platform-resource-cleanup",
8578
"@agent-device/contracts/platform-runtime",
8679
"@agent-device/contracts/platform-runtime-host",
8780
"@agent-device/contracts/platform-runtime-operations",
@@ -105,10 +98,8 @@
10598
"@agent-device/contracts/settings",
10699
"@agent-device/contracts/settings-runtime",
107100
"@agent-device/contracts/snapshot",
108-
"@agent-device/contracts/snapshot-presentation",
109101
"@agent-device/contracts/snapshot-runtime",
110102
"@agent-device/contracts/snapshot-scope",
111-
"@agent-device/contracts/snapshot-timeout-evidence",
112103
"@agent-device/contracts/startup-recovery-fence",
113104
"@agent-device/contracts/touch-runtime",
114105
"@agent-device/contracts/tv-remote",

scripts/layering/package-boundaries.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -778,28 +778,12 @@ test('Node resolution enforces the exports map at runtime', () => {
778778
contractsSnapshotResolved.endsWith('packages/contracts/src/facades/snapshot.ts'),
779779
contractsSnapshotResolved,
780780
);
781-
const contractsSnapshotPresentationResolved = import.meta
782-
.resolve('@agent-device/contracts/snapshot-presentation');
783-
assert.ok(
784-
contractsSnapshotPresentationResolved.endsWith(
785-
'packages/contracts/src/snapshot-presentation.ts',
786-
),
787-
contractsSnapshotPresentationResolved,
788-
);
789781
const contractsReactNativeOverlayResolved = import.meta
790782
.resolve('@agent-device/contracts/react-native-overlay');
791783
assert.ok(
792784
contractsReactNativeOverlayResolved.endsWith('packages/contracts/src/react-native-overlay.ts'),
793785
contractsReactNativeOverlayResolved,
794786
);
795-
const contractsSnapshotTimeoutEvidenceResolved = import.meta
796-
.resolve('@agent-device/contracts/snapshot-timeout-evidence');
797-
assert.ok(
798-
contractsSnapshotTimeoutEvidenceResolved.endsWith(
799-
'packages/contracts/src/snapshot-timeout-evidence.ts',
800-
),
801-
contractsSnapshotTimeoutEvidenceResolved,
802-
);
803787
const providerWebDriverResolved = import.meta.resolve('@agent-device/provider-webdriver');
804788
assert.ok(
805789
providerWebDriverResolved.endsWith('packages/provider-webdriver/src/index.ts'),

0 commit comments

Comments
 (0)