vercel 58.1.0 → 58.3.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-QKP6ZCHQ.js → add-3RKTVRL7.js} +10 -8
- package/dist/chunks/{add-WKV7KU4Y.js → add-X634O3US.js} +12 -9
- package/dist/chunks/add-YTFWON7N.js +187 -0
- package/dist/chunks/{build-ZXEK6YEA.js → build-DJIDUWYB.js} +12 -9
- package/dist/chunks/{chunk-E4LXCO7U.js → chunk-2SFMOCWR.js} +1 -1
- package/dist/chunks/{chunk-NYURBHZJ.js → chunk-3KNPVXJ3.js} +1 -1
- package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
- package/dist/chunks/{chunk-AX3N4MO2.js → chunk-4LDQIDRM.js} +1 -1
- package/dist/chunks/{chunk-LXA2GZ7U.js → chunk-4N7XLXM2.js} +1 -1
- package/dist/chunks/{chunk-75MDJ6TK.js → chunk-4UYKSYKQ.js} +1 -1
- package/dist/chunks/{chunk-OVW5WUCR.js → chunk-5YXUTGSY.js} +1 -1
- package/dist/chunks/{chunk-OG7DIS52.js → chunk-752Z4JQP.js} +1 -1
- package/dist/chunks/{chunk-VSMCQSGH.js → chunk-7QVJTI5H.js} +1 -1
- package/dist/chunks/{chunk-TCBOCSWF.js → chunk-A5KP5HAI.js} +1 -1
- package/dist/chunks/{chunk-V6WHZAPP.js → chunk-AW5YINX6.js} +8 -4
- package/dist/chunks/{chunk-YITWM37U.js → chunk-AZNCOIGT.js} +2 -2
- package/dist/chunks/{chunk-NGYOR3MN.js → chunk-B3JTF4CF.js} +1 -1
- package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
- package/dist/chunks/{chunk-DKS4XDVC.js → chunk-BM5FP7VW.js} +7 -5
- package/dist/chunks/{chunk-3YARBN7P.js → chunk-C33L5ZKY.js} +4 -4
- package/dist/chunks/{chunk-XTQADJ6S.js → chunk-C6BDHNNF.js} +3 -3
- package/dist/chunks/{chunk-TPB4F5XN.js → chunk-CSJBZKC5.js} +1 -1
- package/dist/chunks/{chunk-QCB22TQG.js → chunk-D3EEVTWR.js} +2 -2
- package/dist/chunks/{chunk-XAWGGWSG.js → chunk-EBLH23AQ.js} +2 -2
- package/dist/chunks/{chunk-32IPC6RB.js → chunk-GFG6QDIE.js} +1 -1
- package/dist/chunks/{chunk-CSI7GEDD.js → chunk-IH5JOYGQ.js} +2 -2
- package/dist/chunks/chunk-J6LK45HT.js +163 -0
- package/dist/chunks/{chunk-CXICXWXJ.js → chunk-JID5CRQL.js} +3 -3
- package/dist/chunks/{chunk-FBPCJV72.js → chunk-JLWQWYKO.js} +2 -2
- package/dist/chunks/{chunk-RL7X7JGK.js → chunk-KBEX5MYS.js} +1 -136
- package/dist/chunks/{chunk-LA3BQQQK.js → chunk-KT4XXKJK.js} +1 -1
- package/dist/chunks/{chunk-FR352QKR.js → chunk-M22O6CYY.js} +1 -1
- package/dist/chunks/{chunk-XTLNPNWY.js → chunk-MAHXF73X.js} +2 -2
- package/dist/chunks/{chunk-KLNWR2JI.js → chunk-MTW6MVY7.js} +10 -8
- package/dist/chunks/{chunk-JNP3FQR3.js → chunk-NVSQ6KXI.js} +1 -1
- package/dist/chunks/{chunk-KY3ZOYJW.js → chunk-O5GNPPTU.js} +1 -1
- package/dist/chunks/{chunk-BAUVB2VF.js → chunk-OTQD3MHJ.js} +4 -4
- package/dist/chunks/{chunk-C267R2FA.js → chunk-PNXQB4IO.js} +5 -5
- package/dist/chunks/{chunk-552YY6QY.js → chunk-QZV24TDR.js} +10 -8
- package/dist/chunks/{chunk-TF627KEI.js → chunk-RQ7H43CJ.js} +1 -1
- package/dist/chunks/{chunk-JA3QX2H6.js → chunk-RUOBMMEA.js} +2 -2
- package/dist/chunks/{chunk-U6PPDPR5.js → chunk-SOFC4MLS.js} +1 -0
- package/dist/chunks/{chunk-HXTQVMJZ.js → chunk-UDDCOV62.js} +2 -2
- package/dist/chunks/{chunk-5AG7MR7W.js → chunk-UJNNTGJY.js} +3 -3
- package/dist/chunks/{chunk-4LSERVQQ.js → chunk-UQJMDWCY.js} +7 -5
- package/dist/chunks/{chunk-2D22CMQ7.js → chunk-WXJ6E3MY.js} +6 -4
- package/dist/chunks/{chunk-4I7DTZAJ.js → chunk-XIG4GH62.js} +2 -2
- package/dist/chunks/chunk-XLKFJPMT.js +150 -0
- package/dist/chunks/{chunk-S7LXRKLD.js → chunk-Z5ZQJ5VJ.js} +14 -14
- package/dist/chunks/{chunk-6QUKJKFX.js → chunk-ZPH66MB6.js} +313 -290
- package/dist/chunks/{chunk-P7IO46BQ.js → chunk-ZX2FSPWV.js} +2 -2
- package/dist/chunks/clear-J3OCB2DQ.js +132 -0
- package/dist/chunks/{compile-vercel-config-AFGCQEYG.js → compile-vercel-config-G2WILJR4.js} +5 -4
- package/dist/chunks/{delete-UGSJQBE7.js → delete-3NQLU7PQ.js} +7 -6
- package/dist/chunks/{delete-Y5LNEZXI.js → delete-HKUZTZE7.js} +7 -6
- package/dist/chunks/{disable-IF3AHKJD.js → disable-7AIA4JV3.js} +7 -6
- package/dist/chunks/{discard-Y6GZBIHJ.js → discard-MIGUGPGO.js} +7 -6
- package/dist/chunks/{edit-6TGJKUI5.js → edit-3AU746TG.js} +8 -7
- package/dist/chunks/{edit-HNMKZ3YT.js → edit-MDQW3S4R.js} +7 -6
- package/dist/chunks/{enable-SE4QM4X3.js → enable-EGNWRQEI.js} +7 -6
- package/dist/chunks/{export-5AYL7HCJ.js → export-EMBHNUMU.js} +7 -6
- package/dist/chunks/{image-6BYNQVGW.js → image-XXZ5DRIW.js} +5 -5
- package/dist/chunks/{inspect-FGYXO4K5.js → inspect-7V5ZHBBB.js} +13 -11
- package/dist/chunks/{inspect-LTHZUXA2.js → inspect-MYUNZMLJ.js} +10 -8
- package/dist/chunks/{inspect-3KCFHDWA.js → inspect-O7SVDBHM.js} +13 -10
- package/dist/chunks/{inspect-DPTRYDFH.js → inspect-S5WJ47OH.js} +8 -7
- package/dist/chunks/{inspect-MA36GG73.js → inspect-TXVTHRAZ.js} +10 -8
- package/dist/chunks/{list-BTOXZBQK.js → list-BQLJJACX.js} +13 -11
- package/dist/chunks/{list-VTQZSIIT.js → list-LC2ON7OM.js} +8 -6
- package/dist/chunks/{list-OCW34SRV.js → list-NZ4ZOO6B.js} +8 -7
- package/dist/chunks/{login-VSXLK5ZU.js → login-4B7KPSUW.js} +12 -9
- package/dist/chunks/ls-4J2WGR7U.js +178 -0
- package/dist/chunks/{ls-DRI2AOFB.js → ls-7XMM4KCU.js} +14 -11
- package/dist/chunks/{ls-76YTWNKD.js → ls-FRSKR6K2.js} +11 -9
- package/dist/chunks/{ls-3UA57DZZ.js → ls-TWNQ7KZN.js} +13 -11
- package/dist/chunks/{ls-ZBLTJ5RE.js → ls-WCTLFAPI.js} +11 -9
- package/dist/chunks/{open-DVKAE5HP.js → open-J4SAVWUP.js} +7 -6
- package/dist/chunks/permissions-67T43WNH.js +95 -0
- package/dist/chunks/{publish-F5C4ZA7M.js → publish-CSXOTJLD.js} +7 -6
- package/dist/chunks/{push-PKJFQTLO.js → push-7KOVRV5N.js} +12 -9
- package/dist/chunks/{query-GT5LCT45.js → query-CTRPYYXR.js} +12 -10
- package/dist/chunks/{reorder-AQW4XFDS.js → reorder-E4PPJNEX.js} +7 -6
- package/dist/chunks/{reply-FI7SADGU.js → reply-Z742BMF3.js} +7 -6
- package/dist/chunks/{resolve-C5G7JJZJ.js → resolve-KPZJZ6IQ.js} +7 -6
- package/dist/chunks/{restore-5TLSHQOS.js → restore-ZTH2FY4I.js} +7 -6
- package/dist/chunks/{rm-2EN66OYO.js → rm-C4ODJDWP.js} +10 -8
- package/dist/chunks/{rm-L7OQPCIE.js → rm-DE37CFKU.js} +13 -10
- package/dist/chunks/{rm-C37BHGQI.js → rm-FVGLSIHP.js} +10 -8
- package/dist/chunks/rm-VOFJM4XW.js +186 -0
- package/dist/chunks/{rule-inspect-V5DRHOTZ.js → rule-inspect-6RLS3ZNB.js} +13 -11
- package/dist/chunks/{rules-5XEMLN5G.js → rules-VSXJT2QE.js} +8 -8
- package/dist/chunks/{schema-UEOZVBY5.js → schema-3E24G2AG.js} +11 -9
- package/dist/chunks/{tags-ZGANV4YD.js → tags-AIZLNITP.js} +4 -4
- package/dist/chunks/{types-IKWGLSDF.js → types-QTOA2BTQ.js} +7 -5
- package/dist/chunks/{update-DHWSMSMS.js → update-QHWT7YG4.js} +10 -8
- package/dist/commands/build/index.js +15 -15
- package/dist/commands/deploy/index.js +28 -25
- package/dist/commands/dev/index.js +85 -17
- package/dist/commands/env/index.js +27 -24
- package/dist/commands/link/index.js +25 -22
- package/dist/commands/list/index.js +11 -9
- package/dist/commands-bulk.js +2204 -1817
- package/dist/help.js +1 -1
- package/dist/index.js +37 -34
- package/dist/version.mjs +1 -1
- package/package.json +38 -31
|
@@ -69,9 +69,9 @@ var help = () => `
|
|
|
69
69
|
deploy-hooks [cmd] Manage deploy hooks for Git-triggered builds
|
|
70
70
|
dns [name] Manages your DNS records
|
|
71
71
|
domains [name] Manages your domain names
|
|
72
|
-
edge-config [cmd] Manage Edge Config stores
|
|
73
72
|
firewall [cmd] Manages Vercel Firewall configuration and custom rules
|
|
74
73
|
flags [cmd] Manage feature flags for a Vercel project
|
|
74
|
+
global-config [cmd] Manage Global Config stores
|
|
75
75
|
httpstat path Visualize HTTP timing statistics for deployments
|
|
76
76
|
logs [url] Displays the logs for a deployment
|
|
77
77
|
metrics <metric> Queries observability metrics for your project or team
|
|
@@ -6,10 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
imageAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A5KP5HAI.js";
|
|
10
|
+
import {
|
|
11
|
+
permissionsAggregateCommand
|
|
12
|
+
} from "./chunk-J6LK45HT.js";
|
|
10
13
|
import {
|
|
11
14
|
tagsAggregateCommand
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-B3JTF4CF.js";
|
|
13
16
|
import {
|
|
14
17
|
formatOption,
|
|
15
18
|
jsonOption,
|
|
@@ -17,7 +20,7 @@ import {
|
|
|
17
20
|
packageName,
|
|
18
21
|
projectOption,
|
|
19
22
|
yesOption
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOFC4MLS.js";
|
|
21
24
|
|
|
22
25
|
// src/commands/vcr/command.ts
|
|
23
26
|
var projectScopeOption = {
|
|
@@ -237,7 +240,8 @@ var vcrCommand = {
|
|
|
237
240
|
buildSubcommand,
|
|
238
241
|
pushSubcommand,
|
|
239
242
|
tagsAggregateCommand,
|
|
240
|
-
imageAggregateCommand
|
|
243
|
+
imageAggregateCommand,
|
|
244
|
+
permissionsAggregateCommand
|
|
241
245
|
],
|
|
242
246
|
options: [],
|
|
243
247
|
examples: [
|
|
@@ -6,13 +6,13 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BM5FP7VW.js";
|
|
10
10
|
import {
|
|
11
11
|
isNativeBinaryInstall
|
|
12
12
|
} from "./chunk-ECCWJHC6.js";
|
|
13
13
|
import {
|
|
14
14
|
packageName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SOFC4MLS.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-TZ2YI2VH.js";
|
|
@@ -60,6 +60,19 @@ function repositoryTagsPath(scope, idOrName, opts = {}) {
|
|
|
60
60
|
function repositoryTagPath(scope, idOrName, tag) {
|
|
61
61
|
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/tags/${encodeURIComponent(tag)}?${baseQuery(scope).toString()}`;
|
|
62
62
|
}
|
|
63
|
+
function repositoryPermissionsPath(scope, idOrName, opts = {}) {
|
|
64
|
+
const query = baseQuery(scope);
|
|
65
|
+
if (opts.limit !== void 0) {
|
|
66
|
+
query.set("limit", String(opts.limit));
|
|
67
|
+
}
|
|
68
|
+
if (opts.cursor) {
|
|
69
|
+
query.set("cursor", opts.cursor);
|
|
70
|
+
}
|
|
71
|
+
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions?${query.toString()}`;
|
|
72
|
+
}
|
|
73
|
+
function repositoryPermissionsClearPath(scope, idOrName) {
|
|
74
|
+
return `/v1/vcr/repository/${encodeURIComponent(idOrName)}/permissions/all?${baseQuery(scope).toString()}`;
|
|
75
|
+
}
|
|
63
76
|
|
|
64
77
|
export {
|
|
65
78
|
repositoriesPath,
|
|
@@ -67,5 +80,7 @@ export {
|
|
|
67
80
|
repositoryImagesPath,
|
|
68
81
|
imagePath,
|
|
69
82
|
repositoryTagsPath,
|
|
70
|
-
repositoryTagPath
|
|
83
|
+
repositoryTagPath,
|
|
84
|
+
repositoryPermissionsPath,
|
|
85
|
+
repositoryPermissionsClearPath
|
|
71
86
|
};
|
|
@@ -20,13 +20,15 @@ import {
|
|
|
20
20
|
outputActionRequired,
|
|
21
21
|
outputAgentError,
|
|
22
22
|
shouldEmitNonInteractiveCommandError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
24
24
|
import {
|
|
25
|
-
parseArguments,
|
|
26
25
|
printError,
|
|
27
26
|
require_string_width,
|
|
28
27
|
require_strip_ansi
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KBEX5MYS.js";
|
|
29
|
+
import {
|
|
30
|
+
parseArguments
|
|
31
|
+
} from "./chunk-XLKFJPMT.js";
|
|
30
32
|
import {
|
|
31
33
|
APIError,
|
|
32
34
|
CantParseJSONFile,
|
|
@@ -57,7 +59,7 @@ import {
|
|
|
57
59
|
projectOption,
|
|
58
60
|
require_lib,
|
|
59
61
|
yesOption
|
|
60
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-SOFC4MLS.js";
|
|
61
63
|
import {
|
|
62
64
|
pkg_default
|
|
63
65
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -38148,7 +38150,7 @@ var require_package = __commonJS({
|
|
|
38148
38150
|
"../client/package.json"(exports, module) {
|
|
38149
38151
|
module.exports = {
|
|
38150
38152
|
name: "@vercel/client",
|
|
38151
|
-
version: "18.2.
|
|
38153
|
+
version: "18.2.1",
|
|
38152
38154
|
main: "dist/index.js",
|
|
38153
38155
|
typings: "dist/index.d.ts",
|
|
38154
38156
|
homepage: "https://vercel.com",
|
|
@@ -6,22 +6,22 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
setupAndLink
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OTQD3MHJ.js";
|
|
10
10
|
import {
|
|
11
11
|
detectExplicitScope,
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
printProjectNotFoundError,
|
|
15
15
|
resolveProjectCwd
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BM5FP7VW.js";
|
|
17
17
|
import {
|
|
18
18
|
buildCommandWithYes,
|
|
19
19
|
outputActionRequired
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getCommandName,
|
|
23
23
|
getCommandNamePlain
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SOFC4MLS.js";
|
|
25
25
|
import {
|
|
26
26
|
output_manager_default
|
|
27
27
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -20,18 +20,18 @@ import {
|
|
|
20
20
|
getLinkedProject,
|
|
21
21
|
getProjectByNameOrId,
|
|
22
22
|
getScope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BM5FP7VW.js";
|
|
24
24
|
import {
|
|
25
25
|
AGENT_REASON,
|
|
26
26
|
buildCommandWithGlobalFlags,
|
|
27
27
|
outputAgentError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
29
29
|
import {
|
|
30
30
|
ProjectNotFound,
|
|
31
31
|
isAPIError,
|
|
32
32
|
packageName,
|
|
33
33
|
require_bytes
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SOFC4MLS.js";
|
|
35
35
|
import {
|
|
36
36
|
output_manager_default
|
|
37
37
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
STANDARD_ENVIRONMENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BM5FP7VW.js";
|
|
10
10
|
import {
|
|
11
11
|
getCommandName,
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SOFC4MLS.js";
|
|
14
14
|
import {
|
|
15
15
|
output_manager_default
|
|
16
16
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-FGDKMNEN.js";
|
|
13
13
|
import {
|
|
14
14
|
truncateMiddle
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RQ7H43CJ.js";
|
|
16
16
|
import {
|
|
17
17
|
table
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KT4XXKJK.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/alerts/format.ts
|
|
21
21
|
function renderAlertTable(rows, hsep = 3) {
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
require_lib,
|
|
20
20
|
require_minimatch,
|
|
21
21
|
require_pluralize
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BM5FP7VW.js";
|
|
23
23
|
import {
|
|
24
24
|
CantParseJSONFile,
|
|
25
25
|
cmd,
|
|
26
26
|
code
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SOFC4MLS.js";
|
|
28
28
|
import {
|
|
29
29
|
pkg_default
|
|
30
30
|
} from "./chunk-P4QNYOFB.js";
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
formatOption,
|
|
9
|
+
limitOption,
|
|
10
|
+
packageName,
|
|
11
|
+
projectOption,
|
|
12
|
+
yesOption
|
|
13
|
+
} from "./chunk-SOFC4MLS.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/vcr/permissions/command.ts
|
|
16
|
+
var PERMISSIONS_ACTIONS = {
|
|
17
|
+
ls: ["ls", "list"],
|
|
18
|
+
add: ["add"],
|
|
19
|
+
rm: ["rm", "remove"],
|
|
20
|
+
clear: ["clear"]
|
|
21
|
+
};
|
|
22
|
+
var projectScopeOption = {
|
|
23
|
+
...projectOption,
|
|
24
|
+
shorthand: "p",
|
|
25
|
+
description: "Project name or ID (defaults to the linked project)."
|
|
26
|
+
};
|
|
27
|
+
var cursorOption = {
|
|
28
|
+
name: "cursor",
|
|
29
|
+
shorthand: "c",
|
|
30
|
+
type: String,
|
|
31
|
+
deprecated: false,
|
|
32
|
+
description: "Cursor from a previous page to continue listing from",
|
|
33
|
+
argument: "STRING"
|
|
34
|
+
};
|
|
35
|
+
var permissionsLsSubcommand = {
|
|
36
|
+
name: "ls",
|
|
37
|
+
aliases: ["list"],
|
|
38
|
+
description: "List teams with access to a repository",
|
|
39
|
+
arguments: [],
|
|
40
|
+
options: [projectScopeOption, limitOption, cursorOption, formatOption],
|
|
41
|
+
examples: [
|
|
42
|
+
{
|
|
43
|
+
name: "List teams with access to a repository",
|
|
44
|
+
value: `${packageName} vcr permissions my-app ls`
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "List teams with access as JSON",
|
|
48
|
+
value: `${packageName} vcr permissions my-app ls --format json`
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
};
|
|
52
|
+
var permissionsAddSubcommand = {
|
|
53
|
+
name: "add",
|
|
54
|
+
aliases: [],
|
|
55
|
+
description: "Give one or more teams access to pull images from a repository",
|
|
56
|
+
arguments: [
|
|
57
|
+
{
|
|
58
|
+
name: "team",
|
|
59
|
+
required: true,
|
|
60
|
+
multiple: true
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
options: [projectScopeOption, formatOption],
|
|
64
|
+
examples: [
|
|
65
|
+
{
|
|
66
|
+
name: "Share a repository with a team by id",
|
|
67
|
+
value: `${packageName} vcr permissions my-app add team_1a2b3c4d`
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "Share a repository with a team by slug",
|
|
71
|
+
value: `${packageName} vcr permissions my-app add my-team`
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "Share a repository with multiple teams",
|
|
75
|
+
value: `${packageName} vcr permissions my-app add team_1a2b3c4d,other-team`
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
var permissionsRmSubcommand = {
|
|
80
|
+
name: "rm",
|
|
81
|
+
aliases: ["remove"],
|
|
82
|
+
description: "Remove one or more teams' access to a repository",
|
|
83
|
+
arguments: [
|
|
84
|
+
{
|
|
85
|
+
name: "team",
|
|
86
|
+
required: true,
|
|
87
|
+
multiple: true
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
options: [projectScopeOption, formatOption],
|
|
91
|
+
examples: [
|
|
92
|
+
{
|
|
93
|
+
name: "Remove a team's access by id",
|
|
94
|
+
value: `${packageName} vcr permissions my-app rm team_1a2b3c4d`
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "Remove multiple teams' access",
|
|
98
|
+
value: `${packageName} vcr permissions my-app rm team_1a2b3c4d,other-team`
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
var permissionsClearSubcommand = {
|
|
103
|
+
name: "clear",
|
|
104
|
+
aliases: [],
|
|
105
|
+
description: "Remove access to a repository for every team",
|
|
106
|
+
arguments: [],
|
|
107
|
+
options: [projectScopeOption, yesOption, formatOption],
|
|
108
|
+
examples: [
|
|
109
|
+
{
|
|
110
|
+
name: "Clear all repository permissions",
|
|
111
|
+
value: `${packageName} vcr permissions my-app clear`
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "Clear all repository permissions without the confirmation prompt",
|
|
115
|
+
value: `${packageName} vcr permissions my-app clear --yes`
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
};
|
|
119
|
+
var permissionsAggregateCommand = {
|
|
120
|
+
name: "permissions",
|
|
121
|
+
aliases: ["permission"],
|
|
122
|
+
description: "Manage which teams can pull images from a container registry repository",
|
|
123
|
+
arguments: [
|
|
124
|
+
{
|
|
125
|
+
name: "repository",
|
|
126
|
+
required: true
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
subcommands: [
|
|
130
|
+
permissionsLsSubcommand,
|
|
131
|
+
permissionsAddSubcommand,
|
|
132
|
+
permissionsRmSubcommand,
|
|
133
|
+
permissionsClearSubcommand
|
|
134
|
+
],
|
|
135
|
+
options: [],
|
|
136
|
+
examples: [
|
|
137
|
+
{
|
|
138
|
+
name: "List teams with access to a repository",
|
|
139
|
+
value: `${packageName} vcr permissions my-app ls`
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "Share a repository with a team",
|
|
143
|
+
value: `${packageName} vcr permissions my-app add team_1a2b3c4d`
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "Remove a team's access to a repository",
|
|
147
|
+
value: `${packageName} vcr permissions my-app rm team_1a2b3c4d`
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "Clear all repository permissions",
|
|
151
|
+
value: `${packageName} vcr permissions my-app clear`
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
PERMISSIONS_ACTIONS,
|
|
158
|
+
permissionsLsSubcommand,
|
|
159
|
+
permissionsAddSubcommand,
|
|
160
|
+
permissionsRmSubcommand,
|
|
161
|
+
permissionsClearSubcommand,
|
|
162
|
+
permissionsAggregateCommand
|
|
163
|
+
};
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
getLinkedProject,
|
|
12
12
|
getProjectByNameOrId,
|
|
13
13
|
getScope
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BM5FP7VW.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON,
|
|
17
17
|
buildCommandWithGlobalFlags,
|
|
18
18
|
outputAgentError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
20
20
|
import {
|
|
21
21
|
ProjectNotFound,
|
|
22
22
|
isAPIError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SOFC4MLS.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/alerts/resolve-alerts-scope.ts
|
|
26
26
|
function emitAlertsScopeError(client, jsonOutput, code, message, agent) {
|
|
@@ -6,10 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
table
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KT4XXKJK.js";
|
|
10
10
|
import {
|
|
11
11
|
require_strip_ansi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KBEX5MYS.js";
|
|
13
13
|
import {
|
|
14
14
|
require_source
|
|
15
15
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -5,11 +5,10 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
arg_common_default,
|
|
9
8
|
getCommandName,
|
|
10
9
|
parseRetryAfterHeaderAsMillis,
|
|
11
10
|
require_bytes
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SOFC4MLS.js";
|
|
13
12
|
import {
|
|
14
13
|
output_manager_default
|
|
15
14
|
} from "./chunk-OX7KI3LF.js";
|
|
@@ -21,119 +20,6 @@ import {
|
|
|
21
20
|
__toESM
|
|
22
21
|
} from "./chunk-TZ2YI2VH.js";
|
|
23
22
|
|
|
24
|
-
// ../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js
|
|
25
|
-
var require_arg = __commonJS({
|
|
26
|
-
"../../node_modules/.pnpm/arg@5.0.0/node_modules/arg/index.js"(exports, module) {
|
|
27
|
-
var flagSymbol = Symbol("arg flag");
|
|
28
|
-
var ArgError = class _ArgError extends Error {
|
|
29
|
-
constructor(msg, code) {
|
|
30
|
-
super(msg);
|
|
31
|
-
this.name = "ArgError";
|
|
32
|
-
this.code = code;
|
|
33
|
-
Object.setPrototypeOf(this, _ArgError.prototype);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
function arg2(opts, { argv = process.argv.slice(2), permissive = false, stopAtPositional = false } = {}) {
|
|
37
|
-
if (!opts) {
|
|
38
|
-
throw new ArgError("argument specification object is required", "ARG_CONFIG_NO_SPEC");
|
|
39
|
-
}
|
|
40
|
-
const result = { _: [] };
|
|
41
|
-
const aliases = {};
|
|
42
|
-
const handlers = {};
|
|
43
|
-
for (const key of Object.keys(opts)) {
|
|
44
|
-
if (!key) {
|
|
45
|
-
throw new ArgError("argument key cannot be an empty string", "ARG_CONFIG_EMPTY_KEY");
|
|
46
|
-
}
|
|
47
|
-
if (key[0] !== "-") {
|
|
48
|
-
throw new ArgError(`argument key must start with '-' but found: '${key}'`, "ARG_CONFIG_NONOPT_KEY");
|
|
49
|
-
}
|
|
50
|
-
if (key.length === 1) {
|
|
51
|
-
throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, "ARG_CONFIG_NONAME_KEY");
|
|
52
|
-
}
|
|
53
|
-
if (typeof opts[key] === "string") {
|
|
54
|
-
aliases[key] = opts[key];
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
let type = opts[key];
|
|
58
|
-
let isFlag = false;
|
|
59
|
-
if (Array.isArray(type) && type.length === 1 && typeof type[0] === "function") {
|
|
60
|
-
const [fn] = type;
|
|
61
|
-
type = (value, name, prev = []) => {
|
|
62
|
-
prev.push(fn(value, name, prev[prev.length - 1]));
|
|
63
|
-
return prev;
|
|
64
|
-
};
|
|
65
|
-
isFlag = fn === Boolean || fn[flagSymbol] === true;
|
|
66
|
-
} else if (typeof type === "function") {
|
|
67
|
-
isFlag = type === Boolean || type[flagSymbol] === true;
|
|
68
|
-
} else {
|
|
69
|
-
throw new ArgError(`type missing or not a function or valid array type: ${key}`, "ARG_CONFIG_VAD_TYPE");
|
|
70
|
-
}
|
|
71
|
-
if (key[1] !== "-" && key.length > 2) {
|
|
72
|
-
throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, "ARG_CONFIG_SHORTOPT_TOOLONG");
|
|
73
|
-
}
|
|
74
|
-
handlers[key] = [type, isFlag];
|
|
75
|
-
}
|
|
76
|
-
for (let i = 0, len = argv.length; i < len; i++) {
|
|
77
|
-
const wholeArg = argv[i];
|
|
78
|
-
if (stopAtPositional && result._.length > 0) {
|
|
79
|
-
result._ = result._.concat(argv.slice(i));
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
if (wholeArg === "--") {
|
|
83
|
-
result._ = result._.concat(argv.slice(i + 1));
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
if (wholeArg.length > 1 && wholeArg[0] === "-") {
|
|
87
|
-
const separatedArguments = wholeArg[1] === "-" || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split("").map((a) => `-${a}`);
|
|
88
|
-
for (let j = 0; j < separatedArguments.length; j++) {
|
|
89
|
-
const arg3 = separatedArguments[j];
|
|
90
|
-
const [originalArgName, argStr] = arg3[1] === "-" ? arg3.split(/=(.*)/, 2) : [arg3, void 0];
|
|
91
|
-
let argName = originalArgName;
|
|
92
|
-
while (argName in aliases) {
|
|
93
|
-
argName = aliases[argName];
|
|
94
|
-
}
|
|
95
|
-
if (!(argName in handlers)) {
|
|
96
|
-
if (permissive) {
|
|
97
|
-
result._.push(arg3);
|
|
98
|
-
continue;
|
|
99
|
-
} else {
|
|
100
|
-
throw new ArgError(`unknown or unexpected option: ${originalArgName}`, "ARG_UNKNOWN_OPTION");
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
const [type, isFlag] = handlers[argName];
|
|
104
|
-
if (!isFlag && j + 1 < separatedArguments.length) {
|
|
105
|
-
throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, "ARG_MISSING_REQUIRED_SHORTARG");
|
|
106
|
-
}
|
|
107
|
-
if (isFlag) {
|
|
108
|
-
result[argName] = type(true, argName, result[argName]);
|
|
109
|
-
} else if (argStr === void 0) {
|
|
110
|
-
if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === "-" && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number || // eslint-disable-next-line no-undef
|
|
111
|
-
typeof BigInt !== "undefined" && type === BigInt))) {
|
|
112
|
-
const extended = originalArgName === argName ? "" : ` (alias for ${argName})`;
|
|
113
|
-
throw new ArgError(`option requires argument: ${originalArgName}${extended}`, "ARG_MISSING_REQUIRED_LONGARG");
|
|
114
|
-
}
|
|
115
|
-
result[argName] = type(argv[i + 1], argName, result[argName]);
|
|
116
|
-
++i;
|
|
117
|
-
} else {
|
|
118
|
-
result[argName] = type(argStr, argName, result[argName]);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
result._.push(wholeArg);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
arg2.flag = (fn) => {
|
|
128
|
-
fn[flagSymbol] = true;
|
|
129
|
-
return fn;
|
|
130
|
-
};
|
|
131
|
-
arg2.COUNT = arg2.flag((v, name, existingCount) => (existingCount || 0) + 1);
|
|
132
|
-
arg2.ArgError = ArgError;
|
|
133
|
-
module.exports = arg2;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
|
|
137
23
|
// ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
|
|
138
24
|
var require_ansi_regex = __commonJS({
|
|
139
25
|
"../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js"(exports, module) {
|
|
@@ -237,25 +123,6 @@ var require_string_width = __commonJS({
|
|
|
237
123
|
}
|
|
238
124
|
});
|
|
239
125
|
|
|
240
|
-
// src/util/get-args.ts
|
|
241
|
-
var import_arg = __toESM(require_arg(), 1);
|
|
242
|
-
function getArgs(argv, argsOptions, argOptions = {}) {
|
|
243
|
-
return (0, import_arg.default)(Object.assign({}, arg_common_default(), argsOptions), {
|
|
244
|
-
...argOptions,
|
|
245
|
-
argv
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
function parseArguments(args, flagsSpecification, parserOptions = {}) {
|
|
249
|
-
const { _: positional, ...rest } = (0, import_arg.default)(
|
|
250
|
-
Object.assign({}, arg_common_default(), flagsSpecification),
|
|
251
|
-
{
|
|
252
|
-
...parserOptions,
|
|
253
|
-
argv: args
|
|
254
|
-
}
|
|
255
|
-
);
|
|
256
|
-
return { args: positional, flags: rest };
|
|
257
|
-
}
|
|
258
|
-
|
|
259
126
|
// src/util/output/error.ts
|
|
260
127
|
var import_chalk = __toESM(require_source(), 1);
|
|
261
128
|
|
|
@@ -333,8 +200,6 @@ function printError(error2) {
|
|
|
333
200
|
}
|
|
334
201
|
|
|
335
202
|
export {
|
|
336
|
-
getArgs,
|
|
337
|
-
parseArguments,
|
|
338
203
|
require_strip_ansi,
|
|
339
204
|
require_string_width,
|
|
340
205
|
responseError,
|