vercel 58.4.4 → 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 (87) hide show
  1. package/dist/chunks/{add-P7WBQMBW.js → add-2KSAN7EK.js} +42 -7
  2. package/dist/chunks/{add-245XOFJO.js → add-HTKUQ3KF.js} +2 -2
  3. package/dist/chunks/{add-XH24V5VU.js → add-Y3ACMZQ3.js} +2 -2
  4. package/dist/chunks/{build-M7NJYJPE.js → build-SOTUMEPT.js} +2 -2
  5. package/dist/chunks/{chunk-MAHXF73X.js → chunk-3L2YLLHC.js} +1 -1
  6. package/dist/chunks/{chunk-M5NOLAJ4.js → chunk-4PZ2IIZI.js} +1 -1
  7. package/dist/chunks/{chunk-2LBVX2H3.js → chunk-4ZZI2JPE.js} +1 -1
  8. package/dist/chunks/{chunk-3QAUXPIR.js → chunk-7RTO3VPE.js} +82 -44
  9. package/dist/chunks/{chunk-XE5VSQ25.js → chunk-CVZWB2MA.js} +1 -1
  10. package/dist/chunks/{chunk-YCPUAG77.js → chunk-FQ4R66UG.js} +1 -1
  11. package/dist/chunks/{chunk-CPFNFVCL.js → chunk-GE5R7SYE.js} +1 -1
  12. package/dist/chunks/{chunk-SJYAUEZR.js → chunk-GKLT2ZGC.js} +3 -15
  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-4BUPRO5B.js → chunk-I5F5AE2Q.js} +1 -1
  16. package/dist/chunks/{chunk-IEDUCUDV.js → chunk-IKIPDMQT.js} +7 -5
  17. package/dist/chunks/{chunk-Y5GTPWXB.js → chunk-IRX26ZL5.js} +1 -1
  18. package/dist/chunks/{chunk-UE3JUVUZ.js → chunk-LTEFJ3VD.js} +2 -2
  19. package/dist/chunks/{chunk-4CCY5OPH.js → chunk-LXRK7KPA.js} +263 -192
  20. package/dist/chunks/{chunk-2FMPLU44.js → chunk-MEOBIY2L.js} +2 -2
  21. package/dist/chunks/chunk-MXLA3VQS.js +20 -0
  22. package/dist/chunks/{chunk-62MH5KPX.js → chunk-NXLNRLL7.js} +1 -1
  23. package/dist/chunks/{chunk-2WILSD7J.js → chunk-OQ6UFVGM.js} +1 -1
  24. package/dist/chunks/{chunk-ZGBBPJ6B.js → chunk-PGH6RJJF.js} +1 -1
  25. package/dist/chunks/{chunk-YDUINEII.js → chunk-QS5I33VI.js} +5 -3
  26. package/dist/chunks/{chunk-EBLH23AQ.js → chunk-TEQKKTJQ.js} +4 -7
  27. package/dist/chunks/{chunk-2MAPZXVV.js → chunk-TQE7DRGH.js} +5 -5
  28. package/dist/chunks/{chunk-4UYKSYKQ.js → chunk-UMA66MKW.js} +66 -2
  29. package/dist/chunks/{chunk-HSYF5SI3.js → chunk-YFQSZI5Q.js} +1 -1
  30. package/dist/chunks/{chunk-AQDWMAPM.js → chunk-Z3VYQ7JP.js} +7 -5
  31. package/dist/chunks/chunk-ZHDQMUK4.js +96 -0
  32. package/dist/chunks/{chunk-NJ6QXKQD.js → chunk-ZYCVYZSR.js} +1 -1
  33. package/dist/chunks/{clear-HWIKQ4NC.js → clear-GLMDDDUR.js} +2 -2
  34. package/dist/chunks/{compile-vercel-config-U5NRIMZ2.js → compile-vercel-config-7JTL7U5E.js} +1 -1
  35. package/dist/chunks/{constants-3FSSR6E7.js → constants-T6BULVX6.js} +1 -1
  36. package/dist/chunks/{delete-NVMGVD5Z.js → delete-HE6FCDYS.js} +2 -2
  37. package/dist/chunks/{delete-FZCOUFGN.js → delete-M3DCAYTX.js} +2 -2
  38. package/dist/chunks/{disable-ERM2BWEQ.js → disable-LHOHFHGU.js} +2 -2
  39. package/dist/chunks/{discard-KM5OLEN4.js → discard-D2SI77HA.js} +2 -2
  40. package/dist/chunks/{edit-TOSB2EMI.js → edit-PSUYL34C.js} +2 -2
  41. package/dist/chunks/{edit-HT3UTATZ.js → edit-XCJDQOZR.js} +3 -3
  42. package/dist/chunks/{enable-BQL6AOQV.js → enable-QXXBU3QH.js} +2 -2
  43. package/dist/chunks/{export-UOWQHOG3.js → export-CRCAJ72L.js} +2 -2
  44. package/dist/chunks/{image-F5SC6Q7Y.js → image-4YES44D3.js} +3 -3
  45. package/dist/chunks/{inspect-LGKOLH2O.js → inspect-CFJWOYWD.js} +3 -3
  46. package/dist/chunks/{inspect-GKJ6T5H4.js → inspect-FEW47KAZ.js} +2 -2
  47. package/dist/chunks/{inspect-PZJM2CWT.js → inspect-GYUTUSOP.js} +5 -5
  48. package/dist/chunks/{inspect-35FU5R62.js → inspect-JIGB2JK7.js} +2 -2
  49. package/dist/chunks/{inspect-5J5GSTOB.js → inspect-WUT7EW6R.js} +2 -2
  50. package/dist/chunks/{list-ITFJYYQ2.js → list-4N6HI5LH.js} +5 -5
  51. package/dist/chunks/{list-2IIE7CAP.js → list-W4ZLROFI.js} +3 -3
  52. package/dist/chunks/{list-KZETH3ZE.js → list-ZQOF2B2L.js} +1 -1
  53. package/dist/chunks/{login-BQPJCJEZ.js → login-FWYKZ642.js} +2 -2
  54. package/dist/chunks/{ls-UXUEP54B.js → ls-7YYHSZIR.js} +2 -2
  55. package/dist/chunks/{ls-ZZFLH7PK.js → ls-AV2WYGNW.js} +2 -2
  56. package/dist/chunks/{ls-DL2LA35C.js → ls-DD7RQ7KH.js} +2 -2
  57. package/dist/chunks/{ls-7GHDK4MD.js → ls-V7E37ERN.js} +6 -6
  58. package/dist/chunks/{ls-YSFWSM6J.js → ls-VOD4NK6A.js} +2 -2
  59. package/dist/chunks/{open-ADNJQN5E.js → open-YEJQVMYZ.js} +2 -2
  60. package/dist/chunks/{permissions-72SZCBIY.js → permissions-OJCRKNGQ.js} +4 -4
  61. package/dist/chunks/{publish-OOAGSEBM.js → publish-XDKQYIKH.js} +2 -2
  62. package/dist/chunks/{push-B6TZDXNF.js → push-Z2EQUVOV.js} +2 -2
  63. package/dist/chunks/{query-LZWS5TDH.js → query-KEICHLVN.js} +1 -1
  64. package/dist/chunks/{reorder-MRHFKPMK.js → reorder-Z6YCND2X.js} +2 -2
  65. package/dist/chunks/{reply-BKTJXO3B.js → reply-CIWFPTEK.js} +2 -2
  66. package/dist/chunks/{resolve-BKVGSGPN.js → resolve-BYDSKVYN.js} +2 -2
  67. package/dist/chunks/{restore-USR7SKWV.js → restore-2KP5DLEC.js} +2 -2
  68. package/dist/chunks/{rm-KUWPNZIS.js → rm-5Z75EGOZ.js} +2 -2
  69. package/dist/chunks/{rm-2UO6BT3A.js → rm-FRKS6Y2G.js} +4 -4
  70. package/dist/chunks/{rm-37MKKV3I.js → rm-RJOWQHQV.js} +2 -2
  71. package/dist/chunks/{rm-VY3OHKFH.js → rm-TNCPDKEX.js} +2 -2
  72. package/dist/chunks/{rule-inspect-JVDOOTWK.js → rule-inspect-NOSNKD63.js} +6 -13
  73. package/dist/chunks/{rules-NTBFZBIF.js → rules-THS42KX4.js} +9 -6
  74. package/dist/chunks/{schema-6EZ72OVH.js → schema-MDLX6ZDL.js} +1 -1
  75. package/dist/chunks/schema-R54OXIXC.js +426 -0
  76. package/dist/chunks/{tags-HNPC63QA.js → tags-NDPHPWME.js} +2 -2
  77. package/dist/chunks/{update-LUYWNZP3.js → update-YAN3MGMW.js} +36 -4
  78. package/dist/commands/build/index.js +60 -21
  79. package/dist/commands/deploy/index.js +21 -14
  80. package/dist/commands/dev/index.js +33 -9
  81. package/dist/commands/env/index.js +7 -7
  82. package/dist/commands/link/index.js +8 -8
  83. package/dist/commands/list/index.js +2 -2
  84. package/dist/commands-bulk.js +1183 -941
  85. package/dist/index.js +11 -10
  86. package/dist/version.mjs +1 -1
  87. package/package.json +47 -47
