@swmansion/argent 0.35.1-next.4 → 0.35.1-next.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/bin/argent-android-devtools-0.4.0.apk +0 -0
- package/bin/darwin/argent-macos-helper +0 -0
- package/bin/darwin/ax-service +0 -0
- package/bin/darwin/tvos-ax-service +0 -0
- package/bin/darwin/tvos-hid-daemon +0 -0
- package/bin/network-inspector/network-inspector.jar +0 -0
- package/bin/tcp/ax-service +0 -0
- package/dist/cli-cmds.mjs +2353 -2063
- package/dist/client.js +302 -284
- package/dist/fatal-handlers.js +7 -1
- package/dist/fatal-handlers.js.map +1 -1
- package/dist/installer-help.js +2 -1
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +972 -753
- package/dist/mcp-server.mjs +1558 -1429
- package/dist/tool-args.generated.d.ts +366 -318
- package/dist/tool-server.cjs +104616 -102337
- package/dylibs/libArgentAudio.dylib +0 -0
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
- package/dylibs/tcp/argent-audio-feeder +0 -0
- package/dylibs/tcp/libArgentAudio.dylib +0 -0
- package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
- package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
- package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
- package/package.json +2 -2
- package/skills/argent-android-emulator-setup/SKILL.md +2 -2
- package/skills/argent-create-e2e/SKILL.md +2 -1
- package/skills/argent-create-e2e/references/e2e-yaml.md +25 -2
- package/skills/argent-create-e2e/references/live-authoring.md +11 -1
- package/skills/argent-device-interact/SKILL.md +21 -94
- package/skills/argent-device-interact/references/advanced.md +64 -0
- package/skills/argent-ios-device-interact/SKILL.md +1 -1
- package/skills/argent-ios-device-setup/SKILL.md +1 -1
- package/skills/argent-ios-simulator-setup/SKILL.md +1 -1
- package/skills/argent-lens/SKILL.md +1 -1
- package/skills/argent-macos-app-interact/SKILL.md +1 -1
- package/skills/argent-metro-debugger/SKILL.md +4 -4
- package/skills/argent-native-profiler/SKILL.md +1 -1
- package/skills/argent-qa-e2e/SKILL.md +1 -1
- package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
- package/skills/argent-react-native-optimization/SKILL.md +1 -1
- package/skills/argent-react-native-profiler/SKILL.md +1 -1
- package/skills/argent-screen-recording/SKILL.md +1 -1
- package/skills/argent-screenshot-diff/SKILL.md +1 -1
- package/skills/argent-settings-permissions/SKILL.md +1 -1
- package/skills/argent-test-ui-flow/SKILL.md +1 -1
- package/skills/argent-tv-interact/SKILL.md +1 -1
|
@@ -16,23 +16,25 @@ export interface ArgentToolArgs {
|
|
|
16
16
|
bundleId?: string;
|
|
17
17
|
};
|
|
18
18
|
"await-network-request": {
|
|
19
|
-
/** Device ID
|
|
19
|
+
/** Device ID used in `network-capture-start`. */
|
|
20
20
|
udid: string;
|
|
21
|
-
/**
|
|
21
|
+
/** `bundleId` used in `network-capture-start` (Chromium: placeholder like `argent.capture`). */
|
|
22
22
|
bundleId: string;
|
|
23
|
-
/** URL text
|
|
23
|
+
/** URL text/regex to match (no `{{secret:...}}` placeholders). */
|
|
24
24
|
url: string;
|
|
25
|
-
/** contains (default)
|
|
25
|
+
/** `contains` (default) / `equals` (case-insensitive) or `matches` (case-sensitive JS regex). */
|
|
26
26
|
urlMatch?: "contains" | "equals" | "matches";
|
|
27
|
-
/** HTTP method
|
|
27
|
+
/** HTTP method (case-insensitive). */
|
|
28
28
|
method?: string;
|
|
29
|
-
/** Exact HTTP status or
|
|
29
|
+
/** Exact HTTP status or class (e.g. "2xx"). */
|
|
30
30
|
status?: "1xx" | "2xx" | "3xx" | "4xx" | "5xx" | number;
|
|
31
|
-
/** complete
|
|
32
|
-
outcome?: "complete" | "failed" | "any";
|
|
33
|
-
/**
|
|
31
|
+
/** `complete` includes HTTP error responses. `failed` matches network errors. `any` matches either. `sent` matches all states. Defaults to `sent` with `absent: true`, otherwise `complete`. */
|
|
32
|
+
outcome?: "complete" | "failed" | "any" | "sent";
|
|
33
|
+
/** Set to true to fail on the first match and require complete capture to pass. */
|
|
34
|
+
absent?: boolean;
|
|
35
|
+
/** Timeout in ms (default 10000). */
|
|
34
36
|
timeoutMs?: number;
|
|
35
|
-
/**
|
|
37
|
+
/** Poll interval in ms (default 400). */
|
|
36
38
|
pollIntervalMs?: number;
|
|
37
39
|
};
|
|
38
40
|
"await-screen-idle": {
|
|
@@ -46,11 +48,11 @@ export interface ArgentToolArgs {
|
|
|
46
48
|
minStableMs?: number;
|
|
47
49
|
};
|
|
48
50
|
"await-ui-element": {
|
|
49
|
-
/** Target device id from `list-devices
|
|
51
|
+
/** Target device id from `list-devices`. */
|
|
50
52
|
udid: string;
|
|
51
|
-
/**
|
|
53
|
+
/** `exists`: in tree; `visible`: non-zero on-screen frame; `hidden`: absent or zero-area; `text`: first visible match in reading order matches `expectedText`. On a Mac app, open menus match before alerts/sheets and the window. */
|
|
52
54
|
condition: "exists" | "visible" | "hidden" | "text";
|
|
53
|
-
/** Element
|
|
55
|
+
/** Element matcher (at least one field; all given fields must match). */
|
|
54
56
|
selector: {
|
|
55
57
|
/** Case-insensitive substring of the element's visible label or value. */
|
|
56
58
|
text?: string;
|
|
@@ -59,15 +61,15 @@ export interface ArgentToolArgs {
|
|
|
59
61
|
/** Case-insensitive substring of the element's role (e.g. AXButton, button, TextView). */
|
|
60
62
|
role?: string;
|
|
61
63
|
};
|
|
62
|
-
/** Required for
|
|
64
|
+
/** Required for `text`: expected substring or full string (see `textMatch`). */
|
|
63
65
|
expectedText?: string;
|
|
64
|
-
/**
|
|
66
|
+
/** Case-insensitive match mode for `text`: `contains` (default) or `equals`. */
|
|
65
67
|
textMatch?: "contains" | "equals";
|
|
66
|
-
/** iOS
|
|
68
|
+
/** iOS simulator only: fallback bundle id for `describe`. */
|
|
67
69
|
bundleId?: string;
|
|
68
|
-
/**
|
|
70
|
+
/** Timeout in ms (default 5000). */
|
|
69
71
|
timeoutMs?: number;
|
|
70
|
-
/**
|
|
72
|
+
/** Poll interval in ms (default 400). */
|
|
71
73
|
pollIntervalMs?: number;
|
|
72
74
|
};
|
|
73
75
|
await_user_selection: {
|
|
@@ -75,39 +77,39 @@ export interface ArgentToolArgs {
|
|
|
75
77
|
timeoutSeconds?: number;
|
|
76
78
|
};
|
|
77
79
|
"boot-device": {
|
|
78
|
-
/** iOS
|
|
80
|
+
/** iOS simulator UDID from `list-devices`. Or Mac app id (`macos-app-<bundle id>`) to relaunch from its last path. */
|
|
79
81
|
udid?: string;
|
|
80
|
-
/** Android
|
|
82
|
+
/** Android AVD name (`kind: 'avd'` from `list-devices`). Reuses a compatible running emulator. */
|
|
81
83
|
avdName?: string;
|
|
82
|
-
/** Vega (Fire TV)
|
|
84
|
+
/** Vega (Fire TV) VVD image name from `list-devices` (e.g. `tv`). */
|
|
83
85
|
vvdImage?: string;
|
|
84
|
-
/** HarmonyOS
|
|
86
|
+
/** HarmonyOS emulator instance name or `harmony-emulator-<name>` id from `list-devices`. */
|
|
85
87
|
harmonyInstance?: string;
|
|
86
|
-
/**
|
|
88
|
+
/** Overall boot budget in ms (Android default 480000, Vega 120000, HarmonyOS 180000). On HarmonyOS with `force`, this spans shutdown too. */
|
|
87
89
|
bootTimeoutMs?: number;
|
|
88
|
-
/** Shut down and
|
|
90
|
+
/** Shut down and reboot even if already running. On HarmonyOS, also ties a running instance to its `hdc` connect key. On a Mac app, quits and restarts the same .app build, including a copy running without the argent library (losing its unsaved changes); fails if the app shows a save prompt. Ignored for Electron. */
|
|
89
91
|
force?: boolean;
|
|
90
|
-
/** Android only
|
|
92
|
+
/** Android only: enable emulator audio (default false, or `boot-sound` flag). Pair with `force: true` to toggle a running emulator. */
|
|
91
93
|
sound?: boolean;
|
|
92
|
-
/** Android on a macOS host only:
|
|
94
|
+
/** Android on a macOS host only: enable guest Vulkan (default false; true needed for WebGPU/Vulkan renderers, may crash Chrome GPU). Pair with `force: true` to toggle. */
|
|
93
95
|
guestVulkan?: boolean;
|
|
94
|
-
/** Android only: boot
|
|
96
|
+
/** Android only: boot `-read-only` (default false) to run multiple concurrent instances of one AVD without saving snapshot changes. */
|
|
95
97
|
readOnly?: boolean;
|
|
96
|
-
/** Android only:
|
|
98
|
+
/** Android only: emulator console port (even, 5554–5584; serial `emulator-<port>`, gRPC on port+3000). Defaults to first free port. */
|
|
97
99
|
port?: number;
|
|
98
|
-
/** Local iOS simulator only: apply accessibility
|
|
100
|
+
/** Local iOS simulator only: apply accessibility prefs to a Shutdown simulator without booting. Cannot combine with `force: true`. */
|
|
99
101
|
prepareOnly?: boolean;
|
|
100
|
-
/** iOS only: boot
|
|
102
|
+
/** iOS only: boot simulator core without opening Simulator.app (`ARGENT_SIMULATOR_NO_WINDOW=1` forces host-wide). */
|
|
101
103
|
headless?: boolean;
|
|
102
|
-
/** Electron: path to
|
|
104
|
+
/** Electron: path to `.app` bundle, executable, or project directory with `package.json`. */
|
|
103
105
|
electronAppPath?: string;
|
|
104
|
-
/** Electron
|
|
106
|
+
/** Electron only: CDP remote-debugging port (default: free port; id `chromium-cdp-<port>`). */
|
|
105
107
|
electronPort?: number;
|
|
106
|
-
/** Electron
|
|
108
|
+
/** Electron only: extra CLI args forwarded to the Electron binary. */
|
|
107
109
|
electronArgs?: Array<string>;
|
|
108
|
-
/** Mac app: path to
|
|
110
|
+
/** Mac app: path to `.app` bundle (id `macos-app-<bundle id>`). */
|
|
109
111
|
macosAppPath?: string;
|
|
110
|
-
/** Mac app only: arguments
|
|
112
|
+
/** Mac app only: launch arguments (omitted = none). */
|
|
111
113
|
macosAppArgs?: Array<string>;
|
|
112
114
|
};
|
|
113
115
|
button: {
|
|
@@ -117,27 +119,27 @@ export interface ArgentToolArgs {
|
|
|
117
119
|
button: "home" | "back" | "power" | "volumeUp" | "volumeDown" | "appSwitch" | "actionButton";
|
|
118
120
|
};
|
|
119
121
|
"chromium-cookies": {
|
|
120
|
-
/** Chromium device id
|
|
122
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
121
123
|
udid: string;
|
|
122
|
-
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies. */
|
|
124
|
+
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies across all domains (ignores url/domain). */
|
|
123
125
|
action: "get" | "set" | "delete" | "clear";
|
|
124
|
-
/** Cookie name. */
|
|
126
|
+
/** Cookie name (required for `set`/`delete`). */
|
|
125
127
|
name?: string;
|
|
126
|
-
/** Cookie value. */
|
|
128
|
+
/** Cookie value (required for `set`). */
|
|
127
129
|
value?: string;
|
|
128
|
-
/**
|
|
130
|
+
/** URL filter for `get` (defaults to the active page) or scope for `set`/`delete`. */
|
|
129
131
|
url?: string;
|
|
130
|
-
/**
|
|
132
|
+
/** Domain scope (`set`/`delete`). */
|
|
131
133
|
domain?: string;
|
|
132
|
-
/**
|
|
134
|
+
/** Path scope (default `/`). */
|
|
133
135
|
path?: string;
|
|
134
|
-
/**
|
|
136
|
+
/** Secure flag (`set`). */
|
|
135
137
|
secure?: boolean;
|
|
136
|
-
/**
|
|
138
|
+
/** HttpOnly flag (`set`). */
|
|
137
139
|
httpOnly?: boolean;
|
|
138
|
-
/**
|
|
140
|
+
/** SameSite policy (`set`). */
|
|
139
141
|
sameSite?: "Strict" | "Lax" | "None";
|
|
140
|
-
/**
|
|
142
|
+
/** Unix expiry in seconds (`set`; omit for session). */
|
|
141
143
|
expires?: number;
|
|
142
144
|
};
|
|
143
145
|
"chromium-storage": {
|
|
@@ -153,88 +155,90 @@ export interface ArgentToolArgs {
|
|
|
153
155
|
value?: string;
|
|
154
156
|
};
|
|
155
157
|
"chromium-tabs": {
|
|
156
|
-
/** Chromium device id
|
|
158
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
157
159
|
udid: string;
|
|
158
|
-
/**
|
|
160
|
+
/** Tab operation. */
|
|
159
161
|
action: "list" | "select" | "new" | "close";
|
|
160
|
-
/**
|
|
162
|
+
/** Tab id (e.g. `t2`) or label (`select` required; `close` defaults to active). */
|
|
161
163
|
tab?: string;
|
|
162
|
-
/** `new`
|
|
164
|
+
/** URL for `new` (default `about:blank`). */
|
|
163
165
|
url?: string;
|
|
164
|
-
/**
|
|
166
|
+
/** Optional alias label for `new`. */
|
|
165
167
|
label?: string;
|
|
166
168
|
};
|
|
167
169
|
"debugger-component-tree": {
|
|
168
|
-
/** Metro port
|
|
170
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
169
171
|
port?: number;
|
|
170
|
-
/** Device id
|
|
172
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
171
173
|
device_id: string;
|
|
172
|
-
/**
|
|
174
|
+
/** Only on-screen components (default true; false includes off-screen mounted nodes). */
|
|
173
175
|
onScreenOnly?: boolean;
|
|
174
|
-
/**
|
|
176
|
+
/** Max nodes to return (collapses single-child wrappers when exceeded). */
|
|
175
177
|
maxNodes?: number;
|
|
176
|
-
/**
|
|
178
|
+
/** Append filtered/skipped fiber counts summary. */
|
|
177
179
|
includeSkipped?: boolean;
|
|
178
180
|
};
|
|
179
181
|
"debugger-connect": {
|
|
180
|
-
/** Metro port
|
|
182
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
181
183
|
port?: number;
|
|
182
|
-
/** Device id from list-devices
|
|
184
|
+
/** Device id from `list-devices`: iOS UDID, Android/Vega serial, Mac app id (`macos-app-<bundle id>`), or Chromium id (`chromium-cdp-<port>`). Reuse this same id on subsequent `debugger-*` calls (or pass the error's `logicalDeviceId` if shared Metro is ambiguous). */
|
|
183
185
|
device_id: string;
|
|
184
186
|
};
|
|
185
187
|
"debugger-evaluate": {
|
|
186
|
-
/** Metro port
|
|
188
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
187
189
|
port?: number;
|
|
188
|
-
/** Device id
|
|
190
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
189
191
|
device_id: string;
|
|
190
|
-
/** JavaScript expression to evaluate
|
|
192
|
+
/** JavaScript expression to evaluate. */
|
|
191
193
|
expression: string;
|
|
192
194
|
};
|
|
193
195
|
"debugger-inspect-element": {
|
|
194
|
-
/** Metro port
|
|
196
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
195
197
|
port?: number;
|
|
196
|
-
/** Device id
|
|
198
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
197
199
|
device_id: string;
|
|
198
|
-
/**
|
|
200
|
+
/** X in logical pixels from screen left (or Mac app window left, title bar included). */
|
|
199
201
|
x: number;
|
|
200
|
-
/**
|
|
202
|
+
/** Y in logical pixels from screen top (or Mac app window top, title bar included). */
|
|
201
203
|
y: number;
|
|
202
|
-
/**
|
|
204
|
+
/** Source context lines around each component. */
|
|
203
205
|
contextLines?: number;
|
|
204
|
-
/**
|
|
206
|
+
/** Symbolicate via Metro and include code snippets (false = raw bundle frames). */
|
|
205
207
|
resolveSourceMaps?: boolean;
|
|
206
|
-
/**
|
|
208
|
+
/** Max hierarchy items, most specific first (default 35). */
|
|
207
209
|
maxItems?: number;
|
|
208
|
-
/**
|
|
210
|
+
/** Keep normally filtered items marked `skipped: true`. */
|
|
209
211
|
includeSkipped?: boolean;
|
|
210
212
|
};
|
|
211
213
|
"debugger-log-registry": {
|
|
212
|
-
/** Metro port
|
|
214
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
213
215
|
port?: number;
|
|
214
|
-
/** Device id
|
|
216
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
215
217
|
device_id: string;
|
|
216
|
-
/**
|
|
218
|
+
/** Newest entries to inline (default 20). */
|
|
217
219
|
tail?: number;
|
|
218
|
-
/**
|
|
220
|
+
/** Filter inline `entries` by level (e.g. ["warning", "error"]). */
|
|
219
221
|
levels?: Array<"log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd">;
|
|
220
222
|
};
|
|
221
223
|
"debugger-reload-metro": {
|
|
222
|
-
/** Metro port
|
|
224
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
223
225
|
port?: number;
|
|
224
226
|
/** Device id used with debugger-connect. For macOS, use the Mac app id. */
|
|
225
227
|
device_id: string;
|
|
226
228
|
};
|
|
227
229
|
"debugger-status": {
|
|
228
|
-
/** Metro port
|
|
230
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
229
231
|
port?: number;
|
|
230
|
-
/** Device id
|
|
232
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
231
233
|
device_id: string;
|
|
232
234
|
};
|
|
233
235
|
describe: {
|
|
234
|
-
/** Target device id from `list-devices
|
|
236
|
+
/** Target device id from `list-devices`. */
|
|
235
237
|
udid: string;
|
|
236
|
-
/**
|
|
238
|
+
/** iOS simulator only: fallback bundle id when AX-service returns empty (auto-detects frontmost if omitted). */
|
|
237
239
|
bundleId?: string;
|
|
240
|
+
/** Return the unpruned tree, keeping bare structural wrapper containers and duplicate child labels omitted by default. */
|
|
241
|
+
raw?: boolean;
|
|
238
242
|
};
|
|
239
243
|
"dismiss-update": {
|
|
240
244
|
/** Hours until reminders resume: 168 is a week, 87600 is the longest, 0 turns them back on */
|
|
@@ -247,55 +251,81 @@ export interface ArgentToolArgs {
|
|
|
247
251
|
project_root: string;
|
|
248
252
|
/** Text the echo step prints */
|
|
249
253
|
message: string;
|
|
254
|
+
/** Save the message in the shutdown list. stepCount counts shutdown entries. */
|
|
255
|
+
shutdown?: boolean;
|
|
250
256
|
};
|
|
251
257
|
"e2e-add-script": {
|
|
252
|
-
/** E2E test name
|
|
258
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
253
259
|
name: string;
|
|
254
|
-
/**
|
|
260
|
+
/** Project root from `e2e-start-recording`. */
|
|
255
261
|
project_root: string;
|
|
256
|
-
/**
|
|
262
|
+
/** Script path (.mjs/.mts/.js/.ts) relative to the test YAML. */
|
|
257
263
|
path: string;
|
|
258
|
-
/**
|
|
264
|
+
/** Timeout in ms (default 30000, min 100). */
|
|
259
265
|
timeout?: number;
|
|
266
|
+
/** Env overrides (supports `{{secret:NAME}}` and `{{output:PATH}}`). */
|
|
267
|
+
env?: {
|
|
268
|
+
[key: string]: string;
|
|
269
|
+
};
|
|
270
|
+
/** Save the script in the shutdown list. Pending fragment cleanup runs before the script. The script's output reaches only later shutdown steps. stepCount counts shutdown entries. */
|
|
271
|
+
shutdown?: boolean;
|
|
272
|
+
/** Recording device from `list-devices`, read by the script as ARGENT_DEVICE_ID/_PLATFORM/_KIND as on a replay. Omit for a test with no device. */
|
|
273
|
+
udid?: string;
|
|
260
274
|
};
|
|
261
275
|
"e2e-add-step": {
|
|
262
|
-
/**
|
|
276
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
263
277
|
name: string;
|
|
264
|
-
/**
|
|
278
|
+
/** Project root from `e2e-start-recording`. */
|
|
265
279
|
project_root: string;
|
|
266
|
-
/** MCP tool to
|
|
280
|
+
/** MCP tool id to run and record (e.g. "gesture-tap"; call `e2e-add-script` directly for scripts). */
|
|
267
281
|
command: string;
|
|
268
|
-
/**
|
|
282
|
+
/** JSON string of tool arguments (omit if none). */
|
|
269
283
|
args?: string;
|
|
270
|
-
/**
|
|
284
|
+
/** Replay delay in ms before this step. */
|
|
271
285
|
delayMs?: number;
|
|
286
|
+
/** Save the call in the shutdown list. Pending fragment cleanup runs before the call. stepCount counts shutdown entries. */
|
|
287
|
+
shutdown?: boolean;
|
|
272
288
|
};
|
|
273
|
-
"e2e-
|
|
274
|
-
/** Name of a saved e2e test to
|
|
289
|
+
"e2e-check": {
|
|
290
|
+
/** Name of a saved e2e test to check from `<project_root>/.argent/e2e`, or `.argent/flows` when it is not there. */
|
|
275
291
|
name?: string;
|
|
276
|
-
/** Absolute path to the calling agent's project root: the cwd it is working in
|
|
292
|
+
/** Absolute path to the calling agent's project root: the cwd it is working in. */
|
|
277
293
|
project_root: string;
|
|
278
294
|
/** Path to the e2e test .yaml as readable by the tool-server. Internal: the argent client derives it from project_root and name automatically; leave unset. */
|
|
279
295
|
e2e_test_file?: string;
|
|
280
296
|
/** Absolute path to an e2e test .yaml on the client. */
|
|
281
297
|
e2e_test_path?: string;
|
|
282
|
-
|
|
298
|
+
};
|
|
299
|
+
"e2e-execute": {
|
|
300
|
+
/** Saved e2e test name in `<project_root>/.argent/e2e/` (or `.argent/flows/`). */
|
|
301
|
+
name?: string;
|
|
302
|
+
/** Absolute path to the project root (script cwd; with e2e_test_path, run:/script:/baselines resolve beside the YAML). */
|
|
303
|
+
project_root: string;
|
|
304
|
+
/** Internal; leave unset (derived from `project_root` and `name`). */
|
|
305
|
+
e2e_test_file?: string;
|
|
306
|
+
/** Absolute path to an e2e test `.yaml` on the client. */
|
|
307
|
+
e2e_test_path?: string;
|
|
308
|
+
/** Target device id from `list-devices` (iOS UDID, Android/Vega serial, Chromium id, Mac app id). Auto-detected only when one booted device matches; pass explicitly if multiple are booted. */
|
|
283
309
|
device?: string;
|
|
284
|
-
/**
|
|
310
|
+
/** Filter auto-detection (`ios` = local simulator, `ios-remote` = remote). With `chromium` and no `device`, boots Electron from `launch: { chromium: <app path> }` and tears it down after. With `macos` and no `device`, runs on the Mac app named in `launch` (auto-detection never picks Mac apps otherwise). */
|
|
285
311
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | "ios-remote";
|
|
286
|
-
/**
|
|
312
|
+
/** Refresh screenshot baselines for `snapshot` steps instead of diffing. */
|
|
287
313
|
updateBaselines?: boolean;
|
|
288
|
-
/** Set
|
|
314
|
+
/** Set true to confirm a fragment's `executionPrerequisite` is met; otherwise returns the prerequisite text without running. Not a dry run: a test with no prerequisite runs in full (read `executionPrerequisite` in the YAML to inspect without running). */
|
|
289
315
|
prerequisiteAcknowledged?: boolean;
|
|
316
|
+
/** Script env overrides (also for `run:` fragments). Supports `{{secret:NAME}}`. */
|
|
317
|
+
env?: {
|
|
318
|
+
[key: string]: string;
|
|
319
|
+
};
|
|
290
320
|
/** @deprecated Renamed to `e2e_test_path`. */
|
|
291
321
|
flow_path?: string;
|
|
292
322
|
/** @deprecated Renamed to `e2e_test_file`. */
|
|
293
323
|
flow_file?: string;
|
|
294
324
|
};
|
|
295
325
|
"e2e-finish-recording": {
|
|
296
|
-
/**
|
|
326
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
297
327
|
name: string;
|
|
298
|
-
/**
|
|
328
|
+
/** Project root from `e2e-start-recording`. */
|
|
299
329
|
project_root: string;
|
|
300
330
|
};
|
|
301
331
|
"e2e-read-prerequisite": {
|
|
@@ -312,18 +342,32 @@ export interface ArgentToolArgs {
|
|
|
312
342
|
/** @deprecated Renamed to `e2e_test_file`. */
|
|
313
343
|
flow_file?: string;
|
|
314
344
|
};
|
|
345
|
+
"e2e-set-env": {
|
|
346
|
+
/** Test name passed to e2e-start-recording. */
|
|
347
|
+
name: string;
|
|
348
|
+
/** Absolute project root passed to e2e-start-recording. */
|
|
349
|
+
project_root: string;
|
|
350
|
+
/** Variable names to update. A null value removes that name. Omitted names keep their values. Use {{secret:NAME}} for credentials. */
|
|
351
|
+
env: {
|
|
352
|
+
[key: string]: string | null;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
315
355
|
"e2e-start-recording": {
|
|
316
|
-
/**
|
|
356
|
+
/** E2E test name (letters, digits, `_`, `-`). */
|
|
317
357
|
name: string;
|
|
318
|
-
/** Absolute path to the project root
|
|
358
|
+
/** Absolute path to the project root containing `.argent/e2e/`. */
|
|
319
359
|
project_root: string;
|
|
320
|
-
/** Fragments only:
|
|
360
|
+
/** Fragments only: entry state assumed. Omit for standalone tests (Chromium records as a fragment, then add `launch: { chromium: <app path> }` and remove this). */
|
|
321
361
|
executionPrerequisite?: string;
|
|
322
|
-
/**
|
|
362
|
+
/** Supported target filter (`platform` and/or `runtimeKind`, ANDed). Omit for any. */
|
|
323
363
|
requires?: {
|
|
324
364
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
|
|
325
365
|
runtimeKind?: "mobile" | "tv";
|
|
326
366
|
};
|
|
367
|
+
/** Top-level script env defaults. Supports `{{secret:NAME}}`. */
|
|
368
|
+
env?: {
|
|
369
|
+
[key: string]: string;
|
|
370
|
+
};
|
|
327
371
|
};
|
|
328
372
|
"file-panel": {
|
|
329
373
|
/** Mac app id from `list-devices` (macos-app-<bundle id>). */
|
|
@@ -350,11 +394,11 @@ export interface ArgentToolArgs {
|
|
|
350
394
|
text: string;
|
|
351
395
|
};
|
|
352
396
|
fold: {
|
|
353
|
-
/**
|
|
397
|
+
/** Foldable device id from `list-devices` (iOS simulator UDID or Android emulator serial). */
|
|
354
398
|
udid: string;
|
|
355
|
-
/**
|
|
399
|
+
/** Target posture: `closed` (cover panel), `half-open`, or `open` (inner panel). */
|
|
356
400
|
posture?: "closed" | "half-open" | "open";
|
|
357
|
-
/**
|
|
401
|
+
/** Hinge angle in degrees (0 = closed, 180 = open). */
|
|
358
402
|
angle?: number;
|
|
359
403
|
};
|
|
360
404
|
"foreground-app": {
|
|
@@ -368,144 +412,148 @@ export interface ArgentToolArgs {
|
|
|
368
412
|
"gesture-custom": {
|
|
369
413
|
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
370
414
|
udid: string;
|
|
371
|
-
/** Starting
|
|
415
|
+
/** Starting screen edge for a single-finger system gesture (local iOS simulator). */
|
|
372
416
|
edge?: "top" | "right" | "bottom" | "left";
|
|
373
|
-
/**
|
|
417
|
+
/** Ordered touch events. */
|
|
374
418
|
events: Array<{
|
|
375
|
-
/** Touch event type */
|
|
419
|
+
/** Touch event type. */
|
|
376
420
|
type: "Down" | "Move" | "Up";
|
|
377
|
-
/**
|
|
421
|
+
/** Normalized x. */
|
|
378
422
|
x: number;
|
|
379
|
-
/**
|
|
423
|
+
/** Normalized y. */
|
|
380
424
|
y: number;
|
|
381
|
-
/** Second finger x
|
|
425
|
+
/** Second finger x. */
|
|
382
426
|
x2?: number;
|
|
383
|
-
/** Second finger y
|
|
427
|
+
/** Second finger y. */
|
|
384
428
|
y2?: number;
|
|
385
|
-
/** Delay before
|
|
429
|
+
/** Delay before event in ms (default 16). */
|
|
386
430
|
delayMs?: number;
|
|
387
431
|
}>;
|
|
388
|
-
/**
|
|
432
|
+
/** Insert N linearly interpolated Move events between consecutive events (default 0). */
|
|
389
433
|
interpolate?: number;
|
|
390
434
|
};
|
|
391
435
|
"gesture-drag": {
|
|
392
|
-
/**
|
|
436
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
393
437
|
udid: string;
|
|
394
|
-
/**
|
|
438
|
+
/** Start x. */
|
|
395
439
|
fromX: number;
|
|
396
|
-
/**
|
|
440
|
+
/** Start y. */
|
|
397
441
|
fromY: number;
|
|
398
|
-
/**
|
|
442
|
+
/** End x. */
|
|
399
443
|
toX: number;
|
|
400
|
-
/**
|
|
444
|
+
/** End y. */
|
|
401
445
|
toY: number;
|
|
402
|
-
/**
|
|
446
|
+
/** Drag duration in ms (default 300; 800 for a Mac app long press). */
|
|
403
447
|
durationMs?: number;
|
|
404
|
-
/**
|
|
448
|
+
/** Default true (constant speed). false decelerates into release to avoid fling. */
|
|
405
449
|
momentum?: boolean;
|
|
406
450
|
};
|
|
407
451
|
"gesture-pinch": {
|
|
408
|
-
/**
|
|
452
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
409
453
|
udid: string;
|
|
410
|
-
/**
|
|
454
|
+
/** Normalized center x. */
|
|
411
455
|
centerX: number;
|
|
412
|
-
/**
|
|
456
|
+
/** Normalized center y. */
|
|
413
457
|
centerY: number;
|
|
414
|
-
/** Initial
|
|
458
|
+
/** Initial normalized finger distance. */
|
|
415
459
|
startDistance: number;
|
|
416
|
-
/** Final distance
|
|
460
|
+
/** Final normalized finger distance (> start = zoom in). */
|
|
417
461
|
endDistance: number;
|
|
418
|
-
/**
|
|
462
|
+
/** Optional final center x (centroid drifts linearly). */
|
|
419
463
|
endCenterX?: number;
|
|
420
|
-
/**
|
|
464
|
+
/** Optional final center y. */
|
|
421
465
|
endCenterY?: number;
|
|
422
|
-
/**
|
|
466
|
+
/** Finger axis angle in degrees (0 = horizontal, 90 = vertical). */
|
|
423
467
|
angle?: number;
|
|
424
|
-
/**
|
|
468
|
+
/** Duration in ms (default 300); clamped to 1–15000ms on HarmonyOS. */
|
|
425
469
|
durationMs?: number;
|
|
426
470
|
};
|
|
427
471
|
"gesture-rotate": {
|
|
428
|
-
/**
|
|
472
|
+
/** Device id from `list-devices` (iOS UDID or Android serial). */
|
|
429
473
|
udid: string;
|
|
430
|
-
/**
|
|
474
|
+
/** Normalized rotation center x. */
|
|
431
475
|
centerX: number;
|
|
432
|
-
/**
|
|
476
|
+
/** Normalized rotation center y. */
|
|
433
477
|
centerY: number;
|
|
434
|
-
/**
|
|
478
|
+
/** Normalized finger orbit radius (e.g. 0.15). */
|
|
435
479
|
radius?: number;
|
|
436
|
-
/**
|
|
480
|
+
/** Horizontal radius fraction of screen width (pair with `radiusY`). */
|
|
437
481
|
radiusX?: number;
|
|
438
|
-
/**
|
|
482
|
+
/** Vertical radius fraction of screen height (pair with `radiusX`). */
|
|
439
483
|
radiusY?: number;
|
|
440
|
-
/**
|
|
484
|
+
/** Start angle in degrees (0 = right, 90 = down). */
|
|
441
485
|
startAngle: number;
|
|
442
|
-
/**
|
|
486
|
+
/** End angle in degrees (> startAngle = clockwise). */
|
|
443
487
|
endAngle: number;
|
|
444
|
-
/**
|
|
488
|
+
/** Duration in ms (default 300). */
|
|
445
489
|
durationMs?: number;
|
|
446
490
|
};
|
|
447
491
|
"gesture-scroll": {
|
|
448
|
-
/**
|
|
492
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
449
493
|
udid: string;
|
|
450
|
-
/**
|
|
494
|
+
/** Normalized anchor x over the scrollable element. */
|
|
451
495
|
x: number;
|
|
452
|
-
/**
|
|
496
|
+
/** Normalized anchor y. */
|
|
453
497
|
y: number;
|
|
454
|
-
/** Horizontal scroll
|
|
498
|
+
/** Horizontal scroll fraction (+ right, - left). */
|
|
455
499
|
deltaX?: number;
|
|
456
|
-
/** Vertical scroll
|
|
500
|
+
/** Vertical scroll fraction (+ down, - up; e.g. 0.5). */
|
|
457
501
|
deltaY?: number;
|
|
458
|
-
/**
|
|
502
|
+
/** Scroll duration in ms (default 300); ignored on Mac apps. */
|
|
459
503
|
durationMs?: number;
|
|
460
504
|
};
|
|
461
505
|
"gesture-swipe": {
|
|
462
|
-
/** Target device id from `list-devices
|
|
506
|
+
/** Target device id from `list-devices`. */
|
|
463
507
|
udid: string;
|
|
464
|
-
/** Start x. */
|
|
508
|
+
/** Start x [0,1]. */
|
|
465
509
|
fromX: number;
|
|
466
|
-
/** Start y. */
|
|
510
|
+
/** Start y [0,1]. */
|
|
467
511
|
fromY: number;
|
|
468
|
-
/** End x. */
|
|
512
|
+
/** End x [0,1]. */
|
|
469
513
|
toX: number;
|
|
470
|
-
/** End y. */
|
|
514
|
+
/** End y [0,1]. */
|
|
471
515
|
toY: number;
|
|
472
|
-
/**
|
|
516
|
+
/** Swipe duration in ms (default 300). */
|
|
473
517
|
durationMs?: number;
|
|
474
|
-
/**
|
|
518
|
+
/** Default true (flinging swipe). Set false to ease out with no fling for deterministic scroll distance (requires durationMs >= 150). */
|
|
475
519
|
momentum?: boolean;
|
|
476
520
|
};
|
|
477
521
|
"gesture-tap": {
|
|
478
|
-
/** Target device id from `list-devices
|
|
522
|
+
/** Target device id from `list-devices`. */
|
|
479
523
|
udid: string;
|
|
480
|
-
/** Horizontal
|
|
524
|
+
/** Horizontal screen fraction [0,1]. */
|
|
481
525
|
x: number;
|
|
482
|
-
/** Vertical
|
|
526
|
+
/** Vertical screen fraction [0,1]. */
|
|
483
527
|
y: number;
|
|
484
|
-
/**
|
|
528
|
+
/** Tap/click count as one OS gesture (2 = double-tap; default 1). On physical iOS, higher counts loop single taps, which a double-tap recognizer may pair. */
|
|
485
529
|
clickCount?: number;
|
|
486
|
-
/**
|
|
530
|
+
/** Mac app only: mouse button ("left" default, or "right"). */
|
|
487
531
|
button?: "left" | "right";
|
|
488
|
-
/**
|
|
532
|
+
/** Mac app only: modifier keys held during click. */
|
|
489
533
|
modifiers?: Array<"control" | "option" | "shift" | "command">;
|
|
490
534
|
};
|
|
491
535
|
keyboard: {
|
|
492
|
-
/** Target device id from `list-devices
|
|
536
|
+
/** Target device id from `list-devices`. */
|
|
493
537
|
udid: string;
|
|
494
|
-
/** Text to type
|
|
538
|
+
/** Text to type. Cannot be combined with `key` (use two steps in `run-sequence` to type then press enter). Supports `{{secret:<NAME>}}` placeholders resolved server-side from `ARGENT_SECRET_<NAME>` / `.argent/secrets.env` (auto-screenshot is skipped; combine with submit in one `run-sequence` to keep the skip; never ask the user for plaintext). */
|
|
495
539
|
text?: string;
|
|
496
|
-
/** Named key
|
|
540
|
+
/** Named key. Cannot be combined with `text` or `clear` (use two steps in `run-sequence`). Values: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Not supported on Apple TV / Android TV (use `tv-remote`). Physical iOS: enter/backspace only. HarmonyOS: enter, backspace, space, arrow-left/right. Mac app: also delete (forward delete), home, end, page-up/down, and modifier shortcuts (e.g. command+a). */
|
|
497
541
|
key?: string;
|
|
498
|
-
/**
|
|
542
|
+
/** Clear the focused text field before typing `text` (or alone when `text` is omitted). Cannot be combined with `key`. Fails if nothing editable has focus. On physical iOS, deletes up to 100 characters before the caret, unverified, and returns no `cleared`. Not supported on Mac apps, HarmonyOS, Apple TV, Android TV, or Vega. */
|
|
543
|
+
clear?: boolean;
|
|
544
|
+
/** Press `key` this many times in one call, e.g. `{ key: "backspace", repeat: 12 }`. Only valid with `key`. */
|
|
545
|
+
repeat?: number;
|
|
546
|
+
/** Delay in ms between key presses (default 50; ignored on platforms that type in one shot). */
|
|
499
547
|
delayMs?: number;
|
|
500
548
|
};
|
|
501
549
|
"launch-app": {
|
|
502
|
-
/** Target device id from `list-devices
|
|
550
|
+
/** Target device id from `list-devices`. */
|
|
503
551
|
udid: string;
|
|
504
|
-
/** App identifier
|
|
552
|
+
/** App identifier (iOS/Mac app bundle id, Android package name, Vega interactive component app id from manifest.toml e.g. `com.example.app.main`, HarmonyOS bundle name from `bm dump -a`, or Chromium tag). */
|
|
505
553
|
bundleId: string;
|
|
506
|
-
/** Android
|
|
554
|
+
/** Android only: Activity name (default: launcher activity). */
|
|
507
555
|
activity?: string;
|
|
508
|
-
/** Apple
|
|
556
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. Relaunches running simulators/phones to apply. */
|
|
509
557
|
launchArgs?: Array<string>;
|
|
510
558
|
};
|
|
511
559
|
"list-devices": Record<string, never>;
|
|
@@ -540,21 +588,21 @@ export interface ArgentToolArgs {
|
|
|
540
588
|
udid: string;
|
|
541
589
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
542
590
|
bundleId: string;
|
|
543
|
-
/** UIView class name
|
|
591
|
+
/** Exact UIView class name (e.g. UIButton). */
|
|
544
592
|
className?: string;
|
|
545
|
-
/**
|
|
593
|
+
/** Exact accessibility identifier. */
|
|
546
594
|
identifier?: string;
|
|
547
|
-
/**
|
|
595
|
+
/** Exact accessibility label. */
|
|
548
596
|
label?: string;
|
|
549
|
-
/** UIView
|
|
597
|
+
/** UIView integer tag. */
|
|
550
598
|
tag?: number;
|
|
551
|
-
/** React Native nativeID
|
|
599
|
+
/** Exact React Native nativeID. */
|
|
552
600
|
nativeID?: string;
|
|
553
|
-
/** Include ancestor chain
|
|
601
|
+
/** Include ancestor chain (default true). */
|
|
554
602
|
includeAncestors?: boolean;
|
|
555
|
-
/** Include child views
|
|
603
|
+
/** Include child views (default true). */
|
|
556
604
|
includeChildren?: boolean;
|
|
557
|
-
/** View fields to
|
|
605
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
558
606
|
fields?: Array<string>;
|
|
559
607
|
};
|
|
560
608
|
"native-full-hierarchy": {
|
|
@@ -562,25 +610,25 @@ export interface ArgentToolArgs {
|
|
|
562
610
|
udid: string;
|
|
563
611
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
564
612
|
bundleId: string;
|
|
565
|
-
/**
|
|
613
|
+
/** Exact view fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
566
614
|
fields?: Array<string>;
|
|
567
|
-
/** Exact UIView
|
|
615
|
+
/** Exact UIView classes to prune (e.g. ["UIImageView"]). */
|
|
568
616
|
skipClasses?: Array<string>;
|
|
569
|
-
/** Class
|
|
617
|
+
/** Class prefixes to prune (e.g. ["_TtGC7SwiftUI"] for SwiftUI; avoid broad "_UI"). */
|
|
570
618
|
skipClassPrefixes?: Array<string>;
|
|
571
|
-
/**
|
|
619
|
+
/** Max recursion depth (default 8). */
|
|
572
620
|
maxDepth?: number;
|
|
573
621
|
};
|
|
574
622
|
"native-network-logs": {
|
|
575
|
-
/** Device ID from list-devices
|
|
623
|
+
/** Device ID from `list-devices`: iOS simulator UDID, Android serial, or Mac app id (`macos-app-<bundle id>`). */
|
|
576
624
|
udid: string;
|
|
577
|
-
/**
|
|
625
|
+
/** Bundle ID (iOS) or package name (Android); on macOS, omit `macos-app-`. */
|
|
578
626
|
bundleId: string;
|
|
579
|
-
/**
|
|
627
|
+
/** Metro port to exclude from logs (omit for device default, usually 8081). */
|
|
580
628
|
port?: number;
|
|
581
|
-
/**
|
|
629
|
+
/** Newest requests to return oldest-first (default 50; 0 = status/totals only). */
|
|
582
630
|
limit?: number;
|
|
583
|
-
/** Hide
|
|
631
|
+
/** Hide current history from later lists (IDs still work in `view-network-request-details`). */
|
|
584
632
|
clear?: boolean;
|
|
585
633
|
};
|
|
586
634
|
"native-profiler-analyze": {
|
|
@@ -588,25 +636,25 @@ export interface ArgentToolArgs {
|
|
|
588
636
|
device_id: string;
|
|
589
637
|
};
|
|
590
638
|
"native-profiler-launch-analysis": {
|
|
591
|
-
/** measure
|
|
639
|
+
/** `measure`: 5 XCTest timed launches. `profile`: 1 Instruments App Launch trace. */
|
|
592
640
|
mode: "measure" | "profile";
|
|
593
|
-
/**
|
|
641
|
+
/** Installed Release build bundle ID (not built or installed by this tool). */
|
|
594
642
|
bundle_id: string;
|
|
595
|
-
/**
|
|
643
|
+
/** iPhone UDID (or booted simulator UDID with `allow_simulator: true`). */
|
|
596
644
|
device_id?: string;
|
|
597
|
-
/**
|
|
645
|
+
/** Allow booted simulator when no iPhone is selected. */
|
|
598
646
|
allow_simulator?: boolean;
|
|
599
|
-
/** profile mode only:
|
|
647
|
+
/** `profile` mode only: trace duration in s (default 8). */
|
|
600
648
|
duration_seconds?: number;
|
|
601
649
|
};
|
|
602
650
|
"native-profiler-start": {
|
|
603
651
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
604
652
|
device_id: string;
|
|
605
|
-
/** iOS
|
|
653
|
+
/** iOS executable/name or Android package (auto-detects foreground app if omitted); omit for Mac apps. */
|
|
606
654
|
app_process?: string;
|
|
607
|
-
/** iOS
|
|
655
|
+
/** iOS/Mac app Instruments `.tracetemplate` path or built-in name (e.g. "Time Profiler"; default: bundled template). */
|
|
608
656
|
template_path?: string;
|
|
609
|
-
/** iOS
|
|
657
|
+
/** iOS/Mac apps only: restart app with allocation stacks from launch (adds overhead; leave off for CPU/hang timing). */
|
|
610
658
|
malloc_stack_logging?: boolean;
|
|
611
659
|
};
|
|
612
660
|
"native-profiler-stop": {
|
|
@@ -618,21 +666,21 @@ export interface ArgentToolArgs {
|
|
|
618
666
|
udid: string;
|
|
619
667
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
620
668
|
bundleId: string;
|
|
621
|
-
/** Raw X
|
|
669
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
622
670
|
x: number;
|
|
623
|
-
/** Raw Y
|
|
671
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
624
672
|
y: number;
|
|
625
|
-
/** Include ancestor chain
|
|
673
|
+
/** Include ancestor chain (default true). */
|
|
626
674
|
includeAncestors?: boolean;
|
|
627
|
-
/** Include child views
|
|
675
|
+
/** Include child views (default false). */
|
|
628
676
|
includeChildren?: boolean;
|
|
629
|
-
/** View fields to
|
|
677
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
630
678
|
fields?: Array<string>;
|
|
631
|
-
/** Exact UIView class names
|
|
679
|
+
/** Exact UIView class names to prune. */
|
|
632
680
|
skipClasses?: Array<string>;
|
|
633
|
-
/** Class name prefixes to prune
|
|
681
|
+
/** Class name prefixes to prune. */
|
|
634
682
|
skipClassPrefixes?: Array<string>;
|
|
635
|
-
/**
|
|
683
|
+
/** Max serialization depth (default 150). */
|
|
636
684
|
maxDepth?: number;
|
|
637
685
|
};
|
|
638
686
|
"native-view-at-point": {
|
|
@@ -640,157 +688,157 @@ export interface ArgentToolArgs {
|
|
|
640
688
|
udid: string;
|
|
641
689
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
642
690
|
bundleId: string;
|
|
643
|
-
/** Raw X
|
|
691
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
644
692
|
x: number;
|
|
645
|
-
/** Raw Y
|
|
693
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
646
694
|
y: number;
|
|
647
|
-
/** Include ancestor chain
|
|
695
|
+
/** Include ancestor chain (default true). */
|
|
648
696
|
includeAncestors?: boolean;
|
|
649
|
-
/** Include child views
|
|
697
|
+
/** Include child views (default false). */
|
|
650
698
|
includeChildren?: boolean;
|
|
651
|
-
/** View fields to
|
|
699
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
652
700
|
fields?: Array<string>;
|
|
653
|
-
/** Exact UIView class names
|
|
701
|
+
/** Exact UIView class names to prune. */
|
|
654
702
|
skipClasses?: Array<string>;
|
|
655
|
-
/** Class name prefixes to prune
|
|
703
|
+
/** Class name prefixes to prune. */
|
|
656
704
|
skipClassPrefixes?: Array<string>;
|
|
657
|
-
/**
|
|
705
|
+
/** Max serialization depth (default 150). */
|
|
658
706
|
maxDepth?: number;
|
|
659
|
-
/** true
|
|
707
|
+
/** true: touch-receiving view (UIKit hit-test). false (default): deepest visible view. */
|
|
660
708
|
hitTest?: boolean;
|
|
661
709
|
};
|
|
662
710
|
"network-capture-start": {
|
|
663
|
-
/** Device ID from list-devices
|
|
711
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
664
712
|
udid: string;
|
|
665
|
-
/**
|
|
713
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
666
714
|
bundleId: string;
|
|
667
|
-
/**
|
|
715
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
668
716
|
port?: number;
|
|
669
|
-
/**
|
|
717
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
670
718
|
layer?: "js" | "native";
|
|
671
|
-
/**
|
|
719
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
672
720
|
logicalDeviceId?: string;
|
|
673
721
|
};
|
|
674
722
|
"network-capture-stop": {
|
|
675
|
-
/** Device ID from list-devices
|
|
723
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
676
724
|
udid: string;
|
|
677
|
-
/**
|
|
725
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
678
726
|
bundleId: string;
|
|
679
|
-
/**
|
|
727
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
680
728
|
port?: number;
|
|
681
|
-
/**
|
|
729
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
682
730
|
layer?: "js" | "native";
|
|
683
|
-
/**
|
|
731
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
684
732
|
logicalDeviceId?: string;
|
|
685
733
|
};
|
|
686
734
|
"network-conditions": {
|
|
687
|
-
/** Device ID from list-devices
|
|
735
|
+
/** Device ID from `list-devices`. */
|
|
688
736
|
udid: string;
|
|
689
|
-
/**
|
|
737
|
+
/** App bundle ID (required on iOS; ignored elsewhere). */
|
|
690
738
|
bundleId?: string;
|
|
691
|
-
/** Metro port
|
|
739
|
+
/** Metro port exempt from shaping (omit for device default, usually 8081). */
|
|
692
740
|
port?: number;
|
|
693
|
-
/**
|
|
741
|
+
/** Added latency in ms. */
|
|
694
742
|
latencyMs?: number;
|
|
695
|
-
/** Download
|
|
743
|
+
/** Download cap in kbps. */
|
|
696
744
|
downloadKbps?: number;
|
|
697
|
-
/** Upload
|
|
745
|
+
/** Upload cap in kbps. */
|
|
698
746
|
uploadKbps?: number;
|
|
699
|
-
/**
|
|
747
|
+
/** Simulate offline (on Android, `adb reverse` ports stay reachable while Metro at `10.0.2.2` does not; `false` alone resets conditions). */
|
|
700
748
|
offline?: boolean;
|
|
701
749
|
};
|
|
702
750
|
"open-url": {
|
|
703
|
-
/**
|
|
751
|
+
/** Device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, or Chromium id). */
|
|
704
752
|
udid: string;
|
|
705
|
-
/** URL or scheme
|
|
753
|
+
/** URL or custom scheme (e.g. https://example.com, myapp://path). */
|
|
706
754
|
url: string;
|
|
707
|
-
/** Physical iOS only:
|
|
755
|
+
/** Physical iOS only: receiving app (defaults to Safari for http/https; required otherwise). */
|
|
708
756
|
bundleId?: string;
|
|
709
757
|
};
|
|
710
758
|
paste: {
|
|
711
|
-
/**
|
|
759
|
+
/** Device id from `list-devices` (iOS simulator UDID, Android emulator serial, or Mac app id). */
|
|
712
760
|
udid: string;
|
|
713
|
-
/** Text to
|
|
761
|
+
/** Text to paste. Supports `{{secret:<NAME>}}` placeholders resolved server-side (never ask the user for plaintext). */
|
|
714
762
|
text: string;
|
|
715
763
|
};
|
|
716
764
|
"profiler-combined-report": {
|
|
717
|
-
/** Metro port
|
|
765
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
718
766
|
port?: number;
|
|
719
767
|
/** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
|
|
720
768
|
device_id: string;
|
|
721
769
|
};
|
|
722
770
|
"profiler-commit-query": {
|
|
723
|
-
/** Metro port
|
|
771
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
724
772
|
port?: number;
|
|
725
773
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
726
774
|
device_id: string;
|
|
727
|
-
/** Query mode
|
|
775
|
+
/** Query mode. */
|
|
728
776
|
mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
|
|
729
|
-
/** Component name
|
|
777
|
+
/** Component name (optional filter for `render_counts`). */
|
|
730
778
|
component_name?: string;
|
|
731
|
-
/**
|
|
779
|
+
/** Range in ms since profiling started. */
|
|
732
780
|
time_range_ms?: {
|
|
733
|
-
/** Start
|
|
781
|
+
/** Start ms. */
|
|
734
782
|
start: number;
|
|
735
|
-
/** End
|
|
783
|
+
/** End ms. */
|
|
736
784
|
end: number;
|
|
737
785
|
};
|
|
738
|
-
/** Commit index */
|
|
786
|
+
/** Commit index. */
|
|
739
787
|
commit_index?: number | null;
|
|
740
|
-
/** Max results
|
|
788
|
+
/** Max results (default 20; unlimited for `by_index`). */
|
|
741
789
|
top_n?: number;
|
|
742
790
|
};
|
|
743
791
|
"profiler-cpu-query": {
|
|
744
|
-
/** Metro port
|
|
792
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
745
793
|
port?: number;
|
|
746
794
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
747
795
|
device_id: string;
|
|
748
|
-
/** Query mode
|
|
796
|
+
/** Query mode. */
|
|
749
797
|
mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
|
|
750
|
-
/**
|
|
798
|
+
/** Window in ms since profiling started (same clock as `profiler-commit-query`). */
|
|
751
799
|
time_window_ms?: {
|
|
752
|
-
/** Start
|
|
800
|
+
/** Start ms. */
|
|
753
801
|
start: number;
|
|
754
|
-
/** End
|
|
802
|
+
/** End ms. */
|
|
755
803
|
end: number;
|
|
756
804
|
};
|
|
757
|
-
/** Component name */
|
|
805
|
+
/** Component name. */
|
|
758
806
|
component_name?: string;
|
|
759
|
-
/** Function name */
|
|
807
|
+
/** Function name. */
|
|
760
808
|
function_name?: string;
|
|
761
|
-
/**
|
|
809
|
+
/** Max rows (default 15). */
|
|
762
810
|
top_n?: number;
|
|
763
|
-
/**
|
|
811
|
+
/** Include callers (`call_tree`). */
|
|
764
812
|
include_callers?: boolean;
|
|
765
|
-
/**
|
|
813
|
+
/** Only PascalCase React components. */
|
|
766
814
|
react_only?: boolean;
|
|
767
815
|
};
|
|
768
816
|
"profiler-load": {
|
|
769
|
-
/**
|
|
817
|
+
/** `list`, `load_react`, or `load_native`. */
|
|
770
818
|
mode: "list" | "load_react" | "load_native";
|
|
771
|
-
/**
|
|
819
|
+
/** Session ID from `list` (required for `load_*`). */
|
|
772
820
|
session_id?: string;
|
|
773
|
-
/** Metro port
|
|
821
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
774
822
|
port?: number;
|
|
775
|
-
/**
|
|
823
|
+
/** Device id from `list-devices` to bind the loaded session to. */
|
|
776
824
|
device_id: string;
|
|
777
|
-
/** Android package name
|
|
825
|
+
/** Android package name for legacy `.pftrace` sessions without metadata. */
|
|
778
826
|
app_process?: string;
|
|
779
827
|
};
|
|
780
828
|
"profiler-stack-query": {
|
|
781
829
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
782
830
|
device_id: string;
|
|
783
|
-
/** Query mode
|
|
831
|
+
/** Query mode. */
|
|
784
832
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
785
|
-
/** 0-based
|
|
833
|
+
/** 0-based hang index. */
|
|
786
834
|
hang_index?: number | null;
|
|
787
|
-
/** Native function name */
|
|
835
|
+
/** Native function name. */
|
|
788
836
|
function_name?: string;
|
|
789
|
-
/** Thread filter
|
|
837
|
+
/** Thread filter (substring for `thread_breakdown`; exact raw name or `"main"` for `function_callers`). */
|
|
790
838
|
thread?: string;
|
|
791
|
-
/** Object type filter */
|
|
839
|
+
/** Object type filter (`leak_stacks`). */
|
|
792
840
|
object_type?: string;
|
|
793
|
-
/** Max results
|
|
841
|
+
/** Max results (default 15). */
|
|
794
842
|
top_n?: number;
|
|
795
843
|
};
|
|
796
844
|
propose_variant: {
|
|
@@ -827,21 +875,21 @@ export interface ArgentToolArgs {
|
|
|
827
875
|
};
|
|
828
876
|
};
|
|
829
877
|
"react-profiler-analyze": {
|
|
830
|
-
/** Metro port
|
|
878
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
831
879
|
port?: number;
|
|
832
|
-
/** Device ID
|
|
880
|
+
/** Device ID from list-devices used for the profile (Mac app: its list-devices ID). */
|
|
833
881
|
device_id: string;
|
|
834
|
-
/** Absolute path to the RN project root
|
|
882
|
+
/** Absolute path to the RN project root. */
|
|
835
883
|
project_root: string;
|
|
836
|
-
/**
|
|
884
|
+
/** Fallback platform for source lookup if absent from recording. */
|
|
837
885
|
platform?: "ios" | "android" | "macos";
|
|
838
|
-
/**
|
|
886
|
+
/** RN version (e.g. "0.73.4"). */
|
|
839
887
|
rn_version?: string;
|
|
840
|
-
/** User actions to annotate
|
|
888
|
+
/** User actions to annotate report commits. */
|
|
841
889
|
annotations?: Array<{
|
|
842
|
-
/**
|
|
890
|
+
/** Ms since profiling started (`tapTimestampMs - startedAtEpochMs`). */
|
|
843
891
|
offsetMs: number;
|
|
844
|
-
/**
|
|
892
|
+
/** Action label. */
|
|
845
893
|
label: string;
|
|
846
894
|
}>;
|
|
847
895
|
};
|
|
@@ -852,7 +900,7 @@ export interface ArgentToolArgs {
|
|
|
852
900
|
project_root: string;
|
|
853
901
|
};
|
|
854
902
|
"react-profiler-cpu-summary": {
|
|
855
|
-
/** Metro port
|
|
903
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
856
904
|
port?: number;
|
|
857
905
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
858
906
|
device_id: string;
|
|
@@ -862,7 +910,7 @@ export interface ArgentToolArgs {
|
|
|
862
910
|
react_only?: boolean;
|
|
863
911
|
};
|
|
864
912
|
"react-profiler-fiber-tree": {
|
|
865
|
-
/** Metro port
|
|
913
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
866
914
|
port?: number;
|
|
867
915
|
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
868
916
|
device_id: string;
|
|
@@ -872,7 +920,7 @@ export interface ArgentToolArgs {
|
|
|
872
920
|
filter?: string;
|
|
873
921
|
};
|
|
874
922
|
"react-profiler-renders": {
|
|
875
|
-
/** Metro port
|
|
923
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
876
924
|
port?: number;
|
|
877
925
|
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
878
926
|
device_id: string;
|
|
@@ -880,43 +928,43 @@ export interface ArgentToolArgs {
|
|
|
880
928
|
top_n?: number;
|
|
881
929
|
};
|
|
882
930
|
"react-profiler-start": {
|
|
883
|
-
/** Metro port
|
|
931
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
884
932
|
port?: number;
|
|
885
|
-
/** Device ID from list-devices, including a Mac app ID
|
|
933
|
+
/** Device ID from list-devices, including a Mac app ID (or `logicalDeviceId` on shared Metro if requested). */
|
|
886
934
|
device_id: string;
|
|
887
|
-
/** CPU sampling interval in microseconds */
|
|
935
|
+
/** CPU sampling interval in microseconds. */
|
|
888
936
|
sample_interval_us?: number;
|
|
889
|
-
/** Take over
|
|
937
|
+
/** Take over another active fresh session (ask user approval first). */
|
|
890
938
|
force?: boolean;
|
|
891
939
|
};
|
|
892
940
|
"react-profiler-status": {
|
|
893
|
-
/** Metro port
|
|
941
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
894
942
|
port?: number;
|
|
895
943
|
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
896
944
|
device_id: string;
|
|
897
945
|
};
|
|
898
946
|
"react-profiler-stop": {
|
|
899
|
-
/** Metro port
|
|
947
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
900
948
|
port?: number;
|
|
901
949
|
/** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
|
|
902
950
|
device_id: string;
|
|
903
951
|
};
|
|
904
952
|
"reinstall-app": {
|
|
905
|
-
/**
|
|
953
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
906
954
|
udid: string;
|
|
907
|
-
/**
|
|
955
|
+
/** Bundle id (iOS), package name (Android), component id (Vega), or bundleName (HarmonyOS). */
|
|
908
956
|
bundleId: string;
|
|
909
|
-
/** Path to
|
|
957
|
+
/** Path to `.app` (iOS), `.apk` (Android), `.vpkg` (Vega), or `.hap` (HarmonyOS). */
|
|
910
958
|
appPath: string;
|
|
911
959
|
};
|
|
912
960
|
"restart-app": {
|
|
913
|
-
/** Target device id from `list-devices
|
|
961
|
+
/** Target device id from `list-devices`. */
|
|
914
962
|
udid: string;
|
|
915
|
-
/** App identifier
|
|
963
|
+
/** App identifier (iOS/Mac app bundle id, Android package name, Vega interactive component app id, or HarmonyOS bundle name). */
|
|
916
964
|
bundleId: string;
|
|
917
|
-
/** Android
|
|
965
|
+
/** Android only: Activity name to relaunch (default: launcher activity). */
|
|
918
966
|
activity?: string;
|
|
919
|
-
/** Apple
|
|
967
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. */
|
|
920
968
|
launchArgs?: Array<string>;
|
|
921
969
|
};
|
|
922
970
|
rotate: {
|
|
@@ -926,30 +974,30 @@ export interface ArgentToolArgs {
|
|
|
926
974
|
orientation: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
927
975
|
};
|
|
928
976
|
"run-sequence": {
|
|
929
|
-
/** Target device id from `list-devices
|
|
977
|
+
/** Target device id from `list-devices`, shared across all steps. */
|
|
930
978
|
udid: string;
|
|
931
|
-
/** Ordered
|
|
979
|
+
/** Ordered steps to execute. */
|
|
932
980
|
steps: Array<{
|
|
933
|
-
/**
|
|
981
|
+
/** Allowed tool name (see description). */
|
|
934
982
|
tool: string;
|
|
935
|
-
/** Tool arguments (
|
|
983
|
+
/** Tool arguments (omit `udid`, injected automatically). */
|
|
936
984
|
args: {
|
|
937
985
|
[key: string]: unknown;
|
|
938
986
|
};
|
|
939
|
-
/**
|
|
987
|
+
/** Extra pause in ms after step settle (default 100). */
|
|
940
988
|
delayMs?: number;
|
|
941
989
|
}>;
|
|
942
|
-
/** Wait up to 1000ms
|
|
990
|
+
/** Wait up to 1000ms for tree settle between screen-changing steps (default true). */
|
|
943
991
|
settle?: boolean;
|
|
944
992
|
};
|
|
945
993
|
"screen-recording-start": {
|
|
946
|
-
/** Target ID from `list-devices
|
|
994
|
+
/** Target ID from `list-devices` (Mac app: `macos-app-<bundle id>`). */
|
|
947
995
|
udid: string;
|
|
948
|
-
/** Auto-stop cap in seconds (default 180).
|
|
996
|
+
/** Auto-stop cap in seconds (default 180). */
|
|
949
997
|
timeLimitSeconds?: number;
|
|
950
|
-
/**
|
|
998
|
+
/** Collapse idle unchanged stretches after 1s (default true; false = real-time). */
|
|
951
999
|
trimStatic?: boolean;
|
|
952
|
-
/** Draw touch markers
|
|
1000
|
+
/** Draw touch markers (default true; unsupported on physical iPhones). Mac apps: shows pointer, click ring, and hold dot. */
|
|
953
1001
|
showTouches?: boolean;
|
|
954
1002
|
};
|
|
955
1003
|
"screen-recording-stop": {
|
|
@@ -957,41 +1005,41 @@ export interface ArgentToolArgs {
|
|
|
957
1005
|
udid: string;
|
|
958
1006
|
};
|
|
959
1007
|
screenshot: {
|
|
960
|
-
/** Target device id from `list-devices
|
|
1008
|
+
/** Target device id from `list-devices`. */
|
|
961
1009
|
udid: string;
|
|
962
|
-
/** Orientation override
|
|
1010
|
+
/** Orientation override (rarely needed; captures already follow UI orientation). Rejected on HarmonyOS (captures display in current orientation). Ignored on physical iPhones. */
|
|
963
1011
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
964
|
-
/** Scale factor
|
|
1012
|
+
/** Scale factor (default 0.25 on iOS/Android/HarmonyOS or `ARGENT_SCREENSHOT_SCALE`, 576px long side on TV, 1.0 on Chromium, <=768px on Mac). */
|
|
965
1013
|
scale?: number;
|
|
966
|
-
/** Set false only when
|
|
1014
|
+
/** Set false only when saving a full-res (`scale: 1.0`) baseline/current for `screenshot-diff`. */
|
|
967
1015
|
includeImageInContext?: boolean;
|
|
968
|
-
/**
|
|
1016
|
+
/** Chromium only: downscaler when scale < 1 (default lanczos3). */
|
|
969
1017
|
downscaler?: "lanczos3" | "box" | "bilinear" | "nearest";
|
|
970
1018
|
};
|
|
971
1019
|
"screenshot-diff": {
|
|
972
|
-
/**
|
|
1020
|
+
/** Saved baseline PNG path (omit when `captureBaseline: true`). */
|
|
973
1021
|
baselinePath?: string;
|
|
974
|
-
/**
|
|
1022
|
+
/** Saved current PNG path (omit when `captureCurrent: true`). */
|
|
975
1023
|
currentPath?: string;
|
|
976
|
-
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or
|
|
1024
|
+
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or Mac app id). */
|
|
977
1025
|
udid: string;
|
|
978
|
-
/** Capture
|
|
1026
|
+
/** Capture baseline live from the device, at full resolution (mutually exclusive with `captureCurrent`). */
|
|
979
1027
|
captureBaseline?: boolean;
|
|
980
|
-
/** Capture
|
|
1028
|
+
/** Capture current live from the device, at full resolution (mutually exclusive with `captureBaseline`). */
|
|
981
1029
|
captureCurrent?: boolean;
|
|
982
|
-
/** Orientation override for live
|
|
1030
|
+
/** Orientation override for live captures. Rejected on HarmonyOS. Ignored on physical iPhones. */
|
|
983
1031
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
984
|
-
/**
|
|
1032
|
+
/** Output directory for diff artifacts (default: temp dir). */
|
|
985
1033
|
outputDir?: string;
|
|
986
1034
|
};
|
|
987
1035
|
"settings-permissions": {
|
|
988
|
-
/**
|
|
1036
|
+
/** Device id from `list-devices` (iOS simulator UDID or Android serial). */
|
|
989
1037
|
udid: string;
|
|
990
|
-
/** `grant` pre-
|
|
1038
|
+
/** `grant` (pre-authorize), `deny`, or `reset` (re-prompt on next use). */
|
|
991
1039
|
action: "grant" | "deny" | "reset";
|
|
992
|
-
/**
|
|
1040
|
+
/** Permission name (`notifications` = Android-only; `reminders` = iOS-only). */
|
|
993
1041
|
permission: "camera" | "microphone" | "photos" | "contacts" | "notifications" | "calendar" | "location" | "location-always" | "media-library" | "motion" | "reminders";
|
|
994
|
-
/**
|
|
1042
|
+
/** Target app bundle id (iOS) or package name (Android). */
|
|
995
1043
|
bundleId: string;
|
|
996
1044
|
};
|
|
997
1045
|
shake: {
|
|
@@ -1019,11 +1067,11 @@ export interface ArgentToolArgs {
|
|
|
1019
1067
|
bundleId: string;
|
|
1020
1068
|
};
|
|
1021
1069
|
"tv-remote": {
|
|
1022
|
-
/**
|
|
1070
|
+
/** TV device id from `list-devices` (Apple TV, Android TV, or Vega). */
|
|
1023
1071
|
udid: string;
|
|
1024
|
-
/**
|
|
1072
|
+
/** Single remote button or array path run in one call (e.g. ["up","right","select"]; prefer an array over repeated calls). */
|
|
1025
1073
|
button: "up" | "down" | "left" | "right" | "select" | "back" | "home" | "menu" | "playPause" | "rewind" | "fastForward" | "next" | "previous" | "volumeUp" | "volumeDown" | "mute" | Array<"up" | "down" | "left" | "right" | "select" | "back" | "home" | "menu" | "playPause" | "rewind" | "fastForward" | "next" | "previous" | "volumeUp" | "volumeDown" | "mute">;
|
|
1026
|
-
/** Repeat
|
|
1074
|
+
/** Repeat `button` N times (default 1, e.g. `{ button: "down", repeat: 12 }`). */
|
|
1027
1075
|
repeat?: number;
|
|
1028
1076
|
};
|
|
1029
1077
|
"ui-tree": {
|
|
@@ -1035,21 +1083,21 @@ export interface ArgentToolArgs {
|
|
|
1035
1083
|
target?: "auto" | "global" | "local" | "both";
|
|
1036
1084
|
};
|
|
1037
1085
|
"view-network-logs": {
|
|
1038
|
-
/** Metro port
|
|
1086
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1039
1087
|
port?: number;
|
|
1040
|
-
/** Device ID from list-devices
|
|
1088
|
+
/** Device ID from `list-devices` (or `logicalDeviceId` if shared Metro capture used it); Mac app: Mac app id `macos-app-<bundle id>`. */
|
|
1041
1089
|
device_id: string;
|
|
1042
|
-
/**
|
|
1090
|
+
/** 0-based page index, or `"latest"`/null for newest (50 entries/page). */
|
|
1043
1091
|
pageIndex?: number | "latest" | null;
|
|
1044
1092
|
};
|
|
1045
1093
|
"view-network-request-details": {
|
|
1046
|
-
/** Metro port
|
|
1094
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1047
1095
|
port?: number;
|
|
1048
|
-
/** Device ID for the
|
|
1096
|
+
/** Device ID for the log (or `logicalDeviceId` if JS capture used it); Mac app: Mac app id. */
|
|
1049
1097
|
device_id: string;
|
|
1050
|
-
/** Request ID from
|
|
1098
|
+
/** Request ID from `view-network-logs`, `native-network-logs`, or `await-network-request`. */
|
|
1051
1099
|
requestId: string;
|
|
1052
|
-
/**
|
|
1100
|
+
/** Include response body (default true). */
|
|
1053
1101
|
includeBody?: boolean;
|
|
1054
1102
|
};
|
|
1055
1103
|
/** @deprecated Renamed to `e2e-add-echo`. */
|