vercel 58.1.0 → 58.4.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-IOYS5JE4.js} +10 -8
- package/dist/chunks/{add-WKV7KU4Y.js → add-JTIGJQ75.js} +12 -9
- package/dist/chunks/add-QKKUAXFL.js +187 -0
- package/dist/chunks/{build-ZXEK6YEA.js → build-ZHZDIIS5.js} +12 -9
- package/dist/chunks/{chunk-3YARBN7P.js → chunk-27FZN5LR.js} +4 -4
- package/dist/chunks/{chunk-4LSERVQQ.js → chunk-2ILCTO6A.js} +7 -5
- 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-JA3QX2H6.js → chunk-56QCZ4RL.js} +2 -2
- 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-JNP3FQR3.js → chunk-AZS5CLCN.js} +1 -1
- 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-552YY6QY.js → chunk-CAWBO7SQ.js} +10 -8
- package/dist/chunks/{chunk-TPB4F5XN.js → chunk-CSJBZKC5.js} +1 -1
- package/dist/chunks/{chunk-2D22CMQ7.js → chunk-DI54DSTV.js} +6 -4
- package/dist/chunks/{chunk-CXICXWXJ.js → chunk-DXS2X7KK.js} +3 -3
- package/dist/chunks/{chunk-XAWGGWSG.js → chunk-EBLH23AQ.js} +2 -2
- package/dist/chunks/{chunk-OVW5WUCR.js → chunk-G47QOVJ7.js} +1 -1
- package/dist/chunks/{chunk-32IPC6RB.js → chunk-GFG6QDIE.js} +1 -1
- package/dist/chunks/{chunk-C267R2FA.js → chunk-GJ5DKYDQ.js} +5 -5
- package/dist/chunks/{chunk-OG7DIS52.js → chunk-IBSUQT6H.js} +1 -1
- package/dist/chunks/chunk-J6LK45HT.js +163 -0
- package/dist/chunks/{chunk-5AG7MR7W.js → chunk-JHIWAM64.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-YITWM37U.js → chunk-KWOWGI7Z.js} +2 -2
- 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-KY3ZOYJW.js → chunk-O5GNPPTU.js} +1 -1
- package/dist/chunks/{chunk-CSI7GEDD.js → chunk-OWY3MF3E.js} +2 -2
- package/dist/chunks/{chunk-DKS4XDVC.js → chunk-PVWXPWLQ.js} +7 -5
- package/dist/chunks/{chunk-XTQADJ6S.js → chunk-QTXQOWOJ.js} +3 -3
- package/dist/chunks/{chunk-TF627KEI.js → chunk-RQ7H43CJ.js} +1 -1
- package/dist/chunks/{chunk-U6PPDPR5.js → chunk-SOFC4MLS.js} +1 -0
- package/dist/chunks/{chunk-QCB22TQG.js → chunk-SWHPI3G7.js} +2 -2
- package/dist/chunks/{chunk-BAUVB2VF.js → chunk-U5E5J56I.js} +4 -4
- package/dist/chunks/{chunk-HXTQVMJZ.js → chunk-U7Y5DZXS.js} +2 -2
- package/dist/chunks/{chunk-6QUKJKFX.js → chunk-WUMURQKS.js} +393 -291
- 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-KLNWR2JI.js → chunk-ZQR5RIAX.js} +10 -8
- package/dist/chunks/{chunk-P7IO46BQ.js → chunk-ZX2FSPWV.js} +2 -2
- package/dist/chunks/clear-R3DI3AA6.js +132 -0
- package/dist/chunks/{compile-vercel-config-AFGCQEYG.js → compile-vercel-config-NEC63GCN.js} +5 -4
- package/dist/chunks/{delete-UGSJQBE7.js → delete-BYB66ET3.js} +7 -6
- package/dist/chunks/{delete-Y5LNEZXI.js → delete-DIZK7FRU.js} +7 -6
- package/dist/chunks/{disable-IF3AHKJD.js → disable-HW6CHEVD.js} +7 -6
- package/dist/chunks/{discard-Y6GZBIHJ.js → discard-3UG4K6G2.js} +7 -6
- package/dist/chunks/{edit-HNMKZ3YT.js → edit-EY7LRITZ.js} +7 -6
- package/dist/chunks/{edit-6TGJKUI5.js → edit-LD5G6GL3.js} +8 -7
- package/dist/chunks/{enable-SE4QM4X3.js → enable-MDNLCSAW.js} +7 -6
- package/dist/chunks/{export-5AYL7HCJ.js → export-25X6M77L.js} +7 -6
- package/dist/chunks/{image-6BYNQVGW.js → image-YQWZLM6Z.js} +5 -5
- package/dist/chunks/{inspect-FGYXO4K5.js → inspect-73FISCNZ.js} +13 -11
- package/dist/chunks/{inspect-DPTRYDFH.js → inspect-H7GEYNIF.js} +8 -7
- package/dist/chunks/{inspect-LTHZUXA2.js → inspect-KYAB4F3P.js} +10 -8
- package/dist/chunks/{inspect-3KCFHDWA.js → inspect-QVI6UVBJ.js} +13 -10
- package/dist/chunks/{inspect-MA36GG73.js → inspect-R6ADYTPB.js} +10 -8
- package/dist/chunks/{list-OCW34SRV.js → list-FTNOS4FT.js} +8 -7
- package/dist/chunks/{list-VTQZSIIT.js → list-SDNYJJ4M.js} +8 -6
- package/dist/chunks/{list-BTOXZBQK.js → list-SRKON4E4.js} +13 -11
- package/dist/chunks/{login-VSXLK5ZU.js → login-7NR7N4ZF.js} +12 -9
- package/dist/chunks/{ls-DRI2AOFB.js → ls-BDLEGFY3.js} +14 -11
- package/dist/chunks/ls-NIEZW5O3.js +178 -0
- package/dist/chunks/{ls-3UA57DZZ.js → ls-PZHHHKZ7.js} +13 -11
- package/dist/chunks/{ls-ZBLTJ5RE.js → ls-T276Z2QR.js} +11 -9
- package/dist/chunks/{ls-76YTWNKD.js → ls-TWHG22W7.js} +11 -9
- package/dist/chunks/{open-DVKAE5HP.js → open-TNEPXGZK.js} +7 -6
- package/dist/chunks/permissions-KI2JGJSN.js +95 -0
- package/dist/chunks/{publish-F5C4ZA7M.js → publish-NBGFOHLV.js} +7 -6
- package/dist/chunks/{push-PKJFQTLO.js → push-SPPWXOAJ.js} +12 -9
- package/dist/chunks/{query-GT5LCT45.js → query-LS4PEYHG.js} +12 -10
- package/dist/chunks/{reorder-AQW4XFDS.js → reorder-UTQ632H5.js} +7 -6
- package/dist/chunks/{reply-FI7SADGU.js → reply-QFGX5YBV.js} +7 -6
- package/dist/chunks/{resolve-C5G7JJZJ.js → resolve-ZDO5BCI7.js} +7 -6
- package/dist/chunks/{restore-5TLSHQOS.js → restore-T77AKNZ2.js} +7 -6
- package/dist/chunks/{rm-L7OQPCIE.js → rm-3RTVWGWR.js} +13 -10
- package/dist/chunks/{rm-C37BHGQI.js → rm-D24FHFMF.js} +10 -8
- package/dist/chunks/{rm-2EN66OYO.js → rm-IQPLVKJR.js} +10 -8
- package/dist/chunks/rm-JTOFOKOZ.js +186 -0
- package/dist/chunks/{rule-inspect-V5DRHOTZ.js → rule-inspect-VVHTVTRD.js} +13 -11
- package/dist/chunks/{rules-5XEMLN5G.js → rules-EEWMLKRI.js} +8 -8
- package/dist/chunks/{schema-UEOZVBY5.js → schema-XLJLZ4OE.js} +11 -9
- package/dist/chunks/{tags-ZGANV4YD.js → tags-5DZYPJDP.js} +4 -4
- package/dist/chunks/{types-IKWGLSDF.js → types-QTOA2BTQ.js} +7 -5
- package/dist/chunks/{update-DHWSMSMS.js → update-YFXZDNIV.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 +2980 -2156
- package/dist/help.js +1 -1
- package/dist/index.js +37 -34
- package/dist/version.mjs +1 -1
- package/package.json +41 -34
|
@@ -9,31 +9,33 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-U7Y5DZXS.js";
|
|
13
|
+
import "./chunk-DXS2X7KK.js";
|
|
14
14
|
import "./chunk-BUZRVER7.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
18
18
|
import {
|
|
19
19
|
rulesAddSubcommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-4UYKSYKQ.js";
|
|
21
|
+
import "./chunk-PVWXPWLQ.js";
|
|
22
22
|
import "./chunk-ECCWJHC6.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_REASON,
|
|
25
25
|
buildCommandWithGlobalFlags,
|
|
26
26
|
outputAgentError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
28
28
|
import {
|
|
29
|
-
parseArguments,
|
|
30
29
|
printError
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KBEX5MYS.js";
|
|
31
|
+
import {
|
|
32
|
+
parseArguments
|
|
33
|
+
} from "./chunk-XLKFJPMT.js";
|
|
32
34
|
import {
|
|
33
35
|
getFlagsSpecification,
|
|
34
36
|
isAPIError,
|
|
35
37
|
packageName
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SOFC4MLS.js";
|
|
37
39
|
import "./chunk-P4QNYOFB.js";
|
|
38
40
|
import "./chunk-52QYYTM5.js";
|
|
39
41
|
import {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
handleVcrApiError,
|
|
10
10
|
resolveVcrScope,
|
|
11
11
|
validateVcrJsonOutput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QTXQOWOJ.js";
|
|
13
13
|
import "./chunk-G75NFPIT.js";
|
|
14
14
|
import {
|
|
15
15
|
outputError
|
|
@@ -17,26 +17,29 @@ import {
|
|
|
17
17
|
import "./chunk-XPKWKPWA.js";
|
|
18
18
|
import {
|
|
19
19
|
addSubcommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-AW5YINX6.js";
|
|
21
|
+
import "./chunk-A5KP5HAI.js";
|
|
22
|
+
import "./chunk-J6LK45HT.js";
|
|
23
|
+
import "./chunk-B3JTF4CF.js";
|
|
23
24
|
import "./chunk-R6IGDGX3.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-PVWXPWLQ.js";
|
|
25
26
|
import "./chunk-ECCWJHC6.js";
|
|
26
27
|
import {
|
|
27
28
|
AGENT_REASON,
|
|
28
29
|
buildCommandWithGlobalFlags,
|
|
29
30
|
outputAgentError
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
31
32
|
import {
|
|
32
|
-
parseArguments,
|
|
33
33
|
printError
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-KBEX5MYS.js";
|
|
35
|
+
import {
|
|
36
|
+
parseArguments
|
|
37
|
+
} from "./chunk-XLKFJPMT.js";
|
|
35
38
|
import {
|
|
36
39
|
getFlagsSpecification,
|
|
37
40
|
isAPIError,
|
|
38
41
|
packageName
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SOFC4MLS.js";
|
|
40
43
|
import "./chunk-P4QNYOFB.js";
|
|
41
44
|
import "./chunk-52QYYTM5.js";
|
|
42
45
|
import {
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
MAX_CONCURRENT_REQUESTS,
|
|
9
|
+
parseTeamRefs,
|
|
10
|
+
require_async_sema,
|
|
11
|
+
teamRefBody
|
|
12
|
+
} from "./chunk-3ZE5CFVM.js";
|
|
13
|
+
import {
|
|
14
|
+
repositoryPermissionsPath
|
|
15
|
+
} from "./chunk-BEQV3X2L.js";
|
|
16
|
+
import {
|
|
17
|
+
emitVcrArgParseError,
|
|
18
|
+
resolveVcrScope,
|
|
19
|
+
validateVcrJsonOutput
|
|
20
|
+
} from "./chunk-QTXQOWOJ.js";
|
|
21
|
+
import "./chunk-G75NFPIT.js";
|
|
22
|
+
import {
|
|
23
|
+
outputError
|
|
24
|
+
} from "./chunk-BUZRVER7.js";
|
|
25
|
+
import "./chunk-XPKWKPWA.js";
|
|
26
|
+
import {
|
|
27
|
+
permissionsAddSubcommand
|
|
28
|
+
} from "./chunk-J6LK45HT.js";
|
|
29
|
+
import "./chunk-R6IGDGX3.js";
|
|
30
|
+
import "./chunk-PVWXPWLQ.js";
|
|
31
|
+
import "./chunk-ECCWJHC6.js";
|
|
32
|
+
import {
|
|
33
|
+
AGENT_REASON,
|
|
34
|
+
buildCommandWithGlobalFlags,
|
|
35
|
+
outputAgentError
|
|
36
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
37
|
+
import {
|
|
38
|
+
printError
|
|
39
|
+
} from "./chunk-KBEX5MYS.js";
|
|
40
|
+
import {
|
|
41
|
+
parseArguments
|
|
42
|
+
} from "./chunk-XLKFJPMT.js";
|
|
43
|
+
import {
|
|
44
|
+
getFlagsSpecification,
|
|
45
|
+
isAPIError,
|
|
46
|
+
packageName
|
|
47
|
+
} from "./chunk-SOFC4MLS.js";
|
|
48
|
+
import "./chunk-P4QNYOFB.js";
|
|
49
|
+
import "./chunk-52QYYTM5.js";
|
|
50
|
+
import {
|
|
51
|
+
output_manager_default
|
|
52
|
+
} from "./chunk-OX7KI3LF.js";
|
|
53
|
+
import "./chunk-GGP5R3FU.js";
|
|
54
|
+
import "./chunk-S7KYDPEM.js";
|
|
55
|
+
import {
|
|
56
|
+
__toESM
|
|
57
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
58
|
+
|
|
59
|
+
// src/commands/vcr/permissions/add.ts
|
|
60
|
+
var import_async_sema = __toESM(require_async_sema(), 1);
|
|
61
|
+
var USAGE = "vcr permissions <repository> add <team>[,<team>...]";
|
|
62
|
+
async function add(client, argv, telemetry) {
|
|
63
|
+
let parsedArgs;
|
|
64
|
+
try {
|
|
65
|
+
parsedArgs = parseArguments(
|
|
66
|
+
argv,
|
|
67
|
+
getFlagsSpecification(permissionsAddSubcommand.options)
|
|
68
|
+
);
|
|
69
|
+
} catch (err) {
|
|
70
|
+
emitVcrArgParseError(client, err, USAGE);
|
|
71
|
+
printError(err);
|
|
72
|
+
return 1;
|
|
73
|
+
}
|
|
74
|
+
const fr = validateVcrJsonOutput(client, parsedArgs.flags);
|
|
75
|
+
if (typeof fr === "number") {
|
|
76
|
+
return fr;
|
|
77
|
+
}
|
|
78
|
+
const repository = parsedArgs.args[0];
|
|
79
|
+
const teamRefs = parseTeamRefs(parsedArgs.args.slice(2));
|
|
80
|
+
const project = parsedArgs.flags["--project"];
|
|
81
|
+
telemetry.trackCliOptionProject(project);
|
|
82
|
+
telemetry.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
83
|
+
if (teamRefs.length === 0) {
|
|
84
|
+
outputAgentError(
|
|
85
|
+
client,
|
|
86
|
+
{
|
|
87
|
+
status: "error",
|
|
88
|
+
reason: AGENT_REASON.MISSING_ARGUMENTS,
|
|
89
|
+
message: `Missing team. Example: ${packageName} vcr permissions ${repository} add team_1a2b3c4d`,
|
|
90
|
+
next: [
|
|
91
|
+
{
|
|
92
|
+
command: buildCommandWithGlobalFlags(client.argv, USAGE),
|
|
93
|
+
when: "Replace <team> with a team id or slug (comma-separate multiple teams)"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
1
|
|
98
|
+
);
|
|
99
|
+
return outputError(
|
|
100
|
+
client,
|
|
101
|
+
fr.jsonOutput,
|
|
102
|
+
"MISSING_ARGUMENTS",
|
|
103
|
+
`Usage: \`vercel ${USAGE}\``
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
const scope = await resolveVcrScope(client, {
|
|
107
|
+
project,
|
|
108
|
+
jsonOutput: fr.jsonOutput
|
|
109
|
+
});
|
|
110
|
+
if (typeof scope === "number") {
|
|
111
|
+
return scope;
|
|
112
|
+
}
|
|
113
|
+
const path = repositoryPermissionsPath(scope, repository);
|
|
114
|
+
const added = [];
|
|
115
|
+
const failed = [];
|
|
116
|
+
output_manager_default.spinner(
|
|
117
|
+
`Sharing ${repository} with ${teamRefs.length === 1 ? teamRefs[0] : `${teamRefs.length} teams`}...`
|
|
118
|
+
);
|
|
119
|
+
const sema = new import_async_sema.default(MAX_CONCURRENT_REQUESTS);
|
|
120
|
+
let results;
|
|
121
|
+
try {
|
|
122
|
+
results = await Promise.all(
|
|
123
|
+
teamRefs.map(async (team) => {
|
|
124
|
+
await sema.acquire();
|
|
125
|
+
try {
|
|
126
|
+
const result = await client.fetch(path, {
|
|
127
|
+
method: "POST",
|
|
128
|
+
body: teamRefBody(team)
|
|
129
|
+
});
|
|
130
|
+
return { ok: true, team, permission: result.permission };
|
|
131
|
+
} catch (err) {
|
|
132
|
+
if (!isAPIError(err)) {
|
|
133
|
+
throw err;
|
|
134
|
+
}
|
|
135
|
+
const message = err.serverMessage || `API error (${err.status}).`;
|
|
136
|
+
return {
|
|
137
|
+
ok: false,
|
|
138
|
+
team,
|
|
139
|
+
failure: { team, code: err.code || "API_ERROR", message }
|
|
140
|
+
};
|
|
141
|
+
} finally {
|
|
142
|
+
sema.release();
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
);
|
|
146
|
+
} finally {
|
|
147
|
+
output_manager_default.stopSpinner();
|
|
148
|
+
}
|
|
149
|
+
for (const result of results) {
|
|
150
|
+
if (result.ok) {
|
|
151
|
+
added.push(result.permission);
|
|
152
|
+
if (!fr.jsonOutput) {
|
|
153
|
+
output_manager_default.success(
|
|
154
|
+
`Shared ${repository} with ${result.permission?.teamSlug ?? result.team}`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
} else {
|
|
158
|
+
failed.push(result.failure);
|
|
159
|
+
if (!fr.jsonOutput) {
|
|
160
|
+
output_manager_default.error(
|
|
161
|
+
`Failed to share ${repository} with ${result.team}: ${result.failure.message}`
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (failed.length > 0) {
|
|
167
|
+
outputAgentError(
|
|
168
|
+
client,
|
|
169
|
+
{
|
|
170
|
+
status: "error",
|
|
171
|
+
reason: AGENT_REASON.API_ERROR,
|
|
172
|
+
message: `Failed to share ${repository} with ${failed.map((f) => `${f.team} (${f.message})`).join(", ")}`
|
|
173
|
+
},
|
|
174
|
+
1
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
if (fr.jsonOutput) {
|
|
178
|
+
client.stdout.write(
|
|
179
|
+
`${JSON.stringify({ permissions: added, failed }, null, 2)}
|
|
180
|
+
`
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
return failed.length > 0 ? 1 : 0;
|
|
184
|
+
}
|
|
185
|
+
export {
|
|
186
|
+
add as default
|
|
187
|
+
};
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
runEngine,
|
|
24
24
|
splitPassthrough,
|
|
25
25
|
validateVcrChoice
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QTXQOWOJ.js";
|
|
27
27
|
import "./chunk-G75NFPIT.js";
|
|
28
28
|
import {
|
|
29
29
|
outputError
|
|
@@ -31,24 +31,27 @@ import {
|
|
|
31
31
|
import "./chunk-XPKWKPWA.js";
|
|
32
32
|
import {
|
|
33
33
|
buildSubcommand
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-AW5YINX6.js";
|
|
35
|
+
import "./chunk-A5KP5HAI.js";
|
|
36
|
+
import "./chunk-J6LK45HT.js";
|
|
37
|
+
import "./chunk-B3JTF4CF.js";
|
|
37
38
|
import "./chunk-R6IGDGX3.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-PVWXPWLQ.js";
|
|
39
40
|
import "./chunk-ECCWJHC6.js";
|
|
40
41
|
import {
|
|
41
42
|
AGENT_REASON,
|
|
42
43
|
buildCommandWithGlobalFlags,
|
|
43
44
|
outputAgentError
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
45
46
|
import {
|
|
46
|
-
parseArguments,
|
|
47
47
|
printError
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KBEX5MYS.js";
|
|
49
|
+
import {
|
|
50
|
+
parseArguments
|
|
51
|
+
} from "./chunk-XLKFJPMT.js";
|
|
49
52
|
import {
|
|
50
53
|
getFlagsSpecification
|
|
51
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-SOFC4MLS.js";
|
|
52
55
|
import "./chunk-P4QNYOFB.js";
|
|
53
56
|
import "./chunk-52QYYTM5.js";
|
|
54
57
|
import {
|
|
@@ -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-U5E5J56I.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-PVWXPWLQ.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";
|
|
@@ -6,24 +6,26 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProjectContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PVWXPWLQ.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON,
|
|
12
12
|
AGENT_STATUS,
|
|
13
13
|
buildCommandWithYes,
|
|
14
14
|
outputAgentError,
|
|
15
15
|
withGlobalFlags
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
17
17
|
import {
|
|
18
|
-
parseArguments,
|
|
19
18
|
printError
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KBEX5MYS.js";
|
|
20
|
+
import {
|
|
21
|
+
parseArguments
|
|
22
|
+
} from "./chunk-XLKFJPMT.js";
|
|
21
23
|
import {
|
|
22
24
|
getCommandName,
|
|
23
25
|
getCommandNamePlain,
|
|
24
26
|
getFlagsSpecification,
|
|
25
27
|
getGlobalFlagsFromArgs
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SOFC4MLS.js";
|
|
27
29
|
import {
|
|
28
30
|
output_manager_default
|
|
29
31
|
} from "./chunk-OX7KI3LF.js";
|