@swmansion/argent 0.35.1-next.44 → 0.35.1-next.46

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.
@@ -782,6 +782,39 @@ function decodeClientSecrets(header) {
782
782
  }
783
783
  return values;
784
784
  }
785
+ function decodeSecretSourceSummaries(header) {
786
+ let parsed2;
787
+ try {
788
+ parsed2 = JSON.parse(Buffer.from(header, "base64").toString("utf8"));
789
+ } catch {
790
+ throw new Error("is not base64-encoded JSON");
791
+ }
792
+ if (!Array.isArray(parsed2)) throw new Error("is not a JSON array");
793
+ return parsed2.map((entry, i) => {
794
+ if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
795
+ throw new Error(`has a source ${i} that is not a JSON object`);
796
+ }
797
+ const { label, kind, present, names, needsPrefix } = entry;
798
+ if (typeof label !== "string") throw new Error(`has a source ${i} with no label`);
799
+ if (typeof kind !== "string" || !SUMMARY_KINDS.has(kind)) {
800
+ throw new Error(`has a source ${i} of an unknown kind`);
801
+ }
802
+ if (typeof present !== "boolean") throw new Error(`has a source ${i} with no present flag`);
803
+ if (!Array.isArray(names) || !names.every((n) => typeof n === "string" && SECRET_NAME_RE.test(n))) {
804
+ throw new Error(`has a source ${i} with invalid names`);
805
+ }
806
+ if (needsPrefix !== void 0 && typeof needsPrefix !== "boolean") {
807
+ throw new Error(`has a source ${i} with an invalid needsPrefix flag`);
808
+ }
809
+ return {
810
+ label,
811
+ kind,
812
+ present,
813
+ names: [...names],
814
+ ...needsPrefix === true ? { needsPrefix: true } : {}
815
+ };
816
+ });
817
+ }
785
818
  function lookupSecret(name, sources) {
786
819
  for (const source of sources) {
787
820
  const value = source.values.get(name);
@@ -815,10 +848,13 @@ function secretPlacementAdvice(name, options = {}) {
815
848
  const globalFile = path4.join(argentHomeDir(options), SECRETS_FILE_NAME);
816
849
  return `To make it available, ask the user to add \`${name}=\u2026\` to ${globalFile} (or to \`.argent/${SECRETS_FILE_NAME}\` in the project), add \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local, or export ${SECRET_ENV_PREFIX}${name} in the tool-server's environment \u2014 never ask the user for the secret value itself. If this tool-server is reached through \`argent link\` or ARGENT_TOOLS_URL, the user can instead define it on the client's machine and run \`argent enable forward-secrets\` there; \`argent secrets\` there lists the sources the client reads, which this list leaves out.`;
817
850
  }
851
+ function callerSecretPlacementAdvice(name) {
852
+ return `To make it available, ask the user to add \`${name}=\u2026\` to \`.argent/${SECRETS_FILE_NAME}\` in the project the call came from, or to ~/.argent/${SECRETS_FILE_NAME}, or \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local; a file applies to the next call. An environment variable ${SECRET_ENV_PREFIX}${name} must be set where the call starts: in the shell that runs \`argent\`, or in the environment of the editor or agent that starts the argent MCP server, which then needs a restart. \`argent secrets\`, run in the project, lists what a call there can resolve. Never ask the user for the secret value itself.`;
853
+ }
818
854
  function clientSecretPlacementAdvice(name) {
819
855
  return `To make it available, ask the user to add \`${name}=\u2026\` to ~/.argent/${SECRETS_FILE_NAME} on the client's machine (or to \`.argent/${SECRETS_FILE_NAME}\` in the project the client runs in), or to export ${SECRET_ENV_PREFIX}${name} before the client starts; \`argent secrets\` there lists the sources the client reads \u2014 never ask the user for the secret value itself.`;
820
856
  }
821
- var fs4, path4, import_dotenv, SECRET_ENV_PREFIX, SECRETS_FILE_NAME, SHARED_ENV_FILES, SECRET_NAME_RE, SECRET_PLACEHOLDER_RE, REDUNDANT_PREFIX_RE;
857
+ var fs4, path4, import_dotenv, SECRET_ENV_PREFIX, SECRETS_FILE_NAME, SHARED_ENV_FILES, SECRET_NAME_RE, SUMMARY_KINDS, SECRET_PLACEHOLDER_RE, REDUNDANT_PREFIX_RE;
822
858
  var init_secrets = __esm({
823
859
  "../configuration-core/src/secrets.ts"() {
824
860
  "use strict";
@@ -831,6 +867,7 @@ var init_secrets = __esm({
831
867
  SECRETS_FILE_NAME = "secrets.env";
832
868
  SHARED_ENV_FILES = [".env.local", ".env"];
833
869
  SECRET_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
870
+ SUMMARY_KINDS = /* @__PURE__ */ new Set(["env", "file", "client"]);
834
871
  SECRET_PLACEHOLDER_RE = /\{\{secret:([A-Za-z_][A-Za-z0-9_]*)\}\}/g;
835
872
  REDUNDANT_PREFIX_RE = /^argent_secret_/i;
836
873
  }
@@ -1186,13 +1223,14 @@ var init_event_emitter = __esm({
1186
1223
  function isLiveServiceState(state3) {
1187
1224
  return state3 === "RUNNING" /* RUNNING */ || state3 === "STARTING" /* STARTING */;
1188
1225
  }
1189
- var LINKED_CALL_HEADER, E2E_DIR_CLIENT_HEADER, CLIENT_SECRETS_HEADER;
1226
+ var LINKED_CALL_HEADER, E2E_DIR_CLIENT_HEADER, CLIENT_SECRETS_HEADER, CLIENT_SECRET_SOURCES_HEADER;
1190
1227
  var init_types = __esm({
1191
1228
  "../registry/src/types.ts"() {
1192
1229
  "use strict";
1193
1230
  LINKED_CALL_HEADER = "x-argent-linked";
1194
1231
  E2E_DIR_CLIENT_HEADER = "x-argent-e2e-dir";
1195
1232
  CLIENT_SECRETS_HEADER = "x-argent-client-secrets";
1233
+ CLIENT_SECRET_SOURCES_HEADER = "x-argent-client-secret-sources";
1196
1234
  }
1197
1235
  });
1198
1236
 
@@ -5396,13 +5434,13 @@ var init_schemas = __esm({
5396
5434
  if (typeof input2 === "number" && !Number.isNaN(input2) && Number.isFinite(input2)) {
5397
5435
  return payload;
5398
5436
  }
5399
- const received = typeof input2 === "number" ? Number.isNaN(input2) ? "NaN" : !Number.isFinite(input2) ? String(input2) : void 0 : void 0;
5437
+ const received2 = typeof input2 === "number" ? Number.isNaN(input2) ? "NaN" : !Number.isFinite(input2) ? String(input2) : void 0 : void 0;
5400
5438
  payload.issues.push({
5401
5439
  expected: "number",
5402
5440
  code: "invalid_type",
5403
5441
  input: input2,
5404
5442
  inst,
5405
- ...received ? { received } : {}
5443
+ ...received2 ? { received: received2 } : {}
5406
5444
  });
5407
5445
  return payload;
5408
5446
  };
@@ -7078,11 +7116,11 @@ var init_ar = __esm({
7078
7116
  case "invalid_type": {
7079
7117
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7080
7118
  const receivedType = parsedType(issue2.input);
7081
- const received = TypeDictionary[receivedType] ?? receivedType;
7119
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7082
7120
  if (/^[A-Z]/.test(issue2.expected)) {
7083
- return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`;
7121
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received2}`;
7084
7122
  }
7085
- return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`;
7123
+ return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received2}`;
7086
7124
  }
7087
7125
  case "invalid_value":
7088
7126
  if (issue2.values.length === 1)
@@ -7196,11 +7234,11 @@ var init_az = __esm({
7196
7234
  case "invalid_type": {
7197
7235
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7198
7236
  const receivedType = parsedType(issue2.input);
7199
- const received = TypeDictionary[receivedType] ?? receivedType;
7237
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7200
7238
  if (/^[A-Z]/.test(issue2.expected)) {
7201
- return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${issue2.expected}, daxil olan ${received}`;
7239
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${issue2.expected}, daxil olan ${received2}`;
7202
7240
  }
7203
- return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${expected}, daxil olan ${received}`;
7241
+ return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${expected}, daxil olan ${received2}`;
7204
7242
  }
7205
7243
  case "invalid_value":
7206
7244
  if (issue2.values.length === 1)
@@ -7365,11 +7403,11 @@ var init_be = __esm({
7365
7403
  case "invalid_type": {
7366
7404
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7367
7405
  const receivedType = parsedType(issue2.input);
7368
- const received = TypeDictionary[receivedType] ?? receivedType;
7406
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7369
7407
  if (/^[A-Z]/.test(issue2.expected)) {
7370
- return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`;
7408
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received2}`;
7371
7409
  }
7372
- return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`;
7410
+ return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received2}`;
7373
7411
  }
7374
7412
  case "invalid_value":
7375
7413
  if (issue2.values.length === 1)
@@ -7490,11 +7528,11 @@ var init_bg = __esm({
7490
7528
  case "invalid_type": {
7491
7529
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7492
7530
  const receivedType = parsedType(issue2.input);
7493
- const received = TypeDictionary[receivedType] ?? receivedType;
7531
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7494
7532
  if (/^[A-Z]/.test(issue2.expected)) {
7495
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`;
7533
+ return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received2}`;
7496
7534
  }
7497
- return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`;
7535
+ return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received2}`;
7498
7536
  }
7499
7537
  case "invalid_value":
7500
7538
  if (issue2.values.length === 1)
@@ -7620,8 +7658,8 @@ var init_bn = __esm({
7620
7658
  case "invalid_type": {
7621
7659
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7622
7660
  const receivedType = parsedType(issue2.input);
7623
- const received = TypeDictionary[receivedType] ?? receivedType;
7624
- return `\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${expected}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${received}`;
7661
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7662
+ return `\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${expected}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${received2}`;
7625
7663
  }
7626
7664
  case "invalid_value":
7627
7665
  if (issue2.values.length === 1)
@@ -7740,11 +7778,11 @@ var init_ca = __esm({
7740
7778
  case "invalid_type": {
7741
7779
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7742
7780
  const receivedType = parsedType(issue2.input);
7743
- const received = TypeDictionary[receivedType] ?? receivedType;
7781
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7744
7782
  if (/^[A-Z]/.test(issue2.expected)) {
7745
- return `Tipus inv\xE0lid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received}`;
7783
+ return `Tipus inv\xE0lid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received2}`;
7746
7784
  }
7747
- return `Tipus inv\xE0lid: s'esperava ${expected}, s'ha rebut ${received}`;
7785
+ return `Tipus inv\xE0lid: s'esperava ${expected}, s'ha rebut ${received2}`;
7748
7786
  }
7749
7787
  case "invalid_value":
7750
7788
  if (issue2.values.length === 1)
@@ -7878,12 +7916,12 @@ var init_ckb = __esm({
7878
7916
  case "invalid_type": {
7879
7917
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
7880
7918
  const receivedType = parsedType(issue2.input);
7881
- const received = TypeDictionary[receivedType] ?? receivedType;
7882
- const postfix = ["\u0627", "\u0648", "\u06C6", "\u0648\u0648", "\u06D5", "\u06CC", "\u06CE"].some((p) => received.endsWith(p)) ? "\u06CC\u06D5" : "\u06D5";
7883
- const isEnglish = /^[a-zA-Z]+$/.test(received);
7919
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
7920
+ const postfix = ["\u0627", "\u0648", "\u06C6", "\u0648\u0648", "\u06D5", "\u06CC", "\u06CE"].some((p) => received2.endsWith(p)) ? "\u06CC\u06D5" : "\u06D5";
7921
+ const isEnglish = /^[a-zA-Z]+$/.test(received2);
7884
7922
  if (receivedType === "null" || receivedType === "undefined")
7885
7923
  return `\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5`;
7886
- return `\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${expected} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${received}${isEnglish ? "" : postfix}`;
7924
+ return `\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${expected} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${received2}${isEnglish ? "" : postfix}`;
7887
7925
  }
7888
7926
  case "invalid_value":
7889
7927
  if (issue2.values.length === 1)
@@ -8003,11 +8041,11 @@ var init_cs = __esm({
8003
8041
  case "invalid_type": {
8004
8042
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8005
8043
  const receivedType = parsedType(issue2.input);
8006
- const received = TypeDictionary[receivedType] ?? receivedType;
8044
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8007
8045
  if (/^[A-Z]/.test(issue2.expected)) {
8008
- return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${issue2.expected}, obdr\u017Eeno ${received}`;
8046
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${issue2.expected}, obdr\u017Eeno ${received2}`;
8009
8047
  }
8010
- return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${expected}, obdr\u017Eeno ${received}`;
8048
+ return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${expected}, obdr\u017Eeno ${received2}`;
8011
8049
  }
8012
8050
  case "invalid_value":
8013
8051
  if (issue2.values.length === 1)
@@ -8129,11 +8167,11 @@ var init_da = __esm({
8129
8167
  case "invalid_type": {
8130
8168
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8131
8169
  const receivedType = parsedType(issue2.input);
8132
- const received = TypeDictionary[receivedType] ?? receivedType;
8170
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8133
8171
  if (/^[A-Z]/.test(issue2.expected)) {
8134
- return `Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received}`;
8172
+ return `Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received2}`;
8135
8173
  }
8136
- return `Ugyldigt input: forventede ${expected}, fik ${received}`;
8174
+ return `Ugyldigt input: forventede ${expected}, fik ${received2}`;
8137
8175
  }
8138
8176
  case "invalid_value":
8139
8177
  if (issue2.values.length === 1)
@@ -8251,11 +8289,11 @@ var init_de = __esm({
8251
8289
  case "invalid_type": {
8252
8290
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8253
8291
  const receivedType = parsedType(issue2.input);
8254
- const received = TypeDictionary[receivedType] ?? receivedType;
8292
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8255
8293
  if (/^[A-Z]/.test(issue2.expected)) {
8256
- return `Ung\xFCltige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received}`;
8294
+ return `Ung\xFCltige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received2}`;
8257
8295
  }
8258
- return `Ung\xFCltige Eingabe: erwartet ${expected}, erhalten ${received}`;
8296
+ return `Ung\xFCltige Eingabe: erwartet ${expected}, erhalten ${received2}`;
8259
8297
  }
8260
8298
  case "invalid_value":
8261
8299
  if (issue2.values.length === 1)
@@ -8369,11 +8407,11 @@ var init_el = __esm({
8369
8407
  case "invalid_type": {
8370
8408
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8371
8409
  const receivedType = parsedType(issue2.input);
8372
- const received = TypeDictionary[receivedType] ?? receivedType;
8410
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8373
8411
  if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
8374
- return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
8412
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received2}`;
8375
8413
  }
8376
- return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
8414
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received2}`;
8377
8415
  }
8378
8416
  case "invalid_value":
8379
8417
  if (issue2.values.length === 1)
@@ -8496,8 +8534,8 @@ var init_en = __esm({
8496
8534
  case "invalid_type": {
8497
8535
  const expected = getTypeName(issue2.expected);
8498
8536
  const receivedType = parsedType(issue2.input);
8499
- const received = getTypeName(receivedType, issue2.input);
8500
- return `Invalid input: expected ${expected}, received ${received}`;
8537
+ const received2 = getTypeName(receivedType, issue2.input);
8538
+ return `Invalid input: expected ${expected}, received ${received2}`;
8501
8539
  }
8502
8540
  case "invalid_value":
8503
8541
  if (issue2.values.length === 1)
@@ -8622,11 +8660,11 @@ var init_eo = __esm({
8622
8660
  case "invalid_type": {
8623
8661
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8624
8662
  const receivedType = parsedType(issue2.input);
8625
- const received = TypeDictionary[receivedType] ?? receivedType;
8663
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8626
8664
  if (/^[A-Z]/.test(issue2.expected)) {
8627
- return `Nevalida enigo: atendi\u011Dis instanceof ${issue2.expected}, ricevi\u011Dis ${received}`;
8665
+ return `Nevalida enigo: atendi\u011Dis instanceof ${issue2.expected}, ricevi\u011Dis ${received2}`;
8628
8666
  }
8629
- return `Nevalida enigo: atendi\u011Dis ${expected}, ricevi\u011Dis ${received}`;
8667
+ return `Nevalida enigo: atendi\u011Dis ${expected}, ricevi\u011Dis ${received2}`;
8630
8668
  }
8631
8669
  case "invalid_value":
8632
8670
  if (issue2.values.length === 1)
@@ -8763,11 +8801,11 @@ var init_es = __esm({
8763
8801
  case "invalid_type": {
8764
8802
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8765
8803
  const receivedType = parsedType(issue2.input);
8766
- const received = TypeDictionary[receivedType] ?? receivedType;
8804
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8767
8805
  if (/^[A-Z]/.test(issue2.expected)) {
8768
- return `Entrada inv\xE1lida: se esperaba instanceof ${issue2.expected}, recibido ${received}`;
8806
+ return `Entrada inv\xE1lida: se esperaba instanceof ${issue2.expected}, recibido ${received2}`;
8769
8807
  }
8770
- return `Entrada inv\xE1lida: se esperaba ${expected}, recibido ${received}`;
8808
+ return `Entrada inv\xE1lida: se esperaba ${expected}, recibido ${received2}`;
8771
8809
  }
8772
8810
  case "invalid_value":
8773
8811
  if (issue2.values.length === 1)
@@ -8885,11 +8923,11 @@ var init_fa = __esm({
8885
8923
  case "invalid_type": {
8886
8924
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8887
8925
  const receivedType = parsedType(issue2.input);
8888
- const received = TypeDictionary[receivedType] ?? receivedType;
8926
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
8889
8927
  if (/^[A-Z]/.test(issue2.expected)) {
8890
- return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
8928
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received2} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
8891
8929
  }
8892
- return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
8930
+ return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received2} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
8893
8931
  }
8894
8932
  case "invalid_value":
8895
8933
  if (issue2.values.length === 1) {
@@ -9013,11 +9051,11 @@ var init_fi = __esm({
9013
9051
  case "invalid_type": {
9014
9052
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9015
9053
  const receivedType = parsedType(issue2.input);
9016
- const received = TypeDictionary[receivedType] ?? receivedType;
9054
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9017
9055
  if (/^[A-Z]/.test(issue2.expected)) {
9018
- return `Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received}`;
9056
+ return `Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received2}`;
9019
9057
  }
9020
- return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`;
9058
+ return `Virheellinen tyyppi: odotettiin ${expected}, oli ${received2}`;
9021
9059
  }
9022
9060
  case "invalid_value":
9023
9061
  if (issue2.values.length === 1)
@@ -9152,11 +9190,11 @@ var init_fr = __esm({
9152
9190
  case "invalid_type": {
9153
9191
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9154
9192
  const receivedType = parsedType(issue2.input);
9155
- const received = TypeDictionary[receivedType] ?? receivedType;
9193
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9156
9194
  if (/^[A-Z]/.test(issue2.expected)) {
9157
- return `Entr\xE9e invalide : instance de ${issue2.expected} attendu, ${received} re\xE7u`;
9195
+ return `Entr\xE9e invalide : instance de ${issue2.expected} attendu, ${received2} re\xE7u`;
9158
9196
  }
9159
- return `Entr\xE9e invalide : ${expected} attendu, ${received} re\xE7u`;
9197
+ return `Entr\xE9e invalide : ${expected} attendu, ${received2} re\xE7u`;
9160
9198
  }
9161
9199
  case "invalid_value":
9162
9200
  if (issue2.values.length === 1)
@@ -9269,11 +9307,11 @@ var init_fr_CA = __esm({
9269
9307
  case "invalid_type": {
9270
9308
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9271
9309
  const receivedType = parsedType(issue2.input);
9272
- const received = TypeDictionary[receivedType] ?? receivedType;
9310
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9273
9311
  if (/^[A-Z]/.test(issue2.expected)) {
9274
- return `Entr\xE9e invalide : attendu instanceof ${issue2.expected}, re\xE7u ${received}`;
9312
+ return `Entr\xE9e invalide : attendu instanceof ${issue2.expected}, re\xE7u ${received2}`;
9275
9313
  }
9276
- return `Entr\xE9e invalide : attendu ${expected}, re\xE7u ${received}`;
9314
+ return `Entr\xE9e invalide : attendu ${expected}, re\xE7u ${received2}`;
9277
9315
  }
9278
9316
  case "invalid_value":
9279
9317
  if (issue2.values.length === 1)
@@ -9388,8 +9426,8 @@ var init_gu = __esm({
9388
9426
  case "invalid_type": {
9389
9427
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9390
9428
  const receivedType = parsedType(issue2.input);
9391
- const received = TypeDictionary[receivedType] ?? receivedType;
9392
- return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${expected}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${received}`;
9429
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9430
+ return `\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${expected}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${received2}`;
9393
9431
  }
9394
9432
  case "invalid_value":
9395
9433
  if (issue2.values.length === 1)
@@ -9550,11 +9588,11 @@ var init_he = __esm({
9550
9588
  const expectedKey = issue2.expected;
9551
9589
  const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel(expectedKey);
9552
9590
  const receivedType = parsedType(issue2.input);
9553
- const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
9591
+ const received2 = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
9554
9592
  if (/^[A-Z]/.test(issue2.expected)) {
9555
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
9593
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received2}`;
9556
9594
  }
9557
- return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
9595
+ return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received2}`;
9558
9596
  }
9559
9597
  case "invalid_value": {
9560
9598
  if (issue2.values.length === 1) {
@@ -9716,8 +9754,8 @@ var init_hi = __esm({
9716
9754
  case "invalid_type": {
9717
9755
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9718
9756
  const receivedType = parsedType(issue2.input);
9719
- const received = TypeDictionary[receivedType] ?? receivedType;
9720
- return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received}`;
9757
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9758
+ return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received2}`;
9721
9759
  }
9722
9760
  case "invalid_value":
9723
9761
  if (issue2.values.length === 1)
@@ -9847,11 +9885,11 @@ var init_hr = __esm({
9847
9885
  case "invalid_type": {
9848
9886
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9849
9887
  const receivedType = parsedType(issue2.input);
9850
- const received = TypeDictionary[receivedType] ?? receivedType;
9888
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9851
9889
  if (/^[A-Z]/.test(issue2.expected)) {
9852
- return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
9890
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received2}`;
9853
9891
  }
9854
- return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
9892
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received2}`;
9855
9893
  }
9856
9894
  case "invalid_value":
9857
9895
  if (issue2.values.length === 1)
@@ -9969,11 +10007,11 @@ var init_hu = __esm({
9969
10007
  case "invalid_type": {
9970
10008
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9971
10009
  const receivedType = parsedType(issue2.input);
9972
- const received = TypeDictionary[receivedType] ?? receivedType;
10010
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
9973
10011
  if (/^[A-Z]/.test(issue2.expected)) {
9974
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
10012
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received2}`;
9975
10013
  }
9976
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
10014
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received2}`;
9977
10015
  }
9978
10016
  case "invalid_value":
9979
10017
  if (issue2.values.length === 1)
@@ -10129,11 +10167,11 @@ var init_hy = __esm({
10129
10167
  case "invalid_type": {
10130
10168
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10131
10169
  const receivedType = parsedType(issue2.input);
10132
- const received = TypeDictionary[receivedType] ?? receivedType;
10170
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10133
10171
  if (/^[A-Z]/.test(issue2.expected)) {
10134
- return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${issue2.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`;
10172
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${issue2.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received2}`;
10135
10173
  }
10136
- return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`;
10174
+ return `\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received2}`;
10137
10175
  }
10138
10176
  case "invalid_value":
10139
10177
  if (issue2.values.length === 1)
@@ -10252,11 +10290,11 @@ var init_id = __esm({
10252
10290
  case "invalid_type": {
10253
10291
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10254
10292
  const receivedType = parsedType(issue2.input);
10255
- const received = TypeDictionary[receivedType] ?? receivedType;
10293
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10256
10294
  if (/^[A-Z]/.test(issue2.expected)) {
10257
- return `Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received}`;
10295
+ return `Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received2}`;
10258
10296
  }
10259
- return `Input tidak valid: diharapkan ${expected}, diterima ${received}`;
10297
+ return `Input tidak valid: diharapkan ${expected}, diterima ${received2}`;
10260
10298
  }
10261
10299
  case "invalid_value":
10262
10300
  if (issue2.values.length === 1)
@@ -10372,11 +10410,11 @@ var init_is = __esm({
10372
10410
  case "invalid_type": {
10373
10411
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10374
10412
  const receivedType = parsedType(issue2.input);
10375
- const received = TypeDictionary[receivedType] ?? receivedType;
10413
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10376
10414
  if (/^[A-Z]/.test(issue2.expected)) {
10377
- return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera instanceof ${issue2.expected}`;
10415
+ return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received2} \xFEar sem \xE1 a\xF0 vera instanceof ${issue2.expected}`;
10378
10416
  }
10379
- return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera ${expected}`;
10417
+ return `Rangt gildi: \xDE\xFA sl\xF3st inn ${received2} \xFEar sem \xE1 a\xF0 vera ${expected}`;
10380
10418
  }
10381
10419
  case "invalid_value":
10382
10420
  if (issue2.values.length === 1)
@@ -10493,11 +10531,11 @@ var init_it = __esm({
10493
10531
  case "invalid_type": {
10494
10532
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10495
10533
  const receivedType = parsedType(issue2.input);
10496
- const received = TypeDictionary[receivedType] ?? receivedType;
10534
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10497
10535
  if (/^[A-Z]/.test(issue2.expected)) {
10498
- return `Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received}`;
10536
+ return `Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received2}`;
10499
10537
  }
10500
- return `Input non valido: atteso ${expected}, ricevuto ${received}`;
10538
+ return `Input non valido: atteso ${expected}, ricevuto ${received2}`;
10501
10539
  }
10502
10540
  case "invalid_value":
10503
10541
  if (issue2.values.length === 1)
@@ -10613,11 +10651,11 @@ var init_ja = __esm({
10613
10651
  case "invalid_type": {
10614
10652
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10615
10653
  const receivedType = parsedType(issue2.input);
10616
- const received = TypeDictionary[receivedType] ?? receivedType;
10654
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10617
10655
  if (/^[A-Z]/.test(issue2.expected)) {
10618
- return `\u7121\u52B9\u306A\u5165\u529B: instanceof ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
10656
+ return `\u7121\u52B9\u306A\u5165\u529B: instanceof ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received2}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
10619
10657
  }
10620
- return `\u7121\u52B9\u306A\u5165\u529B: ${expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
10658
+ return `\u7121\u52B9\u306A\u5165\u529B: ${expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received2}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
10621
10659
  }
10622
10660
  case "invalid_value":
10623
10661
  if (issue2.values.length === 1)
@@ -10735,11 +10773,11 @@ var init_ka = __esm({
10735
10773
  case "invalid_type": {
10736
10774
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10737
10775
  const receivedType = parsedType(issue2.input);
10738
- const received = TypeDictionary[receivedType] ?? receivedType;
10776
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10739
10777
  if (/^[A-Z]/.test(issue2.expected)) {
10740
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`;
10778
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received2}`;
10741
10779
  }
10742
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`;
10780
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received2}`;
10743
10781
  }
10744
10782
  case "invalid_value":
10745
10783
  if (issue2.values.length === 1)
@@ -10857,11 +10895,11 @@ var init_km = __esm({
10857
10895
  case "invalid_type": {
10858
10896
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10859
10897
  const receivedType = parsedType(issue2.input);
10860
- const received = TypeDictionary[receivedType] ?? receivedType;
10898
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
10861
10899
  if (/^[A-Z]/.test(issue2.expected)) {
10862
- return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`;
10900
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received2}`;
10863
10901
  }
10864
- return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`;
10902
+ return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received2}`;
10865
10903
  }
10866
10904
  case "invalid_value":
10867
10905
  if (issue2.values.length === 1)
@@ -10988,8 +11026,8 @@ var init_kn = __esm({
10988
11026
  case "invalid_type": {
10989
11027
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
10990
11028
  const receivedType = parsedType(issue2.input);
10991
- const received = TypeDictionary[receivedType] ?? receivedType;
10992
- return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${expected}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${received}`;
11029
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11030
+ return `\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${expected}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${received2}`;
10993
11031
  }
10994
11032
  case "invalid_value":
10995
11033
  if (issue2.values.length === 1)
@@ -11108,11 +11146,11 @@ var init_ko = __esm({
11108
11146
  case "invalid_type": {
11109
11147
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11110
11148
  const receivedType = parsedType(issue2.input);
11111
- const received = TypeDictionary[receivedType] ?? receivedType;
11149
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11112
11150
  if (/^[A-Z]/.test(issue2.expected)) {
11113
- return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`;
11151
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received2}\uC785\uB2C8\uB2E4`;
11114
11152
  }
11115
- return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`;
11153
+ return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received2}\uC785\uB2C8\uB2E4`;
11116
11154
  }
11117
11155
  case "invalid_value":
11118
11156
  if (issue2.values.length === 1)
@@ -11323,11 +11361,11 @@ var init_lt = __esm({
11323
11361
  case "invalid_type": {
11324
11362
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11325
11363
  const receivedType = parsedType(issue2.input);
11326
- const received = TypeDictionary[receivedType] ?? receivedType;
11364
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11327
11365
  if (/^[A-Z]/.test(issue2.expected)) {
11328
- return `Gautas tipas ${received}, o tik\u0117tasi - instanceof ${issue2.expected}`;
11366
+ return `Gautas tipas ${received2}, o tik\u0117tasi - instanceof ${issue2.expected}`;
11329
11367
  }
11330
- return `Gautas tipas ${received}, o tik\u0117tasi - ${expected}`;
11368
+ return `Gautas tipas ${received2}, o tik\u0117tasi - ${expected}`;
11331
11369
  }
11332
11370
  case "invalid_value":
11333
11371
  if (issue2.values.length === 1)
@@ -11447,11 +11485,11 @@ var init_mk = __esm({
11447
11485
  case "invalid_type": {
11448
11486
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11449
11487
  const receivedType = parsedType(issue2.input);
11450
- const received = TypeDictionary[receivedType] ?? receivedType;
11488
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11451
11489
  if (/^[A-Z]/.test(issue2.expected)) {
11452
- return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`;
11490
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received2}`;
11453
11491
  }
11454
- return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`;
11492
+ return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received2}`;
11455
11493
  }
11456
11494
  case "invalid_value":
11457
11495
  if (issue2.values.length === 1)
@@ -11567,11 +11605,11 @@ var init_ms = __esm({
11567
11605
  case "invalid_type": {
11568
11606
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11569
11607
  const receivedType = parsedType(issue2.input);
11570
- const received = TypeDictionary[receivedType] ?? receivedType;
11608
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11571
11609
  if (/^[A-Z]/.test(issue2.expected)) {
11572
- return `Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received}`;
11610
+ return `Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received2}`;
11573
11611
  }
11574
- return `Input tidak sah: dijangka ${expected}, diterima ${received}`;
11612
+ return `Input tidak sah: dijangka ${expected}, diterima ${received2}`;
11575
11613
  }
11576
11614
  case "invalid_value":
11577
11615
  if (issue2.values.length === 1)
@@ -11685,8 +11723,8 @@ var init_ne = __esm({
11685
11723
  case "invalid_type": {
11686
11724
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11687
11725
  const receivedType = parsedType(issue2.input);
11688
- const received = TypeDictionary[receivedType] ?? receivedType;
11689
- return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received}`;
11726
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11727
+ return `\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${expected}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${received2}`;
11690
11728
  }
11691
11729
  case "invalid_value":
11692
11730
  if (issue2.values.length === 1)
@@ -11804,11 +11842,11 @@ var init_nl = __esm({
11804
11842
  case "invalid_type": {
11805
11843
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11806
11844
  const receivedType = parsedType(issue2.input);
11807
- const received = TypeDictionary[receivedType] ?? receivedType;
11845
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11808
11846
  if (/^[A-Z]/.test(issue2.expected)) {
11809
- return `Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received}`;
11847
+ return `Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received2}`;
11810
11848
  }
11811
- return `Ongeldige invoer: verwacht ${expected}, ontving ${received}`;
11849
+ return `Ongeldige invoer: verwacht ${expected}, ontving ${received2}`;
11812
11850
  }
11813
11851
  case "invalid_value":
11814
11852
  if (issue2.values.length === 1)
@@ -11927,11 +11965,11 @@ var init_nn = __esm({
11927
11965
  case "invalid_type": {
11928
11966
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11929
11967
  const receivedType = parsedType(issue2.input);
11930
- const received = TypeDictionary[receivedType] ?? receivedType;
11968
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
11931
11969
  if (/^[A-Z]/.test(issue2.expected)) {
11932
- return `Ugyldig input: forventa instanceof ${issue2.expected}, fekk ${received}`;
11970
+ return `Ugyldig input: forventa instanceof ${issue2.expected}, fekk ${received2}`;
11933
11971
  }
11934
- return `Ugyldig input: forventa ${expected}, fekk ${received}`;
11972
+ return `Ugyldig input: forventa ${expected}, fekk ${received2}`;
11935
11973
  }
11936
11974
  case "invalid_value":
11937
11975
  if (issue2.values.length === 1)
@@ -12047,11 +12085,11 @@ var init_no = __esm({
12047
12085
  case "invalid_type": {
12048
12086
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
12049
12087
  const receivedType = parsedType(issue2.input);
12050
- const received = TypeDictionary[receivedType] ?? receivedType;
12088
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
12051
12089
  if (/^[A-Z]/.test(issue2.expected)) {
12052
- return `Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received}`;
12090
+ return `Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received2}`;
12053
12091
  }
12054
- return `Ugyldig input: forventet ${expected}, fikk ${received}`;
12092
+ return `Ugyldig input: forventet ${expected}, fikk ${received2}`;
12055
12093
  }
12056
12094
  case "invalid_value":
12057
12095
  if (issue2.values.length === 1)
@@ -12168,11 +12206,11 @@ var init_ota = __esm({
12168
12206
  case "invalid_type": {
12169
12207
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
12170
12208
  const receivedType = parsedType(issue2.input);
12171
- const received = TypeDictionary[receivedType] ?? receivedType;
12209
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
12172
12210
  if (/^[A-Z]/.test(issue2.expected)) {
12173
- return `F\xE2sit giren: umulan instanceof ${issue2.expected}, al\u0131nan ${received}`;
12211
+ return `F\xE2sit giren: umulan instanceof ${issue2.expected}, al\u0131nan ${received2}`;
12174
12212
  }
12175
- return `F\xE2sit giren: umulan ${expected}, al\u0131nan ${received}`;
12213
+ return `F\xE2sit giren: umulan ${expected}, al\u0131nan ${received2}`;
12176
12214
  }
12177
12215
  case "invalid_value":
12178
12216
  if (issue2.values.length === 1)
@@ -12288,11 +12326,11 @@ var init_ps = __esm({
12288
12326
  case "invalid_type": {
12289
12327
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
12290
12328
  const receivedType = parsedType(issue2.input);
12291
- const received = TypeDictionary[receivedType] ?? receivedType;
12329
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
12292
12330
  if (/^[A-Z]/.test(issue2.expected)) {
12293
- return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
12331
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received2} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
12294
12332
  }
12295
- return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
12333
+ return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received2} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
12296
12334
  }
12297
12335
  case "invalid_value":
12298
12336
  if (issue2.values.length === 1) {
@@ -12414,11 +12452,11 @@ var init_pl = __esm({
12414
12452
  case "invalid_type": {
12415
12453
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
12416
12454
  const receivedType = parsedType(issue2.input);
12417
- const received = TypeDictionary[receivedType] ?? receivedType;
12455
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
12418
12456
  if (/^[A-Z]/.test(issue2.expected)) {
12419
- return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received}`;
12457
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received2}`;
12420
12458
  }
12421
- return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${expected}, otrzymano ${received}`;
12459
+ return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${expected}, otrzymano ${received2}`;
12422
12460
  }
12423
12461
  case "invalid_value":
12424
12462
  if (issue2.values.length === 1)
@@ -12562,8 +12600,8 @@ var init_pt = __esm({
12562
12600
  case "invalid_type": {
12563
12601
  const expected = translateOriginWithArticle(issue2.expected, "indefinite");
12564
12602
  const receivedType = parsedType(issue2.input);
12565
- const received = translateOriginWithArticle(receivedType, "indefinite");
12566
- return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received}`;
12603
+ const received2 = translateOriginWithArticle(receivedType, "indefinite");
12604
+ return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received2}`;
12567
12605
  }
12568
12606
  case "invalid_value":
12569
12607
  if (issue2.values.length === 1)
@@ -12712,8 +12750,8 @@ var init_pt_BR = __esm({
12712
12750
  case "invalid_type": {
12713
12751
  const expected = translateOriginWithArticle(issue2.expected, "indefinite");
12714
12752
  const receivedType = parsedType(issue2.input);
12715
- const received = translateOriginWithArticle(receivedType, "indefinite");
12716
- return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received}`;
12753
+ const received2 = translateOriginWithArticle(receivedType, "indefinite");
12754
+ return `Entrada inv\xE1lida: esperava ${expected}, recebeu ${received2}`;
12717
12755
  }
12718
12756
  case "invalid_value":
12719
12757
  if (issue2.values.length === 1)
@@ -12847,8 +12885,8 @@ var init_ro = __esm({
12847
12885
  case "invalid_type": {
12848
12886
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
12849
12887
  const receivedType = parsedType(issue2.input);
12850
- const received = TypeDictionary[receivedType] ?? receivedType;
12851
- return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
12888
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
12889
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received2}`;
12852
12890
  }
12853
12891
  case "invalid_value":
12854
12892
  if (issue2.values.length === 1)
@@ -13015,11 +13053,11 @@ var init_ru = __esm({
13015
13053
  case "invalid_type": {
13016
13054
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13017
13055
  const receivedType = parsedType(issue2.input);
13018
- const received = TypeDictionary[receivedType] ?? receivedType;
13056
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13019
13057
  if (/^[A-Z]/.test(issue2.expected)) {
13020
- return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`;
13058
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received2}`;
13021
13059
  }
13022
- return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`;
13060
+ return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received2}`;
13023
13061
  }
13024
13062
  case "invalid_value":
13025
13063
  if (issue2.values.length === 1)
@@ -13142,11 +13180,11 @@ var init_sk = __esm({
13142
13180
  case "invalid_type": {
13143
13181
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13144
13182
  const receivedType = parsedType(issue2.input);
13145
- const received = TypeDictionary[receivedType] ?? receivedType;
13183
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13146
13184
  if (/^[A-Z]/.test(issue2.expected)) {
13147
- return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${issue2.expected}, obdr\u017Ean\xE9 ${received}`;
13185
+ return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${issue2.expected}, obdr\u017Ean\xE9 ${received2}`;
13148
13186
  }
13149
- return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${expected}, obdr\u017Ean\xE9 ${received}`;
13187
+ return `Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${expected}, obdr\u017Ean\xE9 ${received2}`;
13150
13188
  }
13151
13189
  case "invalid_value":
13152
13190
  if (issue2.values.length === 1)
@@ -13263,11 +13301,11 @@ var init_sl = __esm({
13263
13301
  case "invalid_type": {
13264
13302
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13265
13303
  const receivedType = parsedType(issue2.input);
13266
- const received = TypeDictionary[receivedType] ?? receivedType;
13304
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13267
13305
  if (/^[A-Z]/.test(issue2.expected)) {
13268
- return `Neveljaven vnos: pri\u010Dakovano instanceof ${issue2.expected}, prejeto ${received}`;
13306
+ return `Neveljaven vnos: pri\u010Dakovano instanceof ${issue2.expected}, prejeto ${received2}`;
13269
13307
  }
13270
- return `Neveljaven vnos: pri\u010Dakovano ${expected}, prejeto ${received}`;
13308
+ return `Neveljaven vnos: pri\u010Dakovano ${expected}, prejeto ${received2}`;
13271
13309
  }
13272
13310
  case "invalid_value":
13273
13311
  if (issue2.values.length === 1)
@@ -13384,11 +13422,11 @@ var init_sv = __esm({
13384
13422
  case "invalid_type": {
13385
13423
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13386
13424
  const receivedType = parsedType(issue2.input);
13387
- const received = TypeDictionary[receivedType] ?? receivedType;
13425
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13388
13426
  if (/^[A-Z]/.test(issue2.expected)) {
13389
- return `Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${issue2.expected}, fick ${received}`;
13427
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${issue2.expected}, fick ${received2}`;
13390
13428
  }
13391
- return `Ogiltig inmatning: f\xF6rv\xE4ntat ${expected}, fick ${received}`;
13429
+ return `Ogiltig inmatning: f\xF6rv\xE4ntat ${expected}, fick ${received2}`;
13392
13430
  }
13393
13431
  case "invalid_value":
13394
13432
  if (issue2.values.length === 1)
@@ -13507,11 +13545,11 @@ var init_ta = __esm({
13507
13545
  case "invalid_type": {
13508
13546
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13509
13547
  const receivedType = parsedType(issue2.input);
13510
- const received = TypeDictionary[receivedType] ?? receivedType;
13548
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13511
13549
  if (/^[A-Z]/.test(issue2.expected)) {
13512
- return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`;
13550
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received2}`;
13513
13551
  }
13514
- return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`;
13552
+ return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received2}`;
13515
13553
  }
13516
13554
  case "invalid_value":
13517
13555
  if (issue2.values.length === 1)
@@ -13631,8 +13669,8 @@ var init_tg = __esm({
13631
13669
  case "invalid_type": {
13632
13670
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13633
13671
  const receivedType = parsedType(issue2.input);
13634
- const received = TypeDictionary[receivedType] ?? receivedType;
13635
- return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${expected} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${received} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`;
13672
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13673
+ return `\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${expected} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${received2} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`;
13636
13674
  }
13637
13675
  case "invalid_value":
13638
13676
  if (issue2.values.length === 1)
@@ -13752,11 +13790,11 @@ var init_th = __esm({
13752
13790
  case "invalid_type": {
13753
13791
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13754
13792
  const receivedType = parsedType(issue2.input);
13755
- const received = TypeDictionary[receivedType] ?? receivedType;
13793
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13756
13794
  if (/^[A-Z]/.test(issue2.expected)) {
13757
- return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
13795
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received2}`;
13758
13796
  }
13759
- return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`;
13797
+ return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received2}`;
13760
13798
  }
13761
13799
  case "invalid_value":
13762
13800
  if (issue2.values.length === 1)
@@ -13871,8 +13909,8 @@ var init_tk = __esm({
13871
13909
  case "invalid_type": {
13872
13910
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13873
13911
  const receivedType = parsedType(issue2.input);
13874
- const received = TypeDictionary[receivedType] ?? receivedType;
13875
- return `N\xE4dogry baha: gara\u015Fylan ${expected} \xFDerine ${received} alyndy`;
13912
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13913
+ return `N\xE4dogry baha: gara\u015Fylan ${expected} \xFDerine ${received2} alyndy`;
13876
13914
  }
13877
13915
  case "invalid_value":
13878
13916
  if (issue2.values.length === 1)
@@ -13985,11 +14023,11 @@ var init_tr = __esm({
13985
14023
  case "invalid_type": {
13986
14024
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
13987
14025
  const receivedType = parsedType(issue2.input);
13988
- const received = TypeDictionary[receivedType] ?? receivedType;
14026
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
13989
14027
  if (/^[A-Z]/.test(issue2.expected)) {
13990
- return `Ge\xE7ersiz de\u011Fer: beklenen instanceof ${issue2.expected}, al\u0131nan ${received}`;
14028
+ return `Ge\xE7ersiz de\u011Fer: beklenen instanceof ${issue2.expected}, al\u0131nan ${received2}`;
13991
14029
  }
13992
- return `Ge\xE7ersiz de\u011Fer: beklenen ${expected}, al\u0131nan ${received}`;
14030
+ return `Ge\xE7ersiz de\u011Fer: beklenen ${expected}, al\u0131nan ${received2}`;
13993
14031
  }
13994
14032
  case "invalid_value":
13995
14033
  if (issue2.values.length === 1)
@@ -14104,11 +14142,11 @@ var init_uk = __esm({
14104
14142
  case "invalid_type": {
14105
14143
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14106
14144
  const receivedType = parsedType(issue2.input);
14107
- const received = TypeDictionary[receivedType] ?? receivedType;
14145
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14108
14146
  if (/^[A-Z]/.test(issue2.expected)) {
14109
- return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`;
14147
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received2}`;
14110
14148
  }
14111
- return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`;
14149
+ return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received2}`;
14112
14150
  }
14113
14151
  case "invalid_value":
14114
14152
  if (issue2.values.length === 1)
@@ -14235,11 +14273,11 @@ var init_ur = __esm({
14235
14273
  case "invalid_type": {
14236
14274
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14237
14275
  const receivedType = parsedType(issue2.input);
14238
- const received = TypeDictionary[receivedType] ?? receivedType;
14276
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14239
14277
  if (/^[A-Z]/.test(issue2.expected)) {
14240
- return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
14278
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received2} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
14241
14279
  }
14242
- return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
14280
+ return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received2} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
14243
14281
  }
14244
14282
  case "invalid_value":
14245
14283
  if (issue2.values.length === 1)
@@ -14356,11 +14394,11 @@ var init_uz = __esm({
14356
14394
  case "invalid_type": {
14357
14395
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14358
14396
  const receivedType = parsedType(issue2.input);
14359
- const received = TypeDictionary[receivedType] ?? receivedType;
14397
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14360
14398
  if (/^[A-Z]/.test(issue2.expected)) {
14361
- return `Noto\u2018g\u2018ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received}`;
14399
+ return `Noto\u2018g\u2018ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received2}`;
14362
14400
  }
14363
- return `Noto\u2018g\u2018ri kirish: kutilgan ${expected}, qabul qilingan ${received}`;
14401
+ return `Noto\u2018g\u2018ri kirish: kutilgan ${expected}, qabul qilingan ${received2}`;
14364
14402
  }
14365
14403
  case "invalid_value":
14366
14404
  if (issue2.values.length === 1)
@@ -14476,11 +14514,11 @@ var init_vi = __esm({
14476
14514
  case "invalid_type": {
14477
14515
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14478
14516
  const receivedType = parsedType(issue2.input);
14479
- const received = TypeDictionary[receivedType] ?? receivedType;
14517
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14480
14518
  if (/^[A-Z]/.test(issue2.expected)) {
14481
- return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`;
14519
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received2}`;
14482
14520
  }
14483
- return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`;
14521
+ return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received2}`;
14484
14522
  }
14485
14523
  case "invalid_value":
14486
14524
  if (issue2.values.length === 1)
@@ -14597,11 +14635,11 @@ var init_zh_CN = __esm({
14597
14635
  case "invalid_type": {
14598
14636
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14599
14637
  const receivedType = parsedType(issue2.input);
14600
- const received = TypeDictionary[receivedType] ?? receivedType;
14638
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14601
14639
  if (/^[A-Z]/.test(issue2.expected)) {
14602
- return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`;
14640
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received2}`;
14603
14641
  }
14604
- return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`;
14642
+ return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received2}`;
14605
14643
  }
14606
14644
  case "invalid_value":
14607
14645
  if (issue2.values.length === 1)
@@ -14715,11 +14753,11 @@ var init_zh_TW = __esm({
14715
14753
  case "invalid_type": {
14716
14754
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14717
14755
  const receivedType = parsedType(issue2.input);
14718
- const received = TypeDictionary[receivedType] ?? receivedType;
14756
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14719
14757
  if (/^[A-Z]/.test(issue2.expected)) {
14720
- return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${received}`;
14758
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${received2}`;
14721
14759
  }
14722
- return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${expected}\uFF0C\u4F46\u6536\u5230 ${received}`;
14760
+ return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${expected}\uFF0C\u4F46\u6536\u5230 ${received2}`;
14723
14761
  }
14724
14762
  case "invalid_value":
14725
14763
  if (issue2.values.length === 1)
@@ -14836,11 +14874,11 @@ var init_yo = __esm({
14836
14874
  case "invalid_type": {
14837
14875
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
14838
14876
  const receivedType = parsedType(issue2.input);
14839
- const received = TypeDictionary[receivedType] ?? receivedType;
14877
+ const received2 = TypeDictionary[receivedType] ?? receivedType;
14840
14878
  if (/^[A-Z]/.test(issue2.expected)) {
14841
- return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`;
14879
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${received2}`;
14842
14880
  }
14843
- return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`;
14881
+ return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${expected}, \xE0m\u1ECD\u0300 a r\xED ${received2}`;
14844
14882
  }
14845
14883
  case "invalid_value":
14846
14884
  if (issue2.values.length === 1)
@@ -29496,7 +29534,7 @@ var require_raw_body = __commonJS({
29496
29534
  type: "stream.not.readable"
29497
29535
  }));
29498
29536
  }
29499
- var received = 0;
29537
+ var received2 = 0;
29500
29538
  var decoder2;
29501
29539
  try {
29502
29540
  decoder2 = getDecoder(encoding);
@@ -29535,17 +29573,17 @@ var require_raw_body = __commonJS({
29535
29573
  code: "ECONNABORTED",
29536
29574
  expected: length,
29537
29575
  length,
29538
- received,
29576
+ received: received2,
29539
29577
  type: "request.aborted"
29540
29578
  }));
29541
29579
  }
29542
29580
  function onData(chunk) {
29543
29581
  if (complete) return;
29544
- received += chunk.length;
29545
- if (limit !== null && received > limit) {
29582
+ received2 += chunk.length;
29583
+ if (limit !== null && received2 > limit) {
29546
29584
  done(createError(413, "request entity too large", {
29547
29585
  limit,
29548
- received,
29586
+ received: received2,
29549
29587
  type: "entity.too.large"
29550
29588
  }));
29551
29589
  } else if (decoder2) {
@@ -29557,11 +29595,11 @@ var require_raw_body = __commonJS({
29557
29595
  function onEnd(err) {
29558
29596
  if (complete) return;
29559
29597
  if (err) return done(err);
29560
- if (length !== null && received !== length) {
29598
+ if (length !== null && received2 !== length) {
29561
29599
  done(createError(400, "request size did not match content length", {
29562
29600
  expected: length,
29563
29601
  length,
29564
- received,
29602
+ received: received2,
29565
29603
  type: "request.size.invalid"
29566
29604
  }));
29567
29605
  } else {
@@ -72982,7 +73020,7 @@ function isCi(env = process.env) {
72982
73020
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
72983
73021
  function readCliVersion() {
72984
73022
  if (true) {
72985
- return "0.35.1-next.44";
73023
+ return "0.35.1-next.46";
72986
73024
  }
72987
73025
  return "0.0.0";
72988
73026
  }
@@ -75603,21 +75641,24 @@ init_src();
75603
75641
  var SECRET_PLACEHOLDER_MARKER = "{{secret:";
75604
75642
  function resolveSecretPlaceholders(text, options = {}) {
75605
75643
  const secrets = [];
75644
+ const client2 = options.clientSecrets;
75645
+ const exclusive = client2?.exclusive === true;
75606
75646
  let sources;
75607
75647
  const resolved = text.replace(SECRET_PLACEHOLDER_RE, (_placeholder, rawName) => {
75608
75648
  sources ??= [
75609
- ...options.clientSecrets ? [clientSecretSource(options.clientSecrets)] : [],
75610
- ...secretSources(options)
75649
+ ...client2 ? [clientSecretSource(client2)] : [],
75650
+ ...exclusive ? [] : secretSources(options)
75611
75651
  ];
75612
75652
  const { name, value } = lookupPlaceholderSecret(rawName, sources);
75613
75653
  if (value === void 0) {
75654
+ if (exclusive) throw unknownCallerSecret(rawName, name, client2);
75614
75655
  const names = secretNames(sources);
75615
- const where = options.clientSecrets ? `the required secret ${name} was not provided: the argent client forwards its secrets to this tool-server and has no value for it, and no source on the machine running the tool-server defines it either` : `no source on the machine running the tool-server defines ${name}`;
75656
+ const where = client2 ? `the required secret ${name} was not provided: the argent client forwards its secrets to this tool-server and has no value for it, and no source on the machine running the tool-server defines it either` : `no source on the machine running the tool-server defines ${name}`;
75616
75657
  throw new InvalidToolInputError(
75617
75658
  `Unknown secret "${rawName}" \u2014 ${where}. Available secrets: ${names.length ? names.join(", ") : "(none)"}.
75618
75659
  Sources consulted, first match wins:
75619
75660
  ${describeSecretSources(sources)}
75620
- ` + (options.clientSecrets ? clientSecretPlacementAdvice(name) : secretPlacementAdvice(name, options)),
75661
+ ` + (client2 ? clientSecretPlacementAdvice(name) : secretPlacementAdvice(name, options)),
75621
75662
  {
75622
75663
  error_code: FAILURE_CODES.SECRET_PLACEHOLDER_UNKNOWN,
75623
75664
  failure_stage: "secret_placeholder_resolution",
@@ -75630,6 +75671,22 @@ ${describeSecretSources(sources)}
75630
75671
  });
75631
75672
  return { text: resolved, secrets };
75632
75673
  }
75674
+ function unknownCallerSecret(rawName, name, client2) {
75675
+ const sources = client2.sources ?? [];
75676
+ const names = [.../* @__PURE__ */ new Set([...secretNames(sources), ...client2.keys()])].sort();
75677
+ const listed = sources.length > 0 ? `Sources the client consulted, first match wins:
75678
+ ${describeSecretSources(sources)}
75679
+ ` : "";
75680
+ return new InvalidToolInputError(
75681
+ `Unknown secret "${rawName}" \u2014 the argent client that sent this call (the \`argent\` command, or the MCP server of the agent's session) found no ${name} in its environment, its project or ~/.argent/secrets.env. The tool-server does not read its own. Available secrets: ${names.length ? names.join(", ") : "(none)"}.
75682
+ ` + listed + callerSecretPlacementAdvice(name),
75683
+ {
75684
+ error_code: FAILURE_CODES.SECRET_PLACEHOLDER_UNKNOWN,
75685
+ failure_stage: "secret_placeholder_resolution",
75686
+ error_kind: "validation"
75687
+ }
75688
+ );
75689
+ }
75633
75690
  var MIN_FRAGMENT = 6;
75634
75691
  function redactSecrets(text, secrets) {
75635
75692
  return secretRedactor(secrets)(text);
@@ -75949,8 +76006,14 @@ var SEGMENT = String.raw`(?:[A-Za-z_][A-Za-z0-9_-]*|0|[1-9]\d*)`;
75949
76006
  var PATH_RE = new RegExp(`^${SEGMENT}(?:\\.${SEGMENT})*$`);
75950
76007
  var NUMBER_RE = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
75951
76008
  var MAX_LISTED_KEYS = 20;
75952
- var GRAMMAR = "write `{{output:PATH}}` or `{{output:PATH ?? FALLBACK}}`, where PATH is keys and array indexes joined by dots, e.g. `{{output:user.id}}` or `{{output:items.0.name ?? none}}`";
75953
- var OutputReferenceError = class extends Error {
76009
+ var OUTPUT_SYNTAX = {
76010
+ marker: OUTPUT_REFERENCE_MARKER,
76011
+ name: PATH_RE,
76012
+ grammar: "write `{{output:PATH}}` or `{{output:PATH ?? FALLBACK}}`, where PATH is keys and array indexes joined by dots, e.g. `{{output:user.id}}` or `{{output:items.0.name ?? none}}`"
76013
+ };
76014
+ var StepReferenceError = class extends Error {
76015
+ };
76016
+ var OutputReferenceError = class extends StepReferenceError {
75954
76017
  };
75955
76018
  function outputReferenceProblem(text) {
75956
76019
  try {
@@ -75964,19 +76027,23 @@ function holdsOutputMarker(text) {
75964
76027
  return text.includes(OUTPUT_REFERENCE_MARKER);
75965
76028
  }
75966
76029
  function scan(text) {
76030
+ return scanReferences(text, OUTPUT_SYNTAX);
76031
+ }
76032
+ function scanReferences(text, syntax) {
76033
+ const { marker, grammar } = syntax;
75967
76034
  const refs = [];
75968
- let at = text.indexOf(OUTPUT_REFERENCE_MARKER);
76035
+ let at = text.indexOf(marker);
75969
76036
  while (at !== -1) {
75970
- const close = text.indexOf("}}", at + OUTPUT_REFERENCE_MARKER.length);
76037
+ const close = text.indexOf("}}", at + marker.length);
75971
76038
  if (close === -1) {
75972
- throw new Error(`has a reference with no closing \`}}\`: ${GRAMMAR}`);
76039
+ throw new Error(`has a reference with no closing \`}}\`: ${grammar}`);
75973
76040
  }
75974
76041
  const source = text.slice(at, close + 2);
75975
- const body = text.slice(at + OUTPUT_REFERENCE_MARKER.length, close);
76042
+ const body = text.slice(at + marker.length, close);
75976
76043
  const split = body.indexOf("??");
75977
76044
  const path77 = (split === -1 ? body : body.slice(0, split)).trim();
75978
- if (!PATH_RE.test(path77)) {
75979
- throw new Error(`has an invalid reference ${JSON.stringify(source)}: ${GRAMMAR}`);
76045
+ if (!syntax.name.test(path77)) {
76046
+ throw new Error(`has an invalid reference ${JSON.stringify(source)}: ${grammar}`);
75980
76047
  }
75981
76048
  const ref = { start: at, end: close + 2, source, path: path77 };
75982
76049
  if (split !== -1) {
@@ -75995,7 +76062,7 @@ function scan(text) {
75995
76062
  ref.fallback = { value, text: typeof value === "string" ? value : literal2 };
75996
76063
  }
75997
76064
  refs.push(ref);
75998
- at = text.indexOf(OUTPUT_REFERENCE_MARKER, close + 2);
76065
+ at = text.indexOf(marker, close + 2);
75999
76066
  }
76000
76067
  return refs;
76001
76068
  }
@@ -76158,6 +76225,115 @@ function evaluateValueCheck(test, expected, hit, at) {
76158
76225
  return { ok, reason: `${at} is ${JSON.stringify(actual)}` };
76159
76226
  }
76160
76227
 
76228
+ // ../tool-server/src/tools/flows/flow-vars.ts
76229
+ init_src();
76230
+ var VAR_REFERENCE_MARKER = "{{var:";
76231
+ var VAR_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
76232
+ var MAX_LISTED_NAMES = 20;
76233
+ var VAR_SYNTAX = {
76234
+ marker: VAR_REFERENCE_MARKER,
76235
+ name: VAR_NAME_RE,
76236
+ grammar: "write `{{var:NAME}}` or `{{var:NAME ?? FALLBACK}}`, where NAME is a var of the e2e test, e.g. `{{var:USER_NAME}}` or `{{var:USER_NAME ?? guest}}`"
76237
+ };
76238
+ var VarReferenceError = class extends StepReferenceError {
76239
+ };
76240
+ function holdsVarMarker(text) {
76241
+ return text.includes(VAR_REFERENCE_MARKER);
76242
+ }
76243
+ function varReferenceProblem(text) {
76244
+ try {
76245
+ scanReferences(text, VAR_SYNTAX);
76246
+ return void 0;
76247
+ } catch (err) {
76248
+ return err.message;
76249
+ }
76250
+ }
76251
+ function requiredVarNames(text) {
76252
+ if (!holdsVarMarker(text)) return [];
76253
+ return scanReferences(text, VAR_SYNTAX).filter((ref) => ref.fallback === void 0).map((ref) => ref.path);
76254
+ }
76255
+ function varValueProblem(value) {
76256
+ if (!value.replace(new RegExp(SECRET_PLACEHOLDER_RE.source, "g"), "").includes("{{")) {
76257
+ return void 0;
76258
+ }
76259
+ return "takes only literal text and {{secret:NAME}} placeholders, not another reference";
76260
+ }
76261
+ function lookupVar(vars, name) {
76262
+ if (Object.hasOwn(vars, name)) return vars[name];
76263
+ if (process.platform !== "win32") return void 0;
76264
+ const lower = name.toLowerCase();
76265
+ const match = Object.keys(vars).find((key2) => key2.toLowerCase() === lower);
76266
+ return match === void 0 ? void 0 : vars[match];
76267
+ }
76268
+ function namesOfVar(vars, name) {
76269
+ if (process.platform !== "win32") return Object.hasOwn(vars, name) ? [name] : [];
76270
+ const lower = name.toLowerCase();
76271
+ return Object.keys(vars).filter((key2) => key2.toLowerCase() === lower);
76272
+ }
76273
+ function varIsSet(vars, name) {
76274
+ return lookupVar(vars, name) !== void 0;
76275
+ }
76276
+ function secretVarNames(text, vars) {
76277
+ if (!holdsVarMarker(text)) return [];
76278
+ return scanReferences(text, VAR_SYNTAX).map((ref) => ref.path).filter((name) => new RegExp(SECRET_PLACEHOLDER_RE.source).test(lookupVar(vars, name) ?? ""));
76279
+ }
76280
+ function missingVarReason(name, vars) {
76281
+ const names = Object.keys(vars).sort();
76282
+ if (names.length === 0) return `the run sets no vars, and ${name} is not one of them`;
76283
+ const listed = names.slice(0, MAX_LISTED_NAMES).join(", ");
76284
+ const more = names.length > MAX_LISTED_NAMES ? `, and ${names.length - MAX_LISTED_NAMES} more` : "";
76285
+ return `the run sets no var ${name} (vars: ${listed}${more})`;
76286
+ }
76287
+ function resolveRef3(ref, vars) {
76288
+ const value = lookupVar(vars, ref.path);
76289
+ if (value !== void 0) return { value, text: value };
76290
+ if (ref.fallback) return ref.fallback;
76291
+ throw new VarReferenceError(`${ref.source} has no value: ${missingVarReason(ref.path, vars)}`);
76292
+ }
76293
+ function resolveVarText(text, vars) {
76294
+ if (!holdsVarMarker(text)) return text;
76295
+ const refs = scanReferences(text, VAR_SYNTAX);
76296
+ let resolved = "";
76297
+ let copied = 0;
76298
+ const spans = [];
76299
+ for (const ref of refs) {
76300
+ resolved += text.slice(copied, ref.start);
76301
+ const value = resolveRef3(ref, vars).text;
76302
+ spans.push({ from: resolved.length, to: resolved.length + value.length, ref });
76303
+ resolved += value;
76304
+ copied = ref.end;
76305
+ }
76306
+ resolved += text.slice(copied);
76307
+ for (const match of resolved.matchAll(SECRET_PLACEHOLDER_RE)) {
76308
+ const from2 = match.index;
76309
+ const to = from2 + match[0].length;
76310
+ const touching = spans.filter((s) => s.from < to && s.to > from2);
76311
+ if (touching.length === 0) continue;
76312
+ if (touching.length === 1 && touching[0].from <= from2 && touching[0].to >= to) continue;
76313
+ throw new VarReferenceError(
76314
+ `${touching[0].ref.source} would form a {{secret:...}} placeholder with the text or the var next to it. Write the whole placeholder in one var's value or in the e2e test file`
76315
+ );
76316
+ }
76317
+ for (let at = resolved.indexOf(OUTPUT_REFERENCE_MARKER); at !== -1; at = resolved.indexOf(OUTPUT_REFERENCE_MARKER, at + 1)) {
76318
+ const close = resolved.indexOf("}}", at + OUTPUT_REFERENCE_MARKER.length);
76319
+ const end = close === -1 ? resolved.length : close + 2;
76320
+ const touching = spans.find((s) => s.from < end && s.to > at);
76321
+ if (touching) {
76322
+ throw new VarReferenceError(
76323
+ `${touching.ref.source} would form an {{output:...}} reference with the text or the var next to it. A var's value is inserted as text, never read for a reference`
76324
+ );
76325
+ }
76326
+ }
76327
+ return resolved;
76328
+ }
76329
+ function resolveVarValue(text, vars) {
76330
+ if (!holdsVarMarker(text)) return text;
76331
+ const refs = scanReferences(text, VAR_SYNTAX);
76332
+ const only = refs.length === 1 ? refs[0] : void 0;
76333
+ if (!only || only.start !== 0 || only.end !== text.length) return resolveVarText(text, vars);
76334
+ return resolveRef3(only, vars).value;
76335
+ }
76336
+
76161
76337
  // ../tool-server/src/tools/flows/flow-utils.ts
76162
76338
  function windowsPathRefusal(label, value) {
76163
76339
  if (process.platform === "win32" || path15.isAbsolute(value) || !path15.win32.isAbsolute(value)) {
@@ -77778,20 +77954,19 @@ function parseScriptStep(raw, body) {
77778
77954
  };
77779
77955
  if (b.timeout !== void 0) step.timeout = parseScriptTimeout(raw, b.timeout);
77780
77956
  if (b.env !== void 0) {
77781
- const problem = flowEnvProblem(b.env, { references: true });
77957
+ const problem = scriptEnvProblem(b.env);
77782
77958
  if (problem) badEntry(raw, `script.env ${problem}`);
77783
77959
  step.env = b.env;
77784
77960
  }
77785
77961
  return step;
77786
77962
  }
77787
- var ENV_NAME_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
77788
- function flowEnvProblem(value, { references = false } = {}) {
77963
+ function nameMapProblem(value, example) {
77789
77964
  if (value === null || typeof value !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(value))) {
77790
- return "must be a map of variable names to string values, e.g. `env: { API_URL: https://example.com }`";
77965
+ return `must be a map of names to string values, e.g. ${example}`;
77791
77966
  }
77792
77967
  for (const [name, entry] of Object.entries(value)) {
77793
- if (!ENV_NAME_RE.test(name)) {
77794
- return `has an invalid variable name ${JSON.stringify(name)}: use letters, digits and _, not starting with a digit`;
77968
+ if (!VAR_NAME_RE.test(name)) {
77969
+ return `has an invalid name ${JSON.stringify(name)}: use letters, digits and _, not starting with a digit`;
77795
77970
  }
77796
77971
  if (name === "__proto__") return "cannot set __proto__";
77797
77972
  if (typeof entry === "number" || typeof entry === "boolean") {
@@ -77799,19 +77974,32 @@ function flowEnvProblem(value, { references = false } = {}) {
77799
77974
  }
77800
77975
  if (typeof entry !== "string") return `has a non-string value for ${name}`;
77801
77976
  if (entry.includes("\0")) return `has a NUL character in the value of ${name}`;
77802
- if (!references && holdsOutputMarker(entry)) {
77803
- return `has an {{output:...}} reference in the value of ${name}: only the env: of the script step that reads it takes one`;
77804
- }
77805
- const problem = outputReferenceProblem(entry);
77806
- if (problem) return `${name} ${problem}`;
77807
77977
  }
77808
77978
  return void 0;
77809
77979
  }
77810
- function envRecordSchema(value) {
77980
+ function flowVarsProblem(value) {
77981
+ const problem = nameMapProblem(value, "`vars: { USER_NAME: alice }`");
77982
+ if (problem) return problem;
77983
+ for (const [name, entry] of Object.entries(value)) {
77984
+ const valueProblem = varValueProblem(entry);
77985
+ if (valueProblem) return `${name} ${valueProblem}`;
77986
+ }
77987
+ return void 0;
77988
+ }
77989
+ function scriptEnvProblem(value) {
77990
+ const problem = nameMapProblem(value, '`env: { PORT: "8080" }`');
77991
+ if (problem) return problem;
77992
+ for (const [name, entry] of Object.entries(value)) {
77993
+ const referenceProblem = outputReferenceProblem(entry) ?? varReferenceProblem(entry);
77994
+ if (referenceProblem) return `${name} ${referenceProblem}`;
77995
+ }
77996
+ return void 0;
77997
+ }
77998
+ function nameRecordSchema(value, label) {
77811
77999
  return external_exports.preprocess(
77812
78000
  (input2, ctx) => {
77813
78001
  if (input2 !== null && typeof input2 === "object" && Object.hasOwn(input2, "__proto__")) {
77814
- ctx.addIssue({ code: "custom", message: "env cannot set __proto__" });
78002
+ ctx.addIssue({ code: "custom", message: `${label} cannot set __proto__` });
77815
78003
  }
77816
78004
  return input2;
77817
78005
  },
@@ -77905,7 +78093,7 @@ function* selectorFields(sel, where) {
77905
78093
  }
77906
78094
  function* argFields(value, where, set2, typed = true, seen = /* @__PURE__ */ new Set()) {
77907
78095
  if (typeof value === "string") {
77908
- yield { where, value, ...set2 ? { set: set2, typed } : {} };
78096
+ yield { where, value, ...set2 ? { set: set2, typed, secretOk: true } : {} };
77909
78097
  return;
77910
78098
  }
77911
78099
  if (value === null || typeof value !== "object") return;
@@ -77937,7 +78125,7 @@ function* argFields(value, where, set2, typed = true, seen = /* @__PURE__ */ new
77937
78125
  } else {
77938
78126
  const record2 = value;
77939
78127
  for (const [key2, item] of Object.entries(record2)) {
77940
- if (holdsOutputMarker(key2)) yield { where: `${where}.${key2}`, value: key2 };
78128
+ if (holdsReferenceMarker(key2)) yield { where: `${where}.${key2}`, value: key2 };
77941
78129
  yield* argFields(
77942
78130
  item,
77943
78131
  `${where}.${key2}`,
@@ -77956,8 +78144,8 @@ function* toolArgFields(step) {
77956
78144
  return;
77957
78145
  }
77958
78146
  for (const [key2, item] of Object.entries(step.args)) {
77959
- if (holdsOutputMarker(key2)) yield { where: `args.${key2}`, value: key2 };
77960
- const settable = key2 === "env" ? (v) => step.args[key2] = v : void 0;
78147
+ if (holdsReferenceMarker(key2)) yield { where: `args.${key2}`, value: key2 };
78148
+ const settable = key2 === "vars" ? (v) => step.args[key2] = v : void 0;
77961
78149
  yield* argFields(item, `args.${key2}`, settable, typeof item === "string");
77962
78150
  }
77963
78151
  }
@@ -78005,7 +78193,8 @@ function* outputReferenceFields(step) {
78005
78193
  where: "type.text",
78006
78194
  value: step.text,
78007
78195
  set: (v) => step.text = v,
78008
- required: "nonEmpty"
78196
+ required: "nonEmpty",
78197
+ secretOk: true
78009
78198
  };
78010
78199
  return;
78011
78200
  case "await":
@@ -78059,8 +78248,8 @@ function* outputReferenceFields(step) {
78059
78248
  case "run":
78060
78249
  yield { where: "run", value: step.flow };
78061
78250
  return;
78062
- // A script's env values resolve when the step runs, merged across the
78063
- // layers (`runFlowScriptStep`), and parse through `flowEnvProblem`.
78251
+ // A script's env values resolve when the step runs, over the run's vars
78252
+ // (`runFlowScriptStep`), and parse through `scriptEnvProblem`.
78064
78253
  case "script":
78065
78254
  case "idle":
78066
78255
  case "wait":
@@ -78073,54 +78262,91 @@ function* outputReferenceFields(step) {
78073
78262
  }
78074
78263
  }
78075
78264
  }
78076
- function holdsOutputReference(step) {
78265
+ function holdsReferenceMarker(text) {
78266
+ return holdsOutputMarker(text) || holdsVarMarker(text);
78267
+ }
78268
+ function holdsReference(step) {
78077
78269
  for (const field2 of outputReferenceFields(step)) {
78078
- if (holdsOutputMarker(field2.value)) return true;
78270
+ if (holdsReferenceMarker(field2.value)) return true;
78079
78271
  }
78080
78272
  if (step.kind === "script" && step.env) {
78081
- if (Object.values(step.env).some(holdsOutputMarker)) return true;
78273
+ if (Object.values(step.env).some(holdsReferenceMarker)) return true;
78082
78274
  }
78083
- return blockSteps(step)?.some(holdsOutputReference) ?? false;
78275
+ return blockSteps(step)?.some(holdsReference) ?? false;
78084
78276
  }
78085
- function resolveStepOutputs(step, output2) {
78086
- if (![...outputReferenceFields(step)].some((field2) => holdsOutputMarker(field2.value))) {
78277
+ function resolveStepReferences(step, output2, vars) {
78278
+ if (![...outputReferenceFields(step)].some((field2) => holdsReferenceMarker(field2.value))) {
78087
78279
  return step;
78088
78280
  }
78089
78281
  const copy = structuredClone(step);
78090
78282
  const fields = [...outputReferenceFields(copy)];
78091
78283
  for (const field2 of fields) {
78092
- if (!field2.set || !holdsOutputMarker(field2.value)) continue;
78093
- const value = field2.typed ? resolveOutputValue(field2.value, output2) : resolveOutputText(field2.value, output2);
78284
+ if (!field2.set || !holdsReferenceMarker(field2.value)) continue;
78285
+ let value = field2.value;
78286
+ if (holdsVarMarker(field2.value)) {
78287
+ const secret = field2.secretOk ? void 0 : secretVarNames(field2.value, vars)[0];
78288
+ if (secret !== void 0) {
78289
+ throw new VarReferenceError(
78290
+ `\`${field2.where}\` takes {{var:${secret}}}, whose value is a {{secret:...}} placeholder. A secret resolves only in text a step types, a tool's arguments and a script's env; here it would be compared as literal text that is never on screen`
78291
+ );
78292
+ }
78293
+ value = field2.typed ? resolveVarValue(field2.value, vars) : resolveVarText(field2.value, vars);
78294
+ }
78295
+ if (typeof value === "string" && holdsOutputMarker(value)) {
78296
+ value = field2.typed ? resolveOutputValue(value, output2) : resolveOutputText(value, output2);
78297
+ }
78094
78298
  if (field2.required === "visible" && !hasVisibleText(value)) {
78095
- throw new OutputReferenceError(
78299
+ throw new StepReferenceError(
78096
78300
  `\`${field2.where}\` resolved to ${JSON.stringify(value)}, which has no visible text and would match any element`
78097
78301
  );
78098
78302
  }
78099
78303
  if (field2.required === "nonEmpty" && value === "") {
78100
- throw new OutputReferenceError(`\`${field2.where}\` resolved to an empty value`);
78304
+ throw new StepReferenceError(`\`${field2.where}\` resolved to an empty value`);
78101
78305
  }
78102
78306
  field2.set(value);
78103
78307
  }
78104
78308
  return copy;
78105
78309
  }
78106
- function stepOutputReferenceProblem(step) {
78310
+ function stepReferenceProblem(step) {
78107
78311
  for (const field2 of outputReferenceFields(step)) {
78108
- if (!holdsOutputMarker(field2.value)) continue;
78312
+ if (!holdsReferenceMarker(field2.value)) continue;
78109
78313
  const locator = field2.altWhere ? `\`${field2.where}\` (spelled \`${field2.altWhere}\` if the target sits under \`on:\`)` : `\`${field2.where}\``;
78110
78314
  if (field2.set) {
78111
- const problem = outputReferenceProblem(field2.value);
78315
+ const problem = outputReferenceProblem(field2.value) ?? varReferenceProblem(field2.value);
78112
78316
  if (problem) return `${locator} ${problem}`;
78113
78317
  continue;
78114
78318
  }
78115
78319
  const rendered = field2.value.length > MAX_ENTRY_RENDER_CHARS ? `${field2.value.slice(0, MAX_ENTRY_RENDER_CHARS)}\u2026` : field2.value;
78116
- return `${locator} takes no {{output:...}} reference. Replace it with the literal value the step needs: ${JSON.stringify(rendered)}`;
78320
+ return `${locator} takes no {{output:...}} or {{var:...}} reference. Replace it with the literal value the step needs: ${JSON.stringify(rendered)}`;
78321
+ }
78322
+ return void 0;
78323
+ }
78324
+ function unsetVarProblem(steps, vars, label = "Step", trail = []) {
78325
+ for (const [i, step] of steps.entries()) {
78326
+ const at = [...trail, i + 1];
78327
+ const fields = [...outputReferenceFields(step)];
78328
+ if (step.kind === "script" && step.env) {
78329
+ for (const [name, value] of Object.entries(step.env)) {
78330
+ fields.push({ where: `script.env.${name}`, value });
78331
+ }
78332
+ }
78333
+ for (const field2 of fields) {
78334
+ for (const name of requiredVarNames(field2.value)) {
78335
+ if (!varIsSet(vars, name)) {
78336
+ return `${label} ${at.join(".")} (\`${step.kind}\`): \`${field2.where}\` takes {{var:${name}}}, but ${missingVarReason(name, vars)}. Set it in the e2e test's \`vars:\` or with \`--var ${name}=...\`, or give the reference a fallback: \`{{var:${name} ?? ...}}\``;
78337
+ }
78338
+ }
78339
+ }
78340
+ const inner = blockSteps(step);
78341
+ const problem = inner ? unsetVarProblem(inner, vars, label, at) : void 0;
78342
+ if (problem) return problem;
78117
78343
  }
78118
78344
  return void 0;
78119
78345
  }
78120
78346
  function assertOutputReferences(steps, trail = [], label = "Step") {
78121
78347
  steps.forEach((step, i) => {
78122
78348
  const at = [...trail, i + 1];
78123
- const problem = stepOutputReferenceProblem(step);
78349
+ const problem = stepReferenceProblem(step);
78124
78350
  if (problem) {
78125
78351
  throw new FailureError(`${label} ${at.join(".")} (\`${step.kind}\`): ${problem}`, {
78126
78352
  error_code: FAILURE_CODES.FLOW_ENTRY_UNRECOGNIZED,
@@ -78439,7 +78665,7 @@ function serializeFlow(flow) {
78439
78665
  const doc = {
78440
78666
  version: FLOW_FILE_VERSION,
78441
78667
  ...flow.requires ? { requires: requiresToYaml(flow.requires) } : {},
78442
- ...flow.env ? { env: flow.env } : {},
78668
+ ...flow.vars ? { vars: flow.vars } : {},
78443
78669
  steps: flow.steps.map(toYamlStep),
78444
78670
  ...flow.shutdown?.length ? { shutdown: flow.shutdown.map(toYamlStep) } : {}
78445
78671
  };
@@ -78524,7 +78750,7 @@ function parseFlowContent(content, stepErrors) {
78524
78750
  "version",
78525
78751
  "executionPrerequisite",
78526
78752
  "requires",
78527
- "env",
78753
+ "vars",
78528
78754
  "steps",
78529
78755
  "shutdown"
78530
78756
  ];
@@ -78552,10 +78778,10 @@ function parseFlowContent(content, stepErrors) {
78552
78778
  const steps = parseStepList(parsed2.steps, 0, sink);
78553
78779
  const shutdown2 = parseStepList(parsed2.shutdown ?? [], 0, sink, true);
78554
78780
  if (stepErrors?.length) return null;
78555
- if (parsed2.env !== void 0) {
78556
- const problem = flowEnvProblem(parsed2.env);
78781
+ if (parsed2.vars !== void 0) {
78782
+ const problem = flowVarsProblem(parsed2.vars);
78557
78783
  if (problem) {
78558
- throw new FailureError(`Invalid e2e test file: env ${problem}`, {
78784
+ throw new FailureError(`Invalid e2e test file: vars ${problem}`, {
78559
78785
  error_code: FAILURE_CODES.FLOW_FILE_INVALID,
78560
78786
  failure_stage: "flow_file_parse",
78561
78787
  failure_area: "tool_server",
@@ -78566,7 +78792,7 @@ function parseFlowContent(content, stepErrors) {
78566
78792
  const flow = {
78567
78793
  executionPrerequisite: parsed2.executionPrerequisite ?? "",
78568
78794
  ...parsed2.requires === void 0 ? {} : { requires: parseRequires(parsed2.requires) },
78569
- ...parsed2.env === void 0 ? {} : { env: parsed2.env },
78795
+ ...parsed2.vars === void 0 ? {} : { vars: parsed2.vars },
78570
78796
  steps,
78571
78797
  ...shutdown2.length > 0 ? { shutdown: shutdown2 } : {}
78572
78798
  };
@@ -78717,24 +78943,24 @@ async function countStepsOnDisk(filePath, block = "steps") {
78717
78943
  return void 0;
78718
78944
  }
78719
78945
  }
78720
- async function setRecordingEnv(session, changes) {
78946
+ async function setRecordingVars(session, changes) {
78721
78947
  const apply = (flow) => {
78722
- const env = { ...flow.env };
78948
+ const vars = { ...flow.vars };
78723
78949
  for (const [name, value] of Object.entries(changes)) {
78724
- if (value === null) delete env[name];
78725
- else env[name] = value;
78950
+ for (const existing of namesOfVar(vars, name)) delete vars[existing];
78951
+ if (value !== null) vars[name] = value;
78726
78952
  }
78727
- const next = { ...flow, env };
78728
- if (Object.keys(env).length === 0) delete next.env;
78953
+ const next = { ...flow, vars };
78954
+ if (Object.keys(vars).length === 0) delete next.vars;
78729
78955
  return next;
78730
78956
  };
78731
78957
  return withFlowLock(session.key, async () => {
78732
78958
  if (recordingSessionState(session) !== "live") {
78733
78959
  throw new FailureError(
78734
- `The recording of e2e test "${session.name}" ended while env was being set; nothing was changed.`,
78960
+ `The recording of e2e test "${session.name}" ended while vars were being set; nothing was changed.`,
78735
78961
  {
78736
78962
  error_code: FAILURE_CODES.FLOW_NO_ACTIVE_RECORDING,
78737
- failure_stage: "flow_set_env",
78963
+ failure_stage: "flow_set_vars",
78738
78964
  failure_area: "tool_server",
78739
78965
  error_kind: "validation"
78740
78966
  }
@@ -78747,13 +78973,13 @@ async function setRecordingEnv(session, changes) {
78747
78973
  const updated = serializeFlow(flow2);
78748
78974
  await writeFlowFile(session.filePath, updated);
78749
78975
  adoptRecordedFile(session, parseFlow(updated));
78750
- return { env: session.flow.env ?? {}, savedTo: session.filePath };
78976
+ return { vars: session.flow.vars ?? {}, savedTo: session.filePath };
78751
78977
  }
78752
78978
  const flow = apply(session.flow);
78753
78979
  validateFlow(flow);
78754
78980
  const savedTo = clientFileDirective(session.filePath, serializeFlow(flow));
78755
78981
  session.flow = flow;
78756
- return { env: flow.env ?? {}, savedTo };
78982
+ return { vars: flow.vars ?? {}, savedTo };
78757
78983
  });
78758
78984
  }
78759
78985
  async function appendStep(filePath, step, block) {
@@ -86936,9 +87162,9 @@ var Session = class _Session {
86936
87162
  return 0n;
86937
87163
  const streamId = frame2.id.value.value;
86938
87164
  const flow = this.#streamFlow.get(streamId);
86939
- const received = flow?.recvOffset ?? 0n;
86940
- const finalSize = frame2.finalSize > received ? frame2.finalSize : received;
86941
- const gap = finalSize - received;
87165
+ const received2 = flow?.recvOffset ?? 0n;
87166
+ const finalSize = frame2.finalSize > received2 ? frame2.finalSize : received2;
87167
+ const gap = finalSize - received2;
86942
87168
  const recvMax = flow?.recvMax ?? (frame2.id.dir === Dir.Bi ? this.#ourParams.initialMaxStreamDataBidiRemote : this.#ourParams.initialMaxStreamDataUni);
86943
87169
  if (finalSize > recvMax || this.#recvDataOffset + gap > this.#recvDataMax) {
86944
87170
  return null;
@@ -93866,14 +94092,14 @@ async function exchangeSetup(transport, version3, implementation) {
93866
94092
  const self2 = randomOrigin();
93867
94093
  cluster_exports.intoSetup(params, self2, version3);
93868
94094
  const setupMsg = new Setup({ parameters: params });
93869
- const [writer, received] = await Promise.all([
94095
+ const [writer, received2] = await Promise.all([
93870
94096
  sendSetup(transport, version3, setupMsg),
93871
94097
  receiveSetup(transport, version3)
93872
94098
  ]);
93873
94099
  return {
93874
- control: new Stream({ writer, reader: received.reader }),
93875
- solicit: received.solicit,
93876
- cluster: { self: self2, peer: received.cluster }
94100
+ control: new Stream({ writer, reader: received2.reader }),
94101
+ solicit: received2.solicit,
94102
+ cluster: { self: self2, peer: received2.cluster }
93877
94103
  };
93878
94104
  }
93879
94105
  async function sendSetup(transport, version3, setupMsg) {
@@ -125408,6 +125634,21 @@ function isLocalConnection(socket) {
125408
125634
  return LOOPBACK_ADDRESSES.has(remote) || remote === socket.localAddress;
125409
125635
  }
125410
125636
 
125637
+ // ../tool-server/src/utils/received-secrets.ts
125638
+ var MAX_VALUES2 = 256;
125639
+ var received = /* @__PURE__ */ new Map();
125640
+ function noteReceivedSecrets(secrets) {
125641
+ for (const [name, value] of secrets) {
125642
+ if (value.length === 0) continue;
125643
+ received.delete(value);
125644
+ received.set(value, name);
125645
+ if (received.size > MAX_VALUES2) received.delete(received.keys().next().value);
125646
+ }
125647
+ }
125648
+ function receivedSecrets() {
125649
+ return [...received].reverse().map(([value, name]) => ({ name, value }));
125650
+ }
125651
+
125411
125652
  // ../tool-server/src/http.ts
125412
125653
  var AUTO_SUPPRESS_MS = 30 * 60 * 1e3;
125413
125654
  var AUTH_TOKEN_ENV = "ARGENT_AUTH_TOKEN";
@@ -125771,12 +126012,12 @@ function createHttpApp(registry2, options) {
125771
126012
  const id = (0, import_node_crypto14.randomUUID)();
125772
126013
  const tarPath = (0, import_node_path15.join)((0, import_node_os9.tmpdir)(), `argent-upload-${id}.tar.gz`);
125773
126014
  const ws = (0, import_node_fs13.createWriteStream)(tarPath);
125774
- let received = 0;
126015
+ let received2 = 0;
125775
126016
  let released = false;
125776
126017
  const releaseInFlight = () => {
125777
126018
  if (released) return;
125778
126019
  released = true;
125779
- inFlightUploadBytes -= received;
126020
+ inFlightUploadBytes -= received2;
125780
126021
  };
125781
126022
  const abort = (status, message) => {
125782
126023
  releaseInFlight();
@@ -125788,10 +126029,10 @@ function createHttpApp(registry2, options) {
125788
126029
  const digest = (0, import_node_crypto14.createHash)("sha256");
125789
126030
  req.on("data", (chunk) => {
125790
126031
  if (released) return;
125791
- received += chunk.length;
126032
+ received2 += chunk.length;
125792
126033
  inFlightUploadBytes += chunk.length;
125793
126034
  digest.update(chunk);
125794
- if (received > maxUploadBytes) {
126035
+ if (received2 > maxUploadBytes) {
125795
126036
  abort(
125796
126037
  413,
125797
126038
  `Upload exceeds the ${(0, import_bytes2.default)(maxUploadBytes, { unitSeparator: " " })} limit.`
@@ -125818,7 +126059,7 @@ function createHttpApp(registry2, options) {
125818
126059
  tarPath,
125819
126060
  sha256: digest.digest("hex"),
125820
126061
  expireAt: Date.now() + UPLOAD_TTL_MS,
125821
- bytes: received
126062
+ bytes: received2
125822
126063
  });
125823
126064
  res.json({ uploadId: id });
125824
126065
  });
@@ -125906,14 +126147,23 @@ function createHttpApp(registry2, options) {
125906
126147
  let clientSecrets;
125907
126148
  const clientSecretsHeader = firstHeader(req.headers[CLIENT_SECRETS_HEADER]);
125908
126149
  if (clientSecretsHeader !== void 0) {
126150
+ const sourcesHeader = firstHeader(req.headers[CLIENT_SECRET_SOURCES_HEADER]);
126151
+ let header = CLIENT_SECRETS_HEADER;
125909
126152
  try {
125910
- clientSecrets = decodeClientSecrets(clientSecretsHeader);
126153
+ const values = decodeClientSecrets(clientSecretsHeader);
126154
+ header = CLIENT_SECRET_SOURCES_HEADER;
126155
+ const sources = sourcesHeader === void 0 ? void 0 : decodeSecretSourceSummaries(sourcesHeader);
126156
+ clientSecrets = Object.assign(values, {
126157
+ exclusive: firstHeader(req.headers[LINKED_CALL_HEADER]) !== "1",
126158
+ ...sources ? { sources } : {}
126159
+ });
125911
126160
  } catch (err) {
125912
126161
  res.status(400).json({
125913
- error: `The ${CLIENT_SECRETS_HEADER} header ${err instanceof Error ? err.message : String(err)}.`
126162
+ error: `The ${header} header ${err instanceof Error ? err.message : String(err)}.`
125914
126163
  });
125915
126164
  return;
125916
126165
  }
126166
+ noteReceivedSecrets(clientSecrets);
125917
126167
  }
125918
126168
  let body;
125919
126169
  try {
@@ -129057,7 +129307,7 @@ function networkSecrets(ctx) {
129057
129307
  for (const source of secretSources()) {
129058
129308
  for (const [name, value] of source.values) secrets.push({ name, value });
129059
129309
  }
129060
- return [...secrets, ...typedSecrets()];
129310
+ return [...secrets, ...receivedSecrets(), ...typedSecrets()];
129061
129311
  }
129062
129312
  function networkRedactorOf(secrets) {
129063
129313
  const byValue = /* @__PURE__ */ new Map();
@@ -141173,7 +141423,7 @@ var capability18 = {
141173
141423
  var zodSchema27 = external_exports.object({
141174
141424
  udid: external_exports.string().describe("Target device id from `list-devices`."),
141175
141425
  text: external_exports.string().optional().describe(
141176
- "Text to type. Cannot be combined with `key` (use two steps in `run-sequence` to type then press enter). Supports `{{secret:<NAME>}}` placeholders resolved server-side from `ARGENT_SECRET_<NAME>` / `.argent/secrets.env` (auto-screenshot is skipped; combine with submit in one `run-sequence` to keep the skip; never ask the user for plaintext)."
141426
+ "Text to type. Cannot be combined with `key`. Use `{{secret:NAME}}` for credentials. Ask the user to configure missing secrets without sharing their values. Secret placeholders suppress the automatic screenshot for the call. Use one `run-sequence` to type a secret and press Enter with the same protection."
141177
141427
  ),
141178
141428
  key: external_exports.string().optional().describe(
141179
141429
  "Named key. Cannot be combined with `text` or `clear` (use two steps in `run-sequence`). Values: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Not supported on Apple TV / Android TV (use `tv-remote`). Physical iOS: enter/backspace only.<flag:harmonyos> HarmonyOS: enter, backspace, space, arrow-left/right.</flag:harmonyos><flag:macos-apps> Mac app: also delete (forward delete), home, end, page-up/down, and modifier shortcuts (e.g. command+a).</flag:macos-apps>"
@@ -141326,7 +141576,7 @@ var pasteZodSchema = external_exports.object({
141326
141576
  "Device id from `list-devices` (iOS simulator UDID, Android emulator serial<flag:macos-apps>, or Mac app id</flag:macos-apps>)."
141327
141577
  ),
141328
141578
  text: external_exports.string().min(1).describe(
141329
- "Text to paste. Supports `{{secret:<NAME>}}` placeholders resolved server-side (never ask the user for plaintext)."
141579
+ "Text to paste. Use `{{secret:NAME}}` for credentials. Ask the user to configure missing secrets without sharing their values."
141330
141580
  )
141331
141581
  });
141332
141582
 
@@ -165273,6 +165523,12 @@ function setEnvName(env, name, value) {
165273
165523
  }
165274
165524
  env[name] = value;
165275
165525
  }
165526
+ function isHostEnvName(name) {
165527
+ const caseInsensitive = process.platform === "win32";
165528
+ const key2 = caseInsensitive ? name.toLowerCase() : name;
165529
+ const matches2 = (candidate) => (caseInsensitive ? candidate.toLowerCase() : candidate) === key2;
165530
+ return ALLOWED_ENV_NAMES.some(matches2) || ALLOWED_ENV_PREFIXES.some((prefix) => key2.startsWith(prefix)) || RESERVED_ENV_NAMES.some(matches2) || reservedNpmConfigName(name) !== void 0;
165531
+ }
165276
165532
  function buildChildEnv(overrides) {
165277
165533
  const caseInsensitive = process.platform === "win32";
165278
165534
  const allowed = new Set(
@@ -165605,6 +165861,7 @@ function describeDuration(ms3) {
165605
165861
  }
165606
165862
 
165607
165863
  // ../tool-server/src/tools/flows/flow-script-step.ts
165864
+ init_src();
165608
165865
  init_capability();
165609
165866
  var vegaKindBySerial = /* @__PURE__ */ new Map();
165610
165867
  async function scriptDeviceKind(device) {
@@ -165644,13 +165901,19 @@ function resolveScriptEnv(env, projectRoot, clientSecrets) {
165644
165901
  }
165645
165902
  return { env: resolved, secrets };
165646
165903
  }
165647
- function outputsInEnv(env, output2) {
165904
+ function exportedVars(vars) {
165905
+ const placeholder = new RegExp(SECRET_PLACEHOLDER_RE.source);
165906
+ return Object.fromEntries(
165907
+ Object.entries(vars).filter(([name, value]) => !placeholder.test(value) && !isHostEnvName(name))
165908
+ );
165909
+ }
165910
+ function referencesInEnv(env, vars, output2) {
165648
165911
  const resolved = {};
165649
165912
  for (const [name, value] of Object.entries(env)) {
165650
165913
  try {
165651
- resolved[name] = resolveOutputText(value, output2);
165914
+ resolved[name] = resolveOutputText(resolveVarText(value, vars), output2);
165652
165915
  } catch (err) {
165653
- if (err instanceof OutputReferenceError) {
165916
+ if (err instanceof StepReferenceError) {
165654
165917
  throw new InvalidToolInputError(`The value of ${name}: ${err.message}.`);
165655
165918
  }
165656
165919
  throw err;
@@ -165697,8 +165960,10 @@ async function runFlowScriptStep(request4) {
165697
165960
  }
165698
165961
  let resolved;
165699
165962
  try {
165700
- if (request4.env) {
165701
- const env2 = outputsInEnv(request4.env, request4.output ?? {});
165963
+ const vars = request4.vars ?? {};
165964
+ const stepEnv = step.env ? referencesInEnv(step.env, vars, request4.output ?? {}) : void 0;
165965
+ const env2 = mergeScriptEnv(exportedVars(vars), stepEnv);
165966
+ if (Object.keys(env2).length > 0) {
165702
165967
  resolved = resolveScriptEnv(env2, request4.projectRoot, request4.clientSecrets);
165703
165968
  }
165704
165969
  } catch (err) {
@@ -165916,11 +166181,13 @@ var zodSchema70 = external_exports.object({
165916
166181
  ]).optional(),
165917
166182
  runtimeKind: external_exports.enum(RUNTIME_KINDS).optional()
165918
166183
  }).optional().describe("Supported target filter (`platform` and/or `runtimeKind`, ANDed). Omit for any."),
165919
- env: envRecordSchema(external_exports.string()).optional().describe("Top-level script env defaults. Supports `{{secret:NAME}}`.")
166184
+ vars: nameRecordSchema(external_exports.string(), "vars").optional().describe(
166185
+ "Test inputs to save under `vars:` and read with `{{var:NAME}}`. Use `{{secret:NAME}}` for credentials."
166186
+ )
165920
166187
  });
165921
166188
  var flowStartRecordingTool = {
165922
166189
  id: "e2e-start-recording",
165923
- description: `Start recording a new e2e test, resetting \`.argent/e2e/<name>.yaml\`. Starting over an existing test replaces the whole file, including its \`requires:\` and \`env:\` blocks (pass \`requires\` and \`env\` to keep them), and runs pending fragment cleanup on restart.
166190
+ description: `Start recording an e2e test in \`.argent/e2e/<name>.yaml\`. Starting over replaces the entire file. Pass \`requires\` and \`vars\` again to retain them. Restart runs any pending fragment cleanup.
165924
166191
  Use when capturing a reusable sequence of device actions for replay; load the \`argent-create-e2e\` skill first. Not for Apple TV or Android TV.
165925
166192
  Record live steps with \`e2e-add-step\` (start standalone tests with \`restart-app\`; use \`executionPrerequisite\` for fragments), \`e2e-add-echo\`, and \`e2e-add-script\`, then call \`e2e-finish-recording\`. Edit the YAML only after finishing.
165926
166193
  Returns \`{ message, e2eTestFile, savedTo, restarted?, discardedSteps?, fragmentShutdown? }\`. Fails if the target file or directory cannot be written.`,
@@ -165942,14 +166209,14 @@ Returns \`{ message, e2eTestFile, savedTo, restarted?, discardedSteps?, fragment
165942
166209
  longRunning: true,
165943
166210
  services: () => ({}),
165944
166211
  async execute(_services, params, ctx) {
165945
- if (params.env) {
165946
- const problem = flowEnvProblem(params.env);
165947
- if (problem) throw new InvalidToolInputError(`env ${problem}`);
166212
+ if (params.vars) {
166213
+ const problem = flowVarsProblem(params.vars);
166214
+ if (problem) throw new InvalidToolInputError(`vars ${problem}`);
165948
166215
  }
165949
166216
  const flow = {
165950
166217
  executionPrerequisite: params.executionPrerequisite ?? "",
165951
166218
  ...params.requires ? { requires: parseRequires(params.requires) } : {},
165952
- ...params.env && Object.keys(params.env).length > 0 ? { env: params.env } : {},
166219
+ ...params.vars && Object.keys(params.vars).length > 0 ? { vars: params.vars } : {},
165953
166220
  steps: []
165954
166221
  };
165955
166222
  validateFlow(flow);
@@ -165957,7 +166224,7 @@ Returns \`{ message, e2eTestFile, savedTo, restarted?, discardedSteps?, fragment
165957
166224
  const probe4 = ctx?.fileInputs?.project_root;
165958
166225
  const persist2 = ctx?.linked || probe4 && !probe4.presentOnHost ? "client" : "host";
165959
166226
  const filePath = persist2 === "client" && ctx?.legacyE2eDir ? getLegacyFlowPath(params.project_root, params.name) : getFlowPath(params.project_root, params.name);
165960
- if (params.env) resolveScriptEnv(params.env, params.project_root, ctx?.clientSecrets);
166227
+ if (params.vars) resolveScriptEnv(params.vars, params.project_root, ctx?.clientSecrets);
165961
166228
  const { savedTo, replaced, discardedSteps } = await withFlowFileLock(
165962
166229
  params.project_root,
165963
166230
  params.name,
@@ -169088,7 +169355,7 @@ var DIRECTIVE_COMMAND_HINTS = {
169088
169355
  var NESTED_RECORDER_TOOLS = {
169089
169356
  "e2e-add-echo": "`e2e-add-echo` records a step itself, so it must be called DIRECTLY, not through e2e-add-step \u2014 nesting it would write the echo AND a `tool: e2e-add-echo` step that fails on every replay.",
169090
169357
  "e2e-add-script": "`e2e-add-script` records its own step. Call it directly, not through e2e-add-step.",
169091
- "e2e-set-env": "`e2e-set-env` edits the e2e test's top-level env:, so it is not a step. Call it directly.",
169358
+ "e2e-set-vars": "`e2e-set-vars` edits the e2e test's top-level vars:, so it is not a step. Call it directly.",
169092
169359
  "e2e-add-step": "e2e-add-step cannot record itself. Pass the MCP tool you want to execute as `command`.",
169093
169360
  "e2e-start-recording": "`e2e-start-recording` truncates the e2e test it names. Recording it as a step would erase this e2e test at replay; call it directly when you want to start a recording.",
169094
169361
  "e2e-finish-recording": "`e2e-finish-recording` ends the recording, so it cannot also be a step in it. Call it directly when the walkthrough is complete."
@@ -169219,6 +169486,11 @@ async function captureRunTarget(session, args, project) {
169219
169486
  if (name === void 0) {
169220
169487
  return { warning: "e2e-execute call had no e2e test name; kept the raw step" };
169221
169488
  }
169489
+ if (args.vars !== void 0) {
169490
+ return {
169491
+ warning: "kept the raw e2e-execute step \u2014 a `run:` step gets the vars of the e2e test that runs it, so the call's own `vars` would be lost at replay"
169492
+ };
169493
+ }
169222
169494
  try {
169223
169495
  assertSafeFlowName(name);
169224
169496
  const projectRoot = args.project_root;
@@ -169364,15 +169636,19 @@ Returns \`{ message, toolResult, stepCount, recorded?, savedTo }\`. Fails if no
169364
169636
  await rewriteSiblingFlowPath(session, args, project, linked);
169365
169637
  }
169366
169638
  const authored = { kind: "tool", name: command, args };
169367
- const referencedArgs = holdsOutputReference(authored) ? args : void 0;
169639
+ const referencedArgs = holdsReference(authored) ? args : void 0;
169368
169640
  if (referencedArgs) {
169369
- const problem = stepOutputReferenceProblem(authored);
169641
+ const problem = stepReferenceProblem(authored);
169370
169642
  if (problem)
169371
169643
  throw new InvalidToolInputError(`Nothing ran and no step was recorded: ${problem}`);
169372
169644
  try {
169373
- args = resolveStepOutputs(authored, recordingOutput(session, block)).args;
169645
+ args = resolveStepReferences(
169646
+ authored,
169647
+ recordingOutput(session, block),
169648
+ session.flow.vars ?? {}
169649
+ ).args;
169374
169650
  } catch (err) {
169375
- if (!(err instanceof OutputReferenceError)) throw err;
169651
+ if (!(err instanceof StepReferenceError)) throw err;
169376
169652
  throw new InvalidToolInputError(`Nothing ran and no step was recorded: ${err.message}`);
169377
169653
  }
169378
169654
  }
@@ -169424,7 +169700,8 @@ Returns \`{ message, toolResult, stepCount, recorded?, savedTo }\`. Fails if no
169424
169700
  }
169425
169701
  prepared = await prepareToolStepInputs(registry2, project, params.command, args);
169426
169702
  const nestedFromClient = command === RUN_TARGET_COMMAND && prepared.fileInputs !== void 0;
169427
- toolResult = await invokeSubTool(registry2, ctx, params.command, prepared.args, {
169703
+ const invokeArgs = runTarget?.flow && session.flow.vars ? { ...prepared.args, vars: session.flow.vars } : prepared.args;
169704
+ toolResult = await invokeSubTool(registry2, ctx, params.command, invokeArgs, {
169428
169705
  ...prepared.fileInputs ? { fileInputs: prepared.fileInputs } : {},
169429
169706
  // A nested run whose flow came from the client gets a run stack even
169430
169707
  // with no enclosing run, which marks it as nested: its refusals name
@@ -169664,43 +169941,42 @@ Returns { message, stepCount, savedTo }. Fails if that e2e test has no recording
169664
169941
  }
169665
169942
  };
169666
169943
 
169667
- // ../tool-server/src/tools/flows/flow-set-env.ts
169944
+ // ../tool-server/src/tools/flows/flow-set-vars.ts
169668
169945
  init_zod();
169669
169946
  init_capability();
169670
169947
  var zodSchema73 = external_exports.object({
169671
169948
  name: external_exports.string().describe("Test name passed to e2e-start-recording."),
169672
169949
  project_root: external_exports.string().describe("Absolute project root passed to e2e-start-recording."),
169673
- env: envRecordSchema(external_exports.string().nullable()).describe(
169674
- "Variable names to update. A null value removes that name. Omitted names keep their values. Use {{secret:NAME}} for credentials."
169950
+ vars: nameRecordSchema(external_exports.string().nullable(), "vars").describe(
169951
+ "Set values by name. Use null to remove a name and `{{secret:NAME}}` for credentials."
169675
169952
  )
169676
169953
  });
169677
- var flowSetEnvTool = {
169678
- id: "e2e-set-env",
169679
- description: `Set or remove script environment defaults in an active e2e recording. Use when several script steps need a shared value. Call this tool directly before e2e-add-script.
169680
- Returns the updated env map with secret placeholders intact, plus savedTo. If the tool rejects an invalid value or missing secret, correct the input or define the secret and retry.`,
169954
+ var flowSetVarsTool = {
169955
+ id: "e2e-set-vars",
169956
+ description: `Update the test inputs in an active e2e recording. Call directly before recording steps that use \`{{var:NAME}}\`. Saves the defaults under \`vars:\` and returns them with secret placeholders intact.`,
169681
169957
  zodSchema: zodSchema73,
169682
169958
  fileInputs: PROJECT_ROOT_INPUT,
169683
169959
  interaction: {
169684
- startedMsg: ({ params }) => `Setting env for e2e test ${params.name}`,
169685
- completedMsg: ({ params }) => `Set env for e2e test ${params.name}`,
169686
- failedMsg: ({ params, failureSignal: failureSignal2 }) => `Failed to set env for e2e test ${params.name}: ${failureSignal2.error_code}`
169960
+ startedMsg: ({ params }) => `Setting vars for e2e test ${params.name}`,
169961
+ completedMsg: ({ params }) => `Set vars for e2e test ${params.name}`,
169962
+ failedMsg: ({ params, failureSignal: failureSignal2 }) => `Failed to set vars for e2e test ${params.name}: ${failureSignal2.error_code}`
169687
169963
  },
169688
169964
  services: () => ({}),
169689
169965
  async execute(_services, params, ctx) {
169690
169966
  const session = await requireRecordingSession(params.project_root, params.name);
169691
169967
  const set2 = {};
169692
- for (const [name, value] of Object.entries(params.env)) {
169968
+ for (const [name, value] of Object.entries(params.vars)) {
169693
169969
  if (value !== null) set2[name] = value;
169694
169970
  }
169695
- const problem = flowEnvProblem(
169696
- Object.fromEntries(Object.entries(params.env).map(([name, value]) => [name, value ?? ""]))
169971
+ const problem = flowVarsProblem(
169972
+ Object.fromEntries(Object.entries(params.vars).map(([name, value]) => [name, value ?? ""]))
169697
169973
  );
169698
- if (problem) throw new InvalidToolInputError(`env ${problem}`);
169974
+ if (problem) throw new InvalidToolInputError(`vars ${problem}`);
169699
169975
  resolveScriptEnv(set2, params.project_root, ctx?.clientSecrets);
169700
- const { env, savedTo } = await setRecordingEnv(session, params.env);
169976
+ const { vars, savedTo } = await setRecordingVars(session, params.vars);
169701
169977
  return {
169702
- message: `Updated env of "${params.name}" e2e test.`,
169703
- env,
169978
+ message: `Updated vars of "${params.name}" e2e test.`,
169979
+ vars,
169704
169980
  savedTo
169705
169981
  };
169706
169982
  }
@@ -169722,9 +169998,9 @@ async function recordedStepCount(session, block) {
169722
169998
  note: `Could not verify stepCount from ${session.filePath}.`
169723
169999
  };
169724
170000
  }
169725
- async function recordedFileEnv(session) {
170001
+ async function recordedFileVars(session) {
169726
170002
  try {
169727
- return parseFlow(await fs83.readFile(session.filePath, "utf8")).env;
170003
+ return parseFlow(await fs83.readFile(session.filePath, "utf8")).vars;
169728
170004
  } catch (err) {
169729
170005
  throw wrapFailure(
169730
170006
  err,
@@ -169767,7 +170043,9 @@ var zodSchema74 = external_exports.object({
169767
170043
  project_root: external_exports.string().describe("Project root from `e2e-start-recording`."),
169768
170044
  path: external_exports.string().describe("Script path (.mjs/.mts/.js/.ts) relative to the test YAML."),
169769
170045
  timeout: external_exports.number().optional().describe("Timeout in ms (default 30000, min 100)."),
169770
- env: envRecordSchema(external_exports.string()).optional().describe("Env overrides (supports `{{secret:NAME}}` and `{{output:PATH}}`)."),
170046
+ env: nameRecordSchema(external_exports.string(), "env").optional().describe(
170047
+ "Environment values for this script. Override same-name vars. Supports `{{secret:NAME}}`, `{{var:NAME}}`, and `{{output:PATH}}`."
170048
+ ),
169771
170049
  shutdown: external_exports.boolean().optional().describe(
169772
170050
  "Save the script in the shutdown list. Pending fragment cleanup runs before the script. The script's output reaches only later shutdown steps. stepCount counts shutdown entries."
169773
170051
  ),
@@ -169819,7 +170097,7 @@ Returns \`{ status, reason?, outputJson?, stepCount, recorded? }\`. A failed scr
169819
170097
  ...params.env !== void 0 ? { env: params.env } : {}
169820
170098
  }
169821
170099
  };
169822
- const envProblem = params.env === void 0 ? void 0 : flowEnvProblem(params.env, { references: true });
170100
+ const envProblem = params.env === void 0 ? void 0 : scriptEnvProblem(params.env);
169823
170101
  if (envProblem) throw new InvalidToolInputError(`env ${envProblem}`);
169824
170102
  const step = {
169825
170103
  kind: "script",
@@ -169828,14 +170106,14 @@ Returns \`{ status, reason?, outputJson?, stepCount, recorded? }\`. A failed scr
169828
170106
  ...params.env && Object.keys(params.env).length > 0 ? { env: params.env } : {}
169829
170107
  };
169830
170108
  const flowDir = nodePath.dirname(await canonicalFlowPath(session.filePath));
169831
- const env = mergeScriptEnv(await recordedFileEnv(session), step.env);
170109
+ const vars = await recordedFileVars(session);
169832
170110
  const ranAgainst = recordingOutput(session, block);
169833
170111
  const { outcome, result, ran } = await runFlowScriptStep({
169834
170112
  flowDir,
169835
170113
  step,
169836
170114
  projectRoot: params.project_root,
169837
170115
  ...params.udid !== void 0 ? { device: resolveDevice(params.udid) } : {},
169838
- env,
170116
+ ...vars ? { vars } : {},
169839
170117
  output: ranAgainst,
169840
170118
  ...ctx?.clientSecrets ? { clientSecrets: ctx.clientSecrets } : {},
169841
170119
  ...ctx?.signal ? { signal: ctx.signal } : {}
@@ -170293,7 +170571,12 @@ function toolArgsRefusal(tool, def, stepArgs) {
170293
170571
  args = bindDeviceArgsTo(def.inputSchema, CHECK_DEVICE_ID, args);
170294
170572
  const parsed2 = def.zodSchema?.safeParse(args);
170295
170573
  if (!parsed2 || parsed2.success) return void 0;
170296
- const issues = parsed2.error.issues.filter((issue2) => !BOUND_KEYS.includes(String(issue2.path[0])));
170574
+ const issues = parsed2.error.issues.filter((issue2) => {
170575
+ const key2 = String(issue2.path[0]);
170576
+ if (BOUND_KEYS.includes(key2)) return false;
170577
+ const value = args[key2];
170578
+ return !holdsReferenceMarker(typeof value === "string" ? value : JSON.stringify(value) ?? "");
170579
+ });
170297
170580
  if (issues.length === 0) return void 0;
170298
170581
  return `Invalid params for tool "${toolId}": ${describeParamIssues({ issues }, args)}`;
170299
170582
  }
@@ -173488,11 +173771,13 @@ var zodSchema76 = external_exports.object({
173488
173771
  prerequisiteAcknowledged: external_exports.boolean().optional().describe(
173489
173772
  "Set true to confirm a fragment's `executionPrerequisite` is met; otherwise returns the prerequisite text without running. Not a dry run: a test with no prerequisite runs in full (read `executionPrerequisite` in the YAML to inspect without running)."
173490
173773
  ),
173491
- env: external_exports.record(external_exports.string(), external_exports.string()).optional().describe("Script env overrides (also for `run:` fragments). Supports `{{secret:NAME}}`.")
173774
+ vars: external_exports.record(external_exports.string(), external_exports.string()).optional().describe(
173775
+ "Overrides for the test's `vars:` defaults, including `run:` fragments. Values can contain `{{secret:NAME}}` placeholders."
173776
+ )
173492
173777
  }).superRefine((params, ctx) => {
173493
- const envProblem = params.env === void 0 ? void 0 : flowEnvProblem(params.env);
173494
- if (envProblem) {
173495
- ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: envProblem, path: ["env"] });
173778
+ const varsProblem = params.vars === void 0 ? void 0 : flowVarsProblem(params.vars);
173779
+ if (varsProblem) {
173780
+ ctx.addIssue({ code: external_exports.ZodIssueCode.custom, message: varsProblem, path: ["vars"] });
173496
173781
  }
173497
173782
  if (params.name === void 0 === (params.e2e_test_path === void 0)) {
173498
173783
  ctx.addIssue({
@@ -173548,8 +173833,20 @@ Over a link (\`argent link\` / \`ARGENT_TOOLS_URL\`), the client uploads the tes
173548
173833
  if (retiredArg) throw preflightFailure(retiredArg);
173549
173834
  const unrunnableScript = await unrunnableScriptRefusal(flow, flowName);
173550
173835
  if (unrunnableScript) throw preflightFailure(unrunnableScript);
173551
- const runEnv = mergeScriptEnv(params.env);
173552
- resolveScriptEnv(runEnv, params.project_root, ctx?.clientSecrets);
173836
+ const runVars = mergeScriptEnv(params.vars);
173837
+ resolveScriptEnv(runVars, params.project_root, ctx?.clientSecrets);
173838
+ const unsetVar = unsetVarProblem(
173839
+ [...flow.steps, ...flow.shutdown ?? []],
173840
+ mergeScriptEnv(flow.vars, runVars)
173841
+ );
173842
+ if (unsetVar) {
173843
+ throw new FailureError(`E2E test "${flowName}" was not run. ${unsetVar}`, {
173844
+ error_code: FAILURE_CODES.FLOW_FILE_INVALID,
173845
+ failure_stage: "flow_run_validate",
173846
+ failure_area: "tool_server",
173847
+ error_kind: "validation"
173848
+ });
173849
+ }
173553
173850
  const enclosing = ctx?.flowStack ?? [];
173554
173851
  const nesting = nestedRunRefusal(enclosing, rootEntry);
173555
173852
  if (nesting !== void 0) throw nestingFailure(nesting.refusal);
@@ -173638,7 +173935,7 @@ Over a link (\`argent link\` / \`ARGENT_TOOLS_URL\`), the client uploads the tes
173638
173935
  snapshotApps: /* @__PURE__ */ new Map(),
173639
173936
  secret: ctx?.flowSecret ?? {},
173640
173937
  projectRoot: params.project_root,
173641
- runEnv,
173938
+ runVars,
173642
173939
  output: ctx?.flowOutput ?? { doc: {} },
173643
173940
  scriptLogBudget: createScriptLogBudget(),
173644
173941
  networkCaptureNoted: /* @__PURE__ */ new Map(),
@@ -173651,7 +173948,7 @@ Over a link (\`argent link\` / \`ARGENT_TOOLS_URL\`), the client uploads the tes
173651
173948
  try {
173652
173949
  const rootScope = {
173653
173950
  runStack: seed,
173654
- fileEnv: flow.env ?? {},
173951
+ fileVars: flow.vars ?? {},
173655
173952
  rootDisplay: rootEntry.display,
173656
173953
  depth: 0,
173657
173954
  legacyPoints: flowFormatVersion(flow) < 2
@@ -173915,6 +174212,9 @@ function pushReport(state3, report2) {
173915
174212
  state3.reports.push(report2);
173916
174213
  state3.onStepReport?.(report2);
173917
174214
  }
174215
+ function scopeVars(state3, scope) {
174216
+ return mergeScriptEnv(scope.fileVars, state3.runVars);
174217
+ }
173918
174218
  function scopeFlow(scope) {
173919
174219
  return scope.runStack[scope.runStack.length - 1].display;
173920
174220
  }
@@ -174011,14 +174311,14 @@ async function execSteps(state3, steps, scope) {
174011
174311
  startedAt -= state3.hoistedBootMs;
174012
174312
  state3.hoistedBootMs = void 0;
174013
174313
  }
174014
- if (step.kind !== "script" && JSON.stringify(step).includes(SECRET_PLACEHOLDER_MARKER)) {
174015
- state3.secret.typed = true;
174016
- }
174314
+ const typesSecret = (s) => s.kind !== "script" && JSON.stringify(s).includes(SECRET_PLACEHOLDER_MARKER);
174315
+ if (typesSecret(step)) state3.secret.typed = true;
174017
174316
  let leaf;
174018
174317
  try {
174019
- leaf = resolveStepOutputs(step, state3.output.doc);
174318
+ leaf = resolveStepReferences(step, state3.output.doc, scopeVars(state3, scope));
174319
+ if (typesSecret(leaf)) state3.secret.typed = true;
174020
174320
  } catch (err) {
174021
- if (!(err instanceof OutputReferenceError)) throw err;
174321
+ if (!(err instanceof StepReferenceError)) throw err;
174022
174322
  pushReport(state3, {
174023
174323
  index,
174024
174324
  kind: step.kind,
@@ -174148,9 +174448,9 @@ async function execWhenStep(state3, authored, scope) {
174148
174448
  const inner = childScope(scope);
174149
174449
  let step;
174150
174450
  try {
174151
- step = resolveStepOutputs(authored, state3.output.doc);
174451
+ step = resolveStepReferences(authored, state3.output.doc, scopeVars(state3, scope));
174152
174452
  } catch (err) {
174153
- if (!(err instanceof OutputReferenceError)) throw err;
174453
+ if (!(err instanceof StepReferenceError)) throw err;
174154
174454
  pushReport(state3, { ...unresolved, status: "error", reason: escapeInline(err.message) });
174155
174455
  state3.stopped = true;
174156
174456
  reportBlockSkipped(state3, authored.steps, inner, "when guard errored");
@@ -174241,6 +174541,13 @@ async function execRunStep(state3, step, scope) {
174241
174541
  return fail(errMsg6(err));
174242
174542
  }
174243
174543
  }
174544
+ const fileVars = mergeScriptEnv(fragment.vars, scope.fileVars);
174545
+ const unsetVar = unsetVarProblem(
174546
+ [...fragment.steps, ...fragment.shutdown ?? []],
174547
+ mergeScriptEnv(fileVars, state3.runVars),
174548
+ `Fragment "${shown}" step`
174549
+ );
174550
+ if (unsetVar) return fail(unsetVar);
174244
174551
  pushReport(state3, {
174245
174552
  index,
174246
174553
  kind: "run",
@@ -174252,7 +174559,7 @@ async function execRunStep(state3, step, scope) {
174252
174559
  });
174253
174560
  const fragmentScope = childScope(scope, {
174254
174561
  runStack: [...scope.runStack, { canonical, display }],
174255
- fileEnv: mergeScriptEnv(fragment.env, scope.fileEnv),
174562
+ fileVars,
174256
174563
  legacyPoints: flowFormatVersion(fragment) < 2
174257
174564
  });
174258
174565
  if (fragment.shutdown) {
@@ -174264,13 +174571,12 @@ function oneLineReason(text) {
174264
174571
  return text.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t");
174265
174572
  }
174266
174573
  async function runScriptStep(state3, step, scope) {
174267
- const env = mergeScriptEnv(scope.fileEnv, step.env, state3.runEnv);
174268
174574
  const { outcome, result } = await runFlowScriptStep({
174269
174575
  flowDir: scopeFlowDir(scope),
174270
174576
  step,
174271
174577
  projectRoot: state3.projectRoot,
174272
174578
  device: state3.device,
174273
- env,
174579
+ vars: scopeVars(state3, scope),
174274
174580
  output: state3.output.doc,
174275
174581
  ...state3.ctx?.clientSecrets ? { clientSecrets: state3.ctx.clientSecrets } : {},
174276
174582
  logBudget: state3.scriptLogBudget,
@@ -176514,7 +176820,7 @@ function createRegistry() {
176514
176820
  registry2.registerTool(flowStartRecordingTool);
176515
176821
  registry2.registerTool(createFlowAddStepTool(registry2));
176516
176822
  registry2.registerTool(flowInsertEchoTool);
176517
- registry2.registerTool(flowSetEnvTool);
176823
+ registry2.registerTool(flowSetVarsTool);
176518
176824
  registry2.registerTool(flowAddScriptTool);
176519
176825
  registry2.registerTool(flowFinishRecordingTool);
176520
176826
  registry2.registerTool(flowReadPrerequisiteTool);