vercel 59.11.2 → 59.12.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-BKSHWTPX.js → add-OO3JGLZW.js} +23 -18
- package/dist/chunks/{add-HPLJZFM2.js → add-RTXDASSS.js} +23 -18
- package/dist/chunks/add-XGO6LHMD.js +221 -0
- package/dist/chunks/{build-V4ZLAJWB.js → build-JINV2UD4.js} +23 -18
- package/dist/chunks/{chunk-NGGLYKNU.js → chunk-26CU4Q3C.js} +3 -115
- package/dist/chunks/{chunk-QFAS4OVW.js → chunk-2JIX6UMI.js} +3 -84
- package/dist/chunks/chunk-2NIDTSQJ.js +305 -0
- package/dist/chunks/chunk-32XSMM3W.js +49 -0
- package/dist/chunks/chunk-332LMJLZ.js +16014 -0
- package/dist/chunks/{chunk-RO44KX6Y.js → chunk-3BB2HOO2.js} +12 -7
- package/dist/chunks/{chunk-HDBQPBL6.js → chunk-3F25W3GA.js} +13 -9
- package/dist/chunks/{chunk-AYLY3ZVL.js → chunk-3VM7HWF6.js} +2 -2
- package/dist/chunks/chunk-4IALDGB7.js +22 -0
- package/dist/chunks/{chunk-MTWHQEXI.js → chunk-4TUMNBEE.js} +7 -5
- package/dist/chunks/{chunk-5XECIWME.js → chunk-5NF5HOBJ.js} +5 -3
- package/dist/chunks/chunk-6E6KPBXY.js +43 -0
- package/dist/chunks/{chunk-ASBP32T6.js → chunk-7MRDIPJY.js} +1 -1
- package/dist/chunks/chunk-ABSZNJQO.js +522 -0
- package/dist/chunks/{chunk-7ST552E3.js → chunk-AKLTIZCU.js} +1 -1
- package/dist/chunks/{chunk-ONRLTUP2.js → chunk-AV747POV.js} +43 -36
- package/dist/chunks/chunk-B5XLQKHI.js +849 -0
- package/dist/chunks/{chunk-BMKU5KEL.js → chunk-CV5YC2EN.js} +1 -1
- package/dist/chunks/{chunk-TPATD2MM.js → chunk-CZ5QQRXD.js} +14 -6
- package/dist/chunks/{chunk-2EAIC3SH.js → chunk-E47NARDE.js} +8 -8
- package/dist/chunks/{chunk-XM3LOQIX.js → chunk-EDMW7SBH.js} +76 -92
- package/dist/chunks/{chunk-QAT3CW4G.js → chunk-EFYMIIER.js} +2 -2
- package/dist/chunks/chunk-ELZ6WQQA.js +81 -0
- package/dist/chunks/{chunk-FKDO3CM4.js → chunk-EOLGLGXJ.js} +17 -13
- package/dist/chunks/chunk-FRVG4OW3.js +7438 -0
- package/dist/chunks/chunk-G5FBSUL4.js +822 -0
- package/dist/chunks/chunk-GDOUDU6O.js +74 -0
- package/dist/chunks/{chunk-OQ3C5VXZ.js → chunk-GVNCVKCI.js} +4 -2
- package/dist/chunks/chunk-HB4UKFDO.js +1295 -0
- package/dist/chunks/{chunk-FRAXI2WT.js → chunk-HD4DR3DA.js} +4 -3
- package/dist/chunks/{chunk-DWIC7MRV.js → chunk-HKHXKSXQ.js} +1 -1
- package/dist/chunks/{chunk-6JPVTPTU.js → chunk-HM24ZWQL.js} +4 -4
- package/dist/chunks/chunk-HR2MP4XF.js +324 -0
- package/dist/chunks/chunk-HRXRELD3.js +338 -0
- package/dist/chunks/{chunk-IJ4X426J.js → chunk-IIMSID24.js} +1 -1
- package/dist/chunks/{chunk-B4TXCKXE.js → chunk-JOXNBQ7W.js} +10 -8
- package/dist/chunks/{chunk-O75LSD3C.js → chunk-JSD4EZL3.js} +1 -1
- package/dist/chunks/{chunk-7AEEQOD4.js → chunk-K3RED3VO.js} +1 -1
- package/dist/chunks/chunk-KAF4WFF3.js +257 -0
- package/dist/chunks/{chunk-3T7WSWZH.js → chunk-KFWQ3EFH.js} +1 -1
- package/dist/chunks/{chunk-6CZZ3SH3.js → chunk-KNO327AW.js} +2 -2
- package/dist/chunks/{chunk-L3UXB2CW.js → chunk-KW7BS25T.js} +1 -1
- package/dist/chunks/{chunk-2NJJ2K5S.js → chunk-L6B6BRHH.js} +6 -6
- package/dist/chunks/{chunk-FZRBF25Y.js → chunk-LDV2R4P4.js} +4 -4
- package/dist/chunks/chunk-MADFAH3O.js +14059 -0
- package/dist/chunks/{chunk-OO3OF6MK.js → chunk-MDGPZHSM.js} +151 -26
- package/dist/chunks/{chunk-XRWOTCDO.js → chunk-ND5CF2H3.js} +1 -1
- package/dist/chunks/{chunk-6TBDHUXK.js → chunk-NDY3JDOU.js} +21 -15
- package/dist/chunks/{chunk-RKDCNQ4S.js → chunk-NW34PW6V.js} +3 -105
- package/dist/chunks/{chunk-C5HKWXRR.js → chunk-OAMU5QO6.js} +1 -1
- package/dist/chunks/{chunk-RSJBU3ON.js → chunk-OJHDGHOB.js} +35 -27
- package/dist/chunks/chunk-P7VSBDR4.js +827 -0
- package/dist/chunks/chunk-PEC3CQSK.js +90 -0
- package/dist/chunks/{chunk-KJBZ5ZST.js → chunk-PIMIVJYK.js} +1 -0
- package/dist/chunks/chunk-PNGVSHR3.js +40 -0
- package/dist/chunks/chunk-PP5GKSIX.js +137 -0
- package/dist/chunks/chunk-QB2UHSUB.js +58 -0
- package/dist/chunks/chunk-QIUK4Z7Q.js +79 -0
- package/dist/chunks/chunk-RN6V5ODW.js +114 -0
- package/dist/chunks/chunk-RNK3LXLR.js +1288 -0
- package/dist/chunks/chunk-RVBZ64EQ.js +52 -0
- package/dist/chunks/{chunk-WA2SJE5S.js → chunk-SWO66HE2.js} +4 -4
- package/dist/chunks/{chunk-NBW3BWOJ.js → chunk-TDGK45FB.js} +2 -2
- package/dist/chunks/{chunk-WNAKOXGK.js → chunk-TO7QZGYK.js} +1 -1
- package/dist/chunks/{chunk-QDV5LZ4Q.js → chunk-UA55I7M6.js} +12 -8
- package/dist/chunks/{chunk-FWKSJYDV.js → chunk-UG2WOB5L.js} +1 -1
- package/dist/chunks/chunk-UJPVHLL5.js +233 -0
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-VJSREJVM.js +875 -0
- package/dist/chunks/chunk-VUS2JQB2.js +121 -0
- package/dist/chunks/{chunk-4KVJ2M4J.js → chunk-WPBCUXMZ.js} +582 -37
- package/dist/chunks/chunk-WSZ5E4WH.js +92 -0
- package/dist/chunks/{chunk-Q5K5DEOK.js → chunk-WT2Y7FRD.js} +42 -28
- package/dist/chunks/chunk-WT6C2ALC.js +18188 -0
- package/dist/chunks/chunk-X6TGUHFD.js +59 -0
- package/dist/chunks/{chunk-ZSFEACZU.js → chunk-XFF5TGRA.js} +1 -1
- package/dist/chunks/chunk-XNIZGCN5.js +58 -0
- package/dist/chunks/chunk-XPJLPUKO.js +117 -0
- package/dist/chunks/{chunk-FXD67VN5.js → chunk-XUAWTW4W.js} +1 -1
- package/dist/chunks/chunk-YPMFZRTN.js +417 -0
- package/dist/chunks/chunk-YRESLJCW.js +1536 -0
- package/dist/chunks/{chunk-I526H4AS.js → chunk-YS76T533.js} +2 -2
- package/dist/chunks/{chunk-52QYYTM5.js → chunk-ZDU2NODC.js} +3 -127
- package/dist/chunks/chunk-ZW6HETRE.js +97 -0
- package/dist/chunks/{clear-IYGWCNXT.js → clear-GQTDYSKJ.js} +23 -18
- package/dist/chunks/{compile-vercel-config-NEEBZRUJ.js → compile-vercel-config-URVMKDVW.js} +8 -11
- package/dist/chunks/{config-6DS6BBR2.js → config-MSVQR5T6.js} +23 -18
- package/dist/chunks/{config-NTB5EMV4.js → config-OAXY4J6P.js} +23 -18
- package/dist/chunks/config-validator.mjs +1 -1
- package/dist/chunks/{delete-LSGID5FV.js → delete-57QO64HD.js} +19 -14
- package/dist/chunks/{delete-LLC2OGHA.js → delete-XN6ESD7C.js} +16 -12
- package/dist/chunks/detect-projects-ODNU4PK2.js +18 -0
- package/dist/chunks/detect-services-UPY4LTBZ.js +40 -0
- package/dist/chunks/{disable-H4EXEQK7.js → disable-BYI46V7B.js} +17 -13
- package/dist/chunks/{discard-FG6VKHWN.js → discard-IIQL44ZZ.js} +17 -13
- package/dist/chunks/{edit-BZJSGUHT.js → edit-BRNS3OR4.js} +19 -15
- package/dist/chunks/{edit-YE7D3CPJ.js → edit-JTW7XZH7.js} +17 -13
- package/dist/chunks/{enable-6ESD4QTE.js → enable-CH5FSQMR.js} +17 -13
- package/dist/chunks/{exec-XH4K34JM.js → exec-4IPHZ55G.js} +9 -5
- package/dist/chunks/{export-QWSJROLG.js → export-6WHQOWKM.js} +16 -13
- package/dist/chunks/{image-LTHQMKFG.js → image-ZSLYATWG.js} +11 -8
- package/dist/chunks/{import-builders-6O7ILGQJ.js → import-builders-FNMYJZGG.js} +18 -13
- package/dist/chunks/{inspect-2C4ZSNYC.js → inspect-4RDZSYWU.js} +27 -23
- package/dist/chunks/{inspect-N6SMHV3Z.js → inspect-7WQXZWET.js} +18 -14
- package/dist/chunks/{inspect-F7KCTHIL.js → inspect-CGXTNMMO.js} +19 -15
- package/dist/chunks/{inspect-ICKNCDMT.js → inspect-XJ7BYLZ5.js} +18 -14
- package/dist/chunks/{inspect-TWDPMXZ5.js → inspect-Z2MBTTB7.js} +18 -14
- package/dist/chunks/{list-NWTIJF3L.js → list-65LW6OTM.js} +20 -16
- package/dist/chunks/{list-DS7ZOUXA.js → list-7W3PHRB6.js} +25 -21
- package/dist/chunks/{list-IPGQVBJO.js → list-KS22Y57L.js} +16 -14
- package/dist/chunks/{login-F7A7ONKC.js → login-NXULVQZ2.js} +23 -18
- package/dist/chunks/{ls-2QW3ZSM6.js → ls-35EOVEIQ.js} +24 -18
- package/dist/chunks/{ls-XINES6PL.js → ls-5GKS5QRW.js} +24 -18
- package/dist/chunks/ls-ADYFYYIW.js +204 -0
- package/dist/chunks/{ls-D4TUDBIH.js → ls-DZYN3SNS.js} +24 -18
- package/dist/chunks/{ls-LSJEUPFX.js → ls-HVQOGBGV.js} +23 -16
- package/dist/chunks/{ls-NBDX3MKN.js → ls-I2PWG7YN.js} +24 -18
- package/dist/chunks/{open-VRQDWZAW.js → open-H34HXJHP.js} +18 -13
- package/dist/chunks/{permissions-6C5C7TEV.js → permissions-ZPPEPKVE.js} +14 -11
- package/dist/chunks/{publish-GVIZPNLN.js → publish-NRMKXHAU.js} +17 -13
- package/dist/chunks/pull-WUT3XTZX.js +45 -0
- package/dist/chunks/{push-EFZ5P5Z6.js → push-WFNCEA5J.js} +23 -18
- package/dist/chunks/{query-GBS2PIT4.js → query-2FQM3F7N.js} +23 -20
- package/dist/chunks/{reorder-TN65IFRL.js → reorder-GYCT7L3C.js} +17 -13
- package/dist/chunks/{reply-DYVEV3PY.js → reply-RFEXNYZ7.js} +17 -13
- package/dist/chunks/{resolve-JAWFBPUM.js → resolve-ZFGT7W6Z.js} +16 -12
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +36 -0
- package/dist/chunks/{restore-TJVMHUBQ.js → restore-JAXPMYL5.js} +17 -13
- package/dist/chunks/rm-CLKQN5E4.js +162 -0
- package/dist/chunks/{rm-HQ5CYNJA.js → rm-JPV5V2SH.js} +23 -18
- package/dist/chunks/{rm-7XACNZ2U.js → rm-N7SGFQOA.js} +23 -18
- package/dist/chunks/{rm-REJVXALW.js → rm-UQJ4CZJH.js} +23 -18
- package/dist/chunks/{rm-CBPNMSRP.js → rm-ZUQ4U454.js} +24 -17
- package/dist/chunks/{routes-2OLIBRYX.js → routes-QVMBXOSX.js} +7 -3
- package/dist/chunks/rule-inspect-HI3YY7OY.js +123 -0
- package/dist/chunks/{rules-VGV4M4KY.js → rules-DA3Q64M4.js} +15 -12
- package/dist/chunks/{schema-GMTQOQCV.js → schema-R3C4CXJ6.js} +20 -18
- package/dist/chunks/schema-UYYFV3JB.js +381 -0
- package/dist/chunks/{set-Z5FO2FCC.js → set-TOJPGW4J.js} +21 -14
- package/dist/chunks/setup-and-link-DRYXQOH4.js +65 -0
- package/dist/chunks/{tags-SDRXWJ63.js → tags-TNLVFNVI.js} +10 -7
- package/dist/chunks/{types-JGANJ5EQ.js → types-4GAJ7XQQ.js} +9 -7
- package/dist/chunks/update-X6JB3NPI.js +224 -0
- package/dist/chunks/vlt-builder-importer-USCFHWPL.js +322 -0
- package/dist/commands/build/index.js +86 -49
- package/dist/commands/deploy/index.js +76 -67
- package/dist/commands/dev/index.js +98 -52
- package/dist/commands/env/index.js +68 -44
- package/dist/commands/link/index.js +49 -28
- package/dist/commands/list/index.js +33 -22
- package/dist/commands-bulk.js +8715 -3581
- package/dist/help.js +1 -1
- package/dist/index.js +74 -42
- package/dist/runtime-assets/node-preloads/next-dev-websocket.cjs +6 -0
- package/dist/version.mjs +1 -1
- package/package.json +52 -48
- package/dist/chunks/add-RBW7QITR.js +0 -219
- package/dist/chunks/chunk-26XDDLXM.js +0 -144
- package/dist/chunks/chunk-5GGUB4EO.js +0 -31
- package/dist/chunks/chunk-MXLA3VQS.js +0 -20
- package/dist/chunks/chunk-OTXE7MHI.js +0 -96
- package/dist/chunks/chunk-RSEAADCE.js +0 -138
- package/dist/chunks/chunk-WYU64FLP.js +0 -62123
- package/dist/chunks/chunk-XNFHNTS2.js +0 -2939
- package/dist/chunks/ls-RNGO257R.js +0 -193
- package/dist/chunks/rm-5B5VHWWN.js +0 -170
- package/dist/chunks/rule-inspect-ZSTDDFID.js +0 -281
- package/dist/chunks/schema-45SJNY5L.js +0 -427
- package/dist/chunks/update-JBQBC3IV.js +0 -233
|
@@ -17,44 +17,49 @@ import {
|
|
|
17
17
|
emitVcrArgParseError,
|
|
18
18
|
resolveVcrScope,
|
|
19
19
|
validateVcrJsonOutput
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-EOLGLGXJ.js";
|
|
21
|
+
import "./chunk-TO7QZGYK.js";
|
|
22
22
|
import {
|
|
23
23
|
outputError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
25
25
|
import "./chunk-KXDWXXJH.js";
|
|
26
26
|
import {
|
|
27
27
|
permissionsAddSubcommand
|
|
28
28
|
} from "./chunk-EZKW5YJ2.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-XNFHNTS2.js";
|
|
33
|
-
import {
|
|
34
|
-
AGENT_REASON,
|
|
35
|
-
buildCommandWithGlobalFlags,
|
|
36
|
-
outputAgentError
|
|
37
|
-
} from "./chunk-NGGLYKNU.js";
|
|
29
|
+
import "./chunk-5NF5HOBJ.js";
|
|
30
|
+
import "./chunk-ZDU2NODC.js";
|
|
31
|
+
import "./chunk-PEC3CQSK.js";
|
|
38
32
|
import "./chunk-GGP5R3FU.js";
|
|
33
|
+
import {
|
|
34
|
+
AGENT_REASON
|
|
35
|
+
} from "./chunk-VUS2JQB2.js";
|
|
36
|
+
import "./chunk-ABSZNJQO.js";
|
|
37
|
+
import "./chunk-XNIZGCN5.js";
|
|
39
38
|
import {
|
|
40
39
|
printError
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3VM7HWF6.js";
|
|
42
41
|
import {
|
|
43
42
|
parseArguments
|
|
44
43
|
} from "./chunk-57RHXXXG.js";
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MADFAH3O.js";
|
|
45
|
+
import "./chunk-G5FBSUL4.js";
|
|
46
|
+
import {
|
|
47
|
+
buildCommandWithGlobalFlags,
|
|
48
|
+
outputAgentError
|
|
49
|
+
} from "./chunk-26CU4Q3C.js";
|
|
50
|
+
import "./chunk-XPJLPUKO.js";
|
|
46
51
|
import {
|
|
47
52
|
isAPIError
|
|
48
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-CV5YC2EN.js";
|
|
49
54
|
import {
|
|
50
55
|
getFlagsSpecification,
|
|
51
56
|
packageName
|
|
52
57
|
} from "./chunk-Q2DGFCO7.js";
|
|
53
|
-
import "./chunk-P4QNYOFB.js";
|
|
54
|
-
import "./chunk-52QYYTM5.js";
|
|
55
58
|
import {
|
|
56
59
|
output_manager_default
|
|
57
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2JIX6UMI.js";
|
|
61
|
+
import "./chunk-P4QNYOFB.js";
|
|
62
|
+
import "./chunk-ZW6HETRE.js";
|
|
58
63
|
import "./chunk-S7KYDPEM.js";
|
|
59
64
|
import {
|
|
60
65
|
__toESM
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
handleVcrApiError,
|
|
10
10
|
resolveVcrScope,
|
|
11
11
|
validateVcrJsonOutput
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-EOLGLGXJ.js";
|
|
13
|
+
import "./chunk-TO7QZGYK.js";
|
|
14
14
|
import {
|
|
15
15
|
outputError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
17
17
|
import "./chunk-KXDWXXJH.js";
|
|
18
18
|
import {
|
|
19
19
|
addSubcommand
|
|
@@ -21,35 +21,40 @@ import {
|
|
|
21
21
|
import "./chunk-EZKW5YJ2.js";
|
|
22
22
|
import "./chunk-NFU4XJIR.js";
|
|
23
23
|
import "./chunk-3HZLXCVL.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-XNFHNTS2.js";
|
|
28
|
-
import {
|
|
29
|
-
AGENT_REASON,
|
|
30
|
-
buildCommandWithGlobalFlags,
|
|
31
|
-
outputAgentError
|
|
32
|
-
} from "./chunk-NGGLYKNU.js";
|
|
24
|
+
import "./chunk-5NF5HOBJ.js";
|
|
25
|
+
import "./chunk-ZDU2NODC.js";
|
|
26
|
+
import "./chunk-PEC3CQSK.js";
|
|
33
27
|
import "./chunk-GGP5R3FU.js";
|
|
28
|
+
import {
|
|
29
|
+
AGENT_REASON
|
|
30
|
+
} from "./chunk-VUS2JQB2.js";
|
|
31
|
+
import "./chunk-ABSZNJQO.js";
|
|
32
|
+
import "./chunk-XNIZGCN5.js";
|
|
34
33
|
import {
|
|
35
34
|
printError
|
|
36
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3VM7HWF6.js";
|
|
37
36
|
import {
|
|
38
37
|
parseArguments
|
|
39
38
|
} from "./chunk-57RHXXXG.js";
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-MADFAH3O.js";
|
|
40
|
+
import "./chunk-G5FBSUL4.js";
|
|
41
|
+
import {
|
|
42
|
+
buildCommandWithGlobalFlags,
|
|
43
|
+
outputAgentError
|
|
44
|
+
} from "./chunk-26CU4Q3C.js";
|
|
45
|
+
import "./chunk-XPJLPUKO.js";
|
|
41
46
|
import {
|
|
42
47
|
isAPIError
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CV5YC2EN.js";
|
|
44
49
|
import {
|
|
45
50
|
getFlagsSpecification,
|
|
46
51
|
packageName
|
|
47
52
|
} from "./chunk-Q2DGFCO7.js";
|
|
48
|
-
import "./chunk-P4QNYOFB.js";
|
|
49
|
-
import "./chunk-52QYYTM5.js";
|
|
50
53
|
import {
|
|
51
54
|
output_manager_default
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2JIX6UMI.js";
|
|
56
|
+
import "./chunk-P4QNYOFB.js";
|
|
57
|
+
import "./chunk-ZW6HETRE.js";
|
|
53
58
|
import "./chunk-S7KYDPEM.js";
|
|
54
59
|
import "./chunk-TZ2YI2VH.js";
|
|
55
60
|
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
printRuleMutationReceipt
|
|
9
|
+
} from "./chunk-2NIDTSQJ.js";
|
|
10
|
+
import "./chunk-GDOUDU6O.js";
|
|
11
|
+
import {
|
|
12
|
+
emitRulesArgParseError,
|
|
13
|
+
getBodyType,
|
|
14
|
+
handleRulesApiError,
|
|
15
|
+
outputRulesError,
|
|
16
|
+
readRuleBody,
|
|
17
|
+
resolveRulesProject,
|
|
18
|
+
resolveRulesTeam,
|
|
19
|
+
rulesCollectionPath
|
|
20
|
+
} from "./chunk-HR2MP4XF.js";
|
|
21
|
+
import "./chunk-3BB2HOO2.js";
|
|
22
|
+
import "./chunk-GZLPFESR.js";
|
|
23
|
+
import "./chunk-A3NYPUKZ.js";
|
|
24
|
+
import "./chunk-KFWQ3EFH.js";
|
|
25
|
+
import "./chunk-FGDKMNEN.js";
|
|
26
|
+
import "./chunk-PRWJUY5U.js";
|
|
27
|
+
import "./chunk-WT2Y7FRD.js";
|
|
28
|
+
import "./chunk-AINIBIP4.js";
|
|
29
|
+
import "./chunk-QB2UHSUB.js";
|
|
30
|
+
import "./chunk-ND5CF2H3.js";
|
|
31
|
+
import {
|
|
32
|
+
validateJsonOutput
|
|
33
|
+
} from "./chunk-KXDWXXJH.js";
|
|
34
|
+
import "./chunk-V4RMJKQP.js";
|
|
35
|
+
import {
|
|
36
|
+
rulesAddSubcommand
|
|
37
|
+
} from "./chunk-EDMW7SBH.js";
|
|
38
|
+
import "./chunk-WT6C2ALC.js";
|
|
39
|
+
import "./chunk-P7VSBDR4.js";
|
|
40
|
+
import "./chunk-YPMFZRTN.js";
|
|
41
|
+
import "./chunk-ZDU2NODC.js";
|
|
42
|
+
import "./chunk-PEC3CQSK.js";
|
|
43
|
+
import "./chunk-GGP5R3FU.js";
|
|
44
|
+
import "./chunk-VUS2JQB2.js";
|
|
45
|
+
import "./chunk-KAF4WFF3.js";
|
|
46
|
+
import "./chunk-HRXRELD3.js";
|
|
47
|
+
import "./chunk-B5XLQKHI.js";
|
|
48
|
+
import "./chunk-ABSZNJQO.js";
|
|
49
|
+
import "./chunk-XNIZGCN5.js";
|
|
50
|
+
import "./chunk-NW34PW6V.js";
|
|
51
|
+
import {
|
|
52
|
+
printError
|
|
53
|
+
} from "./chunk-3VM7HWF6.js";
|
|
54
|
+
import {
|
|
55
|
+
parseArguments
|
|
56
|
+
} from "./chunk-57RHXXXG.js";
|
|
57
|
+
import "./chunk-MADFAH3O.js";
|
|
58
|
+
import "./chunk-G5FBSUL4.js";
|
|
59
|
+
import "./chunk-26CU4Q3C.js";
|
|
60
|
+
import "./chunk-XPJLPUKO.js";
|
|
61
|
+
import {
|
|
62
|
+
isAPIError
|
|
63
|
+
} from "./chunk-CV5YC2EN.js";
|
|
64
|
+
import {
|
|
65
|
+
getFlagsSpecification
|
|
66
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
67
|
+
import {
|
|
68
|
+
output_manager_default
|
|
69
|
+
} from "./chunk-2JIX6UMI.js";
|
|
70
|
+
import "./chunk-P4QNYOFB.js";
|
|
71
|
+
import "./chunk-ZW6HETRE.js";
|
|
72
|
+
import "./chunk-S7KYDPEM.js";
|
|
73
|
+
import "./chunk-TZ2YI2VH.js";
|
|
74
|
+
|
|
75
|
+
// src/commands/alerts/rules/add.ts
|
|
76
|
+
function applyScopeFlag(client, body, type, scope, flags, jsonOutput) {
|
|
77
|
+
if (Object.hasOwn(body, "ruleScope")) {
|
|
78
|
+
if (flags["--project"] || flags["--all"]) {
|
|
79
|
+
return outputRulesError(
|
|
80
|
+
client,
|
|
81
|
+
jsonOutput,
|
|
82
|
+
"SCOPE_CONFLICT",
|
|
83
|
+
"Specify rule scope either in the body or with --project/--all, not both."
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
return void 0;
|
|
87
|
+
}
|
|
88
|
+
if (flags["--project"]) {
|
|
89
|
+
body.ruleScope = type === "custom" ? { type: "project", projectId: scope.projectId } : { type: "include", projectIds: [scope.projectId] };
|
|
90
|
+
return void 0;
|
|
91
|
+
}
|
|
92
|
+
if (flags["--all"]) {
|
|
93
|
+
if (type === "custom") {
|
|
94
|
+
return outputRulesError(
|
|
95
|
+
client,
|
|
96
|
+
jsonOutput,
|
|
97
|
+
"INVALID_SCOPE",
|
|
98
|
+
"Custom alert rules must target one project. Use --project <name-or-id>."
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
body.ruleScope = { type: "all" };
|
|
102
|
+
return void 0;
|
|
103
|
+
}
|
|
104
|
+
return outputRulesError(
|
|
105
|
+
client,
|
|
106
|
+
jsonOutput,
|
|
107
|
+
"MISSING_SCOPE",
|
|
108
|
+
"Missing rule scope. Add ruleScope to the body, or pass --project or --all."
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
async function resolveCreateScope(client, flags, jsonOutput) {
|
|
112
|
+
if (flags["--project"] && flags["--all"]) {
|
|
113
|
+
return outputRulesError(
|
|
114
|
+
client,
|
|
115
|
+
jsonOutput,
|
|
116
|
+
"MUTUAL_EXCLUSIVITY",
|
|
117
|
+
"Cannot specify both --all and --project. Use one or the other."
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
return flags["--project"] ? resolveRulesProject(
|
|
121
|
+
client,
|
|
122
|
+
flags["--project"],
|
|
123
|
+
jsonOutput,
|
|
124
|
+
"alerts rules add"
|
|
125
|
+
) : resolveRulesTeam(client, jsonOutput);
|
|
126
|
+
}
|
|
127
|
+
async function add(client, argv) {
|
|
128
|
+
let parsedArgs;
|
|
129
|
+
try {
|
|
130
|
+
parsedArgs = parseArguments(
|
|
131
|
+
argv,
|
|
132
|
+
getFlagsSpecification(rulesAddSubcommand.options)
|
|
133
|
+
);
|
|
134
|
+
} catch (error) {
|
|
135
|
+
emitRulesArgParseError(
|
|
136
|
+
client,
|
|
137
|
+
error,
|
|
138
|
+
"alerts rules add --project <name-or-id> --body <path>"
|
|
139
|
+
);
|
|
140
|
+
printError(error);
|
|
141
|
+
return 1;
|
|
142
|
+
}
|
|
143
|
+
const flags = parsedArgs.flags;
|
|
144
|
+
const format = validateJsonOutput(flags);
|
|
145
|
+
if (!format.valid) {
|
|
146
|
+
return outputRulesError(client, false, "INVALID_ARGUMENTS", format.error);
|
|
147
|
+
}
|
|
148
|
+
if (!flags["--body"]) {
|
|
149
|
+
return outputRulesError(
|
|
150
|
+
client,
|
|
151
|
+
format.jsonOutput,
|
|
152
|
+
"MISSING_ARGUMENTS",
|
|
153
|
+
"Missing required flag: --body <PATH>."
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
const body = readRuleBody(client, flags["--body"], format.jsonOutput);
|
|
157
|
+
if (typeof body === "number")
|
|
158
|
+
return body;
|
|
159
|
+
const type = getBodyType(body);
|
|
160
|
+
if (!type) {
|
|
161
|
+
return outputRulesError(
|
|
162
|
+
client,
|
|
163
|
+
format.jsonOutput,
|
|
164
|
+
"INVALID_RULE_TYPE",
|
|
165
|
+
"Create body must set type to built-in or custom."
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
if (Object.hasOwn(body, "ruleScope") && (flags["--project"] || flags["--all"])) {
|
|
169
|
+
return outputRulesError(
|
|
170
|
+
client,
|
|
171
|
+
format.jsonOutput,
|
|
172
|
+
"SCOPE_CONFLICT",
|
|
173
|
+
"Specify rule scope either in the body or with --project/--all, not both."
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
if (type === "custom" && flags["--all"]) {
|
|
177
|
+
return outputRulesError(
|
|
178
|
+
client,
|
|
179
|
+
format.jsonOutput,
|
|
180
|
+
"INVALID_SCOPE",
|
|
181
|
+
"Custom alert rules must target one project. Use --project <name-or-id>."
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
const scope = await resolveCreateScope(client, flags, format.jsonOutput);
|
|
185
|
+
if (typeof scope === "number")
|
|
186
|
+
return scope;
|
|
187
|
+
const scopeError = applyScopeFlag(
|
|
188
|
+
client,
|
|
189
|
+
body,
|
|
190
|
+
type,
|
|
191
|
+
scope,
|
|
192
|
+
flags,
|
|
193
|
+
format.jsonOutput
|
|
194
|
+
);
|
|
195
|
+
if (scopeError !== void 0)
|
|
196
|
+
return scopeError;
|
|
197
|
+
output_manager_default.spinner("Creating alert rule\u2026");
|
|
198
|
+
try {
|
|
199
|
+
const response = await client.fetch(
|
|
200
|
+
rulesCollectionPath(scope.teamId),
|
|
201
|
+
{ method: "POST", body }
|
|
202
|
+
);
|
|
203
|
+
if (format.jsonOutput) {
|
|
204
|
+
client.stdout.write(`${JSON.stringify(response, null, 2)}
|
|
205
|
+
`);
|
|
206
|
+
} else {
|
|
207
|
+
printRuleMutationReceipt("Created", response.rule, client.argv);
|
|
208
|
+
}
|
|
209
|
+
return 0;
|
|
210
|
+
} catch (error) {
|
|
211
|
+
if (isAPIError(error)) {
|
|
212
|
+
return handleRulesApiError(client, error, format.jsonOutput);
|
|
213
|
+
}
|
|
214
|
+
throw error;
|
|
215
|
+
} finally {
|
|
216
|
+
output_manager_default.stopSpinner();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
export {
|
|
220
|
+
add as default
|
|
221
|
+
};
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
runEngine,
|
|
24
24
|
splitPassthrough,
|
|
25
25
|
validateVcrChoice
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-EOLGLGXJ.js";
|
|
27
|
+
import "./chunk-TO7QZGYK.js";
|
|
28
28
|
import {
|
|
29
29
|
outputError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
31
31
|
import "./chunk-KXDWXXJH.js";
|
|
32
32
|
import {
|
|
33
33
|
buildSubcommand
|
|
@@ -35,32 +35,37 @@ import {
|
|
|
35
35
|
import "./chunk-EZKW5YJ2.js";
|
|
36
36
|
import "./chunk-NFU4XJIR.js";
|
|
37
37
|
import "./chunk-3HZLXCVL.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-XNFHNTS2.js";
|
|
42
|
-
import {
|
|
43
|
-
AGENT_REASON,
|
|
44
|
-
buildCommandWithGlobalFlags,
|
|
45
|
-
outputAgentError
|
|
46
|
-
} from "./chunk-NGGLYKNU.js";
|
|
38
|
+
import "./chunk-5NF5HOBJ.js";
|
|
39
|
+
import "./chunk-ZDU2NODC.js";
|
|
40
|
+
import "./chunk-PEC3CQSK.js";
|
|
47
41
|
import "./chunk-GGP5R3FU.js";
|
|
42
|
+
import {
|
|
43
|
+
AGENT_REASON
|
|
44
|
+
} from "./chunk-VUS2JQB2.js";
|
|
45
|
+
import "./chunk-ABSZNJQO.js";
|
|
46
|
+
import "./chunk-XNIZGCN5.js";
|
|
48
47
|
import {
|
|
49
48
|
printError
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-3VM7HWF6.js";
|
|
51
50
|
import {
|
|
52
51
|
parseArguments
|
|
53
52
|
} from "./chunk-57RHXXXG.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-MADFAH3O.js";
|
|
54
|
+
import "./chunk-G5FBSUL4.js";
|
|
55
|
+
import {
|
|
56
|
+
buildCommandWithGlobalFlags,
|
|
57
|
+
outputAgentError
|
|
58
|
+
} from "./chunk-26CU4Q3C.js";
|
|
59
|
+
import "./chunk-XPJLPUKO.js";
|
|
60
|
+
import "./chunk-CV5YC2EN.js";
|
|
56
61
|
import {
|
|
57
62
|
getFlagsSpecification
|
|
58
63
|
} from "./chunk-Q2DGFCO7.js";
|
|
59
|
-
import "./chunk-P4QNYOFB.js";
|
|
60
|
-
import "./chunk-52QYYTM5.js";
|
|
61
64
|
import {
|
|
62
65
|
output_manager_default
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-2JIX6UMI.js";
|
|
67
|
+
import "./chunk-P4QNYOFB.js";
|
|
68
|
+
import "./chunk-ZW6HETRE.js";
|
|
64
69
|
import "./chunk-S7KYDPEM.js";
|
|
65
70
|
import "./chunk-TZ2YI2VH.js";
|
|
66
71
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
LinkRequiredError,
|
|
9
9
|
ProjectNotFound,
|
|
10
10
|
isAPIError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CV5YC2EN.js";
|
|
12
12
|
import {
|
|
13
13
|
getGlobalFlagsFromArgs,
|
|
14
14
|
packageName,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-Q2DGFCO7.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZW6HETRE.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-TZ2YI2VH.js";
|
|
@@ -573,115 +573,6 @@ function openUrlInBrowserCommand(url) {
|
|
|
573
573
|
return `xdg-open '${url}'`;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
// src/util/agent-output-constants.ts
|
|
577
|
-
var AGENT_STATUS = {
|
|
578
|
-
ERROR: "error",
|
|
579
|
-
ACTION_REQUIRED: "action_required",
|
|
580
|
-
OK: "ok"
|
|
581
|
-
};
|
|
582
|
-
var AGENT_REASON = {
|
|
583
|
-
// Common (use across dns, flags, routes, env, domains, link)
|
|
584
|
-
MISSING_ARGUMENTS: "missing_arguments",
|
|
585
|
-
INVALID_ARGUMENTS: "invalid_arguments",
|
|
586
|
-
CONFIRMATION_REQUIRED: "confirmation_required",
|
|
587
|
-
INTERACTIVE_CONFIRMATION_REQUIRED: "interactive_confirmation_required",
|
|
588
|
-
LOGIN_REQUIRED: "login_required",
|
|
589
|
-
PROJECT_SETTINGS_REQUIRED: "project_settings_required",
|
|
590
|
-
NOT_LINKED: "not_linked",
|
|
591
|
-
NOT_FOUND: "not_found",
|
|
592
|
-
PROJECT_NOT_FOUND: "project_not_found",
|
|
593
|
-
MISSING_SCOPE: "missing_scope",
|
|
594
|
-
SCOPE_NOT_ACCESSIBLE: "scope_not_accessible",
|
|
595
|
-
API_ERROR: "api_error",
|
|
596
|
-
// Flags
|
|
597
|
-
SEGMENT_IN_USE: "segment_in_use",
|
|
598
|
-
// Env
|
|
599
|
-
MISSING_REQUIREMENTS: "missing_requirements",
|
|
600
|
-
MISSING_NAME: "missing_name",
|
|
601
|
-
MISSING_VALUE: "missing_value",
|
|
602
|
-
MISSING_ENVIRONMENT: "missing_environment",
|
|
603
|
-
ENV_NOT_FOUND: "env_not_found",
|
|
604
|
-
MULTIPLE_ENVS: "multiple_envs",
|
|
605
|
-
ENV_FILE_EXISTS: "env_file_exists",
|
|
606
|
-
GIT_BRANCH_REQUIRED: "git_branch_required",
|
|
607
|
-
ENV_KEY_SENSITIVE: "env_key_sensitive",
|
|
608
|
-
// Routes
|
|
609
|
-
AMBIGUOUS_ROUTE: "ambiguous_route",
|
|
610
|
-
ROUTE_CREATE_FAILED: "route_create_failed",
|
|
611
|
-
ROUTE_GENERATION_FAILED: "route_generation_failed",
|
|
612
|
-
// DNS
|
|
613
|
-
DOMAIN_NOT_FOUND: "domain_not_found",
|
|
614
|
-
DNS_RECORD_NOT_FOUND: "dns_record_not_found",
|
|
615
|
-
INCOMPLETE_RECORD: "incomplete_record",
|
|
616
|
-
PERMISSION_DENIED: "permission_denied",
|
|
617
|
-
INVALID_PORT: "invalid_port",
|
|
618
|
-
INVALID_DNS_TYPE: "invalid_dns_type",
|
|
619
|
-
DNS_ADD_FAILED: "dns_add_failed",
|
|
620
|
-
INVALID_DOMAIN: "invalid_domain",
|
|
621
|
-
CONFIGURED_CORRECTLY: "configured_correctly",
|
|
622
|
-
VERIFICATION_NEEDED: "verification_needed",
|
|
623
|
-
INVALID_CONFIGURATION: "invalid_configuration",
|
|
624
|
-
DNS_CHANGE_REQUIRED: "dns_change_required",
|
|
625
|
-
DNS_CHANGE_RECOMMENDED: "dns_change_recommended",
|
|
626
|
-
DNSSEC_NEEDS_TO_BE_DISABLED: "dnssec_needs_to_be_disabled",
|
|
627
|
-
PROJECT_ATTACHMENT_RECOMMENDED: "project_attachment_recommended",
|
|
628
|
-
PROJECT_DOMAIN_MISSING: "project_domain_missing",
|
|
629
|
-
/** User must accept marketplace integration terms in the browser before install can continue. */
|
|
630
|
-
INTEGRATION_TERMS_ACCEPTANCE_REQUIRED: "integration_terms_acceptance_required",
|
|
631
|
-
/** Integration uninstall blocked because team-scoped resources still exist. */
|
|
632
|
-
HAS_RESOURCES: "has_resources",
|
|
633
|
-
/** User must claim a sandbox marketplace resource (e.g. Stripe, Shopify) in the browser. */
|
|
634
|
-
INTEGRATION_SANDBOX_CLAIM_REQUIRED: "integration_sandbox_claim_required",
|
|
635
|
-
// Tokens
|
|
636
|
-
CLASSIC_TOKEN_REQUIRED: "classic_token_required",
|
|
637
|
-
/** Classic token lacks full user/account scope (e.g. team- or product-scoped token). */
|
|
638
|
-
TOKEN_USER_SCOPE_REQUIRED: "token_user_scope_required",
|
|
639
|
-
// Webhooks
|
|
640
|
-
MISSING_URL: "missing_url",
|
|
641
|
-
MISSING_EVENTS: "missing_events",
|
|
642
|
-
INVALID_URL: "invalid_url",
|
|
643
|
-
INVALID_EVENT: "invalid_event",
|
|
644
|
-
// AI Gateway
|
|
645
|
-
INVALID_BUDGET: "invalid_budget",
|
|
646
|
-
INVALID_REFRESH_PERIOD: "invalid_refresh_period",
|
|
647
|
-
INVALID_EXPIRATION: "invalid_expiration",
|
|
648
|
-
INVALID_ALERT_THRESHOLDS: "invalid_alert_thresholds",
|
|
649
|
-
/**
|
|
650
|
-
* Every selected agent needs explicit `--agent`/`--all` consent (see the
|
|
651
|
-
* payload's skipped[]). `--yes` does not grant it, so this is deliberately
|
|
652
|
-
* not `confirmation_required` — re-running with --yes would loop forever.
|
|
653
|
-
*/
|
|
654
|
-
REQUIRES_CONSENT: "requires_consent",
|
|
655
|
-
// KMS
|
|
656
|
-
MISSING_ISSUER_ID: "missing_issuer_id",
|
|
657
|
-
MISSING_KEY: "missing_key",
|
|
658
|
-
MISSING_KEY_ID: "missing_key_id",
|
|
659
|
-
MISSING_PROJECT: "missing_project",
|
|
660
|
-
ISSUER_NOT_FOUND: "issuer_not_found",
|
|
661
|
-
/** The issuer is provisioned by another Vercel service and is read-only here. */
|
|
662
|
-
ISSUER_MANAGED: "issuer_managed",
|
|
663
|
-
/** Keys for an imported issuer must be imported too, so `add-key` cannot serve it. */
|
|
664
|
-
ISSUER_REQUIRES_IMPORTED_KEY: "issuer_requires_imported_key",
|
|
665
|
-
/** Vercel generates the keys for this issuer, so `import-key` cannot serve it. */
|
|
666
|
-
ISSUER_REQUIRES_GENERATED_KEY: "issuer_requires_generated_key",
|
|
667
|
-
/** Immediate revocation only applies to a key already scheduled for revocation. */
|
|
668
|
-
KEY_NOT_REVOKING: "key_not_revoking",
|
|
669
|
-
NO_CHANGES_REQUESTED: "no_changes_requested",
|
|
670
|
-
// Redirects
|
|
671
|
-
REDIRECT_NOT_FOUND: "redirect_not_found",
|
|
672
|
-
VERSION_NOT_FOUND: "version_not_found",
|
|
673
|
-
VERSION_ALREADY_LIVE: "version_already_live",
|
|
674
|
-
VERSION_IS_STAGING: "version_is_staging",
|
|
675
|
-
PLAN_UPGRADE_REQUIRED: "plan_upgrade_required",
|
|
676
|
-
NOT_TEAM_MEMBER: "not_team_member",
|
|
677
|
-
INVALID_ROLE_COMBINATION: "invalid_role_combination"
|
|
678
|
-
};
|
|
679
|
-
var AGENT_ACTION = {
|
|
680
|
-
MISSING_ARGUMENTS: "missing_arguments",
|
|
681
|
-
CONFIRMATION_REQUIRED: "confirmation_required",
|
|
682
|
-
LOGIN_REQUIRED: "login_required"
|
|
683
|
-
};
|
|
684
|
-
|
|
685
576
|
export {
|
|
686
577
|
quoteArg,
|
|
687
578
|
buildCommandWithYes,
|
|
@@ -703,8 +594,5 @@ export {
|
|
|
703
594
|
outputAgentError,
|
|
704
595
|
outputAgentSuccess,
|
|
705
596
|
exitWithNonInteractiveError,
|
|
706
|
-
openUrlInBrowserCommand
|
|
707
|
-
AGENT_STATUS,
|
|
708
|
-
AGENT_REASON,
|
|
709
|
-
AGENT_ACTION
|
|
597
|
+
openUrlInBrowserCommand
|
|
710
598
|
};
|
|
@@ -4,6 +4,9 @@ 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_dist
|
|
9
|
+
} from "./chunk-ZW6HETRE.js";
|
|
7
10
|
import {
|
|
8
11
|
require_has_flag,
|
|
9
12
|
require_source,
|
|
@@ -15,89 +18,6 @@ import {
|
|
|
15
18
|
__toESM
|
|
16
19
|
} from "./chunk-TZ2YI2VH.js";
|
|
17
20
|
|
|
18
|
-
// ../error-utils/dist/index.js
|
|
19
|
-
var require_dist = __commonJS({
|
|
20
|
-
"../error-utils/dist/index.js"(exports, module) {
|
|
21
|
-
"use strict";
|
|
22
|
-
var __create = Object.create;
|
|
23
|
-
var __defProp = Object.defineProperty;
|
|
24
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
25
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
26
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
27
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
28
|
-
var __export = (target, all) => {
|
|
29
|
-
for (var name in all)
|
|
30
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
31
|
-
};
|
|
32
|
-
var __copyProps = (to, from, except, desc) => {
|
|
33
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
34
|
-
for (let key of __getOwnPropNames(from))
|
|
35
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
36
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
37
|
-
}
|
|
38
|
-
return to;
|
|
39
|
-
};
|
|
40
|
-
var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
41
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
42
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
43
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
44
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
45
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
46
|
-
mod
|
|
47
|
-
));
|
|
48
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
49
|
-
var src_exports = {};
|
|
50
|
-
__export(src_exports, {
|
|
51
|
-
errorToString: () => errorToString2,
|
|
52
|
-
errorToStringFriendly: () => errorToStringFriendly,
|
|
53
|
-
getSystemErrorMessage: () => getSystemErrorMessage,
|
|
54
|
-
isErrnoException: () => isErrnoException,
|
|
55
|
-
isError: () => isError,
|
|
56
|
-
isErrorLike: () => isErrorLike,
|
|
57
|
-
isObject: () => isObject,
|
|
58
|
-
isSpawnError: () => isSpawnError,
|
|
59
|
-
normalizeError: () => normalizeError
|
|
60
|
-
});
|
|
61
|
-
module.exports = __toCommonJS(src_exports);
|
|
62
|
-
var import_node_util = __toESM2(__require("util"));
|
|
63
|
-
var isObject = (obj) => typeof obj === "object" && obj !== null;
|
|
64
|
-
var isError = (error) => {
|
|
65
|
-
return import_node_util.default.types.isNativeError(error);
|
|
66
|
-
};
|
|
67
|
-
var isErrnoException = (error) => {
|
|
68
|
-
return isError(error) && "code" in error;
|
|
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
|
-
};
|
|
74
|
-
var isErrorLike = (error) => isObject(error) && "message" in error;
|
|
75
|
-
var errorToString2 = (error, fallback) => {
|
|
76
|
-
if (isError(error) || isErrorLike(error))
|
|
77
|
-
return error.message;
|
|
78
|
-
if (typeof error === "string")
|
|
79
|
-
return error;
|
|
80
|
-
return fallback ?? "An unknown error has ocurred.";
|
|
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
|
-
};
|
|
89
|
-
var normalizeError = (error) => {
|
|
90
|
-
if (isError(error))
|
|
91
|
-
return error;
|
|
92
|
-
const errorMessage = errorToString2(error);
|
|
93
|
-
return isErrorLike(error) ? Object.assign(new Error(errorMessage), error) : new Error(errorMessage);
|
|
94
|
-
};
|
|
95
|
-
function isSpawnError(v) {
|
|
96
|
-
return isErrnoException(v) && "spawnargs" in v;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
21
|
// ../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
|
|
102
22
|
var require_ansi_escapes = __commonJS({
|
|
103
23
|
"../../node_modules/.pnpm/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js"(exports, module) {
|
|
@@ -4693,7 +4613,6 @@ var output = new Output(process.stderr, {
|
|
|
4693
4613
|
var output_manager_default = output;
|
|
4694
4614
|
|
|
4695
4615
|
export {
|
|
4696
|
-
require_dist,
|
|
4697
4616
|
require_ansi_escapes,
|
|
4698
4617
|
link_default,
|
|
4699
4618
|
require_escape_string_regexp,
|