vercel 58.4.0 → 58.5.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 (91) hide show
  1. package/dist/chunks/{add-IOYS5JE4.js → add-2KSAN7EK.js} +43 -8
  2. package/dist/chunks/{add-JTIGJQ75.js → add-HTKUQ3KF.js} +3 -3
  3. package/dist/chunks/{add-QKKUAXFL.js → add-Y3ACMZQ3.js} +3 -3
  4. package/dist/chunks/{build-ZHZDIIS5.js → build-SOTUMEPT.js} +3 -3
  5. package/dist/chunks/{chunk-MAHXF73X.js → chunk-3L2YLLHC.js} +1 -1
  6. package/dist/chunks/{chunk-G47QOVJ7.js → chunk-4PZ2IIZI.js} +1 -1
  7. package/dist/chunks/{chunk-JHIWAM64.js → chunk-4ZZI2JPE.js} +1 -1
  8. package/dist/chunks/{chunk-WUMURQKS.js → chunk-7RTO3VPE.js} +122 -44
  9. package/dist/chunks/{chunk-SWHPI3G7.js → chunk-CVZWB2MA.js} +1 -1
  10. package/dist/chunks/{chunk-56QCZ4RL.js → chunk-FQ4R66UG.js} +1 -1
  11. package/dist/chunks/chunk-GE5R7SYE.js +85 -0
  12. package/dist/chunks/{chunk-DI54DSTV.js → chunk-GKLT2ZGC.js} +210 -60
  13. package/dist/chunks/{chunk-NJUPUGOE.js → chunk-HT2XWSAJ.js} +1 -1
  14. package/dist/chunks/chunk-I2XE3GMB.js +21 -0
  15. package/dist/chunks/{chunk-2ILCTO6A.js → chunk-I5F5AE2Q.js} +2 -2
  16. package/dist/chunks/{chunk-GJ5DKYDQ.js → chunk-IKIPDMQT.js} +7 -5
  17. package/dist/chunks/{chunk-U7Y5DZXS.js → chunk-IRX26ZL5.js} +2 -2
  18. package/dist/chunks/{chunk-U5E5J56I.js → chunk-LTEFJ3VD.js} +3 -3
  19. package/dist/chunks/{chunk-PVWXPWLQ.js → chunk-LXRK7KPA.js} +1255 -1371
  20. package/dist/chunks/{chunk-27FZN5LR.js → chunk-MEOBIY2L.js} +3 -3
  21. package/dist/chunks/chunk-MXLA3VQS.js +20 -0
  22. package/dist/chunks/{chunk-QTXQOWOJ.js → chunk-NXLNRLL7.js} +2 -2
  23. package/dist/chunks/{chunk-IBSUQT6H.js → chunk-OQ6UFVGM.js} +1 -1
  24. package/dist/chunks/{chunk-OWY3MF3E.js → chunk-PGH6RJJF.js} +7 -3
  25. package/dist/chunks/{chunk-DXS2X7KK.js → chunk-QS5I33VI.js} +6 -4
  26. package/dist/chunks/{chunk-EBLH23AQ.js → chunk-TEQKKTJQ.js} +4 -7
  27. package/dist/chunks/{chunk-Z5ZQJ5VJ.js → chunk-TJJ562C5.js} +3 -0
  28. package/dist/chunks/{chunk-ZQR5RIAX.js → chunk-TQE7DRGH.js} +5 -5
  29. package/dist/chunks/{chunk-4UYKSYKQ.js → chunk-UMA66MKW.js} +66 -2
  30. package/dist/chunks/chunk-V5P25P7F.js +22 -0
  31. package/dist/chunks/{chunk-AZS5CLCN.js → chunk-YFQSZI5Q.js} +1 -1
  32. package/dist/chunks/{chunk-CAWBO7SQ.js → chunk-Z3VYQ7JP.js} +9 -7
  33. package/dist/chunks/chunk-ZHDQMUK4.js +96 -0
  34. package/dist/chunks/{chunk-KWOWGI7Z.js → chunk-ZYCVYZSR.js} +1 -1
  35. package/dist/chunks/{clear-R3DI3AA6.js → clear-GLMDDDUR.js} +3 -3
  36. package/dist/chunks/{compile-vercel-config-NEC63GCN.js → compile-vercel-config-7JTL7U5E.js} +2 -2
  37. package/dist/chunks/config-validator.mjs +1 -1
  38. package/dist/chunks/{constants-3FSSR6E7.js → constants-T6BULVX6.js} +1 -1
  39. package/dist/chunks/{delete-BYB66ET3.js → delete-HE6FCDYS.js} +3 -3
  40. package/dist/chunks/{delete-DIZK7FRU.js → delete-M3DCAYTX.js} +3 -3
  41. package/dist/chunks/{disable-HW6CHEVD.js → disable-LHOHFHGU.js} +3 -3
  42. package/dist/chunks/{discard-3UG4K6G2.js → discard-D2SI77HA.js} +3 -3
  43. package/dist/chunks/{edit-EY7LRITZ.js → edit-PSUYL34C.js} +3 -3
  44. package/dist/chunks/{edit-LD5G6GL3.js → edit-XCJDQOZR.js} +4 -4
  45. package/dist/chunks/{enable-MDNLCSAW.js → enable-QXXBU3QH.js} +3 -3
  46. package/dist/chunks/{export-25X6M77L.js → export-CRCAJ72L.js} +3 -3
  47. package/dist/chunks/{image-YQWZLM6Z.js → image-4YES44D3.js} +4 -4
  48. package/dist/chunks/{inspect-H7GEYNIF.js → inspect-CFJWOYWD.js} +4 -4
  49. package/dist/chunks/{inspect-KYAB4F3P.js → inspect-FEW47KAZ.js} +3 -3
  50. package/dist/chunks/{inspect-73FISCNZ.js → inspect-GYUTUSOP.js} +6 -6
  51. package/dist/chunks/{inspect-QVI6UVBJ.js → inspect-JIGB2JK7.js} +3 -3
  52. package/dist/chunks/{inspect-R6ADYTPB.js → inspect-WUT7EW6R.js} +3 -3
  53. package/dist/chunks/{list-SRKON4E4.js → list-4N6HI5LH.js} +6 -6
  54. package/dist/chunks/{list-FTNOS4FT.js → list-W4ZLROFI.js} +4 -4
  55. package/dist/chunks/{list-SDNYJJ4M.js → list-ZQOF2B2L.js} +2 -2
  56. package/dist/chunks/{login-7NR7N4ZF.js → login-FWYKZ642.js} +3 -3
  57. package/dist/chunks/{ls-T276Z2QR.js → ls-7YYHSZIR.js} +3 -3
  58. package/dist/chunks/{ls-BDLEGFY3.js → ls-AV2WYGNW.js} +3 -3
  59. package/dist/chunks/{ls-TWHG22W7.js → ls-DD7RQ7KH.js} +3 -3
  60. package/dist/chunks/{ls-PZHHHKZ7.js → ls-V7E37ERN.js} +7 -7
  61. package/dist/chunks/{ls-NIEZW5O3.js → ls-VOD4NK6A.js} +3 -3
  62. package/dist/chunks/{open-TNEPXGZK.js → open-YEJQVMYZ.js} +3 -3
  63. package/dist/chunks/{permissions-KI2JGJSN.js → permissions-OJCRKNGQ.js} +5 -5
  64. package/dist/chunks/{publish-NBGFOHLV.js → publish-XDKQYIKH.js} +3 -3
  65. package/dist/chunks/{push-SPPWXOAJ.js → push-Z2EQUVOV.js} +3 -3
  66. package/dist/chunks/{query-LS4PEYHG.js → query-KEICHLVN.js} +2 -2
  67. package/dist/chunks/{reorder-UTQ632H5.js → reorder-Z6YCND2X.js} +3 -3
  68. package/dist/chunks/{reply-QFGX5YBV.js → reply-CIWFPTEK.js} +3 -3
  69. package/dist/chunks/{resolve-ZDO5BCI7.js → resolve-BYDSKVYN.js} +3 -3
  70. package/dist/chunks/{restore-T77AKNZ2.js → restore-2KP5DLEC.js} +3 -3
  71. package/dist/chunks/{rm-3RTVWGWR.js → rm-5Z75EGOZ.js} +3 -3
  72. package/dist/chunks/{rm-D24FHFMF.js → rm-FRKS6Y2G.js} +5 -5
  73. package/dist/chunks/{rm-JTOFOKOZ.js → rm-RJOWQHQV.js} +3 -3
  74. package/dist/chunks/{rm-IQPLVKJR.js → rm-TNCPDKEX.js} +3 -3
  75. package/dist/chunks/{rule-inspect-VVHTVTRD.js → rule-inspect-NOSNKD63.js} +7 -14
  76. package/dist/chunks/{rules-EEWMLKRI.js → rules-THS42KX4.js} +10 -7
  77. package/dist/chunks/{schema-XLJLZ4OE.js → schema-MDLX6ZDL.js} +2 -2
  78. package/dist/chunks/schema-R54OXIXC.js +426 -0
  79. package/dist/chunks/{tags-5DZYPJDP.js → tags-NDPHPWME.js} +3 -3
  80. package/dist/chunks/{update-YFXZDNIV.js → update-YAN3MGMW.js} +37 -5
  81. package/dist/commands/build/index.js +61 -22
  82. package/dist/commands/deploy/index.js +27 -17
  83. package/dist/commands/dev/index.js +47 -12
  84. package/dist/commands/env/index.js +284 -20
  85. package/dist/commands/link/index.js +9 -9
  86. package/dist/commands/list/index.js +3 -3
  87. package/dist/commands-bulk.js +1966 -1264
  88. package/dist/index.js +23 -20
  89. package/dist/version.mjs +1 -1
  90. package/package.json +47 -54
  91. package/dist/chunks/chunk-V4RMJKQP.js +0 -36
