vercel 52.0.0 → 52.2.0

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.
Files changed (68) hide show
  1. package/dist/chunks/{add-32PTAGQE.js → add-TH62Y34V.js} +8 -8
  2. package/dist/chunks/{chunk-TAOVG4PS.js → chunk-4Q5VS23S.js} +3 -3
  3. package/dist/chunks/{chunk-VGWGLBUC.js → chunk-5EDL2IVB.js} +2 -2
  4. package/dist/chunks/{chunk-LY3PUG7C.js → chunk-5EZVRZOJ.js} +88 -40
  5. package/dist/chunks/{chunk-BHDZCUTT.js → chunk-77JGNI4Z.js} +2 -2
  6. package/dist/chunks/{chunk-YLGCZTHB.js → chunk-7L7NSLYK.js} +3 -3
  7. package/dist/chunks/{chunk-GE6G37P4.js → chunk-ABDTA3V2.js} +1 -1
  8. package/dist/chunks/{chunk-2OPPBD5D.js → chunk-BUPMO37Q.js} +12 -12
  9. package/dist/chunks/{chunk-G6RXZLQ2.js → chunk-DFUTSURK.js} +2 -2
  10. package/dist/chunks/{chunk-FOWUL5QD.js → chunk-EVDPX5BO.js} +2 -2
  11. package/dist/chunks/{chunk-3Q7JX627.js → chunk-FPTKAORS.js} +4 -4
  12. package/dist/chunks/{chunk-UC4NDDAU.js → chunk-FUUQ2WSC.js} +6 -6
  13. package/dist/chunks/{chunk-FVWOH3F3.js → chunk-FUYNVB23.js} +3 -3
  14. package/dist/chunks/{chunk-PEB65MJA.js → chunk-H2O3DQDC.js} +5 -5
  15. package/dist/chunks/{chunk-CRZM5WM2.js → chunk-HMM7V4AU.js} +2 -2
  16. package/dist/chunks/{chunk-BNSXPMDP.js → chunk-I5OH27IT.js} +4 -4
  17. package/dist/chunks/{chunk-XKHLPA6V.js → chunk-IABMY4Q3.js} +22 -20
  18. package/dist/chunks/{chunk-GLDQ23LD.js → chunk-IEKDY4FP.js} +1 -1
  19. package/dist/chunks/{chunk-4PQA6H63.js → chunk-JCLLQ23G.js} +1 -1
  20. package/dist/chunks/{chunk-RFMC2QXQ.js → chunk-JNOMOD7R.js} +15 -11
  21. package/dist/chunks/{chunk-UWKTUK3W.js → chunk-LN5ZMLBU.js} +2 -2
  22. package/dist/chunks/{chunk-US5SYA7N.js → chunk-LSPPTDRH.js} +2 -2
  23. package/dist/chunks/{chunk-N45K6NXC.js → chunk-MSJX3VKI.js} +1 -1
  24. package/dist/chunks/{chunk-BJQTGP42.js → chunk-NCUOSZ6X.js} +2 -2
  25. package/dist/chunks/{chunk-OP4YIHHX.js → chunk-NJYOE4D7.js} +1 -1
  26. package/dist/chunks/{chunk-V67XYW74.js → chunk-O7R67TAG.js} +2 -2
  27. package/dist/chunks/{chunk-JJBN66Y6.js → chunk-ODASAX4M.js} +1 -1
  28. package/dist/chunks/{chunk-K7R6WOLC.js → chunk-OHOYN7R2.js} +3 -3
  29. package/dist/chunks/{chunk-GJEZXG32.js → chunk-OVFHCZBS.js} +7 -7
  30. package/dist/chunks/{chunk-DVQ4SIWF.js → chunk-P3H4MP5H.js} +2 -2
  31. package/dist/chunks/{chunk-LDXYSGPZ.js → chunk-QPPVRYOB.js} +2 -2
  32. package/dist/chunks/{chunk-I5IBRE7Q.js → chunk-QTX36APP.js} +4 -4
  33. package/dist/chunks/{chunk-EG4NYQUS.js → chunk-WCMV6TSF.js} +1 -1
  34. package/dist/chunks/{chunk-ECRBC4HL.js → chunk-XZ7CVBQ4.js} +26 -0
  35. package/dist/chunks/{chunk-VPI2ZRPP.js → chunk-ZI2C6YH2.js} +5 -5
  36. package/dist/chunks/{chunk-QQWE4QMB.js → chunk-ZJKFUXSF.js} +2 -2
  37. package/dist/chunks/{chunk-HUUTUVP5.js → chunk-ZZDXEXJ5.js} +9 -9
  38. package/dist/chunks/{compile-vercel-config-RAC75XPY.js → compile-vercel-config-H5YVD5ZD.js} +4 -4
  39. package/dist/chunks/{delete-VBCRT33S.js → delete-WW5B2IIN.js} +6 -6
  40. package/dist/chunks/{disable-4AGI6NFV.js → disable-WSV2JYK6.js} +6 -6
  41. package/dist/chunks/{discard-JUCF555L.js → discard-BTIMKAXZ.js} +6 -6
  42. package/dist/chunks/{edit-NNTNLAVV.js → edit-LOQJITTM.js} +7 -7
  43. package/dist/chunks/{enable-DCCSTYJV.js → enable-XMWWLBL7.js} +6 -6
  44. package/dist/chunks/{export-2VCMSLPY.js → export-P2OSIM3L.js} +6 -6
  45. package/dist/chunks/{inspect-TGMNTP57.js → inspect-5NKOJ64V.js} +8 -8
  46. package/dist/chunks/{list-JQLSGKZN.js → list-OLUANKMJ.js} +9 -9
  47. package/dist/chunks/{list-2EQRO64T.js → list-ZSRD6M3H.js} +6 -6
  48. package/dist/chunks/{ls-XCMOFSVP.js → ls-3YMXPZ7A.js} +8 -8
  49. package/dist/chunks/{publish-JY65X2KM.js → publish-T2HPYN5D.js} +6 -6
  50. package/dist/chunks/{query-ID2PPUU6.js → query-ZKNQWF5L.js} +8 -8
  51. package/dist/chunks/{reorder-HYBSLO2T.js → reorder-WQA5LQ7X.js} +6 -6
  52. package/dist/chunks/{restore-33F7XKHU.js → restore-QTREUYWW.js} +6 -6
  53. package/dist/chunks/{rm-D4MBLVAI.js → rm-4JKXZFP3.js} +8 -8
  54. package/dist/chunks/{rule-inspect-ZQQK2DV3.js → rule-inspect-3PUS2RKH.js} +8 -8
  55. package/dist/chunks/{rules-R2BZLO6I.js → rules-GBXWDR3P.js} +8 -8
  56. package/dist/chunks/{schema-3G43CXHB.js → schema-TXE5TXMY.js} +9 -9
  57. package/dist/chunks/{types-QNN5CDCB.js → types-FAFL42RV.js} +4 -4
  58. package/dist/chunks/{update-MI26ZSNY.js → update-57KTLPIK.js} +8 -8
  59. package/dist/commands/build/index.js +15 -15
  60. package/dist/commands/deploy/index.js +24 -24
  61. package/dist/commands/dev/index.js +14 -14
  62. package/dist/commands/env/index.js +18 -18
  63. package/dist/commands/link/index.js +18 -18
  64. package/dist/commands/list/index.js +10 -10
  65. package/dist/commands-bulk.js +93 -65
  66. package/dist/index.js +26 -45
  67. package/dist/version.mjs +1 -1
  68. package/package.json +14 -13
@@ -8,8 +8,9 @@ import {
8
8
  LinkRequiredError,
9
9
  ProjectNotFound,
10
10
  isAPIError,
11
- packageName
12
- } from "./chunk-ECRBC4HL.js";
11
+ packageName,
12
+ stripSensitiveAuthArgs
13
+ } from "./chunk-XZ7CVBQ4.js";
13
14
  import {
14
15
  require_dist
15
16
  } from "./chunk-ZQKJVHXY.js";
@@ -20,10 +21,10 @@ import {
20
21
  // src/util/agent-output.ts
21
22
  var import_error_utils = __toESM(require_dist(), 1);
22
23
  function buildCommandWithYes(argv, pkgName = packageName) {
23
- const args = argv.slice(2);
24
+ const args = stripSensitiveAuthArgs(argv.slice(2));
24
25
  const hasYes = args.some((a) => a === "--yes" || a === "-y");
25
- const out = hasYes ? [...args] : [...args, "--yes"];
26
- return `${pkgName} ${out.join(" ")}`;
26
+ const out = hasYes ? args : [...args, "--yes"];
27
+ return `${pkgName} ${out.join(" ")}`.trim();
27
28
  }
28
29
  var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
29
30
  "--cwd",
@@ -34,12 +35,12 @@ var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
34
35
  "--scope",
35
36
  "--team",
36
37
  "-S",
37
- "-T",
38
- "--token"
38
+ "-T"
39
+ // --token/-t are intentionally excluded and stripped via stripSensitiveAuthArgs.
39
40
  ]);
