vercel 54.7.1 → 54.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/chunks/{add-67QG24DA.js → add-7PN3D2CB.js} +11 -11
  2. package/dist/chunks/{chunk-KP6S4KU2.js → chunk-2VNVOF6Y.js} +34 -37
  3. package/dist/chunks/{chunk-PBX6K5OJ.js → chunk-3UG4R5C6.js} +9 -9
  4. package/dist/chunks/{chunk-ZTHVV4KB.js → chunk-4NDOMD3E.js} +1 -1
  5. package/dist/chunks/{chunk-IXR7P5OR.js → chunk-5MRKNVDF.js} +8 -8
  6. package/dist/chunks/{chunk-HTOH3MSD.js → chunk-5SYDEK2N.js} +1 -1
  7. package/dist/chunks/{chunk-LOQRUMOE.js → chunk-5ZJHY4AC.js} +3 -3
  8. package/dist/chunks/{chunk-OAUXTVXM.js → chunk-6GCPDK6C.js} +2 -2
  9. package/dist/chunks/{chunk-XQUJUKTN.js → chunk-6IQZVQV6.js} +2 -2
  10. package/dist/chunks/{chunk-POF76PSB.js → chunk-6MRFETFX.js} +5 -5
  11. package/dist/chunks/{chunk-FQ5AMV7J.js → chunk-A4NNTF2R.js} +5 -5
  12. package/dist/chunks/{chunk-WWLVPUED.js → chunk-B6C7NMT3.js} +2 -2
  13. package/dist/chunks/{chunk-N733ZD4W.js → chunk-BBJUIDZF.js} +1 -1
  14. package/dist/chunks/{chunk-GVL6A2EH.js → chunk-BGOG7M2L.js} +2 -2
  15. package/dist/chunks/{chunk-ILYEE673.js → chunk-BLBP6PJV.js} +3 -3
  16. package/dist/chunks/{chunk-CJPMAEBA.js → chunk-C2JLV23W.js} +4 -4
  17. package/dist/chunks/{chunk-TJQZGB6S.js → chunk-DAASB6YQ.js} +2 -2
  18. package/dist/chunks/{chunk-4CIXZOP4.js → chunk-DPXUXH7G.js} +1 -1
  19. package/dist/chunks/{chunk-3EOZ4ZDJ.js → chunk-FMN3NXRC.js} +2 -2
  20. package/dist/chunks/{chunk-6ABZRR5D.js → chunk-I6N27CZY.js} +8 -8
  21. package/dist/chunks/{chunk-7HAY2TY5.js → chunk-IQQJHYW4.js} +3 -3
  22. package/dist/chunks/{chunk-GIJMTTDG.js → chunk-KFVMKDQD.js} +195 -243
  23. package/dist/chunks/{chunk-ZCMQ43RC.js → chunk-KV23GR7J.js} +1 -1
  24. package/dist/chunks/{chunk-LOS7HHU3.js → chunk-LKBI43XK.js} +1 -1
  25. package/dist/chunks/{chunk-IDFKAJW3.js → chunk-LN6B7ZI3.js} +1 -1
  26. package/dist/chunks/{chunk-VWXC5XIE.js → chunk-MZ6WX76F.js} +3 -3
  27. package/dist/chunks/{chunk-PPCVO6KR.js → chunk-MZXIRI4R.js} +3 -3
  28. package/dist/chunks/{chunk-2R5WYHZW.js → chunk-NGRSQRSN.js} +2 -2
  29. package/dist/chunks/{chunk-7OUZIPHA.js → chunk-NHGCQRK5.js} +2 -2
  30. package/dist/chunks/{chunk-TIJBJ7EO.js → chunk-O4C4A7HM.js} +2 -2
  31. package/dist/chunks/{chunk-JWLKJA7N.js → chunk-QSUXC4XD.js} +5 -5
  32. package/dist/chunks/{chunk-CMQXECHW.js → chunk-RM4XGGZO.js} +2 -2
  33. package/dist/chunks/{chunk-2SYGBHZU.js → chunk-SX3T5LJW.js} +2 -2
  34. package/dist/chunks/{chunk-QN7GS5KD.js → chunk-T5UBTKLR.js} +3 -3
  35. package/dist/chunks/{chunk-CPWI2SWV.js → chunk-TAHQ6VAS.js} +2 -2
  36. package/dist/chunks/{chunk-FV5RQPKY.js → chunk-TCF6MGBY.js} +1 -1
  37. package/dist/chunks/{chunk-ACS2IKKO.js → chunk-TKYXKHYP.js} +283 -179
  38. package/dist/chunks/{chunk-XDU5XSTQ.js → chunk-UVSQEC2H.js} +3 -3
  39. package/dist/chunks/{chunk-AOJHEPS4.js → chunk-WEVQWSBT.js} +1 -1
  40. package/dist/chunks/{chunk-ZQKJVHXY.js → chunk-Z5SBJH6L.js} +13 -0
  41. package/dist/chunks/{chunk-WGF7XCUT.js → chunk-ZBFZHPN5.js} +9 -9
  42. package/dist/chunks/{chunk-O7SEN4RY.js → chunk-ZTPOJE63.js} +2 -2
  43. package/dist/chunks/{compile-vercel-config-R5X7XQH3.js → compile-vercel-config-ZRGV2HQF.js} +6 -6
  44. package/dist/chunks/{delete-QUCIXBSR.js → delete-62D6RPHR.js} +8 -8
  45. package/dist/chunks/{disable-N7JFRNT5.js → disable-EUFCTMHU.js} +8 -8
  46. package/dist/chunks/{discard-PDT55IX4.js → discard-UXWAYS5Y.js} +8 -8
  47. package/dist/chunks/{edit-C35BISPR.js → edit-K7S5CQEI.js} +10 -10
  48. package/dist/chunks/{enable-AIKCOZPH.js → enable-4C5ME3GT.js} +8 -8
  49. package/dist/chunks/{exec-5MN7VTSE.js → exec-JSOL4CYJ.js} +2 -2
  50. package/dist/chunks/{export-SQBM4PT6.js → export-NPUHUUHH.js} +8 -8
  51. package/dist/chunks/{inspect-FQ6NOVDU.js → inspect-ASCZ6G5V.js} +11 -11
  52. package/dist/chunks/{list-ZJVOBYVT.js → list-G7DVTQFM.js} +12 -12
  53. package/dist/chunks/{list-XJIRH6SE.js → list-MY22OIPS.js} +9 -9
  54. package/dist/chunks/{ls-SOTFIBD6.js → ls-C5IRWH53.js} +11 -11
  55. package/dist/chunks/{publish-US2CACSX.js → publish-645OGLRF.js} +8 -8
  56. package/dist/chunks/{query-DUJSSD3L.js → query-T5BWXYMO.js} +11 -11
  57. package/dist/chunks/{reorder-Y5N4VOO7.js → reorder-OHRSG6FC.js} +8 -8
  58. package/dist/chunks/{restore-TTEF3WC7.js → restore-GZNFRZV5.js} +8 -8
  59. package/dist/chunks/{rm-AARNIFI5.js → rm-4IHGJQWN.js} +11 -11
  60. package/dist/chunks/{routes-IBID4NSZ.js → routes-3OHKNMGT.js} +3 -3
  61. package/dist/chunks/{rule-inspect-TQBZNJUL.js → rule-inspect-E5WP4XX3.js} +11 -11
  62. package/dist/chunks/{rules-QWOMXETM.js → rules-KFYHGFV7.js} +9 -9
  63. package/dist/chunks/{schema-CZIQHHUV.js → schema-DUVEFNFM.js} +11 -11
  64. package/dist/chunks/{types-LU2G5DD3.js → types-P6JKZFEY.js} +5 -5
  65. package/dist/chunks/{update-A2FXWT7E.js → update-W4JIJ732.js} +11 -11
  66. package/dist/commands/build/index.js +17 -18
  67. package/dist/commands/deploy/index.js +26 -26
  68. package/dist/commands/dev/index.js +18 -18
  69. package/dist/commands/env/index.js +22 -22
  70. package/dist/commands/link/index.js +21 -21
  71. package/dist/commands/list/index.js +12 -12
  72. package/dist/commands-bulk.js +3230 -2874
  73. package/dist/index.js +47 -49
  74. package/dist/version.mjs +1 -1
  75. package/package.json +23 -22
@@ -6,29 +6,29 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  metricsCommand
9
- } from "./chunk-TJQZGB6S.js";
9
+ } from "./chunk-DAASB6YQ.js";
10
10
  import {
11
11
  routesCommand
12
- } from "./chunk-CPWI2SWV.js";
12
+ } from "./chunk-TAHQ6VAS.js";
13
13
  import {
14
14
  alertsCommand
15
- } from "./chunk-7HAY2TY5.js";
15
+ } from "./chunk-IQQJHYW4.js";
16
16
  import {
17
17
  devCommand
18
- } from "./chunk-TIJBJ7EO.js";
18
+ } from "./chunk-O4C4A7HM.js";
19
19
  import {
20
20
  activityCommand
21
- } from "./chunk-3EOZ4ZDJ.js";
21
+ } from "./chunk-FMN3NXRC.js";
22
22
  import {
23
23
  listCommand
24
- } from "./chunk-O7SEN4RY.js";
24
+ } from "./chunk-ZTPOJE63.js";
25
25
  import {
26
26
  buildCommand,
27
27
  pullCommand
28
- } from "./chunk-XDU5XSTQ.js";
28
+ } from "./chunk-UVSQEC2H.js";
29
29
  import {
30
30
  envCommand
31
- } from "./chunk-GIJMTTDG.js";
31
+ } from "./chunk-KFVMKDQD.js";
32
32
  import {
33
33
  confirmOption,
34
34
  forceOption,
@@ -38,13 +38,13 @@ import {
38
38
  nextOption,
39
39
  projectOption,
40
40
  yesOption
41
- } from "./chunk-XQUJUKTN.js";
41
+ } from "./chunk-6IQZVQV6.js";
42
42
  import {
43
43
  packageName
44
- } from "./chunk-IDFKAJW3.js";
44
+ } from "./chunk-LN6B7ZI3.js";
45
45
  import {
46
46
  output_manager_default
47
- } from "./chunk-ZQKJVHXY.js";
47
+ } from "./chunk-Z5SBJH6L.js";
48
48
 
49
49
  // src/commands/deploy/command.ts
50
50
  var deprecatedArchiveSplitTgz = "split-tgz";
@@ -1556,7 +1556,7 @@ var removeSubcommand3 = {
1556
1556
  description: "Delete a connector",
1557
1557
  arguments: [
1558
1558
  {
1559
- name: "client",
1559
+ name: "connector",
1560
1560
  required: true
1561
1561
  }
1562
1562
  ],
@@ -1751,7 +1751,7 @@ var attachSubcommand = {
1751
1751
  description: "Attach a Vercel project to a connector for one or more environments",
1752
1752
  arguments: [
1753
1753
  {
1754
- name: "client",
1754
+ name: "connector",
1755
1755
  required: true
1756
1756
  }
1757
1757
  ],
@@ -1831,7 +1831,7 @@ var detachSubcommand = {
1831
1831
  description: "Detach a Vercel project from a connector",
1832
1832
  arguments: [
1833
1833
  {
1834
- name: "client",
1834
+ name: "connector",
1835
1835
  required: true
1836
1836
  }
1837
1837
  ],
@@ -4530,6 +4530,233 @@ var inspectCommand = {
4530
4530
  ]
4531
4531
  };
4532
4532
 
4533
+ // src/commands/integration-resource/command.ts
4534
+ var removeSubcommand9 = {
4535
+ name: "remove",
4536
+ aliases: ["rm"],
4537
+ description: "Delete an integration resource",
4538
+ arguments: [
4539
+ {
4540
+ name: "resource",
4541
+ required: true
4542
+ }
4543
+ ],
4544
+ options: [
4545
+ {
4546
+ name: "disconnect-all",
4547
+ description: "Disconnects all projects from the specified resource before deletion",
4548
+ shorthand: "a",
4549
+ type: Boolean,
4550
+ deprecated: false
4551
+ },
4552
+ {
4553
+ ...yesOption,
4554
+ description: "Skip the confirmation prompt when deleting a resource"
4555
+ },
4556
+ formatOption
4557
+ ],
4558
+ examples: [
4559
+ {
4560
+ name: "Delete a resource",
4561
+ value: [
4562
+ `${packageName} integration-resource remove <resource>`,
4563
+ `${packageName} integration-resource remove my-acme-resource`
4564
+ ]
4565
+ },
4566
+ {
4567
+ name: "Disconnect all projects from a resource, then delete it",
4568
+ value: [
4569
+ `${packageName} integration-resource remove <resource> --disconnect-all`,
4570
+ `${packageName} integration-resource remove my-acme-resource --disconnect-all`,
4571
+ `${packageName} integration-resource remove my-acme-resource -a`
4572
+ ]
4573
+ },
4574
+ {
4575
+ name: "Output as JSON",
4576
+ value: `${packageName} integration-resource remove my-acme-resource --format=json --yes`
4577
+ }
4578
+ ]
4579
+ };
4580
+ var disconnectSubcommand2 = {
4581
+ name: "disconnect",
4582
+ aliases: [],
4583
+ description: "Disconnect a marketplace resource from a project",
4584
+ arguments: [
4585
+ {
4586
+ name: "resource",
4587
+ required: true
4588
+ },
4589
+ {
4590
+ name: "project",
4591
+ required: false
4592
+ }
4593
+ ],
4594
+ options: [
4595
+ {
4596
+ name: "all",
4597
+ description: "Disconnects all projects from the specified resource",
4598
+ shorthand: "a",
4599
+ type: Boolean,
4600
+ deprecated: false
4601
+ },
4602
+ {
4603
+ ...yesOption,
4604
+ description: "Skip the confirmation prompt when disconnecting a resource"
4605
+ },
4606
+ formatOption
4607
+ ],
4608
+ examples: [
4609
+ {
4610
+ name: "Disconnect a resource from the current project",
4611
+ value: [
4612
+ `${packageName} integration-resource disconnect <resource>`,
4613
+ `${packageName} integration-resource disconnect my-acme-resource`
4614
+ ]
4615
+ },
4616
+ {
4617
+ name: "Disconnect all projects from a resource",
4618
+ value: [
4619
+ `${packageName} integration-resource disconnect <resource> --all`,
4620
+ `${packageName} integration-resource disconnect my-acme-resource --all`,
4621
+ `${packageName} integration-resource disconnect my-acme-resource -a`
4622
+ ]
4623
+ },
4624
+ {
4625
+ name: "Disconnect a resource from a specified project",
4626
+ value: [
4627
+ `${packageName} integration-resource disconnect <resource> <project>`,
4628
+ `${packageName} integration-resource disconnect my-acme-resource my-project`
4629
+ ]
4630
+ },
4631
+ {
4632
+ name: "Output as JSON",
4633
+ value: `${packageName} integration-resource disconnect my-acme-resource --format=json --yes`
4634
+ }
4635
+ ]
4636
+ };
4637
+ var connectSubcommand2 = {
4638
+ name: "connect",
4639
+ aliases: [],
4640
+ description: "Connect a marketplace resource to a project",
4641
+ arguments: [
4642
+ {
4643
+ name: "resource",
4644
+ required: true
4645
+ },
4646
+ {
4647
+ name: "project",
4648
+ required: false
4649
+ }
4650
+ ],
4651
+ options: [
4652
+ {
4653
+ name: "environment",
4654
+ shorthand: "e",
4655
+ type: [String],
4656
+ argument: "ENV",
4657
+ deprecated: false,
4658
+ description: "Environment to connect (can be repeated: production, preview, development). Defaults to all."
4659
+ },
4660
+ {
4661
+ name: "prefix",
4662
+ shorthand: null,
4663
+ type: String,
4664
+ argument: "PREFIX",
4665
+ deprecated: false,
4666
+ description: "Prefix for environment variable names (e.g., --prefix NEON2_ creates NEON2_DATABASE_URL instead of DATABASE_URL)"
4667
+ },
4668
+ {
4669
+ ...yesOption,
4670
+ description: "Skip the confirmation prompt when connecting a resource"
4671
+ },
4672
+ formatOption
4673
+ ],
4674
+ examples: [
4675
+ {
4676
+ name: "Connect a resource to the current project",
4677
+ value: [
4678
+ `${packageName} integration resource connect <resource>`,
4679
+ `${packageName} integration resource connect my-acme-resource`
4680
+ ]
4681
+ },
4682
+ {
4683
+ name: "Connect a resource to a specified project",
4684
+ value: [
4685
+ `${packageName} integration resource connect <resource> <project>`,
4686
+ `${packageName} integration resource connect my-acme-resource my-project`
4687
+ ]
4688
+ },
4689
+ {
4690
+ name: "Connect only to specific environments",
4691
+ value: [
4692
+ `${packageName} integration resource connect my-acme-resource -e production`,
4693
+ `${packageName} integration resource connect my-acme-resource -e production -e preview`
4694
+ ]
4695
+ },
4696
+ {
4697
+ name: "Connect with a prefix for environment variable names",
4698
+ value: `${packageName} integration resource connect my-acme-resource --prefix NEON2_`
4699
+ },
4700
+ {
4701
+ name: "Output as JSON",
4702
+ value: `${packageName} integration resource connect my-acme-resource --format=json --yes`
4703
+ }
4704
+ ]
4705
+ };
4706
+ var createThresholdSubcommand = {
4707
+ name: "create-threshold",
4708
+ aliases: [],
4709
+ description: "Creates a threshold for a resource (or installation, if the integration uses installation-level thresholds)",
4710
+ arguments: [
4711
+ {
4712
+ name: "resource",
4713
+ required: true
4714
+ },
4715
+ {
4716
+ name: "minimum",
4717
+ required: true
4718
+ },
4719
+ {
4720
+ name: "spend",
4721
+ required: true
4722
+ },
4723
+ {
4724
+ name: "limit",
4725
+ required: true
4726
+ }
4727
+ ],
4728
+ options: [
4729
+ {
4730
+ ...yesOption,
4731
+ description: "Skip the confirmation prompt when creating a threshold"
4732
+ }
4733
+ ],
4734
+ examples: [
4735
+ {
4736
+ name: "create threshold",
4737
+ value: [
4738
+ `${packageName} integration-resource create-threshold <resource> <minimum> <spend> <limit> [options]`,
4739
+ `${packageName} integration-resource create-threshold my-acme-resource 50 100 2000`,
4740
+ `${packageName} integration-resource create-threshold my-acme-resource 50 100 2000 --yes`
4741
+ ]
4742
+ }
4743
+ ]
4744
+ };
4745
+ var integrationResourceCommand = {
4746
+ name: "integration-resource",
4747
+ aliases: ["ir"],
4748
+ description: "Manage marketplace integration resources (alias for `vercel integration resource`)",
4749
+ options: [],
4750
+ arguments: [],
4751
+ subcommands: [
4752
+ connectSubcommand2,
4753
+ createThresholdSubcommand,
4754
+ disconnectSubcommand2,
4755
+ removeSubcommand9
4756
+ ],
4757
+ examples: []
4758
+ };
4759
+
4533
4760
  // src/commands/integration/command.ts
4534
4761
  var addSubcommand7 = {
4535
4762
  name: "add",
@@ -4962,7 +5189,7 @@ var updateSubcommand4 = {
4962
5189
  }
4963
5190
  ]
4964
5191
  };
4965
- var removeSubcommand9 = {
5192
+ var removeSubcommand10 = {
4966
5193
  name: "remove",
4967
5194
  aliases: [],
4968
5195
  description: "Uninstalls a marketplace integration. Resources must be removed first using `integration-resource remove`.",
@@ -5042,10 +5269,37 @@ var guideSubcommand = {
5042
5269
  }
5043
5270
  ]
5044
5271
  };
5272
+ var resourceSubcommand = {
5273
+ name: "resource",
5274
+ aliases: [],
5275
+ description: "Manage marketplace integration resources (connect, disconnect, remove, create-threshold)",
5276
+ options: [],
5277
+ arguments: [],
5278
+ subcommands: [
5279
+ connectSubcommand2,
5280
+ createThresholdSubcommand,
5281
+ disconnectSubcommand2,
5282
+ removeSubcommand9
5283
+ ],
5284
+ examples: [
5285
+ {
5286
+ name: "Connect a resource to the current project",
5287
+ value: `${packageName} integration resource connect my-acme-resource`
5288
+ },
5289
+ {
5290
+ name: "Disconnect a resource from the current project",
5291
+ value: `${packageName} integration resource disconnect my-acme-resource`
5292
+ },
5293
+ {
5294
+ name: "Remove a resource (disconnecting all projects first)",
5295
+ value: `${packageName} integration resource remove my-acme-resource --disconnect-all --yes`
5296
+ }
5297
+ ]
5298
+ };
5045
5299
  var integrationCommand = {
5046
5300
  name: "integration",
5047
5301
  aliases: [],
5048
- description: "Manage marketplace integrations. To manage individual resources (disconnect, remove), see `integration-resource`.",
5302
+ description: "Manage marketplace integrations. To manage individual resources, see `vercel integration resource`.",
5049
5303
  options: [],
5050
5304
  arguments: [],
5051
5305
  subcommands: [
@@ -5057,13 +5311,18 @@ var integrationCommand = {
5057
5311
  installationsSubcommand,
5058
5312
  listSubcommand11,
5059
5313
  openSubcommand3,
5314
+ resourceSubcommand,
5060
5315
  updateSubcommand4,
5061
- removeSubcommand9
5316
+ removeSubcommand10
5062
5317
  ],
5063
5318
  examples: [
5064
5319
  {
5065
5320
  name: "Install a specific product from an integration",
5066
5321
  value: `${packageName} integration add acme/acme-redis`
5322
+ },
5323
+ {
5324
+ name: "Connect an existing resource to the current project",
5325
+ value: `${packageName} integration resource connect my-acme-resource`
5067
5326
  }
5068
5327
  ]
5069
5328
  };
@@ -5092,163 +5351,6 @@ var installCommand = {
5092
5351
  ]
5093
5352
  };
5094
5353
 
5095
- // src/commands/integration-resource/command.ts
5096
- var removeSubcommand10 = {
5097
- name: "remove",
5098
- aliases: ["rm"],
5099
- description: "Delete an integration resource",
5100
- arguments: [
5101
- {
5102
- name: "resource",
5103
- required: true
5104
- }
5105
- ],
5106
- options: [
5107
- {
5108
- name: "disconnect-all",
5109
- description: "Disconnects all projects from the specified resource before deletion",
5110
- shorthand: "a",
5111
- type: Boolean,
5112
- deprecated: false
5113
- },
5114
- {
5115
- ...yesOption,
5116
- description: "Skip the confirmation prompt when deleting a resource"
5117
- },
5118
- formatOption
5119
- ],
5120
- examples: [
5121
- {
5122
- name: "Delete a resource",
5123
- value: [
5124
- `${packageName} integration-resource remove <resource>`,
5125
- `${packageName} integration-resource remove my-acme-resource`
5126
- ]
5127
- },
5128
- {
5129
- name: "Disconnect all projects from a resource, then delete it",
5130
- value: [
5131
- `${packageName} integration-resource remove <resource> --disconnect-all`,
5132
- `${packageName} integration-resource remove my-acme-resource --disconnect-all`,
5133
- `${packageName} integration-resource remove my-acme-resource -a`
5134
- ]
5135
- },
5136
- {
5137
- name: "Output as JSON",
5138
- value: `${packageName} integration-resource remove my-acme-resource --format=json --yes`
5139
- }
5140
- ]
5141
- };
5142
- var disconnectSubcommand2 = {
5143
- name: "disconnect",
5144
- aliases: [],
5145
- description: "Disconnect a resource from a project, or the current project",
5146
- arguments: [
5147
- {
5148
- name: "resource",
5149
- required: true
5150
- },
5151
- {
5152
- name: "project",
5153
- required: false
5154
- }
5155
- ],
5156
- options: [
5157
- {
5158
- name: "all",
5159
- description: "Disconnects all projects from the specified resource",
5160
- shorthand: "a",
5161
- type: Boolean,
5162
- deprecated: false
5163
- },
5164
- {
5165
- ...yesOption,
5166
- description: "Skip the confirmation prompt when disconnecting a resource"
5167
- },
5168
- formatOption
5169
- ],
5170
- examples: [
5171
- {
5172
- name: "Disconnect a resource from the current project",
5173
- value: [
5174
- `${packageName} integration-resource disconnect <resource>`,
5175
- `${packageName} integration-resource disconnect my-acme-resource`
5176
- ]
5177
- },
5178
- {
5179
- name: "Disconnect all projects from a resource",
5180
- value: [
5181
- `${packageName} integration-resource disconnect <resource> --all`,
5182
- `${packageName} integration-resource disconnect my-acme-resource --all`,
5183
- `${packageName} integration-resource disconnect my-acme-resource -a`
5184
- ]
5185
- },
5186
- {
5187
- name: "Disconnect a resource from a specified project",
5188
- value: [
5189
- `${packageName} integration-resource disconnect <resource> <project>`,
5190
- `${packageName} integration-resource disconnect my-acme-resource my-project`
5191
- ]
5192
- },
5193
- {
5194
- name: "Output as JSON",
5195
- value: `${packageName} integration-resource disconnect my-acme-resource --format=json --yes`
5196
- }
5197
- ]
5198
- };
5199
- var createThresholdSubcommand = {
5200
- name: "create-threshold",
5201
- aliases: [],
5202
- description: "Creates a threshold for a resource (or installation, if the integration uses installation-level thresholds)",
5203
- arguments: [
5204
- {
5205
- name: "resource",
5206
- required: true
5207
- },
5208
- {
5209
- name: "minimum",
5210
- required: true
5211
- },
5212
- {
5213
- name: "spend",
5214
- required: true
5215
- },
5216
- {
5217
- name: "limit",
5218
- required: true
5219
- }
5220
- ],
5221
- options: [
5222
- {
5223
- ...yesOption,
5224
- description: "Skip the confirmation prompt when creating a threshold"
5225
- }
5226
- ],
5227
- examples: [
5228
- {
5229
- name: "create threshold",
5230
- value: [
5231
- `${packageName} integration-resource create-threshold <resource> <minimum> <spend> <limit> [options]`,
5232
- `${packageName} integration-resource create-threshold my-acme-resource 50 100 2000`,
5233
- `${packageName} integration-resource create-threshold my-acme-resource 50 100 2000 --yes`
5234
- ]
5235
- }
5236
- ]
5237
- };
5238
- var integrationResourceCommand = {
5239
- name: "integration-resource",
5240
- aliases: ["ir"],
5241
- description: "Manage marketplace integration resources",
5242
- options: [],
5243
- arguments: [],
5244
- subcommands: [
5245
- createThresholdSubcommand,
5246
- disconnectSubcommand2,
5247
- removeSubcommand10
5248
- ],
5249
- examples: []
5250
- };
5251
-
5252
5354
  // src/commands/login/command.ts
5253
5355
  var loginCommand = {
5254
5356
  name: "login",
@@ -8545,6 +8647,11 @@ export {
8545
8647
  httpstatCommand,
8546
8648
  initCommand,
8547
8649
  inspectCommand,
8650
+ removeSubcommand9,
8651
+ disconnectSubcommand2,
8652
+ connectSubcommand2,
8653
+ createThresholdSubcommand,
8654
+ integrationResourceCommand,
8548
8655
  addSubcommand7 as addSubcommand6,
8549
8656
  acceptTermsSubcommand,
8550
8657
  openSubcommand3,
@@ -8553,14 +8660,11 @@ export {
8553
8660
  discoverSubcommand,
8554
8661
  balanceSubcommand,
8555
8662
  updateSubcommand4,
8556
- removeSubcommand9,
8663
+ removeSubcommand10,
8557
8664
  guideSubcommand,
8665
+ resourceSubcommand,
8558
8666
  integrationCommand,
8559
8667
  installCommand,
8560
- removeSubcommand10,
8561
- disconnectSubcommand2,
8562
- createThresholdSubcommand,
8563
- integrationResourceCommand,
8564
8668
  addSubcommand as addSubcommand7,
8565
8669
  linkCommand,
8566
8670
  loginCommand,
@@ -6,14 +6,14 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getEnvTargetPlaceholder
9
- } from "./chunk-GIJMTTDG.js";
9
+ } from "./chunk-KFVMKDQD.js";
10
10
  import {
11
11
  projectOption,
12
12
  yesOption
13
- } from "./chunk-XQUJUKTN.js";
13
+ } from "./chunk-6IQZVQV6.js";
14
14
  import {
15
15
  packageName
16
- } from "./chunk-IDFKAJW3.js";
16
+ } from "./chunk-LN6B7ZI3.js";
17
17
 
