vercel 54.0.0 → 54.2.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.
- package/dist/chunks/{add-FEHGU5ZE.js → add-FAIIANHS.js} +11 -9
- package/dist/chunks/{chunk-4I5SPKXV.js → chunk-23UWSHRQ.js} +313 -73
- package/dist/chunks/{chunk-DVV42VA6.js → chunk-2DFWEDF7.js} +2 -2
- package/dist/chunks/{chunk-OLJ6HISC.js → chunk-2OASKDFC.js} +3 -3
- package/dist/chunks/{chunk-P5NASM3L.js → chunk-4GQQJY5Y.js} +1 -1
- package/dist/chunks/{chunk-S6EMI466.js → chunk-4PSOOFYO.js} +2 -2
- package/dist/chunks/{chunk-3CBPQ6CA.js → chunk-76ZNZKIN.js} +1 -3
- package/dist/chunks/{chunk-Q5MHVELE.js → chunk-CQANJIEC.js} +2 -2
- package/dist/chunks/{chunk-MUBKPS2Z.js → chunk-DIWRR5Y4.js} +1 -1
- package/dist/chunks/{chunk-5GZAC4CI.js → chunk-DKD6GTQT.js} +1 -1
- package/dist/chunks/{chunk-VOXVKDJQ.js → chunk-DP5346AR.js} +4 -4
- package/dist/chunks/{chunk-DIOSHJ4H.js → chunk-E32QX22S.js} +98 -64
- package/dist/chunks/{chunk-KAC4IO5S.js → chunk-FKUVFVT2.js} +10847 -13491
- package/dist/chunks/{chunk-S62XC5XL.js → chunk-H7ZZXKJ2.js} +5 -5
- package/dist/chunks/{chunk-2GC2GW2H.js → chunk-IFATV36R.js} +2 -2
- package/dist/chunks/{chunk-OGWD7VBC.js → chunk-ISJJTUJZ.js} +2 -2
- package/dist/chunks/{chunk-DXZ5RVOC.js → chunk-IYP3534A.js} +7 -7
- package/dist/chunks/{chunk-TEDMSWBX.js → chunk-J7RPHYNB.js} +2 -2
- package/dist/chunks/{chunk-U5GMPX5T.js → chunk-JFVGRFME.js} +2 -2
- package/dist/chunks/{chunk-3XU5UGVN.js → chunk-JFWE5ORG.js} +2 -2
- package/dist/chunks/{chunk-JWN6JMVY.js → chunk-JQ7RG6JF.js} +2 -2
- package/dist/chunks/{chunk-4OEA5ILS.js → chunk-KSMF2UFR.js} +14 -0
- package/dist/chunks/chunk-N2T234LO.js +3144 -0
- package/dist/chunks/{chunk-F6MUOB5B.js → chunk-N733ZD4W.js} +1 -1
- package/dist/chunks/{chunk-23SNIB7J.js → chunk-NYJXGEIR.js} +1 -1
- package/dist/chunks/{chunk-LANWQ2NA.js → chunk-O2NXGZCW.js} +424 -2730
- package/dist/chunks/chunk-P4QNYOFB.js +96 -0
- package/dist/chunks/{chunk-MEAUBEGT.js → chunk-QAA3JVFJ.js} +3 -3
- package/dist/chunks/{chunk-TTEDSKHO.js → chunk-QEYYWOB4.js} +4 -4
- package/dist/chunks/{chunk-Y6X3VMO3.js → chunk-QH5Q2B4F.js} +1 -1
- package/dist/chunks/{chunk-GWM32SE3.js → chunk-TWVG3QHM.js} +3 -3
- package/dist/chunks/{chunk-MWQHQ7FW.js → chunk-TZMIHH5D.js} +3 -3
- package/dist/chunks/{chunk-4XB5UFP4.js → chunk-UGXBNJMO.js} +3 -98
- package/dist/chunks/{chunk-V6BFG564.js → chunk-ULXHXZCZ.js} +1 -1
- package/dist/chunks/{chunk-4WPY4WO3.js → chunk-VKQT3HCH.js} +10 -8
- package/dist/chunks/{chunk-NVV6BWQP.js → chunk-XVAEOG4L.js} +2 -2
- package/dist/chunks/{chunk-MXSNLYVL.js → chunk-YE6OHHJA.js} +487 -9
- package/dist/chunks/{chunk-4243WWHE.js → chunk-YNHUUJTK.js} +4 -4
- package/dist/chunks/{chunk-4UJDQ2WM.js → chunk-ZA4ZUW7G.js} +2 -2
- package/dist/chunks/{chunk-NQQWZYTY.js → chunk-ZAAKSLHC.js} +2 -2
- package/dist/chunks/{chunk-AH6RCY4L.js → chunk-ZFEECTPC.js} +1 -1
- package/dist/chunks/{chunk-GRPLZLEB.js → chunk-ZINNI4TC.js} +1 -1
- package/dist/chunks/cjs-DV4RM7XU.js +20743 -0
- package/dist/chunks/{compile-vercel-config-SGZPQDRN.js → compile-vercel-config-7TPMRTKM.js} +7 -5
- package/dist/chunks/constants-3FSSR6E7.js +13 -0
- package/dist/chunks/{delete-WMHTTHG3.js → delete-MVQKJDRS.js} +9 -7
- package/dist/chunks/{disable-QBDO6UIV.js → disable-YRONTYDS.js} +9 -7
- package/dist/chunks/{discard-GZZ553AR.js → discard-UM7Y2PMF.js} +9 -7
- package/dist/chunks/{edit-H2BF2MZY.js → edit-PHXJMLL2.js} +11 -9
- package/dist/chunks/{enable-YYWIMKHP.js → enable-D26FR2VL.js} +9 -7
- package/dist/chunks/exec-5MN7VTSE.js +1368 -0
- package/dist/chunks/{export-D3XBBQZD.js → export-YLMQTP7Y.js} +9 -7
- package/dist/chunks/{inspect-LUCGK7HU.js → inspect-SJTJNJVL.js} +11 -9
- package/dist/chunks/{list-EGJ7X43H.js → list-6OV7HAO4.js} +9 -7
- package/dist/chunks/{list-WV3JSWCB.js → list-XGSNQW5B.js} +14 -12
- package/dist/chunks/{ls-DXRXKG6Q.js → ls-THDT5E4M.js} +11 -9
- package/dist/chunks/pkg-56KRLZ5K.js +13 -0
- package/dist/chunks/{publish-LW57QZ56.js → publish-NPM5RPLV.js} +9 -7
- package/dist/chunks/{query-AQSXA32P.js → query-QP5JLBXI.js} +13 -11
- package/dist/chunks/{reorder-YJGPY7SA.js → reorder-573FHW5Z.js} +9 -7
- package/dist/chunks/{restore-VANQDIFO.js → restore-H65BVJFL.js} +9 -7
- package/dist/chunks/{rm-GNY6PA2Z.js → rm-MOVL4G2Y.js} +11 -9
- package/dist/chunks/{routes-2YVMQEPC.js → routes-I74KWX7Q.js} +2 -2
- package/dist/chunks/{rule-inspect-EECXOMPN.js → rule-inspect-33M2FHDU.js} +11 -9
- package/dist/chunks/{rules-G2VMMW7U.js → rules-KVSJYT5T.js} +9 -8
- package/dist/chunks/{schema-4TUQAXX6.js → schema-MXM7Z52O.js} +12 -10
- package/dist/chunks/{types-54VLSVRV.js → types-QAT6PCGL.js} +5 -4
- package/dist/chunks/{update-GSE7WNBV.js → update-CSKHHR3E.js} +11 -9
- package/dist/commands/build/index.js +58 -33
- package/dist/commands/deploy/index.js +67 -54
- package/dist/commands/dev/index.js +80 -40
- package/dist/commands/env/index.js +21 -19
- package/dist/commands/link/index.js +22 -20
- package/dist/commands/list/index.js +15 -13
- package/dist/commands-bulk.js +2835 -1569
- package/dist/help.js +1 -1
- package/dist/index.js +325 -22779
- package/dist/version.mjs +1 -1
- package/package.json +32 -27
|
@@ -5,23 +5,25 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
getUpdateCommand
|
|
9
|
-
|
|
8
|
+
getUpdateCommand,
|
|
9
|
+
isGlobal
|
|
10
|
+
} from "./chunk-ISJJTUJZ.js";
|
|
10
11
|
import {
|
|
11
12
|
getGlobalPathConfig,
|
|
12
|
-
login
|
|
13
|
-
|
|
13
|
+
login,
|
|
14
|
+
writeToConfigFile
|
|
15
|
+
} from "./chunk-VKQT3HCH.js";
|
|
14
16
|
import {
|
|
15
17
|
apiCommand,
|
|
16
18
|
listSubcommand2 as listSubcommand,
|
|
17
19
|
loginCommand
|
|
18
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-23UWSHRQ.js";
|
|
19
21
|
import {
|
|
20
22
|
help
|
|
21
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H7ZZXKJ2.js";
|
|
22
24
|
import {
|
|
23
25
|
TelemetryClient
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KSMF2UFR.js";
|
|
25
27
|
import {
|
|
26
28
|
require_ms
|
|
27
29
|
} from "./chunk-CO5D46AG.js";
|
|
@@ -30,10 +32,10 @@ import {
|
|
|
30
32
|
parseArguments,
|
|
31
33
|
printError,
|
|
32
34
|
require_strip_ansi
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4GQQJY5Y.js";
|
|
34
36
|
import {
|
|
35
37
|
packageName
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UGXBNJMO.js";
|
|
37
39
|
import {
|
|
38
40
|
output_manager_default
|
|
39
41
|
} from "./chunk-ZQKJVHXY.js";
|
|
@@ -45,6 +47,440 @@ import {
|
|
|
45
47
|
__toESM
|
|
46
48
|
} from "./chunk-TZ2YI2VH.js";
|
|
47
49
|
|
|
50
|
+
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json
|
|
51
|
+
var require_vendors = __commonJS({
|
|
52
|
+
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json"(exports, module) {
|
|
53
|
+
module.exports = [
|
|
54
|
+
{
|
|
55
|
+
name: "Agola CI",
|
|
56
|
+
constant: "AGOLA",
|
|
57
|
+
env: "AGOLA_GIT_REF",
|
|
58
|
+
pr: "AGOLA_PULL_REQUEST_ID"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: "Appcircle",
|
|
62
|
+
constant: "APPCIRCLE",
|
|
63
|
+
env: "AC_APPCIRCLE",
|
|
64
|
+
pr: {
|
|
65
|
+
env: "AC_GIT_PR",
|
|
66
|
+
ne: "false"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "AppVeyor",
|
|
71
|
+
constant: "APPVEYOR",
|
|
72
|
+
env: "APPVEYOR",
|
|
73
|
+
pr: "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "AWS CodeBuild",
|
|
77
|
+
constant: "CODEBUILD",
|
|
78
|
+
env: "CODEBUILD_BUILD_ARN",
|
|
79
|
+
pr: {
|
|
80
|
+
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
81
|
+
any: [
|
|
82
|
+
"PULL_REQUEST_CREATED",
|
|
83
|
+
"PULL_REQUEST_UPDATED",
|
|
84
|
+
"PULL_REQUEST_REOPENED"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "Azure Pipelines",
|
|
90
|
+
constant: "AZURE_PIPELINES",
|
|
91
|
+
env: "TF_BUILD",
|
|
92
|
+
pr: {
|
|
93
|
+
BUILD_REASON: "PullRequest"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "Bamboo",
|
|
98
|
+
constant: "BAMBOO",
|
|
99
|
+
env: "bamboo_planKey"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "Bitbucket Pipelines",
|
|
103
|
+
constant: "BITBUCKET",
|
|
104
|
+
env: "BITBUCKET_COMMIT",
|
|
105
|
+
pr: "BITBUCKET_PR_ID"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "Bitrise",
|
|
109
|
+
constant: "BITRISE",
|
|
110
|
+
env: "BITRISE_IO",
|
|
111
|
+
pr: "BITRISE_PULL_REQUEST"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "Buddy",
|
|
115
|
+
constant: "BUDDY",
|
|
116
|
+
env: "BUDDY_WORKSPACE_ID",
|
|
117
|
+
pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "Buildkite",
|
|
121
|
+
constant: "BUILDKITE",
|
|
122
|
+
env: "BUILDKITE",
|
|
123
|
+
pr: {
|
|
124
|
+
env: "BUILDKITE_PULL_REQUEST",
|
|
125
|
+
ne: "false"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "CircleCI",
|
|
130
|
+
constant: "CIRCLE",
|
|
131
|
+
env: "CIRCLECI",
|
|
132
|
+
pr: "CIRCLE_PULL_REQUEST"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "Cirrus CI",
|
|
136
|
+
constant: "CIRRUS",
|
|
137
|
+
env: "CIRRUS_CI",
|
|
138
|
+
pr: "CIRRUS_PR"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: "Codefresh",
|
|
142
|
+
constant: "CODEFRESH",
|
|
143
|
+
env: "CF_BUILD_ID",
|
|
144
|
+
pr: {
|
|
145
|
+
any: [
|
|
146
|
+
"CF_PULL_REQUEST_NUMBER",
|
|
147
|
+
"CF_PULL_REQUEST_ID"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "Codemagic",
|
|
153
|
+
constant: "CODEMAGIC",
|
|
154
|
+
env: "CM_BUILD_ID",
|
|
155
|
+
pr: "CM_PULL_REQUEST"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "Codeship",
|
|
159
|
+
constant: "CODESHIP",
|
|
160
|
+
env: {
|
|
161
|
+
CI_NAME: "codeship"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "Drone",
|
|
166
|
+
constant: "DRONE",
|
|
167
|
+
env: "DRONE",
|
|
168
|
+
pr: {
|
|
169
|
+
DRONE_BUILD_EVENT: "pull_request"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "dsari",
|
|
174
|
+
constant: "DSARI",
|
|
175
|
+
env: "DSARI"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "Earthly",
|
|
179
|
+
constant: "EARTHLY",
|
|
180
|
+
env: "EARTHLY_CI"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: "Expo Application Services",
|
|
184
|
+
constant: "EAS",
|
|
185
|
+
env: "EAS_BUILD"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "Gerrit",
|
|
189
|
+
constant: "GERRIT",
|
|
190
|
+
env: "GERRIT_PROJECT"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "Gitea Actions",
|
|
194
|
+
constant: "GITEA_ACTIONS",
|
|
195
|
+
env: "GITEA_ACTIONS"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "GitHub Actions",
|
|
199
|
+
constant: "GITHUB_ACTIONS",
|
|
200
|
+
env: "GITHUB_ACTIONS",
|
|
201
|
+
pr: {
|
|
202
|
+
GITHUB_EVENT_NAME: "pull_request"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "GitLab CI",
|
|
207
|
+
constant: "GITLAB",
|
|
208
|
+
env: "GITLAB_CI",
|
|
209
|
+
pr: "CI_MERGE_REQUEST_ID"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "GoCD",
|
|
213
|
+
constant: "GOCD",
|
|
214
|
+
env: "GO_PIPELINE_LABEL"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "Google Cloud Build",
|
|
218
|
+
constant: "GOOGLE_CLOUD_BUILD",
|
|
219
|
+
env: "BUILDER_OUTPUT"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: "Harness CI",
|
|
223
|
+
constant: "HARNESS",
|
|
224
|
+
env: "HARNESS_BUILD_ID"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: "Heroku",
|
|
228
|
+
constant: "HEROKU",
|
|
229
|
+
env: {
|
|
230
|
+
env: "NODE",
|
|
231
|
+
includes: "/app/.heroku/node/bin/node"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "Hudson",
|
|
236
|
+
constant: "HUDSON",
|
|
237
|
+
env: "HUDSON_URL"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "Jenkins",
|
|
241
|
+
constant: "JENKINS",
|
|
242
|
+
env: [
|
|
243
|
+
"JENKINS_URL",
|
|
244
|
+
"BUILD_ID"
|
|
245
|
+
],
|
|
246
|
+
pr: {
|
|
247
|
+
any: [
|
|
248
|
+
"ghprbPullId",
|
|
249
|
+
"CHANGE_ID"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "LayerCI",
|
|
255
|
+
constant: "LAYERCI",
|
|
256
|
+
env: "LAYERCI",
|
|
257
|
+
pr: "LAYERCI_PULL_REQUEST"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "Magnum CI",
|
|
261
|
+
constant: "MAGNUM",
|
|
262
|
+
env: "MAGNUM"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "Netlify CI",
|
|
266
|
+
constant: "NETLIFY",
|
|
267
|
+
env: "NETLIFY",
|
|
268
|
+
pr: {
|
|
269
|
+
env: "PULL_REQUEST",
|
|
270
|
+
ne: "false"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: "Nevercode",
|
|
275
|
+
constant: "NEVERCODE",
|
|
276
|
+
env: "NEVERCODE",
|
|
277
|
+
pr: {
|
|
278
|
+
env: "NEVERCODE_PULL_REQUEST",
|
|
279
|
+
ne: "false"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: "Prow",
|
|
284
|
+
constant: "PROW",
|
|
285
|
+
env: "PROW_JOB_ID"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "ReleaseHub",
|
|
289
|
+
constant: "RELEASEHUB",
|
|
290
|
+
env: "RELEASE_BUILD_ID"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "Render",
|
|
294
|
+
constant: "RENDER",
|
|
295
|
+
env: "RENDER",
|
|
296
|
+
pr: {
|
|
297
|
+
IS_PULL_REQUEST: "true"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "Sail CI",
|
|
302
|
+
constant: "SAIL",
|
|
303
|
+
env: "SAILCI",
|
|
304
|
+
pr: "SAIL_PULL_REQUEST_NUMBER"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: "Screwdriver",
|
|
308
|
+
constant: "SCREWDRIVER",
|
|
309
|
+
env: "SCREWDRIVER",
|
|
310
|
+
pr: {
|
|
311
|
+
env: "SD_PULL_REQUEST",
|
|
312
|
+
ne: "false"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "Semaphore",
|
|
317
|
+
constant: "SEMAPHORE",
|
|
318
|
+
env: "SEMAPHORE",
|
|
319
|
+
pr: "PULL_REQUEST_NUMBER"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: "Sourcehut",
|
|
323
|
+
constant: "SOURCEHUT",
|
|
324
|
+
env: {
|
|
325
|
+
CI_NAME: "sourcehut"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
name: "Strider CD",
|
|
330
|
+
constant: "STRIDER",
|
|
331
|
+
env: "STRIDER"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
name: "TaskCluster",
|
|
335
|
+
constant: "TASKCLUSTER",
|
|
336
|
+
env: [
|
|
337
|
+
"TASK_ID",
|
|
338
|
+
"RUN_ID"
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
name: "TeamCity",
|
|
343
|
+
constant: "TEAMCITY",
|
|
344
|
+
env: "TEAMCITY_VERSION"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "Travis CI",
|
|
348
|
+
constant: "TRAVIS",
|
|
349
|
+
env: "TRAVIS",
|
|
350
|
+
pr: {
|
|
351
|
+
env: "TRAVIS_PULL_REQUEST",
|
|
352
|
+
ne: "false"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "Vela",
|
|
357
|
+
constant: "VELA",
|
|
358
|
+
env: "VELA",
|
|
359
|
+
pr: {
|
|
360
|
+
VELA_PULL_REQUEST: "1"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "Vercel",
|
|
365
|
+
constant: "VERCEL",
|
|
366
|
+
env: {
|
|
367
|
+
any: [
|
|
368
|
+
"NOW_BUILDER",
|
|
369
|
+
"VERCEL"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: "Visual Studio App Center",
|
|
376
|
+
constant: "APPCENTER",
|
|
377
|
+
env: "APPCENTER_BUILD_ID"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "Woodpecker",
|
|
381
|
+
constant: "WOODPECKER",
|
|
382
|
+
env: {
|
|
383
|
+
CI: "woodpecker"
|
|
384
|
+
},
|
|
385
|
+
pr: {
|
|
386
|
+
CI_BUILD_EVENT: "pull_request"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: "Xcode Cloud",
|
|
391
|
+
constant: "XCODE_CLOUD",
|
|
392
|
+
env: "CI_XCODE_PROJECT",
|
|
393
|
+
pr: "CI_PULL_REQUEST_NUMBER"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: "Xcode Server",
|
|
397
|
+
constant: "XCODE_SERVER",
|
|
398
|
+
env: "XCS"
|
|
399
|
+
}
|
|
400
|
+
];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js
|
|
405
|
+
var require_ci_info = __commonJS({
|
|
406
|
+
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js"(exports) {
|
|
407
|
+
"use strict";
|
|
408
|
+
var vendors = require_vendors();
|
|
409
|
+
var env = process.env;
|
|
410
|
+
Object.defineProperty(exports, "_vendors", {
|
|
411
|
+
value: vendors.map(function(v) {
|
|
412
|
+
return v.constant;
|
|
413
|
+
})
|
|
414
|
+
});
|
|
415
|
+
exports.name = null;
|
|
416
|
+
exports.isPR = null;
|
|
417
|
+
exports.id = null;
|
|
418
|
+
vendors.forEach(function(vendor) {
|
|
419
|
+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
420
|
+
const isCI = envs.every(function(obj) {
|
|
421
|
+
return checkEnv(obj);
|
|
422
|
+
});
|
|
423
|
+
exports[vendor.constant] = isCI;
|
|
424
|
+
if (!isCI) {
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
exports.name = vendor.name;
|
|
428
|
+
exports.isPR = checkPR(vendor);
|
|
429
|
+
exports.id = vendor.constant;
|
|
430
|
+
});
|
|
431
|
+
exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
432
|
+
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
433
|
+
env.BUILD_NUMBER || // Jenkins, TeamCity
|
|
434
|
+
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
435
|
+
env.CI_APP_ID || // Appflow
|
|
436
|
+
env.CI_BUILD_ID || // Appflow
|
|
437
|
+
env.CI_BUILD_NUMBER || // Appflow
|
|
438
|
+
env.CI_NAME || // Codeship and others
|
|
439
|
+
env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
440
|
+
env.RUN_ID || // TaskCluster, dsari
|
|
441
|
+
exports.name || false));
|
|
442
|
+
function checkEnv(obj) {
|
|
443
|
+
if (typeof obj === "string")
|
|
444
|
+
return !!env[obj];
|
|
445
|
+
if ("env" in obj) {
|
|
446
|
+
return env[obj.env] && env[obj.env].includes(obj.includes);
|
|
447
|
+
}
|
|
448
|
+
if ("any" in obj) {
|
|
449
|
+
return obj.any.some(function(k) {
|
|
450
|
+
return !!env[k];
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
return Object.keys(obj).every(function(k) {
|
|
454
|
+
return env[k] === obj[k];
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
function checkPR(vendor) {
|
|
458
|
+
switch (typeof vendor.pr) {
|
|
459
|
+
case "string":
|
|
460
|
+
return !!env[vendor.pr];
|
|
461
|
+
case "object":
|
|
462
|
+
if ("env" in vendor.pr) {
|
|
463
|
+
if ("any" in vendor.pr) {
|
|
464
|
+
return vendor.pr.any.some(function(key) {
|
|
465
|
+
return env[vendor.pr.env] === key;
|
|
466
|
+
});
|
|
467
|
+
} else {
|
|
468
|
+
return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
|
|
469
|
+
}
|
|
470
|
+
} else if ("any" in vendor.pr) {
|
|
471
|
+
return vendor.pr.any.some(function(key) {
|
|
472
|
+
return !!env[key];
|
|
473
|
+
});
|
|
474
|
+
} else {
|
|
475
|
+
return checkEnv(vendor.pr);
|
|
476
|
+
}
|
|
477
|
+
default:
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
|
|
48
484
|
// ../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js
|
|
49
485
|
var require_jaro_winkler = __commonJS({
|
|
50
486
|
"../../node_modules/.pnpm/jaro-winkler@0.2.8/node_modules/jaro-winkler/index.js"(exports, module) {
|
|
@@ -2171,6 +2607,43 @@ async function executeUpgrade() {
|
|
|
2171
2607
|
});
|
|
2172
2608
|
}
|
|
2173
2609
|
|
|
2610
|
+
// src/util/updates.ts
|
|
2611
|
+
var import_ci_info = __toESM(require_ci_info(), 1);
|
|
2612
|
+
function isAutoUpdateEnabled(config) {
|
|
2613
|
+
return config.updates?.auto === true;
|
|
2614
|
+
}
|
|
2615
|
+
function hasAutoUpdatePreference(config) {
|
|
2616
|
+
return typeof config.updates?.auto === "boolean";
|
|
2617
|
+
}
|
|
2618
|
+
function setAutoUpdate(client, enabled) {
|
|
2619
|
+
client.config = {
|
|
2620
|
+
...client.config,
|
|
2621
|
+
updates: {
|
|
2622
|
+
...client.config.updates,
|
|
2623
|
+
auto: enabled
|
|
2624
|
+
}
|
|
2625
|
+
};
|
|
2626
|
+
writeToConfigFile(client.config);
|
|
2627
|
+
}
|
|
2628
|
+
async function canAutoUpdate(client, exitCode, command) {
|
|
2629
|
+
if (!isAutoUpdateEnabled(client.config)) {
|
|
2630
|
+
return false;
|
|
2631
|
+
}
|
|
2632
|
+
if (exitCode !== 0) {
|
|
2633
|
+
return false;
|
|
2634
|
+
}
|
|
2635
|
+
if (import_ci_info.default.isCI) {
|
|
2636
|
+
return false;
|
|
2637
|
+
}
|
|
2638
|
+
if (client.nonInteractive || client.isAgent) {
|
|
2639
|
+
return false;
|
|
2640
|
+
}
|
|
2641
|
+
if (command === "upgrade") {
|
|
2642
|
+
return false;
|
|
2643
|
+
}
|
|
2644
|
+
return isGlobal();
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2174
2647
|
// src/commands/login/index.ts
|
|
2175
2648
|
var import_chalk5 = __toESM(require_source(), 1);
|
|
2176
2649
|
|
|
@@ -2314,6 +2787,11 @@ export {
|
|
|
2314
2787
|
api,
|
|
2315
2788
|
tryOpenApiFallback,
|
|
2316
2789
|
executeUpgrade,
|
|
2790
|
+
require_ci_info,
|
|
2791
|
+
isAutoUpdateEnabled,
|
|
2792
|
+
hasAutoUpdatePreference,
|
|
2793
|
+
setAutoUpdate,
|
|
2794
|
+
canAutoUpdate,
|
|
2317
2795
|
login2 as login,
|
|
2318
2796
|
box
|
|
2319
2797
|
};
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
} from "./chunk-HTOH3MSD.js";
|
|
10
10
|
import {
|
|
11
11
|
getScope
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J7RPHYNB.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASON
|
|
15
15
|
} from "./chunk-E3NE4SKN.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FKUVFVT2.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ULXHXZCZ.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectNotFound,
|
|
26
26
|
isAPIError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UGXBNJMO.js";
|
|
28
28
|
|
|
29
29
|
// src/commands/alerts/resolve-alerts-scope.ts
|
|
30
30
|
function emitAlertsScopeError(client, jsonOutput, code, message, agent) {
|
|
@@ -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-
|
|
9
|
+
} from "./chunk-YNHUUJTK.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
buildCommandWithGlobalFlags,
|
|
20
20
|
outputAgentError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ULXHXZCZ.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/alerts/rules/parse-scope.ts
|
|
24
24
|
async function parseRulesFlagsAndScope(client, flags, jsonOutput) {
|
|
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
confirmOption,
|
|
9
9
|
yesOption
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4GQQJY5Y.js";
|
|
11
11
|
import {
|
|
12
12
|
packageName
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UGXBNJMO.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/dev/command.ts
|
|
16
16
|
var devCommand = {
|