40
41
  var BOOLEAN_GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set(["--yes", "-y", "--non-interactive"]);
41
42
  function getGlobalFlagsFromArgv(argv) {
42
- const args = argv.slice(2);
43
+ const args = stripSensitiveAuthArgs(argv.slice(2));
43
44
  const out = [];
44
45
  for (let i = 0; i < args.length; i++) {
45
46
  const arg = args[i];
@@ -56,12 +57,13 @@ function getGlobalFlagsFromArgv(argv) {
56
57
  return out;
57
58
  }
58
59
  function omitGlobalFlagsFromArgs(args) {
60
+ const safeArgs = stripSensitiveAuthArgs(args);
59
61
  const out = [];
60
- for (let i = 0; i < args.length; i++) {
61
- const arg = args[i];
62
+ for (let i = 0; i < safeArgs.length; i++) {
63
+ const arg = safeArgs[i];
62
64
  const name = arg.startsWith("--") ? arg.split("=")[0] : arg;
63
65
  if (GLOBAL_FLAG_NAMES.has(name)) {
64
- const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < args.length && !args[i + 1].startsWith("-");
66
+ const skipSeparateValue = !BOOLEAN_GLOBAL_FLAG_NAMES.has(name) && !arg.includes("=") && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-");
65
67
  if (skipSeparateValue) {
66
68
  i++;
67
69
  }
@@ -110,14 +112,14 @@ function getPreservedArgsForEnvAdd(argv) {
110
112
  const args = argv.slice(2);
111
113
  const addIdx = args.indexOf("add");
112
114
  if (addIdx === -1 || args[addIdx - 1] !== "env")
113
- return args;
115
+ return stripSensitiveAuthArgs(args);
114
116
  let i = addIdx + 1;
115
117
  let positionals = 0;
116
118
  while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
117
119
  positionals++;
118
120
  i++;
119
121
  }
120
- return args.slice(i);
122
+ return stripSensitiveAuthArgs(args.slice(i));
121
123
  }
122
124
  function buildEnvAddCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
123
125
  let preserved = getPreservedArgsForEnvAdd(argv);
@@ -146,24 +148,24 @@ function getPreservedArgsForEnvPull(argv) {
146
148
  const args = argv.slice(2);
147
149
  const pullIdx = args.indexOf("pull");
148
150
  if (pullIdx === -1 || args[pullIdx - 1] !== "env")
149
- return args;
151
+ return stripSensitiveAuthArgs(args);
150
152
  let i = pullIdx + 1;
151
153
  if (i < args.length && !args[i].startsWith("-"))
152
154
  i++;
153
- return args.slice(i);
155
+ return stripSensitiveAuthArgs(args.slice(i));
154
156
  }
155
157
  function getPreservedArgsForEnvRm(argv) {
156
158
  const args = argv.slice(2);
157
159
  const rmIdx = args.indexOf("rm");
158
160
  if (rmIdx === -1 || args[rmIdx - 1] !== "env")
159
- return args;
161
+ return stripSensitiveAuthArgs(args);
160
162
  let i = rmIdx + 1;
161
163
  let positionals = 0;
162
164
  while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
163
165
  positionals++;
164
166
  i++;
165
167
  }
166
- return args.slice(i);
168
+ return stripSensitiveAuthArgs(args.slice(i));
167
169
  }
168
170
  function buildEnvRmCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
169
171
  let preserved = getPreservedArgsForEnvRm(argv);
@@ -179,14 +181,14 @@ function getPreservedArgsForEnvUpdate(argv) {
179
181
  const args = argv.slice(2);
180
182
  const updateIdx = args.indexOf("update");
181
183
  if (updateIdx === -1 || args[updateIdx - 1] !== "env")
182
- return args;
184
+ return stripSensitiveAuthArgs(args);
183
185
  let i = updateIdx + 1;
184
186
  let positionals = 0;
185
187
  while (i < args.length && positionals < 3 && !args[i].startsWith("-")) {
186
188
  positionals++;
187
189
  i++;
188
190
  }
189
- return args.slice(i);
191
+ return stripSensitiveAuthArgs(args.slice(i));
190
192
  }
191
193
  function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName = packageName) {
192
194
  let preserved = getPreservedArgsForEnvUpdate(argv);
@@ -212,7 +214,7 @@ function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName =
212
214
  return `${base} ${preserved.join(" ")}`;
213
215
  }
214
216
  function buildCommandWithScope(argv, scopeSlug, pkgName = packageName) {
215
- const args = argv.slice(2);
217
+ const args = stripSensitiveAuthArgs(argv.slice(2));
216
218
  const out = [];
217
219
  for (let i = 0; i < args.length; i++) {
218
220
  if (args[i] === "--scope" || args[i] === "--team" || args[i] === "-S" || args[i] === "-T") {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  isAPIError
9
- } from "./chunk-ECRBC4HL.js";
9
+ } from "./chunk-XZ7CVBQ4.js";
10
10
  import {
11
11
  output_manager_default
12
12
  } from "./chunk-ZQKJVHXY.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  init_pkg,
9
9
  pkg_default
10
- } from "./chunk-ECRBC4HL.js";
10
+ } from "./chunk-XZ7CVBQ4.js";
11
11
 
12
12
  // src/util/ua.ts
13
13
  init_pkg();
@@ -7,9 +7,11 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getCommandName,
9
9
  getCommandNamePlain,
10
+ normalizeFlagName,
10
11
  parseRetryAfterHeaderAsMillis,
11
- require_bytes
12
- } from "./chunk-ECRBC4HL.js";
12
+ require_bytes,
13
+ stripSensitiveAuthArgs
14
+ } from "./chunk-XZ7CVBQ4.js";
13
15
  import {
14
16
  output_manager_default
15
17
  } from "./chunk-ZQKJVHXY.js";
