vercel 58.0.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-E4KH6P4A.js → add-3RKTVRL7.js} +10 -8
- package/dist/chunks/{add-7PPD4ZUJ.js → add-X634O3US.js} +14 -9
- package/dist/chunks/add-YTFWON7N.js +187 -0
- package/dist/chunks/build-DJIDUWYB.js +243 -0
- package/dist/chunks/{chunk-DWMH5M4Q.js → chunk-2SFMOCWR.js} +1 -1
- package/dist/chunks/{chunk-3PKFXNJZ.js → chunk-3KNPVXJ3.js} +7 -5
- package/dist/chunks/chunk-3ZE5CFVM.js +346 -0
- package/dist/chunks/{chunk-FHEMFAHB.js → chunk-4LDQIDRM.js} +15 -9
- package/dist/chunks/{chunk-R5FOIIHT.js → chunk-4N7XLXM2.js} +2 -2
- package/dist/chunks/{chunk-KCF6S3XF.js → chunk-4UYKSYKQ.js} +10 -6
- package/dist/chunks/{chunk-AZTV7WPZ.js → chunk-5YXUTGSY.js} +1 -1
- package/dist/chunks/{chunk-MDQJLTGN.js → chunk-752Z4JQP.js} +1 -1
- package/dist/chunks/{chunk-OGG6UBXK.js → chunk-7QVJTI5H.js} +1 -1
- package/dist/chunks/{chunk-FYQPTH5C.js → chunk-A5KP5HAI.js} +7 -5
- package/dist/chunks/{chunk-3VS4DTAU.js → chunk-AW5YINX6.js} +106 -12
- package/dist/chunks/{chunk-BYQQLGCT.js → chunk-AZNCOIGT.js} +2 -2
- package/dist/chunks/{chunk-GIL3VAUR.js → chunk-B3JTF4CF.js} +5 -3
- package/dist/chunks/{chunk-4QVAYRYH.js → chunk-BEQV3X2L.js} +16 -1
- package/dist/chunks/{chunk-TPX7RZBM.js → chunk-BM5FP7VW.js} +9 -5
- package/dist/chunks/{chunk-WDE2EDYX.js → chunk-C33L5ZKY.js} +4 -4
- package/dist/chunks/{chunk-VUESC3YO.js → chunk-C6BDHNNF.js} +207 -4
- package/dist/chunks/{chunk-4G6QZSBL.js → chunk-CSJBZKC5.js} +6 -4
- package/dist/chunks/{chunk-TEWJ7TIW.js → chunk-D3EEVTWR.js} +2 -2
- package/dist/chunks/{chunk-3PGXYIKC.js → chunk-EBLH23AQ.js} +2 -2
- package/dist/chunks/{chunk-YA3WQFLY.js → chunk-GFG6QDIE.js} +1 -1
- package/dist/chunks/{chunk-FB4UFWEC.js → chunk-IH5JOYGQ.js} +4 -4
- package/dist/chunks/chunk-J6LK45HT.js +163 -0
- package/dist/chunks/{chunk-FYR7WEUJ.js → chunk-JID5CRQL.js} +3 -3
- package/dist/chunks/{chunk-ZVLPUREX.js → chunk-JLWQWYKO.js} +2 -2
- package/dist/chunks/{chunk-SZXT3PDQ.js → chunk-KBEX5MYS.js} +1 -136
- package/dist/chunks/{chunk-NZRWTCRM.js → chunk-KT4XXKJK.js} +1 -1
- package/dist/chunks/{chunk-VZSZBD4V.js → chunk-M22O6CYY.js} +1 -1
- package/dist/chunks/{chunk-2MJROFVC.js → chunk-MAHXF73X.js} +8 -5
- package/dist/chunks/{chunk-YZMZCQP3.js → chunk-MTW6MVY7.js} +10 -8
- package/dist/chunks/{chunk-ZMVFTCQF.js → chunk-NVSQ6KXI.js} +1 -1
- package/dist/chunks/{chunk-LHFNIZ2P.js → chunk-O5GNPPTU.js} +4 -2
- package/dist/chunks/{chunk-KGVT2RSG.js → chunk-OTQD3MHJ.js} +5 -11
- package/dist/chunks/{chunk-RSCSALZH.js → chunk-PNXQB4IO.js} +6 -5
- package/dist/chunks/{chunk-L4WYMJB3.js → chunk-QZV24TDR.js} +28 -12
- package/dist/chunks/chunk-RBIFXFZX.js +52 -0
- package/dist/chunks/{chunk-OF2GNB42.js → chunk-RQ7H43CJ.js} +1 -1
- package/dist/chunks/{chunk-EA22NMFU.js → chunk-RUOBMMEA.js} +2 -2
- package/dist/chunks/{chunk-KSSNLCL4.js → chunk-SOFC4MLS.js} +2 -2
- package/dist/chunks/{chunk-R54DAHCL.js → chunk-UDDCOV62.js} +2 -2
- package/dist/chunks/{chunk-OQGN4TEC.js → chunk-UJNNTGJY.js} +3 -3
- package/dist/chunks/{chunk-DGFASMSE.js → chunk-UQJMDWCY.js} +7 -5
- package/dist/chunks/{chunk-B2MTCHPO.js → chunk-WXJ6E3MY.js} +6 -4
- package/dist/chunks/{chunk-QZD5DKUR.js → chunk-XIG4GH62.js} +2 -2
- package/dist/chunks/chunk-XLKFJPMT.js +150 -0
- package/dist/chunks/{chunk-UDWRZXIT.js → chunk-Z5ZQJ5VJ.js} +15 -14
- package/dist/chunks/{chunk-WANVKOVB.js → chunk-ZPH66MB6.js} +808 -538
- package/dist/chunks/{chunk-DMSLNAVH.js → chunk-ZX2FSPWV.js} +2 -2
- package/dist/chunks/clear-J3OCB2DQ.js +132 -0
- package/dist/chunks/{compile-vercel-config-G2IVBXEI.js → compile-vercel-config-G2WILJR4.js} +5 -4
- package/dist/chunks/{delete-2EIVGM6P.js → delete-3NQLU7PQ.js} +7 -6
- package/dist/chunks/{delete-E6ZQNE5X.js → delete-HKUZTZE7.js} +7 -6
- package/dist/chunks/{disable-M3Q6BBB7.js → disable-7AIA4JV3.js} +7 -6
- package/dist/chunks/{discard-3R6ETBPS.js → discard-MIGUGPGO.js} +7 -6
- package/dist/chunks/{edit-7JUDPVXD.js → edit-3AU746TG.js} +8 -7
- package/dist/chunks/{edit-ICVMGRRU.js → edit-MDQW3S4R.js} +7 -6
- package/dist/chunks/{enable-HLTA35QL.js → enable-EGNWRQEI.js} +7 -6
- package/dist/chunks/{export-E6XZUFW3.js → export-EMBHNUMU.js} +7 -6
- package/dist/chunks/{image-SIRPPQZT.js → image-XXZ5DRIW.js} +5 -5
- package/dist/chunks/{inspect-6TQWDIBG.js → inspect-7V5ZHBBB.js} +13 -11
- package/dist/chunks/{inspect-65YX7L3O.js → inspect-MYUNZMLJ.js} +14 -12
- package/dist/chunks/{inspect-NFOURIGN.js → inspect-O7SVDBHM.js} +16 -13
- package/dist/chunks/{inspect-OEWWGAHZ.js → inspect-S5WJ47OH.js} +8 -7
- package/dist/chunks/{inspect-4FYBOOM5.js → inspect-TXVTHRAZ.js} +14 -12
- package/dist/chunks/{list-APFMKZJO.js → list-BQLJJACX.js} +13 -11
- package/dist/chunks/{list-27DCGMBI.js → list-LC2ON7OM.js} +8 -6
- package/dist/chunks/{list-XQCZVLES.js → list-NZ4ZOO6B.js} +8 -7
- package/dist/chunks/{login-FMU4CQOV.js → login-4B7KPSUW.js} +22 -51
- package/dist/chunks/ls-4J2WGR7U.js +178 -0
- package/dist/chunks/{ls-BFACWH6C.js → ls-7XMM4KCU.js} +17 -14
- package/dist/chunks/{ls-24BRCAZR.js → ls-FRSKR6K2.js} +15 -13
- package/dist/chunks/{ls-3L6EN4YU.js → ls-TWNQ7KZN.js} +13 -11
- package/dist/chunks/{ls-T5RGDBCV.js → ls-WCTLFAPI.js} +15 -13
- package/dist/chunks/{open-AG3VYJZM.js → open-J4SAVWUP.js} +7 -6
- package/dist/chunks/permissions-67T43WNH.js +95 -0
- package/dist/chunks/{publish-5OVCPS4J.js → publish-CSXOTJLD.js} +7 -6
- package/dist/chunks/push-7KOVRV5N.js +183 -0
- package/dist/chunks/{query-QS4VKBXJ.js → query-CTRPYYXR.js} +12 -10
- package/dist/chunks/{reorder-B5V2P7YM.js → reorder-E4PPJNEX.js} +7 -6
- package/dist/chunks/{reply-JBLWE6RS.js → reply-Z742BMF3.js} +7 -6
- package/dist/chunks/{resolve-2I6XH2G3.js → resolve-KPZJZ6IQ.js} +7 -6
- package/dist/chunks/{restore-O63FZXCL.js → restore-ZTH2FY4I.js} +7 -6
- package/dist/chunks/{rm-P3NJSCMY.js → rm-C4ODJDWP.js} +12 -8
- package/dist/chunks/{rm-N7W3QYWZ.js → rm-DE37CFKU.js} +15 -10
- package/dist/chunks/{rm-HUED5R3Q.js → rm-FVGLSIHP.js} +10 -8
- package/dist/chunks/rm-VOFJM4XW.js +186 -0
- package/dist/chunks/{rule-inspect-M3QUSPU2.js → rule-inspect-6RLS3ZNB.js} +13 -11
- package/dist/chunks/{rules-NSSWPJ2B.js → rules-VSXJT2QE.js} +8 -8
- package/dist/chunks/{schema-G2PAXPVA.js → schema-3E24G2AG.js} +11 -9
- package/dist/chunks/{tags-JFMO63D4.js → tags-AIZLNITP.js} +4 -4
- package/dist/chunks/{types-QKLIFDDP.js → types-QTOA2BTQ.js} +7 -5
- package/dist/chunks/{update-VJCKD6YG.js → update-QHWT7YG4.js} +10 -8
- package/dist/commands/build/index.js +15 -19
- package/dist/commands/deploy/index.js +33 -25
- package/dist/commands/dev/index.js +85 -17
- package/dist/commands/env/index.js +32 -24
- package/dist/commands/link/index.js +25 -22
- package/dist/commands/list/index.js +16 -9
- package/dist/commands-bulk.js +4171 -2411
- package/dist/help.js +1 -1
- package/dist/index.js +38 -34
- package/dist/version.mjs +1 -1
- package/package.json +43 -94
- package/dist/chunks/chunk-6OMC3HOW.js +0 -73
|
@@ -9,32 +9,34 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-UDDCOV62.js";
|
|
13
|
+
import "./chunk-JID5CRQL.js";
|
|
14
14
|
import "./chunk-BUZRVER7.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
18
18
|
import {
|
|
19
19
|
rulesRmSubcommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-4UYKSYKQ.js";
|
|
21
|
+
import "./chunk-BM5FP7VW.js";
|
|
22
22
|
import "./chunk-ECCWJHC6.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_REASON,
|
|
25
25
|
buildCommandWithGlobalFlags,
|
|
26
26
|
buildCommandWithYes,
|
|
27
27
|
outputAgentError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
29
29
|
import {
|
|
30
|
-
parseArguments,
|
|
31
30
|
printError
|
|
32
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KBEX5MYS.js";
|
|
32
|
+
import {
|
|
33
|
+
parseArguments
|
|
34
|
+
} from "./chunk-XLKFJPMT.js";
|
|
33
35
|
import {
|
|
34
36
|
getFlagsSpecification,
|
|
35
37
|
isAPIError,
|
|
36
38
|
packageName
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SOFC4MLS.js";
|
|
38
40
|
import "./chunk-P4QNYOFB.js";
|
|
39
41
|
import "./chunk-52QYYTM5.js";
|
|
40
42
|
import {
|
|
@@ -0,0 +1,186 @@
|
|
|
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-C6BDHNNF.js";
|
|
21
|
+
import "./chunk-G75NFPIT.js";
|
|
22
|
+
import {
|
|
23
|
+
outputError
|
|
24
|
+
} from "./chunk-BUZRVER7.js";
|
|
25
|
+
import "./chunk-XPKWKPWA.js";
|
|
26
|
+
import {
|
|
27
|
+
permissionsRmSubcommand
|
|
28
|
+
} from "./chunk-J6LK45HT.js";
|
|
29
|
+
import "./chunk-R6IGDGX3.js";
|
|
30
|
+
import "./chunk-BM5FP7VW.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/rm.ts
|
|
60
|
+
var import_async_sema = __toESM(require_async_sema(), 1);
|
|
61
|
+
var USAGE = "vcr permissions <repository> rm <team>[,<team>...]";
|
|
62
|
+
async function rm(client, argv, telemetry) {
|
|
63
|
+
let parsedArgs;
|
|
64
|
+
try {
|
|
65
|
+
parsedArgs = parseArguments(
|
|
66
|
+
argv,
|
|
67
|
+
getFlagsSpecification(permissionsRmSubcommand.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} rm team_1a2b3c4d`,
|
|
90
|
+
next: [
|
|
91
|
+
{
|
|
92
|
+
command: buildCommandWithGlobalFlags(
|
|
93
|
+
client.argv,
|
|
94
|
+
`vcr permissions ${repository} ls`
|
|
95
|
+
),
|
|
96
|
+
when: "List teams with access to pick one to remove"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
1
|
|
101
|
+
);
|
|
102
|
+
return outputError(
|
|
103
|
+
client,
|
|
104
|
+
fr.jsonOutput,
|
|
105
|
+
"MISSING_ARGUMENTS",
|
|
106
|
+
`Usage: \`vercel ${USAGE}\``
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
const scope = await resolveVcrScope(client, {
|
|
110
|
+
project,
|
|
111
|
+
jsonOutput: fr.jsonOutput
|
|
112
|
+
});
|
|
113
|
+
if (typeof scope === "number") {
|
|
114
|
+
return scope;
|
|
115
|
+
}
|
|
116
|
+
const path = repositoryPermissionsPath(scope, repository);
|
|
117
|
+
const removed = [];
|
|
118
|
+
const failed = [];
|
|
119
|
+
output_manager_default.spinner(
|
|
120
|
+
`Removing access to ${repository} for ${teamRefs.length === 1 ? teamRefs[0] : `${teamRefs.length} teams`}...`
|
|
121
|
+
);
|
|
122
|
+
const sema = new import_async_sema.default(MAX_CONCURRENT_REQUESTS);
|
|
123
|
+
let results;
|
|
124
|
+
try {
|
|
125
|
+
results = await Promise.all(
|
|
126
|
+
teamRefs.map(async (team) => {
|
|
127
|
+
await sema.acquire();
|
|
128
|
+
try {
|
|
129
|
+
await client.fetch(path, {
|
|
130
|
+
method: "DELETE",
|
|
131
|
+
body: teamRefBody(team)
|
|
132
|
+
});
|
|
133
|
+
return { ok: true, team };
|
|
134
|
+
} catch (err) {
|
|
135
|
+
if (!isAPIError(err)) {
|
|
136
|
+
throw err;
|
|
137
|
+
}
|
|
138
|
+
const message = err.serverMessage || `API error (${err.status}).`;
|
|
139
|
+
return {
|
|
140
|
+
ok: false,
|
|
141
|
+
team,
|
|
142
|
+
failure: { team, code: err.code || "API_ERROR", message }
|
|
143
|
+
};
|
|
144
|
+
} finally {
|
|
145
|
+
sema.release();
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
);
|
|
149
|
+
} finally {
|
|
150
|
+
output_manager_default.stopSpinner();
|
|
151
|
+
}
|
|
152
|
+
for (const result of results) {
|
|
153
|
+
if (!result.ok) {
|
|
154
|
+
failed.push(result.failure);
|
|
155
|
+
if (!fr.jsonOutput) {
|
|
156
|
+
output_manager_default.error(
|
|
157
|
+
`Failed to remove access to ${repository} for ${result.team}: ${result.failure.message}`
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
removed.push(result.team);
|
|
162
|
+
if (!fr.jsonOutput) {
|
|
163
|
+
output_manager_default.success(`Removed access to ${repository} for ${result.team}`);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (failed.length > 0) {
|
|
168
|
+
outputAgentError(
|
|
169
|
+
client,
|
|
170
|
+
{
|
|
171
|
+
status: "error",
|
|
172
|
+
reason: AGENT_REASON.API_ERROR,
|
|
173
|
+
message: `Failed to remove access to ${repository} for ${failed.map((f) => `${f.team} (${f.message})`).join(", ")}`
|
|
174
|
+
},
|
|
175
|
+
1
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
if (fr.jsonOutput) {
|
|
179
|
+
client.stdout.write(`${JSON.stringify({ removed, failed }, null, 2)}
|
|
180
|
+
`);
|
|
181
|
+
}
|
|
182
|
+
return failed.length > 0 ? 1 : 0;
|
|
183
|
+
}
|
|
184
|
+
export {
|
|
185
|
+
rm as default
|
|
186
|
+
};
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
isCustomAlertRule,
|
|
13
13
|
parseCustomAlertQuery,
|
|
14
14
|
renderAlertTable
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EBLH23AQ.js";
|
|
16
16
|
import {
|
|
17
17
|
emitRulesArgParseError,
|
|
18
18
|
handleRulesApiError,
|
|
19
19
|
parseRulesFlagsAndScope,
|
|
20
20
|
rulesItemPath
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-UDDCOV62.js";
|
|
22
|
+
import "./chunk-JID5CRQL.js";
|
|
23
23
|
import {
|
|
24
24
|
formatDate
|
|
25
25
|
} from "./chunk-GZLPFESR.js";
|
|
@@ -32,30 +32,32 @@ import "./chunk-FGDKMNEN.js";
|
|
|
32
32
|
import "./chunk-PRWJUY5U.js";
|
|
33
33
|
import {
|
|
34
34
|
truncateMiddle
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RQ7H43CJ.js";
|
|
36
36
|
import {
|
|
37
37
|
validateJsonOutput
|
|
38
38
|
} from "./chunk-XPKWKPWA.js";
|
|
39
39
|
import {
|
|
40
40
|
rulesInspectSubcommand
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-4UYKSYKQ.js";
|
|
42
|
+
import "./chunk-KT4XXKJK.js";
|
|
43
|
+
import "./chunk-BM5FP7VW.js";
|
|
44
44
|
import "./chunk-ECCWJHC6.js";
|
|
45
45
|
import {
|
|
46
46
|
AGENT_REASON,
|
|
47
47
|
buildCommandWithGlobalFlags,
|
|
48
48
|
outputAgentError
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
50
50
|
import {
|
|
51
|
-
parseArguments,
|
|
52
51
|
printError
|
|
53
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KBEX5MYS.js";
|
|
53
|
+
import {
|
|
54
|
+
parseArguments
|
|
55
|
+
} from "./chunk-XLKFJPMT.js";
|
|
54
56
|
import {
|
|
55
57
|
getFlagsSpecification,
|
|
56
58
|
isAPIError,
|
|
57
59
|
packageName
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-SOFC4MLS.js";
|
|
59
61
|
import "./chunk-P4QNYOFB.js";
|
|
60
62
|
import "./chunk-52QYYTM5.js";
|
|
61
63
|
import {
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
AGENT_REASON,
|
|
12
12
|
buildCommandWithGlobalFlags,
|
|
13
13
|
outputAgentError
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
15
|
+
import "./chunk-SOFC4MLS.js";
|
|
16
16
|
import "./chunk-P4QNYOFB.js";
|
|
17
17
|
import {
|
|
18
18
|
output_manager_default
|
|
@@ -30,7 +30,7 @@ var RULES_CONFIG = {
|
|
|
30
30
|
};
|
|
31
31
|
async function rules(client, argv) {
|
|
32
32
|
if (argv.length === 0 || argv[0]?.startsWith("-")) {
|
|
33
|
-
const lsFn = (await import("./ls-
|
|
33
|
+
const lsFn = (await import("./ls-TWNQ7KZN.js")).default;
|
|
34
34
|
return lsFn(client, argv);
|
|
35
35
|
}
|
|
36
36
|
const { subcommand, args, subcommandOriginal } = getSubcommand(
|
|
@@ -63,15 +63,15 @@ async function rules(client, argv) {
|
|
|
63
63
|
}
|
|
64
64
|
switch (subcommand) {
|
|
65
65
|
case "ls":
|
|
66
|
-
return (await import("./ls-
|
|
66
|
+
return (await import("./ls-TWNQ7KZN.js")).default(client, args);
|
|
67
67
|
case "add":
|
|
68
|
-
return (await import("./add-
|
|
68
|
+
return (await import("./add-3RKTVRL7.js")).default(client, args);
|
|
69
69
|
case "inspect":
|
|
70
|
-
return (await import("./rule-inspect-
|
|
70
|
+
return (await import("./rule-inspect-6RLS3ZNB.js")).default(client, args);
|
|
71
71
|
case "rm":
|
|
72
|
-
return (await import("./rm-
|
|
72
|
+
return (await import("./rm-FVGLSIHP.js")).default(client, args);
|
|
73
73
|
case "update":
|
|
74
|
-
return (await import("./update-
|
|
74
|
+
return (await import("./update-QHWT7YG4.js")).default(client, args);
|
|
75
75
|
default:
|
|
76
76
|
output_manager_default.error(`Unhandled rules subcommand: ${String(subcommandOriginal)}`);
|
|
77
77
|
return 1;
|
|
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
fetchMetricDetailOrExit,
|
|
9
9
|
fetchMetricListOrExit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GFG6QDIE.js";
|
|
11
11
|
import {
|
|
12
12
|
formatErrorJson
|
|
13
13
|
} from "./chunk-NM43FFV6.js";
|
|
@@ -16,27 +16,29 @@ import {
|
|
|
16
16
|
} from "./chunk-A3NYPUKZ.js";
|
|
17
17
|
import {
|
|
18
18
|
formatTable
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JLWQWYKO.js";
|
|
20
20
|
import {
|
|
21
21
|
validateJsonOutput
|
|
22
22
|
} from "./chunk-XPKWKPWA.js";
|
|
23
23
|
import {
|
|
24
24
|
schemaSubcommand
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-CSJBZKC5.js";
|
|
26
|
+
import "./chunk-KT4XXKJK.js";
|
|
27
27
|
import {
|
|
28
28
|
getScope,
|
|
29
29
|
require_pluralize
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BM5FP7VW.js";
|
|
31
31
|
import "./chunk-ECCWJHC6.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-Z5ZQJ5VJ.js";
|
|
33
33
|
import {
|
|
34
|
-
parseArguments,
|
|
35
34
|
printError
|
|
36
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KBEX5MYS.js";
|
|
36
|
+
import {
|
|
37
|
+
parseArguments
|
|
38
|
+
} from "./chunk-XLKFJPMT.js";
|
|
37
39
|
import {
|
|
38
40
|
getFlagsSpecification
|
|
39
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SOFC4MLS.js";
|
|
40
42
|
import "./chunk-P4QNYOFB.js";
|
|
41
43
|
import "./chunk-52QYYTM5.js";
|
|
42
44
|
import {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
AGENT_REASON,
|
|
15
15
|
buildCommandWithGlobalFlags,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-Z5ZQJ5VJ.js";
|
|
18
|
+
import "./chunk-SOFC4MLS.js";
|
|
19
19
|
import "./chunk-P4QNYOFB.js";
|
|
20
20
|
import {
|
|
21
21
|
output_manager_default
|
|
@@ -52,9 +52,9 @@ async function tags(client, argv, telemetry) {
|
|
|
52
52
|
}
|
|
53
53
|
switch (subcommand) {
|
|
54
54
|
case "ls":
|
|
55
|
-
return (await import("./ls-
|
|
55
|
+
return (await import("./ls-FRSKR6K2.js")).default(client, args, telemetry);
|
|
56
56
|
case "inspect":
|
|
57
|
-
return (await import("./inspect-
|
|
57
|
+
return (await import("./inspect-TXVTHRAZ.js")).default(client, args, telemetry);
|
|
58
58
|
default:
|
|
59
59
|
output_manager_default.error(`Unhandled tags subcommand: ${subcommand}`);
|
|
60
60
|
return 1;
|
|
@@ -9,18 +9,20 @@ import {
|
|
|
9
9
|
} from "./chunk-XPKWKPWA.js";
|
|
10
10
|
import {
|
|
11
11
|
typesSubcommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3KNPVXJ3.js";
|
|
13
13
|
import {
|
|
14
14
|
table
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KT4XXKJK.js";
|
|
16
16
|
import {
|
|
17
|
-
parseArguments,
|
|
18
17
|
printError
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KBEX5MYS.js";
|
|
19
|
+
import {
|
|
20
|
+
parseArguments
|
|
21
|
+
} from "./chunk-XLKFJPMT.js";
|
|
20
22
|
import {
|
|
21
23
|
getFlagsSpecification,
|
|
22
24
|
isAPIError
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SOFC4MLS.js";
|
|
24
26
|
import "./chunk-P4QNYOFB.js";
|
|
25
27
|
import {
|
|
26
28
|
output_manager_default
|
|
@@ -9,31 +9,33 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-UDDCOV62.js";
|
|
13
|
+
import "./chunk-JID5CRQL.js";
|
|
14
14
|
import "./chunk-BUZRVER7.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
18
18
|
import {
|
|
19
19
|
rulesUpdateSubcommand
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-4UYKSYKQ.js";
|
|
21
|
+
import "./chunk-BM5FP7VW.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 {
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
isLambda,
|
|
13
13
|
staticFiles,
|
|
14
14
|
writeBuildResult
|
|
15
|
-
} from "../../chunks/chunk-
|
|
15
|
+
} from "../../chunks/chunk-IH5JOYGQ.js";
|
|
16
16
|
import {
|
|
17
17
|
pullCommandLogic
|
|
18
|
-
} from "../../chunks/chunk-
|
|
18
|
+
} from "../../chunks/chunk-MTW6MVY7.js";
|
|
19
19
|
import {
|
|
20
20
|
require_semver
|
|
21
21
|
} from "../../chunks/chunk-IB5L4LKZ.js";
|
|
22
22
|
import {
|
|
23
23
|
pickOverrides,
|
|
24
24
|
readProjectSettings
|
|
25
|
-
} from "../../chunks/chunk-
|
|
25
|
+
} from "../../chunks/chunk-5YXUTGSY.js";
|
|
26
26
|
import "../../chunks/chunk-R6IGDGX3.js";
|
|
27
27
|
import "../../chunks/chunk-NJUPUGOE.js";
|
|
28
28
|
import {
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
32
32
|
import {
|
|
33
33
|
ensureLink
|
|
34
|
-
} from "../../chunks/chunk-
|
|
35
|
-
import "../../chunks/chunk-
|
|
34
|
+
} from "../../chunks/chunk-C33L5ZKY.js";
|
|
35
|
+
import "../../chunks/chunk-OTQD3MHJ.js";
|
|
36
36
|
import "../../chunks/chunk-V4RMJKQP.js";
|
|
37
37
|
import {
|
|
38
38
|
buildCommand
|
|
39
|
-
} from "../../chunks/chunk-
|
|
39
|
+
} from "../../chunks/chunk-RUOBMMEA.js";
|
|
40
40
|
import {
|
|
41
41
|
help
|
|
42
|
-
} from "../../chunks/chunk-
|
|
43
|
-
import "../../chunks/chunk-
|
|
42
|
+
} from "../../chunks/chunk-ZX2FSPWV.js";
|
|
43
|
+
import "../../chunks/chunk-KT4XXKJK.js";
|
|
44
44
|
import {
|
|
45
45
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
46
46
|
VERCEL_DIR,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
resolveProjectCwd,
|
|
65
65
|
ua_default,
|
|
66
66
|
validateConfig
|
|
67
|
-
} from "../../chunks/chunk-
|
|
67
|
+
} from "../../chunks/chunk-BM5FP7VW.js";
|
|
68
68
|
import {
|
|
69
69
|
TelemetryClient
|
|
70
70
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
@@ -72,12 +72,14 @@ import {
|
|
|
72
72
|
AGENT_REASON,
|
|
73
73
|
AGENT_STATUS,
|
|
74
74
|
outputAgentError
|
|
75
|
-
} from "../../chunks/chunk-
|
|
75
|
+
} from "../../chunks/chunk-Z5ZQJ5VJ.js";
|
|
76
76
|
import {
|
|
77
|
-
parseArguments,
|
|
78
77
|
printError,
|
|
79
78
|
toEnumerableError
|
|
80
|
-
} from "../../chunks/chunk-
|
|
79
|
+
} from "../../chunks/chunk-KBEX5MYS.js";
|
|
80
|
+
import {
|
|
81
|
+
parseArguments
|
|
82
|
+
} from "../../chunks/chunk-XLKFJPMT.js";
|
|
81
83
|
import {
|
|
82
84
|
CantParseJSONFile,
|
|
83
85
|
cmd,
|
|
@@ -87,7 +89,7 @@ import {
|
|
|
87
89
|
getGlobalFlagsFromArgs,
|
|
88
90
|
packageName,
|
|
89
91
|
require_lib as require_lib2
|
|
90
|
-
} from "../../chunks/chunk-
|
|
92
|
+
} from "../../chunks/chunk-SOFC4MLS.js";
|
|
91
93
|
import {
|
|
92
94
|
pkg_default
|
|
93
95
|
} from "../../chunks/chunk-P4QNYOFB.js";
|
|
@@ -280,9 +282,6 @@ function isFirstDeployment() {
|
|
|
280
282
|
}
|
|
281
283
|
async function detectFirstDeploymentFramework(options) {
|
|
282
284
|
const { workPath, projectSettings } = options;
|
|
283
|
-
if (!isFrameworkDetectionEnabled()) {
|
|
284
|
-
return { status: "skipped" };
|
|
285
|
-
}
|
|
286
285
|
logDebug(
|
|
287
286
|
`First deployment: evaluating framework detection (workPath="${workPath}", configuredFramework=${projectSettings.framework ? `"${projectSettings.framework}"` : "<none>"})`
|
|
288
287
|
);
|
|
@@ -4078,7 +4077,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
4078
4077
|
...pickOverrides(localConfig)
|
|
4079
4078
|
};
|
|
4080
4079
|
buildsJson.detectedFramework = await span.child("vc.detectFirstDeploymentFramework", {
|
|
4081
|
-
enabled: String(isFrameworkDetectionEnabled()),
|
|
4082
4080
|
firstDeployment: String(process.env.VERCEL_FIRST_DEPLOYMENT === "1"),
|
|
4083
4081
|
configuredFramework: projectSettings.framework ?? void 0
|
|
4084
4082
|
}).trace(async (s) => {
|
|
@@ -4321,7 +4319,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
4321
4319
|
const diagnostics = {};
|
|
4322
4320
|
const packageManifests = [];
|
|
4323
4321
|
const getHasDetectedServices = () => detectedResolvedServices !== void 0 && detectedResolvedServices.length > 0;
|
|
4324
|
-
const getHasQueueServices = () => detectedServices?.some(isQueueBackedService);
|
|
4325
4322
|
const synthesizedServiceCrons = [];
|
|
4326
4323
|
const serviceByBuilder = /* @__PURE__ */ new Map();
|
|
4327
4324
|
const serviceFileOverrides = /* @__PURE__ */ new Map();
|
|
@@ -4391,7 +4388,6 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
4391
4388
|
if (service) {
|
|
4392
4389
|
buildConfig = {
|
|
4393
4390
|
...build.config,
|
|
4394
|
-
...getHasQueueServices() ? { hasWorkerServices: true } : void 0,
|
|
4395
4391
|
// `service.functions` isn't on `build.config`, so builders that
|
|
4396
4392
|
// read `config.functions` (e.g. Next.js) would otherwise miss it;
|
|
4397
4393
|
// `serviceName` scopes the derived v2beta consumer.
|