annotated screenshots (#503)

* screenshot annotation

* fixes

* fix CI checks

* fixes

* fixes

* fixes

* fixes

* fixes
This commit is contained in:
Chris Tate
2026-02-18 22:20:01 -06:00
committed by GitHub
parent 06a32f4191
commit e2e259f1e2
12 changed files with 445 additions and 14 deletions
+10
View File
@@ -807,6 +807,7 @@ export interface ScreenshotCommand extends BaseCommand {
selector?: string;
format?: 'png' | 'jpeg';
quality?: number;
annotate?: boolean;
}
export interface SnapshotCommand extends BaseCommand {
@@ -1036,9 +1037,18 @@ export interface NavigateData {
title: string;
}
export interface Annotation {
ref: string;
number: number;
role: string;
name?: string;
box: { x: number; y: number; width: number; height: number };
}
export interface ScreenshotData {
path?: string;
base64?: string;
annotations?: Annotation[];
}
export interface SnapshotData {