@swmansion/argent 0.34.1-next.81 → 0.34.1-next.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-cmds.mjs +7 -5
- package/dist/client.js +1 -0
- package/dist/installer.mjs +2 -1
- package/dist/mcp-server.mjs +1 -0
- package/dist/tool-args.generated.d.ts +20 -0
- package/dist/tool-server.cjs +888 -200
- package/package.json +2 -2
- package/skills/argent-create-e2e/references/live-authoring.md +13 -2
- package/skills/argent-device-interact/SKILL.md +1 -1
- package/skills/argent-metro-debugger/SKILL.md +4 -2
- package/skills/argent-qa-e2e/SKILL.md +3 -2
- package/skills/argent-test-ui-flow/SKILL.md +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -10708,6 +10708,7 @@ var FAILURE_CODES = {
|
|
|
10708
10708
|
ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
|
|
10709
10709
|
ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
|
|
10710
10710
|
NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
|
|
10711
|
+
NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
|
|
10711
10712
|
NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
|
|
10712
10713
|
NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
|
|
10713
10714
|
NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
|
|
@@ -36294,7 +36295,7 @@ function isCi(env = process.env) {
|
|
|
36294
36295
|
var SESSION_ID2 = randomUUID5();
|
|
36295
36296
|
function readCliVersion() {
|
|
36296
36297
|
if (true) {
|
|
36297
|
-
return "0.34.1-next.
|
|
36298
|
+
return "0.34.1-next.81";
|
|
36298
36299
|
}
|
|
36299
36300
|
return "0.0.0";
|
|
36300
36301
|
}
|
|
@@ -38869,10 +38870,11 @@ Examples:
|
|
|
38869
38870
|
|
|
38870
38871
|
Exits 1 when the tool fails. Also exits 1 when the result reports that the
|
|
38871
38872
|
call did not do its job: an e2e test that does not pass, an await-ui-element
|
|
38872
|
-
wait with success=false, a run-sequence that a step
|
|
38873
|
-
with no connection or an error, a native-devtools
|
|
38874
|
-
tool, a native-profiler-analyze with status
|
|
38875
|
-
call that recorded nothing, or a baseline
|
|
38873
|
+
or await-network-request wait with success=false, a run-sequence that a step
|
|
38874
|
+
stopped, a debugger tool with no connection or an error, a native-devtools
|
|
38875
|
+
precheck that stopped the tool, a native-profiler-analyze with status
|
|
38876
|
+
analysis_failed, an e2e recording call that recorded nothing, or a baseline
|
|
38877
|
+
that was not written on this client.
|
|
38876
38878
|
Other results exit 0, also a negative answer such as await-screen-idle's
|
|
38877
38879
|
settled=false or debugger-status's not_connected.
|
|
38878
38880
|
`);
|
package/dist/client.js
CHANGED
|
@@ -9280,6 +9280,7 @@ var FAILURE_CODES = {
|
|
|
9280
9280
|
ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
|
|
9281
9281
|
ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
|
|
9282
9282
|
NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
|
|
9283
|
+
NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
|
|
9283
9284
|
NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
|
|
9284
9285
|
NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
|
|
9285
9286
|
NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
|
package/dist/installer.mjs
CHANGED
|
@@ -15943,6 +15943,7 @@ var FAILURE_CODES = {
|
|
|
15943
15943
|
ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
|
|
15944
15944
|
ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
|
|
15945
15945
|
NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
|
|
15946
|
+
NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
|
|
15946
15947
|
NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
|
|
15947
15948
|
NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
|
|
15948
15949
|
NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
|
|
@@ -16994,7 +16995,7 @@ function isCi(env = process.env) {
|
|
|
16994
16995
|
var SESSION_ID = randomUUID4();
|
|
16995
16996
|
function readCliVersion() {
|
|
16996
16997
|
if (true) {
|
|
16997
|
-
return "0.34.1-next.
|
|
16998
|
+
return "0.34.1-next.81";
|
|
16998
16999
|
}
|
|
16999
17000
|
return "0.0.0";
|
|
17000
17001
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -33703,6 +33703,7 @@ var FAILURE_CODES = {
|
|
|
33703
33703
|
ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
|
|
33704
33704
|
ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
|
|
33705
33705
|
NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
|
|
33706
|
+
NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
|
|
33706
33707
|
NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
|
|
33707
33708
|
NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
|
|
33708
33709
|
NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
|
|
@@ -15,6 +15,26 @@ export interface ArgentToolArgs {
|
|
|
15
15
|
/** App under test; the result then reports `appReady`. */
|
|
16
16
|
bundleId?: string;
|
|
17
17
|
};
|
|
18
|
+
"await-network-request": {
|
|
19
|
+
/** Device ID passed as udid to network-capture-start, even if that call also used logicalDeviceId. */
|
|
20
|
+
udid: string;
|
|
21
|
+
/** App ID passed to network-capture-start. On macOS it must match the app named by udid. On Chromium, use a valid placeholder such as argent.capture. */
|
|
22
|
+
bundleId: string;
|
|
23
|
+
/** URL text or pattern, such as "/v1/auth/login". Do not include secrets. The result includes the matched URL, and {{secret:...}} placeholders are rejected. */
|
|
24
|
+
url: string;
|
|
25
|
+
/** contains (default) searches for a substring. equals compares the full URL. Both ignore case. matches uses a case-sensitive JavaScript regular expression without implicit anchors. */
|
|
26
|
+
urlMatch?: "contains" | "equals" | "matches";
|
|
27
|
+
/** HTTP method such as POST. Ignores case. */
|
|
28
|
+
method?: string;
|
|
29
|
+
/** Exact HTTP status such as 200 or a class such as "2xx". A failed request matches a status only if it received response headers. */
|
|
30
|
+
status?: "1xx" | "2xx" | "3xx" | "4xx" | "5xx" | number;
|
|
31
|
+
/** complete (default) means the response finished, regardless of HTTP status. failed matches a request error such as an abort. any accepts either. */
|
|
32
|
+
outcome?: "complete" | "failed" | "any";
|
|
33
|
+
/** Wait limit in milliseconds. Default 10000. */
|
|
34
|
+
timeoutMs?: number;
|
|
35
|
+
/** Interval between capture reads in milliseconds. Default 400. */
|
|
36
|
+
pollIntervalMs?: number;
|
|
37
|
+
};
|
|
18
38
|
"await-screen-idle": {
|
|
19
39
|
/** Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, HarmonyOS id, Mac app id, or Chromium id). */
|
|
20
40
|
udid: string;
|