vercel 56.2.1 → 56.3.1

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 (86) hide show
  1. package/dist/chunks/{add-YIAPBLSF.js → add-ANWCBEDB.js} +10 -13
  2. package/dist/chunks/{add-ZAQLTF5W.js → add-FWXAFWCU.js} +9 -12
  3. package/dist/chunks/{chunk-52V5NDUN.js → chunk-26VWIAO5.js} +2 -2
  4. package/dist/chunks/{chunk-2I34TRQZ.js → chunk-2E3ZC3JA.js} +2 -2
  5. package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
  6. package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
  7. package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
  8. package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
  9. package/dist/chunks/{chunk-5HNYJHOB.js → chunk-5R5FS7WB.js} +1 -1
  10. package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
  11. package/dist/chunks/{chunk-HIO4M75R.js → chunk-74TJ5D35.js} +8 -11
  12. package/dist/chunks/{chunk-EPBUWIAO.js → chunk-7ZECC3BE.js} +48 -24
  13. package/dist/chunks/{chunk-JF7LPEBD.js → chunk-AHSE4X6V.js} +1 -1
  14. package/dist/chunks/{chunk-7OJJKCSW.js → chunk-D7SLHLED.js} +6 -10
  15. package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
  16. package/dist/chunks/{chunk-75PKWYOS.js → chunk-ETWY3HX7.js} +99 -74
  17. package/dist/chunks/{chunk-MYD7N6MH.js → chunk-F3B65VPT.js} +13 -3
  18. package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
  19. package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
  20. package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-IAEXF3FY.js} +8 -8
  21. package/dist/chunks/{chunk-DD6D5J7E.js → chunk-JAY74MG2.js} +9 -13
  22. package/dist/chunks/{chunk-KXVQEPTA.js → chunk-JEWA7HG3.js} +3 -5
  23. package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
  24. package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
  25. package/dist/chunks/{chunk-YKJA5TVC.js → chunk-M5LOXLMK.js} +3 -5
  26. package/dist/chunks/{chunk-GPVU6JRS.js → chunk-NMAHBCNK.js} +9 -7
  27. package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
  28. package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
  29. package/dist/chunks/{chunk-DDEPCAGE.js → chunk-RGOP4OYL.js} +558 -164
  30. package/dist/chunks/{chunk-NULWLKT7.js → chunk-SAEAR237.js} +4 -4
  31. package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
  32. package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
  33. package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
  34. package/dist/chunks/{chunk-PASZMRTZ.js → chunk-UOB64NBX.js} +5 -5
  35. package/dist/chunks/{chunk-7TJLLZPN.js → chunk-VO6PK3ZA.js} +6 -10
  36. package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
  37. package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
  38. package/dist/chunks/{chunk-UESEGACQ.js → chunk-XOED7Y6Z.js} +3 -3
  39. package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
  40. package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
  41. package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-ELXMKFUY.js} +4 -4
  42. package/dist/chunks/{delete-NCMDC3IU.js → delete-BO3RQ3F6.js} +14 -14
  43. package/dist/chunks/{disable-Z7DXY4AY.js → disable-WRXXRGYR.js} +14 -13
  44. package/dist/chunks/{discard-4ILK3ULP.js → discard-5XOTKSVP.js} +13 -12
  45. package/dist/chunks/{edit-ROJQCTWR.js → edit-ML2P3MKK.js} +17 -18
  46. package/dist/chunks/{enable-TAVCLAEC.js → enable-E5YCEICZ.js} +14 -13
  47. package/dist/chunks/{export-YTSIGJFX.js → export-EUFPKG5T.js} +15 -14
  48. package/dist/chunks/{image-LORSHERP.js → image-5WOBJQFO.js} +6 -8
  49. package/dist/chunks/{inspect-OHDU2SVS.js → inspect-7PJE37AJ.js} +8 -10
  50. package/dist/chunks/{inspect-L4UIWOXO.js → inspect-BX26XAK2.js} +11 -15
  51. package/dist/chunks/{inspect-A2X7RTP4.js → inspect-I3ZNL35B.js} +8 -10
  52. package/dist/chunks/{inspect-5C4UHSCT.js → inspect-W4SOI7QI.js} +10 -12
  53. package/dist/chunks/{list-FGVDMSFN.js → list-44G7AUFR.js} +8 -10
  54. package/dist/chunks/{list-P2B5MHON.js → list-VLFAOPR5.js} +10 -13
  55. package/dist/chunks/{login-4BK3VGII.js → login-CL57KXDR.js} +11 -14
  56. package/dist/chunks/{ls-WDRFGE2J.js → ls-42JFBIDV.js} +12 -15
  57. package/dist/chunks/{ls-YXKRRYTL.js → ls-EZRL6SGP.js} +10 -13
  58. package/dist/chunks/{ls-NU4D6TLG.js → ls-KIAXSLDB.js} +10 -13
  59. package/dist/chunks/{ls-RAC5LMTR.js → ls-VD2DNABR.js} +9 -12
  60. package/dist/chunks/{publish-DGF2TQCQ.js → publish-C3QAGQJ7.js} +13 -12
  61. package/dist/chunks/{query-NWW6RDHK.js → query-XC3Y3EBD.js} +10 -12
  62. package/dist/chunks/{reorder-TTZBKCEB.js → reorder-L56M5KP3.js} +17 -16
  63. package/dist/chunks/{restore-DG3LZMHQ.js → restore-E5LGXKS3.js} +19 -18
  64. package/dist/chunks/{rm-7WXXLTXF.js → rm-AG3FDPTQ.js} +10 -13
  65. package/dist/chunks/{rm-2VBE4C2V.js → rm-EF4HUVO2.js} +9 -12
  66. package/dist/chunks/{rm-U2DFRDKE.js → rm-KGRSF2OY.js} +8 -11
  67. package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-FRDI2PJF.js} +9 -12
  68. package/dist/chunks/{rules-DABNOUNG.js → rules-OEOYTZ6U.js} +9 -11
  69. package/dist/chunks/{schema-4RRRUUOO.js → schema-OEWP27BI.js} +11 -12
  70. package/dist/chunks/{tags-MLX3AHHK.js → tags-RUHWH6XO.js} +5 -7
  71. package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
  72. package/dist/chunks/{update-YXH7WWTN.js → update-BEXGZY7H.js} +9 -12
  73. package/dist/commands/build/index.js +26 -31
  74. package/dist/commands/deploy/index.js +61 -77
  75. package/dist/commands/dev/index.js +193 -159
  76. package/dist/commands/env/index.js +70 -47
  77. package/dist/commands/link/index.js +25 -29
  78. package/dist/commands/list/index.js +13 -17
  79. package/dist/commands-bulk.js +637 -620
  80. package/dist/index.js +23 -25
  81. package/dist/version.mjs +1 -1
  82. package/package.json +21 -21
  83. package/dist/chunks/chunk-DWU7JOO6.js +0 -158
  84. package/dist/chunks/chunk-IC4YEIGW.js +0 -101
  85. package/dist/chunks/chunk-IMUF5MGV.js +0 -81
  86. package/dist/chunks/chunk-SGL3NMOP.js +0 -86
@@ -13,10 +13,10 @@ import {
13
13
  purchaseDomainIfAvailable,
14
14
  require_cjs,
15
15
  setupDomain
16
- } from "../../chunks/chunk-DD6D5J7E.js";
16
+ } from "../../chunks/chunk-JAY74MG2.js";
17
17
  import {
18
18
  readLocalConfig
19
- } from "../../chunks/chunk-NULWLKT7.js";
19
+ } from "../../chunks/chunk-SAEAR237.js";
20
20
  import {
21
21
  highlight
22
22
  } from "../../chunks/chunk-V5P25P7F.js";
@@ -24,10 +24,6 @@ import "../../chunks/chunk-XBN2O34P.js";
24
24
  import {
25
25
  parseMeta
26
26
  } from "../../chunks/chunk-EKPSCRJZ.js";
27
- import {
28
- getDeployment,
29
- mapCertError
30
- } from "../../chunks/chunk-SGL3NMOP.js";
31
27
  import {
32
28
  validateJsonOutput
33
29
  } from "../../chunks/chunk-XPKWKPWA.js";
@@ -40,20 +36,20 @@ import {
40
36
  deprecatedArchiveSplitTgz,
41
37
  getCommandAliases,
42
38
  initSubcommand
43
- } from "../../chunks/chunk-EPBUWIAO.js";
44
- import "../../chunks/chunk-5OT26JZN.js";
45
- import "../../chunks/chunk-7C7MMT4J.js";
46
- import "../../chunks/chunk-RLJA2KI7.js";
47
- import "../../chunks/chunk-JJWESW5Y.js";
48
- import "../../chunks/chunk-DREO3DFB.js";
49
- import "../../chunks/chunk-5AJNUXWP.js";
50
- import "../../chunks/chunk-7S3QUMIG.js";
51
- import "../../chunks/chunk-22GUZ5KG.js";
52
- import "../../chunks/chunk-IDMKFYEA.js";
53
- import "../../chunks/chunk-HA7C7SDO.js";
39
+ } from "../../chunks/chunk-7ZECC3BE.js";
40
+ import "../../chunks/chunk-3VS4DTAU.js";
41
+ import "../../chunks/chunk-GIL3VAUR.js";
42
+ import "../../chunks/chunk-FYQPTH5C.js";
43
+ import "../../chunks/chunk-4G6QZSBL.js";
44
+ import "../../chunks/chunk-VZSZBD4V.js";
45
+ import "../../chunks/chunk-3PKFXNJZ.js";
46
+ import "../../chunks/chunk-YS6EDZHB.js";
47
+ import "../../chunks/chunk-STJJ3DFO.js";
48
+ import "../../chunks/chunk-OGG6UBXK.js";
49
+ import "../../chunks/chunk-LHFNIZ2P.js";
54
50
  import {
55
51
  pickOverrides
56
- } from "../../chunks/chunk-JF7LPEBD.js";
52
+ } from "../../chunks/chunk-AHSE4X6V.js";
57
53
  import "../../chunks/chunk-NJUPUGOE.js";
58
54
  import {
59
55
  stamp_default
@@ -61,27 +57,25 @@ import {
61
57
  import "../../chunks/chunk-VXYGCOKL.js";
62
58
  import {
63
59
  ensureLink
64
- } from "../../chunks/chunk-HIO4M75R.js";
60
+ } from "../../chunks/chunk-74TJ5D35.js";
65
61
  import {
66
62
  validatePaths,
67
63
  validateRootDirectory
68
- } from "../../chunks/chunk-PASZMRTZ.js";
69
- import "../../chunks/chunk-UESEGACQ.js";
70
- import "../../chunks/chunk-IMUF5MGV.js";
71
- import {
72
- AGENT_STATUS
73
- } from "../../chunks/chunk-IC4YEIGW.js";
74
- import "../../chunks/chunk-YKJA5TVC.js";
64
+ } from "../../chunks/chunk-UOB64NBX.js";
65
+ import "../../chunks/chunk-XOED7Y6Z.js";
66
+ import "../../chunks/chunk-M5LOXLMK.js";
75
67
  import {
76
68
  help
77
- } from "../../chunks/chunk-QY63UKTP.js";
69
+ } from "../../chunks/chunk-DMSLNAVH.js";
78
70
  import {
79
71
  table
80
- } from "../../chunks/chunk-QEEGXNFK.js";
81
- import "../../chunks/chunk-DWU7JOO6.js";
72
+ } from "../../chunks/chunk-NZRWTCRM.js";
82
73
  import {
83
74
  compileVercelConfig,
84
75
  createGitMeta,
76
+ getDeployment,
77
+ isOwnerLookupUnavailableLink,
78
+ mapCertError,
85
79
  param,
86
80
  parseEnv,
87
81
  parseTarget,
@@ -89,19 +83,19 @@ import {
89
83
  require_dist as require_dist2,
90
84
  require_frameworks,
91
85
  require_lib
92
- } from "../../chunks/chunk-DDEPCAGE.js";
86
+ } from "../../chunks/chunk-RGOP4OYL.js";
93
87
  import {
94
- outputAgentError
95
- } from "../../chunks/chunk-CB3I3QIT.js";
88
+ AGENT_STATUS,
89
+ outputAgentError,
90
+ withGlobalFlags
91
+ } from "../../chunks/chunk-UDWRZXIT.js";
96
92
  import {
97
93
  TelemetryClient
98
94
  } from "../../chunks/chunk-ECCWJHC6.js";
99
95
  import {
100
- getCommandNameWithGlobalFlags,
101
- getFlagsSpecification,
102
96
  parseArguments,
103
97
  printError
104
- } from "../../chunks/chunk-EHTPDXTS.js";
98
+ } from "../../chunks/chunk-SZXT3PDQ.js";
105
99
  import {
106
100
  AliasDomainConfigured,
107
101
  BuildError,
@@ -125,9 +119,10 @@ import {
125
119
  UserAborted,
126
120
  code,
127
121
  getCommandName,
122
+ getFlagsSpecification,
128
123
  isAPIError,
129
124
  require_bytes
130
- } from "../../chunks/chunk-P6AK7SVK.js";
125
+ } from "../../chunks/chunk-KSSNLCL4.js";
131
126
  import "../../chunks/chunk-P4QNYOFB.js";
132
127
  import "../../chunks/chunk-52QYYTM5.js";
133
128
  import {
@@ -878,7 +873,7 @@ async function handleInitDeployment(client, telemetryClient) {
878
873
  message: deployment.message,
879
874
  next: [
880
875
  {
881
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
876
+ command: withGlobalFlags(client, "deploy"),
882
877
  when: "retry deploy"
883
878
  }
884
879
  ]
@@ -905,7 +900,7 @@ async function handleInitDeployment(client, telemetryClient) {
905
900
  message: msg,
906
901
  next: [
907
902
  {
908
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
903
+ command: withGlobalFlags(client, "deploy"),
909
904
  when: "retry deploy"
910
905
  }
911
906
  ]
@@ -944,7 +939,7 @@ async function handleInitDeployment(client, telemetryClient) {
944
939
  deployment: deploymentJson,
945
940
  next: [
946
941
  {
947
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
942
+ command: withGlobalFlags(client, "deploy"),
948
943
  when: "retry deploy"
949
944
  }
950
945
  ]
@@ -984,7 +979,7 @@ async function handleInitDeployment(client, telemetryClient) {
984
979
  deployment: deploymentJson,
985
980
  next: [
986
981
  {
987
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
982
+ command: withGlobalFlags(client, "deploy"),
988
983
  when: "retry deploy"
989
984
  }
990
985
  ]
@@ -1006,7 +1001,7 @@ async function handleInitDeployment(client, telemetryClient) {
1006
1001
  message: "Uploading failed. Please try again.",
1007
1002
  next: [
1008
1003
  {
1009
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1004
+ command: withGlobalFlags(client, "deploy"),
1010
1005
  when: "retry deploy"
1011
1006
  }
1012
1007
  ]
@@ -1031,17 +1026,11 @@ async function handleInitDeployment(client, telemetryClient) {
1031
1026
  message: `Deployment ${deployment.url} ready.`,
1032
1027
  next: [
1033
1028
  {
1034
- command: getCommandNameWithGlobalFlags(
1035
- `inspect ${deployment.url}`,
1036
- client.argv
1037
- ),
1029
+ command: withGlobalFlags(client, `inspect ${deployment.url}`),
1038
1030
  when: "Inspect deployment"
1039
1031
  },
1040
1032
  {
1041
- command: getCommandNameWithGlobalFlags(
1042
- "deploy --prod",
1043
- client.argv
1044
- ),
1033
+ command: withGlobalFlags(client, "deploy --prod"),
1045
1034
  when: "Promote to production"
1046
1035
  }
1047
1036
  ]
@@ -1120,9 +1109,9 @@ async function handleContinueSubcommand(client, telemetryClient) {
1120
1109
  message: "Missing required --id flag. Provide the deployment ID to continue.",
1121
1110
  next: [
1122
1111
  {
1123
- command: getCommandNameWithGlobalFlags(
1124
- "deploy continue --id <deployment-id>",
1125
- client.argv
1112
+ command: withGlobalFlags(
1113
+ client,
1114
+ "deploy continue --id <deployment-id>"
1126
1115
  ),
1127
1116
  when: "provide deployment ID"
1128
1117
  }
@@ -1191,13 +1180,13 @@ async function handleContinueSubcommand(client, telemetryClient) {
1191
1180
  message: 'No prebuilt output found in ".vercel/output". Run build first.',
1192
1181
  next: [
1193
1182
  {
1194
- command: getCommandNameWithGlobalFlags("build", client.argv),
1183
+ command: withGlobalFlags(client, "build"),
1195
1184
  when: "generate prebuilt output"
1196
1185
  },
1197
1186
  {
1198
- command: getCommandNameWithGlobalFlags(
1199
- `deploy continue --id ${idFlag}`,
1200
- client.argv
1187
+ command: withGlobalFlags(
1188
+ client,
1189
+ `deploy continue --id ${idFlag}`
1201
1190
  ),
1202
1191
  when: "deploy prebuilt output"
1203
1192
  }
@@ -1385,6 +1374,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1385
1374
  projectName: projectNameOrId ?? parsedArguments.flags["--name"] ?? localConfig?.name,
1386
1375
  failIfNotFound: !!projectNameOrId,
1387
1376
  requireExistingLink: parsedArguments.flags["--dry"],
1377
+ allowOwnerLookupFallback: true,
1388
1378
  v0: isV0
1389
1379
  });
1390
1380
  if (typeof link === "number") {
@@ -1441,7 +1431,8 @@ async function handleDefaultDeploy(client, telemetryClient) {
1441
1431
  }
1442
1432
  }
1443
1433
  const contextName = org.slug;
1444
- client.config.currentTeam = org.type === "team" ? org.id : void 0;
1434
+ const currentTeam = isOwnerLookupUnavailableLink(link) || org.type !== "team" ? void 0 : org.id;
1435
+ client.config.currentTeam = currentTeam;
1445
1436
  if (rootDirectory && await validateRootDirectory(
1446
1437
  cwd,
1447
1438
  join2(cwd, rootDirectory),
@@ -1556,7 +1547,6 @@ async function handleDefaultDeploy(client, telemetryClient) {
1556
1547
  }
1557
1548
  const regionFlag = (parsedArguments.flags["--regions"] || "").split(",").map((s) => s.trim()).filter(Boolean);
1558
1549
  const regions = regionFlag.length > 0 ? regionFlag : localConfig.regions;
1559
- const currentTeam = org.type === "team" ? org.id : void 0;
1560
1550
  const now = new Now({
1561
1551
  client,
1562
1552
  currentTeam
@@ -1652,7 +1642,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1652
1642
  message: deployment.message,
1653
1643
  next: [
1654
1644
  {
1655
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1645
+ command: withGlobalFlags(client, "deploy"),
1656
1646
  when: "retry deploy"
1657
1647
  }
1658
1648
  ]
@@ -1679,7 +1669,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1679
1669
  message: msg,
1680
1670
  next: [
1681
1671
  {
1682
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1672
+ command: withGlobalFlags(client, "deploy"),
1683
1673
  when: "retry deploy"
1684
1674
  }
1685
1675
  ]
@@ -1718,7 +1708,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1718
1708
  deployment: deploymentJson,
1719
1709
  next: [
1720
1710
  {
1721
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1711
+ command: withGlobalFlags(client, "deploy"),
1722
1712
  when: "retry deploy"
1723
1713
  }
1724
1714
  ]
@@ -1758,7 +1748,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1758
1748
  deployment: deploymentJson,
1759
1749
  next: [
1760
1750
  {
1761
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1751
+ command: withGlobalFlags(client, "deploy"),
1762
1752
  when: "retry deploy"
1763
1753
  }
1764
1754
  ]
@@ -1783,7 +1773,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
1783
1773
  message: "Uploading failed. Please try again.",
1784
1774
  next: [
1785
1775
  {
1786
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1776
+ command: withGlobalFlags(client, "deploy"),
1787
1777
  when: "retry deploy"
1788
1778
  }
1789
1779
  ]
@@ -1814,7 +1804,7 @@ ${err.stack}`);
1814
1804
  message: err.message,
1815
1805
  next: [
1816
1806
  {
1817
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1807
+ command: withGlobalFlags(client, "deploy"),
1818
1808
  when: "retry deploy"
1819
1809
  }
1820
1810
  ]
@@ -1840,7 +1830,7 @@ ${err.stack}`);
1840
1830
  message: err.message,
1841
1831
  next: [
1842
1832
  {
1843
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1833
+ command: withGlobalFlags(client, "deploy"),
1844
1834
  when: "retry deploy"
1845
1835
  }
1846
1836
  ]
@@ -1886,7 +1876,7 @@ ${err.stack}`);
1886
1876
  message: err instanceof Error ? err.message : String(err),
1887
1877
  next: [
1888
1878
  {
1889
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1879
+ command: withGlobalFlags(client, "deploy"),
1890
1880
  when: "retry deploy"
1891
1881
  }
1892
1882
  ]
@@ -1971,7 +1961,7 @@ ${err.stack}`);
1971
1961
  message,
1972
1962
  next: [
1973
1963
  {
1974
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1964
+ command: withGlobalFlags(client, "deploy"),
1975
1965
  when: "retry deploy"
1976
1966
  }
1977
1967
  ]
@@ -1994,7 +1984,7 @@ ${err.stack}`);
1994
1984
  message: err instanceof Error ? err.message : String(err),
1995
1985
  next: [
1996
1986
  {
1997
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
1987
+ command: withGlobalFlags(client, "deploy"),
1998
1988
  when: "retry deploy"
1999
1989
  }
2000
1990
  ]
@@ -2017,17 +2007,11 @@ ${err.stack}`);
2017
2007
  message: `Deployment ${deployment.url} ready.`,
2018
2008
  next: [
2019
2009
  {
2020
- command: getCommandNameWithGlobalFlags(
2021
- `inspect ${deployment.url}`,
2022
- client.argv
2023
- ),
2010
+ command: withGlobalFlags(client, `inspect ${deployment.url}`),
2024
2011
  when: "Inspect deployment"
2025
2012
  },
2026
2013
  {
2027
- command: getCommandNameWithGlobalFlags(
2028
- "deploy --prod",
2029
- client.argv
2030
- ),
2014
+ command: withGlobalFlags(client, "deploy --prod"),
2031
2015
  when: "Promote to production"
2032
2016
  }
2033
2017
  ]
@@ -2446,7 +2430,7 @@ async function handleFailedCheckRuns(client, deployment, asJson) {
2446
2430
  failedCheckRuns: failedCheckRunsWithLogs,
2447
2431
  next: [
2448
2432
  {
2449
- command: getCommandNameWithGlobalFlags("deploy", client.argv),
2433
+ command: withGlobalFlags(client, "deploy"),
2450
2434
  when: "retry deploy after fixing check failures"
2451
2435
  }
2452
2436
  ]