@@ -4,21 +4,36 @@ 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-Y5GTPWXB.js";
13
- import "./chunk-YDUINEII.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-4CCY5OPH.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,
@@ -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-62MH5KPX.js";
12
+ } from "./chunk-NXLNRLL7.js";
13
13
  import "./chunk-G75NFPIT.js";
14
14
  import {
15
15
  outputError
@@ -22,7 +22,7 @@ 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-4CCY5OPH.js";
25
+ import "./chunk-LXRK7KPA.js";
26
26
  import "./chunk-ECCWJHC6.js";
27
27
  import {
28
28
  AGENT_REASON,
@@ -17,7 +17,7 @@ import {
17
17
  emitVcrArgParseError,
18
18
  resolveVcrScope,
19
19
  validateVcrJsonOutput
20
- } from "./chunk-62MH5KPX.js";
20
+ } from "./chunk-NXLNRLL7.js";
21
21
  import "./chunk-G75NFPIT.js";
22
22
  import {
23
23
  outputError
@@ -27,7 +27,7 @@ import {
27
27
  permissionsAddSubcommand
28
28
  } from "./chunk-J6LK45HT.js";
29
29
  import "./chunk-R6IGDGX3.js";
30
- import "./chunk-4CCY5OPH.js";
30
+ import "./chunk-LXRK7KPA.js";
31
31
  import "./chunk-ECCWJHC6.js";
32
32
  import {
33
33
  AGENT_REASON,
@@ -23,7 +23,7 @@ import {
23
23
  runEngine,
24
24
  splitPassthrough,
25
25
  validateVcrChoice
26
- } from "./chunk-62MH5KPX.js";
26
+ } from "./chunk-NXLNRLL7.js";
27
27
  import "./chunk-G75NFPIT.js";
28
28
  import {
29
29
  outputError
@@ -36,7 +36,7 @@ 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-4CCY5OPH.js";
39
+ import "./chunk-LXRK7KPA.js";
40
40
  import "./chunk-ECCWJHC6.js";
41
41
  import {
42
42
  AGENT_REASON,
@@ -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-4CCY5OPH.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-4CCY5OPH.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-YCPUAG77.js";
34
+ } from "./chunk-FQ4R66UG.js";
35
35
  import {
36
36
  envCommand
37
- } from "./chunk-4CCY5OPH.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'`
@@ -5608,6 +5620,34 @@ var archiveSubcommand = {
5608
5620
  }
5609
5621
  ]
5610
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
+ };
5611
5651
  var disableSubcommand = {
5612
5652
  name: "disable",
5613
5653
  aliases: [],
@@ -6138,6 +6178,7 @@ var flagsCommand = {
6138
6178
  rolloutSubcommand,
6139
6179
  removeSubcommand8,
6140
6180
  archiveSubcommand,
6181
+ unarchiveSubcommand,
6141
6182
  disableSubcommand,
6142
6183
  enableSubcommand,
6143
6184
  rulesSubcommand3,
@@ -7678,7 +7719,7 @@ var CommandTimeout = "5 minutes";
7678
7719
  var logsCommand = {
7679
7720
  name: "logs",
7680
7721
  aliases: ["log"],
7681
- 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",
7682
7723
  arguments: [
7683
7724
  {
7684
7725
  name: "url|deploymentId",
@@ -7699,7 +7740,7 @@ var logsCommand = {
7699
7740
  shorthand: null,
7700
7741
  type: String,
7701
7742
  deprecated: false,
7702
- 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"
7703
7744
  },
7704
7745
  {
7705
7746
  name: "level",
@@ -7755,7 +7796,7 @@ var logsCommand = {
7755
7796
  shorthand: "f",
7756
7797
  type: Boolean,
7757
7798
  deprecated: false,
7758
- 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"
7759
7800
  },
7760
7801
  {
7761
7802
  name: "no-follow",
@@ -7797,80 +7838,68 @@ var logsCommand = {
7797
7838
  shorthand: "b",
7798
7839
  type: String,
7799
7840
  deprecated: false,
7800
- 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"
7801
7842
  },
7802
7843
  {
7803
7844
  name: "no-branch",
7804
7845
  shorthand: null,
7805
7846
  type: Boolean,
7806
- deprecated: false,
7807
- description: "Disable auto-detection of git branch"
7847
+ deprecated: true,
7848
+ description: "Deprecated no-op; use --branch to filter by branch"
7808
7849
  }
7809
7850
  ],
7810
7851
  examples: [
7811
7852
  {
7812
- name: "Stream live logs for your most recent deployment",
7813
- value: `${packageName} logs --follow`
7814
- },
7815
- {
7816
- name: "Stream live logs for the latest production deployment",
7817
- value: `${packageName} logs --follow --environment production`
7818
- },
7819
- {
7820
- name: "Stream live logs for a deployment URL",
7821
- value: `${packageName} logs https://my-app-xxxxx.vercel.app --follow`
7822
- },
7823
- {
7824
- name: "Stream live logs for a deployment ID",
7825
- value: `${packageName} logs dpl_xxxxx --follow`
7826
- },
7827
- {
7828
- name: "Stream logs for a specific project",
7829
- value: `${packageName} logs --project my-app --follow`
7853
+ name: "Display recent request logs for the linked project",
7854
+ value: `${packageName} logs`
7830
7855
  },
7831
7856
  {
7832
- name: "Display recent logs for the linked project",
7833
- value: `${packageName} logs`
7857
+ name: "Display request logs for a specific project",
7858
+ value: `${packageName} logs --project my-app`
7834
7859
  },
7835
7860
  {
7836
- name: "Display error logs from the last hour",
7861
+ name: "Display request error logs from the last hour",
7837
7862
  value: `${packageName} logs --level error --since 1h`
7838
7863
  },
7839
7864
  {
7840
- name: "Display logs for a specific deployment (historical)",
7865
+ name: "Display request logs for a specific deployment",
7841
7866
  value: `${packageName} logs dpl_xxxxx`
7842
7867
  },
7843
7868
  {
7844
- name: "Filter logs by status code and output as JSON",
7869
+ name: "Filter request logs by status code and output as JSON",
7845
7870
  value: `${packageName} logs --status-code 500 --json`
7846
7871
  },
7847
7872
  {
7848
- name: "Search logs and pipe to jq",
7849
- value: `${packageName} logs --query "timeout" --json | jq '.message'`
7850
- },
7851
- {
7852
- name: "Use advanced search query with filters",
7873
+ name: "Search request logs by status and message",
7853
7874
  value: `${packageName} logs --query 'status:500 error' --json | jq '.message'`
7854
7875
  },
7855
7876
  {
7856
- name: "Display production logs only",
7877
+ name: "Display request logs from production",
7857
7878
  value: `${packageName} logs --environment production`
7858
7879
  },
7859
7880
  {
7860
- name: "Display logs for a specific request",
7881
+ name: "Display request logs for a specific request",
7861
7882
  value: `${packageName} logs --request-id req_xxxxx`
7862
7883
  },
7863
7884
  {
7864
- name: "Display logs with full message details",
7885
+ name: "Display request logs with full message details",
7865
7886
  value: `${packageName} logs --expand`
7866
7887
  },
7867
7888
  {
7868
- name: "Display logs for a specific branch",
7889
+ name: "Display request logs for a specific branch",
7869
7890
  value: `${packageName} logs --branch feature-x`
7870
7891
  },
7871
7892
  {
7872
- name: "Display logs for all branches (disable auto-detection)",
7873
- 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`
7874
7903
  }
7875
7904
  ]
7876
7905
  };
@@ -8409,12 +8438,20 @@ var updateSubcommand5 = {
8409
8438
  description: "Set the output directory",
8410
8439
  deprecated: false
8411
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
+ },
8412
8449
  {
8413
8450
  name: "auto-detect",
8414
8451
  shorthand: null,
8415
8452
  type: [String],
8416
8453
  argument: "SETTING",
8417
- 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",
8418
8455
  deprecated: false
8419
8456
  },
8420
8457
  formatOption,
@@ -11091,6 +11128,7 @@ export {
11091
11128
  rulesSubcommand3,
11092
11129
  removeSubcommand8,
11093
11130
  archiveSubcommand,
11131
+ unarchiveSubcommand,
11094
11132
  disableSubcommand,
11095
11133
  enableSubcommand,
11096
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-4CCY5OPH.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-4CCY5OPH.js";
9
+ } from "./chunk-LXRK7KPA.js";
10
10
  import {
11
11
  packageName,
12
12
  projectOption,
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  VERCEL_DIR
9
- } from "./chunk-4CCY5OPH.js";
9
+ } from "./chunk-LXRK7KPA.js";
10
10
  import {
11
11
  parseArguments
12
12
  } from "./chunk-XLKFJPMT.js";
@@ -11,7 +11,7 @@ import {
11
11
  PromptBackError,
12
12
  PromptCanceledError,
13
13
  getLocalPathConfig
14
- } from "./chunk-CPFNFVCL.js";
14
+ } from "./chunk-GE5R7SYE.js";
15
15
  import {
16
16
  DEFAULT_VERCEL_CONFIG_FILENAME,
17
17
  VERCEL_CONFIG_EXTENSIONS,
@@ -38,7 +38,7 @@ import {
38
38
  useKeypress,
39
39
  usePrefix,
40
40
  useState
41
- } from "./chunk-4CCY5OPH.js";
41
+ } from "./chunk-LXRK7KPA.js";
42
42
  import {
43
43
  require_load_json_file
44
44
  } from "./chunk-ECCWJHC6.js";
@@ -2083,17 +2083,6 @@ Are you sure you want to proceed?`;
2083
2083
  }
2084
2084
  };
2085
2085
 
2086
- // src/util/output/progress.ts
2087
- function progress(current, total, opts = {}) {
2088
- const { width = 20, complete = "=", incomplete = "-" } = opts;
2089
- if (total <= 0 || current < 0 || current > total) {
2090
- return null;
2091
- }
2092
- const unit = total / width;
2093
- const pos = Math.floor(current / unit);
2094
- return `${complete.repeat(pos)}${incomplete.repeat(width - pos)}`;
2095
- }
2096
-
2097
2086
  export {
2098
2087
  getGlobalPathConfig2 as getGlobalPathConfig,
2099
2088
  require_dist3 as require_dist,
@@ -2107,6 +2096,5 @@ export {
2107
2096
  readLocalConfig,
2108
2097
  sleep,
2109
2098
  isJSONObject,
2110
- Client,
2111
- progress
2099
+ Client
2112
2100
  };
@@ -173,7 +173,7 @@ async function isPluginInstalledForTarget(target) {
173
173
  return false;
174
174
  }
175
175
  async function confirm(client, message) {
176
- if (!client.stdin.isTTY) {
176
+ if (client.nonInteractive || !client.stdin.isTTY) {
177
177
  return false;
178
178
  }
179
179
  return client.input.confirm(message, true);
@@ -0,0 +1,21 @@
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
+
8
+ // src/util/output/progress.ts
9
+ function progress(current, total, opts = {}) {
10
+ const { width = 20, complete = "=", incomplete = "-" } = opts;
11
+ if (total <= 0 || current < 0 || current > total) {
12
+ return null;
13
+ }
14
+ const unit = total / width;
15
+ const pos = Math.floor(current / unit);
16
+ return `${complete.repeat(pos)}${incomplete.repeat(width - pos)}`;
17
+ }
18
+
19
+ export {
20
+ progress
21
+ };
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveProjectContext
9
- } from "./chunk-4CCY5OPH.js";
9
+ } from "./chunk-LXRK7KPA.js";
10
10
  import {
11
11
  AGENT_REASON,
12
12
  AGENT_STATUS,
@@ -7,22 +7,24 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_format
9
9
  } from "./chunk-PRWJUY5U.js";
10
+ import {
11
+ progress
12
+ } from "./chunk-I2XE3GMB.js";
10
13
  import {
11
14
  isJSONObject,
12
15
  printIndications,
13
- progress,
14
16
  require_dist as require_dist2,
15
17
  sleep
16
- } from "./chunk-SJYAUEZR.js";
18
+ } from "./chunk-GKLT2ZGC.js";
17
19
  import {
18
20
  suggestNextCommands
19
21
  } from "./chunk-XBN2O34P.js";
20
22
  import {
21
23
  CommandTimeout
22
- } from "./chunk-3QAUXPIR.js";
24
+ } from "./chunk-7RTO3VPE.js";
23
25
  import {
24
26
  showPluginTipIfNeeded
25
- } from "./chunk-NJUPUGOE.js";
27
+ } from "./chunk-HT2XWSAJ.js";
26
28
  import {
27
29
  stamp_default
28
30
  } from "./chunk-64IF634X.js";
@@ -36,7 +38,7 @@ import {
36
38
  require_dist as require_dist3,
37
39
  require_pluralize,
38
40
  ua_default
39
- } from "./chunk-4CCY5OPH.js";
41
+ } from "./chunk-LXRK7KPA.js";
40
42
  import {
41
43
  require_strip_ansi,
42
44
  responseError
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  resolveAlertsScope
9
- } from "./chunk-YDUINEII.js";
9
+ } from "./chunk-QS5I33VI.js";
10
10
  import {
11
11
  handleValidationError,
12
12
  outputError,
@@ -8,7 +8,7 @@ import {
8
8
  getLocalPathConfig,
9
9
  isPromptBackError,
10
10
  isPromptCanceledError
11
- } from "./chunk-CPFNFVCL.js";
11
+ } from "./chunk-GE5R7SYE.js";
12
12
  import {
13
13
  table
14
14
  } from "./chunk-KT4XXKJK.js";
@@ -46,7 +46,7 @@ import {
46
46
  selectAndParseRemoteUrl,
47
47
  selectOrg,
48
48
  writeServicesConfig
49
- } from "./chunk-4CCY5OPH.js";
49
+ } from "./chunk-LXRK7KPA.js";
50
50
  import {
51
51
  printError
52
52
  } from "./chunk-KBEX5MYS.js";