@swmansion/argent 0.35.1-next.16 → 0.35.1-next.18
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/dist/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/mcp-server.mjs +1 -1
- package/dist/tool-args.generated.d.ts +261 -259
- package/dist/tool-server.cjs +1020 -1165
- package/package.json +2 -2
|
@@ -16,23 +16,23 @@ 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; full URL is returned). */
|
|
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 (default
|
|
31
|
+
/** `complete` (default, incl. HTTP errors), `failed` (network error), or `any`. */
|
|
32
32
|
outcome?: "complete" | "failed" | "any";
|
|
33
|
-
/**
|
|
33
|
+
/** Timeout in ms (default 10000). */
|
|
34
34
|
timeoutMs?: number;
|
|
35
|
-
/**
|
|
35
|
+
/** Poll interval in ms (default 400). */
|
|
36
36
|
pollIntervalMs?: number;
|
|
37
37
|
};
|
|
38
38
|
"await-screen-idle": {
|
|
@@ -117,27 +117,27 @@ export interface ArgentToolArgs {
|
|
|
117
117
|
button: "home" | "back" | "power" | "volumeUp" | "volumeDown" | "appSwitch" | "actionButton";
|
|
118
118
|
};
|
|
119
119
|
"chromium-cookies": {
|
|
120
|
-
/** Chromium device id
|
|
120
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
121
121
|
udid: string;
|
|
122
|
-
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies. */
|
|
122
|
+
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies across all domains (ignores url/domain). */
|
|
123
123
|
action: "get" | "set" | "delete" | "clear";
|
|
124
|
-
/** Cookie name. */
|
|
124
|
+
/** Cookie name (required for `set`/`delete`). */
|
|
125
125
|
name?: string;
|
|
126
|
-
/** Cookie value. */
|
|
126
|
+
/** Cookie value (required for `set`). */
|
|
127
127
|
value?: string;
|
|
128
|
-
/**
|
|
128
|
+
/** URL filter for `get` (defaults to the active page) or scope for `set`/`delete`. */
|
|
129
129
|
url?: string;
|
|
130
|
-
/**
|
|
130
|
+
/** Domain scope (`set`/`delete`). */
|
|
131
131
|
domain?: string;
|
|
132
|
-
/**
|
|
132
|
+
/** Path scope (default `/`). */
|
|
133
133
|
path?: string;
|
|
134
|
-
/**
|
|
134
|
+
/** Secure flag (`set`). */
|
|
135
135
|
secure?: boolean;
|
|
136
|
-
/**
|
|
136
|
+
/** HttpOnly flag (`set`). */
|
|
137
137
|
httpOnly?: boolean;
|
|
138
|
-
/**
|
|
138
|
+
/** SameSite policy (`set`). */
|
|
139
139
|
sameSite?: "Strict" | "Lax" | "None";
|
|
140
|
-
/**
|
|
140
|
+
/** Unix expiry in seconds (`set`; omit for session). */
|
|
141
141
|
expires?: number;
|
|
142
142
|
};
|
|
143
143
|
"chromium-storage": {
|
|
@@ -153,81 +153,81 @@ export interface ArgentToolArgs {
|
|
|
153
153
|
value?: string;
|
|
154
154
|
};
|
|
155
155
|
"chromium-tabs": {
|
|
156
|
-
/** Chromium device id
|
|
156
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
157
157
|
udid: string;
|
|
158
|
-
/**
|
|
158
|
+
/** Tab operation. */
|
|
159
159
|
action: "list" | "select" | "new" | "close";
|
|
160
|
-
/**
|
|
160
|
+
/** Tab id (e.g. `t2`) or label (`select` required; `close` defaults to active). */
|
|
161
161
|
tab?: string;
|
|
162
|
-
/** `new`
|
|
162
|
+
/** URL for `new` (default `about:blank`). */
|
|
163
163
|
url?: string;
|
|
164
|
-
/**
|
|
164
|
+
/** Optional alias label for `new`. */
|
|
165
165
|
label?: string;
|
|
166
166
|
};
|
|
167
167
|
"debugger-component-tree": {
|
|
168
|
-
/** Metro port
|
|
168
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
169
169
|
port?: number;
|
|
170
|
-
/** Device id
|
|
170
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
171
171
|
device_id: string;
|
|
172
|
-
/**
|
|
172
|
+
/** Only on-screen components (default true; false includes off-screen mounted nodes). */
|
|
173
173
|
onScreenOnly?: boolean;
|
|
174
|
-
/**
|
|
174
|
+
/** Max nodes to return (collapses single-child wrappers when exceeded). */
|
|
175
175
|
maxNodes?: number;
|
|
176
|
-
/**
|
|
176
|
+
/** Append filtered/skipped fiber counts summary. */
|
|
177
177
|
includeSkipped?: boolean;
|
|
178
178
|
};
|
|
179
179
|
"debugger-connect": {
|
|
180
|
-
/** Metro port
|
|
180
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
181
181
|
port?: number;
|
|
182
|
-
/** Device id from list-devices
|
|
182
|
+
/** 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
183
|
device_id: string;
|
|
184
184
|
};
|
|
185
185
|
"debugger-evaluate": {
|
|
186
|
-
/** Metro port
|
|
186
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
187
187
|
port?: number;
|
|
188
|
-
/** Device id
|
|
188
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
189
189
|
device_id: string;
|
|
190
|
-
/** JavaScript expression to evaluate
|
|
190
|
+
/** JavaScript expression to evaluate. */
|
|
191
191
|
expression: string;
|
|
192
192
|
};
|
|
193
193
|
"debugger-inspect-element": {
|
|
194
|
-
/** Metro port
|
|
194
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
195
195
|
port?: number;
|
|
196
|
-
/** Device id
|
|
196
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
197
197
|
device_id: string;
|
|
198
|
-
/**
|
|
198
|
+
/** X in logical pixels from screen left (or Mac app window left, title bar included). */
|
|
199
199
|
x: number;
|
|
200
|
-
/**
|
|
200
|
+
/** Y in logical pixels from screen top (or Mac app window top, title bar included). */
|
|
201
201
|
y: number;
|
|
202
|
-
/**
|
|
202
|
+
/** Source context lines around each component. */
|
|
203
203
|
contextLines?: number;
|
|
204
|
-
/**
|
|
204
|
+
/** Symbolicate via Metro and include code snippets (false = raw bundle frames). */
|
|
205
205
|
resolveSourceMaps?: boolean;
|
|
206
|
-
/**
|
|
206
|
+
/** Max hierarchy items, most specific first (default 35). */
|
|
207
207
|
maxItems?: number;
|
|
208
|
-
/**
|
|
208
|
+
/** Keep normally filtered items marked `skipped: true`. */
|
|
209
209
|
includeSkipped?: boolean;
|
|
210
210
|
};
|
|
211
211
|
"debugger-log-registry": {
|
|
212
|
-
/** Metro port
|
|
212
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
213
213
|
port?: number;
|
|
214
|
-
/** Device id
|
|
214
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
215
215
|
device_id: string;
|
|
216
|
-
/**
|
|
216
|
+
/** Newest entries to inline (default 20). */
|
|
217
217
|
tail?: number;
|
|
218
|
-
/**
|
|
218
|
+
/** Filter inline `entries` by level (e.g. ["warning", "error"]). */
|
|
219
219
|
levels?: Array<"log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd">;
|
|
220
220
|
};
|
|
221
221
|
"debugger-reload-metro": {
|
|
222
|
-
/** Metro port
|
|
222
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
223
223
|
port?: number;
|
|
224
224
|
/** Device id used with debugger-connect. For macOS, use the Mac app id. */
|
|
225
225
|
device_id: string;
|
|
226
226
|
};
|
|
227
227
|
"debugger-status": {
|
|
228
|
-
/** Metro port
|
|
228
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
229
229
|
port?: number;
|
|
230
|
-
/** Device id
|
|
230
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
231
231
|
device_id: string;
|
|
232
232
|
};
|
|
233
233
|
describe: {
|
|
@@ -251,15 +251,15 @@ export interface ArgentToolArgs {
|
|
|
251
251
|
shutdown?: boolean;
|
|
252
252
|
};
|
|
253
253
|
"e2e-add-script": {
|
|
254
|
-
/** E2E test name
|
|
254
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
255
255
|
name: string;
|
|
256
|
-
/**
|
|
256
|
+
/** Project root from `e2e-start-recording`. */
|
|
257
257
|
project_root: string;
|
|
258
|
-
/**
|
|
258
|
+
/** Script path (.mjs/.mts/.js/.ts) relative to the test YAML. */
|
|
259
259
|
path: string;
|
|
260
|
-
/**
|
|
260
|
+
/** Timeout in ms (default 30000, min 100). */
|
|
261
261
|
timeout?: number;
|
|
262
|
-
/**
|
|
262
|
+
/** Env overrides (supports `{{secret:NAME}}` and `{{output:PATH}}`). */
|
|
263
263
|
env?: {
|
|
264
264
|
[key: string]: string;
|
|
265
265
|
};
|
|
@@ -267,37 +267,37 @@ export interface ArgentToolArgs {
|
|
|
267
267
|
shutdown?: boolean;
|
|
268
268
|
};
|
|
269
269
|
"e2e-add-step": {
|
|
270
|
-
/**
|
|
270
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
271
271
|
name: string;
|
|
272
|
-
/**
|
|
272
|
+
/** Project root from `e2e-start-recording`. */
|
|
273
273
|
project_root: string;
|
|
274
|
-
/** MCP tool to
|
|
274
|
+
/** MCP tool id to run and record (e.g. "gesture-tap"; call `e2e-add-script` directly for scripts). */
|
|
275
275
|
command: string;
|
|
276
|
-
/**
|
|
276
|
+
/** JSON string of tool arguments (omit if none). */
|
|
277
277
|
args?: string;
|
|
278
|
-
/**
|
|
278
|
+
/** Replay delay in ms before this step. */
|
|
279
279
|
delayMs?: number;
|
|
280
280
|
/** Save the call in the shutdown list. Pending fragment cleanup runs before the call. stepCount counts shutdown entries. */
|
|
281
281
|
shutdown?: boolean;
|
|
282
282
|
};
|
|
283
283
|
"e2e-execute": {
|
|
284
|
-
/**
|
|
284
|
+
/** Saved e2e test name in `<project_root>/.argent/e2e/` (or `.argent/flows/`). */
|
|
285
285
|
name?: string;
|
|
286
|
-
/** Absolute path to the
|
|
286
|
+
/** Absolute path to the project root (script cwd; with e2e_test_path, run:/script:/baselines resolve beside the YAML). */
|
|
287
287
|
project_root: string;
|
|
288
|
-
/**
|
|
288
|
+
/** Internal; leave unset (derived from `project_root` and `name`). */
|
|
289
289
|
e2e_test_file?: string;
|
|
290
|
-
/** Absolute path to an e2e test
|
|
290
|
+
/** Absolute path to an e2e test `.yaml` on the client. */
|
|
291
291
|
e2e_test_path?: string;
|
|
292
|
-
/**
|
|
292
|
+
/** 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. */
|
|
293
293
|
device?: string;
|
|
294
|
-
/**
|
|
294
|
+
/** 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). */
|
|
295
295
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | "ios-remote";
|
|
296
|
-
/**
|
|
296
|
+
/** Refresh screenshot baselines for `snapshot` steps instead of diffing. */
|
|
297
297
|
updateBaselines?: boolean;
|
|
298
|
-
/** Set
|
|
298
|
+
/** 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). */
|
|
299
299
|
prerequisiteAcknowledged?: boolean;
|
|
300
|
-
/** Script
|
|
300
|
+
/** Script env overrides (also for `run:` fragments). Supports `{{secret:NAME}}`. */
|
|
301
301
|
env?: {
|
|
302
302
|
[key: string]: string;
|
|
303
303
|
};
|
|
@@ -307,9 +307,9 @@ export interface ArgentToolArgs {
|
|
|
307
307
|
flow_file?: string;
|
|
308
308
|
};
|
|
309
309
|
"e2e-finish-recording": {
|
|
310
|
-
/**
|
|
310
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
311
311
|
name: string;
|
|
312
|
-
/**
|
|
312
|
+
/** Project root from `e2e-start-recording`. */
|
|
313
313
|
project_root: string;
|
|
314
314
|
};
|
|
315
315
|
"e2e-read-prerequisite": {
|
|
@@ -337,18 +337,18 @@ export interface ArgentToolArgs {
|
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
339
|
"e2e-start-recording": {
|
|
340
|
-
/**
|
|
340
|
+
/** E2E test name (letters, digits, `_`, `-`). */
|
|
341
341
|
name: string;
|
|
342
|
-
/** Absolute path to the project root
|
|
342
|
+
/** Absolute path to the project root containing `.argent/e2e/`. */
|
|
343
343
|
project_root: string;
|
|
344
|
-
/** Fragments only:
|
|
344
|
+
/** Fragments only: entry state assumed. Omit for standalone tests (Chromium records as a fragment, then add `launch: { chromium: <app path> }` and remove this). */
|
|
345
345
|
executionPrerequisite?: string;
|
|
346
|
-
/**
|
|
346
|
+
/** Supported target filter (`platform` and/or `runtimeKind`, ANDed). Omit for any. */
|
|
347
347
|
requires?: {
|
|
348
348
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
|
|
349
349
|
runtimeKind?: "mobile" | "tv";
|
|
350
350
|
};
|
|
351
|
-
/**
|
|
351
|
+
/** Top-level script env defaults. Supports `{{secret:NAME}}`. */
|
|
352
352
|
env?: {
|
|
353
353
|
[key: string]: string;
|
|
354
354
|
};
|
|
@@ -378,11 +378,11 @@ export interface ArgentToolArgs {
|
|
|
378
378
|
text: string;
|
|
379
379
|
};
|
|
380
380
|
fold: {
|
|
381
|
-
/**
|
|
381
|
+
/** Foldable device id from `list-devices` (iOS simulator UDID or Android emulator serial). */
|
|
382
382
|
udid: string;
|
|
383
|
-
/**
|
|
383
|
+
/** Target posture: `closed` (cover panel), `half-open`, or `open` (inner panel). */
|
|
384
384
|
posture?: "closed" | "half-open" | "open";
|
|
385
|
-
/**
|
|
385
|
+
/** Hinge angle in degrees (0 = closed, 180 = open). */
|
|
386
386
|
angle?: number;
|
|
387
387
|
};
|
|
388
388
|
"foreground-app": {
|
|
@@ -396,94 +396,94 @@ export interface ArgentToolArgs {
|
|
|
396
396
|
"gesture-custom": {
|
|
397
397
|
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
398
398
|
udid: string;
|
|
399
|
-
/** Starting
|
|
399
|
+
/** Starting screen edge for a single-finger system gesture (local iOS simulator). */
|
|
400
400
|
edge?: "top" | "right" | "bottom" | "left";
|
|
401
|
-
/**
|
|
401
|
+
/** Ordered touch events. */
|
|
402
402
|
events: Array<{
|
|
403
|
-
/** Touch event type */
|
|
403
|
+
/** Touch event type. */
|
|
404
404
|
type: "Down" | "Move" | "Up";
|
|
405
|
-
/**
|
|
405
|
+
/** Normalized x. */
|
|
406
406
|
x: number;
|
|
407
|
-
/**
|
|
407
|
+
/** Normalized y. */
|
|
408
408
|
y: number;
|
|
409
|
-
/** Second finger x
|
|
409
|
+
/** Second finger x. */
|
|
410
410
|
x2?: number;
|
|
411
|
-
/** Second finger y
|
|
411
|
+
/** Second finger y. */
|
|
412
412
|
y2?: number;
|
|
413
|
-
/** Delay before
|
|
413
|
+
/** Delay before event in ms (default 16). */
|
|
414
414
|
delayMs?: number;
|
|
415
415
|
}>;
|
|
416
|
-
/**
|
|
416
|
+
/** Insert N linearly interpolated Move events between consecutive events (default 0). */
|
|
417
417
|
interpolate?: number;
|
|
418
418
|
};
|
|
419
419
|
"gesture-drag": {
|
|
420
|
-
/**
|
|
420
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
421
421
|
udid: string;
|
|
422
|
-
/**
|
|
422
|
+
/** Start x. */
|
|
423
423
|
fromX: number;
|
|
424
|
-
/**
|
|
424
|
+
/** Start y. */
|
|
425
425
|
fromY: number;
|
|
426
|
-
/**
|
|
426
|
+
/** End x. */
|
|
427
427
|
toX: number;
|
|
428
|
-
/**
|
|
428
|
+
/** End y. */
|
|
429
429
|
toY: number;
|
|
430
|
-
/**
|
|
430
|
+
/** Drag duration in ms (default 300; 800 for a Mac app long press). */
|
|
431
431
|
durationMs?: number;
|
|
432
|
-
/**
|
|
432
|
+
/** Default true (constant speed). false decelerates into release to avoid fling. */
|
|
433
433
|
momentum?: boolean;
|
|
434
434
|
};
|
|
435
435
|
"gesture-pinch": {
|
|
436
|
-
/**
|
|
436
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
437
437
|
udid: string;
|
|
438
|
-
/**
|
|
438
|
+
/** Normalized center x. */
|
|
439
439
|
centerX: number;
|
|
440
|
-
/**
|
|
440
|
+
/** Normalized center y. */
|
|
441
441
|
centerY: number;
|
|
442
|
-
/** Initial
|
|
442
|
+
/** Initial normalized finger distance. */
|
|
443
443
|
startDistance: number;
|
|
444
|
-
/** Final distance
|
|
444
|
+
/** Final normalized finger distance (> start = zoom in). */
|
|
445
445
|
endDistance: number;
|
|
446
|
-
/**
|
|
446
|
+
/** Optional final center x (centroid drifts linearly). */
|
|
447
447
|
endCenterX?: number;
|
|
448
|
-
/**
|
|
448
|
+
/** Optional final center y. */
|
|
449
449
|
endCenterY?: number;
|
|
450
|
-
/**
|
|
450
|
+
/** Finger axis angle in degrees (0 = horizontal, 90 = vertical). */
|
|
451
451
|
angle?: number;
|
|
452
|
-
/**
|
|
452
|
+
/** Duration in ms (default 300); clamped to 1–15000ms on HarmonyOS. */
|
|
453
453
|
durationMs?: number;
|
|
454
454
|
};
|
|
455
455
|
"gesture-rotate": {
|
|
456
|
-
/**
|
|
456
|
+
/** Device id from `list-devices` (iOS UDID or Android serial). */
|
|
457
457
|
udid: string;
|
|
458
|
-
/**
|
|
458
|
+
/** Normalized rotation center x. */
|
|
459
459
|
centerX: number;
|
|
460
|
-
/**
|
|
460
|
+
/** Normalized rotation center y. */
|
|
461
461
|
centerY: number;
|
|
462
|
-
/**
|
|
462
|
+
/** Normalized finger orbit radius (e.g. 0.15). */
|
|
463
463
|
radius?: number;
|
|
464
|
-
/**
|
|
464
|
+
/** Horizontal radius fraction of screen width (pair with `radiusY`). */
|
|
465
465
|
radiusX?: number;
|
|
466
|
-
/**
|
|
466
|
+
/** Vertical radius fraction of screen height (pair with `radiusX`). */
|
|
467
467
|
radiusY?: number;
|
|
468
|
-
/**
|
|
468
|
+
/** Start angle in degrees (0 = right, 90 = down). */
|
|
469
469
|
startAngle: number;
|
|
470
|
-
/**
|
|
470
|
+
/** End angle in degrees (> startAngle = clockwise). */
|
|
471
471
|
endAngle: number;
|
|
472
|
-
/**
|
|
472
|
+
/** Duration in ms (default 300). */
|
|
473
473
|
durationMs?: number;
|
|
474
474
|
};
|
|
475
475
|
"gesture-scroll": {
|
|
476
|
-
/**
|
|
476
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
477
477
|
udid: string;
|
|
478
|
-
/**
|
|
478
|
+
/** Normalized anchor x over the scrollable element. */
|
|
479
479
|
x: number;
|
|
480
|
-
/**
|
|
480
|
+
/** Normalized anchor y. */
|
|
481
481
|
y: number;
|
|
482
|
-
/** Horizontal scroll
|
|
482
|
+
/** Horizontal scroll fraction (+ right, - left). */
|
|
483
483
|
deltaX?: number;
|
|
484
|
-
/** Vertical scroll
|
|
484
|
+
/** Vertical scroll fraction (+ down, - up; e.g. 0.5). */
|
|
485
485
|
deltaY?: number;
|
|
486
|
-
/**
|
|
486
|
+
/** Scroll duration in ms (default 300); ignored on Mac apps. */
|
|
487
487
|
durationMs?: number;
|
|
488
488
|
};
|
|
489
489
|
"gesture-swipe": {
|
|
@@ -521,8 +521,10 @@ export interface ArgentToolArgs {
|
|
|
521
521
|
udid: string;
|
|
522
522
|
/** 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). */
|
|
523
523
|
text?: string;
|
|
524
|
-
/** Named key. Cannot be combined with `text` (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). */
|
|
524
|
+
/** 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). */
|
|
525
525
|
key?: string;
|
|
526
|
+
/** 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. */
|
|
527
|
+
clear?: boolean;
|
|
526
528
|
/** Press `key` this many times in one call, e.g. `{ key: "backspace", repeat: 12 }`. Only valid with `key`. */
|
|
527
529
|
repeat?: number;
|
|
528
530
|
/** Delay in ms between key presses (default 50; ignored on platforms that type in one shot). */
|
|
@@ -570,21 +572,21 @@ export interface ArgentToolArgs {
|
|
|
570
572
|
udid: string;
|
|
571
573
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
572
574
|
bundleId: string;
|
|
573
|
-
/** UIView class name
|
|
575
|
+
/** Exact UIView class name (e.g. UIButton). */
|
|
574
576
|
className?: string;
|
|
575
|
-
/**
|
|
577
|
+
/** Exact accessibility identifier. */
|
|
576
578
|
identifier?: string;
|
|
577
|
-
/**
|
|
579
|
+
/** Exact accessibility label. */
|
|
578
580
|
label?: string;
|
|
579
|
-
/** UIView
|
|
581
|
+
/** UIView integer tag. */
|
|
580
582
|
tag?: number;
|
|
581
|
-
/** React Native nativeID
|
|
583
|
+
/** Exact React Native nativeID. */
|
|
582
584
|
nativeID?: string;
|
|
583
|
-
/** Include ancestor chain
|
|
585
|
+
/** Include ancestor chain (default true). */
|
|
584
586
|
includeAncestors?: boolean;
|
|
585
|
-
/** Include child views
|
|
587
|
+
/** Include child views (default true). */
|
|
586
588
|
includeChildren?: boolean;
|
|
587
|
-
/** View fields to
|
|
589
|
+
/** 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). */
|
|
588
590
|
fields?: Array<string>;
|
|
589
591
|
};
|
|
590
592
|
"native-full-hierarchy": {
|
|
@@ -592,25 +594,25 @@ export interface ArgentToolArgs {
|
|
|
592
594
|
udid: string;
|
|
593
595
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
594
596
|
bundleId: string;
|
|
595
|
-
/**
|
|
597
|
+
/** 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). */
|
|
596
598
|
fields?: Array<string>;
|
|
597
|
-
/** Exact UIView
|
|
599
|
+
/** Exact UIView classes to prune (e.g. ["UIImageView"]). */
|
|
598
600
|
skipClasses?: Array<string>;
|
|
599
|
-
/** Class
|
|
601
|
+
/** Class prefixes to prune (e.g. ["_TtGC7SwiftUI"] for SwiftUI; avoid broad "_UI"). */
|
|
600
602
|
skipClassPrefixes?: Array<string>;
|
|
601
|
-
/**
|
|
603
|
+
/** Max recursion depth (default 8). */
|
|
602
604
|
maxDepth?: number;
|
|
603
605
|
};
|
|
604
606
|
"native-network-logs": {
|
|
605
|
-
/** Device ID from list-devices
|
|
607
|
+
/** Device ID from `list-devices`: iOS simulator UDID, Android serial, or Mac app id (`macos-app-<bundle id>`). */
|
|
606
608
|
udid: string;
|
|
607
|
-
/**
|
|
609
|
+
/** Bundle ID (iOS) or package name (Android); on macOS, omit `macos-app-`. */
|
|
608
610
|
bundleId: string;
|
|
609
|
-
/**
|
|
611
|
+
/** Metro port to exclude from logs (omit for device default, usually 8081). */
|
|
610
612
|
port?: number;
|
|
611
|
-
/**
|
|
613
|
+
/** Newest requests to return oldest-first (default 50; 0 = status/totals only). */
|
|
612
614
|
limit?: number;
|
|
613
|
-
/** Hide
|
|
615
|
+
/** Hide current history from later lists (IDs still work in `view-network-request-details`). */
|
|
614
616
|
clear?: boolean;
|
|
615
617
|
};
|
|
616
618
|
"native-profiler-analyze": {
|
|
@@ -618,25 +620,25 @@ export interface ArgentToolArgs {
|
|
|
618
620
|
device_id: string;
|
|
619
621
|
};
|
|
620
622
|
"native-profiler-launch-analysis": {
|
|
621
|
-
/** measure
|
|
623
|
+
/** `measure`: 5 XCTest timed launches. `profile`: 1 Instruments App Launch trace. */
|
|
622
624
|
mode: "measure" | "profile";
|
|
623
|
-
/**
|
|
625
|
+
/** Installed Release build bundle ID (not built or installed by this tool). */
|
|
624
626
|
bundle_id: string;
|
|
625
|
-
/**
|
|
627
|
+
/** iPhone UDID (or booted simulator UDID with `allow_simulator: true`). */
|
|
626
628
|
device_id?: string;
|
|
627
|
-
/**
|
|
629
|
+
/** Allow booted simulator when no iPhone is selected. */
|
|
628
630
|
allow_simulator?: boolean;
|
|
629
|
-
/** profile mode only:
|
|
631
|
+
/** `profile` mode only: trace duration in s (default 8). */
|
|
630
632
|
duration_seconds?: number;
|
|
631
633
|
};
|
|
632
634
|
"native-profiler-start": {
|
|
633
635
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
634
636
|
device_id: string;
|
|
635
|
-
/** iOS
|
|
637
|
+
/** iOS executable/name or Android package (auto-detects foreground app if omitted); omit for Mac apps. */
|
|
636
638
|
app_process?: string;
|
|
637
|
-
/** iOS
|
|
639
|
+
/** iOS/Mac app Instruments `.tracetemplate` path or built-in name (e.g. "Time Profiler"; default: bundled template). */
|
|
638
640
|
template_path?: string;
|
|
639
|
-
/** iOS
|
|
641
|
+
/** iOS/Mac apps only: restart app with allocation stacks from launch (adds overhead; leave off for CPU/hang timing). */
|
|
640
642
|
malloc_stack_logging?: boolean;
|
|
641
643
|
};
|
|
642
644
|
"native-profiler-stop": {
|
|
@@ -648,21 +650,21 @@ export interface ArgentToolArgs {
|
|
|
648
650
|
udid: string;
|
|
649
651
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
650
652
|
bundleId: string;
|
|
651
|
-
/** Raw X
|
|
653
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
652
654
|
x: number;
|
|
653
|
-
/** Raw Y
|
|
655
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
654
656
|
y: number;
|
|
655
|
-
/** Include ancestor chain
|
|
657
|
+
/** Include ancestor chain (default true). */
|
|
656
658
|
includeAncestors?: boolean;
|
|
657
|
-
/** Include child views
|
|
659
|
+
/** Include child views (default false). */
|
|
658
660
|
includeChildren?: boolean;
|
|
659
|
-
/** View fields to
|
|
661
|
+
/** 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). */
|
|
660
662
|
fields?: Array<string>;
|
|
661
|
-
/** Exact UIView class names
|
|
663
|
+
/** Exact UIView class names to prune. */
|
|
662
664
|
skipClasses?: Array<string>;
|
|
663
|
-
/** Class name prefixes to prune
|
|
665
|
+
/** Class name prefixes to prune. */
|
|
664
666
|
skipClassPrefixes?: Array<string>;
|
|
665
|
-
/**
|
|
667
|
+
/** Max serialization depth (default 150). */
|
|
666
668
|
maxDepth?: number;
|
|
667
669
|
};
|
|
668
670
|
"native-view-at-point": {
|
|
@@ -670,157 +672,157 @@ export interface ArgentToolArgs {
|
|
|
670
672
|
udid: string;
|
|
671
673
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
672
674
|
bundleId: string;
|
|
673
|
-
/** Raw X
|
|
675
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
674
676
|
x: number;
|
|
675
|
-
/** Raw Y
|
|
677
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
676
678
|
y: number;
|
|
677
|
-
/** Include ancestor chain
|
|
679
|
+
/** Include ancestor chain (default true). */
|
|
678
680
|
includeAncestors?: boolean;
|
|
679
|
-
/** Include child views
|
|
681
|
+
/** Include child views (default false). */
|
|
680
682
|
includeChildren?: boolean;
|
|
681
|
-
/** View fields to
|
|
683
|
+
/** 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). */
|
|
682
684
|
fields?: Array<string>;
|
|
683
|
-
/** Exact UIView class names
|
|
685
|
+
/** Exact UIView class names to prune. */
|
|
684
686
|
skipClasses?: Array<string>;
|
|
685
|
-
/** Class name prefixes to prune
|
|
687
|
+
/** Class name prefixes to prune. */
|
|
686
688
|
skipClassPrefixes?: Array<string>;
|
|
687
|
-
/**
|
|
689
|
+
/** Max serialization depth (default 150). */
|
|
688
690
|
maxDepth?: number;
|
|
689
|
-
/** true
|
|
691
|
+
/** true: touch-receiving view (UIKit hit-test). false (default): deepest visible view. */
|
|
690
692
|
hitTest?: boolean;
|
|
691
693
|
};
|
|
692
694
|
"network-capture-start": {
|
|
693
|
-
/** Device ID from list-devices
|
|
695
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
694
696
|
udid: string;
|
|
695
|
-
/**
|
|
697
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
696
698
|
bundleId: string;
|
|
697
|
-
/**
|
|
699
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
698
700
|
port?: number;
|
|
699
|
-
/**
|
|
701
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
700
702
|
layer?: "js" | "native";
|
|
701
|
-
/**
|
|
703
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
702
704
|
logicalDeviceId?: string;
|
|
703
705
|
};
|
|
704
706
|
"network-capture-stop": {
|
|
705
|
-
/** Device ID from list-devices
|
|
707
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
706
708
|
udid: string;
|
|
707
|
-
/**
|
|
709
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
708
710
|
bundleId: string;
|
|
709
|
-
/**
|
|
711
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
710
712
|
port?: number;
|
|
711
|
-
/**
|
|
713
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
712
714
|
layer?: "js" | "native";
|
|
713
|
-
/**
|
|
715
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
714
716
|
logicalDeviceId?: string;
|
|
715
717
|
};
|
|
716
718
|
"network-conditions": {
|
|
717
|
-
/** Device ID from list-devices
|
|
719
|
+
/** Device ID from `list-devices`. */
|
|
718
720
|
udid: string;
|
|
719
|
-
/**
|
|
721
|
+
/** App bundle ID (required on iOS; ignored elsewhere). */
|
|
720
722
|
bundleId?: string;
|
|
721
|
-
/** Metro port
|
|
723
|
+
/** Metro port exempt from shaping (omit for device default, usually 8081). */
|
|
722
724
|
port?: number;
|
|
723
|
-
/**
|
|
725
|
+
/** Added latency in ms. */
|
|
724
726
|
latencyMs?: number;
|
|
725
|
-
/** Download
|
|
727
|
+
/** Download cap in kbps. */
|
|
726
728
|
downloadKbps?: number;
|
|
727
|
-
/** Upload
|
|
729
|
+
/** Upload cap in kbps. */
|
|
728
730
|
uploadKbps?: number;
|
|
729
|
-
/**
|
|
731
|
+
/** Simulate offline (on Android, `adb reverse` ports stay reachable while Metro at `10.0.2.2` does not; `false` alone resets conditions). */
|
|
730
732
|
offline?: boolean;
|
|
731
733
|
};
|
|
732
734
|
"open-url": {
|
|
733
|
-
/**
|
|
735
|
+
/** Device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, or Chromium id). */
|
|
734
736
|
udid: string;
|
|
735
|
-
/** URL or scheme
|
|
737
|
+
/** URL or custom scheme (e.g. https://example.com, myapp://path). */
|
|
736
738
|
url: string;
|
|
737
|
-
/** Physical iOS only:
|
|
739
|
+
/** Physical iOS only: receiving app (defaults to Safari for http/https; required otherwise). */
|
|
738
740
|
bundleId?: string;
|
|
739
741
|
};
|
|
740
742
|
paste: {
|
|
741
|
-
/**
|
|
743
|
+
/** Device id from `list-devices` (iOS simulator UDID, Android emulator serial, or Mac app id). */
|
|
742
744
|
udid: string;
|
|
743
|
-
/** Text to
|
|
745
|
+
/** Text to paste. Supports `{{secret:<NAME>}}` placeholders resolved server-side (never ask the user for plaintext). */
|
|
744
746
|
text: string;
|
|
745
747
|
};
|
|
746
748
|
"profiler-combined-report": {
|
|
747
|
-
/** Metro port
|
|
749
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
748
750
|
port?: number;
|
|
749
751
|
/** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
|
|
750
752
|
device_id: string;
|
|
751
753
|
};
|
|
752
754
|
"profiler-commit-query": {
|
|
753
|
-
/** Metro port
|
|
755
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
754
756
|
port?: number;
|
|
755
757
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
756
758
|
device_id: string;
|
|
757
|
-
/** Query mode
|
|
759
|
+
/** Query mode. */
|
|
758
760
|
mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
|
|
759
|
-
/** Component name
|
|
761
|
+
/** Component name (optional filter for `render_counts`). */
|
|
760
762
|
component_name?: string;
|
|
761
|
-
/**
|
|
763
|
+
/** Range in ms since profiling started. */
|
|
762
764
|
time_range_ms?: {
|
|
763
|
-
/** Start
|
|
765
|
+
/** Start ms. */
|
|
764
766
|
start: number;
|
|
765
|
-
/** End
|
|
767
|
+
/** End ms. */
|
|
766
768
|
end: number;
|
|
767
769
|
};
|
|
768
|
-
/** Commit index */
|
|
770
|
+
/** Commit index. */
|
|
769
771
|
commit_index?: number | null;
|
|
770
|
-
/** Max results
|
|
772
|
+
/** Max results (default 20; unlimited for `by_index`). */
|
|
771
773
|
top_n?: number;
|
|
772
774
|
};
|
|
773
775
|
"profiler-cpu-query": {
|
|
774
|
-
/** Metro port
|
|
776
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
775
777
|
port?: number;
|
|
776
778
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
777
779
|
device_id: string;
|
|
778
|
-
/** Query mode
|
|
780
|
+
/** Query mode. */
|
|
779
781
|
mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
|
|
780
|
-
/**
|
|
782
|
+
/** Window in ms since profiling started (same clock as `profiler-commit-query`). */
|
|
781
783
|
time_window_ms?: {
|
|
782
|
-
/** Start
|
|
784
|
+
/** Start ms. */
|
|
783
785
|
start: number;
|
|
784
|
-
/** End
|
|
786
|
+
/** End ms. */
|
|
785
787
|
end: number;
|
|
786
788
|
};
|
|
787
|
-
/** Component name */
|
|
789
|
+
/** Component name. */
|
|
788
790
|
component_name?: string;
|
|
789
|
-
/** Function name */
|
|
791
|
+
/** Function name. */
|
|
790
792
|
function_name?: string;
|
|
791
|
-
/**
|
|
793
|
+
/** Max rows (default 15). */
|
|
792
794
|
top_n?: number;
|
|
793
|
-
/**
|
|
795
|
+
/** Include callers (`call_tree`). */
|
|
794
796
|
include_callers?: boolean;
|
|
795
|
-
/**
|
|
797
|
+
/** Only PascalCase React components. */
|
|
796
798
|
react_only?: boolean;
|
|
797
799
|
};
|
|
798
800
|
"profiler-load": {
|
|
799
|
-
/**
|
|
801
|
+
/** `list`, `load_react`, or `load_native`. */
|
|
800
802
|
mode: "list" | "load_react" | "load_native";
|
|
801
|
-
/**
|
|
803
|
+
/** Session ID from `list` (required for `load_*`). */
|
|
802
804
|
session_id?: string;
|
|
803
|
-
/** Metro port
|
|
805
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
804
806
|
port?: number;
|
|
805
|
-
/**
|
|
807
|
+
/** Device id from `list-devices` to bind the loaded session to. */
|
|
806
808
|
device_id: string;
|
|
807
|
-
/** Android package name
|
|
809
|
+
/** Android package name for legacy `.pftrace` sessions without metadata. */
|
|
808
810
|
app_process?: string;
|
|
809
811
|
};
|
|
810
812
|
"profiler-stack-query": {
|
|
811
813
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
812
814
|
device_id: string;
|
|
813
|
-
/** Query mode
|
|
815
|
+
/** Query mode. */
|
|
814
816
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
815
|
-
/** 0-based
|
|
817
|
+
/** 0-based hang index. */
|
|
816
818
|
hang_index?: number | null;
|
|
817
|
-
/** Native function name */
|
|
819
|
+
/** Native function name. */
|
|
818
820
|
function_name?: string;
|
|
819
|
-
/** Thread filter
|
|
821
|
+
/** Thread filter (substring for `thread_breakdown`; exact raw name or `"main"` for `function_callers`). */
|
|
820
822
|
thread?: string;
|
|
821
|
-
/** Object type filter */
|
|
823
|
+
/** Object type filter (`leak_stacks`). */
|
|
822
824
|
object_type?: string;
|
|
823
|
-
/** Max results
|
|
825
|
+
/** Max results (default 15). */
|
|
824
826
|
top_n?: number;
|
|
825
827
|
};
|
|
826
828
|
propose_variant: {
|
|
@@ -857,21 +859,21 @@ export interface ArgentToolArgs {
|
|
|
857
859
|
};
|
|
858
860
|
};
|
|
859
861
|
"react-profiler-analyze": {
|
|
860
|
-
/** Metro port
|
|
862
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
861
863
|
port?: number;
|
|
862
|
-
/** Device ID
|
|
864
|
+
/** Device ID from list-devices used for the profile (Mac app: its list-devices ID). */
|
|
863
865
|
device_id: string;
|
|
864
|
-
/** Absolute path to the RN project root
|
|
866
|
+
/** Absolute path to the RN project root. */
|
|
865
867
|
project_root: string;
|
|
866
|
-
/**
|
|
868
|
+
/** Fallback platform for source lookup if absent from recording. */
|
|
867
869
|
platform?: "ios" | "android" | "macos";
|
|
868
|
-
/**
|
|
870
|
+
/** RN version (e.g. "0.73.4"). */
|
|
869
871
|
rn_version?: string;
|
|
870
|
-
/** User actions to annotate
|
|
872
|
+
/** User actions to annotate report commits. */
|
|
871
873
|
annotations?: Array<{
|
|
872
|
-
/**
|
|
874
|
+
/** Ms since profiling started (`tapTimestampMs - startedAtEpochMs`). */
|
|
873
875
|
offsetMs: number;
|
|
874
|
-
/**
|
|
876
|
+
/** Action label. */
|
|
875
877
|
label: string;
|
|
876
878
|
}>;
|
|
877
879
|
};
|
|
@@ -882,7 +884,7 @@ export interface ArgentToolArgs {
|
|
|
882
884
|
project_root: string;
|
|
883
885
|
};
|
|
884
886
|
"react-profiler-cpu-summary": {
|
|
885
|
-
/** Metro port
|
|
887
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
886
888
|
port?: number;
|
|
887
889
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
888
890
|
device_id: string;
|
|
@@ -892,7 +894,7 @@ export interface ArgentToolArgs {
|
|
|
892
894
|
react_only?: boolean;
|
|
893
895
|
};
|
|
894
896
|
"react-profiler-fiber-tree": {
|
|
895
|
-
/** Metro port
|
|
897
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
896
898
|
port?: number;
|
|
897
899
|
/** 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. */
|
|
898
900
|
device_id: string;
|
|
@@ -902,7 +904,7 @@ export interface ArgentToolArgs {
|
|
|
902
904
|
filter?: string;
|
|
903
905
|
};
|
|
904
906
|
"react-profiler-renders": {
|
|
905
|
-
/** Metro port
|
|
907
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
906
908
|
port?: number;
|
|
907
909
|
/** 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. */
|
|
908
910
|
device_id: string;
|
|
@@ -910,33 +912,33 @@ export interface ArgentToolArgs {
|
|
|
910
912
|
top_n?: number;
|
|
911
913
|
};
|
|
912
914
|
"react-profiler-start": {
|
|
913
|
-
/** Metro port
|
|
915
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
914
916
|
port?: number;
|
|
915
|
-
/** Device ID from list-devices, including a Mac app ID
|
|
917
|
+
/** Device ID from list-devices, including a Mac app ID (or `logicalDeviceId` on shared Metro if requested). */
|
|
916
918
|
device_id: string;
|
|
917
|
-
/** CPU sampling interval in microseconds */
|
|
919
|
+
/** CPU sampling interval in microseconds. */
|
|
918
920
|
sample_interval_us?: number;
|
|
919
|
-
/** Take over
|
|
921
|
+
/** Take over another active fresh session (ask user approval first). */
|
|
920
922
|
force?: boolean;
|
|
921
923
|
};
|
|
922
924
|
"react-profiler-status": {
|
|
923
|
-
/** Metro port
|
|
925
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
924
926
|
port?: number;
|
|
925
927
|
/** 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. */
|
|
926
928
|
device_id: string;
|
|
927
929
|
};
|
|
928
930
|
"react-profiler-stop": {
|
|
929
|
-
/** Metro port
|
|
931
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
930
932
|
port?: number;
|
|
931
933
|
/** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
|
|
932
934
|
device_id: string;
|
|
933
935
|
};
|
|
934
936
|
"reinstall-app": {
|
|
935
|
-
/**
|
|
937
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
936
938
|
udid: string;
|
|
937
|
-
/**
|
|
939
|
+
/** Bundle id (iOS), package name (Android), component id (Vega), or bundleName (HarmonyOS). */
|
|
938
940
|
bundleId: string;
|
|
939
|
-
/** Path to
|
|
941
|
+
/** Path to `.app` (iOS), `.apk` (Android), `.vpkg` (Vega), or `.hap` (HarmonyOS). */
|
|
940
942
|
appPath: string;
|
|
941
943
|
};
|
|
942
944
|
"restart-app": {
|
|
@@ -973,13 +975,13 @@ export interface ArgentToolArgs {
|
|
|
973
975
|
settle?: boolean;
|
|
974
976
|
};
|
|
975
977
|
"screen-recording-start": {
|
|
976
|
-
/** Target ID from `list-devices
|
|
978
|
+
/** Target ID from `list-devices` (Mac app: `macos-app-<bundle id>`). */
|
|
977
979
|
udid: string;
|
|
978
|
-
/** Auto-stop cap in seconds (default 180).
|
|
980
|
+
/** Auto-stop cap in seconds (default 180). */
|
|
979
981
|
timeLimitSeconds?: number;
|
|
980
|
-
/**
|
|
982
|
+
/** Collapse idle unchanged stretches after 1s (default true; false = real-time). */
|
|
981
983
|
trimStatic?: boolean;
|
|
982
|
-
/** Draw touch markers
|
|
984
|
+
/** Draw touch markers (default true; unsupported on physical iPhones). Mac apps: shows pointer, click ring, and hold dot. */
|
|
983
985
|
showTouches?: boolean;
|
|
984
986
|
};
|
|
985
987
|
"screen-recording-stop": {
|
|
@@ -999,29 +1001,29 @@ export interface ArgentToolArgs {
|
|
|
999
1001
|
downscaler?: "lanczos3" | "box" | "bilinear" | "nearest";
|
|
1000
1002
|
};
|
|
1001
1003
|
"screenshot-diff": {
|
|
1002
|
-
/**
|
|
1004
|
+
/** Saved baseline PNG path (omit when `captureBaseline: true`). */
|
|
1003
1005
|
baselinePath?: string;
|
|
1004
|
-
/**
|
|
1006
|
+
/** Saved current PNG path (omit when `captureCurrent: true`). */
|
|
1005
1007
|
currentPath?: string;
|
|
1006
|
-
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or
|
|
1008
|
+
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or Mac app id). */
|
|
1007
1009
|
udid: string;
|
|
1008
|
-
/** Capture
|
|
1010
|
+
/** Capture baseline live from the device, at full resolution (mutually exclusive with `captureCurrent`). */
|
|
1009
1011
|
captureBaseline?: boolean;
|
|
1010
|
-
/** Capture
|
|
1012
|
+
/** Capture current live from the device, at full resolution (mutually exclusive with `captureBaseline`). */
|
|
1011
1013
|
captureCurrent?: boolean;
|
|
1012
|
-
/** Orientation override for live
|
|
1014
|
+
/** Orientation override for live captures. Rejected on HarmonyOS. Ignored on physical iPhones. */
|
|
1013
1015
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
1014
|
-
/**
|
|
1016
|
+
/** Output directory for diff artifacts (default: temp dir). */
|
|
1015
1017
|
outputDir?: string;
|
|
1016
1018
|
};
|
|
1017
1019
|
"settings-permissions": {
|
|
1018
|
-
/**
|
|
1020
|
+
/** Device id from `list-devices` (iOS simulator UDID or Android serial). */
|
|
1019
1021
|
udid: string;
|
|
1020
|
-
/** `grant` pre-
|
|
1022
|
+
/** `grant` (pre-authorize), `deny`, or `reset` (re-prompt on next use). */
|
|
1021
1023
|
action: "grant" | "deny" | "reset";
|
|
1022
|
-
/**
|
|
1024
|
+
/** Permission name (`notifications` = Android-only; `reminders` = iOS-only). */
|
|
1023
1025
|
permission: "camera" | "microphone" | "photos" | "contacts" | "notifications" | "calendar" | "location" | "location-always" | "media-library" | "motion" | "reminders";
|
|
1024
|
-
/**
|
|
1026
|
+
/** Target app bundle id (iOS) or package name (Android). */
|
|
1025
1027
|
bundleId: string;
|
|
1026
1028
|
};
|
|
1027
1029
|
shake: {
|
|
@@ -1049,11 +1051,11 @@ export interface ArgentToolArgs {
|
|
|
1049
1051
|
bundleId: string;
|
|
1050
1052
|
};
|
|
1051
1053
|
"tv-remote": {
|
|
1052
|
-
/**
|
|
1054
|
+
/** TV device id from `list-devices` (Apple TV, Android TV, or Vega). */
|
|
1053
1055
|
udid: string;
|
|
1054
|
-
/**
|
|
1056
|
+
/** Single remote button or array path run in one call (e.g. ["up","right","select"]; prefer an array over repeated calls). */
|
|
1055
1057
|
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">;
|
|
1056
|
-
/** Repeat
|
|
1058
|
+
/** Repeat `button` N times (default 1, e.g. `{ button: "down", repeat: 12 }`). */
|
|
1057
1059
|
repeat?: number;
|
|
1058
1060
|
};
|
|
1059
1061
|
"ui-tree": {
|
|
@@ -1065,21 +1067,21 @@ export interface ArgentToolArgs {
|
|
|
1065
1067
|
target?: "auto" | "global" | "local" | "both";
|
|
1066
1068
|
};
|
|
1067
1069
|
"view-network-logs": {
|
|
1068
|
-
/** Metro port
|
|
1070
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1069
1071
|
port?: number;
|
|
1070
|
-
/** Device ID from list-devices
|
|
1072
|
+
/** Device ID from `list-devices` (or `logicalDeviceId` if shared Metro capture used it); Mac app: Mac app id `macos-app-<bundle id>`. */
|
|
1071
1073
|
device_id: string;
|
|
1072
|
-
/**
|
|
1074
|
+
/** 0-based page index, or `"latest"`/null for newest (50 entries/page). */
|
|
1073
1075
|
pageIndex?: number | "latest" | null;
|
|
1074
1076
|
};
|
|
1075
1077
|
"view-network-request-details": {
|
|
1076
|
-
/** Metro port
|
|
1078
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1077
1079
|
port?: number;
|
|
1078
|
-
/** Device ID for the
|
|
1080
|
+
/** Device ID for the log (or `logicalDeviceId` if JS capture used it); Mac app: Mac app id. */
|
|
1079
1081
|
device_id: string;
|
|
1080
|
-
/** Request ID from
|
|
1082
|
+
/** Request ID from `view-network-logs`, `native-network-logs`, or `await-network-request`. */
|
|
1081
1083
|
requestId: string;
|
|
1082
|
-
/**
|
|
1084
|
+
/** Include response body (default true). */
|
|
1083
1085
|
includeBody?: boolean;
|
|
1084
1086
|
};
|
|
1085
1087
|
/** @deprecated Renamed to `e2e-add-echo`. */
|