@@ -339,7 +341,7 @@ var GLOBAL_CLI_FLAG_NAMES = (() => {
339
341
  return set;
340
342
  })();
341
343
  function globalCliFlagTakesValue(flagName) {
342
- const normalized = flagName.includes("=") ? flagName.slice(0, flagName.indexOf("=")) : flagName;
344
+ const normalized = normalizeFlagName(flagName);
343
345
  for (const opt of globalCommandOptions) {
344
346
  if (`--${opt.name}` === normalized) {
345
347
  return opt.type === String;
@@ -362,23 +364,24 @@ var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
362
364
  "--per-page"
363
365
  ]);
364
366
  function suggestionFlagTakesSeparateValue(flagName) {
365
- const name = flagName.includes("=") ? flagName.slice(0, flagName.indexOf("=")) : flagName;
367
+ const name = normalizeFlagName(flagName);
366
368
  if (globalCliFlagTakesValue(name))
367
369
  return true;
368
370
  return SUBCOMMAND_FLAG_TAKES_VALUE.has(name);
369
371
  }
370
372
  function getSameSubcommandSuggestionFlags(args) {
373
+ const safeArgs = stripSensitiveAuthArgs(args);
371
374
  const out = [];
372
- for (let i = 0; i < args.length; i++) {
373
- const a = args[i];
375
+ for (let i = 0; i < safeArgs.length; i++) {
376
+ const a = safeArgs[i];
374
377
  if (!a.startsWith("-"))
375
378
  continue;
376
379
  out.push(a);
377
380
  if (a.includes("="))
378
381
  continue;
379
382
  const name = a;
380
- if (suggestionFlagTakesSeparateValue(name) && i + 1 < args.length && !args[i + 1].startsWith("-")) {
381
- out.push(args[++i]);
383
+ if (suggestionFlagTakesSeparateValue(name) && i + 1 < safeArgs.length && !safeArgs[i + 1].startsWith("-")) {
384
+ out.push(safeArgs[++i]);
382
385
  }
383
386
  }
384
387
  return out;
@@ -451,9 +454,10 @@ for (const opt of globalCommandOptions) {
451
454
  }
452
455
  }
453
456
  function getGlobalFlagsOnlyFromArgs(args) {
457
+ const safeArgs = stripSensitiveAuthArgs(args);
454
458
  const out = [];
455
- for (let i = 0; i < args.length; i++) {
456
- const a = args[i];
459
+ for (let i = 0; i < safeArgs.length; i++) {
460
+ const a = safeArgs[i];
457
461
  let opt;
458
462
  if (a.startsWith("--") && a.includes("=")) {
459
463
  const name = a.slice(2).split("=")[0];
@@ -467,7 +471,7 @@ function getGlobalFlagsOnlyFromArgs(args) {
467
471
  continue;
468
472
  out.push(a);
469
473
  if (opt.type === String && !a.includes("=")) {
470
- const next = args[i + 1];
474
+ const next = safeArgs[i + 1];
471
475
  if (next && !next.startsWith("-")) {
472
476
  out.push(next);
473
477
  i++;
@@ -8,10 +8,10 @@ import {
8
8
  formatOption,
9
9
  limitOption,
10
10
  nextOption
11
- } from "./chunk-RFMC2QXQ.js";
11
+ } from "./chunk-JNOMOD7R.js";
12
12
  import {
13
13
  packageName
14
- } from "./chunk-ECRBC4HL.js";
14
+ } from "./chunk-XZ7CVBQ4.js";
15
15
 
16
16
  // src/commands/activity/command.ts
17
17
  var typesSubcommand = {
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-VPI2ZRPP.js";
9
+ } from "./chunk-ZI2C6YH2.js";
10
10
  import {
11
11
  packageName
12
- } from "./chunk-ECRBC4HL.js";
12
+ } from "./chunk-XZ7CVBQ4.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-TZ2YI2VH.js";
@@ -13,7 +13,7 @@ import {
13
13
  InvalidDeploymentId,
14
14
  TooManyRequests,
15
15
  isAPIError
16
- } from "./chunk-ECRBC4HL.js";
16
+ } from "./chunk-XZ7CVBQ4.js";
17
17
 
18
18
  // src/util/to-host.ts
19
19
  function toHost(url) {
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  confirmOption,
9
9
  yesOption
10
- } from "./chunk-RFMC2QXQ.js";
10
+ } from "./chunk-JNOMOD7R.js";
11
11
  import {
12
12
  packageName
13
- } from "./chunk-ECRBC4HL.js";
13
+ } from "./chunk-XZ7CVBQ4.js";
14
14
 
15
15
  // src/commands/dev/command.ts
16
16
  var devCommand = {
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-VPI2ZRPP.js";
11
+ } from "./chunk-ZI2C6YH2.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-ZQKJVHXY.js";
@@ -11,10 +11,10 @@ import {
11
11
  getTeamById,
12
12
  getUser,
13
13
  getVercelDirectory
14
- } from "./chunk-VPI2ZRPP.js";
14
+ } from "./chunk-ZI2C6YH2.js";
15
15
  import {
16
16
  TeamDeleted
17
- } from "./chunk-ECRBC4HL.js";
17
+ } from "./chunk-XZ7CVBQ4.js";
18
18
  import {
19
19
  output_manager_default
20
20
  } from "./chunk-ZQKJVHXY.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatCondition,
9
9
  formatTransform
10
- } from "./chunk-BNSXPMDP.js";
10
+ } from "./chunk-I5OH27IT.js";
11
11
  import {
12
12
  output_manager_default
13
13
  } from "./chunk-ZQKJVHXY.js";
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  getEnvTargetPlaceholder,
12
12
  global_path_default
