vercel 59.4.0 → 59.5.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-73X2SKBH.js → add-MH3WV6PV.js} +12 -8
- package/dist/chunks/{add-FQMB3XPM.js → add-W3FFMTX4.js} +15 -11
- package/dist/chunks/{add-QJ3WT4FW.js → add-Z5FM6TFI.js} +18 -14
- package/dist/chunks/{build-YUYCLCXD.js → build-VYYFBJL7.js} +13 -10
- package/dist/chunks/{chunk-F7OXZLY2.js → chunk-26XDDLXM.js} +2 -2
- package/dist/chunks/{chunk-RIB4S2IB.js → chunk-3HZLXCVL.js} +1 -1
- package/dist/chunks/{chunk-UV2ZMFVG.js → chunk-47VQ6H2S.js} +1 -1
- package/dist/chunks/{chunk-O5DLWLT7.js → chunk-4JTF6RD7.js} +7 -7
- package/dist/chunks/{chunk-3KNPVXJ3.js → chunk-4KD5BYHB.js} +1 -1
- package/dist/chunks/{chunk-XLKFJPMT.js → chunk-57RHXXXG.js} +1 -1
- package/dist/chunks/chunk-5GGUB4EO.js +31 -0
- package/dist/chunks/chunk-5LX2JDZP.js +34 -0
- package/dist/chunks/chunk-7Q45OKWR.js +149 -0
- package/dist/chunks/{chunk-Y3J4VU2H.js → chunk-7XX4ZEOV.js} +2 -2
- package/dist/chunks/{chunk-JKQWQA2T.js → chunk-AINIBIP4.js} +1 -1
- package/dist/chunks/{chunk-SOFC4MLS.js → chunk-AWCID36T.js} +8 -568
- package/dist/chunks/{chunk-KAYSW4CJ.js → chunk-AWSLWAOC.js} +1 -1
- package/dist/chunks/{chunk-KDYRLN6H.js → chunk-C5HKWXRR.js} +1 -1
- package/dist/chunks/{chunk-2MF3ZAVW.js → chunk-CJV7J7B5.js} +6 -6
- package/dist/chunks/chunk-CQJRLNTX.js +104 -0
- package/dist/chunks/{chunk-PD4DYNSB.js → chunk-CSCSGSQG.js} +4 -4
- package/dist/chunks/{chunk-3L2YLLHC.js → chunk-DWIC7MRV.js} +2 -2
- package/dist/chunks/{chunk-HMJVUXE6.js → chunk-E6LFKMI2.js} +82 -509
- package/dist/chunks/{chunk-GFCTRJI5.js → chunk-EZKW5YJ2.js} +1 -1
- package/dist/chunks/{chunk-DDIZGOCK.js → chunk-FA3MO56Q.js} +6 -4
- package/dist/chunks/{chunk-Y42SPI2H.js → chunk-GUWPUX2Y.js} +5 -5
- package/dist/chunks/chunk-GY5I4AYD.js +122 -0
- package/dist/chunks/chunk-HGRWPPYB.js +18 -0
- package/dist/chunks/{chunk-NP6BQPCN.js → chunk-JJQP3PYM.js} +5 -3
- package/dist/chunks/{chunk-X6O6XJEA.js → chunk-JNU3DTEV.js} +14 -12
- package/dist/chunks/{chunk-TH2XUVDP.js → chunk-L7CEMAJG.js} +4 -2
- package/dist/chunks/{chunk-EB7NJKPL.js → chunk-LLM3ZNXJ.js} +2 -2
- package/dist/chunks/{chunk-ZFWNMVNR.js → chunk-M3OSDZPY.js} +6 -4
- package/dist/chunks/{chunk-LKTQR5JE.js → chunk-MRMNMFMD.js} +2 -2
- package/dist/chunks/{chunk-EG5BSAXD.js → chunk-MTWHQEXI.js} +1 -1
- package/dist/chunks/{chunk-WC7IINFV.js → chunk-NFU4XJIR.js} +1 -1
- package/dist/chunks/{chunk-VCE6QKFE.js → chunk-NSU2BTRS.js} +3 -3
- package/dist/chunks/chunk-OHER4DGX.js +451 -0
- package/dist/chunks/{chunk-BBSS3XIW.js → chunk-OQ3C5VXZ.js} +1 -1
- package/dist/chunks/{chunk-CHEZBD7H.js → chunk-PBHBX6UL.js} +2 -2
- package/dist/chunks/{chunk-M22O6CYY.js → chunk-POOO7W47.js} +1 -1
- package/dist/chunks/{chunk-BLYBHFIE.js → chunk-PPUWG2UB.js} +12 -8
- package/dist/chunks/chunk-Q2DGFCO7.js +579 -0
- package/dist/chunks/{chunk-HURL5EBN.js → chunk-QG4PCM45.js} +24 -148
- package/dist/chunks/{chunk-VAFU7DXZ.js → chunk-RKDCNQ4S.js} +1 -91
- package/dist/chunks/{chunk-XI6NJLI4.js → chunk-RZ5NP6HN.js} +2 -2
- package/dist/chunks/{chunk-GMWRTZVZ.js → chunk-SLPSPYVR.js} +1 -1
- package/dist/chunks/{chunk-J5Y2QGGU.js → chunk-TAZ5ZAKG.js} +1 -1
- package/dist/chunks/{chunk-KSZ4MNHO.js → chunk-TDXNNIZ6.js} +1 -1
- package/dist/chunks/{chunk-EB5NBVTV.js → chunk-TIWAL2YU.js} +6 -6
- package/dist/chunks/{chunk-HJVTLJHO.js → chunk-UUVMIXT4.js} +5 -5
- package/dist/chunks/{chunk-RI7KKKII.js → chunk-V4YLY44R.js} +3 -17
- package/dist/chunks/{chunk-O5GNPPTU.js → chunk-VP5Y3SZG.js} +1 -1
- package/dist/chunks/{chunk-2PX6N4FE.js → chunk-VWYNSJXI.js} +7 -7
- package/dist/chunks/{chunk-7QVJTI5H.js → chunk-XDGOOW3K.js} +1 -1
- package/dist/chunks/{chunk-UMA66MKW.js → chunk-XM3LOQIX.js} +1 -1
- package/dist/chunks/{chunk-VDJN4WKH.js → chunk-XRWOTCDO.js} +1 -1
- package/dist/chunks/{chunk-MWYQ24FO.js → chunk-YIHOS3ZF.js} +2 -2
- package/dist/chunks/{chunk-STPH4Y62.js → chunk-YJUO3EKH.js} +1 -1
- package/dist/chunks/chunk-ZKUHCL6O.js +249 -0
- package/dist/chunks/{clear-USQM5VW5.js → clear-TNGRDA7D.js} +12 -8
- package/dist/chunks/{compile-vercel-config-2JNYMI6W.js → compile-vercel-config-ERLXKKWW.js} +8 -5
- package/dist/chunks/config-7EDKML5Q.js +122 -0
- package/dist/chunks/{config-VTRIDLY4.js → config-H22EE765.js} +15 -11
- package/dist/chunks/{delete-VTPHK3EB.js → delete-LORYIZHY.js} +10 -7
- package/dist/chunks/{delete-ILLSBCVQ.js → delete-Q4S5F2AI.js} +12 -8
- package/dist/chunks/{disable-VTOMO64V.js → disable-HKWCBDJC.js} +10 -7
- package/dist/chunks/{discard-ZIOZ34ZI.js → discard-UCCRF2JQ.js} +10 -7
- package/dist/chunks/{edit-JMZ5XWVW.js → edit-6IM6VRBR.js} +12 -8
- package/dist/chunks/{edit-E3AMR4KM.js → edit-AWL35PYQ.js} +11 -8
- package/dist/chunks/{enable-A4PMZ7QZ.js → enable-GN3D3L3V.js} +10 -7
- package/dist/chunks/{export-Y6AJ3WRZ.js → export-HHRVFALV.js} +10 -7
- package/dist/chunks/{image-26BKPAUB.js → image-4DCU4VPP.js} +6 -5
- package/dist/chunks/{import-builders-3H7J2SEK.js → import-builders-DVG3HOTF.js} +9 -6
- package/dist/chunks/{inspect-ZW5N6O5P.js → inspect-B3OWUFLH.js} +12 -8
- package/dist/chunks/{inspect-OEY4DJRI.js → inspect-TGOJDKIT.js} +15 -11
- package/dist/chunks/{inspect-7DGKYHKW.js → inspect-TUW67CFZ.js} +15 -11
- package/dist/chunks/{inspect-N3E2PO6K.js → inspect-VLGKNHJW.js} +12 -8
- package/dist/chunks/{inspect-GJFVAZIJ.js → inspect-VPME6UC7.js} +15 -11
- package/dist/chunks/{list-DTJBW7OQ.js → list-2DPKDHRV.js} +15 -11
- package/dist/chunks/{list-MIQ5D6PM.js → list-K552ITMK.js} +15 -11
- package/dist/chunks/{list-2VTCNQEB.js → list-TK2JO7BK.js} +12 -8
- package/dist/chunks/{login-L34UHAU5.js → login-HRWEKW5P.js} +15 -11
- package/dist/chunks/{ls-OKO4IHWB.js → ls-IOXGXEY4.js} +15 -11
- package/dist/chunks/{ls-VDYUFSSC.js → ls-JSV2WZVF.js} +15 -10
- package/dist/chunks/{ls-OBUDC4SB.js → ls-M5TYGFP5.js} +15 -10
- package/dist/chunks/{ls-NCPQY4FV.js → ls-O2WYF5UL.js} +18 -13
- package/dist/chunks/ls-TM6NTZEB.js +176 -0
- package/dist/chunks/{ls-SXJFBLUT.js → ls-YIF3KLF3.js} +15 -10
- package/dist/chunks/{open-V5JDGXUP.js → open-FWAVEWGU.js} +12 -8
- package/dist/chunks/{permissions-6CPRPPBY.js → permissions-DPFYL47Z.js} +9 -8
- package/dist/chunks/{publish-R27DPHFO.js → publish-63CGFKQR.js} +10 -7
- package/dist/chunks/{push-VLVTBS42.js → push-T5ZTBW3P.js} +13 -10
- package/dist/chunks/{query-IVVRYMJN.js → query-B6O3EMEV.js} +14 -10
- package/dist/chunks/{reorder-LJ2RBZM2.js → reorder-ANV4NMKH.js} +10 -7
- package/dist/chunks/{reply-USAISZYC.js → reply-C73KGOCG.js} +12 -8
- package/dist/chunks/{resolve-CRCJYVS5.js → resolve-IHSIVPEE.js} +12 -8
- package/dist/chunks/{restore-6PBPEAMU.js → restore-GSUNXP2O.js} +10 -7
- package/dist/chunks/{rm-HHELZB7R.js → rm-4O74PS4Q.js} +12 -8
- package/dist/chunks/{rm-TWU3JR6Z.js → rm-M7IJC2WZ.js} +12 -8
- package/dist/chunks/{rm-EOD7RDSO.js → rm-PRINF4OU.js} +15 -11
- package/dist/chunks/rm-RV5SQFQA.js +317 -0
- package/dist/chunks/{rm-KGOEOWVK.js → rm-YDTK5ESZ.js} +13 -9
- package/dist/chunks/{rule-inspect-WFTVRK6B.js → rule-inspect-ZZC53FLP.js} +15 -11
- package/dist/chunks/{rules-AQYTFJI6.js → rules-SAOSSGFI.js} +10 -9
- package/dist/chunks/{schema-LUVFYPWN.js → schema-23ZFAKDU.js} +7 -5
- package/dist/chunks/{schema-ZCDCJC7E.js → schema-2Q3QRMRO.js} +11 -8
- package/dist/chunks/set-L47ZCZBJ.js +243 -0
- package/dist/chunks/{tags-RCNRFX7U.js → tags-2TWLM77N.js} +5 -4
- package/dist/chunks/{types-AJHILHO5.js → types-G3PEUIJH.js} +11 -7
- package/dist/chunks/{update-I7QGAOYF.js → update-SZH2VBD6.js} +16 -12
- package/dist/commands/build/index.js +16 -12
- package/dist/commands/deploy/index.js +41 -32
- package/dist/commands/dev/index.js +19 -15
- package/dist/commands/env/index.js +44 -35
- package/dist/commands/link/index.js +25 -20
- package/dist/commands/list/index.js +19 -12
- package/dist/commands-bulk.js +132 -125
- package/dist/help.js +1 -1
- package/dist/index.js +34 -28
- package/dist/version.mjs +1 -1
- package/package.json +47 -47
|
@@ -16,23 +16,26 @@ import {
|
|
|
16
16
|
resolveRoute,
|
|
17
17
|
shellQuoteRouteIdentifierForSuggestion,
|
|
18
18
|
withGlobalFlags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UUVMIXT4.js";
|
|
20
20
|
import {
|
|
21
21
|
reorderSubcommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-POOO7W47.js";
|
|
23
23
|
import {
|
|
24
24
|
stamp_default
|
|
25
25
|
} from "./chunk-64IF634X.js";
|
|
26
26
|
import "./chunk-VXYGCOKL.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-E6LFKMI2.js";
|
|
28
|
+
import "./chunk-OHER4DGX.js";
|
|
28
29
|
import "./chunk-CYNB6LL4.js";
|
|
29
30
|
import {
|
|
30
31
|
outputAgentError
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-L7CEMAJG.js";
|
|
32
33
|
import "./chunk-GGP5R3FU.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-CQJRLNTX.js";
|
|
35
|
+
import "./chunk-57RHXXXG.js";
|
|
36
|
+
import "./chunk-RKDCNQ4S.js";
|
|
37
|
+
import "./chunk-AWCID36T.js";
|
|
38
|
+
import "./chunk-Q2DGFCO7.js";
|
|
36
39
|
import "./chunk-P4QNYOFB.js";
|
|
37
40
|
import "./chunk-52QYYTM5.js";
|
|
38
41
|
import {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveCommentsScope,
|
|
17
17
|
threadNotFoundMessage,
|
|
18
18
|
toApiErrorParts
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FA3MO56Q.js";
|
|
20
20
|
import "./chunk-2473DUBR.js";
|
|
21
21
|
import {
|
|
22
22
|
outputError
|
|
@@ -26,19 +26,23 @@ import {
|
|
|
26
26
|
} from "./chunk-KXDWXXJH.js";
|
|
27
27
|
import {
|
|
28
28
|
replySubcommand
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-SLPSPYVR.js";
|
|
30
|
+
import "./chunk-E6LFKMI2.js";
|
|
31
|
+
import "./chunk-OHER4DGX.js";
|
|
31
32
|
import "./chunk-CYNB6LL4.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-L7CEMAJG.js";
|
|
33
34
|
import "./chunk-GGP5R3FU.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-CQJRLNTX.js";
|
|
35
36
|
import {
|
|
36
37
|
parseArguments
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-57RHXXXG.js";
|
|
39
|
+
import "./chunk-RKDCNQ4S.js";
|
|
38
40
|
import {
|
|
39
|
-
getFlagsSpecification,
|
|
40
41
|
isAPIError
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-AWCID36T.js";
|
|
43
|
+
import {
|
|
44
|
+
getFlagsSpecification
|
|
45
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
42
46
|
import "./chunk-P4QNYOFB.js";
|
|
43
47
|
import "./chunk-52QYYTM5.js";
|
|
44
48
|
import {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
threadNotFoundMessage,
|
|
15
15
|
toApiErrorParts,
|
|
16
16
|
updateThread
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FA3MO56Q.js";
|
|
18
18
|
import {
|
|
19
19
|
canPrompt
|
|
20
20
|
} from "./chunk-2473DUBR.js";
|
|
@@ -27,19 +27,23 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
reopenSubcommand,
|
|
29
29
|
resolveSubcommand
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-SLPSPYVR.js";
|
|
31
|
+
import "./chunk-E6LFKMI2.js";
|
|
32
|
+
import "./chunk-OHER4DGX.js";
|
|
32
33
|
import "./chunk-CYNB6LL4.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-L7CEMAJG.js";
|
|
34
35
|
import "./chunk-GGP5R3FU.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-CQJRLNTX.js";
|
|
36
37
|
import {
|
|
37
38
|
parseArguments
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-57RHXXXG.js";
|
|
40
|
+
import "./chunk-RKDCNQ4S.js";
|
|
39
41
|
import {
|
|
40
|
-
getFlagsSpecification,
|
|
41
42
|
isAPIError
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AWCID36T.js";
|
|
44
|
+
import {
|
|
45
|
+
getFlagsSpecification
|
|
46
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
43
47
|
import "./chunk-P4QNYOFB.js";
|
|
44
48
|
import "./chunk-52QYYTM5.js";
|
|
45
49
|
import {
|
|
@@ -19,23 +19,26 @@ import {
|
|
|
19
19
|
requireProjectContext,
|
|
20
20
|
validateRequiredArguments,
|
|
21
21
|
withGlobalFlags
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UUVMIXT4.js";
|
|
23
23
|
import {
|
|
24
24
|
restoreSubcommand
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-POOO7W47.js";
|
|
26
26
|
import {
|
|
27
27
|
stamp_default
|
|
28
28
|
} from "./chunk-64IF634X.js";
|
|
29
29
|
import "./chunk-VXYGCOKL.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-E6LFKMI2.js";
|
|
31
|
+
import "./chunk-OHER4DGX.js";
|
|
31
32
|
import "./chunk-CYNB6LL4.js";
|
|
32
33
|
import {
|
|
33
34
|
outputAgentError
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L7CEMAJG.js";
|
|
35
36
|
import "./chunk-GGP5R3FU.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-CQJRLNTX.js";
|
|
38
|
+
import "./chunk-57RHXXXG.js";
|
|
39
|
+
import "./chunk-RKDCNQ4S.js";
|
|
40
|
+
import "./chunk-AWCID36T.js";
|
|
41
|
+
import "./chunk-Q2DGFCO7.js";
|
|
39
42
|
import "./chunk-P4QNYOFB.js";
|
|
40
43
|
import "./chunk-52QYYTM5.js";
|
|
41
44
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
emitVcrArgParseError,
|
|
18
18
|
resolveVcrScope,
|
|
19
19
|
validateVcrJsonOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-M3OSDZPY.js";
|
|
21
21
|
import "./chunk-G75NFPIT.js";
|
|
22
22
|
import {
|
|
23
23
|
outputError
|
|
@@ -25,27 +25,31 @@ import {
|
|
|
25
25
|
import "./chunk-KXDWXXJH.js";
|
|
26
26
|
import {
|
|
27
27
|
permissionsRmSubcommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EZKW5YJ2.js";
|
|
29
29
|
import "./chunk-R6IGDGX3.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-E6LFKMI2.js";
|
|
31
|
+
import "./chunk-OHER4DGX.js";
|
|
31
32
|
import "./chunk-CYNB6LL4.js";
|
|
32
33
|
import {
|
|
33
34
|
AGENT_REASON,
|
|
34
35
|
buildCommandWithGlobalFlags,
|
|
35
36
|
outputAgentError
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-L7CEMAJG.js";
|
|
37
38
|
import "./chunk-GGP5R3FU.js";
|
|
38
39
|
import {
|
|
39
40
|
printError
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CQJRLNTX.js";
|
|
41
42
|
import {
|
|
42
43
|
parseArguments
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-57RHXXXG.js";
|
|
45
|
+
import "./chunk-RKDCNQ4S.js";
|
|
46
|
+
import {
|
|
47
|
+
isAPIError
|
|
48
|
+
} from "./chunk-AWCID36T.js";
|
|
44
49
|
import {
|
|
45
50
|
getFlagsSpecification,
|
|
46
|
-
isAPIError,
|
|
47
51
|
packageName
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
49
53
|
import "./chunk-P4QNYOFB.js";
|
|
50
54
|
import "./chunk-52QYYTM5.js";
|
|
51
55
|
import {
|
|
@@ -13,32 +13,36 @@ import {
|
|
|
13
13
|
requireVcrRepositoryAndImageId,
|
|
14
14
|
resolveVcrScope,
|
|
15
15
|
validateVcrJsonOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M3OSDZPY.js";
|
|
17
17
|
import "./chunk-G75NFPIT.js";
|
|
18
18
|
import "./chunk-KQRVZWJU.js";
|
|
19
19
|
import "./chunk-KXDWXXJH.js";
|
|
20
20
|
import {
|
|
21
21
|
imageRmSubcommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3HZLXCVL.js";
|
|
23
23
|
import "./chunk-R6IGDGX3.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-E6LFKMI2.js";
|
|
25
|
+
import "./chunk-OHER4DGX.js";
|
|
25
26
|
import "./chunk-CYNB6LL4.js";
|
|
26
27
|
import {
|
|
27
28
|
AGENT_REASON,
|
|
28
29
|
buildCommandWithYes,
|
|
29
30
|
outputAgentError
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-L7CEMAJG.js";
|
|
31
32
|
import "./chunk-GGP5R3FU.js";
|
|
32
33
|
import {
|
|
33
34
|
printError
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CQJRLNTX.js";
|
|
35
36
|
import {
|
|
36
37
|
parseArguments
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-57RHXXXG.js";
|
|
39
|
+
import "./chunk-RKDCNQ4S.js";
|
|
38
40
|
import {
|
|
39
|
-
getFlagsSpecification,
|
|
40
41
|
isAPIError
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-AWCID36T.js";
|
|
43
|
+
import {
|
|
44
|
+
getFlagsSpecification
|
|
45
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
42
46
|
import "./chunk-P4QNYOFB.js";
|
|
43
47
|
import "./chunk-52QYYTM5.js";
|
|
44
48
|
import {
|
|
@@ -13,35 +13,39 @@ import {
|
|
|
13
13
|
requireVcrRepository,
|
|
14
14
|
resolveVcrScope,
|
|
15
15
|
validateVcrJsonOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M3OSDZPY.js";
|
|
17
17
|
import "./chunk-G75NFPIT.js";
|
|
18
18
|
import "./chunk-KQRVZWJU.js";
|
|
19
19
|
import "./chunk-KXDWXXJH.js";
|
|
20
20
|
import {
|
|
21
21
|
removeSubcommand
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-CJV7J7B5.js";
|
|
23
|
+
import "./chunk-EZKW5YJ2.js";
|
|
24
|
+
import "./chunk-NFU4XJIR.js";
|
|
25
|
+
import "./chunk-3HZLXCVL.js";
|
|
26
26
|
import "./chunk-R6IGDGX3.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-E6LFKMI2.js";
|
|
28
|
+
import "./chunk-OHER4DGX.js";
|
|
28
29
|
import "./chunk-CYNB6LL4.js";
|
|
29
30
|
import {
|
|
30
31
|
AGENT_REASON,
|
|
31
32
|
buildCommandWithYes,
|
|
32
33
|
outputAgentError
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-L7CEMAJG.js";
|
|
34
35
|
import "./chunk-GGP5R3FU.js";
|
|
35
36
|
import {
|
|
36
37
|
printError
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CQJRLNTX.js";
|
|
38
39
|
import {
|
|
39
40
|
parseArguments
|
|
40
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-57RHXXXG.js";
|
|
42
|
+
import "./chunk-RKDCNQ4S.js";
|
|
41
43
|
import {
|
|
42
|
-
getFlagsSpecification,
|
|
43
44
|
isAPIError
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-AWCID36T.js";
|
|
46
|
+
import {
|
|
47
|
+
getFlagsSpecification
|
|
48
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
45
49
|
import "./chunk-P4QNYOFB.js";
|
|
46
50
|
import "./chunk-52QYYTM5.js";
|
|
47
51
|
import {
|
|
@@ -0,0 +1,317 @@
|
|
|
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
|
+
EMPTY_PATH_ERROR,
|
|
9
|
+
ENVIRONMENT_ERROR,
|
|
10
|
+
RULE_LIMIT,
|
|
11
|
+
confirmationRequired,
|
|
12
|
+
formatRuleLine,
|
|
13
|
+
formatRuleTarget,
|
|
14
|
+
handleTracingApiError,
|
|
15
|
+
invalidArguments,
|
|
16
|
+
isRuleEnvironment,
|
|
17
|
+
readProjectTracing,
|
|
18
|
+
resolveConfigScope,
|
|
19
|
+
ruleNotFound,
|
|
20
|
+
subcommandArguments,
|
|
21
|
+
writeConfigJson,
|
|
22
|
+
writeSamplingRules
|
|
23
|
+
} from "./chunk-ZKUHCL6O.js";
|
|
24
|
+
import {
|
|
25
|
+
quoteArg
|
|
26
|
+
} from "./chunk-HGRWPPYB.js";
|
|
27
|
+
import "./chunk-5GGUB4EO.js";
|
|
28
|
+
import {
|
|
29
|
+
validateJsonOutput
|
|
30
|
+
} from "./chunk-KXDWXXJH.js";
|
|
31
|
+
import {
|
|
32
|
+
tracesCommand
|
|
33
|
+
} from "./chunk-7Q45OKWR.js";
|
|
34
|
+
import {
|
|
35
|
+
rmSubcommand
|
|
36
|
+
} from "./chunk-GY5I4AYD.js";
|
|
37
|
+
import {
|
|
38
|
+
help
|
|
39
|
+
} from "./chunk-RZ5NP6HN.js";
|
|
40
|
+
import "./chunk-E6LFKMI2.js";
|
|
41
|
+
import "./chunk-OHER4DGX.js";
|
|
42
|
+
import {
|
|
43
|
+
TelemetryClient
|
|
44
|
+
} from "./chunk-CYNB6LL4.js";
|
|
45
|
+
import {
|
|
46
|
+
buildCommandWithGlobalFlags
|
|
47
|
+
} from "./chunk-L7CEMAJG.js";
|
|
48
|
+
import "./chunk-GGP5R3FU.js";
|
|
49
|
+
import {
|
|
50
|
+
printError
|
|
51
|
+
} from "./chunk-CQJRLNTX.js";
|
|
52
|
+
import {
|
|
53
|
+
parseArguments
|
|
54
|
+
} from "./chunk-57RHXXXG.js";
|
|
55
|
+
import "./chunk-RKDCNQ4S.js";
|
|
56
|
+
import "./chunk-AWCID36T.js";
|
|
57
|
+
import {
|
|
58
|
+
getCommandName,
|
|
59
|
+
getCommandNamePlain,
|
|
60
|
+
getFlagsSpecification
|
|
61
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
62
|
+
import "./chunk-P4QNYOFB.js";
|
|
63
|
+
import "./chunk-52QYYTM5.js";
|
|
64
|
+
import {
|
|
65
|
+
output_manager_default
|
|
66
|
+
} from "./chunk-OX7KI3LF.js";
|
|
67
|
+
import {
|
|
68
|
+
require_source
|
|
69
|
+
} from "./chunk-S7KYDPEM.js";
|
|
70
|
+
import {
|
|
71
|
+
__toESM
|
|
72
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
73
|
+
|
|
74
|
+
// src/commands/traces/config/rm.ts
|
|
75
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
76
|
+
|
|
77
|
+
// src/util/telemetry/commands/traces/config/rm.ts
|
|
78
|
+
var TracesConfigRmTelemetryClient = class extends TelemetryClient {
|
|
79
|
+
/**
|
|
80
|
+
* The environment word is a closed set, so a valid value is tracked raw.
|
|
81
|
+
* Anything else is a typo the CLI rejected and is redacted.
|
|
82
|
+
*/
|
|
83
|
+
trackCliArgumentEnvironment(environment) {
|
|
84
|
+
if (environment) {
|
|
85
|
+
this.trackCliArgument({
|
|
86
|
+
arg: "environment",
|
|
87
|
+
value: isRuleEnvironment(environment) ? environment : this.redactedValue
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/** The path prefix is customer data. */
|
|
92
|
+
trackCliArgumentRequestPath(requestPath) {
|
|
93
|
+
if (requestPath) {
|
|
94
|
+
this.trackCliArgument({
|
|
95
|
+
arg: "requestPath",
|
|
96
|
+
value: this.redactedValue
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
trackCliFlagDefault(defaultOnly) {
|
|
101
|
+
if (defaultOnly) {
|
|
102
|
+
this.trackCliFlag("default");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
trackCliFlagJson(json) {
|
|
106
|
+
if (json) {
|
|
107
|
+
this.trackCliFlag("json");
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// src/commands/traces/config/rm.ts
|
|
113
|
+
var USAGE = "traces config rm <environment> [requestPath]";
|
|
114
|
+
function matches(row, environment, selector) {
|
|
115
|
+
if (row.environment !== environment) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
switch (selector.kind) {
|
|
119
|
+
case "exact":
|
|
120
|
+
return row.requestPath === selector.requestPath;
|
|
121
|
+
case "default":
|
|
122
|
+
return row.requestPath === null;
|
|
123
|
+
case "every":
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function describeSelection(environment, selector) {
|
|
128
|
+
switch (selector.kind) {
|
|
129
|
+
case "exact":
|
|
130
|
+
return formatRuleTarget(environment, selector.requestPath);
|
|
131
|
+
case "default":
|
|
132
|
+
return formatRuleTarget(environment, null);
|
|
133
|
+
case "every":
|
|
134
|
+
return environment;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function ruleWord(count) {
|
|
138
|
+
return count === 1 ? "rule" : "rules";
|
|
139
|
+
}
|
|
140
|
+
function canConfirm(client) {
|
|
141
|
+
return !client.nonInteractive && !client.isAgent && client.stdin.isTTY === true;
|
|
142
|
+
}
|
|
143
|
+
function commandToRunByHand(client, environment, pathArg, defaultFlag) {
|
|
144
|
+
const template = [
|
|
145
|
+
"traces config rm",
|
|
146
|
+
environment,
|
|
147
|
+
...pathArg !== void 0 ? [quoteArg(pathArg)] : [],
|
|
148
|
+
...defaultFlag ? ["--default"] : []
|
|
149
|
+
].join(" ");
|
|
150
|
+
return buildCommandWithGlobalFlags(client.argv, template, void 0, {
|
|
151
|
+
// The command is for a terminal, so it must not carry the flag that says
|
|
152
|
+
// there is nobody at one.
|
|
153
|
+
excludeFlags: ["--non-interactive"],
|
|
154
|
+
preserveProject: true
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
async function rm(client) {
|
|
158
|
+
const telemetry = new TracesConfigRmTelemetryClient({
|
|
159
|
+
opts: { store: client.telemetryEventStore }
|
|
160
|
+
});
|
|
161
|
+
let parsedArgs;
|
|
162
|
+
const flagsSpecification = getFlagsSpecification(rmSubcommand.options);
|
|
163
|
+
try {
|
|
164
|
+
parsedArgs = parseArguments(client.argv.slice(2), flagsSpecification);
|
|
165
|
+
} catch (err) {
|
|
166
|
+
printError(err);
|
|
167
|
+
return 1;
|
|
168
|
+
}
|
|
169
|
+
const { flags } = parsedArgs;
|
|
170
|
+
const [environmentArg, ...pathArgs] = subcommandArguments(parsedArgs.args);
|
|
171
|
+
const pathArg = pathArgs[0];
|
|
172
|
+
const defaultFlag = Boolean(flags["--default"]);
|
|
173
|
+
telemetry.trackCliArgumentEnvironment(environmentArg);
|
|
174
|
+
telemetry.trackCliArgumentRequestPath(pathArg);
|
|
175
|
+
telemetry.trackCliFlagDefault(flags["--default"]);
|
|
176
|
+
telemetry.trackCliOptionFormat(flags["--format"]);
|
|
177
|
+
telemetry.trackCliFlagJson(flags["--json"]);
|
|
178
|
+
telemetry.trackCliOptionProject(flags["--project"]);
|
|
179
|
+
if (environmentArg === void 0) {
|
|
180
|
+
output_manager_default.print(
|
|
181
|
+
help(rmSubcommand, {
|
|
182
|
+
parent: { ...tracesCommand, name: "traces config" },
|
|
183
|
+
columns: client.stderr.columns
|
|
184
|
+
})
|
|
185
|
+
);
|
|
186
|
+
return 2;
|
|
187
|
+
}
|
|
188
|
+
if (pathArgs.length > 1) {
|
|
189
|
+
output_manager_default.error(`Too many arguments. Usage: ${getCommandName(USAGE)}`);
|
|
190
|
+
return 2;
|
|
191
|
+
}
|
|
192
|
+
if (!isRuleEnvironment(environmentArg)) {
|
|
193
|
+
return invalidArguments(
|
|
194
|
+
client,
|
|
195
|
+
`${ENVIRONMENT_ERROR} Received: ${environmentArg}`
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
if (pathArg !== void 0 && defaultFlag) {
|
|
199
|
+
return invalidArguments(
|
|
200
|
+
client,
|
|
201
|
+
"`--default` selects the rule that has no path prefix, so it cannot be combined with a path prefix."
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
if (pathArg !== void 0 && pathArg.trim() === "") {
|
|
205
|
+
return invalidArguments(client, EMPTY_PATH_ERROR);
|
|
206
|
+
}
|
|
207
|
+
const selector = pathArg !== void 0 ? { kind: "exact", requestPath: pathArg } : defaultFlag ? { kind: "default" } : { kind: "every" };
|
|
208
|
+
const formatResult = validateJsonOutput(flags);
|
|
209
|
+
if (!formatResult.valid) {
|
|
210
|
+
output_manager_default.error(formatResult.error);
|
|
211
|
+
return 1;
|
|
212
|
+
}
|
|
213
|
+
const asJson = formatResult.jsonOutput || client.nonInteractive;
|
|
214
|
+
const scope = await resolveConfigScope(client, {
|
|
215
|
+
project: flags["--project"]
|
|
216
|
+
});
|
|
217
|
+
if ("exitCode" in scope) {
|
|
218
|
+
return scope.exitCode;
|
|
219
|
+
}
|
|
220
|
+
if (!asJson) {
|
|
221
|
+
output_manager_default.spinner("Fetching trace sampling rules\u2026");
|
|
222
|
+
}
|
|
223
|
+
let project;
|
|
224
|
+
let tracing;
|
|
225
|
+
let entries;
|
|
226
|
+
try {
|
|
227
|
+
({ project, tracing, entries } = await readProjectTracing({
|
|
228
|
+
client,
|
|
229
|
+
...scope
|
|
230
|
+
}));
|
|
231
|
+
} catch (err) {
|
|
232
|
+
output_manager_default.stopSpinner();
|
|
233
|
+
return handleTracingApiError(client, err);
|
|
234
|
+
}
|
|
235
|
+
output_manager_default.stopSpinner();
|
|
236
|
+
const removed = entries.filter((entry) => matches(entry.row, environmentArg, selector)).map((entry) => entry.row);
|
|
237
|
+
const kept = entries.filter(
|
|
238
|
+
(entry) => !matches(entry.row, environmentArg, selector)
|
|
239
|
+
);
|
|
240
|
+
if (removed.length === 0) {
|
|
241
|
+
return ruleNotFound(
|
|
242
|
+
client,
|
|
243
|
+
`No trace sampling rule matches ${describeSelection(environmentArg, selector)} on ${project.name}.`
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
const removedLines = removed.map(formatRuleLine);
|
|
247
|
+
output_manager_default.log(
|
|
248
|
+
`The following ${removed.length} ${ruleWord(removed.length)} will be removed from ${import_chalk.default.bold(project.name)}:`
|
|
249
|
+
);
|
|
250
|
+
for (const line of removedLines) {
|
|
251
|
+
output_manager_default.print(` ${line}
|
|
252
|
+
`);
|
|
253
|
+
}
|
|
254
|
+
if (!canConfirm(client)) {
|
|
255
|
+
return confirmationRequired(
|
|
256
|
+
client,
|
|
257
|
+
`Removing ${removed.length} trace sampling ${ruleWord(removed.length)} from ${project.name} needs a confirmation, and this session cannot prompt for one. Rules at risk: ${removedLines.join(", ")}.`,
|
|
258
|
+
[
|
|
259
|
+
{
|
|
260
|
+
command: commandToRunByHand(
|
|
261
|
+
client,
|
|
262
|
+
environmentArg,
|
|
263
|
+
pathArg,
|
|
264
|
+
defaultFlag
|
|
265
|
+
),
|
|
266
|
+
when: "Run this in a terminal and answer the prompt"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
const confirmed = await client.input.confirm(
|
|
272
|
+
`Remove ${removed.length} trace sampling ${ruleWord(removed.length)}?`,
|
|
273
|
+
false
|
|
274
|
+
);
|
|
275
|
+
if (!confirmed) {
|
|
276
|
+
output_manager_default.log("Canceled.");
|
|
277
|
+
return 0;
|
|
278
|
+
}
|
|
279
|
+
if (!asJson) {
|
|
280
|
+
output_manager_default.spinner("Updating trace sampling rules\u2026");
|
|
281
|
+
}
|
|
282
|
+
try {
|
|
283
|
+
await writeSamplingRules({
|
|
284
|
+
client,
|
|
285
|
+
...scope,
|
|
286
|
+
tracing,
|
|
287
|
+
rules: kept.map((entry) => entry.rule)
|
|
288
|
+
});
|
|
289
|
+
} catch (err) {
|
|
290
|
+
output_manager_default.stopSpinner();
|
|
291
|
+
return handleTracingApiError(client, err);
|
|
292
|
+
}
|
|
293
|
+
output_manager_default.stopSpinner();
|
|
294
|
+
const message = `Removed ${removed.length} trace sampling ${ruleWord(removed.length)} from ${project.name}. ${kept.length} of ${RULE_LIMIT} rules.`;
|
|
295
|
+
if (asJson) {
|
|
296
|
+
writeConfigJson(client, {
|
|
297
|
+
project,
|
|
298
|
+
bare: removed,
|
|
299
|
+
envelope: { removed, ruleCount: kept.length, ruleLimit: RULE_LIMIT },
|
|
300
|
+
message,
|
|
301
|
+
next: [
|
|
302
|
+
{
|
|
303
|
+
command: getCommandNamePlain("traces config ls"),
|
|
304
|
+
when: "Read back every remaining sampling rule"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
});
|
|
308
|
+
return 0;
|
|
309
|
+
}
|
|
310
|
+
output_manager_default.success(
|
|
311
|
+
`Removed ${removed.length} trace sampling ${ruleWord(removed.length)} from ${import_chalk.default.bold(project.name)}. ${kept.length} of ${RULE_LIMIT} rules.`
|
|
312
|
+
);
|
|
313
|
+
return 0;
|
|
314
|
+
}
|
|
315
|
+
export {
|
|
316
|
+
rm as default
|
|
317
|
+
};
|
|
@@ -9,35 +9,39 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PBHBX6UL.js";
|
|
13
|
+
import "./chunk-NSU2BTRS.js";
|
|
14
14
|
import "./chunk-KQRVZWJU.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-KXDWXXJH.js";
|
|
18
18
|
import {
|
|
19
19
|
rulesRmSubcommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-XM3LOQIX.js";
|
|
21
|
+
import "./chunk-E6LFKMI2.js";
|
|
22
|
+
import "./chunk-OHER4DGX.js";
|
|
22
23
|
import "./chunk-CYNB6LL4.js";
|
|
23
24
|
import {
|
|
24
25
|
AGENT_REASON,
|
|
25
26
|
buildCommandWithGlobalFlags,
|
|
26
27
|
buildCommandWithYes,
|
|
27
28
|
outputAgentError
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-L7CEMAJG.js";
|
|
29
30
|
import "./chunk-GGP5R3FU.js";
|
|
30
31
|
import {
|
|
31
32
|
printError
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CQJRLNTX.js";
|
|
33
34
|
import {
|
|
34
35
|
parseArguments
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-57RHXXXG.js";
|
|
37
|
+
import "./chunk-RKDCNQ4S.js";
|
|
38
|
+
import {
|
|
39
|
+
isAPIError
|
|
40
|
+
} from "./chunk-AWCID36T.js";
|
|
36
41
|
import {
|
|
37
42
|
getFlagsSpecification,
|
|
38
|
-
isAPIError,
|
|
39
43
|
packageName
|
|
40
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Q2DGFCO7.js";
|
|
41
45
|
import "./chunk-P4QNYOFB.js";
|
|
42
46
|
import "./chunk-52QYYTM5.js";
|
|
43
47
|
import {
|