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