@@ -4,27 +4,42 @@ import { dirname as __dirname_ } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
+ import {
8
+ parseCustomAlertQueryBody,
9
+ resolveCustomAlertProjectName,
10
+ setMissingCustomAlertProjectScope
11
+ } from "./chunk-ZHDQMUK4.js";
12
+ import {
13
+ isCustomAlertRule
14
+ } from "./chunk-TEQKKTJQ.js";
7
15
  import {
8
16
  emitRulesArgParseError,
9
17
  handleRulesApiError,
10
18
  parseRulesFlagsAndScope,
11
19
  rulesCollectionPath
12
- } from "./chunk-U7Y5DZXS.js";
13
- import "./chunk-DXS2X7KK.js";
20
+ } from "./chunk-IRX26ZL5.js";
21
+ import "./chunk-QS5I33VI.js";
22
+ import "./chunk-A3NYPUKZ.js";
14
23
  import "./chunk-BUZRVER7.js";
24
+ import "./chunk-FGDKMNEN.js";
25
+ import "./chunk-GKLT2ZGC.js";
26
+ import "./chunk-V5P25P7F.js";
27
+ import "./chunk-RQ7H43CJ.js";
15
28
  import {
16
29
  validateJsonOutput
17
30
  } from "./chunk-XPKWKPWA.js";
