@swmansion/argent 0.26.1-next.0 → 0.26.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/dist/cli-cmds.mjs CHANGED
@@ -21877,7 +21877,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
21877
21877
  var SESSION_ID2 = randomUUID5();
21878
21878
  function readCliVersion() {
21879
21879
  if (true) {
21880
- return "0.26.1-next.0";
21880
+ return "0.26.1-next.2";
21881
21881
  }
21882
21882
  return "0.0.0";
21883
21883
  }
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16730
16730
  var SESSION_ID = randomUUID4();
16731
16731
  function readCliVersion() {
16732
16732
  if (true) {
16733
- return "0.26.1-next.0";
16733
+ return "0.26.1-next.2";
16734
16734
  }
16735
16735
  return "0.0.0";
16736
16736
  }
@@ -94811,7 +94811,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
94811
94811
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
94812
94812
  function readCliVersion() {
94813
94813
  if (true) {
94814
- return "0.26.1-next.0";
94814
+ return "0.26.1-next.2";
94815
94815
  }
94816
94816
  return "0.0.0";
94817
94817
  }
@@ -124513,15 +124513,15 @@ Pass momentum:false for a momentum-free drag that decelerates into the release,
124513
124513
  err.name = "AbortError";
124514
124514
  return err;
124515
124515
  };
124516
+ let buttonDown;
124517
+ const release = async (x, y) => {
124518
+ buttonDown = false;
124519
+ await chromium.dispatchMouseEvent({ type: "mouseReleased", x, y, clickCount: 1 });
124520
+ };
124516
124521
  const releaseAndAbort = async (frame) => {
124517
124522
  const err = abortError(frame);
124518
124523
  try {
124519
- await chromium.dispatchMouseEvent({
124520
- type: "mouseReleased",
124521
- x: lastX,
124522
- y: lastY,
124523
- clickCount: 1
124524
- });
124524
+ await release(lastX, lastY);
124525
124525
  } catch (releaseErr) {
124526
124526
  err.cause = releaseErr;
124527
124527
  }
@@ -124534,26 +124534,28 @@ Pass momentum:false for a momentum-free drag that decelerates into the release,
124534
124534
  y: startPx.y,
124535
124535
  clickCount: 1
124536
124536
  });
124537
- for (let i = 1; i < steps; i++) {
124538
- if (ctx?.signal?.aborted) await releaseAndAbort(i);
124539
- await sleep5(Math.max(0, t0 + i * frameMs - Date.now()));
124540
- const t = i / steps;
124541
- const progress = momentumFree ? 1 - Math.pow(1 - t, MOMENTUM_FREE_EASE_EXPONENT2) : t;
124542
- const x = startPx.x + (endPx.x - startPx.x) * progress;
124543
- const y = startPx.y + (endPx.y - startPx.y) * progress;
124544
- await chromium.dispatchMouseEvent({ type: "mouseMoved", x, y, button: "left" });
124545
- lastX = x;
124546
- lastY = y;
124537
+ buttonDown = true;
124538
+ try {
124539
+ for (let i = 1; i < steps; i++) {
124540
+ if (ctx?.signal?.aborted) await releaseAndAbort(i);
124541
+ await sleep5(Math.max(0, t0 + i * frameMs - Date.now()));
124542
+ const t = i / steps;
124543
+ const progress = momentumFree ? 1 - Math.pow(1 - t, MOMENTUM_FREE_EASE_EXPONENT2) : t;
124544
+ const x = startPx.x + (endPx.x - startPx.x) * progress;
124545
+ const y = startPx.y + (endPx.y - startPx.y) * progress;
124546
+ await chromium.dispatchMouseEvent({ type: "mouseMoved", x, y, button: "left" });
124547
+ lastX = x;
124548
+ lastY = y;
124549
+ }
124550
+ if (ctx?.signal?.aborted) await releaseAndAbort(steps);
124551
+ await sleep5(Math.max(0, t0 + durationMs - Date.now()));
124552
+ if (ctx?.signal?.aborted) await releaseAndAbort(steps);
124553
+ await release(endPx.x, endPx.y);
124554
+ } catch (err) {
124555
+ if (buttonDown) await release(lastX, lastY).catch(() => {
124556
+ });
124557
+ throw err;
124547
124558
  }
124548
- if (ctx?.signal?.aborted) await releaseAndAbort(steps);
124549
- await sleep5(Math.max(0, t0 + durationMs - Date.now()));
124550
- if (ctx?.signal?.aborted) await releaseAndAbort(steps);
124551
- await chromium.dispatchMouseEvent({
124552
- type: "mouseReleased",
124553
- x: endPx.x,
124554
- y: endPx.y,
124555
- clickCount: 1
124556
- });
124557
124559
  return { dragged: true, timestampMs };
124558
124560
  }
