@swmansion/argent 0.35.1-next.45 → 0.35.1-next.47

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.
@@ -2052,7 +2052,7 @@ var require_parse = __commonJS({
2052
2052
  "../../node_modules/semver/functions/parse.js"(exports, module) {
2053
2053
  "use strict";
2054
2054
  var SemVer = require_semver();
2055
- var parse5 = (version, options, throwErrors = false) => {
2055
+ var parse6 = (version, options, throwErrors = false) => {
2056
2056
  if (version instanceof SemVer) {
2057
2057
  return version;
2058
2058
  }
@@ -2065,7 +2065,7 @@ var require_parse = __commonJS({
2065
2065
  throw er;
2066
2066
  }
2067
2067
  };
2068
- module.exports = parse5;
2068
+ module.exports = parse6;
2069
2069
  }
2070
2070
  });
2071
2071
 
@@ -2073,9 +2073,9 @@ var require_parse = __commonJS({
2073
2073
  var require_valid = __commonJS({
2074
2074
  "../../node_modules/semver/functions/valid.js"(exports, module) {
2075
2075
  "use strict";
2076
- var parse5 = require_parse();
2076
+ var parse6 = require_parse();
2077
2077
  var valid = (version, options) => {
2078
- const v = parse5(version, options);
2078
+ const v = parse6(version, options);
2079
2079
  return v ? v.version : null;
2080
2080
  };
2081
2081
  module.exports = valid;
@@ -2086,9 +2086,9 @@ var require_valid = __commonJS({
2086
2086
  var require_clean = __commonJS({
2087
2087
  "../../node_modules/semver/functions/clean.js"(exports, module) {
2088
2088
  "use strict";
2089
- var parse5 = require_parse();
2089
+ var parse6 = require_parse();
2090
2090
  var clean = (version, options) => {
2091
- const s = parse5(version.trim().replace(/^[=v]+/, ""), options);
2091
+ const s = parse6(version.trim().replace(/^[=v]+/, ""), options);
2092
2092
  return s ? s.version : null;
2093
2093
  };
2094
2094
  module.exports = clean;
@@ -2123,10 +2123,10 @@ var require_inc = __commonJS({
2123
2123
  var require_diff = __commonJS({
2124
2124
  "../../node_modules/semver/functions/diff.js"(exports, module) {
2125
2125
  "use strict";
2126
- var parse5 = require_parse();
2126
+ var parse6 = require_parse();
2127
2127
  var diff = (version1, version2) => {
2128
- const v1 = parse5(version1, null, true);
2129
- const v2 = parse5(version2, null, true);
2128
+ const v1 = parse6(version1, null, true);
2129
+ const v2 = parse6(version2, null, true);
2130
2130
  const comparison = v1.compare(v2);
2131
2131
  if (comparison === 0) {
2132
2132
  return null;
@@ -2197,9 +2197,9 @@ var require_patch = __commonJS({
2197
2197
  var require_prerelease = __commonJS({
2198
2198
  "../../node_modules/semver/functions/prerelease.js"(exports, module) {
2199
2199
  "use strict";
2200
- var parse5 = require_parse();
2200
+ var parse6 = require_parse();
2201
2201
  var prerelease = (version, options) => {
2202
- const parsed = parse5(version, options);
2202
+ const parsed = parse6(version, options);
2203
2203
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
2204
2204
  };
2205
2205
  module.exports = prerelease;
@@ -2385,7 +2385,7 @@ var require_coerce = __commonJS({
2385
2385
  "../../node_modules/semver/functions/coerce.js"(exports, module) {
2386
2386
  "use strict";
2387
2387
  var SemVer = require_semver();
2388
- var parse5 = require_parse();
2388
+ var parse6 = require_parse();
2389
2389
  var { safeRe: re2, t: t2 } = require_re();
2390
2390
  var coerce = (version, options) => {
2391
2391
  if (version instanceof SemVer) {
@@ -2420,7 +2420,7 @@ var require_coerce = __commonJS({
2420
2420
  const patch = match[4] || "0";
2421
2421
  const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
2422
2422
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
2423
- return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
2423
+ return parse6(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
2424
2424
  };
2425
2425
  module.exports = coerce;
2426
2426
  }
@@ -2430,7 +2430,7 @@ var require_coerce = __commonJS({
2430
2430
  var require_truncate = __commonJS({
2431
2431
  "../../node_modules/semver/functions/truncate.js"(exports, module) {
2432
2432
  "use strict";
2433
- var parse5 = require_parse();
2433
+ var parse6 = require_parse();
2434
2434
  var constants3 = require_constants();
2435
2435
  var SemVer = require_semver();
2436
2436
  var truncate = (version, truncation, options) => {
@@ -2442,7 +2442,7 @@ var require_truncate = __commonJS({
2442
2442
  };
2443
2443
  var cloneInputVersion = (version, options) => {
2444
2444
  const versionStringToParse = version instanceof SemVer ? version.version : version;
2445
- return parse5(versionStringToParse, options);
2445
+ return parse6(versionStringToParse, options);
2446
2446
  };
2447
2447
  var doTruncation = (version, truncation) => {
2448
2448
  if (isPrerelease(truncation)) {
@@ -3486,7 +3486,7 @@ var require_semver2 = __commonJS({
3486
3486
  var constants3 = require_constants();
3487
3487
  var SemVer = require_semver();
3488
3488
  var identifiers = require_identifiers();
3489
- var parse5 = require_parse();
3489
+ var parse6 = require_parse();
3490
3490
  var valid = require_valid();
3491
3491
  var clean = require_clean();
3492
3492
  var inc = require_inc();
@@ -3525,7 +3525,7 @@ var require_semver2 = __commonJS({
3525
3525
  var simplifyRange = require_simplify();
3526
3526
  var subset = require_subset();
3527
3527
  module.exports = {
3528
- parse: parse5,
3528
+ parse: parse6,
3529
3529
  valid,
3530
3530
  clean,
3531
3531
  inc,
@@ -7538,10 +7538,10 @@ var require_resolve_block_map = __commonJS({
7538
7538
  let offset = bm.offset;
7539
7539
  let commentEnd = null;
7540
7540
  for (const collItem of bm.items) {
7541
- const { start, key, sep: sep9, value } = collItem;
7541
+ const { start, key, sep: sep10, value } = collItem;
7542
7542
  const keyProps = resolveProps.resolveProps(start, {
7543
7543
  indicator: "explicit-key-ind",
7544
- next: key ?? sep9?.[0],
7544
+ next: key ?? sep10?.[0],
7545
7545
  offset,
7546
7546
  onError,
7547
7547
  parentIndent: bm.indent,
@@ -7555,7 +7555,7 @@ var require_resolve_block_map = __commonJS({
7555
7555
  else if ("indent" in key && key.indent !== bm.indent)
7556
7556
  onError(offset, "BAD_INDENT", startColMsg);
7557
7557
  }
7558
- if (!keyProps.anchor && !keyProps.tag && !sep9) {
7558
+ if (!keyProps.anchor && !keyProps.tag && !sep10) {
7559
7559
  commentEnd = keyProps.end;
7560
7560
  if (keyProps.comment) {
7561
7561
  if (map.comment)
@@ -7579,7 +7579,7 @@ var require_resolve_block_map = __commonJS({
7579
7579
  ctx.atKey = false;
7580
7580
  if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
7581
7581
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
7582
- const valueProps = resolveProps.resolveProps(sep9 ?? [], {
7582
+ const valueProps = resolveProps.resolveProps(sep10 ?? [], {
7583
7583
  indicator: "map-value-ind",
7584
7584
  next: value,
7585
7585
  offset: keyNode.range[2],
@@ -7595,7 +7595,7 @@ var require_resolve_block_map = __commonJS({
7595
7595
  if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
7596
7596
  onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
7597
7597
  }
7598
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep9, null, valueProps, onError);
7598
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep10, null, valueProps, onError);
7599
7599
  if (ctx.schema.compat)
7600
7600
  utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError);
7601
7601
  offset = valueNode.range[2];
@@ -7686,7 +7686,7 @@ var require_resolve_end = __commonJS({
7686
7686
  let comment = "";
7687
7687
  if (end) {
7688
7688
  let hasSpace = false;
7689
- let sep9 = "";
7689
+ let sep10 = "";
7690
7690
  for (const token of end) {
7691
7691
  const { source, type } = token;
7692
7692
  switch (type) {
@@ -7700,13 +7700,13 @@ var require_resolve_end = __commonJS({
7700
7700
  if (!comment)
7701
7701
  comment = cb;
7702
7702
  else
7703
- comment += sep9 + cb;
7704
- sep9 = "";
7703
+ comment += sep10 + cb;
7704
+ sep10 = "";
7705
7705
  break;
7706
7706
  }
7707
7707
  case "newline":
7708
7708
  if (comment)
7709
- sep9 += source;
7709
+ sep10 += source;
7710
7710
  hasSpace = true;
7711
7711
  break;
7712
7712
  default:
@@ -7749,18 +7749,18 @@ var require_resolve_flow_collection = __commonJS({
7749
7749
  let offset = fc.offset + fc.start.source.length;
7750
7750
  for (let i2 = 0; i2 < fc.items.length; ++i2) {
7751
7751
  const collItem = fc.items[i2];
7752
- const { start, key, sep: sep9, value } = collItem;
7752
+ const { start, key, sep: sep10, value } = collItem;
7753
7753
  const props = resolveProps.resolveProps(start, {
7754
7754
  flow: fcName,
7755
7755
  indicator: "explicit-key-ind",
7756
- next: key ?? sep9?.[0],
7756
+ next: key ?? sep10?.[0],
7757
7757
  offset,
7758
7758
  onError,
7759
7759
  parentIndent: fc.indent,
7760
7760
  startOnNewline: false
7761
7761
  });
7762
7762
  if (!props.found) {
7763
- if (!props.anchor && !props.tag && !sep9 && !value) {
7763
+ if (!props.anchor && !props.tag && !sep10 && !value) {
7764
7764
  if (i2 === 0 && props.comma)
7765
7765
  onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
7766
7766
  else if (i2 < fc.items.length - 1)
@@ -7814,8 +7814,8 @@ var require_resolve_flow_collection = __commonJS({
7814
7814
  }
7815
7815
  }
7816
7816
  }
7817
- if (!isMap2 && !sep9 && !props.found) {
7818
- const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep9, null, props, onError);
7817
+ if (!isMap2 && !sep10 && !props.found) {
7818
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep10, null, props, onError);
7819
7819
  coll.items.push(valueNode);
7820
7820
  offset = valueNode.range[2];
7821
7821
  if (isBlock(value))
@@ -7827,7 +7827,7 @@ var require_resolve_flow_collection = __commonJS({
7827
7827
  if (isBlock(key))
7828
7828
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
7829
7829
  ctx.atKey = false;
7830
- const valueProps = resolveProps.resolveProps(sep9 ?? [], {
7830
+ const valueProps = resolveProps.resolveProps(sep10 ?? [], {
7831
7831
  flow: fcName,
7832
7832
  indicator: "map-value-ind",
7833
7833
  next: value,
@@ -7838,8 +7838,8 @@ var require_resolve_flow_collection = __commonJS({
7838
7838
  });
7839
7839
  if (valueProps.found) {
7840
7840
  if (!isMap2 && !props.found && ctx.options.strict) {
7841
- if (sep9)
7842
- for (const st of sep9) {
7841
+ if (sep10)
7842
+ for (const st of sep10) {
7843
7843
  if (st === valueProps.found)
7844
7844
  break;
7845
7845
  if (st.type === "newline") {
@@ -7856,7 +7856,7 @@ var require_resolve_flow_collection = __commonJS({
7856
7856
  else
7857
7857
  onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
7858
7858
  }
7859
- const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep9, null, valueProps, onError) : null;
7859
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep10, null, valueProps, onError) : null;
7860
7860
  if (valueNode) {
7861
7861
  if (isBlock(value))
7862
7862
  onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
@@ -8036,7 +8036,7 @@ var require_resolve_block_scalar = __commonJS({
8036
8036
  chompStart = i2 + 1;
8037
8037
  }
8038
8038
  let value = "";
8039
- let sep9 = "";
8039
+ let sep10 = "";
8040
8040
  let prevMoreIndented = false;
8041
8041
  for (let i2 = 0; i2 < contentStart; ++i2)
8042
8042
  value += lines[i2][0].slice(trimIndent) + "\n";
@@ -8053,24 +8053,24 @@ var require_resolve_block_scalar = __commonJS({
8053
8053
  indent = "";
8054
8054
  }
8055
8055
  if (type === Scalar.Scalar.BLOCK_LITERAL) {
8056
- value += sep9 + indent.slice(trimIndent) + content;
8057
- sep9 = "\n";
8056
+ value += sep10 + indent.slice(trimIndent) + content;
8057
+ sep10 = "\n";
8058
8058
  } else if (indent.length > trimIndent || content[0] === " ") {
8059
- if (sep9 === " ")
8060
- sep9 = "\n";
8061
- else if (!prevMoreIndented && sep9 === "\n")
8062
- sep9 = "\n\n";
8063
- value += sep9 + indent.slice(trimIndent) + content;
8064
- sep9 = "\n";
8059
+ if (sep10 === " ")
8060
+ sep10 = "\n";
8061
+ else if (!prevMoreIndented && sep10 === "\n")
8062
+ sep10 = "\n\n";
8063
+ value += sep10 + indent.slice(trimIndent) + content;
8064
+ sep10 = "\n";
8065
8065
  prevMoreIndented = true;
8066
8066
  } else if (content === "") {
8067
- if (sep9 === "\n")
8067
+ if (sep10 === "\n")
8068
8068
  value += "\n";
8069
8069
  else
8070
- sep9 = "\n";
8070
+ sep10 = "\n";
8071
8071
  } else {
8072
- value += sep9 + content;
8073
- sep9 = " ";
8072
+ value += sep10 + content;
8073
+ sep10 = " ";
8074
8074
  prevMoreIndented = false;
8075
8075
  }
8076
8076
  }
@@ -8253,25 +8253,25 @@ var require_resolve_flow_scalar = __commonJS({
8253
8253
  trimBoth = /^[ \t]+|[ \t]+$/g;
8254
8254
  }
8255
8255
  let res = match[1].replace(trimEnd, "");
8256
- let sep9 = " ";
8256
+ let sep10 = " ";
8257
8257
  let pos = line.lastIndex;
8258
8258
  while (match = line.exec(source)) {
8259
8259
  const lm = match[1].replace(trimBoth, "");
8260
8260
  if (lm === "") {
8261
- if (sep9 === "\n")
8262
- res += sep9;
8261
+ if (sep10 === "\n")
8262
+ res += sep10;
8263
8263
  else
8264
- sep9 = "\n";
8264
+ sep10 = "\n";
8265
8265
  } else {
8266
- res += sep9 + lm;
8267
- sep9 = " ";
8266
+ res += sep10 + lm;
8267
+ sep10 = " ";
8268
8268
  }
8269
8269
  pos = line.lastIndex;
8270
8270
  }
8271
8271
  const last = /[ \t]*(.*)/sy;
8272
8272
  last.lastIndex = pos;
8273
8273
  match = last.exec(source);
8274
- return res + sep9 + (match?.[1] ?? "");
8274
+ return res + sep10 + (match?.[1] ?? "");
8275
8275
  }
8276
8276
  function doubleQuotedValue(source, onError) {
8277
8277
  let res = "";
@@ -9081,14 +9081,14 @@ var require_cst_stringify = __commonJS({
9081
9081
  }
9082
9082
  }
9083
9083
  }
9084
- function stringifyItem({ start, key, sep: sep9, value }) {
9084
+ function stringifyItem({ start, key, sep: sep10, value }) {
9085
9085
  let res = "";
9086
9086
  for (const st of start)
9087
9087
  res += st.source;
9088
9088
  if (key)
9089
9089
  res += stringifyToken(key);
9090
- if (sep9)
9091
- for (const st of sep9)
9090
+ if (sep10)
9091
+ for (const st of sep10)
9092
9092
  res += st.source;
9093
9093
  if (value)
9094
9094
  res += stringifyToken(value);
@@ -10255,18 +10255,18 @@ var require_parser = __commonJS({
10255
10255
  if (this.type === "map-value-ind") {
10256
10256
  const prev = getPrevProps(this.peek(2));
10257
10257
  const start = getFirstKeyStartProps(prev);
10258
- let sep9;
10258
+ let sep10;
10259
10259
  if (scalar.end) {
10260
- sep9 = scalar.end;
10261
- sep9.push(this.sourceToken);
10260
+ sep10 = scalar.end;
10261
+ sep10.push(this.sourceToken);
10262
10262
  delete scalar.end;
10263
10263
  } else
10264
- sep9 = [this.sourceToken];
10264
+ sep10 = [this.sourceToken];
10265
10265
  const map = {
10266
10266
  type: "block-map",
10267
10267
  offset: scalar.offset,
10268
10268
  indent: scalar.indent,
10269
- items: [{ start, key: scalar, sep: sep9 }]
10269
+ items: [{ start, key: scalar, sep: sep10 }]
10270
10270
  };
10271
10271
  this.onKeyLine = true;
10272
10272
  this.stack[this.stack.length - 1] = map;
@@ -10419,15 +10419,15 @@ var require_parser = __commonJS({
10419
10419
  } else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
10420
10420
  const start2 = getFirstKeyStartProps(it.start);
10421
10421
  const key = it.key;
10422
- const sep9 = it.sep;
10423
- sep9.push(this.sourceToken);
10422
+ const sep10 = it.sep;
10423
+ sep10.push(this.sourceToken);
10424
10424
  delete it.key;
10425
10425
  delete it.sep;
10426
10426
  this.stack.push({
10427
10427
  type: "block-map",
10428
10428
  offset: this.offset,
10429
10429
  indent: this.indent,
10430
- items: [{ start: start2, key, sep: sep9 }]
10430
+ items: [{ start: start2, key, sep: sep10 }]
10431
10431
  });
10432
10432
  } else if (start.length > 0) {
10433
10433
  it.sep = it.sep.concat(start, this.sourceToken);
@@ -10621,13 +10621,13 @@ var require_parser = __commonJS({
10621
10621
  const prev = getPrevProps(parent);
10622
10622
  const start = getFirstKeyStartProps(prev);
10623
10623
  fixFlowSeqItems(fc);
10624
- const sep9 = fc.end.splice(1, fc.end.length);
10625
- sep9.push(this.sourceToken);
10624
+ const sep10 = fc.end.splice(1, fc.end.length);
10625
+ sep10.push(this.sourceToken);
10626
10626
  const map = {
10627
10627
  type: "block-map",
10628
10628
  offset: fc.offset,
10629
10629
  indent: fc.indent,
10630
- items: [{ start, key: fc, sep: sep9 }]
10630
+ items: [{ start, key: fc, sep: sep10 }]
10631
10631
  };
10632
10632
  this.onKeyLine = true;
10633
10633
  this.stack[this.stack.length - 1] = map;
@@ -10805,7 +10805,7 @@ var require_public_api = __commonJS({
10805
10805
  }
10806
10806
  return doc;
10807
10807
  }
10808
- function parse5(src, reviver, options) {
10808
+ function parse6(src, reviver, options) {
10809
10809
  let _reviver = void 0;
10810
10810
  if (typeof reviver === "function") {
10811
10811
  _reviver = reviver;
@@ -10846,7 +10846,7 @@ var require_public_api = __commonJS({
10846
10846
  return value.toString(options);
10847
10847
  return new Document2.Document(value, _replacer, options).toString(options);
10848
10848
  }
10849
- exports.parse = parse5;
10849
+ exports.parse = parse6;
10850
10850
  exports.parseAllDocuments = parseAllDocuments;
10851
10851
  exports.parseDocument = parseDocument2;
10852
10852
  exports.stringify = stringify2;
@@ -17118,7 +17118,7 @@ function isCi(env = process.env) {
17118
17118
  var SESSION_ID = randomUUID4();
17119
17119
  function readCliVersion() {
17120
17120
  if (true) {
17121
- return "0.35.1-next.44";
17121
+ return "0.35.1-next.47";
17122
17122
  }
17123
17123
  return "0.0.0";
17124
17124
  }
@@ -19501,11 +19501,11 @@ function parseTree(text2, errors = [], options = ParseOptions.DEFAULT) {
19501
19501
  onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
19502
19502
  ensurePropertyComplete(offset + length);
19503
19503
  },
19504
- onSeparator: (sep9, offset, length) => {
19504
+ onSeparator: (sep10, offset, length) => {
19505
19505
  if (currentParent.type === "property") {
19506
- if (sep9 === ":") {
19506
+ if (sep10 === ":") {
19507
19507
  currentParent.colonOffset = offset;
19508
- } else if (sep9 === ",") {
19508
+ } else if (sep10 === ",") {
19509
19509
  ensurePropertyComplete(offset);
19510
19510
  }
19511
19511
  }
@@ -24868,6 +24868,16 @@ import { readdir as readdir4, readFile as readFile4, realpath as realpath3, stat
24868
24868
  import * as path30 from "node:path";
24869
24869
  var INLINE_MEMBERS_BYTES = 256 * 1024;
24870
24870
 
24871
+ // ../argent-tools-client/src/tools-client.ts
24872
+ var RECORDING_FILE_INPUT = {
24873
+ target: "__recording",
24874
+ path: `\${project_root}/${E2E_DIRS[0].split(path31.sep).join("/")}/\${name}.yaml`,
24875
+ paths: E2E_DIRS.map((dir) => `\${project_root}/${dir.split(path31.sep).join("/")}/\${name}.yaml`),
24876
+ kind: "file",
24877
+ optional: true,
24878
+ collect: "flow"
24879
+ };
24880
+
24871
24881
  // ../argent-tools-client/src/artifacts.ts
24872
24882
  import {
24873
24883
  copyFile,
@@ -24881,7 +24891,7 @@ import {
24881
24891
  } from "node:fs/promises";
24882
24892
  import { constants as fsConstants } from "node:fs";
24883
24893
  import { tmpdir as tmpdir2 } from "node:os";
24884
- import { basename as basename8, extname as extname2, isAbsolute as isAbsolute10, join as join31, normalize as normalize2, resolve as resolve20, sep as sep7 } from "node:path";
24894
+ import { basename as basename8, extname as extname2, isAbsolute as isAbsolute10, join as join31, normalize as normalize2, resolve as resolve20, sep as sep8 } from "node:path";
24885
24895
  import { createHash as createHash5 } from "node:crypto";
24886
24896
  var ALLOWED_SAVE_DIRS = /* @__PURE__ */ new Set([normalize2(".argent/recordings")]);
24887
24897
  var RECORDINGS_SAVE_DIR = normalize2(".argent/recordings");