vercel 54.11.1 → 54.12.1
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-T6Q4Z7IF.js → add-5YK3M2KO.js} +4 -4
- package/dist/chunks/{chunk-2BE6S2X5.js → chunk-222H5MYY.js} +27 -5
- package/dist/chunks/{chunk-3QANLV66.js → chunk-25I7H5PE.js} +2 -2
- package/dist/chunks/{chunk-VEG7O6KK.js → chunk-2RKOZW37.js} +1 -1
- package/dist/chunks/{chunk-WWFDZWZX.js → chunk-2VD6MP2S.js} +20 -7
- package/dist/chunks/{chunk-MSTGWZ4V.js → chunk-3PICWXS2.js} +2 -2
- package/dist/chunks/{chunk-A3HBHHB7.js → chunk-AMAIJW4M.js} +1 -1
- package/dist/chunks/{chunk-JRCKHA5T.js → chunk-ASVZLQHG.js} +346 -56
- package/dist/chunks/{chunk-CJ2XGDXE.js → chunk-CLUKKIJ2.js} +1 -1
- package/dist/chunks/{chunk-B5AHOULN.js → chunk-DW6I2NB5.js} +1 -1
- package/dist/chunks/{chunk-EJVUTQYL.js → chunk-EACELZBS.js} +1 -1
- package/dist/chunks/{chunk-KXQCHXEP.js → chunk-FVDFTZNG.js} +1 -1
- package/dist/chunks/{chunk-PEDCQGFS.js → chunk-H5BA73FD.js} +4 -4
- package/dist/chunks/{chunk-4EDYATFL.js → chunk-LCH4AM3G.js} +4 -4
- package/dist/chunks/{chunk-FCJ5RCKQ.js → chunk-LMA2ECMW.js} +2 -2
- package/dist/chunks/chunk-OKWVPKJJ.js +181 -0
- package/dist/chunks/{chunk-4LAXPJJL.js → chunk-OX7C563N.js} +1 -1
- package/dist/chunks/{chunk-4AYB4D6T.js → chunk-QNCTSLLG.js} +4 -4
- package/dist/chunks/{chunk-74I4AWLF.js → chunk-W3JJBXIV.js} +1 -1
- package/dist/chunks/{chunk-G3O5GGTH.js → chunk-XNIDT5YQ.js} +1 -1
- package/dist/chunks/{compile-vercel-config-PINMHJZV.js → compile-vercel-config-I3T4AEXU.js} +1 -1
- package/dist/chunks/{delete-JSAUWGZL.js → delete-OD4WVKF4.js} +2 -2
- package/dist/chunks/{disable-H6456MIN.js → disable-SH5IOSNN.js} +2 -2
- package/dist/chunks/{discard-MWHLHDII.js → discard-UORFIAA7.js} +2 -2
- package/dist/chunks/{edit-PQBKAMEB.js → edit-XFOZPNOL.js} +3 -3
- package/dist/chunks/{enable-I2LTHACN.js → enable-EVLFH26N.js} +2 -2
- package/dist/chunks/{export-PDBNDENX.js → export-WJSCQI55.js} +2 -2
- package/dist/chunks/{inspect-YNZEEINA.js → inspect-HWK54XQ6.js} +3 -3
- package/dist/chunks/{list-OT34GXTX.js → list-IYZBA423.js} +2 -2
- package/dist/chunks/{list-CXA72TY6.js → list-KZ647RZP.js} +3 -3
- package/dist/chunks/{ls-JLRWHA5W.js → ls-ZCBISAGK.js} +4 -4
- package/dist/chunks/{publish-AR3FRIHJ.js → publish-YR3J3EPP.js} +2 -2
- package/dist/chunks/{query-M4VFM77U.js → query-X2QQO76U.js} +2 -2
- package/dist/chunks/{reorder-V5Q23O4J.js → reorder-MCF2HGT2.js} +2 -2
- package/dist/chunks/{restore-FMGF5AU4.js → restore-OYG5VNC5.js} +2 -2
- package/dist/chunks/{rm-C54EEBUU.js → rm-P5AQ5QOK.js} +4 -4
- package/dist/chunks/{rule-inspect-NKCIQNWD.js → rule-inspect-PLVOGWS6.js} +4 -4
- package/dist/chunks/{rules-LHTAZK7R.js → rules-EVN4EVS7.js} +6 -6
- package/dist/chunks/{schema-KGZ7YT4T.js → schema-QMTPSIKA.js} +2 -2
- package/dist/chunks/{update-67NV2T55.js → update-3ZZK7JLD.js} +4 -4
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +10 -10
- package/dist/commands/dev/index.js +369 -208
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +7 -7
- package/dist/commands/list/index.js +3 -3
- package/dist/commands-bulk.js +156 -97
- package/dist/index.js +8 -8
- package/dist/version.mjs +1 -1
- package/package.json +19 -19
- package/dist/chunks/chunk-XRP2HYDU.js +0 -112
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesCollectionPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DW6I2NB5.js";
|
|
13
|
+
import "./chunk-3PICWXS2.js";
|
|
14
14
|
import "./chunk-5SYDEK2N.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-LJ5WXXG6.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-2RKOZW37.js";
|
|
25
|
+
import "./chunk-QNCTSLLG.js";
|
|
26
26
|
import "./chunk-J5273CSE.js";
|
|
27
27
|
import {
|
|
28
28
|
buildCommandWithGlobalFlags,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FVDFTZNG.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QNCTSLLG.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -641,6 +641,14 @@ var aliasCommand = {
|
|
|
641
641
|
};
|
|
642
642
|
|
|
643
643
|
// src/commands/api/command.ts
|
|
644
|
+
var specUrlOption = {
|
|
645
|
+
name: "spec-url",
|
|
646
|
+
shorthand: null,
|
|
647
|
+
type: String,
|
|
648
|
+
argument: "URL",
|
|
649
|
+
deprecated: false,
|
|
650
|
+
description: "Fetch endpoints from a custom OpenAPI spec URL instead of the public Vercel spec"
|
|
651
|
+
};
|
|
644
652
|
var listSubcommand2 = {
|
|
645
653
|
name: "list",
|
|
646
654
|
aliases: ["ls"],
|
|
@@ -648,6 +656,7 @@ var listSubcommand2 = {
|
|
|
648
656
|
arguments: [],
|
|
649
657
|
options: [
|
|
650
658
|
formatOption,
|
|
659
|
+
specUrlOption,
|
|
651
660
|
{
|
|
652
661
|
name: "refresh",
|
|
653
662
|
shorthand: null,
|
|
@@ -664,6 +673,10 @@ var listSubcommand2 = {
|
|
|
664
673
|
{
|
|
665
674
|
name: "List all endpoints as JSON",
|
|
666
675
|
value: `${packageName} api ls --format json`
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: "List endpoints from a custom OpenAPI spec",
|
|
679
|
+
value: `${packageName} api ls --spec-url https://openapi-internal.vercel.sh --refresh`
|
|
667
680
|
}
|
|
668
681
|
]
|
|
669
682
|
};
|
|
@@ -761,6 +774,7 @@ var apiCommand = {
|
|
|
761
774
|
deprecated: false,
|
|
762
775
|
description: "Force refresh the cached OpenAPI spec"
|
|
763
776
|
},
|
|
777
|
+
specUrlOption,
|
|
764
778
|
{
|
|
765
779
|
name: "generate",
|
|
766
780
|
shorthand: null,
|
|
@@ -809,6 +823,10 @@ var apiCommand = {
|
|
|
809
823
|
{
|
|
810
824
|
name: "Interactive mode (select endpoint)",
|
|
811
825
|
value: `${packageName} api`
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
name: "Interactive mode with a custom OpenAPI spec",
|
|
829
|
+
value: `${packageName} api --spec-url https://openapi-internal.vercel.sh --refresh`
|
|
812
830
|
}
|
|
813
831
|
]
|
|
814
832
|
};
|
|
@@ -1357,7 +1375,7 @@ var createSubcommand2 = {
|
|
|
1357
1375
|
type: String,
|
|
1358
1376
|
argument: "JSON",
|
|
1359
1377
|
deprecated: false,
|
|
1360
|
-
description: "JSON object for non-managed connector creation. When set, posts directly to the connector create API."
|
|
1378
|
+
description: "JSON object for non-managed connector creation. When set, posts directly to the connector create API. Pass `@<path>` to read from a file or `@-` to read from stdin \u2014 recommended for secrets (e.g. client secrets), which leak into shell history when passed inline."
|
|
1361
1379
|
},
|
|
1362
1380
|
{
|
|
1363
1381
|
name: "connector-type",
|
|
@@ -1415,8 +1433,12 @@ var createSubcommand2 = {
|
|
|
1415
1433
|
value: `${packageName} connect create mcp.linear.app --name linear --data '{"clientId":"abc123"}'`
|
|
1416
1434
|
},
|
|
1417
1435
|
{
|
|
1418
|
-
name: "Create a non-managed connector
|
|
1419
|
-
value: `${packageName} connect create slack --name my-bot --connector-type slack --data
|
|
1436
|
+
name: "Create a non-managed connector, reading credentials from a file (keeps secrets out of shell history)",
|
|
1437
|
+
value: `${packageName} connect create slack --name my-bot --connector-type slack --data @slack-app.json`
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
name: "Create a non-managed connector, reading credentials from stdin",
|
|
1441
|
+
value: `cat slack-app.json | ${packageName} connect create slack --name my-bot --connector-type slack --data @-`
|
|
1420
1442
|
},
|
|
1421
1443
|
{
|
|
1422
1444
|
name: "Output as JSON",
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OX7C563N.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
15
15
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useKeypress,
|
|
37
37
|
usePrefix,
|
|
38
38
|
useState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QNCTSLLG.js";
|
|
40
40
|
import {
|
|
41
41
|
require_load_json_file
|
|
42
42
|
} from "./chunk-J5273CSE.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-LJ5WXXG6.js";
|
|
11
11
|
import {
|
|
12
12
|
getLocalPathConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OX7C563N.js";
|
|
14
14
|
import {
|
|
15
15
|
getScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2RKOZW37.js";
|
|
17
17
|
import {
|
|
18
18
|
VERCEL_DIR_PROJECT,
|
|
19
19
|
VERCEL_DIR_README,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
selectAndParseRemoteUrl,
|
|
48
48
|
selectOrg,
|
|
49
49
|
writeServicesConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-QNCTSLLG.js";
|
|
51
51
|
import {
|
|
52
52
|
buildCommandWithGlobalFlags,
|
|
53
53
|
outputAgentError,
|
|
@@ -212,6 +212,7 @@ List accessible teams with \`vercel teams ls\`.`
|
|
|
212
212
|
var import_frameworks = __toESM(require_frameworks(), 1);
|
|
213
213
|
import {
|
|
214
214
|
getServiceQueueTopics,
|
|
215
|
+
isExperimentalServiceV2,
|
|
215
216
|
isQueueTriggeredService,
|
|
216
217
|
isScheduleTriggeredService,
|
|
217
218
|
isWorkflowTriggeredService
|
|
@@ -277,6 +278,9 @@ function getServiceDescriptionInfo(service) {
|
|
|
277
278
|
}
|
|
278
279
|
return { label: typeLabel, colorFn: typeColorFn };
|
|
279
280
|
}
|
|
281
|
+
return getFrameworkRuntimeBuilderInfo(service);
|
|
282
|
+
}
|
|
283
|
+
function getFrameworkRuntimeBuilderInfo(service) {
|
|
280
284
|
const frameworkName = getFrameworkName(service.framework);
|
|
281
285
|
if (frameworkName && service.framework) {
|
|
282
286
|
const colorFn = frameworkColors[service.framework] || chalk2.cyan;
|
|
@@ -306,6 +310,12 @@ function getServiceTarget(service) {
|
|
|
306
310
|
function displayDetectedServices(services) {
|
|
307
311
|
output_manager_default.print(`Detected services:
|
|
308
312
|
`);
|
|
313
|
+
const rows = services.some(isExperimentalServiceV2) ? buildServiceRowsV2(services.filter(isExperimentalServiceV2)) : buildServiceRowsV1(services);
|
|
314
|
+
const tableOutput = table(rows, { align: ["l", "l", "l", "l"], hsep: 2 });
|
|
315
|
+
output_manager_default.print(`${tableOutput}
|
|
316
|
+
`);
|
|
317
|
+
}
|
|
318
|
+
function buildServiceRowsV1(services) {
|
|
309
319
|
const outputOrder = {
|
|
310
320
|
web: 0,
|
|
311
321
|
cron: 1,
|
|
@@ -315,7 +325,7 @@ function displayDetectedServices(services) {
|
|
|
315
325
|
const sorted = [...services].sort(
|
|
316
326
|
(a, b) => (outputOrder[a.type] ?? 3) - (outputOrder[b.type] ?? 3)
|
|
317
327
|
);
|
|
318
|
-
|
|
328
|
+
return sorted.map((service) => {
|
|
319
329
|
const descInfo = getServiceDescriptionInfo(service);
|
|
320
330
|
const target = getServiceTarget(service);
|
|
321
331
|
return [
|
|
@@ -325,9 +335,12 @@ function displayDetectedServices(services) {
|
|
|
325
335
|
target
|
|
326
336
|
];
|
|
327
337
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
338
|
+
}
|
|
339
|
+
function buildServiceRowsV2(services) {
|
|
340
|
+
return services.map((service) => {
|
|
341
|
+
const descInfo = getFrameworkRuntimeBuilderInfo(service);
|
|
342
|
+
return [`\u2022 ${service.name}`, descInfo.colorFn(`[${descInfo.label}]`)];
|
|
343
|
+
});
|
|
331
344
|
}
|
|
332
345
|
function displayServicesConfigNote(configFileName = "vercel.json") {
|
|
333
346
|
output_manager_default.print(
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
} from "./chunk-LJ5WXXG6.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2RKOZW37.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QNCTSLLG.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|