@swmansion/argent 0.34.1-next.31 → 0.34.1-next.33

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
@@ -36256,7 +36256,7 @@ function isCi(env = process.env) {
36256
36256
  var SESSION_ID2 = randomUUID5();
36257
36257
  function readCliVersion() {
36258
36258
  if (true) {
36259
- return "0.34.1-next.31";
36259
+ return "0.34.1-next.33";
36260
36260
  }
36261
36261
  return "0.0.0";
36262
36262
  }
@@ -36886,6 +36886,9 @@ function booleanLiteral(raw) {
36886
36886
  return void 0;
36887
36887
  }
36888
36888
  function coerceScalar(raw, type, field) {
36889
+ if (Array.isArray(type) && type.length === 2 && type.includes("null")) {
36890
+ type = type.find((member) => member === "integer" || member === "number");
36891
+ }
36889
36892
  if (type === "number") {
36890
36893
  if (raw.trim() === "")
36891
36894
  throw new FlagParseException(`--${field} expected a number, got "${raw}"`);
@@ -37094,7 +37097,7 @@ function renderType(prop) {
37094
37097
  const suffix = isScalarType(prop.items?.type) ? " (repeatable)" : "";
37095
37098
  return `array<${item}>${suffix}`;
37096
37099
  }
37097
- return prop.type ?? "any";
37100
+ return Array.isArray(prop.type) ? prop.type.join(" | ") : prop.type ?? "any";
37098
37101
  }
37099
37102
 
37100
37103
  // ../argent-cli/src/run-validation.ts
@@ -16942,7 +16942,7 @@ function isCi(env = process.env) {
16942
16942
  var SESSION_ID = randomUUID4();
16943
16943
  function readCliVersion() {
16944
16944
  if (true) {
16945
- return "0.34.1-next.31";
16945
+ return "0.34.1-next.33";
16946
16946
  }
16947
16947
  return "0.0.0";
16948
16948
  }
@@ -28773,10 +28773,12 @@ function isScreenshotDiffResult(value) {
28773
28773
  async function screenshotDiffToMcpContent(result, ctx) {
28774
28774
  const blocks = [];
28775
28775
  let contextDiffPath = result.contextDiffPath;
28776
+ let diffPath = result.diffPath;
28776
28777
  let materializedImages = [];
28777
28778
  if (ctx) {
28778
28779
  const { result: rewritten, images } = await materializeArtifacts(result, ctx);
28779
28780
  contextDiffPath = rewritten.contextDiffPath;
28781
+ diffPath = rewritten.diffPath;
28780
28782
  materializedImages = images;
28781
28783
  }
28782
28784
  if (typeof contextDiffPath === "string") {
@@ -28800,6 +28802,15 @@ async function screenshotDiffToMcpContent(result, ctx) {
28800
28802
  }
28801
28803
  }
28802
28804
  blocks.push({ type: "text", text: result.summary });
28805
+ const paths = [
28806
+ ["diffPath", diffPath],
28807
+ ["contextDiffPath", contextDiffPath]
28808
+ ];
28809
+ for (const [key, value] of paths) {
28810
+ if (value === void 0) continue;
28811
+ const text = `${key}: ${typeof value === "string" ? value : "(unavailable)"}`;
28812
+ blocks.push({ type: "text", text });
28813
+ }
28803
28814
  return blocks;
28804
28815
  }
28805
28816
  var STATUS_GLYPH = {
@@ -22,7 +22,7 @@ export interface ArgentToolArgs {
22
22
  timeoutMs?: number;
23
23
  /** How often to re-read the tree (default 200). */
24
24
  pollIntervalMs?: number;
25
- /** The screen must hold the same content for at least this long to count as settled (default 250). */
25
+ /** The screen must hold the same content for at least this long to count as settled (default 250); 0 settles on the first non-empty read. */
26
26
  minStableMs?: number;
27
27
  };
28
28
  "await-ui-element": {
@@ -668,7 +668,7 @@ export interface ArgentToolArgs {
668
668
  end: number;
669
669
  };
670
670
  /** Commit index */
671
- commit_index?: number;
671
+ commit_index?: number | null;
672
672
  /** Max results to return. Defaults to 20 for by_component / by_time_range, which count commits, and render_counts, which counts components. by_index counts individual fibers and returns all of them unless this is set; a small cap there can show less than the analyze report it is meant to expand on. */
673
673
  top_n?: number;
674
674
  };
@@ -715,7 +715,7 @@ export interface ArgentToolArgs {
715
715
  /** Query mode; see Modes in the tool description. */
716
716
  mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
717
717
  /** 0-based index into the hang list */
718
- hang_index?: number;
718
+ hang_index?: number | null;
719
719
  /** Native function name */
720
720
  function_name?: string;
721
721
  /** Thread filter. thread_breakdown: case-insensitive substring match. function_callers: exact raw thread name (e.g. ".blueskyweb.app"), or "main" for the UI thread; omit to search ALL threads (each result is tagged with its thread). Run thread_breakdown first to see the exact raw names. */
@@ -970,7 +970,7 @@ export interface ArgentToolArgs {
970
970
  /** Device id from list-devices (iOS simulator UDID or Android serial), the same id used with debugger-connect. */
971
971
  device_id: string;
972
972
  /** Page index (0-based) or "latest" for the most recent page. Each page contains up to 50 entries. */
973
- pageIndex?: number | "latest";
973
+ pageIndex?: number | "latest" | null;
974
974
  };
975
975
  "view-network-request-details": {
976
976
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */