vercel 59.5.0 → 59.6.2

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 (113) hide show
  1. package/dist/chunks/{add-W3FFMTX4.js → add-4GQZ22ZN.js} +11 -11
  2. package/dist/chunks/{add-MH3WV6PV.js → add-HJSEM4YJ.js} +11 -11
  3. package/dist/chunks/{add-Z5FM6TFI.js → add-SIGUSM3Y.js} +12 -12
  4. package/dist/chunks/{build-VYYFBJL7.js → build-XOMJDX4M.js} +11 -11
  5. package/dist/chunks/{chunk-NSU2BTRS.js → chunk-2O5J3KMT.js} +4 -4
  6. package/dist/chunks/{chunk-RZ5NP6HN.js → chunk-2YRAWYGE.js} +1 -1
  7. package/dist/chunks/{chunk-JNU3DTEV.js → chunk-37V5P4VO.js} +9 -9
  8. package/dist/chunks/{chunk-LLM3ZNXJ.js → chunk-3F5EGINT.js} +2 -2
  9. package/dist/chunks/{chunk-KQRVZWJU.js → chunk-3T7WSWZH.js} +1 -1
  10. package/dist/chunks/{chunk-R6IGDGX3.js → chunk-5XECIWME.js} +1 -1
  11. package/dist/chunks/{chunk-AWSLWAOC.js → chunk-6JPVTPTU.js} +3 -3
  12. package/dist/chunks/{chunk-M3OSDZPY.js → chunk-6M2KZUED.js} +16 -7
  13. package/dist/chunks/{chunk-HT2XWSAJ.js → chunk-7AEEQOD4.js} +2 -29
  14. package/dist/chunks/{chunk-QG4PCM45.js → chunk-7HE63HCR.js} +102 -15
  15. package/dist/chunks/{chunk-V4YLY44R.js → chunk-7R6M3BHM.js} +2 -2
  16. package/dist/chunks/{chunk-XBN2O34P.js → chunk-7ST552E3.js} +17 -4
  17. package/dist/chunks/{chunk-CV4S27SS.js → chunk-ASBP32T6.js} +1 -1
  18. package/dist/chunks/{chunk-CQJRLNTX.js → chunk-AYLY3ZVL.js} +2 -2
  19. package/dist/chunks/{chunk-AWCID36T.js → chunk-BMKU5KEL.js} +1 -1
  20. package/dist/chunks/{chunk-UUVMIXT4.js → chunk-DE7MBNHQ.js} +4 -4
  21. package/dist/chunks/{chunk-YIHOS3ZF.js → chunk-FRAXI2WT.js} +1 -1
  22. package/dist/chunks/{chunk-FA3MO56Q.js → chunk-FRZULOVH.js} +5 -5
  23. package/dist/chunks/{chunk-7XX4ZEOV.js → chunk-FWKSJYDV.js} +1 -1
  24. package/dist/chunks/{chunk-OHER4DGX.js → chunk-FXD67VN5.js} +25 -9
  25. package/dist/chunks/{chunk-TIWAL2YU.js → chunk-GISTGGBO.js} +6 -6
  26. package/dist/chunks/{chunk-CSCSGSQG.js → chunk-GZQQNLF5.js} +5 -5
  27. package/dist/chunks/{chunk-PIMIKY4X.js → chunk-IJ4X426J.js} +1 -1
  28. package/dist/chunks/{chunk-TDXNNIZ6.js → chunk-JH4WQRIU.js} +2 -2
  29. package/dist/chunks/{chunk-TVXCXIRO.js → chunk-L3UXB2CW.js} +1 -1
  30. package/dist/chunks/{chunk-4JTF6RD7.js → chunk-LXZVOR6F.js} +4 -4
  31. package/dist/chunks/{chunk-L7CEMAJG.js → chunk-NGGLYKNU.js} +27 -5
  32. package/dist/chunks/{chunk-VWYNSJXI.js → chunk-NGNN6WF2.js} +8 -8
  33. package/dist/chunks/{chunk-GGPE5377.js → chunk-O26N2UPI.js} +1 -1
  34. package/dist/chunks/{chunk-5LX2JDZP.js → chunk-O75LSD3C.js} +1 -1
  35. package/dist/chunks/{chunk-MRMNMFMD.js → chunk-PRH6KRUT.js} +1 -1
  36. package/dist/chunks/{chunk-OX7KI3LF.js → chunk-QFAS4OVW.js} +18 -0
  37. package/dist/chunks/{chunk-PBHBX6UL.js → chunk-R5PULMHT.js} +3 -3
  38. package/dist/chunks/{chunk-PPUWG2UB.js → chunk-SF3AYAIF.js} +58 -25
  39. package/dist/chunks/{chunk-TAZ5ZAKG.js → chunk-SWI6F4X3.js} +2 -2
  40. package/dist/chunks/{chunk-ZKUHCL6O.js → chunk-V3MDDR2X.js} +5 -5
  41. package/dist/chunks/{chunk-E6LFKMI2.js → chunk-VJ5NAOWB.js} +791 -122
  42. package/dist/chunks/{chunk-G75NFPIT.js → chunk-WNAKOXGK.js} +1 -1
  43. package/dist/chunks/{chunk-JJQP3PYM.js → chunk-WZ2S3A2A.js} +5 -5
  44. package/dist/chunks/{chunk-CYNB6LL4.js → chunk-XNFHNTS2.js} +1 -1
  45. package/dist/chunks/{chunk-47VQ6H2S.js → chunk-YJKZQEHS.js} +2 -2
  46. package/dist/chunks/{chunk-GUWPUX2Y.js → chunk-ZNMTDLYH.js} +4 -4
  47. package/dist/chunks/{chunk-VLPLCJZC.js → chunk-ZSFEACZU.js} +1 -1
  48. package/dist/chunks/{clear-TNGRDA7D.js → clear-BWT2FJY4.js} +11 -11
  49. package/dist/chunks/{compile-vercel-config-ERLXKKWW.js → compile-vercel-config-DGM4NISW.js} +7 -7
  50. package/dist/chunks/{config-H22EE765.js → config-NJAN3RMU.js} +11 -11
  51. package/dist/chunks/{config-7EDKML5Q.js → config-RSE6Z4LB.js} +9 -9
  52. package/dist/chunks/{constants-YMCRE6IG.js → constants-WEQVJSYS.js} +1 -1
  53. package/dist/chunks/{delete-Q4S5F2AI.js → delete-LROBRBAH.js} +9 -9
  54. package/dist/chunks/{delete-LORYIZHY.js → delete-SSL2PK2F.js} +8 -8
  55. package/dist/chunks/{disable-HKWCBDJC.js → disable-ASG5JDZR.js} +8 -8
  56. package/dist/chunks/{discard-UCCRF2JQ.js → discard-PV47B6IL.js} +8 -8
  57. package/dist/chunks/{edit-AWL35PYQ.js → edit-5ATYIOLX.js} +10 -10
  58. package/dist/chunks/{edit-6IM6VRBR.js → edit-REI7HXGG.js} +10 -10
  59. package/dist/chunks/{enable-GN3D3L3V.js → enable-LZXL7XAG.js} +8 -8
  60. package/dist/chunks/{exec-CNBOV577.js → exec-XH4K34JM.js} +3 -3
  61. package/dist/chunks/{export-HHRVFALV.js → export-ZAZFQU2E.js} +8 -8
  62. package/dist/chunks/{image-4DCU4VPP.js → image-QPHN5V7L.js} +6 -6
  63. package/dist/chunks/{import-builders-DVG3HOTF.js → import-builders-W3YE2V6A.js} +9 -9
  64. package/dist/chunks/{inspect-TUW67CFZ.js → inspect-BFGK72WY.js} +10 -10
  65. package/dist/chunks/{inspect-TGOJDKIT.js → inspect-FRXJRM6T.js} +9 -9
  66. package/dist/chunks/{inspect-B3OWUFLH.js → inspect-RDMC2Z3Q.js} +11 -11
  67. package/dist/chunks/{inspect-VPME6UC7.js → inspect-SJEZVGPK.js} +11 -11
  68. package/dist/chunks/{inspect-VLGKNHJW.js → inspect-SSOM3FXS.js} +11 -11
  69. package/dist/chunks/{list-K552ITMK.js → list-2HTR7Q3J.js} +9 -9
  70. package/dist/chunks/{list-TK2JO7BK.js → list-PHDUZVMR.js} +8 -8
  71. package/dist/chunks/{list-2DPKDHRV.js → list-W33GXKDA.js} +10 -10
  72. package/dist/chunks/{login-HRWEKW5P.js → login-JWAFHVDG.js} +21 -12
  73. package/dist/chunks/{ls-M5TYGFP5.js → ls-3AN2DZHN.js} +11 -11
  74. package/dist/chunks/{ls-YIF3KLF3.js → ls-3MH2OCP3.js} +11 -11
  75. package/dist/chunks/{ls-TM6NTZEB.js → ls-D2POUHI7.js} +9 -9
  76. package/dist/chunks/{ls-JSV2WZVF.js → ls-KDFU224B.js} +11 -11
  77. package/dist/chunks/{ls-IOXGXEY4.js → ls-KX2VBOGV.js} +10 -10
  78. package/dist/chunks/{ls-O2WYF5UL.js → ls-RWKNJQNT.js} +11 -11
  79. package/dist/chunks/{open-FWAVEWGU.js → open-IEYRB6RL.js} +9 -9
  80. package/dist/chunks/{permissions-DPFYL47Z.js → permissions-ZWZUMEHR.js} +7 -7
  81. package/dist/chunks/{publish-63CGFKQR.js → publish-UWZYBDHK.js} +8 -8
  82. package/dist/chunks/{push-T5ZTBW3P.js → push-IAEQ3FBF.js} +11 -11
  83. package/dist/chunks/{query-B6O3EMEV.js → query-NNOZYSED.js} +11 -11
  84. package/dist/chunks/{reorder-ANV4NMKH.js → reorder-TKBM244W.js} +8 -8
  85. package/dist/chunks/{reply-C73KGOCG.js → reply-FLBSBMTW.js} +10 -10
  86. package/dist/chunks/{resolve-IHSIVPEE.js → resolve-GJYPMWUE.js} +9 -9
  87. package/dist/chunks/{restore-GSUNXP2O.js → restore-PNI3TM3U.js} +8 -8
  88. package/dist/chunks/{rm-4O74PS4Q.js → rm-76CSSSSV.js} +11 -11
  89. package/dist/chunks/{rm-M7IJC2WZ.js → rm-FN7LTIIL.js} +11 -11
  90. package/dist/chunks/{rm-YDTK5ESZ.js → rm-FTE33UHE.js} +10 -10
  91. package/dist/chunks/{rm-RV5SQFQA.js → rm-FXA5DLXQ.js} +11 -13
  92. package/dist/chunks/{rm-PRINF4OU.js → rm-PGJ4KR6U.js} +11 -11
  93. package/dist/chunks/{routes-SZI2G4SE.js → routes-2OLIBRYX.js} +3 -3
  94. package/dist/chunks/{rule-inspect-ZZC53FLP.js → rule-inspect-LJIGPTWS.js} +10 -10
  95. package/dist/chunks/{rules-SAOSSGFI.js → rules-6BMNO6M5.js} +10 -10
  96. package/dist/chunks/{schema-23ZFAKDU.js → schema-45SJNY5L.js} +4 -4
  97. package/dist/chunks/{schema-2Q3QRMRO.js → schema-HATXEQDP.js} +9 -9
  98. package/dist/chunks/{set-L47ZCZBJ.js → set-C3UQUQ42.js} +9 -9
  99. package/dist/chunks/{tags-2TWLM77N.js → tags-BTVDROFG.js} +5 -5
  100. package/dist/chunks/{types-G3PEUIJH.js → types-JGANJ5EQ.js} +3 -3
  101. package/dist/chunks/{update-SZH2VBD6.js → update-B6PSOHUW.js} +12 -12
  102. package/dist/commands/build/builder-worker.cjs +281 -0
  103. package/dist/commands/build/index.js +690 -235
  104. package/dist/commands/deploy/index.js +103 -31
  105. package/dist/commands/dev/index.js +669 -140
  106. package/dist/commands/env/index.js +1167 -542
  107. package/dist/commands/link/index.js +10 -10
  108. package/dist/commands/list/index.js +10 -10
  109. package/dist/commands-bulk.js +1978 -953
  110. package/dist/index.js +18 -18
  111. package/dist/version.mjs +1 -1
  112. package/package.json +47 -47
  113. package/dist/chunks/chunk-HGRWPPYB.js +0 -18
@@ -8,7 +8,7 @@ import {
8
8
  LinkRequiredError,
9
9
  ProjectNotFound,
10
10
  isAPIError
11
- } from "./chunk-AWCID36T.js";
11
+ } from "./chunk-BMKU5KEL.js";
12
12
  import {
13
13
  getGlobalFlagsFromArgs,
14
14
  packageName,
@@ -17,11 +17,19 @@ import {
17
17
  } from "./chunk-Q2DGFCO7.js";
18
18
  import {
19
19
  require_dist
20
- } from "./chunk-OX7KI3LF.js";
20
+ } from "./chunk-QFAS4OVW.js";
21
21
  import {
22
22
  __toESM
23
23
  } from "./chunk-TZ2YI2VH.js";
24
24
 
25
+ // src/util/flags/quote-arg.ts
26
+ function quoteArg(value) {
27
+ if (/^[A-Za-z0-9_./@:-]+$/.test(value)) {
28
+ return value;
29
+ }
30
+ return `'${value.replace(/'/g, `'\\''`)}'`;
31
+ }
32
+
25
33
  // src/util/agent-output.ts
26
34
  var import_error_utils = __toESM(require_dist(), 1);
27
35
  function buildCommandWithYes(argv, pkgName = packageName) {
@@ -30,6 +38,18 @@ function buildCommandWithYes(argv, pkgName = packageName) {
30
38
  const out = hasYes ? args : [...args, "--yes"];
31
39
  return `${pkgName} ${out.join(" ")}`.trim();
32
40
  }
41
+ function redactEnvValueArgs(argv) {
42
+ const redacted = [...argv];
43
+ for (let i = 0; i < redacted.length; i++) {
44
+ if (redacted[i] === "--value" && i + 1 < redacted.length) {
45
+ redacted[i + 1] = '"<value>"';
46
+ i++;
47
+ } else if (redacted[i].startsWith("--value=")) {
48
+ redacted[i] = '--value="<value>"';
49
+ }
50
+ }
51
+ return redacted;
52
+ }
33
53
  var GLOBAL_FLAG_NAMES = /* @__PURE__ */ new Set([
34
54
  "--cwd",
35
55
  "--config",
@@ -212,7 +232,7 @@ function buildEnvAddCommandWithPreservedArgs(argv, commandTemplate, pkgName = pa
212
232
  const base = `${pkgName} ${commandTemplate}`;
213
233
  if (preserved.length === 0)
214
234
  return base;
215
- return `${base} ${preserved.join(" ")}`;
235
+ return `${base} ${preserved.map(quoteArg).join(" ")}`;
216
236
  }
217
237
  function getPreservedArgsForEnvPull(argv) {
218
238
  return getPreservedArgsAfterEnvSubcommand(argv, ["pull"], 1);
@@ -228,7 +248,7 @@ function buildEnvRmCommandWithPreservedArgs(argv, commandTemplate, pkgName = pac
228
248
  const base = `${pkgName} ${commandTemplate}`;
229
249
  if (preserved.length === 0)
230
250
  return base;
231
- return `${base} ${preserved.join(" ")}`;
251
+ return `${base} ${preserved.map(quoteArg).join(" ")}`;
232
252
  }
233
253
  function getPreservedArgsForEnvUpdate(argv) {
234
254
  return getPreservedArgsAfterEnvSubcommand(argv, ["update"], 3);
@@ -241,7 +261,7 @@ function buildEnvUpdateCommandWithPreservedArgs(argv, commandTemplate, pkgName =
241
261
  const base = `${pkgName} ${commandTemplate}`;
242
262
  if (preserved.length === 0)
243
263
  return base;
244
- return `${base} ${preserved.join(" ")}`;
264
+ return `${base} ${preserved.map(quoteArg).join(" ")}`;
245
265
  }
246
266
  function buildCommandWithScope(argv, scopeSlug, pkgName = packageName) {
247
267
  const args = stripSensitiveAuthArgs(argv.slice(2));
@@ -663,7 +683,9 @@ var AGENT_ACTION = {
663
683
  };
664
684
 
665
685
  export {
686
+ quoteArg,
666
687
  buildCommandWithYes,
688
+ redactEnvValueArgs,
667
689
  omitGlobalFlagsFromArgs,
668
690
  buildIntegrationCommandTailFromArgv,
669
691
  buildCommandWithGlobalFlags,
@@ -6,19 +6,19 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  writeProjectSettings
9
- } from "./chunk-TDXNNIZ6.js";
9
+ } from "./chunk-JH4WQRIU.js";
10
10
  import {
11
11
  autoInstallVercelPlugin
12
- } from "./chunk-HT2XWSAJ.js";
12
+ } from "./chunk-7AEEQOD4.js";
13
13
  import {
14
14
  stamp_default
15
15
  } from "./chunk-64IF634X.js";
16
16
  import {
17
17
  pullCommand
18
- } from "./chunk-7XX4ZEOV.js";
18
+ } from "./chunk-FWKSJYDV.js";
19
19
  import {
20
20
  help
21
- } from "./chunk-RZ5NP6HN.js";
21
+ } from "./chunk-2YRAWYGE.js";
22
22
  import {
23
23
  VERCEL_DIR,
24
24
  VERCEL_DIR_PROJECT,
@@ -26,13 +26,13 @@ import {
26
26
  envPullCommandLogic,
27
27
  humanizePath,
28
28
  parseTarget
29
- } from "./chunk-E6LFKMI2.js";
29
+ } from "./chunk-VJ5NAOWB.js";
30
30
  import {
31
31
  TelemetryClient
32
- } from "./chunk-CYNB6LL4.js";
32
+ } from "./chunk-XNFHNTS2.js";
33
33
  import {
34
34
  printError
35
- } from "./chunk-CQJRLNTX.js";
35
+ } from "./chunk-AYLY3ZVL.js";
36
36
  import {
37
37
  parseArguments
38
38
  } from "./chunk-57RHXXXG.js";
@@ -43,7 +43,7 @@ import {
43
43
  emoji,
44
44
  output_manager_default,
45
45
  prependEmoji
46
- } from "./chunk-OX7KI3LF.js";
46
+ } from "./chunk-QFAS4OVW.js";
47
47
  import {
48
48
  require_source
49
49
  } from "./chunk-S7KYDPEM.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
 
8
8
  // src/util/constants.ts
9
- var SENTRY_DSN = void 0;
9
+ var SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@o205439.ingest.us.sentry.io/1323225";
10
10
  var BUILD_LABEL = void 0;
11
11
 
12
12
  export {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-Q2DGFCO7.js";
10
10
  import {
11
11
  output_manager_default
12
- } from "./chunk-OX7KI3LF.js";
12
+ } from "./chunk-QFAS4OVW.js";
13
13
  import {
14
14
  require_source
15
15
  } from "./chunk-S7KYDPEM.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-C5HKWXRR.js";
10
10
  import {
11
11
  ALIGNED_LABEL_WIDTH
12
- } from "./chunk-E6LFKMI2.js";
12
+ } from "./chunk-VJ5NAOWB.js";
13
13
  import {
14
14
  require_ms
15
15
  } from "./chunk-GGP5R3FU.js";
@@ -4488,6 +4488,16 @@ function wait(opts, delay = 300) {
4488
4488
  // src/util/output/create-output.ts
4489
4489
  var import_error_utils = __toESM(require_dist(), 1);
4490
4490
  import { inspect } from "util";
4491
+
4492
+ // src/util/output/chars.ts
4493
+ var chars = {
4494
+ tick: process.platform === "win32" ? "\u221A" : "\u2714",
4495
+ cross: process.platform === "win32" ? "\u2613" : "\u2718",
4496
+ fatal: process.platform === "win32" ? "x" : "\u2717"
4497
+ };
4498
+ var chars_default = chars;
4499
+
4500
+ // src/util/output/create-output.ts
4491
4501
  var IS_TEST = process.env.NODE_ENV === "test";
4492
4502
  var defaultChalkColorLevel = 0;
4493
4503
  var Output = class {
@@ -4532,6 +4542,13 @@ ${action}: ${link_default(details)}` : "")
4532
4542
  `);
4533
4543
  }
4534
4544
  };
4545
+ /**
4546
+ * Prints a fatal error. This does not exit; the caller owns the exit code.
4547
+ */
4548
+ this.fatal = (str) => {
4549
+ this.print(`${import_chalk3.default.red(chars_default.fatal)} ${str.replace(/\n/g, "\n ")}
4550
+ `);
4551
+ };
4535
4552
  this.prettyError = (err) => {
4536
4553
  return this.error(
4537
4554
  (0, import_error_utils.errorToString)(err),
@@ -4685,5 +4702,6 @@ export {
4685
4702
  eraseLines,
4686
4703
  emoji,
4687
4704
  prependEmoji,
4705
+ chars_default,
4688
4706
  output_manager_default
4689
4707
  };
@@ -6,17 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-NSU2BTRS.js";
9
+ } from "./chunk-2O5J3KMT.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
13
13
  validateAllProjectMutualExclusivity
14
- } from "./chunk-KQRVZWJU.js";
14
+ } from "./chunk-3T7WSWZH.js";
15
15
  import {
16
16
  AGENT_REASON,
17
17
  buildCommandWithGlobalFlags,
18
18
  outputAgentError
19
- } from "./chunk-L7CEMAJG.js";
19
+ } from "./chunk-NGGLYKNU.js";
20
20
 
21
21
  // src/commands/alerts/rules/parse-scope.ts
22
22
  async function parseRulesFlagsAndScope(client, flags, jsonOutput, command = "alerts rules ls") {
@@ -9,22 +9,19 @@ import {
9
9
  } from "./chunk-PRWJUY5U.js";
10
10
  import {
11
11
  progress
12
- } from "./chunk-TIWAL2YU.js";
12
+ } from "./chunk-GISTGGBO.js";
13
13
  import {
14
14
  isJSONObject,
15
15
  printIndications,
16
16
  require_dist as require_dist2,
17
17
  sleep
18
- } from "./chunk-4JTF6RD7.js";
18
+ } from "./chunk-LXZVOR6F.js";
19
19
  import {
20
20
  suggestNextCommands
21
- } from "./chunk-XBN2O34P.js";
21
+ } from "./chunk-7ST552E3.js";
22
22
  import {
23
23
  CommandTimeout
24
- } from "./chunk-QG4PCM45.js";
25
- import {
26
- showPluginTipIfNeeded
27
- } from "./chunk-HT2XWSAJ.js";
24
+ } from "./chunk-7HE63HCR.js";
28
25
  import {
29
26
  stamp_default
30
27
  } from "./chunk-64IF634X.js";
@@ -38,13 +35,16 @@ import {
38
35
  require_dist as require_dist3,
39
36
  require_pluralize,
40
37
  ua_default
41
- } from "./chunk-E6LFKMI2.js";
38
+ } from "./chunk-VJ5NAOWB.js";
39
+ import {
40
+ withGlobalFlags
41
+ } from "./chunk-NGGLYKNU.js";
42
42
  import {
43
43
  require_ms
44
44
  } from "./chunk-GGP5R3FU.js";
45
45
  import {
46
46
  responseError
47
- } from "./chunk-CQJRLNTX.js";
47
+ } from "./chunk-AYLY3ZVL.js";
48
48
  import {
49
49
  require_strip_ansi
50
50
  } from "./chunk-RKDCNQ4S.js";
@@ -64,10 +64,7 @@ import {
64
64
  UserAborted,
65
65
  isAPIError,
66
66
  require_bytes
67
- } from "./chunk-AWCID36T.js";
68
- import {
69
- getCommandName
70
- } from "./chunk-Q2DGFCO7.js";
67
+ } from "./chunk-BMKU5KEL.js";
71
68
  import {
72
69
  Headers,
73
70
  fetch,
@@ -82,7 +79,7 @@ import {
82
79
  prependEmoji,
83
80
  require_ansi_escapes,
84
81
  require_dist
85
- } from "./chunk-OX7KI3LF.js";
82
+ } from "./chunk-QFAS4OVW.js";
86
83
  import {
87
84
  require_source
88
85
  } from "./chunk-S7KYDPEM.js";
@@ -2080,7 +2077,7 @@ async function printDeploymentStatus(client, {
2080
2077
  aliasWarning,
2081
2078
  url,
2082
2079
  target
2083
- }, deployStamp, noWait, guidanceMode, isInit) {
2080
+ }, deployStamp, noWait, guidanceMode, isInit, gitConnectCommand) {
2084
2081
  indications = indications || [];
2085
2082
  let isStillBuilding = false;
2086
2083
  if (noWait) {
@@ -2127,18 +2124,54 @@ ${import_chalk6.default.green("\u2713")} ${import_chalk6.default.bold("Ready")}
2127
2124
  ) + newline;
2128
2125
  output_manager_default.print(message + link);
2129
2126
  }
2130
- if (guidanceMode) {
2127
+ if (gitConnectCommand || guidanceMode) {
2131
2128
  output_manager_default.print("\n");
2132
- suggestNextCommands(
2133
- [
2134
- readyState === "READY" ? getCommandName(`curl https://${url}`) : false,
2135
- getCommandName(`inspect ${url} --logs`),
2136
- getCommandName(`redeploy ${url}`),
2137
- target !== "production" ? getCommandName(`deploy --prod`) : false
2138
- ].filter(Boolean)
2139
- );
2129
+ const nextCommands = [];
2130
+ if (gitConnectCommand) {
2131
+ nextCommands.push({
2132
+ description: "Automatically deploy changes on every push by connecting Git",
2133
+ command: gitConnectCommand
2134
+ });
2135
+ }
2136
+ if (readyState === "READY") {
2137
+ nextCommands.push({
2138
+ description: "Check the deployment response",
2139
+ command: withGlobalFlags(client, `curl https://${url}`, {
2140
+ preserveProject: true
2141
+ })
2142
+ });
2143
+ nextCommands.push(
2144
+ {
2145
+ description: "View build logs",
2146
+ command: withGlobalFlags(client, `inspect ${url} --logs`, {
2147
+ preserveProject: true
2148
+ })
2149
+ },
2150
+ {
2151
+ description: "Create a new deployment from the same source",
2152
+ command: withGlobalFlags(client, `redeploy ${url}`, {
2153
+ preserveProject: true
2154
+ })
2155
+ }
2156
+ );
2157
+ if (target !== "production") {
2158
+ nextCommands.push({
2159
+ description: "Deploy the current project to production",
2160
+ command: withGlobalFlags(client, "deploy --prod", {
2161
+ preserveProject: true
2162
+ })
2163
+ });
2164
+ }
2165
+ } else {
2166
+ nextCommands.push({
2167
+ description: "Check deployment status",
2168
+ command: withGlobalFlags(client, `inspect ${url}`, {
2169
+ preserveProject: true
2170
+ })
2171
+ });
2172
+ }
2173
+ suggestNextCommands(nextCommands);
2140
2174
  }