18
31
  import {
19
32
  rulesAddSubcommand
20
- } from "./chunk-4UYKSYKQ.js";
21
- import "./chunk-PVWXPWLQ.js";
33
+ } from "./chunk-UMA66MKW.js";
34
+ import "./chunk-GE5R7SYE.js";
35
+ import "./chunk-KT4XXKJK.js";
36
+ import "./chunk-LXRK7KPA.js";
22
37
  import "./chunk-ECCWJHC6.js";
23
38
  import {
24
39
  AGENT_REASON,
25
40
  buildCommandWithGlobalFlags,
26
41
  outputAgentError
27
- } from "./chunk-Z5ZQJ5VJ.js";
42
+ } from "./chunk-TJJ562C5.js";
28
43
  import {
29
44
  printError
30
45
  } from "./chunk-KBEX5MYS.js";
@@ -148,11 +163,31 @@ async function add(client, argv) {
148
163
  output_manager_default.error("Invalid JSON in --body file.");
149
164
  return 1;
150
165
  }
166
+ const parsedCustomAlertQuery = parseCustomAlertQueryBody(client, body);
167
+ if (typeof parsedCustomAlertQuery === "number") {
168
+ return parsedCustomAlertQuery;
169
+ }
170
+ const customAlertRule = isCustomAlertRule(body);
171
+ if (!customAlertRule && parsedArgs.flags["--project"] && scope.projectId && body.projectId === void 0) {
172
+ body.projectId = `projectId eq '${scope.projectId}'`;
173
+ }
174
+ const customAlertProjectId = typeof body.projectId === "string" ? body.projectId : scope.projectId;
175
+ if (parsedCustomAlertQuery && customAlertProjectId) {
176
+ body.projectId ??= customAlertProjectId;
177
+ const projectName = await resolveCustomAlertProjectName(
178
+ client,
179
+ scope,
180
+ customAlertProjectId
181
+ );
182
+ setMissingCustomAlertProjectScope(
183
+ parsedCustomAlertQuery,
184
+ scope.teamId,
185
+ customAlertProjectId,
186
+ projectName
187
+ );
188
+ }
151
189
  delete body.id;
152
190
  delete body.teamId;
153
- if (scope.projectId !== void 0 && body.projectId === void 0) {
154
- body.projectId = scope.projectId;
155
- }
156
191
  const path = rulesCollectionPath(scope);