13
- } from "./chunk-VPI2ZRPP.js";
13
+ } from "./chunk-ZI2C6YH2.js";
14
14
  import {
15
15
  yesOption
16
- } from "./chunk-RFMC2QXQ.js";
16
+ } from "./chunk-JNOMOD7R.js";
17
17
  import {
18
18
  packageName
19
- } from "./chunk-ECRBC4HL.js";
19
+ } from "./chunk-XZ7CVBQ4.js";
20
20
  import {
21
21
  output_manager_default
22
22
  } from "./chunk-ZQKJVHXY.js";
@@ -6,21 +6,21 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommand
9
- } from "./chunk-US5SYA7N.js";
9
+ } from "./chunk-LSPPTDRH.js";
10
10
  import {
11
11
  login
12
- } from "./chunk-LY3PUG7C.js";
12
+ } from "./chunk-5EZVRZOJ.js";
13
13
  import {
14
14
  apiCommand,
15
15
  listSubcommand2 as listSubcommand,
16
16
  loginCommand
17
- } from "./chunk-2OPPBD5D.js";
17
+ } from "./chunk-BUPMO37Q.js";
18
18
  import {
19
19
  help
20
- } from "./chunk-LDXYSGPZ.js";
20
+ } from "./chunk-QPPVRYOB.js";
21
21
  import {
22
22
  global_path_default
23
- } from "./chunk-VPI2ZRPP.js";
23
+ } from "./chunk-ZI2C6YH2.js";
24
24
  import {
25
25
  TelemetryClient
26
26
  } from "./chunk-U3WLEFHU.js";
