Skip to content

Commit 921a2cb

Browse files
authored
feat(#2682): disclose the target re-activation on every capture-consuming command (#2693)
* feat(daemon): disclose a foreground repair on every capture-consuming command The runner now says when it had to re-activate the session app (#2682, PR1). This carries that fact through the daemon so the command that paid the cost reports it: - `IosTargetActivation` moves to the kernel, where `SnapshotState` can carry it, and the capture annotations projection publishes it beside `warnings`. - `src/daemon/system-surface-disclosure.ts` becomes `capture-disclosure.ts`: the surface disclosure plus `withTargetActivationDisclosure`, always appended, never replacing an earlier warning. - Selector, wait, find, snapshot, and interaction routes disclose against the capture *they* consumed. A route with no capture of its own stays silent, so an older tree's fact is never attributed to a later command. - No response level may drop it: `--level digest` keeps `targetActivation`. - `appstate` on Apple now refuses honestly and names the per-command disclosure; help and `docs/commands.md` say the same thing. * fix(#2682): disclose only the repair a request paid for Adversarial review findings on #2693: - A cache hit is not a repair. Selector reads may answer from the tree an earlier command stored (`reusableLastSnapshot`, `reusableSessionSnapshot`), and stamping the disclosure off that consumed tree told a command "the session app was not foreground when THIS command arrived" when it never looked. The repair now travels on its own per-request proof, filled only by a capture the request actually took, first fact wins; the #2438 surface disclosure keeps reading the consumed tree, which is what the response actually describes. - The snapshot route read the stored snapshot unconditionally, including on a failure response. It now binds the fact to its own capture inside `execute`, so a snapshot that failed before capturing inherits nothing. - Docs said a command that consumed no capture "stays silent", which reads as "no repair happened". That is ADR 0012's category wearing a disclaimer: the runner may well have activated and the interaction projection drops the stamp. The docs now say silence proves nothing and point at #2694. - `sessions.md` still claimed iOS `appstate` worked; the appstate pointer, the `bundle_changed` definition, and the missing `missing_after_wait` / `interaction_foreground_guard` reasons are fixed, and the identity rename lands here too (`otherActiveApplicationPid`). * fix(#2682): keep the disclosure wiring inside the complexity thresholds The CI Fallow audit named two functions this PR pushed over: - `dispatchInteractionCommand` carried nine commands plus a default. The touch cases stay exactly as ADR 0011's structural guard requires — one delegation each — and the five commands that aim no gesture at a captured target move to their own dispatch, which is a different question anyway. - `snapshotView` had grown one conditional spread per optional signal. The signals it must carry are now a declared list, which is what it always was: the digest drops the tree and keeps the fields that say what the tree means. * fix(#2682): record the repair once, at the capture that paid for it Three review findings on who may say what. The dedupe gate now sits on the carrier, not on `response.ok`: a wrapper skips a sentence the response already carries, so a failing `get text` under a repairing capture names the repair once instead of once per route it passes through. The proof moves into `runCapture`, so a sparse re-capture that discards the first tree cannot discard what that first tree paid for, and `find`'s sparse exit — previously its only exit with no disclosure at all — routes through the same wrapper. `snapshot` stops reading the stored snapshot for its disclosure: a snapshot refused before capturing was crediting itself with the previous command's repair and surface. `isIosTargetActivationReason` moves beside the declarations in kernel, where the child branch owns them. * fix(#2682): print the repair on every command that spent a capture `snapshot` rendered `data.warnings`; `press`, `wait`, `get`, `is` and `find` rendered only the singular `warning` field, so the same repaired capture read aloud on one command and silently on the others. The settle wrapper and the selector family now share one renderer, which skips a warning its text already holds — two wrappers can wrap one response, and the second must not repeat the first. `get --format attrs`/`text` keep their parseable output untouched. Also: the Apple `appstate` refusal still promised it "reads the active session state" after commands.md started saying iOS `appstate` is unavailable, and a digest carry-set test now pins that `targetActivation` survives collapse. * fix(#2682): let the dispatcher decide where a warning lands `getCliOutput` appended the activation warning only when `format` was neither `text` nor `attrs`, and `get`'s format is a required two-value field on every surface — so that branch was unreachable, its test passed against an `input: {}` no caller can build, and a successful `get text` after a repair printed the value alone. Four per-formatter wrappers and a settle wrapper said the same thing in four other ways, which is how one rule ended up with four exceptions. `formatCliOutput` now renders warnings once for every command, and the only opt-out is a declared `parseableOutput` trait on the command's descriptor: `get`, `find`, `clipboard` and `record` print their stdout value verbatim and warn on stderr, so `value=$(agent-device get text …)` still captures exactly the value. Formatters lost their carve-outs, the settle wrapper kept only its diff, and the generic path that `type`, `focus`, `swipe` and `gesture` answer through routes the same way — those four had no formatter and printed nothing at all. `cli-output.test.ts` pins the set and asserts the rule against every formatter's real payload shape; MCP merges the stderr half back in, because a model has one stream to read. * refactor(#2682): one activation proof recorder, one home for each fact Three capture paths had hand-copied the same first-wins guard, which is three places for the rule to drift — `recordActivationProof` now owns it and returns the capture, so each site is one call. `@agent-device/contracts/ios-target-activation` was re-exporting five kernel symbols while also declaring the sentence builder, leaving three importers a choice of two spellings for the same type. The module now owns only what the fact says to an agent; the decoder, the capture projection, the reason-predicate test and the live lane import the declarations from `@agent-device/kernel/snapshot`, which is where #2682 put them. The predicate's test moved with it, and gained the compile-time half of its claim: `runningForeground` is not a declared prior state, so a disclosure could not name the repair's outcome even by accident.
1 parent a0ddbc5 commit 921a2cb

58 files changed

Lines changed: 1920 additions & 260 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.device-evidence/CHECKLIST.md‎

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,31 @@ actually called. Assert the pair on the same device run:
7777
disclosure even though the runner may have re-activated the app to serve them. Treat a silent
7878
interaction as "unknown", never as "no repair". Follow-up: callstack/agent-device#2694.
7979

80+
## PR2 simulator lane — daemon disclosure (apex-2682-proto, iOS 26.2)
81+
82+
Driven with `bin/agent-device.mjs` after `pnpm build && pnpm clean:daemon`, session `apex2682-pr3`,
83+
off-app handoff via `xcrun simctl openurl <UDID> https://example.com` before each command. Every
84+
command below re-activated the session app, and each answered with `targetActivation` plus the
85+
appended warning:
86+
87+
| Command | Result |
88+
| --- | --- |
89+
| `snapshot -i` | warning first in `warnings`, ahead of the AX-backend warning; `targetActivation` carried |
90+
| `snapshot -i --level digest` | `targetActivation` survives the digest projection |
91+
| `find "Tab Bar" --first` | disclosed on the matched response |
92+
| `press 'label="INFO"'` | disclosed on the interaction response |
93+
| `wait 'label="INFO"' 8000` | disclosed on the satisfied response |
94+
95+
`otherActiveApplicationPid` on the simulator was the Safari process, consistent across commands (pid 33878).
96+
97+
### Proof the review asked for on this lane
98+
99+
The false-attribution class is covered by unit tests rather than a device run, because the device
100+
cannot show a cache hit on command: `src/daemon/__tests__/capture-disclosure-target-activation.test.ts`
101+
pins that a cache-reused tree discloses nothing, and
102+
`src/daemon/interaction/internal/__tests__/interaction-target-activation-disclosure.test.ts` pins that
103+
a press which consumed no capture is not disclosed against an older tree.
104+
80105
## Why the live activation lane is manual
81106

82107
`test/integration/smoke-ios-target-activation.test.ts` is env-gated and deliberately absent from the
@@ -94,7 +119,9 @@ Manual evidence stands in for it, and both are reproducible:
94119
arrived (prior state runningBackground), so the runner activated it before answering (reason
95120
stale_target). Any capture taken earlier in this session described the only app other than the
96121
session app with an active accessibility session (pid 33878), not the session app. Re-capture now
97-
that the session app answers, or drive the other app in its own session.` — and the following capture
98-
carries no such line. On this head that sentence is the whole disclosure: the typed
99-
`data.targetActivation` field beside it is PR2's daemon seam.
100-
- the physical device sequence below, which the coordinator runs.
122+
that the session app answers, or drive the other app in its own session.` — and, on this head, the
123+
typed fact beside it as `data.targetActivation`:
124+
`{"reason":"stale_target","priorState":"runningBackground","otherActiveApplicationPid":33878}`.
125+
PR1 alone carries the sentence only; the typed field is this PR's daemon seam. Either way the
126+
following capture reports neither.
127+
- the physical device sequence in this file, which the coordinator runs.

‎packages/capture-kit/src/snapshot-state.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
attachRefs,
99
buildSnapshotPresentationKey,
1010
snapshotPresentationOptionsFromFlags,
11+
type IosTargetActivation,
1112
type RawSnapshotNode,
1213
type SnapshotBackend,
1314
type SnapshotCaptureProvenance,
@@ -46,6 +47,8 @@ export function buildSnapshotState(
4647
quality?: unknown;
4748
comparisonIdentity?: IosSnapshotComparisonIdentity;
4849
systemSurface?: IosSystemSurfaceProvenance;
50+
/** Foreground repair this capture's own command performed (#2682). */
51+
targetActivation?: IosTargetActivation;
4952
/** The keyboard band the producer measured, carried to the state the tap guards read (#2660). */
5053
keyboard?: SnapshotKeyboardBandFact;
5154
} & SnapshotCaptureProvenance,
@@ -84,6 +87,7 @@ export function buildSnapshotState(
8487
? { comparisonKey: iosSnapshotComparisonIdentityKey(data.comparisonIdentity) }
8588
: {}),
8689
...(data.systemSurface ? { iosSystemSurfaceBundleId: data.systemSurface.bundleId } : {}),
90+
...(data.targetActivation ? { targetActivation: data.targetActivation } : {}),
8791
...(data.keyboard ? { keyboard: data.keyboard } : {}),
8892
presentationKey: buildSnapshotPresentationKey(snapshotPresentationOptionsFromFlags(flags)),
8993
// Only broad Android snapshots become freshness baselines. If the user asked for a scoped

‎packages/contracts/src/interactor-types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { BackMode } from './back-mode.ts';
22
import type { IosSystemSurfaceProvenance } from './ios-system-surface.ts';
3-
import type { IosTargetActivation } from './ios-target-activation.ts';
43
import type { DeviceRotation } from './device-rotation.ts';
54
import type { ScrollDirection } from './scroll-gesture.ts';
65
import type { ScrollExecutionOptions } from './scroll-command.ts';
@@ -19,6 +18,7 @@ import type {
1918
RawSnapshotNode,
2019
Point,
2120
Rect,
21+
IosTargetActivation,
2222
SnapshotKeyboardBandFact,
2323
SnapshotOptions as BaseSnapshotOptions,
2424
SnapshotProvenance,

‎packages/contracts/src/ios-target-activation.test.ts‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import assert from 'node:assert/strict';
22
import { test } from 'vitest';
3-
import {
4-
IOS_TARGET_ACTIVATION_REASONS,
5-
isIosTargetActivationReason,
6-
iosTargetActivationDisclosure,
7-
} from './ios-target-activation.ts';
3+
import { iosTargetActivationDisclosure } from './ios-target-activation.ts';
84

95
test('target activation disclosure names the repair and both agent routes', () => {
106
const disclosure = iosTargetActivationDisclosure({
@@ -44,16 +40,3 @@ test('target activation disclosure never invents a pid the runner did not isolat
4440
assert.match(disclosure, /no single other app with an active accessibility session/);
4541
assert.equal(disclosure.includes('pid'), false, disclosure);
4642
});
47-
48-
/**
49-
* The decoder's only gate on the stamped reason, and the live lane's check that a response named a
50-
* reason the runner can actually stamp. Both read this predicate instead of casting, so it is what
51-
* keeps an undeclared reason out of a disclosure.
52-
*/
53-
test('reason predicate accepts exactly the declared reasons', () => {
54-
for (const reason of IOS_TARGET_ACTIVATION_REASONS) {
55-
assert.equal(isIosTargetActivationReason(reason), true, reason);
56-
}
57-
assert.equal(isIosTargetActivationReason('already_foreground'), false);
58-
assert.equal(isIosTargetActivationReason(undefined), false);
59-
});

‎packages/contracts/src/ios-target-activation.ts‎

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,18 @@
11
/**
22
* The Apple runner repairs foreground loss by activating the session app before answering a
33
* non-lifecycle command (#2682). That decides which app the answer describes, so the runner stamps
4-
* the repair on the response of the command that paid for it and this module owns what it means to
5-
* an agent. `@agent-device/platform-apple`'s runner reader is the single decoder of the wire shape;
6-
* nothing else parses it.
4+
* the repair on the response of the command that paid for it. `@agent-device/kernel/snapshot` owns
5+
* the fact — it travels on a captured tree's state — and `@agent-device/platform-apple`'s runner
6+
* reader is the single decoder of the wire shape. This module owns only what the fact says to an
7+
* agent, so the sentence cannot drift between the capture path and the daemon routes.
78
*
89
* The pid it carries is a liveness claim, not a foreground owner: the private AX client the runner
910
* already uses for process matching exposes no ordering of `activeApplications`, resolves pids only,
1011
* and the escalation that would name an arbitrary app (`proc_pidpath`) has no iOS SDK declaration and
1112
* no physical-device evidence. So the fact states which other application was alive and leaves the
1213
* reader to conclude no more than that.
1314
*/
14-
15-
/** Reasons the runner can stamp; mirrors its `activateTarget(bundleId:reason:)` call sites. */
16-
export const IOS_TARGET_ACTIVATION_REASONS = [
17-
'bundle_changed',
18-
'stale_target',
19-
'missing_after_wait',
20-
'interaction_foreground_guard',
21-
] as const;
22-
23-
export type IosTargetActivationReason = (typeof IOS_TARGET_ACTIVATION_REASONS)[number];
24-
25-
/** Whether `value` is a reason the runner can stamp; the only gate consumers apply to the field. */
26-
export function isIosTargetActivationReason(value: unknown): value is IosTargetActivationReason {
27-
return (
28-
typeof value === 'string' &&
29-
(IOS_TARGET_ACTIVATION_REASONS as readonly string[]).includes(value)
30-
);
31-
}
32-
33-
/**
34-
* States an activation could have been needed for. `runningForeground` is excluded because the
35-
* runner skips `activate()` when the app is already foreground and never stamps a fact there.
36-
*/
37-
export const IOS_TARGET_ACTIVATION_PRIOR_STATES = [
38-
'unknown',
39-
'notRunning',
40-
'runningBackground',
41-
'runningBackgroundSuspended',
42-
] as const;
43-
44-
export type IosTargetActivationPriorState = (typeof IOS_TARGET_ACTIVATION_PRIOR_STATES)[number];
45-
46-
/**
47-
* Foreground repair performed while serving one command. `priorState` is the session app's state
48-
* BEFORE the runner activated it — read before `activate()` ran — so the fact describes what was
49-
* repaired rather than what the repair produced, and it can never report `runningForeground`.
50-
* `otherActiveApplicationPid` is present only when exactly one application other than the session app
51-
* held an active accessibility session at that moment: proof that it was alive, not proof that it
52-
* owned the screen.
53-
*/
54-
export type IosTargetActivation = Readonly<{
55-
reason: IosTargetActivationReason;
56-
priorState: IosTargetActivationPriorState;
57-
otherActiveApplicationPid?: number;
58-
}>;
15+
import type { IosTargetActivation } from '@agent-device/kernel/snapshot';
5916

6017
/**
6118
* What the earlier captures showed. Naming the live pid is a pointer to the only candidate, never a

‎packages/contracts/src/snapshot-capture-annotations.ts‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SnapshotQualityVerdict } from '@agent-device/kernel/snapshot';
1+
import type { IosTargetActivation, SnapshotQualityVerdict } from '@agent-device/kernel/snapshot';
22
import type { AndroidSnapshotBackendMetadata } from './snapshot-types.ts';
33

44
export type SnapshotCaptureAnalysis = {
@@ -19,11 +19,13 @@ export type SnapshotCaptureAnnotations = {
1919
freshness?: SnapshotCaptureFreshness;
2020
quality?: SnapshotQualityVerdict;
2121
warnings?: string[];
22+
/** The Apple runner re-activated the session app while serving this capture (#2682). */
23+
targetActivation?: IosTargetActivation;
2224
};
2325

2426
export type PublicSnapshotCaptureAnnotations = Pick<
2527
SnapshotCaptureAnnotations,
26-
'androidSnapshot' | 'warnings'
28+
'androidSnapshot' | 'warnings' | 'targetActivation'
2729
> & {
2830
snapshotQuality?: SnapshotQualityVerdict;
2931
};
@@ -38,6 +40,7 @@ export function snapshotCaptureAnnotationsFrom(
3840
...(source.freshness ? { freshness: source.freshness } : {}),
3941
...(quality ? { quality } : {}),
4042
...(source.warnings ? { warnings: source.warnings } : {}),
43+
...(source.targetActivation ? { targetActivation: source.targetActivation } : {}),
4144
};
4245
}
4346

@@ -50,6 +53,7 @@ export function publicSnapshotCaptureAnnotations(
5053
...(annotations.warnings && annotations.warnings.length > 0
5154
? { warnings: annotations.warnings }
5255
: {}),
56+
...(annotations.targetActivation ? { targetActivation: annotations.targetActivation } : {}),
5357
};
5458
}
5559

@@ -64,15 +68,26 @@ export function readSerializedSnapshotCaptureAnnotations(
6468
? data.warnings.filter((entry): entry is string => typeof entry === 'string')
6569
: undefined;
6670
const quality = readSnapshotQualityVerdict(data.snapshotQuality);
71+
const targetActivation = readTargetActivation(data.targetActivation);
6772
return publicSnapshotCaptureAnnotations({
6873
...(androidSnapshot
6974
? { androidSnapshot: androidSnapshot as AndroidSnapshotBackendMetadata }
7075
: {}),
7176
...(quality ? { quality } : {}),
7277
...(warnings ? { warnings } : {}),
78+
...(targetActivation ? { targetActivation } : {}),
7379
});
7480
}
7581

82+
/** Re-read of a fact this module projected; the declared keys are the only ones it publishes. */
83+
function readTargetActivation(value: unknown): IosTargetActivation | undefined {
84+
if (typeof value !== 'object' || value === null || Array.isArray(value)) return undefined;
85+
const raw = value as Record<string, unknown>;
86+
return typeof raw.reason === 'string' && typeof raw.priorState === 'string'
87+
? (raw as unknown as IosTargetActivation)
88+
: undefined;
89+
}
90+
7691
function readSnapshotQualityVerdict(value: unknown): SnapshotQualityVerdict | undefined {
7792
if (!value || typeof value !== 'object') return undefined;
7893
const raw = value as Record<string, unknown>;
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import assert from 'node:assert/strict';
2+
import { test } from 'vitest';
3+
import {
4+
IOS_TARGET_ACTIVATION_PRIOR_STATES,
5+
IOS_TARGET_ACTIVATION_REASONS,
6+
isIosTargetActivationReason,
7+
type IosTargetActivationPriorState,
8+
} from './snapshot.ts';
9+
10+
/**
11+
* The decoder's only gate on the stamped reason, and the live lane's check that a response named a
12+
* reason the runner can actually stamp. Both read this predicate instead of casting, so it is what
13+
* keeps an undeclared reason out of a disclosure.
14+
*/
15+
test('reason predicate accepts exactly the declared reasons', () => {
16+
for (const reason of IOS_TARGET_ACTIVATION_REASONS) {
17+
assert.equal(isIosTargetActivationReason(reason), true, reason);
18+
}
19+
assert.equal(isIosTargetActivationReason('already_foreground'), false);
20+
assert.equal(isIosTargetActivationReason(undefined), false);
21+
});
22+
23+
/**
24+
* The declared prior states are the states the runner can find the app in WHEN IT ACTIVATES.
25+
* `runningForeground` is absent on purpose: a call that skipped activation has no repair to
26+
* disclose, so a disclosure naming it would claim an outcome the repair produced.
27+
*/
28+
test('declared prior states exclude the state that needs no repair', () => {
29+
// @ts-expect-error a call that found the app in the foreground performed no repair to disclose
30+
const needsNoRepair: IosTargetActivationPriorState = 'runningForeground';
31+
void needsNoRepair;
32+
assert.deepEqual([...IOS_TARGET_ACTIVATION_PRIOR_STATES].sort(), [
33+
'notRunning',
34+
'runningBackground',
35+
'runningBackgroundSuspended',
36+
'unknown',
37+
]);
38+
});

‎packages/kernel/src/snapshot.ts‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,55 @@ export function usesMobileSnapshotPresentation(backend: SnapshotBackend | undefi
415415
);
416416
}
417417

418+
/**
419+
* Reasons the Apple runner can stamp when serving a command required re-activating the session app
420+
* (#2682). Mirrors its `activateTarget(bundleId:reason:)` call sites.
421+
*/
422+
export const IOS_TARGET_ACTIVATION_REASONS = [
423+
'bundle_changed',
424+
'stale_target',
425+
'missing_after_wait',
426+
'interaction_foreground_guard',
427+
] as const;
428+
429+
export type IosTargetActivationReason = (typeof IOS_TARGET_ACTIVATION_REASONS)[number];
430+
431+
/** Whether `value` is a reason the runner can stamp; the only gate consumers apply to the field. */
432+
export function isIosTargetActivationReason(value: unknown): value is IosTargetActivationReason {
433+
return (
434+
typeof value === 'string' &&
435+
(IOS_TARGET_ACTIVATION_REASONS as readonly string[]).includes(value)
436+
);
437+
}
438+
439+
/**
440+
* States an activation could have been needed for, in `XCApplicationState` raw order.
441+
* `runningForeground` is excluded because the runner skips `activate()` when the app is already
442+
* foreground and never stamps a fact there.
443+
*/
444+
export const IOS_TARGET_ACTIVATION_PRIOR_STATES = [
445+
'unknown',
446+
'notRunning',
447+
'runningBackground',
448+
'runningBackgroundSuspended',
449+
] as const;
450+
451+
export type IosTargetActivationPriorState = (typeof IOS_TARGET_ACTIVATION_PRIOR_STATES)[number];
452+
453+
/**
454+
* Foreground repair the Apple runner performed while serving one command (#2682). `priorState` is
455+
* the session app's state BEFORE the runner activated it, so the fact describes what was repaired
456+
* rather than what the repair produced. `otherActiveApplicationPid` is present only when exactly one
457+
* application other than the session app held an active accessibility session at that moment: a
458+
* liveness claim and nothing more, since the private AX client reports no ordering of
459+
* `activeApplications`, resolves pids only, and answers no bundle id for an arbitrary app.
460+
*/
461+
export type IosTargetActivation = Readonly<{
462+
reason: IosTargetActivationReason;
463+
priorState: IosTargetActivationPriorState;
464+
otherActiveApplicationPid?: number;
465+
}>;
466+
418467
export type SnapshotState = {
419468
nodes: SnapshotNode[];
420469
createdAt: number;
@@ -443,6 +492,12 @@ export type SnapshotState = {
443492
* needs no geometry to be plausible (#2660). Absent means the guard measures the tree as before.
444493
*/
445494
keyboard?: SnapshotKeyboardBandFact;
495+
/**
496+
* iOS: this capture's own command found the session app out of foreground and the runner
497+
* activated it before answering, so an earlier observation in the session described whatever held
498+
* the foreground instead (#2682). Consumers that surface this tree disclose the repair.
499+
*/
500+
targetActivation?: IosTargetActivation;
446501
} & SnapshotStateProvenance;
447502

448503
export type SnapshotUnchanged = {

‎packages/platform-apple/src/runner/__tests__/target-activation.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'node:fs';
33
import path from 'node:path';
44
import { fileURLToPath } from 'node:url';
55
import { test } from 'vitest';
6-
import { IOS_TARGET_ACTIVATION_PRIOR_STATES } from '@agent-device/contracts/ios-target-activation';
6+
import { IOS_TARGET_ACTIVATION_PRIOR_STATES } from '@agent-device/kernel/snapshot';
77
import {
88
TARGET_ACTIVATION_WIRE_KEY,
99
readTargetActivationFact,

‎packages/platform-apple/src/runner/snapshot-presentation.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import type {
2525
RawSnapshotNode,
2626
SnapshotKeyboardBandFact,
2727
SnapshotQualityVerdict,
28+
IosTargetActivation,
2829
} from '@agent-device/kernel/snapshot';
2930
import {
3031
iosSystemSurfaceHost,
3132
type IosSystemSurfaceProvenance,
3233
} from '@agent-device/contracts/ios-system-surface';
3334
import { emitDiagnostic } from './host.ts';
3435
import { TARGET_ACTIVATION_WIRE_KEY, readTargetActivationFact } from './target-activation.ts';
35-
import type { IosTargetActivation } from '@agent-device/contracts/ios-target-activation';
3636

3737
export type AppleRunnerSnapshotResult = Readonly<{
3838
nodes?: RawSnapshotNode[];

0 commit comments

Comments
 (0)