@swmansion/argent 0.35.1-next.96 → 0.35.1-next.98
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 +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/mcp-server.mjs +1 -1
- package/dist/tool-server.cjs +15 -13
- package/package.json +2 -2
package/dist/cli-cmds.mjs
CHANGED
|
@@ -39157,7 +39157,7 @@ function isCi(env = process.env) {
|
|
|
39157
39157
|
var SESSION_ID2 = randomUUID5();
|
|
39158
39158
|
function readCliVersion() {
|
|
39159
39159
|
if (true) {
|
|
39160
|
-
return "0.35.1-next.
|
|
39160
|
+
return "0.35.1-next.98";
|
|
39161
39161
|
}
|
|
39162
39162
|
return "0.0.0";
|
|
39163
39163
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -17177,7 +17177,7 @@ function isCi(env = process.env) {
|
|
|
17177
17177
|
var SESSION_ID = randomUUID4();
|
|
17178
17178
|
function readCliVersion() {
|
|
17179
17179
|
if (true) {
|
|
17180
|
-
return "0.35.1-next.
|
|
17180
|
+
return "0.35.1-next.98";
|
|
17181
17181
|
}
|
|
17182
17182
|
return "0.0.0";
|
|
17183
17183
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -38589,7 +38589,7 @@ async function startMcpServer(options) {
|
|
|
38589
38589
|
const autoDescribeOn = autoDescribeEnabled();
|
|
38590
38590
|
const whatsNewOn = whatsNewEnabled();
|
|
38591
38591
|
const installedVersion = getInstalledVersion();
|
|
38592
|
-
const highlightsVersion = true ? "0.35.1-next.
|
|
38592
|
+
const highlightsVersion = true ? "0.35.1-next.98" : installedVersion;
|
|
38593
38593
|
const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
|
|
38594
38594
|
const trees = createTreeMemory();
|
|
38595
38595
|
const screenshots = createScreenshotMemory();
|
package/dist/tool-server.cjs
CHANGED
|
@@ -73425,7 +73425,7 @@ function isCi(env = process.env) {
|
|
|
73425
73425
|
var SESSION_ID = (0, import_node_crypto4.randomUUID)();
|
|
73426
73426
|
function readCliVersion() {
|
|
73427
73427
|
if (true) {
|
|
73428
|
-
return "0.35.1-next.
|
|
73428
|
+
return "0.35.1-next.98";
|
|
73429
73429
|
}
|
|
73430
73430
|
return "0.0.0";
|
|
73431
73431
|
}
|
|
@@ -141915,17 +141915,7 @@ init_zod();
|
|
|
141915
141915
|
// ../tool-server/src/utils/chromium-visibility.ts
|
|
141916
141916
|
init_src2();
|
|
141917
141917
|
async function assertChromiumWindowVisible(chromium, action) {
|
|
141918
|
-
|
|
141919
|
-
try {
|
|
141920
|
-
const raw = await chromium.cdp.send("Runtime.evaluate", {
|
|
141921
|
-
expression: "document.visibilityState",
|
|
141922
|
-
returnByValue: true
|
|
141923
|
-
});
|
|
141924
|
-
value = raw.result?.value;
|
|
141925
|
-
} catch {
|
|
141926
|
-
return;
|
|
141927
|
-
}
|
|
141928
|
-
if (value === "hidden") {
|
|
141918
|
+
if (await isChromiumWindowHidden(chromium)) {
|
|
141929
141919
|
throw new FailureError(
|
|
141930
141920
|
`Cannot ${action}: the Chromium window is hidden (minimized or fully occluded), so the renderer will not process mouse input. Bring the window to the foreground and retry.`,
|
|
141931
141921
|
{
|
|
@@ -141937,6 +141927,17 @@ async function assertChromiumWindowVisible(chromium, action) {
|
|
|
141937
141927
|
);
|
|
141938
141928
|
}
|
|
141939
141929
|
}
|
|
141930
|
+
async function isChromiumWindowHidden(chromium) {
|
|
141931
|
+
try {
|
|
141932
|
+
const raw = await chromium.cdp.send("Runtime.evaluate", {
|
|
141933
|
+
expression: "document.visibilityState",
|
|
141934
|
+
returnByValue: true
|
|
141935
|
+
});
|
|
141936
|
+
return raw.result?.value === "hidden";
|
|
141937
|
+
} catch {
|
|
141938
|
+
return false;
|
|
141939
|
+
}
|
|
141940
|
+
}
|
|
141940
141941
|
|
|
141941
141942
|
// ../tool-server/src/tools/gesture-tap/index.ts
|
|
141942
141943
|
init_device_info();
|
|
@@ -142843,7 +142844,7 @@ var gestureCustomTool = {
|
|
|
142843
142844
|
description: `Send a custom sequence of normalized [0,1] touch events.
|
|
142844
142845
|
Use when you need long-press, drag-and-drop, edge/system gestures (\`edge\` on local iOS sim), or multi-waypoint/two-finger paths. Prefer \`gesture-tap\`, \`gesture-swipe\`, \`gesture-pinch\`, or \`gesture-rotate\` for standard gestures.<flag:macos-apps> Not supported on Mac apps (use \`gesture-tap\`, \`gesture-drag\`, \`gesture-scroll\`).</flag:macos-apps>
|
|
142845
142846
|
Physical iOS: Down, optional Moves, then Up (\`x2\`/\`y2\` = second finger). Plain Down then Up: same point = press-hold, other point = drag (\`Up delayMs\` = rest before move); one Move at Down point between them = long-press pickup (\`Move delayMs\` = hold, \`Up delayMs\` = move time); any other train plays as timed paths (each waiting its \`delayMs\`, portrait required).
|
|
142846
|
-
Simulator/emulator: a train
|
|
142847
|
+
Simulator/emulator (not \`edge\` or physical iOS): a train ending without Up leaves the finger down and returns \`{ held: true }\`, so \`screenshot\`/\`describe\` can observe a pressed state; the next call continues it (start with Move or Up). A new touch from any tool or 30 seconds of inactivity lifts it at the held point, which can activate the element; to release without activating it, continue with Move away from the element, then Up.
|
|
142847
142848
|
Example long-press + drag: \`[{"type":"Down","x":0.5,"y":0.6},{"type":"Move","x":0.5,"y":0.6,"delayMs":800},{"type":"Up","x":0.5,"y":0.3,"delayMs":500}]\`.
|
|
142848
142849
|
Returns \`{ events, held?, reactivated? }\` (on physical iOS, \`reactivated: true\` means re-describe). Fails if device is not booted or events are invalid.`,
|
|
142849
142850
|
zodSchema: zodSchema25,
|
|
@@ -177497,6 +177498,7 @@ async function frontChromiumPage(registry2, device) {
|
|
|
177497
177498
|
try {
|
|
177498
177499
|
const ref = chromiumCdpRef(device);
|
|
177499
177500
|
const api = await registry2.resolveService(ref.urn, ref.options);
|
|
177501
|
+
if (!await isChromiumWindowHidden(api)) return;
|
|
177500
177502
|
await api.cdp.send("Page.bringToFront");
|
|
177501
177503
|
} catch {
|
|
177502
177504
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.35.1-next.
|
|
3
|
+
"version": "0.35.1-next.98",
|
|
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",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"vitest": "^5.0.5",
|
|
99
99
|
"yaml": "^2.9.1"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "bcce972ff8a1863f014b87f57172eb987b209f75"
|
|
102
102
|
}
|