@@ -32,10 +32,10 @@ import {
32
32
  parseArguments,
33
33
  printError,
34
34
  require_strip_ansi
35
- } from "./chunk-RFMC2QXQ.js";
35
+ } from "./chunk-JNOMOD7R.js";
36
36
  import {
37
37
  packageName
38
- } from "./chunk-ECRBC4HL.js";
38
+ } from "./chunk-XZ7CVBQ4.js";
39
39
  import {
40
40
  output_manager_default
41
41
  } from "./chunk-ZQKJVHXY.js";
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
9
  yesOption
10
- } from "./chunk-RFMC2QXQ.js";
10
+ } from "./chunk-JNOMOD7R.js";
11
11
  import {
12
12
  packageName
13
- } from "./chunk-ECRBC4HL.js";
13
+ } from "./chunk-XZ7CVBQ4.js";
14
14
 
15
15
  // src/commands/alerts/rules/command.ts
16
16
  var scopeOptions = [
@@ -7,13 +7,13 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  noBorderChars,
9
9
  require_cli_table3
10
- } from "./chunk-GE6G37P4.js";
10
+ } from "./chunk-ABDTA3V2.js";
11
11
  import {
12
12
  require_dist
13
13
  } from "./chunk-U3WLEFHU.js";
14
14
  import {
15
15
  globalCommandOptions
16
- } from "./chunk-RFMC2QXQ.js";
16
+ } from "./chunk-JNOMOD7R.js";
17
17
  import {
18
18
  require_source
19
19
  } from "./chunk-S7KYDPEM.js";
@@ -6,20 +6,20 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  setupAndLink
9
- } from "./chunk-PEB65MJA.js";
9
+ } from "./chunk-H2O3DQDC.js";
10
10
  import {
11
11
  getLinkedProject,
12
12
  param,
13
13
  resolveProjectCwd
14
- } from "./chunk-VPI2ZRPP.js";
14
+ } from "./chunk-ZI2C6YH2.js";
15
15
  import {
16
16
  buildCommandWithYes,
17
17
  outputActionRequired
18
- } from "./chunk-XKHLPA6V.js";
18
+ } from "./chunk-IABMY4Q3.js";
19
19
  import {
20
20
  getCommandName,
21
21
  getCommandNamePlain
22
- } from "./chunk-ECRBC4HL.js";
22
+ } from "./chunk-XZ7CVBQ4.js";
23
23
  import {
24
24
  output_manager_default
25
25
  } from "./chunk-ZQKJVHXY.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_end_of_stream,
9
9
  require_once
10
- } from "./chunk-VPI2ZRPP.js";
10
+ } from "./chunk-ZI2C6YH2.js";
11
11
  import {
12
12
  require_signal_exit
13
13
  } from "./chunk-ZQKJVHXY.js";
@@ -1061,6 +1061,30 @@ var InvalidLocalConfig = class extends NowError {
1061
1061
  }
