@swmansion/argent 0.34.1-next.32 → 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.32";
36259
+ return "0.34.1-next.33";
36260
36260
  }
36261
36261
  return "0.0.0";
36262
36262
  }
@@ -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.32";
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": {