@swmansion/argent 0.33.1-next.5 → 0.33.1-next.7
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
CHANGED
|
@@ -35872,7 +35872,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
35872
35872
|
var SESSION_ID2 = randomUUID5();
|
|
35873
35873
|
function readCliVersion() {
|
|
35874
35874
|
if (true) {
|
|
35875
|
-
return "0.33.1-next.
|
|
35875
|
+
return "0.33.1-next.7";
|
|
35876
35876
|
}
|
|
35877
35877
|
return "0.0.0";
|
|
35878
35878
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -16981,7 +16981,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16981
16981
|
var SESSION_ID = randomUUID4();
|
|
16982
16982
|
function readCliVersion() {
|
|
16983
16983
|
if (true) {
|
|
16984
|
-
return "0.33.1-next.
|
|
16984
|
+
return "0.33.1-next.7";
|
|
16985
16985
|
}
|
|
16986
16986
|
return "0.0.0";
|
|
16987
16987
|
}
|
|
@@ -22471,7 +22471,11 @@ function runShellCommand(cmd, opts = {}) {
|
|
|
22471
22471
|
shell: process.platform === "win32",
|
|
22472
22472
|
...opts.cwd ? { cwd: opts.cwd } : {}
|
|
22473
22473
|
});
|
|
22474
|
+
let stdout2 = "";
|
|
22474
22475
|
let stderr = "";
|
|
22476
|
+
child.stdout?.on("data", (chunk) => {
|
|
22477
|
+
stdout2 += chunk.toString();
|
|
22478
|
+
});
|
|
22475
22479
|
child.stderr?.on("data", (chunk) => {
|
|
22476
22480
|
stderr += chunk.toString();
|
|
22477
22481
|
});
|
|
@@ -22480,7 +22484,7 @@ function runShellCommand(cmd, opts = {}) {
|
|
|
22480
22484
|
else
|
|
22481
22485
|
reject(
|
|
22482
22486
|
new ShellCommandError(
|
|
22483
|
-
stderr.trim() || (signal !== null ? `Command terminated by signal ${signal}` : `Command exited with code ${code}`),
|
|
22487
|
+
stderr.trim() || stdout2.trim() || (signal !== null ? `Command terminated by signal ${signal}` : `Command exited with code ${code}`),
|
|
22484
22488
|
code,
|
|
22485
22489
|
signal
|
|
22486
22490
|
)
|
package/dist/tool-server.cjs
CHANGED
|
@@ -101273,7 +101273,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
101273
101273
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
101274
101274
|
function readCliVersion() {
|
|
101275
101275
|
if (true) {
|
|
101276
|
-
return "0.33.1-next.
|
|
101276
|
+
return "0.33.1-next.7";
|
|
101277
101277
|
}
|
|
101278
101278
|
return "0.0.0";
|
|
101279
101279
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.33.1-next.
|
|
3
|
+
"version": "0.33.1-next.7",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -15,7 +15,7 @@ react-native-macos app: start Metro (§1.2), then follow `argent-macos-app-inter
|
|
|
15
15
|
|
|
16
16
|
**If the project structure is convoluted, ask the user before proceeding.**
|
|
17
17
|
|
|
18
|
-
Once you know how the project starts Metro, builds and runs the app, and what environment setup it needs,
|
|
18
|
+
Once you know how the project starts Metro, builds and runs the app, and what environment setup it needs, reuse that for the rest of the session instead of rediscovering it.
|
|
19
19
|
|
|
20
20
|
### 1.2 Start Metro
|
|
21
21
|
|
|
@@ -16,8 +16,7 @@ For implementation tasks that modify visible UI, this workflow also serves as a
|
|
|
16
16
|
1. **Baseline screenshot**: call `screenshot` to see the current UI state. For visual regression comparison or UI change verification, capture the baseline at `scale: 1.0` with `includeImageInContext: false` and keep the returned `path` before editing whenever feasible.
|
|
17
17
|
2. **Find target**: get element coordinates from a discovery tool before tapping:
|
|
18
18
|
- **App screens (React Native included), in-app modals and system dialogs**: `describe`. Fall back to `screenshot` only if an overlay is not exposed reliably. When the app raises its own permission dialog, answer it here; that's the real flow under test. To take a prompt _out_ of the flow, use `argent-settings-permissions` during setup.
|
|
19
|
-
|
|
20
|
-
3. **Interact**: perform the action (`gesture-tap`, `gesture-swipe`, `keyboard`, `button`, ...); you receive a screenshot automatically.
|
|
19
|
+
3. **Interact**: perform the action (`gesture-tap`, `gesture-swipe`, `keyboard`, `button`, ...); you receive a screenshot and element tree automatically.
|
|
21
20
|
4. **Verify**: check the returned screenshot. If it shows a loading/transitional state, block with `await-ui-element` (expected element `visible`, or a spinner `hidden`) rather than a guessed delay (its result carries the new screenshot and element tree), but only with a selector you can trust (`text`/`identifier`/`role`) that the screen is known to have or that you saw in a prior `describe`; a guessed one just times out. Otherwise use a short fixed wait. Pick evidence by what's being asserted:
|
|
22
21
|
- **Visual** (layout, spacing, color, typography, image/icon rendering, clipping, overflow, text rendering): prefer `screenshot-diff` against the step 1 baseline: it surfaces pixel-visible changes the auto-screenshot might miss. Fall back to inspecting the auto-screenshot only when a stable baseline isn't available.
|
|
23
22
|
- **Structural** (navigation state, element existence, accessibility labels/values, selection, hierarchy, route): verify with `describe` or `debugger-component-tree`.
|
|
@@ -29,13 +28,12 @@ For implementation tasks that modify visible UI, this workflow also serves as a
|
|
|
29
28
|
## 2. Example: login flow
|
|
30
29
|
|
|
31
30
|
```
|
|
32
|
-
1.
|
|
33
|
-
2. gesture-tap
|
|
31
|
+
1. describe → login screen
|
|
32
|
+
2. gesture-tap email field (frame centre from the tree)
|
|
34
33
|
3. keyboard { text: "user@example.com" }
|
|
35
|
-
4. gesture-tap
|
|
36
|
-
5. keyboard { text: "{{secret:APP_PASSWORD}}" }
|
|
37
|
-
6.
|
|
38
|
-
7. screenshot → verify home screen appeared
|
|
34
|
+
4. gesture-tap password field (from the returned tree)
|
|
35
|
+
5. run-sequence: keyboard { text: "{{secret:APP_PASSWORD}}" }, gesture-tap Login button
|
|
36
|
+
6. await-ui-element → home screen appeared
|
|
39
37
|
```
|
|
40
38
|
|
|
41
39
|
> **Credentials:** never type plaintext credentials; use a `{{secret:<NAME>}}` placeholder (`keyboard`'s `text` parameter lists where it is read from and what to do when a name is missing). Never invent credentials or echo secret values into reports or saved files.
|