1062
1062
  };
1063
1063
 
1064
+ // src/util/redact-args.ts
1065
+ var SENSITIVE_AUTH_FLAG_NAMES = /* @__PURE__ */ new Set(["--token", "-t"]);
1066
+ function normalizeFlagName(flag) {
1067
+ if (flag.includes("=")) {
1068
+ return flag.slice(0, flag.indexOf("="));
1069
+ }
1070
+ return flag;
1071
+ }
1072
+ function stripSensitiveAuthArgs(args) {
1073
+ const out = [];
1074
+ for (let i = 0; i < args.length; i++) {
1075
+ const arg = args[i];
1076
+ const name = normalizeFlagName(arg);
1077
+ if (SENSITIVE_AUTH_FLAG_NAMES.has(name)) {
1078
+ if (!arg.includes("=") && i + 1 < args.length) {
1079
+ i++;
1080
+ }
1081
+ continue;
1082
+ }
1083
+ out.push(arg);
1084
+ }
1085
+ return out;
1086
+ }
1087
+
1064
1088
  export {
1065
1089
  pkg_default,
1066
1090
  pkg_exports,
@@ -1071,6 +1095,8 @@ export {
1071
1095
  getTitleName,
1072
1096
  getCommandName,
1073
1097
  getCommandNamePlain,
1098
+ normalizeFlagName,
1099
+ stripSensitiveAuthArgs,
1074
1100
  require_bytes,
1075
1101
  NowError,
1076
1102
  code,
@@ -14,7 +14,7 @@ import {
14
14
  getPreservedArgsForEnvPull,
15
15
  outputActionRequired,
16
16
  outputAgentError
17
- } from "./chunk-XKHLPA6V.js";
17
+ } from "./chunk-IABMY4Q3.js";
18
18
  import {
19
19
  require_ms,
20
20
  stamp_default
@@ -29,7 +29,7 @@ import {
29
29
  require_string_width,
30
30
  require_strip_ansi,
31
31
  yesOption
32
- } from "./chunk-RFMC2QXQ.js";
32
+ } from "./chunk-JNOMOD7R.js";
33
33
  import {
34
34
  APIError,
35
35
  CantParseJSONFile,
@@ -43,7 +43,7 @@ import {
43
43
  isAPIError,
44
44
  packageName,
45
45
  require_lib
46
- } from "./chunk-ECRBC4HL.js";
46
+ } from "./chunk-XZ7CVBQ4.js";
47
47
  import {
48
48
  emoji,
49
49
  eraseLines,
@@ -52698,7 +52698,7 @@ async function getUser(client) {
52698
52698
  if (client.authConfig.userId !== res.user.id) {
52699
52699
  client.updateAuthConfig({ userId: res.user.id });
52700
52700
  try {
52701
- client.writeToAuthConfigFile();
52701
+ client.persistAuthConfig();
52702
52702
  } catch {
52703
52703
  output_manager_default.debug("Failed to persist cached userId to auth config.");
52704
52704
  }
@@ -52710,7 +52710,7 @@ async function getUser(client) {
52710
52710
  if (client.authConfig.userId) {
52711
52711
  client.updateAuthConfig({ userId: void 0 });
52712
52712
  try {
52713
- client.writeToAuthConfigFile();
52713
+ client.persistAuthConfig();
52714
52714
  } catch {
52715
52715
  output_manager_default.debug("Failed to persist cached userId to auth config.");
52716
52716
  }
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-VPI2ZRPP.js";
9
+ } from "./chunk-ZI2C6YH2.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
13
- } from "./chunk-ECRBC4HL.js";
13
+ } from "./chunk-XZ7CVBQ4.js";
14
14
  import {
15
15
  output_manager_default
16
16
  } from "./chunk-ZQKJVHXY.js";
@@ -9,33 +9,33 @@ import {
9
9
  printIndications,
10
10
  require_dist as require_dist2,
11
11
  sleep
12
- } from "./chunk-LY3PUG7C.js";
12
+ } from "./chunk-5EZVRZOJ.js";
13
13
  import {
14
14
  suggestNextCommands
15
15
  } from "./chunk-LOS7HHU3.js";
16
16
  import {
17
17
  getDeployment,
18
18
  mapCertError
19
- } from "./chunk-N45K6NXC.js";
19
+ } from "./chunk-MSJX3VKI.js";
20
20
  import {
21
21
  getScope
22
- } from "./chunk-V67XYW74.js";
22
+ } from "./chunk-O7R67TAG.js";
23
23
  import {
24
24
  CommandTimeout
25
- } from "./chunk-2OPPBD5D.js";
25
+ } from "./chunk-BUPMO37Q.js";
26
26
  import {
27
27
  ua_default
28
- } from "./chunk-4PQA6H63.js";
28
+ } from "./chunk-JCLLQ23G.js";
29
29
  import {
30
30
  showPluginTipIfNeeded
31
- } from "./chunk-K7R6WOLC.js";
31
+ } from "./chunk-OHOYN7R2.js";
32
32
  import {
33
33
  getProjectByNameOrId,
34
34
  param,
35
35
  require_dist as require_dist3,
36
36
  require_lib3 as require_lib,
37
37
  require_pluralize
38
- } from "./chunk-VPI2ZRPP.js";
38
+ } from "./chunk-ZI2C6YH2.js";
39
39
  import {
40
40
  require_ms,
41
41
  stamp_default
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  require_strip_ansi,
45
45
  responseError
46
- } from "./chunk-RFMC2QXQ.js";
46
+ } from "./chunk-JNOMOD7R.js";
47
47
  import {
48
48
  APIError,
49
49
  BuildError,
@@ -61,7 +61,7 @@ import {
61
61
  getCommandName,
62
62
  isAPIError,
63
63
  require_bytes
64
- } from "./chunk-ECRBC4HL.js";
64
+ } from "./chunk-XZ7CVBQ4.js";
65
65
  import {
66
66
  emoji,
67
67
  eraseLines,
@@ -11,12 +11,12 @@ import {
11
11
  findSourceVercelConfigFile,
12
12
  getVercelConfigPath,
13
13
  normalizeConfig
14
- } from "./chunk-VPI2ZRPP.js";
14
+ } from "./chunk-ZI2C6YH2.js";
15
15
  import "./chunk-U3WLEFHU.js";
