vercel 54.21.1 → 56.0.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-UMB55BRR.js → add-MD247HM7.js} +6 -6
- package/dist/chunks/{add-NKDLTZ3B.js → add-YN76XNHI.js} +6 -6
- package/dist/chunks/{chunk-MLY3KGVY.js → chunk-2BZVY6SF.js} +4 -4
- package/dist/chunks/{chunk-TLKTTWDA.js → chunk-36OUS2KE.js} +1 -1
- package/dist/chunks/{chunk-43I5EAPY.js → chunk-3JOLICSO.js} +1 -1
- package/dist/chunks/{chunk-3EMRC44D.js → chunk-5OT26JZN.js} +32 -0
- package/dist/chunks/{chunk-TRQJQXKD.js → chunk-75HDPY6N.js} +82 -19
- package/dist/chunks/chunk-7PZWVZN6.js +105 -0
- package/dist/chunks/{chunk-DKE73NGN.js → chunk-C6E2RJS7.js} +29 -2
- package/dist/chunks/{chunk-2QBF3ZL3.js → chunk-CB3I3QIT.js} +3 -4
- package/dist/chunks/{chunk-I3HGCZ4E.js → chunk-CMJMYVQM.js} +1 -0
- package/dist/chunks/{chunk-IMTOXXTF.js → chunk-DO3V6PZD.js} +6 -4
- package/dist/chunks/{chunk-QKR7GNAK.js → chunk-DREO3DFB.js} +6 -6
- package/dist/chunks/{chunk-GAJ2ESDD.js → chunk-FN36GZDS.js} +100 -36
- package/dist/chunks/{chunk-4UZF3U4N.js → chunk-HA7C7SDO.js} +2 -0
- package/dist/chunks/{chunk-QH7WYDEP.js → chunk-IC4YEIGW.js} +7 -0
- package/dist/chunks/{chunk-H3KWN2KA.js → chunk-JHZG2MPW.js} +4 -4
- package/dist/chunks/{chunk-QMZO4CEP.js → chunk-KODCUW77.js} +353 -403
- package/dist/chunks/{chunk-RO5JIUOI.js → chunk-KSJ4FNUG.js} +3 -3
- package/dist/chunks/{chunk-KNSDQCVQ.js → chunk-MBH4DFF7.js} +51 -9
- package/dist/chunks/{chunk-MV65GD4L.js → chunk-N4VWB5RV.js} +1 -1
- package/dist/chunks/{chunk-AUYY7RD3.js → chunk-NZ73KKYG.js} +550 -191
- package/dist/chunks/{chunk-ADTCIFMD.js → chunk-ORKY33ZK.js} +69 -16
- package/dist/chunks/{chunk-XMJAKLQQ.js → chunk-T7EIXPC5.js} +1 -1
- package/dist/chunks/{chunk-I4NRKN2Z.js → chunk-THMFJODG.js} +480 -277
- package/dist/chunks/{chunk-2ZXLLEEZ.js → chunk-TNDFVAZV.js} +4 -4
- package/dist/chunks/{chunk-OVE2GAHC.js → chunk-VPDJOK2C.js} +3 -3
- package/dist/chunks/{chunk-HMFUXSD7.js → chunk-VSD5BID5.js} +1 -1
- package/dist/chunks/{chunk-ZZIAWRCX.js → chunk-W346YNDN.js} +18 -0
- package/dist/chunks/chunk-WGGABYO5.js +31 -0
- package/dist/chunks/{chunk-XCL7I6W5.js → chunk-ZHDXN5V3.js} +3 -3
- package/dist/chunks/{compile-vercel-config-OKONVGZI.js → compile-vercel-config-65QWHKPO.js} +2 -2
- package/dist/chunks/{delete-L7TN5GNZ.js → delete-NPEJGNTV.js} +5 -5
- package/dist/chunks/{disable-7NVU4H2N.js → disable-RH3MH7PH.js} +5 -5
- package/dist/chunks/{discard-SJ2TDPS2.js → discard-IJBFO24S.js} +5 -5
- package/dist/chunks/{edit-SW4MF4Q3.js → edit-GMLOKGHO.js} +6 -6
- package/dist/chunks/{enable-FOKEO6J2.js → enable-QCTL7ISO.js} +5 -5
- package/dist/chunks/{exec-UKMIYIF6.js → exec-G4AUF3KG.js} +4 -90
- package/dist/chunks/{export-3DSHT2FD.js → export-6ERWU54A.js} +9 -8
- package/dist/chunks/{image-T6I7BZSC.js → image-XUMTOUQS.js} +5 -5
- package/dist/chunks/{inspect-RV444SBC.js → inspect-7UPFOAJO.js} +5 -5
- package/dist/chunks/{inspect-EP24WN4I.js → inspect-F6LEST4Y.js} +10 -10
- package/dist/chunks/{inspect-2MY25CMN.js → inspect-OKOUOOWW.js} +10 -10
- package/dist/chunks/{inspect-DJ7OGHBK.js → inspect-ZS4U24NA.js} +9 -9
- package/dist/chunks/{list-CCG2NVLL.js → list-BTMO3CXU.js} +5 -5
- package/dist/chunks/{list-OMJ7EDKA.js → list-ZK7Q3UHB.js} +3 -3
- package/dist/chunks/login-POFRYQZ6.js +247 -0
- package/dist/chunks/{ls-VXZGEJJD.js → ls-D5Z4IWMU.js} +6 -6
- package/dist/chunks/{ls-VCTHIVI7.js → ls-EXRMNZUT.js} +9 -9
- package/dist/chunks/{ls-33Z3R2KY.js → ls-JGNNPYUA.js} +9 -9
- package/dist/chunks/{ls-5KN5FKAQ.js → ls-Z2TCQW5W.js} +9 -9
- package/dist/chunks/{publish-RZ2DIYRU.js → publish-ED2XVYSE.js} +5 -5
- package/dist/chunks/{query-2MIBB7C5.js → query-6XMBJTPX.js} +3 -3
- package/dist/chunks/{reorder-FEZIPHNW.js → reorder-7B6HZCOZ.js} +5 -5
- package/dist/chunks/{restore-JHH6CW2S.js → restore-47ZDRYQT.js} +5 -5
- package/dist/chunks/{rm-EKPVQYGH.js → rm-4IY6QGHF.js} +6 -6
- package/dist/chunks/{rm-3KAXICHP.js → rm-AA7WYBZ5.js} +5 -5
- package/dist/chunks/{rm-ULQHII4K.js → rm-NGTPTPZK.js} +6 -6
- package/dist/chunks/{rule-inspect-FOZOCOUO.js → rule-inspect-FNX6P4LZ.js} +6 -6
- package/dist/chunks/{rules-RJD4S7JA.js → rules-MMCCBGQJ.js} +10 -10
- package/dist/chunks/{schema-CDXFJU72.js → schema-JSK7S7HL.js} +3 -3
- package/dist/chunks/{tags-BLBAPEWV.js → tags-KNCSBTIH.js} +4 -4
- package/dist/chunks/{update-2NW6NKG6.js → update-JEFLJ3TH.js} +6 -6
- package/dist/commands/build/index.js +47 -16
- package/dist/commands/deploy/index.js +24 -46
- package/dist/commands/dev/index.js +202 -59
- package/dist/commands/env/index.js +10 -20
- package/dist/commands/link/index.js +33 -16
- package/dist/commands/list/index.js +26 -11
- package/dist/commands-bulk.js +13722 -10599
- package/dist/index.js +14 -24
- package/dist/version.mjs +1 -1
- package/package.json +24 -23
- package/dist/chunks/chunk-Y4JJYHUG.js +0 -16
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
} from "./chunk-XPKWKPWA.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASON
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IC4YEIGW.js";
|
|
16
16
|
import {
|
|
17
17
|
getScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VSD5BID5.js";
|
|
19
19
|
import {
|
|
20
20
|
getLinkedProject,
|
|
21
21
|
getProjectByNameOrId
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-THMFJODG.js";
|
|
23
23
|
import {
|
|
24
24
|
buildCommandWithGlobalFlags,
|
|
25
25
|
outputAgentError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CB3I3QIT.js";
|
|
27
27
|
import {
|
|
28
28
|
ProjectNotFound,
|
|
29
29
|
isAPIError,
|
|
@@ -7,14 +7,14 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
AGENT_REASON,
|
|
9
9
|
AGENT_STATUS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IC4YEIGW.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-THMFJODG.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CB3I3QIT.js";
|
|
18
18
|
import {
|
|
19
19
|
getFlagsSpecification,
|
|
20
20
|
getGlobalFlagsOnlyFromArgs,
|
|
@@ -7,6 +7,9 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
require_dist
|
|
9
9
|
} from "./chunk-OX7KI3LF.js";
|
|
10
|
+
import {
|
|
11
|
+
require_source
|
|
12
|
+
} from "./chunk-S7KYDPEM.js";
|
|
10
13
|
import {
|
|
11
14
|
__commonJS,
|
|
12
15
|
__require,
|
|
@@ -253,6 +256,20 @@ async function readStandardInput(stdin) {
|
|
|
253
256
|
});
|
|
254
257
|
}
|
|
255
258
|
|
|
259
|
+
// src/util/input/checkbox-instructions.ts
|
|
260
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
261
|
+
var CHECKBOX_INSTRUCTIONS = [
|
|
262
|
+
" ",
|
|
263
|
+
import_chalk.default.cyan("<space>"),
|
|
264
|
+
import_chalk.default.dim(" select, "),
|
|
265
|
+
import_chalk.default.cyan("<enter>"),
|
|
266
|
+
import_chalk.default.dim(" confirm, "),
|
|
267
|
+
import_chalk.default.cyan("<a>"),
|
|
268
|
+
import_chalk.default.dim(" toggle all, "),
|
|
269
|
+
import_chalk.default.cyan("<i>"),
|
|
270
|
+
import_chalk.default.dim(" invert")
|
|
271
|
+
].join("");
|
|
272
|
+
|
|
256
273
|
// src/util/target/get-custom-environments.ts
|
|
257
274
|
var import_error_utils = __toESM(require_dist(), 1);
|
|
258
275
|
async function getCustomEnvironments(client, projectId) {
|
|
@@ -284,6 +301,7 @@ function ellipsis(str, length) {
|
|
|
284
301
|
|
|
285
302
|
export {
|
|
286
303
|
readStandardInput,
|
|
304
|
+
CHECKBOX_INSTRUCTIONS,
|
|
287
305
|
getCustomEnvironments,
|
|
288
306
|
pickCustomEnvironment,
|
|
289
307
|
ellipsis,
|
|
@@ -0,0 +1,31 @@
|
|
|
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/is-valid-name.ts
|
|
9
|
+
function isValidName(name = "") {
|
|
10
|
+
const blacklist = ":/#?&@%+~".split("");
|
|
11
|
+
return !name.split("").every((c) => blacklist.includes(c));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/util/get-pagination-opts.ts
|
|
15
|
+
function getPaginationOpts(opts) {
|
|
16
|
+
const { "--next": nextTimestamp, "--limit": limit } = opts;
|
|
17
|
+
if (typeof nextTimestamp !== void 0 && Number.isNaN(nextTimestamp)) {
|
|
18
|
+
throw new Error("Please provide a number for option --next");
|
|
19
|
+
}
|
|
20
|
+
if (typeof limit === "number" && (!Number.isInteger(limit) || limit > 100 || limit < 1)) {
|
|
21
|
+
throw new Error(
|
|
22
|
+
"Please provide an integer from 1 to 100 for option --limit"
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
return [nextTimestamp, limit];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
isValidName,
|
|
30
|
+
getPaginationOpts
|
|
31
|
+
};
|
|
@@ -7,16 +7,16 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KODCUW77.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-THMFJODG.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CB3I3QIT.js";
|
|
20
20
|
import {
|
|
21
21
|
getCommandName,
|
|
22
22
|
getCommandNamePlain
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
findSourceVercelConfigFile,
|
|
12
12
|
getVercelConfigPath,
|
|
13
13
|
normalizeConfig
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-THMFJODG.js";
|
|
15
|
+
import "./chunk-CB3I3QIT.js";
|
|
16
16
|
import "./chunk-ECCWJHC6.js";
|
|
17
17
|
import "./chunk-EHTPDXTS.js";
|
|
18
18
|
import "./chunk-P6AK7SVK.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
parseSubcommandArgs,
|
|
16
16
|
resolveRoutes,
|
|
17
17
|
withGlobalFlags
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VPDJOK2C.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteSubcommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DREO3DFB.js";
|
|
22
22
|
import {
|
|
23
23
|
stamp_default
|
|
24
24
|
} from "./chunk-64IF634X.js";
|
|
@@ -26,11 +26,11 @@ import "./chunk-VXYGCOKL.js";
|
|
|
26
26
|
import {
|
|
27
27
|
AGENT_REASON,
|
|
28
28
|
AGENT_STATUS
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-IC4YEIGW.js";
|
|
30
|
+
import "./chunk-THMFJODG.js";
|
|
31
31
|
import {
|
|
32
32
|
outputAgentError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CB3I3QIT.js";
|
|
34
34
|
import "./chunk-ECCWJHC6.js";
|
|
35
35
|
import "./chunk-EHTPDXTS.js";
|
|
36
36
|
import {
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VPDJOK2C.js";
|
|
21
21
|
import {
|
|
22
22
|
disableSubcommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DREO3DFB.js";
|
|
24
24
|
import {
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-IC4YEIGW.js";
|
|
29
|
+
import "./chunk-THMFJODG.js";
|
|
30
30
|
import {
|
|
31
31
|
outputAgentError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CB3I3QIT.js";
|
|
33
33
|
import "./chunk-ECCWJHC6.js";
|
|
34
34
|
import "./chunk-EHTPDXTS.js";
|
|
35
35
|
import {
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
printDiffSummary,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VPDJOK2C.js";
|
|
21
21
|
import {
|
|
22
22
|
discardSubcommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DREO3DFB.js";
|
|
24
24
|
import {
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-IC4YEIGW.js";
|
|
29
|
+
import "./chunk-THMFJODG.js";
|
|
30
30
|
import {
|
|
31
31
|
outputAgentError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CB3I3QIT.js";
|
|
33
33
|
import "./chunk-ECCWJHC6.js";
|
|
34
34
|
import "./chunk-EHTPDXTS.js";
|
|
35
35
|
import {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
printRouteConfig,
|
|
20
20
|
routingRuleToCurrentRoute,
|
|
21
21
|
runInteractiveEditLoop
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-T7EIXPC5.js";
|
|
23
23
|
import {
|
|
24
24
|
getRouteVersions
|
|
25
25
|
} from "./chunk-AHU7WNL2.js";
|
|
@@ -31,19 +31,19 @@ import {
|
|
|
31
31
|
resolveRoute,
|
|
32
32
|
shellQuoteRouteIdentifierForSuggestion,
|
|
33
33
|
withGlobalFlags
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VPDJOK2C.js";
|
|
35
35
|
import {
|
|
36
36
|
editSubcommand
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DREO3DFB.js";
|
|
38
38
|
import {
|
|
39
39
|
stamp_default
|
|
40
40
|
} from "./chunk-64IF634X.js";
|
|
41
41
|
import "./chunk-VXYGCOKL.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-IC4YEIGW.js";
|
|
43
|
+
import "./chunk-THMFJODG.js";
|
|
44
44
|
import {
|
|
45
45
|
outputAgentError
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CB3I3QIT.js";
|
|
47
47
|
import "./chunk-ECCWJHC6.js";
|
|
48
48
|
import "./chunk-EHTPDXTS.js";
|
|
49
49
|
import {
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
parseSubcommandArgs,
|
|
18
18
|
resolveRoute,
|
|
19
19
|
withGlobalFlags
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VPDJOK2C.js";
|
|
21
21
|
import {
|
|
22
22
|
enableSubcommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DREO3DFB.js";
|
|
24
24
|
import {
|
|
25
25
|
stamp_default
|
|
26
26
|
} from "./chunk-64IF634X.js";
|
|
27
27
|
import "./chunk-VXYGCOKL.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-IC4YEIGW.js";
|
|
29
|
+
import "./chunk-THMFJODG.js";
|
|
30
30
|
import {
|
|
31
31
|
outputAgentError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CB3I3QIT.js";
|
|
33
33
|
import "./chunk-ECCWJHC6.js";
|
|
34
34
|
import "./chunk-EHTPDXTS.js";
|
|
35
35
|
import {
|
|
@@ -4,12 +4,14 @@ 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
|
+
require_lib
|
|
9
|
+
} from "./chunk-7PZWVZN6.js";
|
|
7
10
|
import {
|
|
8
11
|
require_dist as require_dist3
|
|
9
12
|
} from "./chunk-2HSQ7YUK.js";
|
|
10
13
|
import {
|
|
11
|
-
require_execa
|
|
12
|
-
require_isexe
|
|
14
|
+
require_execa
|
|
13
15
|
} from "./chunk-24FCBXI4.js";
|
|
14
16
|
import {
|
|
15
17
|
Headers,
|
|
@@ -26,94 +28,6 @@ import {
|
|
|
26
28
|
__toESM as __toESM3
|
|
27
29
|
} from "./chunk-TZ2YI2VH.js";
|
|
28
30
|
|
|
29
|
-
// ../../node_modules/.pnpm/which@3.0.0/node_modules/which/lib/index.js
|
|
30
|
-
var require_lib = __commonJS2({
|
|
31
|
-
"../../node_modules/.pnpm/which@3.0.0/node_modules/which/lib/index.js"(exports2, module2) {
|
|
32
|
-
var isexe = require_isexe();
|
|
33
|
-
var { join, delimiter, sep, posix } = __require("path");
|
|
34
|
-
var isWindows = process.platform === "win32";
|
|
35
|
-
var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
|
|
36
|
-
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
37
|
-
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
38
|
-
var getPathInfo = (cmd, {
|
|
39
|
-
path: optPath = process.env.PATH,
|
|
40
|
-
pathExt: optPathExt = process.env.PATHEXT,
|
|
41
|
-
delimiter: optDelimiter = delimiter
|
|
42
|
-
}) => {
|
|
43
|
-
const pathEnv = cmd.match(rSlash) ? [""] : [
|
|
44
|
-
// windows always checks the cwd first
|
|
45
|
-
...isWindows ? [process.cwd()] : [],
|
|
46
|
-
...(optPath || /* istanbul ignore next: very unusual */
|
|
47
|
-
"").split(optDelimiter)
|
|
48
|
-
];
|
|
49
|
-
if (isWindows) {
|
|
50
|
-
const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
|
|
51
|
-
const pathExt = pathExtExe.split(optDelimiter);
|
|
52
|
-
if (cmd.includes(".") && pathExt[0] !== "") {
|
|
53
|
-
pathExt.unshift("");
|
|
54
|
-
}
|
|
55
|
-
return { pathEnv, pathExt, pathExtExe };
|
|
56
|
-
}
|
|
57
|
-
return { pathEnv, pathExt: [""] };
|
|
58
|
-
};
|
|
59
|
-
var getPathPart = (raw, cmd) => {
|
|
60
|
-
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
61
|
-
const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
|
|
62
|
-
return prefix + join(pathPart, cmd);
|
|
63
|
-
};
|
|
64
|
-
var which2 = async (cmd, opt = {}) => {
|
|
65
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
66
|
-
const found = [];
|
|
67
|
-
for (const envPart of pathEnv) {
|
|
68
|
-
const p = getPathPart(envPart, cmd);
|
|
69
|
-
for (const ext of pathExt) {
|
|
70
|
-
const withExt = p + ext;
|
|
71
|
-
const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
|
72
|
-
if (is) {
|
|
73
|
-
if (!opt.all) {
|
|
74
|
-
return withExt;
|
|
75
|
-
}
|
|
76
|
-
found.push(withExt);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (opt.all && found.length) {
|
|
81
|
-
return found;
|
|
82
|
-
}
|
|
83
|
-
if (opt.nothrow) {
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
throw getNotFoundError(cmd);
|
|
87
|
-
};
|
|
88
|
-
var whichSync = (cmd, opt = {}) => {
|
|
89
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
90
|
-
const found = [];
|
|
91
|
-
for (const pathEnvPart of pathEnv) {
|
|
92
|
-
const p = getPathPart(pathEnvPart, cmd);
|
|
93
|
-
for (const ext of pathExt) {
|
|
94
|
-
const withExt = p + ext;
|
|
95
|
-
const is = isexe.sync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
|
|
96
|
-
if (is) {
|
|
97
|
-
if (!opt.all) {
|
|
98
|
-
return withExt;
|
|
99
|
-
}
|
|
100
|
-
found.push(withExt);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (opt.all && found.length) {
|
|
105
|
-
return found;
|
|
106
|
-
}
|
|
107
|
-
if (opt.nothrow) {
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
throw getNotFoundError(cmd);
|
|
111
|
-
};
|
|
112
|
-
module2.exports = which2;
|
|
113
|
-
which2.sync = whichSync;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
|
|
117
31
|
// ../../node_modules/.pnpm/@edge-runtime+node-utils@2.3.0/node_modules/@edge-runtime/node-utils/dist/index.js
|
|
118
32
|
var require_dist4 = __commonJS2({
|
|
119
33
|
"../../node_modules/.pnpm/@edge-runtime+node-utils@2.3.0/node_modules/@edge-runtime/node-utils/dist/index.js"(exports, module) {
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
getRoutes,
|
|
10
10
|
parseSubcommandArgs,
|
|
11
11
|
withGlobalFlags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VPDJOK2C.js";
|
|
13
13
|
import {
|
|
14
14
|
exportSubcommand
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-DREO3DFB.js";
|
|
16
|
+
import "./chunk-IC4YEIGW.js";
|
|
17
|
+
import "./chunk-THMFJODG.js";
|
|
18
18
|
import {
|
|
19
19
|
outputAgentError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CB3I3QIT.js";
|
|
21
21
|
import "./chunk-ECCWJHC6.js";
|
|
22
22
|
import "./chunk-EHTPDXTS.js";
|
|
23
23
|
import {
|
|
@@ -84,11 +84,12 @@ async function exportRoutes(client, argv) {
|
|
|
84
84
|
const { project, org } = link;
|
|
85
85
|
const teamId = org.type === "team" ? org.id : void 0;
|
|
86
86
|
const { args, flags } = parsed;
|
|
87
|
-
const
|
|
87
|
+
const rawFormat = flags["--output"] || "json";
|
|
88
|
+
const format = rawFormat.toLowerCase().replace(/^\./, "");
|
|
88
89
|
const nameOrId = args[0];
|
|
89
90
|
const validFormats = ["json", "ts"];
|
|
90
91
|
if (!validFormats.includes(format)) {
|
|
91
|
-
const msg = `Invalid format: "${
|
|
92
|
+
const msg = `Invalid output format: "${rawFormat}". Valid formats: ${validFormats.join(", ")}. Usage: ${getCommandName("routes export --output json")}`;
|
|
92
93
|
if (client.nonInteractive) {
|
|
93
94
|
outputAgentError(client, {
|
|
94
95
|
status: "error",
|
|
@@ -96,7 +97,7 @@ async function exportRoutes(client, argv) {
|
|
|
96
97
|
message: msg,
|
|
97
98
|
next: [
|
|
98
99
|
{
|
|
99
|
-
command: withGlobalFlags(client, "routes export --
|
|
100
|
+
command: withGlobalFlags(client, "routes export --output json")
|
|
100
101
|
}
|
|
101
102
|
]
|
|
102
103
|
});
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-YPQSDAEW.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASON
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IC4YEIGW.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
18
18
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CB3I3QIT.js";
|
|
20
20
|
import "./chunk-P6AK7SVK.js";
|
|
21
21
|
import "./chunk-P4QNYOFB.js";
|
|
22
22
|
import {
|
|
@@ -58,11 +58,11 @@ async function image(client, argv, telemetry) {
|
|
|
58
58
|
}
|
|
59
59
|
switch (subcommand) {
|
|
60
60
|
case "ls":
|
|
61
|
-
return (await import("./ls-
|
|
61
|
+
return (await import("./ls-JGNNPYUA.js")).default(client, args, telemetry);
|
|
62
62
|
case "inspect":
|
|
63
|
-
return (await import("./inspect-
|
|
63
|
+
return (await import("./inspect-F6LEST4Y.js")).default(client, args, telemetry);
|
|
64
64
|
case "rm":
|
|
65
|
-
return (await import("./rm-
|
|
65
|
+
return (await import("./rm-AA7WYBZ5.js")).default(client, args, telemetry);
|
|
66
66
|
default:
|
|
67
67
|
output_manager_default.error(`Unhandled image subcommand: ${subcommand}`);
|
|
68
68
|
return 1;
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
emitAlertsScopeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JHZG2MPW.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
@@ -21,18 +21,18 @@ import {
|
|
|
21
21
|
import "./chunk-22GUZ5KG.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_REASON
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IC4YEIGW.js";
|
|
25
25
|
import {
|
|
26
26
|
getScope
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VSD5BID5.js";
|
|
28
28
|
import {
|
|
29
29
|
getLinkedProject,
|
|
30
30
|
getProjectByNameOrId
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-THMFJODG.js";
|
|
32
32
|
import {
|
|
33
33
|
buildCommandWithGlobalFlags,
|
|
34
34
|
outputAgentError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CB3I3QIT.js";
|
|
36
36
|
import "./chunk-ECCWJHC6.js";
|
|
37
37
|
import {
|
|
38
38
|
getFlagsSpecification,
|
|
@@ -4,32 +4,32 @@ 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
|
+
imagePath,
|
|
9
|
+
repositoryPath
|
|
10
|
+
} from "./chunk-4QVAYRYH.js";
|
|
7
11
|
import {
|
|
8
12
|
formatBytes,
|
|
9
13
|
formatImageReference,
|
|
10
14
|
formatImageStatus,
|
|
11
15
|
formatRelativeTime
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
imagePath,
|
|
15
|
-
repositoryPath
|
|
16
|
-
} from "./chunk-4QVAYRYH.js";
|
|
16
|
+
} from "./chunk-CMJMYVQM.js";
|
|
17
17
|
import {
|
|
18
18
|
emitVcrArgParseError,
|
|
19
19
|
handleVcrApiError,
|
|
20
20
|
requireVcrRepositoryAndImageId,
|
|
21
21
|
resolveVcrScope,
|
|
22
22
|
validateVcrJsonOutput
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TNDFVAZV.js";
|
|
24
24
|
import "./chunk-BUZRVER7.js";
|
|
25
25
|
import "./chunk-XPKWKPWA.js";
|
|
26
26
|
import {
|
|
27
27
|
imageInspectSubcommand
|
|
28
28
|
} from "./chunk-RLJA2KI7.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-IC4YEIGW.js";
|
|
30
|
+
import "./chunk-VSD5BID5.js";
|
|
31
|
+
import "./chunk-THMFJODG.js";
|
|
32
|
+
import "./chunk-CB3I3QIT.js";
|
|
33
33
|
import "./chunk-ECCWJHC6.js";
|
|
34
34
|
import {
|
|
35
35
|
getFlagsSpecification,
|
|
@@ -4,32 +4,32 @@ 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
|
+
repositoryPath,
|
|
9
|
+
repositoryTagPath
|
|
10
|
+
} from "./chunk-4QVAYRYH.js";
|
|
7
11
|
import {
|
|
8
12
|
formatBytes,
|
|
9
13
|
formatImageStatus,
|
|
10
14
|
formatRelativeTime,
|
|
11
15
|
formatTagReference
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
repositoryPath,
|
|
15
|
-
repositoryTagPath
|
|
16
|
-
} from "./chunk-4QVAYRYH.js";
|
|
16
|
+
} from "./chunk-CMJMYVQM.js";
|
|
17
17
|
import {
|
|
18
18
|
emitVcrArgParseError,
|
|
19
19
|
handleVcrApiError,
|
|
20
20
|
requireVcrRepositoryAndTag,
|
|
21
21
|
resolveVcrScope,
|
|
22
22
|
validateVcrJsonOutput
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TNDFVAZV.js";
|
|
24
24
|
import "./chunk-BUZRVER7.js";
|
|
25
25
|
import "./chunk-XPKWKPWA.js";
|
|
26
26
|
import {
|
|
27
27
|
tagsInspectSubcommand
|
|
28
28
|
} from "./chunk-7C7MMT4J.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-IC4YEIGW.js";
|
|
30
|
+
import "./chunk-VSD5BID5.js";
|
|
31
|
+
import "./chunk-THMFJODG.js";
|
|
32
|
+
import "./chunk-CB3I3QIT.js";
|
|
33
33
|
import "./chunk-ECCWJHC6.js";
|
|
34
34
|
import {
|
|
35
35
|
getFlagsSpecification,
|
|
@@ -4,30 +4,30 @@ 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
|
-
formatRelativeTime
|
|
9
|
-
} from "./chunk-I3HGCZ4E.js";
|
|
10
7
|
import {
|
|
11
8
|
repositoryPath
|
|
12
9
|
} from "./chunk-4QVAYRYH.js";
|
|
10
|
+
import {
|
|
11
|
+
formatRelativeTime
|
|
12
|
+
} from "./chunk-CMJMYVQM.js";
|
|
13
13
|
import {
|
|
14
14
|
emitVcrArgParseError,
|
|
15
15
|
handleVcrApiError,
|
|
16
16
|
requireVcrRepository,
|
|
17
17
|
resolveVcrScope,
|
|
18
18
|
validateVcrJsonOutput
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TNDFVAZV.js";
|
|
20
20
|
import "./chunk-BUZRVER7.js";
|
|
21
21
|
import "./chunk-XPKWKPWA.js";
|
|
22
22
|
import {
|
|
23
23
|
inspectSubcommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5OT26JZN.js";
|
|
25
25
|
import "./chunk-7C7MMT4J.js";
|
|
26
26
|
import "./chunk-RLJA2KI7.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-IC4YEIGW.js";
|
|
28
|
+
import "./chunk-VSD5BID5.js";
|
|
29
|
+
import "./chunk-THMFJODG.js";
|
|
30
|
+
import "./chunk-CB3I3QIT.js";
|
|
31
31
|
import "./chunk-ECCWJHC6.js";
|
|
32
32
|
import {
|
|
33
33
|
getFlagsSpecification,
|