@swmansion/argent 0.35.1-next.7 → 0.35.1-next.70
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 +2821 -2159
- package/dist/cli.js +22 -3
- package/dist/cli.js.map +1 -1
- package/dist/client.js +760 -440
- package/dist/fatal-handlers.d.ts +1 -0
- package/dist/fatal-handlers.js +8 -2
- package/dist/fatal-handlers.js.map +1 -1
- package/dist/installer-help.js +4 -2
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +760 -705
- package/dist/mcp-server.mjs +1825 -1408
- package/dist/tool-args.generated.d.ts +409 -320
- package/dist/tool-server.cjs +17327 -12518
- 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 +40 -5
- package/skills/argent-create-e2e/references/live-authoring.md +14 -3
- 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,48 +296,70 @@ 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;
|
|
290
|
-
/**
|
|
291
|
-
|
|
361
|
+
/** Overrides for the test's `vars:` defaults, including `run:` fragments. Values can contain `{{secret:NAME}}` placeholders. */
|
|
362
|
+
vars?: {
|
|
292
363
|
[key: string]: string;
|
|
293
364
|
};
|
|
294
365
|
/** @deprecated Renamed to `e2e_test_path`. */
|
|
@@ -297,9 +368,9 @@ export interface ArgentToolArgs {
|
|
|
297
368
|
flow_file?: string;
|
|
298
369
|
};
|
|
299
370
|
"e2e-finish-recording": {
|
|
300
|
-
/**
|
|
371
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
301
372
|
name: string;
|
|
302
|
-
/**
|
|
373
|
+
/** Project root from `e2e-start-recording`. */
|
|
303
374
|
project_root: string;
|
|
304
375
|
};
|
|
305
376
|
"e2e-read-prerequisite": {
|
|
@@ -316,18 +387,32 @@ export interface ArgentToolArgs {
|
|
|
316
387
|
/** @deprecated Renamed to `e2e_test_file`. */
|
|
317
388
|
flow_file?: string;
|
|
318
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
|
+
};
|
|
319
400
|
"e2e-start-recording": {
|
|
320
|
-
/**
|
|
401
|
+
/** E2E test name (letters, digits, `_`, `-`). */
|
|
321
402
|
name: string;
|
|
322
|
-
/** Absolute path to the project root
|
|
403
|
+
/** Absolute path to the project root containing `.argent/e2e/`. */
|
|
323
404
|
project_root: string;
|
|
324
|
-
/** 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). */
|
|
325
406
|
executionPrerequisite?: string;
|
|
326
|
-
/**
|
|
407
|
+
/** Supported target filter (`platform` and/or `runtimeKind`, ANDed). Omit for any. */
|
|
327
408
|
requires?: {
|
|
328
409
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
|
|
329
410
|
runtimeKind?: "mobile" | "tv";
|
|
330
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
|
+
};
|
|
331
416
|
};
|
|
332
417
|
"file-panel": {
|
|
333
418
|
/** Mac app id from `list-devices` (macos-app-<bundle id>). */
|
|
@@ -354,11 +439,11 @@ export interface ArgentToolArgs {
|
|
|
354
439
|
text: string;
|
|
355
440
|
};
|
|
356
441
|
fold: {
|
|
357
|
-
/**
|
|
442
|
+
/** Foldable device id from `list-devices` (iOS simulator UDID or Android emulator serial). */
|
|
358
443
|
udid: string;
|
|
359
|
-
/**
|
|
444
|
+
/** Target posture: `closed` (cover panel), `half-open`, or `open` (inner panel). */
|
|
360
445
|
posture?: "closed" | "half-open" | "open";
|
|
361
|
-
/**
|
|
446
|
+
/** Hinge angle in degrees (0 = closed, 180 = open). */
|
|
362
447
|
angle?: number;
|
|
363
448
|
};
|
|
364
449
|
"foreground-app": {
|
|
@@ -372,144 +457,148 @@ export interface ArgentToolArgs {
|
|
|
372
457
|
"gesture-custom": {
|
|
373
458
|
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
374
459
|
udid: string;
|
|
375
|
-
/** Starting
|
|
460
|
+
/** Starting screen edge for a single-finger system gesture (local iOS simulator). */
|
|
376
461
|
edge?: "top" | "right" | "bottom" | "left";
|
|
377
|
-
/**
|
|
462
|
+
/** Ordered touch events. */
|
|
378
463
|
events: Array<{
|
|
379
|
-
/** Touch event type */
|
|
464
|
+
/** Touch event type. */
|
|
380
465
|
type: "Down" | "Move" | "Up";
|
|
381
|
-
/**
|
|
466
|
+
/** Normalized x. */
|
|
382
467
|
x: number;
|
|
383
|
-
/**
|
|
468
|
+
/** Normalized y. */
|
|
384
469
|
y: number;
|
|
385
|
-
/** Second finger x
|
|
470
|
+
/** Second finger x. */
|
|
386
471
|
x2?: number;
|
|
387
|
-
/** Second finger y
|
|
472
|
+
/** Second finger y. */
|
|
388
473
|
y2?: number;
|
|
389
|
-
/** Delay before
|
|
474
|
+
/** Delay before event in ms (default 16). */
|
|
390
475
|
delayMs?: number;
|
|
391
476
|
}>;
|
|
392
|
-
/**
|
|
477
|
+
/** Insert N linearly interpolated Move events between consecutive events (default 0). */
|
|
393
478
|
interpolate?: number;
|
|
394
479
|
};
|
|
395
480
|
"gesture-drag": {
|
|
396
|
-
/**
|
|
481
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
397
482
|
udid: string;
|
|
398
|
-
/**
|
|
483
|
+
/** Start x. */
|
|
399
484
|
fromX: number;
|
|
400
|
-
/**
|
|
485
|
+
/** Start y. */
|
|
401
486
|
fromY: number;
|
|
402
|
-
/**
|
|
487
|
+
/** End x. */
|
|
403
488
|
toX: number;
|
|
404
|
-
/**
|
|
489
|
+
/** End y. */
|
|
405
490
|
toY: number;
|
|
406
|
-
/**
|
|
491
|
+
/** Drag duration in ms (default 300; 800 for a Mac app long press). */
|
|
407
492
|
durationMs?: number;
|
|
408
|
-
/**
|
|
493
|
+
/** Default true (constant speed). false decelerates into release to avoid fling. */
|
|
409
494
|
momentum?: boolean;
|
|
410
495
|
};
|
|
411
496
|
"gesture-pinch": {
|
|
412
|
-
/**
|
|
497
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
413
498
|
udid: string;
|
|
414
|
-
/**
|
|
499
|
+
/** Normalized center x. */
|
|
415
500
|
centerX: number;
|
|
416
|
-
/**
|
|
501
|
+
/** Normalized center y. */
|
|
417
502
|
centerY: number;
|
|
418
|
-
/** Initial
|
|
503
|
+
/** Initial normalized finger distance. */
|
|
419
504
|
startDistance: number;
|
|
420
|
-
/** Final distance
|
|
505
|
+
/** Final normalized finger distance (> start = zoom in). */
|
|
421
506
|
endDistance: number;
|
|
422
|
-
/**
|
|
507
|
+
/** Optional final center x (centroid drifts linearly). */
|
|
423
508
|
endCenterX?: number;
|
|
424
|
-
/**
|
|
509
|
+
/** Optional final center y. */
|
|
425
510
|
endCenterY?: number;
|
|
426
|
-
/**
|
|
511
|
+
/** Finger axis angle in degrees (0 = horizontal, 90 = vertical). */
|
|
427
512
|
angle?: number;
|
|
428
|
-
/**
|
|
513
|
+
/** Duration in ms (default 300); clamped to 1–15000ms on HarmonyOS. */
|
|
429
514
|
durationMs?: number;
|
|
430
515
|
};
|
|
431
516
|
"gesture-rotate": {
|
|
432
|
-
/**
|
|
517
|
+
/** Device id from `list-devices` (iOS UDID or Android serial). */
|
|
433
518
|
udid: string;
|
|
434
|
-
/**
|
|
519
|
+
/** Normalized rotation center x. */
|
|
435
520
|
centerX: number;
|
|
436
|
-
/**
|
|
521
|
+
/** Normalized rotation center y. */
|
|
437
522
|
centerY: number;
|
|
438
|
-
/**
|
|
523
|
+
/** Normalized finger orbit radius (e.g. 0.15). */
|
|
439
524
|
radius?: number;
|
|
440
|
-
/**
|
|
525
|
+
/** Horizontal radius fraction of screen width (pair with `radiusY`). */
|
|
441
526
|
radiusX?: number;
|
|
442
|
-
/**
|
|
527
|
+
/** Vertical radius fraction of screen height (pair with `radiusX`). */
|
|
443
528
|
radiusY?: number;
|
|
444
|
-
/**
|
|
529
|
+
/** Start angle in degrees (0 = right, 90 = down). */
|
|
445
530
|
startAngle: number;
|
|
446
|
-
/**
|
|
531
|
+
/** End angle in degrees (> startAngle = clockwise). */
|
|
447
532
|
endAngle: number;
|
|
448
|
-
/**
|
|
533
|
+
/** Duration in ms (default 300). */
|
|
449
534
|
durationMs?: number;
|
|
450
535
|
};
|
|
451
536
|
"gesture-scroll": {
|
|
452
|
-
/**
|
|
537
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
453
538
|
udid: string;
|
|
454
|
-
/**
|
|
539
|
+
/** Normalized anchor x over the scrollable element. */
|
|
455
540
|
x: number;
|
|
456
|
-
/**
|
|
541
|
+
/** Normalized anchor y. */
|
|
457
542
|
y: number;
|
|
458
|
-
/** Horizontal scroll
|
|
543
|
+
/** Horizontal scroll fraction (+ right, - left). */
|
|
459
544
|
deltaX?: number;
|
|
460
|
-
/** Vertical scroll
|
|
545
|
+
/** Vertical scroll fraction (+ down, - up; e.g. 0.5). */
|
|
461
546
|
deltaY?: number;
|
|
462
|
-
/**
|
|
547
|
+
/** Scroll duration in ms (default 300); ignored on Mac apps. */
|
|
463
548
|
durationMs?: number;
|
|
464
549
|
};
|
|
465
550
|
"gesture-swipe": {
|
|
466
|
-
/** Target device id from `list-devices
|
|
551
|
+
/** Target device id from `list-devices`. */
|
|
467
552
|
udid: string;
|
|
468
|
-
/** Start x. */
|
|
553
|
+
/** Start x [0,1]. */
|
|
469
554
|
fromX: number;
|
|
470
|
-
/** Start y. */
|
|
555
|
+
/** Start y [0,1]. */
|
|
471
556
|
fromY: number;
|
|
472
|
-
/** End x. */
|
|
557
|
+
/** End x [0,1]. */
|
|
473
558
|
toX: number;
|
|
474
|
-
/** End y. */
|
|
559
|
+
/** End y [0,1]. */
|
|
475
560
|
toY: number;
|
|
476
|
-
/**
|
|
561
|
+
/** Swipe duration in ms (default 300). */
|
|
477
562
|
durationMs?: number;
|
|
478
|
-
/**
|
|
563
|
+
/** Default true (flinging swipe). Set false to ease out with no fling for deterministic scroll distance (requires durationMs >= 150). */
|
|
479
564
|
momentum?: boolean;
|
|
480
565
|
};
|
|
481
566
|
"gesture-tap": {
|
|
482
|
-
/** Target device id from `list-devices
|
|
567
|
+
/** Target device id from `list-devices`. */
|
|
483
568
|
udid: string;
|
|
484
|
-
/** Horizontal
|
|
569
|
+
/** Horizontal screen fraction [0,1]. */
|
|
485
570
|
x: number;
|
|
486
|
-
/** Vertical
|
|
571
|
+
/** Vertical screen fraction [0,1]. */
|
|
487
572
|
y: number;
|
|
488
|
-
/**
|
|
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. */
|
|
489
574
|
clickCount?: number;
|
|
490
|
-
/**
|
|
575
|
+
/** Mac app only: mouse button ("left" default, or "right"). */
|
|
491
576
|
button?: "left" | "right";
|
|
492
|
-
/**
|
|
577
|
+
/** Mac app only: modifier keys held during click. */
|
|
493
578
|
modifiers?: Array<"control" | "option" | "shift" | "command">;
|
|
494
579
|
};
|
|
495
580
|
keyboard: {
|
|
496
|
-
/** Target device id from `list-devices
|
|
581
|
+
/** Target device id from `list-devices`. */
|
|
497
582
|
udid: string;
|
|
498
|
-
/** Text to type
|
|
583
|
+
/** Text to type. Cannot be combined with `key`. Use `{{secret:NAME}}` for credentials, looked up where the MCP server started, first match wins: the `ARGENT_SECRET_NAME` env var, the project's `.argent/secrets.env`, `ARGENT_SECRET_NAME` in the project's `.env.local` or `.env`, then `~/.argent/secrets.env`. Ask the user to configure missing secrets there 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. */
|
|
499
584
|
text?: string;
|
|
500
|
-
/** 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). */
|
|
501
586
|
key?: string;
|
|
502
|
-
/**
|
|
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). */
|
|
503
592
|
delayMs?: number;
|
|
504
593
|
};
|
|
505
594
|
"launch-app": {
|
|
506
|
-
/** Target device id from `list-devices
|
|
595
|
+
/** Target device id from `list-devices`. */
|
|
507
596
|
udid: string;
|
|
508
|
-
/** 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). */
|
|
509
598
|
bundleId: string;
|
|
510
|
-
/** Android
|
|
599
|
+
/** Android only: Activity name (default: launcher activity). */
|
|
511
600
|
activity?: string;
|
|
512
|
-
/** Apple
|
|
601
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. Relaunches running simulators/phones to apply. */
|
|
513
602
|
launchArgs?: Array<string>;
|
|
514
603
|
};
|
|
515
604
|
"list-devices": Record<string, never>;
|
|
@@ -544,21 +633,21 @@ export interface ArgentToolArgs {
|
|
|
544
633
|
udid: string;
|
|
545
634
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
546
635
|
bundleId: string;
|
|
547
|
-
/** UIView class name
|
|
636
|
+
/** Exact UIView class name (e.g. UIButton). */
|
|
548
637
|
className?: string;
|
|
549
|
-
/**
|
|
638
|
+
/** Exact accessibility identifier. */
|
|
550
639
|
identifier?: string;
|
|
551
|
-
/**
|
|
640
|
+
/** Exact accessibility label. */
|
|
552
641
|
label?: string;
|
|
553
|
-
/** UIView
|
|
642
|
+
/** UIView integer tag. */
|
|
554
643
|
tag?: number;
|
|
555
|
-
/** React Native nativeID
|
|
644
|
+
/** Exact React Native nativeID. */
|
|
556
645
|
nativeID?: string;
|
|
557
|
-
/** Include ancestor chain
|
|
646
|
+
/** Include ancestor chain (default true). */
|
|
558
647
|
includeAncestors?: boolean;
|
|
559
|
-
/** Include child views
|
|
648
|
+
/** Include child views (default true). */
|
|
560
649
|
includeChildren?: boolean;
|
|
561
|
-
/** 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). */
|
|
562
651
|
fields?: Array<string>;
|
|
563
652
|
};
|
|
564
653
|
"native-full-hierarchy": {
|
|
@@ -566,25 +655,25 @@ export interface ArgentToolArgs {
|
|
|
566
655
|
udid: string;
|
|
567
656
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
568
657
|
bundleId: string;
|
|
569
|
-
/**
|
|
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). */
|
|
570
659
|
fields?: Array<string>;
|
|
571
|
-
/** Exact UIView
|
|
660
|
+
/** Exact UIView classes to prune (e.g. ["UIImageView"]). */
|
|
572
661
|
skipClasses?: Array<string>;
|
|
573
|
-
/** Class
|
|
662
|
+
/** Class prefixes to prune (e.g. ["_TtGC7SwiftUI"] for SwiftUI; avoid broad "_UI"). */
|
|
574
663
|
skipClassPrefixes?: Array<string>;
|
|
575
|
-
/**
|
|
664
|
+
/** Max recursion depth (default 8). */
|
|
576
665
|
maxDepth?: number;
|
|
577
666
|
};
|
|
578
667
|
"native-network-logs": {
|
|
579
|
-
/** Device ID from list-devices
|
|
668
|
+
/** Device ID from `list-devices`: iOS simulator UDID, Android serial, or Mac app id (`macos-app-<bundle id>`). */
|
|
580
669
|
udid: string;
|
|
581
|
-
/**
|
|
670
|
+
/** Bundle ID (iOS) or package name (Android); on macOS, omit `macos-app-`. */
|
|
582
671
|
bundleId: string;
|
|
583
|
-
/**
|
|
672
|
+
/** Metro port to exclude from logs (omit for device default, usually 8081). */
|
|
584
673
|
port?: number;
|
|
585
|
-
/**
|
|
674
|
+
/** Newest requests to return oldest-first (default 50; 0 = status/totals only). */
|
|
586
675
|
limit?: number;
|
|
587
|
-
/** Hide
|
|
676
|
+
/** Hide current history from later lists (IDs still work in `view-network-request-details`). */
|
|
588
677
|
clear?: boolean;
|
|
589
678
|
};
|
|
590
679
|
"native-profiler-analyze": {
|
|
@@ -592,25 +681,25 @@ export interface ArgentToolArgs {
|
|
|
592
681
|
device_id: string;
|
|
593
682
|
};
|
|
594
683
|
"native-profiler-launch-analysis": {
|
|
595
|
-
/** measure
|
|
684
|
+
/** `measure`: 5 XCTest timed launches. `profile`: 1 Instruments App Launch trace. */
|
|
596
685
|
mode: "measure" | "profile";
|
|
597
|
-
/**
|
|
686
|
+
/** Installed Release build bundle ID (not built or installed by this tool). */
|
|
598
687
|
bundle_id: string;
|
|
599
|
-
/**
|
|
688
|
+
/** iPhone UDID (or booted simulator UDID with `allow_simulator: true`). */
|
|
600
689
|
device_id?: string;
|
|
601
|
-
/**
|
|
690
|
+
/** Allow booted simulator when no iPhone is selected. */
|
|
602
691
|
allow_simulator?: boolean;
|
|
603
|
-
/** profile mode only:
|
|
692
|
+
/** `profile` mode only: trace duration in s (default 8). */
|
|
604
693
|
duration_seconds?: number;
|
|
605
694
|
};
|
|
606
695
|
"native-profiler-start": {
|
|
607
696
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
608
697
|
device_id: string;
|
|
609
|
-
/** iOS
|
|
698
|
+
/** iOS executable/name or Android package (auto-detects foreground app if omitted); omit for Mac apps. */
|
|
610
699
|
app_process?: string;
|
|
611
|
-
/** iOS
|
|
700
|
+
/** iOS/Mac app Instruments `.tracetemplate` path or built-in name (e.g. "Time Profiler"; default: bundled template). */
|
|
612
701
|
template_path?: string;
|
|
613
|
-
/** iOS
|
|
702
|
+
/** iOS/Mac apps only: restart app with allocation stacks from launch (adds overhead; leave off for CPU/hang timing). */
|
|
614
703
|
malloc_stack_logging?: boolean;
|
|
615
704
|
};
|
|
616
705
|
"native-profiler-stop": {
|
|
@@ -622,21 +711,21 @@ export interface ArgentToolArgs {
|
|
|
622
711
|
udid: string;
|
|
623
712
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
624
713
|
bundleId: string;
|
|
625
|
-
/** Raw X
|
|
714
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
626
715
|
x: number;
|
|
627
|
-
/** Raw Y
|
|
716
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
628
717
|
y: number;
|
|
629
|
-
/** Include ancestor chain
|
|
718
|
+
/** Include ancestor chain (default true). */
|
|
630
719
|
includeAncestors?: boolean;
|
|
631
|
-
/** Include child views
|
|
720
|
+
/** Include child views (default false). */
|
|
632
721
|
includeChildren?: boolean;
|
|
633
|
-
/** 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). */
|
|
634
723
|
fields?: Array<string>;
|
|
635
|
-
/** Exact UIView class names
|
|
724
|
+
/** Exact UIView class names to prune. */
|
|
636
725
|
skipClasses?: Array<string>;
|
|
637
|
-
/** Class name prefixes to prune
|
|
726
|
+
/** Class name prefixes to prune. */
|
|
638
727
|
skipClassPrefixes?: Array<string>;
|
|
639
|
-
/**
|
|
728
|
+
/** Max serialization depth (default 150). */
|
|
640
729
|
maxDepth?: number;
|
|
641
730
|
};
|
|
642
731
|
"native-view-at-point": {
|
|
@@ -644,157 +733,157 @@ export interface ArgentToolArgs {
|
|
|
644
733
|
udid: string;
|
|
645
734
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
646
735
|
bundleId: string;
|
|
647
|
-
/** Raw X
|
|
736
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
648
737
|
x: number;
|
|
649
|
-
/** Raw Y
|
|
738
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
650
739
|
y: number;
|
|
651
|
-
/** Include ancestor chain
|
|
740
|
+
/** Include ancestor chain (default true). */
|
|
652
741
|
includeAncestors?: boolean;
|
|
653
|
-
/** Include child views
|
|
742
|
+
/** Include child views (default false). */
|
|
654
743
|
includeChildren?: boolean;
|
|
655
|
-
/** 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). */
|
|
656
745
|
fields?: Array<string>;
|
|
657
|
-
/** Exact UIView class names
|
|
746
|
+
/** Exact UIView class names to prune. */
|
|
658
747
|
skipClasses?: Array<string>;
|
|
659
|
-
/** Class name prefixes to prune
|
|
748
|
+
/** Class name prefixes to prune. */
|
|
660
749
|
skipClassPrefixes?: Array<string>;
|
|
661
|
-
/**
|
|
750
|
+
/** Max serialization depth (default 150). */
|
|
662
751
|
maxDepth?: number;
|
|
663
|
-
/** true
|
|
752
|
+
/** true: touch-receiving view (UIKit hit-test). false (default): deepest visible view. */
|
|
664
753
|
hitTest?: boolean;
|
|
665
754
|
};
|
|
666
755
|
"network-capture-start": {
|
|
667
|
-
/** Device ID from list-devices
|
|
756
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
668
757
|
udid: string;
|
|
669
|
-
/**
|
|
758
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
670
759
|
bundleId: string;
|
|
671
|
-
/**
|
|
760
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
672
761
|
port?: number;
|
|
673
|
-
/**
|
|
762
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
674
763
|
layer?: "js" | "native";
|
|
675
|
-
/**
|
|
764
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
676
765
|
logicalDeviceId?: string;
|
|
677
766
|
};
|
|
678
767
|
"network-capture-stop": {
|
|
679
|
-
/** Device ID from list-devices
|
|
768
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
680
769
|
udid: string;
|
|
681
|
-
/**
|
|
770
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
682
771
|
bundleId: string;
|
|
683
|
-
/**
|
|
772
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
684
773
|
port?: number;
|
|
685
|
-
/**
|
|
774
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
686
775
|
layer?: "js" | "native";
|
|
687
|
-
/**
|
|
776
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
688
777
|
logicalDeviceId?: string;
|
|
689
778
|
};
|
|
690
779
|
"network-conditions": {
|
|
691
|
-
/** Device ID from list-devices
|
|
780
|
+
/** Device ID from `list-devices`. */
|
|
692
781
|
udid: string;
|
|
693
|
-
/**
|
|
782
|
+
/** App bundle ID (required on iOS; ignored elsewhere). */
|
|
694
783
|
bundleId?: string;
|
|
695
|
-
/** Metro port
|
|
784
|
+
/** Metro port exempt from shaping (omit for device default, usually 8081). */
|
|
696
785
|
port?: number;
|
|
697
|
-
/**
|
|
786
|
+
/** Added latency in ms. */
|
|
698
787
|
latencyMs?: number;
|
|
699
|
-
/** Download
|
|
788
|
+
/** Download cap in kbps. */
|
|
700
789
|
downloadKbps?: number;
|
|
701
|
-
/** Upload
|
|
790
|
+
/** Upload cap in kbps. */
|
|
702
791
|
uploadKbps?: number;
|
|
703
|
-
/**
|
|
792
|
+
/** Simulate offline (on Android, `adb reverse` ports stay reachable while Metro at `10.0.2.2` does not; `false` alone resets conditions). */
|
|
704
793
|
offline?: boolean;
|
|
705
794
|
};
|
|
706
795
|
"open-url": {
|
|
707
|
-
/**
|
|
796
|
+
/** Device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, or Chromium id). */
|
|
708
797
|
udid: string;
|
|
709
|
-
/** URL or scheme
|
|
798
|
+
/** URL or custom scheme (e.g. https://example.com, myapp://path). */
|
|
710
799
|
url: string;
|
|
711
|
-
/** Physical iOS only:
|
|
800
|
+
/** Physical iOS only: receiving app (defaults to Safari for http/https; required otherwise). */
|
|
712
801
|
bundleId?: string;
|
|
713
802
|
};
|
|
714
803
|
paste: {
|
|
715
|
-
/**
|
|
804
|
+
/** Device id from `list-devices` (iOS simulator UDID, Android emulator serial, or Mac app id). */
|
|
716
805
|
udid: string;
|
|
717
|
-
/** Text to
|
|
806
|
+
/** Text to paste. Use `{{secret:NAME}}` for credentials, looked up in the same sources as `keyboard`. Ask the user to configure missing secrets there without sharing their values. */
|
|
718
807
|
text: string;
|
|
719
808
|
};
|
|
720
809
|
"profiler-combined-report": {
|
|
721
|
-
/** Metro port
|
|
810
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
722
811
|
port?: number;
|
|
723
812
|
/** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
|
|
724
813
|
device_id: string;
|
|
725
814
|
};
|
|
726
815
|
"profiler-commit-query": {
|
|
727
|
-
/** Metro port
|
|
816
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
728
817
|
port?: number;
|
|
729
818
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
730
819
|
device_id: string;
|
|
731
|
-
/** Query mode
|
|
820
|
+
/** Query mode. */
|
|
732
821
|
mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
|
|
733
|
-
/** Component name
|
|
822
|
+
/** Component name (optional filter for `render_counts`). */
|
|
734
823
|
component_name?: string;
|
|
735
|
-
/**
|
|
824
|
+
/** Range in ms since profiling started. */
|
|
736
825
|
time_range_ms?: {
|
|
737
|
-
/** Start
|
|
826
|
+
/** Start ms. */
|
|
738
827
|
start: number;
|
|
739
|
-
/** End
|
|
828
|
+
/** End ms. */
|
|
740
829
|
end: number;
|
|
741
830
|
};
|
|
742
|
-
/** Commit index */
|
|
831
|
+
/** Commit index. */
|
|
743
832
|
commit_index?: number | null;
|
|
744
|
-
/** Max results
|
|
833
|
+
/** Max results (default 20; unlimited for `by_index`). */
|
|
745
834
|
top_n?: number;
|
|
746
835
|
};
|
|
747
836
|
"profiler-cpu-query": {
|
|
748
|
-
/** Metro port
|
|
837
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
749
838
|
port?: number;
|
|
750
839
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
751
840
|
device_id: string;
|
|
752
|
-
/** Query mode
|
|
841
|
+
/** Query mode. */
|
|
753
842
|
mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
|
|
754
|
-
/**
|
|
843
|
+
/** Window in ms since profiling started (same clock as `profiler-commit-query`). */
|
|
755
844
|
time_window_ms?: {
|
|
756
|
-
/** Start
|
|
845
|
+
/** Start ms. */
|
|
757
846
|
start: number;
|
|
758
|
-
/** End
|
|
847
|
+
/** End ms. */
|
|
759
848
|
end: number;
|
|
760
849
|
};
|
|
761
|
-
/** Component name */
|
|
850
|
+
/** Component name. */
|
|
762
851
|
component_name?: string;
|
|
763
|
-
/** Function name */
|
|
852
|
+
/** Function name. */
|
|
764
853
|
function_name?: string;
|
|
765
|
-
/**
|
|
854
|
+
/** Max rows (default 15). */
|
|
766
855
|
top_n?: number;
|
|
767
|
-
/**
|
|
856
|
+
/** Include callers (`call_tree`). */
|
|
768
857
|
include_callers?: boolean;
|
|
769
|
-
/**
|
|
858
|
+
/** Only PascalCase React components. */
|
|
770
859
|
react_only?: boolean;
|
|
771
860
|
};
|
|
772
861
|
"profiler-load": {
|
|
773
|
-
/**
|
|
862
|
+
/** `list`, `load_react`, or `load_native`. */
|
|
774
863
|
mode: "list" | "load_react" | "load_native";
|
|
775
|
-
/**
|
|
864
|
+
/** Session ID from `list` (required for `load_*`). */
|
|
776
865
|
session_id?: string;
|
|
777
|
-
/** Metro port
|
|
866
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
778
867
|
port?: number;
|
|
779
|
-
/**
|
|
868
|
+
/** Device id from `list-devices` to bind the loaded session to. */
|
|
780
869
|
device_id: string;
|
|
781
|
-
/** Android package name
|
|
870
|
+
/** Android package name for legacy `.pftrace` sessions without metadata. */
|
|
782
871
|
app_process?: string;
|
|
783
872
|
};
|
|
784
873
|
"profiler-stack-query": {
|
|
785
874
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
786
875
|
device_id: string;
|
|
787
|
-
/** Query mode
|
|
876
|
+
/** Query mode. */
|
|
788
877
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
789
|
-
/** 0-based
|
|
878
|
+
/** 0-based hang index. */
|
|
790
879
|
hang_index?: number | null;
|
|
791
|
-
/** Native function name */
|
|
880
|
+
/** Native function name. */
|
|
792
881
|
function_name?: string;
|
|
793
|
-
/** Thread filter
|
|
882
|
+
/** Thread filter (substring for `thread_breakdown`; exact raw name or `"main"` for `function_callers`). */
|
|
794
883
|
thread?: string;
|
|
795
|
-
/** Object type filter */
|
|
884
|
+
/** Object type filter (`leak_stacks`). */
|
|
796
885
|
object_type?: string;
|
|
797
|
-
/** Max results
|
|
886
|
+
/** Max results (default 15). */
|
|
798
887
|
top_n?: number;
|
|
799
888
|
};
|
|
800
889
|
propose_variant: {
|
|
@@ -831,21 +920,21 @@ export interface ArgentToolArgs {
|
|
|
831
920
|
};
|
|
832
921
|
};
|
|
833
922
|
"react-profiler-analyze": {
|
|
834
|
-
/** Metro port
|
|
923
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
835
924
|
port?: number;
|
|
836
|
-
/** Device ID
|
|
925
|
+
/** Device ID from list-devices used for the profile (Mac app: its list-devices ID). */
|
|
837
926
|
device_id: string;
|
|
838
|
-
/** Absolute path to the RN project root
|
|
927
|
+
/** Absolute path to the RN project root. */
|
|
839
928
|
project_root: string;
|
|
840
|
-
/**
|
|
929
|
+
/** Fallback platform for source lookup if absent from recording. */
|
|
841
930
|
platform?: "ios" | "android" | "macos";
|
|
842
|
-
/**
|
|
931
|
+
/** RN version (e.g. "0.73.4"). */
|
|
843
932
|
rn_version?: string;
|
|
844
|
-
/** User actions to annotate
|
|
933
|
+
/** User actions to annotate report commits. */
|
|
845
934
|
annotations?: Array<{
|
|
846
|
-
/**
|
|
935
|
+
/** Ms since profiling started (`tapTimestampMs - startedAtEpochMs`). */
|
|
847
936
|
offsetMs: number;
|
|
848
|
-
/**
|
|
937
|
+
/** Action label. */
|
|
849
938
|
label: string;
|
|
850
939
|
}>;
|
|
851
940
|
};
|
|
@@ -856,7 +945,7 @@ export interface ArgentToolArgs {
|
|
|
856
945
|
project_root: string;
|
|
857
946
|
};
|
|
858
947
|
"react-profiler-cpu-summary": {
|
|
859
|
-
/** Metro port
|
|
948
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
860
949
|
port?: number;
|
|
861
950
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
862
951
|
device_id: string;
|
|
@@ -866,7 +955,7 @@ export interface ArgentToolArgs {
|
|
|
866
955
|
react_only?: boolean;
|
|
867
956
|
};
|
|
868
957
|
"react-profiler-fiber-tree": {
|
|
869
|
-
/** Metro port
|
|
958
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
870
959
|
port?: number;
|
|
871
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. */
|
|
872
961
|
device_id: string;
|
|
@@ -876,7 +965,7 @@ export interface ArgentToolArgs {
|
|
|
876
965
|
filter?: string;
|
|
877
966
|
};
|
|
878
967
|
"react-profiler-renders": {
|
|
879
|
-
/** Metro port
|
|
968
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
880
969
|
port?: number;
|
|
881
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. */
|
|
882
971
|
device_id: string;
|
|
@@ -884,43 +973,43 @@ export interface ArgentToolArgs {
|
|
|
884
973
|
top_n?: number;
|
|
885
974
|
};
|
|
886
975
|
"react-profiler-start": {
|
|
887
|
-
/** Metro port
|
|
976
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
888
977
|
port?: number;
|
|
889
|
-
/** 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). */
|
|
890
979
|
device_id: string;
|
|
891
|
-
/** CPU sampling interval in microseconds */
|
|
980
|
+
/** CPU sampling interval in microseconds. */
|
|
892
981
|
sample_interval_us?: number;
|
|
893
|
-
/** Take over
|
|
982
|
+
/** Take over another active fresh session (ask user approval first). */
|
|
894
983
|
force?: boolean;
|
|
895
984
|
};
|
|
896
985
|
"react-profiler-status": {
|
|
897
|
-
/** Metro port
|
|
986
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
898
987
|
port?: number;
|
|
899
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. */
|
|
900
989
|
device_id: string;
|
|
901
990
|
};
|
|
902
991
|
"react-profiler-stop": {
|
|
903
|
-
/** Metro port
|
|
992
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
904
993
|
port?: number;
|
|
905
994
|
/** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
|
|
906
995
|
device_id: string;
|
|
907
996
|
};
|
|
908
997
|
"reinstall-app": {
|
|
909
|
-
/**
|
|
998
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
910
999
|
udid: string;
|
|
911
|
-
/**
|
|
1000
|
+
/** Bundle id (iOS), package name (Android), component id (Vega), or bundleName (HarmonyOS). */
|
|
912
1001
|
bundleId: string;
|
|
913
|
-
/** Path to
|
|
1002
|
+
/** Path to `.app` (iOS), `.apk` (Android), `.vpkg` (Vega), or `.hap` (HarmonyOS). */
|
|
914
1003
|
appPath: string;
|
|
915
1004
|
};
|
|
916
1005
|
"restart-app": {
|
|
917
|
-
/** Target device id from `list-devices
|
|
1006
|
+
/** Target device id from `list-devices`. */
|
|
918
1007
|
udid: string;
|
|
919
|
-
/** App identifier
|
|
1008
|
+
/** App identifier (iOS/Mac app bundle id, Android package name, Vega interactive component app id, or HarmonyOS bundle name). */
|
|
920
1009
|
bundleId: string;
|
|
921
|
-
/** Android
|
|
1010
|
+
/** Android only: Activity name to relaunch (default: launcher activity). */
|
|
922
1011
|
activity?: string;
|
|
923
|
-
/** Apple
|
|
1012
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. */
|
|
924
1013
|
launchArgs?: Array<string>;
|
|
925
1014
|
};
|
|
926
1015
|
rotate: {
|
|
@@ -930,30 +1019,30 @@ export interface ArgentToolArgs {
|
|
|
930
1019
|
orientation: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
931
1020
|
};
|
|
932
1021
|
"run-sequence": {
|
|
933
|
-
/** Target device id from `list-devices
|
|
1022
|
+
/** Target device id from `list-devices`, shared across all steps. */
|
|
934
1023
|
udid: string;
|
|
935
|
-
/** Ordered
|
|
1024
|
+
/** Ordered steps to execute. */
|
|
936
1025
|
steps: Array<{
|
|
937
|
-
/**
|
|
1026
|
+
/** Allowed tool name (see description). */
|
|
938
1027
|
tool: string;
|
|
939
|
-
/** Tool arguments (
|
|
1028
|
+
/** Tool arguments (omit `udid`, injected automatically). */
|
|
940
1029
|
args: {
|
|
941
1030
|
[key: string]: unknown;
|
|
942
1031
|
};
|
|
943
|
-
/**
|
|
1032
|
+
/** Extra pause in ms after step settle (default 100). */
|
|
944
1033
|
delayMs?: number;
|
|
945
1034
|
}>;
|
|
946
|
-
/** Wait up to 1000ms
|
|
1035
|
+
/** Wait up to 1000ms for tree settle between screen-changing steps (default true). */
|
|
947
1036
|
settle?: boolean;
|
|
948
1037
|
};
|
|
949
1038
|
"screen-recording-start": {
|
|
950
|
-
/** Target ID from `list-devices
|
|
1039
|
+
/** Target ID from `list-devices` (Mac app: `macos-app-<bundle id>`). */
|
|
951
1040
|
udid: string;
|
|
952
|
-
/** Auto-stop cap in seconds (default 180).
|
|
1041
|
+
/** Auto-stop cap in seconds (default 180). */
|
|
953
1042
|
timeLimitSeconds?: number;
|
|
954
|
-
/**
|
|
1043
|
+
/** Collapse idle unchanged stretches after 1s (default true; false = real-time). */
|
|
955
1044
|
trimStatic?: boolean;
|
|
956
|
-
/** Draw touch markers
|
|
1045
|
+
/** Draw touch markers (default true; unsupported on physical iPhones). Mac apps: shows pointer, click ring, and hold dot. */
|
|
957
1046
|
showTouches?: boolean;
|
|
958
1047
|
};
|
|
959
1048
|
"screen-recording-stop": {
|
|
@@ -961,41 +1050,41 @@ export interface ArgentToolArgs {
|
|
|
961
1050
|
udid: string;
|
|
962
1051
|
};
|
|
963
1052
|
screenshot: {
|
|
964
|
-
/** Target device id from `list-devices
|
|
1053
|
+
/** Target device id from `list-devices`. */
|
|
965
1054
|
udid: string;
|
|
966
|
-
/** Orientation override
|
|
1055
|
+
/** Orientation override (rarely needed; captures already follow UI orientation). Rejected on HarmonyOS (captures display in current orientation). Ignored on physical iPhones. */
|
|
967
1056
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
968
|
-
/** 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). */
|
|
969
1058
|
scale?: number;
|
|
970
|
-
/** Set false only when
|
|
1059
|
+
/** Set false only when saving a full-res (`scale: 1.0`) baseline/current for `screenshot-diff`. */
|
|
971
1060
|
includeImageInContext?: boolean;
|
|
972
|
-
/**
|
|
1061
|
+
/** Chromium only: downscaler when scale < 1 (default lanczos3). */
|
|
973
1062
|
downscaler?: "lanczos3" | "box" | "bilinear" | "nearest";
|
|
974
1063
|
};
|
|
975
1064
|
"screenshot-diff": {
|
|
976
|
-
/**
|
|
1065
|
+
/** Saved baseline PNG path (omit when `captureBaseline: true`). */
|
|
977
1066
|
baselinePath?: string;
|
|
978
|
-
/**
|
|
1067
|
+
/** Saved current PNG path (omit when `captureCurrent: true`). */
|
|
979
1068
|
currentPath?: string;
|
|
980
|
-
/** 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). */
|
|
981
1070
|
udid: string;
|
|
982
|
-
/** Capture
|
|
1071
|
+
/** Capture baseline live from the device, at full resolution (mutually exclusive with `captureCurrent`). */
|
|
983
1072
|
captureBaseline?: boolean;
|
|
984
|
-
/** Capture
|
|
1073
|
+
/** Capture current live from the device, at full resolution (mutually exclusive with `captureBaseline`). */
|
|
985
1074
|
captureCurrent?: boolean;
|
|
986
|
-
/** Orientation override for live
|
|
1075
|
+
/** Orientation override for live captures. Rejected on HarmonyOS. Ignored on physical iPhones. */
|
|
987
1076
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
988
|
-
/**
|
|
1077
|
+
/** Output directory for diff artifacts (default: temp dir). */
|
|
989
1078
|
outputDir?: string;
|
|
990
1079
|
};
|
|
991
1080
|
"settings-permissions": {
|
|
992
|
-
/**
|
|
1081
|
+
/** Device id from `list-devices` (iOS simulator UDID or Android serial). */
|
|
993
1082
|
udid: string;
|
|
994
|
-
/** `grant` pre-
|
|
1083
|
+
/** `grant` (pre-authorize), `deny`, or `reset` (re-prompt on next use). */
|
|
995
1084
|
action: "grant" | "deny" | "reset";
|
|
996
|
-
/**
|
|
1085
|
+
/** Permission name (`notifications` = Android-only; `reminders` = iOS-only). */
|
|
997
1086
|
permission: "camera" | "microphone" | "photos" | "contacts" | "notifications" | "calendar" | "location" | "location-always" | "media-library" | "motion" | "reminders";
|
|
998
|
-
/**
|
|
1087
|
+
/** Target app bundle id (iOS) or package name (Android). */
|
|
999
1088
|
bundleId: string;
|
|
1000
1089
|
};
|
|
1001
1090
|
shake: {
|
|
@@ -1023,11 +1112,11 @@ export interface ArgentToolArgs {
|
|
|
1023
1112
|
bundleId: string;
|
|
1024
1113
|
};
|
|
1025
1114
|
"tv-remote": {
|
|
1026
|
-
/**
|
|
1115
|
+
/** TV device id from `list-devices` (Apple TV, Android TV, or Vega). */
|
|
1027
1116
|
udid: string;
|
|
1028
|
-
/**
|
|
1117
|
+
/** Single remote button or array path run in one call (e.g. ["up","right","select"]; prefer an array over repeated calls). */
|
|
1029
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">;
|
|
1030
|
-
/** Repeat
|
|
1119
|
+
/** Repeat `button` N times (default 1, e.g. `{ button: "down", repeat: 12 }`). */
|
|
1031
1120
|
repeat?: number;
|
|
1032
1121
|
};
|
|
1033
1122
|
"ui-tree": {
|
|
@@ -1039,21 +1128,21 @@ export interface ArgentToolArgs {
|
|
|
1039
1128
|
target?: "auto" | "global" | "local" | "both";
|
|
1040
1129
|
};
|
|
1041
1130
|
"view-network-logs": {
|
|
1042
|
-
/** Metro port
|
|
1131
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1043
1132
|
port?: number;
|
|
1044
|
-
/** 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>`. */
|
|
1045
1134
|
device_id: string;
|
|
1046
|
-
/**
|
|
1135
|
+
/** 0-based page index, or `"latest"`/null for newest (50 entries/page). */
|
|
1047
1136
|
pageIndex?: number | "latest" | null;
|
|
1048
1137
|
};
|
|
1049
1138
|
"view-network-request-details": {
|
|
1050
|
-
/** Metro port
|
|
1139
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1051
1140
|
port?: number;
|
|
1052
|
-
/** Device ID for the
|
|
1141
|
+
/** Device ID for the log (or `logicalDeviceId` if JS capture used it); Mac app: Mac app id. */
|
|
1053
1142
|
device_id: string;
|
|
1054
|
-
/** Request ID from
|
|
1143
|
+
/** Request ID from `view-network-logs`, `native-network-logs`, or `await-network-request`. */
|
|
1055
1144
|
requestId: string;
|
|
1056
|
-
/**
|
|
1145
|
+
/** Include response body (default true). */
|
|
1057
1146
|
includeBody?: boolean;
|
|
1058
1147
|
};
|
|
1059
1148
|
/** @deprecated Renamed to `e2e-add-echo`. */
|