Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"dependencies": {
"@agent-device/kernel": "workspace:*"
},
"devDependencies": {
"fast-check": "^4.9.0"
},
"exports": {
"./alert-contract": {
"types": "./src/alert-contract.ts",
Expand All @@ -23,10 +20,6 @@
"types": "./src/android-clipboard-support.ts",
"default": "./src/android-clipboard-support.ts"
},
"./android-helper-artifacts": {
"types": "./src/android-helper-artifacts.ts",
"default": "./src/android-helper-artifacts.ts"
},
"./android-input-ownership": {
"types": "./src/android-input-ownership.ts",
"default": "./src/android-input-ownership.ts"
Expand All @@ -43,10 +36,6 @@
"types": "./src/android-system-chrome.ts",
"default": "./src/android-system-chrome.ts"
},
"./android-touch-plan": {
"types": "./src/android-touch-plan.ts",
"default": "./src/android-touch-plan.ts"
},
"./app-deployment-runtime": {
"types": "./src/app-deployment-runtime.ts",
"default": "./src/app-deployment-runtime.ts"
Expand Down Expand Up @@ -75,10 +64,6 @@
"types": "./src/app-switcher-runtime.ts",
"default": "./src/app-switcher-runtime.ts"
},
"./apple-multitouch-support": {
"types": "./src/apple-multitouch-support.ts",
"default": "./src/apple-multitouch-support.ts"
},
"./apple-runner-request": {
"types": "./src/apple-runner-request.ts",
"default": "./src/apple-runner-request.ts"
Expand Down Expand Up @@ -167,10 +152,6 @@
"types": "./src/daemon-http.ts",
"default": "./src/daemon-http.ts"
},
"./daemon-owner-cleanup": {
"types": "./src/daemon-owner-cleanup.ts",
"default": "./src/daemon-owner-cleanup.ts"
},
"./device": {
"types": "./src/facades/device.ts",
"default": "./src/facades/device.ts"
Expand Down Expand Up @@ -239,10 +220,6 @@
"types": "./src/interaction.ts",
"default": "./src/interaction.ts"
},
"./interaction-error": {
"types": "./src/interaction-error.ts",
"default": "./src/interaction-error.ts"
},
"./is-predicate": {
"types": "./src/is-predicate.ts",
"default": "./src/is-predicate.ts"
Expand Down Expand Up @@ -323,10 +300,6 @@
"types": "./src/perf-runtime-operation-builder.ts",
"default": "./src/perf-runtime-operation-builder.ts"
},
"./perf-runtime-plan": {
"types": "./src/perf-runtime-plan.ts",
"default": "./src/perf-runtime-plan.ts"
},
"./platform-module": {
"types": "./src/platform-module.ts",
"default": "./src/platform-module.ts"
Expand All @@ -339,10 +312,6 @@
"types": "./src/platform-providers.ts",
"default": "./src/platform-providers.ts"
},
"./platform-resource-cleanup": {
"types": "./src/platform-resource-cleanup.ts",
"default": "./src/platform-resource-cleanup.ts"
},
"./platform-runtime": {
"types": "./src/platform-runtime.ts",
"default": "./src/platform-runtime.ts"
Expand Down Expand Up @@ -435,10 +404,6 @@
"types": "./src/facades/snapshot.ts",
"default": "./src/facades/snapshot.ts"
},
"./snapshot-presentation": {
"types": "./src/snapshot-presentation.ts",
"default": "./src/snapshot-presentation.ts"
},
"./snapshot-runtime": {
"types": "./src/snapshot-runtime.ts",
"default": "./src/snapshot-runtime.ts"
Expand All @@ -447,10 +412,6 @@
"types": "./src/snapshot-scope.ts",
"default": "./src/snapshot-scope.ts"
},
"./snapshot-timeout-evidence": {
"types": "./src/snapshot-timeout-evidence.ts",
"default": "./src/snapshot-timeout-evidence.ts"
},
"./startup-recovery-fence": {
"types": "./src/startup-recovery-fence.ts",
"default": "./src/startup-recovery-fence.ts"
Expand Down
18 changes: 0 additions & 18 deletions packages/contracts/src/apple-os-display-names.ts

This file was deleted.

16 changes: 0 additions & 16 deletions packages/contracts/src/facades/divergence.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
export {
REPLAY_DIVERGENCE_DEFAULT_REF_LIMIT,
REPLAY_DIVERGENCE_DIGEST_REF_LIMIT,
REPLAY_DIVERGENCE_LEVEL_BYTE_LIMITS,
REPLAY_DIVERGENCE_SUGGESTION_LIMIT,
applyReplayDivergenceLevelCaps,
boundReplayDivergence,
createReplayDivergenceSanitizer,
formatReplayDivergenceReport,
measureReplayDivergenceBytes,
readReplayDivergenceResume,
sanitizeReplayDivergenceField,
scrubReplayVarValues,
truncateUtf8Field,
} from '../replay-divergence.ts';
export type {
ReplayDivergence,
ReplayDivergenceCause,
Expand All @@ -30,5 +15,4 @@ export type {
ReplayDivergenceTargetCandidate,
ReplayDivergenceTargetIdentity,
ReplayRepairHint,
ReplayVarScrubEntry,
} from '../replay-divergence.ts';
18 changes: 17 additions & 1 deletion packages/contracts/src/gesture-admission.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
import {
isApplePlatform,
resolveDeviceAppleOs,
type AppleOS,
type DeviceInfo,
} from '@agent-device/kernel/device';
import { APPLE_OS_DISPLAY_NAMES } from './apple-os-display-names.ts';
import type { GestureCommandInput } from './gesture-plan-types.ts';
import type { GestureRuntimeTier } from './gesture-tier.ts';

/**
* How each Apple OS names itself in agent-facing prose.
*
* Owned here because every subject that needs the wording is a gesture refusal: the refusal
* subject below and the Apple adapter's own check (`packages/platform-apple/src/
* multitouch-support.ts`). One table keeps both refusals spelling an OS the same way.
*/
export const APPLE_OS_DISPLAY_NAMES: Record<AppleOS, string> = {
ios: 'iOS',
ipados: 'iPadOS',
tvos: 'tvOS',
watchos: 'watchOS',
visionos: 'visionOS',
macos: 'macOS',
};

/** The hint an owner states when it cannot preserve a target-authored drag's timing. */
export const TARGET_AUTHORED_DRAG_UNSUPPORTED_HINT =
'Target-authored drag requires an adapter that preserves source hold, timed movement, and destination hold; it is supported on Android touch devices and iOS/iPadOS.';
Expand Down
Loading
Loading