16
- import "./chunk-XKHLPA6V.js";
16
+ import "./chunk-IABMY4Q3.js";
17
17
  import "./chunk-CO5D46AG.js";
18
- import "./chunk-RFMC2QXQ.js";
19
- import "./chunk-ECRBC4HL.js";
18
+ import "./chunk-JNOMOD7R.js";
19
+ import "./chunk-XZ7CVBQ4.js";
20
20
  import "./chunk-ZQKJVHXY.js";
21
21
  import "./chunk-S7KYDPEM.js";
22
22
  import "./chunk-TZ2YI2VH.js";
@@ -15,26 +15,26 @@ import {
15
15
  parseSubcommandArgs,
16
16
  resolveRoutes,
17
17
  withGlobalFlags
18
- } from "./chunk-BNSXPMDP.js";
18
+ } from "./chunk-I5OH27IT.js";
19
19
  import {
20
20
  deleteSubcommand
21
- } from "./chunk-CRZM5WM2.js";
21
+ } from "./chunk-HMM7V4AU.js";
22
22
  import {
23
23
  AGENT_REASON,
24
24
  AGENT_STATUS
25
25
  } from "./chunk-E3NE4SKN.js";
26
- import "./chunk-VPI2ZRPP.js";
26
+ import "./chunk-ZI2C6YH2.js";
27
27
  import "./chunk-U3WLEFHU.js";
28
28
  import {
29
29
  outputAgentError
30
- } from "./chunk-XKHLPA6V.js";
30
+ } from "./chunk-IABMY4Q3.js";
31
31
  import {
32
32
  stamp_default
33
33
  } from "./chunk-CO5D46AG.js";
34
- import "./chunk-RFMC2QXQ.js";
34
+ import "./chunk-JNOMOD7R.js";
35
35
  import {
36
36
  getCommandName
37
- } from "./chunk-ECRBC4HL.js";
37
+ } from "./chunk-XZ7CVBQ4.js";
38
38
  import {
39
39
  output_manager_default
40
40
  } from "./chunk-ZQKJVHXY.js";