124559
124561
  };
@@ -142925,6 +142927,9 @@ var nativeProfilerAnalyzeTool = {
142925
142927
  failedMsg: ({ failureSignal: failureSignal2 }) => `Failed to analyze native profile: ${failureSignal2.error_code}`
142926
142928
  },
142927
142929
  capability: capability28,
142930
+ // Parsing a trace from a recording up to RECORDING_CAP_MS long routinely exceeds
142931
+ // the 30s MCP fetch timeout, and an aborted call is replayed, not cancelled.
142932
+ longRunning: true,
142928
142933
  description: `Analyze exported native trace data and return an LLM-optimized markdown report.
142929
142934
  iOS: parses CPU time profile, UI hangs, and memory leaks from the exported XML files.
142930
142935
  Android: queries the Perfetto .pftrace via the in-process Perfetto trace-processor engine for CPU hotspots, UI hangs with jank reason + main-thread state breakdown, GC annotation, and an RSS-growth weak signal.
@@ -145240,6 +145245,10 @@ Fails if native-profiler-analyze has not been run or no parsed trace data is in
145240
145245
  apple: { simulator: true },
145241
145246
  android: { emulator: true, device: true, unknown: true }
145242
145247
  },
145248
+ // The Android branch re-queries the .pftrace, so a cold trace-processor engine
145249
+ // re-pays the full parse past the 30s MCP fetch timeout, whose abort replays
145250
+ // rather than cancels.
145251
+ longRunning: true,
145243
145252
  services: (params) => ({
145244
145253
  session: nativeProfilerSessionRef(resolveDevice(params.device_id))
145245
145254
  }),
@@ -145324,6 +145333,10 @@ Fails if either react-profiler-analyze or native-profiler-analyze has not been c
145324
145333
  apple: { simulator: true },
145325
145334
  android: { emulator: true, device: true, unknown: true }
145326
145335
  },
145336
+ // The Android branch re-queries the .pftrace, so a cold trace-processor engine
145337
+ // re-pays the full parse past the 30s MCP fetch timeout, whose abort replays
145338
+ // rather than cancels.
145339
+ longRunning: true,
145327
145340
  services: (params) => ({
145328
145341
  nativeSession: nativeProfilerSessionRef(resolveDevice(params.device_id))
145329
145342
  }),
@@ -146002,6 +146015,9 @@ Fails if the session_id is not found or required XML files are missing from disk
146002
146015
  // The Hermes, xctrace and perfetto formats this loads have no Chromium
146003
146016
  // equivalent; the gate fails at the call site, not inside the trace parser.
146004
146017
  capability: RN_ONLY_TOOL_CAPABILITY,
146018
+ // load_native re-parses the whole export, which can outlast the 30s MCP fetch
146019
+ // timeout; an aborted call is replayed, not cancelled.
146020
+ longRunning: true,
146005
146021
  services: (params) => {
146006
146022
  const svcs = {};
146007
146023
  if (params.mode === "load_native") {
@@ -158759,8 +158775,8 @@ function start() {
158759
158775
  reason
158760
158776
  );
158761
158777
  });
158762
- const PORT = parseInt(process.env.ARGENT_PORT ?? DEFAULT_PORT, 10);
158763
- const HOST = process.env.ARGENT_HOST ?? DEFAULT_HOST;
158778
+ const PORT = parseInt(process.env.ARGENT_PORT?.trim() || DEFAULT_PORT, 10);
158779
+ const HOST = process.env.ARGENT_HOST?.trim() || DEFAULT_HOST;
158764
158780
  const idleMinutes = parseInt(
158765
158781
  process.env.ARGENT_IDLE_TIMEOUT_MINUTES ?? DEFAULT_IDLE_TIMEOUT_MINUTES,
158766
158782
  10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.26.1-next.0",
3
+ "version": "0.26.1-next.2",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",