157
192
  output_manager_default.spinner("Creating alert rule...");
158
193
  try {
@@ -9,7 +9,7 @@ import {
9
9
  handleVcrApiError,
10
10
  resolveVcrScope,
11
11
  validateVcrJsonOutput
12
- } from "./chunk-QTXQOWOJ.js";
12
+ } from "./chunk-NXLNRLL7.js";
13
13
  import "./chunk-G75NFPIT.js";
14
14
  import {
15
15
  outputError
@@ -22,13 +22,13 @@ import "./chunk-A5KP5HAI.js";
22
22
  import "./chunk-J6LK45HT.js";
23
23
  import "./chunk-B3JTF4CF.js";
24
24
  import "./chunk-R6IGDGX3.js";
25
- import "./chunk-PVWXPWLQ.js";
25
+ import "./chunk-LXRK7KPA.js";
26
26
  import "./chunk-ECCWJHC6.js";
27
27
  import {
28
28
  AGENT_REASON,
29
29
  buildCommandWithGlobalFlags,
30
30
  outputAgentError
31
- } from "./chunk-Z5ZQJ5VJ.js";
31
+ } from "./chunk-TJJ562C5.js";
32
32
  import {
33
33
  printError
34
34
  } from "./chunk-KBEX5MYS.js";
@@ -17,7 +17,7 @@ import {
17
17
  emitVcrArgParseError,
18
18
  resolveVcrScope,
19
19
  validateVcrJsonOutput
20
- } from "./chunk-QTXQOWOJ.js";
20
+ } from "./chunk-NXLNRLL7.js";
21
21
  import "./chunk-G75NFPIT.js";
22
22
  import {
23
23
  outputError
@@ -27,13 +27,13 @@ import {
27
27
  permissionsAddSubcommand
28
28
  } from "./chunk-J6LK45HT.js";
29
29
  import "./chunk-R6IGDGX3.js";
30
- import "./chunk-PVWXPWLQ.js";
30
+ import "./chunk-LXRK7KPA.js";
31
31
  import "./chunk-ECCWJHC6.js";
32
32
  import {
33
33
  AGENT_REASON,
34
34
  buildCommandWithGlobalFlags,
35
35
  outputAgentError
36
- } from "./chunk-Z5ZQJ5VJ.js";
36
+ } from "./chunk-TJJ562C5.js";
37
37
  import {
38
38
  printError
39
39
  } from "./chunk-KBEX5MYS.js";
@@ -23,7 +23,7 @@ import {
23
23
  runEngine,
24
24
  splitPassthrough,
25
25
  validateVcrChoice
26
- } from "./chunk-QTXQOWOJ.js";
26
+ } from "./chunk-NXLNRLL7.js";
27
27
  import "./chunk-G75NFPIT.js";
28
28
  import {
29
29
  outputError
@@ -36,13 +36,13 @@ import "./chunk-A5KP5HAI.js";
36
36
  import "./chunk-J6LK45HT.js";
37
37
  import "./chunk-B3JTF4CF.js";
38
38
  import "./chunk-R6IGDGX3.js";
39
- import "./chunk-PVWXPWLQ.js";
39
+ import "./chunk-LXRK7KPA.js";
40
40
  import "./chunk-ECCWJHC6.js";
41
41
  import {
42
42
  AGENT_REASON,
43
43
  buildCommandWithGlobalFlags,
44
44
  outputAgentError
45
- } from "./chunk-Z5ZQJ5VJ.js";
45
+ } from "./chunk-TJJ562C5.js";
46
46
  import {
47
47
  printError
48
48
  } from "./chunk-KBEX5MYS.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  rulesAggregateCommand
9
- } from "./chunk-4UYKSYKQ.js";
9
+ } from "./chunk-UMA66MKW.js";
10
10
  import {
11
11
  formatOption,
12
12
  jsonOption,
@@ -8,7 +8,7 @@ import {
8
8
  VERCEL_DIR,
9
9
  VERCEL_DIR_PROJECT,
10
10
  require_lib
11
- } from "./chunk-PVWXPWLQ.js";
11
+ } from "./chunk-LXRK7KPA.js";
12
12
  import {
13
13
  require_dist
14
14
  } from "./chunk-OX7KI3LF.js";
@@ -11,7 +11,7 @@ import {
11
11
  getLinkedProject,
12
12
  getProjectByNameOrId,
13
13
  getScope
14
- } from "./chunk-PVWXPWLQ.js";
14
+ } from "./chunk-LXRK7KPA.js";
15
15
  import {
16
16
  printError
17
17
  } from "./chunk-KBEX5MYS.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-3KNPVXJ3.js";
