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