2141
- await showPluginTipIfNeeded(client);
2142
2175
  return 0;
2143
2176
  }
2144
2177
 
@@ -9,11 +9,11 @@ import {
9
9
  require_dist2 as require_dist3,
10
10
  require_dist4,
11
11
  require_lib
12
- } from "./chunk-E6LFKMI2.js";
12
+ } from "./chunk-VJ5NAOWB.js";
13
13
  import {
14
14
  output_manager_default,
15
15
  require_dist
16
- } from "./chunk-OX7KI3LF.js";
16
+ } from "./chunk-QFAS4OVW.js";
17
17
  import {
18
18
  __commonJS,
19
19
  __require,
@@ -13,21 +13,21 @@ import {
13
13
  import {
14
14
  detectExplicitScope,
15
15
  resolveProjectContext
16
- } from "./chunk-E6LFKMI2.js";
16
+ } from "./chunk-VJ5NAOWB.js";
17
17
  import {
18
18
  AGENT_REASON,
19
19
  AGENT_STATUS,
20
20
  outputAgentError
21
- } from "./chunk-L7CEMAJG.js";
21
+ } from "./chunk-NGGLYKNU.js";
22
22
  import {
23
23
  printError
24
- } from "./chunk-CQJRLNTX.js";
24
+ } from "./chunk-AYLY3ZVL.js";
25
25
  import {
26
26
  isAPIError
27
- } from "./chunk-AWCID36T.js";
27
+ } from "./chunk-BMKU5KEL.js";
28
28
  import {
29
29
  output_manager_default
30
- } from "./chunk-OX7KI3LF.js";
30
+ } from "./chunk-QFAS4OVW.js";
31
31
 
32
32
  // src/commands/traces/config/errors.ts
33
33
  function messageFor(err) {