22
22
  import {
23
23
  alertsCommand
24
- } from "./chunk-MAHXF73X.js";
24
+ } from "./chunk-3L2YLLHC.js";
25
25
  import {
26
26
  devCommand
27
27
  } from "./chunk-7QVJTI5H.js";
@@ -31,10 +31,10 @@ import {
31
31
  import {
32
32
  buildCommand,
33
33
  pullCommand
34
- } from "./chunk-56QCZ4RL.js";
34
+ } from "./chunk-FQ4R66UG.js";
35
35
  import {
36
36
  envCommand
37
- } from "./chunk-PVWXPWLQ.js";
37
+ } from "./chunk-LXRK7KPA.js";
38
38
  import {
39
39
  confirmOption,
40
40
  deploymentOption,
@@ -2300,6 +2300,14 @@ var createSubcommand2 = {
2300
2300
  deprecated: false,
2301
2301
  description: "Enable webhook triggers for this connector"
2302
2302
  },
2303
+ {
2304
+ name: "trigger-event",
2305
+ shorthand: null,
2306
+ type: [String],
2307
+ argument: "EVENT",
2308
+ deprecated: false,
2309
+ description: "Webhook event to receive. Repeatable. Requires --triggers and replaces the provider's default events."
2310
+ },
2303
2311
  {
2304
2312
  name: "data",
2305
2313
  shorthand: null,
@@ -2356,6 +2364,10 @@ var createSubcommand2 = {
2356
2364
  name: "Create with webhook triggers enabled",
2357
2365
  value: `${packageName} connect create slack --name my-bot --triggers`
2358
2366
  },
2367
+ {
2368
+ name: "Create with selected webhook events",
2369
+ value: `${packageName} connect create linear --name linear --triggers --trigger-event Issue --trigger-event Comment --trigger-event Project`
2370
+ },
2359
2371
  {
2360
2372
  name: "Create with branding (icon and colors)",
2361
2373
  value: `${packageName} connect create slack --name my-bot --icon ./logo.png --background-color '#1A2B3C' --accent-color '#FF0066'`
@@ -4985,6 +4997,22 @@ var updateSubcommand2 = {
4985
4997
  description: "New variant label",
4986
4998
  argument: "LABEL"
4987
4999
  },
5000
+ {
5001
+ name: "add-variant",
5002
+ shorthand: null,
5003
+ type: [String],
5004
+ deprecated: false,
5005
+ description: "Add a variant as VALUE[=LABEL] (repeatable for string, number, and json flags)",
5006
+ argument: "VALUE[=LABEL]"
5007
+ },
5008
+ {
5009
+ name: "remove-variant",
5010
+ shorthand: null,
5011
+ type: [String],
5012
+ deprecated: false,
5013
+ description: "Remove a variant by ID or value (repeatable)",
5014
+ argument: "VARIANT"
5015
+ },
4988
5016
  {
4989
5017
  name: "message",
4990
5018
  shorthand: null,
@@ -4992,6 +5020,10 @@ var updateSubcommand2 = {
4992
5020
  deprecated: false,
4993
5021
  description: "Optional revision message for the update",
4994
5022
  argument: "TEXT"
5023
+ },
5024
+ {
5025
+ ...yesOption,
5026
+ description: "Skip the confirmation prompt when removing a variant"
4995
5027
  }
4996
5028
  ],
4997
5029
  examples: [
@@ -5006,6 +5038,14 @@ var updateSubcommand2 = {
5006
5038
  {
5007
5039
  name: "Rename a boolean variant label",
5008
5040
  value: `${packageName} flags update my-feature --variant false --label "Disabled"`
5041
+ },
5042
+ {
5043
+ name: "Add a new variant",
5044
+ value: `${packageName} flags update my-feature --add-variant treatment="New onboarding"`
5045
+ },
5046
+ {
5047
+ name: "Remove variants by value or ID",
5048
+ value: `${packageName} flags update my-feature --remove-variant control --remove-variant var_123 --yes`
5009
5049
  }
5010
5050
  ]
5011
5051
  };
@@ -5580,6 +5620,34 @@ var archiveSubcommand = {
5580
5620
  }
5581
5621
  ]
5582
5622
  };
5623
+ var unarchiveSubcommand = {
5624
+ name: "unarchive",
5625
+ aliases: [],
5626
+ description: "Unarchive a feature flag",
5627
+ arguments: [
5628
+ {
5629
+ name: "flag",
5630
+ required: true
5631
+ }
5632
+ ],
5633
+ options: [
5634
+ projectOption,
5635
+ {
5636
+ ...yesOption,
5637
+ description: "Skip the confirmation prompt when unarchiving a flag"
5638
+ }
5639
+ ],
5640
+ examples: [
5641
+ {
5642
+ name: "Unarchive a feature flag",
5643
+ value: `${packageName} flags unarchive my-feature-flag`
5644
+ },
5645
+ {
5646
+ name: "Unarchive without confirmation",
5647
+ value: `${packageName} flags unarchive my-feature-flag --yes`
5648
+ }
5649
+ ]
5650
+ };
5583
5651
  var disableSubcommand = {
5584
5652
  name: "disable",
5585
5653
  aliases: [],
@@ -6110,6 +6178,7 @@ var flagsCommand = {
6110
6178
  rolloutSubcommand,
6111
6179
  removeSubcommand8,
6112
6180
  archiveSubcommand,
6181
+ unarchiveSubcommand,
6113
6182
  disableSubcommand,
6114
6183
  enableSubcommand,
6115
6184
  rulesSubcommand3,
@@ -7650,7 +7719,7 @@ var CommandTimeout = "5 minutes";
7650
7719
  var logsCommand = {
7651
7720
  name: "logs",
7652
7721
  aliases: ["log"],
7653
- description: "Display request logs for a project.\n\nWith --follow, stream live runtime logs from a deployment. When no deployment is specified, resolves in order: latest deployment on the current git branch, then your latest deployment, then the latest production deployment. Use --environment production to always stream the latest production deployment.\n\nSource types: \u03BB = serverless, \u03B5 = edge/middleware, \u25C7 = static/external",
7722
+ description: "Display request logs for a project.\n\nUse --follow to stream live runtime logs from a deployment. By default, --follow prefers the active production deployment and falls back to your latest READY deployment.\n\nSource types: \u03BB = serverless, \u03B5 = edge/middleware, \u25C7 = static/external",
7654
7723
  arguments: [
7655
7724
  {
7656
7725
  name: "url|deploymentId",
@@ -7671,7 +7740,7 @@ var logsCommand = {
7671
7740
  shorthand: null,
7672
7741
  type: String,
7673
7742
  deprecated: false,
7674
- description: "Filter by environment: production or preview. With --follow, selects which environment to stream (production always streams the latest production deployment)"
7743
+ description: "Filter by environment: production or preview; with --follow, select the active production deployment or your latest preview deployment"
7675
7744
  },
7676
7745
  {
7677
7746
  name: "level",
@@ -7727,7 +7796,7 @@ var logsCommand = {
7727
7796
  shorthand: "f",
7728
7797
  type: Boolean,
7729
7798
  deprecated: false,
7730
- description: "Stream live runtime logs. Without a deployment, follows the latest deployment on the current git branch, then your latest deployment, then the latest production deployment"
7799
+ description: "Stream live runtime logs from a deployment"
7731
7800
  },
7732
7801
  {
7733
7802
  name: "no-follow",
@@ -7769,80 +7838,68 @@ var logsCommand = {
7769
7838
  shorthand: "b",
7770
7839
  type: String,
7771
7840
  deprecated: false,
7772
- description: "Filter by git branch (defaults to current branch for a linked project)"
7841
+ description: "Filter by Git branch; with --follow, require a matching READY deployment"
7773
7842
  },
7774
7843
  {
7775
7844
  name: "no-branch",
7776
7845
  shorthand: null,
7777
7846
  type: Boolean,
7778
- deprecated: false,
7779
- description: "Disable auto-detection of git branch"
7847
+ deprecated: true,
7848
+ description: "Deprecated no-op; use --branch to filter by branch"
7780
7849
  }
7781
7850
  ],
7782
7851
  examples: [
7783
7852
  {
7784
- name: "Stream live logs for your most recent deployment",
7785
- value: `${packageName} logs --follow`
7786
- },
7787
- {
7788
- name: "Stream live logs for the latest production deployment",
7789
- value: `${packageName} logs --follow --environment production`
7790
- },
7791
- {
7792
- name: "Stream live logs for a deployment URL",
7793
- value: `${packageName} logs https://my-app-xxxxx.vercel.app --follow`
7794
- },
7795
- {
7796
- name: "Stream live logs for a deployment ID",
7797
- value: `${packageName} logs dpl_xxxxx --follow`
7853
+ name: "Display recent request logs for the linked project",
7854
+ value: `${packageName} logs`
7798
7855
  },
7799
7856
  {
7800
- name: "Stream logs for a specific project",
7801
- value: `${packageName} logs --project my-app --follow`
7857
+ name: "Display request logs for a specific project",
7858
+ value: `${packageName} logs --project my-app`
7802
7859
  },
7803
7860
  {
7804
- name: "Display recent logs for the linked project",
7805
- value: `${packageName} logs`
7806
- },
7807
- {
7808
- name: "Display error logs from the last hour",
7861
+ name: "Display request error logs from the last hour",
7809
7862
  value: `${packageName} logs --level error --since 1h`
7810
7863
  },
7811
7864
  {
7812
- name: "Display logs for a specific deployment (historical)",
7865
+ name: "Display request logs for a specific deployment",
7813
7866
  value: `${packageName} logs dpl_xxxxx`
7814
7867
  },
7815
7868
  {
7816
- name: "Filter logs by status code and output as JSON",
7869
+ name: "Filter request logs by status code and output as JSON",
7817
7870
  value: `${packageName} logs --status-code 500 --json`
7818
7871
  },
7819
7872
  {
7820
- name: "Search logs and pipe to jq",
7821
- value: `${packageName} logs --query "timeout" --json | jq '.message'`
7822
- },
7823
- {
7824
- name: "Use advanced search query with filters",
7873
+ name: "Search request logs by status and message",
7825
7874
  value: `${packageName} logs --query 'status:500 error' --json | jq '.message'`
7826
7875
  },
7827
7876
  {
7828
- name: "Display production logs only",
7877
+ name: "Display request logs from production",
7829
7878
  value: `${packageName} logs --environment production`
7830
7879
  },
7831
7880
  {
7832
- name: "Display logs for a specific request",
7881
+ name: "Display request logs for a specific request",
7833
7882
  value: `${packageName} logs --request-id req_xxxxx`
7834
7883
  },
7835
7884
  {
7836
- name: "Display logs with full message details",
7885
+ name: "Display request logs with full message details",
7837
7886
  value: `${packageName} logs --expand`
7838
7887
  },
7839
7888
  {
7840
- name: "Display logs for a specific branch",
7889
+ name: "Display request logs for a specific branch",
7841
7890
  value: `${packageName} logs --branch feature-x`
7842
7891
  },
7843
7892
  {
7844
- name: "Display logs for all branches (disable auto-detection)",
7845
- value: `${packageName} logs --no-branch`
7893
+ name: "Stream runtime logs for the active production deployment",
7894
+ value: `${packageName} logs --follow`
7895
+ },
7896
+ {
7897
+ name: "Stream runtime logs for your latest preview deployment",
7898
+ value: `${packageName} logs --follow --environment preview`
7899
+ },
7900
+ {
7901
+ name: "Stream runtime logs for a specific deployment",
7902
+ value: `${packageName} logs dpl_xxxxx --follow`
7846
7903
  }
7847
7904
  ]
7848
7905
  };
@@ -8381,12 +8438,20 @@ var updateSubcommand5 = {
8381
8438
  description: "Set the output directory",
8382
8439
  deprecated: false
8383
8440
  },
8441
+ {
8442
+ name: "root-directory",
8443
+ shorthand: null,
8444
+ type: String,
8445
+ argument: "DIR",
8446
+ description: "Set the project root directory",
8447
+ deprecated: false
8448
+ },
8384
8449
  {
8385
8450
  name: "auto-detect",
8386
8451
  shorthand: null,
8387
8452
  type: [String],
8388
8453
  argument: "SETTING",
8389
- description: "Reset a setting to automatic detection; repeat for build-command, dev-command, install-command, or output-directory",
8454
+ description: "Reset a setting to automatic detection; repeat for build-command, dev-command, install-command, output-directory, or root-directory",
8390
8455
  deprecated: false
8391
8456
  },
8392
8457
  formatOption,
@@ -8527,6 +8592,14 @@ var protectionSubcommand = {
8527
8592
  description: "Apply action to password protection (requires eligible plan/permissions).",
8528
8593
  deprecated: false
8529
8594
  },
8595
+ {
8596
+ name: "protection-password",
8597
+ shorthand: null,
8598
+ type: String,
8599
+ argument: "PASSWORD",
8600
+ description: "Password value when enabling password protection (max 72 characters). Requires --password.",
8601
+ deprecated: false
8602
+ },
8530
8603
  {
8531
8604
  name: "customer-support-code-visibility",
8532
8605
  shorthand: null,
@@ -8589,6 +8662,10 @@ var protectionSubcommand = {
8589
8662
  name: "Enable password protection",
8590
8663
  value: `${packageName} project protection enable my-app --password`
8591
8664
  },
8665
+ {
8666
+ name: "Enable password protection with a password",
8667
+ value: `${packageName} project protection enable my-app --password --protection-password <password>`
8668
+ },
8592
8669
  {
8593
8670
  name: "Enable customer support code visibility",
8594
8671
  value: `${packageName} project protection enable my-app --customer-support-code-visibility`
@@ -11051,6 +11128,7 @@ export {
11051
11128
  rulesSubcommand3,
11052
11129
  removeSubcommand8,
11053
11130
  archiveSubcommand,
11131
+ unarchiveSubcommand,
11054
11132
  disableSubcommand,
11055
11133
  enableSubcommand,
11056
11134
  segmentsListSubcommand,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  STANDARD_ENVIRONMENTS
9
- } from "./chunk-PVWXPWLQ.js";
9
+ } from "./chunk-LXRK7KPA.js";
10
10
  import {
11
11
  getCommandName,
12
12
  require_lib
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-PVWXPWLQ.js";
9
+ } from "./chunk-LXRK7KPA.js";
10
10
  import {
11
11
  packageName,
12
12
  projectOption,
@@ -0,0 +1,85 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import {
8
+ VERCEL_DIR
9
+ } from "./chunk-LXRK7KPA.js";
10
+ import {
11
+ parseArguments
12
+ } from "./chunk-XLKFJPMT.js";
13
+ import {
14
+ ConflictingConfigFiles,
15
+ DeprecatedNowJson,
16
+ InvalidLocalConfig
17
+ } from "./chunk-SOFC4MLS.js";
18
+
19
+ // src/util/input/prompt-cancellation.ts
20
+ var PromptCanceledError = class extends Error {
21
+ constructor() {
22
+ super("Prompt canceled");
23
+ this.name = "PromptCanceledError";
24
+ }
25
+ };
26
+ var PromptBackError = class extends Error {
27
+ constructor() {
28
+ super("Prompt back");
29
+ this.name = "PromptBackError";
30
+ }
31
+ };
32
+ function isPromptBackError(error) {
33
+ return error instanceof PromptBackError;
34
+ }
35
+ function isPromptCanceledError(error) {
36
+ if (error instanceof PromptCanceledError) {
37
+ return true;
38
+ }
39
+ return error instanceof Error && error.message.includes("User force closed the prompt");
40
+ }
41
+
42
+ // src/util/config/local-path.ts
43
+ import path from "path";
44
+ import { existsSync } from "fs";
45
+ function getLocalPathConfig(prefix) {
46
+ const argv = parseArguments(process.argv.slice(2), {}, { permissive: true });
47
+ const customPath = argv.flags["--local-config"];
48
+ if (customPath) {
49
+ if (typeof customPath !== "string") {
50
+ throw new InvalidLocalConfig(customPath);
51
+ }
52
+ return path.resolve(process.cwd(), customPath);
53
+ }
54
+ const vercelConfigPath = path.join(prefix, "vercel.json");
55
+ const vercelTomlPath = path.join(prefix, "vercel.toml");
56
+ const nowConfigPath = path.join(prefix, "now.json");
57
+ const vercelConfigExists = existsSync(vercelConfigPath);
58
+ const vercelTomlExists = existsSync(vercelTomlPath);
59
+ const nowConfigExists = existsSync(nowConfigPath);
60
+ const foundConfigs = [];
61
+ if (vercelConfigExists)
62
+ foundConfigs.push(vercelConfigPath);
63
+ if (vercelTomlExists)
64
+ foundConfigs.push(vercelTomlPath);
65
+ if (nowConfigExists) {
66
+ throw new DeprecatedNowJson(nowConfigPath);
67
+ }
68
+ if (foundConfigs.length > 1) {
69
+ throw new ConflictingConfigFiles(foundConfigs);
70
+ }
71
+ const compiledConfigPath = path.join(prefix, VERCEL_DIR, "vercel.json");
72
+ const compiledConfigExists = existsSync(compiledConfigPath);
73
+ if (compiledConfigExists) {
74
+ return compiledConfigPath;
75
+ }
76
+ return vercelConfigPath;
77
+ }
78
+
79
+ export {
80
+ getLocalPathConfig,
81
+ PromptCanceledError,
82
+ PromptBackError,
83
+ isPromptBackError,
84
+ isPromptCanceledError
85
+ };