@swmansion/argent 0.15.1-next.13 → 0.15.1-next.2
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 +3 -12
- package/bin/darwin/simulator-server +0 -0
- package/bin/linux/simulator-server +0 -0
- package/bin/linux-arm64/simulator-server +0 -0
- package/dist/bundled-paths.js +2 -3
- package/dist/bundled-paths.js.map +1 -1
- package/dist/cli-cmds.mjs +6 -39
- package/dist/installer.mjs +34 -416
- package/dist/mcp-server.mjs +3 -35
- package/dist/tool-server.cjs +152 -545
- package/package.json +5 -3
- package/rules/argent.md +2 -2
- package/scripts/postinstall.cjs +105 -0
- package/skills/argent-create-flow/SKILL.md +16 -22
- package/skills/argent-device-interact/SKILL.md +0 -12
- package/skills/argent-metro-debugger/SKILL.md +8 -11
- package/skills/argent-metro-debugger/references/failure-scenarios.md +6 -6
- package/skills/argent-test-ui-flow/SKILL.md +1 -3
- package/skills/argent-tv-interact/SKILL.md +1 -11
package/dist/mcp-server.mjs
CHANGED
|
@@ -15725,21 +15725,8 @@ async function sweepDeadStateFiles() {
|
|
|
15725
15725
|
for (const { file } of await readAllToolsServerStates()) {
|
|
15726
15726
|
if (file === STATE_FILE) continue;
|
|
15727
15727
|
const fresh = await readStateFile(file);
|
|
15728
|
-
if (!fresh)
|
|
15729
|
-
if (!isProcessAlive(fresh.pid)) {
|
|
15730
|
-
await unlink(file).catch(() => {
|
|
15731
|
-
});
|
|
15732
|
-
continue;
|
|
15733
|
-
}
|
|
15734
|
-
if (fs.existsSync(fresh.bundlePath)) continue;
|
|
15735
|
-
const guarded = process.platform !== "win32";
|
|
15736
|
-
if (guarded && !processCommandMatches(fresh.pid, fresh.bundlePath)) continue;
|
|
15737
|
-
await unlink(file).catch(() => {
|
|
15728
|
+
if (fresh && !isProcessAlive(fresh.pid)) await unlink(file).catch(() => {
|
|
15738
15729
|
});
|
|
15739
|
-
void terminatePid(
|
|
15740
|
-
fresh.pid,
|
|
15741
|
-
guarded ? () => processCommandMatches(fresh.pid, fresh.bundlePath) : void 0
|
|
15742
|
-
);
|
|
15743
15730
|
}
|
|
15744
15731
|
}
|
|
15745
15732
|
var readState = readToolsServerState;
|
|
@@ -17673,10 +17660,10 @@ var FAILURE_CODES = {
|
|
|
17673
17660
|
ANDROID_UIAUTOMATOR_PARSE_FAILED: "ANDROID_UIAUTOMATOR_PARSE_FAILED",
|
|
17674
17661
|
ANDROID_UIAUTOMATOR_CAPTURE_FAILED: "ANDROID_UIAUTOMATOR_CAPTURE_FAILED",
|
|
17675
17662
|
DEBUGGER_METRO_NOT_RUNNING: "DEBUGGER_METRO_NOT_RUNNING",
|
|
17663
|
+
DEBUGGER_METRO_PROJECT_ROOT_MISSING: "DEBUGGER_METRO_PROJECT_ROOT_MISSING",
|
|
17676
17664
|
DEBUGGER_METRO_NO_TARGETS: "DEBUGGER_METRO_NO_TARGETS",
|
|
17677
17665
|
DEBUGGER_CDP_RUNTIME_EXCEPTION: "DEBUGGER_CDP_RUNTIME_EXCEPTION",
|
|
17678
17666
|
DEBUGGER_CDP_BINDING_TIMEOUT: "DEBUGGER_CDP_BINDING_TIMEOUT",
|
|
17679
|
-
DEBUGGER_CDP_BINDING_UNAVAILABLE: "DEBUGGER_CDP_BINDING_UNAVAILABLE",
|
|
17680
17667
|
DEBUGGER_CDP_PROTOCOL_ERROR: "DEBUGGER_CDP_PROTOCOL_ERROR",
|
|
17681
17668
|
DEBUGGER_RELOAD_FAILED: "DEBUGGER_RELOAD_FAILED",
|
|
17682
17669
|
JS_RUNTIME_CONSOLE_SERVER_BIND_FAILED: "JS_RUNTIME_CONSOLE_SERVER_BIND_FAILED",
|
|
@@ -17763,7 +17750,6 @@ var FAILURE_CODES = {
|
|
|
17763
17750
|
CHROMIUM_ELECTRON_EXITED_BEFORE_READY: "CHROMIUM_ELECTRON_EXITED_BEFORE_READY",
|
|
17764
17751
|
KEYBOARD_KEY_UNSUPPORTED: "KEYBOARD_KEY_UNSUPPORTED",
|
|
17765
17752
|
KEYBOARD_CHARACTER_UNSUPPORTED: "KEYBOARD_CHARACTER_UNSUPPORTED",
|
|
17766
|
-
SECRET_PLACEHOLDER_UNKNOWN: "SECRET_PLACEHOLDER_UNKNOWN",
|
|
17767
17753
|
SCREENSHOT_DIFF_INPUT_INVALID: "SCREENSHOT_DIFF_INPUT_INVALID",
|
|
17768
17754
|
BOOT_DEVICE_TARGET_SELECTION_INVALID: "BOOT_DEVICE_TARGET_SELECTION_INVALID",
|
|
17769
17755
|
BOOT_IOS_UNSUPPORTED_HOST: "BOOT_IOS_UNSUPPORTED_HOST",
|
|
@@ -18017,8 +18003,6 @@ var ALLOWED = {
|
|
|
18017
18003
|
action: PACKAGE_ACTION,
|
|
18018
18004
|
is_success: bool,
|
|
18019
18005
|
duration_ms: DURATION_MS,
|
|
18020
|
-
retry_count: COUNT,
|
|
18021
|
-
last_attempt_duration_ms: DURATION_MS,
|
|
18022
18006
|
...FAILURE_SIGNAL
|
|
18023
18007
|
},
|
|
18024
18008
|
"installation:cli_update_start": {},
|
|
@@ -18997,14 +18981,6 @@ var DEFAULT_DELAY_MS = 1400;
|
|
|
18997
18981
|
function autoScreenshotEnabled(options) {
|
|
18998
18982
|
return !isFlagEnabled("disable-auto-screenshot", options);
|
|
18999
18983
|
}
|
|
19000
|
-
var SECRET_PLACEHOLDER_MARKER = "{{secret:";
|
|
19001
|
-
function containsSecretPlaceholder(args) {
|
|
19002
|
-
try {
|
|
19003
|
-
return JSON.stringify(args)?.includes(SECRET_PLACEHOLDER_MARKER) ?? false;
|
|
19004
|
-
} catch {
|
|
19005
|
-
return true;
|
|
19006
|
-
}
|
|
19007
|
-
}
|
|
19008
18984
|
function getUdidFromArgs(args) {
|
|
19009
18985
|
if (args && typeof args === "object" && "udid" in args && typeof args.udid === "string") {
|
|
19010
18986
|
return args.udid;
|
|
@@ -19233,15 +19209,7 @@ async function startMcpServer(options) {
|
|
|
19233
19209
|
content = await toMcpContent(result, outputHint, ctx, params.arguments);
|
|
19234
19210
|
}
|
|
19235
19211
|
const udid = getUdidFromArgs(params.arguments);
|
|
19236
|
-
if (autoScreenshotOn && udid && shouldAutoScreenshot(params.name)
|
|
19237
|
-
content = [
|
|
19238
|
-
...content,
|
|
19239
|
-
{
|
|
19240
|
-
type: "text",
|
|
19241
|
-
text: "Auto-screenshot skipped: the input contains a {{secret:\u2026}} placeholder, and a screenshot of this screen could reveal the typed secret. Submit or navigate away first, then verify the resulting screen as usual."
|
|
19242
|
-
}
|
|
19243
|
-
];
|
|
19244
|
-
} else if (autoScreenshotOn && udid && shouldAutoScreenshot(params.name)) {
|
|
19212
|
+
if (autoScreenshotOn && udid && shouldAutoScreenshot(params.name)) {
|
|
19245
19213
|
const maxWaitMs = getAutoScreenshotDelayMs(params.name);
|
|
19246
19214
|
if (maxWaitMs > 0) {
|
|
19247
19215
|
try {
|