18
18
  // src/commands/build/command.ts
19
19
  var buildCommand = {
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-ZQKJVHXY.js";
9
+ } from "./chunk-Z5SBJH6L.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -49,6 +49,8 @@ var require_dist = __commonJS({
49
49
  var src_exports = {};
50
50
  __export(src_exports, {
51
51
  errorToString: () => errorToString2,
52
+ errorToStringFriendly: () => errorToStringFriendly,
53
+ getSystemErrorMessage: () => getSystemErrorMessage,
52
54
  isErrnoException: () => isErrnoException,
53
55
  isError: () => isError,
54
56
  isErrorLike: () => isErrorLike,
@@ -65,6 +67,10 @@ var require_dist = __commonJS({
65
67
  var isErrnoException = (error) => {
66
68
  return isError(error) && "code" in error;
67
69
  };
70
+ var nativeGetSystemErrorMessage = import_node_util.default.getSystemErrorMessage;
71
+ var getSystemErrorMessageFallback = (errno) => {
72
+ return import_node_util.default.getSystemErrorMap().get(errno)?.[1] ?? `Unknown system error ${errno}`;
73
+ };
68
74
  var isErrorLike = (error) => isObject(error) && "message" in error;
69
75
  var errorToString2 = (error, fallback) => {
70
76
  if (isError(error) || isErrorLike(error))
@@ -73,6 +79,13 @@ var require_dist = __commonJS({
73
79
  return error;
74
80
  return fallback ?? "An unknown error has ocurred.";
75
81
  };
82
+ var getSystemErrorMessage = nativeGetSystemErrorMessage ?? getSystemErrorMessageFallback;
83
+ var errorToStringFriendly = (error, fallback) => {
84
+ if (isErrnoException(error) && typeof error.errno === "number") {
85
+ return getSystemErrorMessage(error.errno);
86
+ }
87
+ return errorToString2(error, fallback);
88
+ };
76
89
  var normalizeError = (error) => {
77
90
  if (isError(error))
78
91
  return error;
@@ -9,20 +9,20 @@ import {
9
9
  printIndications,
10
10
  require_dist as require_dist2,
11
11
  sleep
12
- } from "./chunk-KP6S4KU2.js";
12
+ } from "./chunk-2VNVOF6Y.js";
13
13
  import {
14
14
  suggestNextCommands
15
- } from "./chunk-LOS7HHU3.js";
15
+ } from "./chunk-LKBI43XK.js";
16
16
  import {
17
17
  getDeployment,
18
18
  mapCertError
19
- } from "./chunk-FV5RQPKY.js";
19
+ } from "./chunk-TCF6MGBY.js";
20
20
  import {
21
21
  CommandTimeout
22
- } from "./chunk-ACS2IKKO.js";
22
+ } from "./chunk-TKYXKHYP.js";
23
23
  import {
24
24
  getScope
25
- } from "./chunk-ILYEE673.js";
25
+ } from "./chunk-BLBP6PJV.js";
26
26
  import {
27
27
  getProjectByNameOrId,
28
28
  param,
@@ -31,7 +31,7 @@ import {
31
31
  require_pluralize,
32
32
  showPluginTipIfNeeded,
33
33
  ua_default
34
- } from "./chunk-GIJMTTDG.js";
34
+ } from "./chunk-KFVMKDQD.js";
35
35
  import {
36
36
  require_ms,
37
37
  stamp_default
@@ -42,7 +42,7 @@ import {
42
42
  import {
43
43
  require_strip_ansi,
44
44
  responseError
45
- } from "./chunk-XQUJUKTN.js";
45
+ } from "./chunk-6IQZVQV6.js";
46
46
  import {
47
47
  APIError,
48
48
  BuildError,
@@ -60,7 +60,7 @@ import {
60
60
  getCommandName,
61
61
  isAPIError,
62
62
  require_bytes
63
- } from "./chunk-IDFKAJW3.js";
63
+ } from "./chunk-LN6B7ZI3.js";
64
64
  import {
65
65
  emoji,
66
66
  eraseLines,
@@ -69,7 +69,7 @@ import {
69
69
  prependEmoji,
70
70
  require_ansi_escapes,
71
71
  require_dist
72
- } from "./chunk-ZQKJVHXY.js";
72
+ } from "./chunk-Z5SBJH6L.js";
73
73
  import {
74
74
  require_source
75
75
  } from "./chunk-S7KYDPEM.js";
@@ -10,10 +10,10 @@ import {
10
10
  formatOption,
11
11
  nextOption,
12
12
  yesOption
13
- } from "./chunk-XQUJUKTN.js";
13
+ } from "./chunk-6IQZVQV6.js";
14
14
  import {
15
15
  packageName
16
- } from "./chunk-IDFKAJW3.js";
16
+ } from "./chunk-LN6B7ZI3.js";
17
17
 
18
18
  // src/commands/list/command.ts
19
19
  var listCommand = {