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