Skip to content

Commit b264d2b

Browse files
committed
refactor(capture): require complete runtime snapshots
1 parent fc224bc commit b264d2b

8 files changed

Lines changed: 245 additions & 275 deletions

File tree

‎packages/contracts/src/backend.ts‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ import type {
2323
import type {
2424
Point,
2525
Rect,
26-
SnapshotKeyboardBandFact,
2726
SnapshotNode,
2827
SnapshotOptions,
2928
SnapshotState,
30-
SnapshotViewportSize,
3129
} from '@agent-device/kernel/snapshot';
3230

3331
// The backend's public leaf platform (approach b): backends distinguish iOS from
@@ -45,25 +43,10 @@ export type BackendCommandContext = {
4543
};
4644

4745
export type BackendSnapshotResult = {
48-
nodes?: SnapshotNode[];
49-
truncated?: boolean;
50-
backend?: string;
51-
snapshot?: SnapshotState;
46+
snapshot: SnapshotState;
5247
appName?: string;
5348
appBundleId?: string;
5449
snapshotDiagnostics?: SnapshotDiagnosticsSummary;
55-
/**
56-
* The keyboard band this capture's producer measured (#2660), carried beside the tree it measured.
57-
* A backend that publishes nothing measured nothing, and the tap-path keyboard guard keeps deriving
58-
* the band from `nodes`.
59-
*/
60-
keyboard?: SnapshotKeyboardBandFact;
61-
/**
62-
* The box these rects are measured in, as the producer measured it (#3182). Absent means the
63-
* producer measured no box — never a zero — since that absence is the only answer a producer with
64-
* no screen to measure is allowed to give.
65-
*/
66-
viewport?: SnapshotViewportSize;
6750
} & SnapshotCaptureAnnotations;
6851

6952
export type BackendSnapshotOptions = SnapshotOptions & {

0 commit comments

Comments
 (0)