vercel 58.9.0 → 58.9.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-EN4KBTT6.js → add-5NFS6DS7.js} +2 -2
- package/dist/chunks/{add-ZVQJE6BF.js → add-NIBAFBPP.js} +6 -6
- package/dist/chunks/{add-HFK7NUGY.js → add-PJLLOYOB.js} +2 -2
- package/dist/chunks/{build-IDCBAC3R.js → build-MF4TD2RD.js} +2 -2
- package/dist/chunks/{chunk-NFZHW6HH.js → chunk-24TPLHEI.js} +2 -2
- package/dist/chunks/{chunk-BX4IGDGM.js → chunk-4IFEBYTL.js} +212 -95
- package/dist/chunks/{chunk-Q6OJHDZK.js → chunk-4RXXF7V7.js} +1 -1
- package/dist/chunks/{chunk-E3DRV4WI.js → chunk-4XO6B3JD.js} +1 -1
- package/dist/chunks/{chunk-YUISINFV.js → chunk-6BEMCJFX.js} +2 -2
- package/dist/chunks/{chunk-G2S2QKKF.js → chunk-6LBPHFMP.js} +2 -2
- package/dist/chunks/{chunk-766B6IIX.js → chunk-BEKBCDTM.js} +1 -1
- package/dist/chunks/{chunk-YTIUSEWE.js → chunk-DGDUIC5A.js} +1 -1
- package/dist/chunks/{chunk-QRRCK6VX.js → chunk-DJPFR2DG.js} +1 -1
- package/dist/chunks/{chunk-DDUZ2VME.js → chunk-GCSUBTKN.js} +8 -6
- package/dist/chunks/{chunk-PNSWZSLC.js → chunk-L7LKHLFB.js} +2 -2
- package/dist/chunks/{chunk-TIBP3CPZ.js → chunk-LIPSDQMJ.js} +1 -1
- package/dist/chunks/{chunk-F45WFNLZ.js → chunk-MAQ6U5X2.js} +1 -1
- package/dist/chunks/{chunk-KES53W3V.js → chunk-N6ZAAUNN.js} +4 -4
- package/dist/chunks/{chunk-DQXBNALU.js → chunk-NFIGIDOY.js} +1 -1
- package/dist/chunks/{chunk-CKIZU3CI.js → chunk-SHXS3ZJD.js} +1 -1
- package/dist/chunks/{chunk-2PPATWD6.js → chunk-U6FXU4WS.js} +1 -1
- package/dist/chunks/{chunk-FBG4AMAX.js → chunk-V3W6GV3A.js} +1 -1
- package/dist/chunks/{chunk-N22RS64U.js → chunk-VBAIEFLF.js} +2 -2
- package/dist/chunks/{chunk-U6CTW37A.js → chunk-VNNVJGKE.js} +1 -1
- package/dist/chunks/{chunk-7N26744Z.js → chunk-VX6VORWT.js} +1 -1
- package/dist/chunks/{chunk-7AB6QOKM.js → chunk-W24ZG3GV.js} +1 -1
- package/dist/chunks/{chunk-WWPV6Z24.js → chunk-YRV4A73W.js} +4 -4
- package/dist/chunks/{clear-W4AEVUND.js → clear-M3QWP3HM.js} +2 -2
- package/dist/chunks/{compile-vercel-config-Q45PSZDQ.js → compile-vercel-config-6DMGPMCK.js} +1 -1
- package/dist/chunks/{config-MZ3KLGOK.js → config-5D4R6677.js} +2 -2
- package/dist/chunks/{delete-NAZTL2IK.js → delete-CJG3FHU7.js} +2 -2
- package/dist/chunks/{delete-7NADCRED.js → delete-ZWUWQT5H.js} +2 -2
- package/dist/chunks/{disable-SB224IIS.js → disable-CJKTITTQ.js} +2 -2
- package/dist/chunks/{discard-MME6PI7B.js → discard-ABXIPZHK.js} +2 -2
- package/dist/chunks/{edit-HKQEFIOY.js → edit-VJ43TKOX.js} +2 -2
- package/dist/chunks/{edit-NW4YBUR6.js → edit-VNVPLLF7.js} +3 -3
- package/dist/chunks/{enable-QEL5CXVD.js → enable-L7ERJOO5.js} +2 -2
- package/dist/chunks/{export-XDOZTLG3.js → export-BDAKZGOD.js} +2 -2
- package/dist/chunks/{image-AJMRAAOW.js → image-MGZR4VEH.js} +3 -3
- package/dist/chunks/{import-builders-7UG32FQA.js → import-builders-RBYAQIPN.js} +2 -2
- package/dist/chunks/{inspect-4YTOMOOP.js → inspect-3V6PPUA3.js} +3 -3
- package/dist/chunks/{inspect-TW5DENBM.js → inspect-E6IHZHQI.js} +2 -2
- package/dist/chunks/{inspect-JPZFHGAF.js → inspect-IO5JFCCX.js} +2 -2
- package/dist/chunks/{inspect-T6HYEMLA.js → inspect-KQBV3ALQ.js} +2 -2
- package/dist/chunks/{inspect-DGBKWCS4.js → inspect-XDKWDIUB.js} +2 -2
- package/dist/chunks/{list-ESW6P765.js → list-FTWJF5YO.js} +2 -2
- package/dist/chunks/{list-T7LXP6VX.js → list-RQB5Q7IJ.js} +16 -5
- package/dist/chunks/{list-YQ4LADLW.js → list-S2ZEK7DX.js} +1 -1
- package/dist/chunks/{login-VJESL6WK.js → login-AVIFCN4G.js} +2 -2
- package/dist/chunks/{ls-Y46O3BCS.js → ls-44QDBZEW.js} +2 -2
- package/dist/chunks/{ls-2DYO6E4E.js → ls-BKZZIR53.js} +3 -3
- package/dist/chunks/{ls-4A6CGBPD.js → ls-FI4MV46I.js} +2 -2
- package/dist/chunks/{ls-5AQBMBOG.js → ls-JI2KIY4O.js} +2 -2
- package/dist/chunks/{ls-5I2W7LZQ.js → ls-ZG43UJTR.js} +2 -2
- package/dist/chunks/{open-SZDSII6L.js → open-FGSEFGJL.js} +2 -2
- package/dist/chunks/{permissions-HRR47E2L.js → permissions-BDINZ7RC.js} +4 -4
- package/dist/chunks/{publish-D2QWFUP4.js → publish-7FXAFWWN.js} +2 -2
- package/dist/chunks/{push-75R5ZZIW.js → push-3P3NKZEG.js} +2 -2
- package/dist/chunks/{query-LL2GMJWQ.js → query-7MQN4S3S.js} +1 -1
- package/dist/chunks/{reorder-GNCRV6CV.js → reorder-42YNZL7R.js} +2 -2
- package/dist/chunks/{reply-S3UUI6C6.js → reply-36KQN23N.js} +2 -2
- package/dist/chunks/{resolve-PCBDK47N.js → resolve-ESN7P6O3.js} +2 -2
- package/dist/chunks/{restore-SXI5SHGJ.js → restore-RCNRC3YJ.js} +2 -2
- package/dist/chunks/{rm-YK2EGEPB.js → rm-E2WEJZPW.js} +2 -2
- package/dist/chunks/{rm-ZFWVI6JE.js → rm-MMYOJPW4.js} +3 -3
- package/dist/chunks/{rm-BEIAUTSF.js → rm-ODFQSS2C.js} +2 -2
- package/dist/chunks/{rm-574XTDSM.js → rm-R77FI255.js} +2 -2
- package/dist/chunks/{rule-inspect-QDQUU3EO.js → rule-inspect-FDBIBPKM.js} +3 -3
- package/dist/chunks/{rules-FNA3NXZZ.js → rules-3GSC27DA.js} +6 -6
- package/dist/chunks/{schema-5CASPRP6.js → schema-QDU3FPNC.js} +1 -1
- package/dist/chunks/{tags-SRHDQUF6.js → tags-WZBKHB6D.js} +2 -2
- package/dist/chunks/{update-FSTNM3OX.js → update-KNN7C6KN.js} +6 -6
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +9 -9
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +6 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +85 -67
- package/dist/index.js +64 -57
- package/dist/version.mjs +1 -1
- package/package.json +39 -39
package/dist/commands-bulk.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
runInteractiveEditLoop,
|
|
38
38
|
stripQuotes,
|
|
39
39
|
validateActionFlags
|
|
40
|
-
} from "./chunks/chunk-
|
|
40
|
+
} from "./chunks/chunk-MAQ6U5X2.js";
|
|
41
41
|
import {
|
|
42
42
|
getRouteVersions
|
|
43
43
|
} from "./chunks/chunk-AHU7WNL2.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
requireProjectContext,
|
|
58
58
|
validateRequiredArguments,
|
|
59
59
|
withGlobalFlags as withGlobalFlags2
|
|
60
|
-
} from "./chunks/chunk-
|
|
60
|
+
} from "./chunks/chunk-DGDUIC5A.js";
|
|
61
61
|
import {
|
|
62
62
|
canPrompt
|
|
63
63
|
} from "./chunks/chunk-2473DUBR.js";
|
|
@@ -90,12 +90,12 @@ import {
|
|
|
90
90
|
resolveOpenApiTagForTeamsCli,
|
|
91
91
|
setAutoUpdate,
|
|
92
92
|
tryOpenApiFallback
|
|
93
|
-
} from "./chunks/chunk-
|
|
93
|
+
} from "./chunks/chunk-N6ZAAUNN.js";
|
|
94
94
|
import "./chunks/chunk-FGDKMNEN.js";
|
|
95
95
|
import {
|
|
96
96
|
getUpdateCommand,
|
|
97
97
|
isGlobal
|
|
98
|
-
} from "./chunks/chunk-
|
|
98
|
+
} from "./chunks/chunk-VNNVJGKE.js";
|
|
99
99
|
import {
|
|
100
100
|
Now,
|
|
101
101
|
addDomain,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
require_cjs,
|
|
117
117
|
require_jsonlines,
|
|
118
118
|
setupDomain
|
|
119
|
-
} from "./chunks/chunk-
|
|
119
|
+
} from "./chunks/chunk-GCSUBTKN.js";
|
|
120
120
|
import {
|
|
121
121
|
require_format
|
|
122
122
|
} from "./chunks/chunk-PRWJUY5U.js";
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
readLocalConfig,
|
|
128
128
|
sleep,
|
|
129
129
|
writeToConfigFile
|
|
130
|
-
} from "./chunks/chunk-
|
|
130
|
+
} from "./chunks/chunk-6BEMCJFX.js";
|
|
131
131
|
import "./chunks/chunk-V5P25P7F.js";
|
|
132
132
|
import {
|
|
133
133
|
CHECKBOX_INSTRUCTIONS,
|
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
import {
|
|
156
156
|
formatEnvironment,
|
|
157
157
|
validateLsArgs
|
|
158
|
-
} from "./chunks/chunk-
|
|
158
|
+
} from "./chunks/chunk-SHXS3ZJD.js";
|
|
159
159
|
import {
|
|
160
160
|
validateJsonOutput
|
|
161
161
|
} from "./chunks/chunk-KXDWXXJH.js";
|
|
@@ -465,7 +465,7 @@ import {
|
|
|
465
465
|
webAnalyticsSubcommand,
|
|
466
466
|
webhooksCommand,
|
|
467
467
|
whoamiCommand
|
|
468
|
-
} from "./chunks/chunk-
|
|
468
|
+
} from "./chunks/chunk-24TPLHEI.js";
|
|
469
469
|
import {
|
|
470
470
|
addSubcommand as addSubcommand12,
|
|
471
471
|
buildSubcommand,
|
|
@@ -551,9 +551,9 @@ import {
|
|
|
551
551
|
dump,
|
|
552
552
|
load,
|
|
553
553
|
main
|
|
554
|
-
} from "./chunks/chunk-
|
|
554
|
+
} from "./chunks/chunk-YRV4A73W.js";
|
|
555
555
|
import "./chunks/chunk-IB5L4LKZ.js";
|
|
556
|
-
import "./chunks/chunk-
|
|
556
|
+
import "./chunks/chunk-BEKBCDTM.js";
|
|
557
557
|
import {
|
|
558
558
|
require_execa
|
|
559
559
|
} from "./chunks/chunk-R6IGDGX3.js";
|
|
@@ -568,10 +568,10 @@ import {
|
|
|
568
568
|
} from "./chunks/chunk-VXYGCOKL.js";
|
|
569
569
|
import {
|
|
570
570
|
ensureLink
|
|
571
|
-
} from "./chunks/chunk-
|
|
572
|
-
import "./chunks/chunk-
|
|
573
|
-
import "./chunks/chunk-
|
|
574
|
-
import "./chunks/chunk-
|
|
571
|
+
} from "./chunks/chunk-VBAIEFLF.js";
|
|
572
|
+
import "./chunks/chunk-L7LKHLFB.js";
|
|
573
|
+
import "./chunks/chunk-W24ZG3GV.js";
|
|
574
|
+
import "./chunks/chunk-V3W6GV3A.js";
|
|
575
575
|
import {
|
|
576
576
|
help
|
|
577
577
|
} from "./chunks/chunk-ZX2FSPWV.js";
|
|
@@ -634,7 +634,7 @@ import {
|
|
|
634
634
|
selectOrg,
|
|
635
635
|
toHost,
|
|
636
636
|
ua_default
|
|
637
|
-
} from "./chunks/chunk-
|
|
637
|
+
} from "./chunks/chunk-4IFEBYTL.js";
|
|
638
638
|
import {
|
|
639
639
|
TelemetryClient
|
|
640
640
|
} from "./chunks/chunk-ECCWJHC6.js";
|
|
@@ -2478,7 +2478,7 @@ async function activity(client) {
|
|
|
2478
2478
|
return 0;
|
|
2479
2479
|
}
|
|
2480
2480
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
2481
|
-
const listFn = (await import("./chunks/list-
|
|
2481
|
+
const listFn = (await import("./chunks/list-S2ZEK7DX.js")).default;
|
|
2482
2482
|
return listFn(client, telemetry2);
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
@@ -5166,7 +5166,7 @@ async function writeConfigFile(path3, content, mode) {
|
|
|
5166
5166
|
}
|
|
5167
5167
|
|
|
5168
5168
|
// src/util/ai-gateway/coding-agents/gateway.ts
|
|
5169
|
-
var
|
|
5169
|
+
var GATEWAY_CODING_AGENT_BASE_URL = "https://ai-gateway.vercel.sh/coding-agent/v1";
|
|
5170
5170
|
var GATEWAY_CODEX_BASE_URL = "https://ai-gateway.vercel.sh/codex/v1";
|
|
5171
5171
|
var GATEWAY_CLAUDE_CODE_BASE_URL = "https://ai-gateway.vercel.sh/claude-code";
|
|
5172
5172
|
var GATEWAY_API_KEY_ENV = "AI_GATEWAY_API_KEY";
|
|
@@ -5730,7 +5730,6 @@ var codex = {
|
|
|
5730
5730
|
|
|
5731
5731
|
// src/util/ai-gateway/coding-agents/agents/cursor.ts
|
|
5732
5732
|
import { join as join7 } from "path";
|
|
5733
|
-
var CURSOR_BASE_URL = "https://ai-gateway.vercel.sh/v1/cursor";
|
|
5734
5733
|
var cursor = {
|
|
5735
5734
|
id: "cursor",
|
|
5736
5735
|
displayName: "Cursor",
|
|
@@ -5748,7 +5747,7 @@ var cursor = {
|
|
|
5748
5747
|
notes: [
|
|
5749
5748
|
"Cursor keeps its API-key settings in the app itself, so finish the setup there:",
|
|
5750
5749
|
"1. Open Cursor \u2192 Settings (Cmd+Shift+J) \u2192 Models.",
|
|
5751
|
-
`2. Under OpenAI API Key: paste your gateway key, then enable "Override OpenAI Base URL" and set it to ${ctx.baseUrlOverride ??
|
|
5750
|
+
`2. Under OpenAI API Key: paste your gateway key, then enable "Override OpenAI Base URL" and set it to ${ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL}`,
|
|
5752
5751
|
'3. Copy the key from a new terminal without echoing it: printf %s "$AI_GATEWAY_API_KEY" | pbcopy',
|
|
5753
5752
|
'4. Use "Add model" to add gateway model ids you want in the picker (e.g. anthropic/claude-fable-5, openai/gpt-5.6-sol).',
|
|
5754
5753
|
"While the override is on, Cursor's built-in non-OpenAI models stop working \u2014 use gateway model ids for everything, or toggle the override off to go back.",
|
|
@@ -5777,7 +5776,7 @@ var hermes = {
|
|
|
5777
5776
|
},
|
|
5778
5777
|
buildPlan(ctx) {
|
|
5779
5778
|
const path3 = this.configPath(ctx);
|
|
5780
|
-
const api2 = ctx.baseUrlOverride ??
|
|
5779
|
+
const api2 = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5781
5780
|
return {
|
|
5782
5781
|
fileChanges: [
|
|
5783
5782
|
{
|
|
@@ -5832,7 +5831,7 @@ var kilo = {
|
|
|
5832
5831
|
},
|
|
5833
5832
|
buildPlan(ctx) {
|
|
5834
5833
|
const path3 = this.configPath(ctx);
|
|
5835
|
-
const baseURL = ctx.baseUrlOverride ??
|
|
5834
|
+
const baseURL = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5836
5835
|
return {
|
|
5837
5836
|
fileChanges: [
|
|
5838
5837
|
{
|
|
@@ -5882,7 +5881,7 @@ var openclaw = {
|
|
|
5882
5881
|
},
|
|
5883
5882
|
buildPlan(ctx) {
|
|
5884
5883
|
const path3 = this.configPath(ctx);
|
|
5885
|
-
const baseUrl = ctx.baseUrlOverride ??
|
|
5884
|
+
const baseUrl = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5886
5885
|
return {
|
|
5887
5886
|
fileChanges: [
|
|
5888
5887
|
{
|
|
@@ -9325,17 +9324,17 @@ ${extra}` : helpOutput);
|
|
|
9325
9324
|
switch (subcommand) {
|
|
9326
9325
|
case "inspect": {
|
|
9327
9326
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
9328
|
-
const inspectFn = (await import("./chunks/inspect-
|
|
9327
|
+
const inspectFn = (await import("./chunks/inspect-IO5JFCCX.js")).default;
|
|
9329
9328
|
return inspectFn(client, rawSubcommandArgs);
|
|
9330
9329
|
}
|
|
9331
9330
|
case "rules": {
|
|
9332
9331
|
telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
|
|
9333
|
-
const rulesFn = (await import("./chunks/rules-
|
|
9332
|
+
const rulesFn = (await import("./chunks/rules-3GSC27DA.js")).default;
|
|
9334
9333
|
return rulesFn(client, rawSubcommandArgs);
|
|
9335
9334
|
}
|
|
9336
9335
|
default: {
|
|
9337
9336
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
9338
|
-
const listFn = (await import("./chunks/list-
|
|
9337
|
+
const listFn = (await import("./chunks/list-FTWJF5YO.js")).default;
|
|
9339
9338
|
return listFn(client, telemetry2);
|
|
9340
9339
|
}
|
|
9341
9340
|
}
|
|
@@ -9768,7 +9767,9 @@ async function fetchDeploymentsByAppName(client, appName) {
|
|
|
9768
9767
|
async function getAppLastDeployment(client, appName, user, contextName) {
|
|
9769
9768
|
output_manager_default.debug(`Looking for deployments matching app ${appName}`);
|
|
9770
9769
|
const deployments = await fetchDeploymentsByAppName(client, appName);
|
|
9771
|
-
const deploymentItem = deployments.sort((a, b) => b.created - a.created).filter(
|
|
9770
|
+
const deploymentItem = deployments.sort((a, b) => b.created - a.created).filter(
|
|
9771
|
+
(dep) => dep.state === "READY" && (!user || dep.creator.uid === user.id)
|
|
9772
|
+
)[0];
|
|
9772
9773
|
if (deploymentItem) {
|
|
9773
9774
|
return await getDeployment(client, contextName, deploymentItem.uid);
|
|
9774
9775
|
}
|
|
@@ -14699,43 +14700,43 @@ async function comments(client) {
|
|
|
14699
14700
|
if (handleHelp(inspectSubcommand4))
|
|
14700
14701
|
return 0;
|
|
14701
14702
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
14702
|
-
return (await import("./chunks/inspect-
|
|
14703
|
+
return (await import("./chunks/inspect-3V6PPUA3.js")).default(client, telemetry2);
|
|
14703
14704
|
}
|
|
14704
14705
|
case "open": {
|
|
14705
14706
|
if (handleHelp(openSubcommand))
|
|
14706
14707
|
return 0;
|
|
14707
14708
|
telemetry2.trackCliSubcommandOpen(subcommandOriginal);
|
|
14708
|
-
return (await import("./chunks/open-
|
|
14709
|
+
return (await import("./chunks/open-FGSEFGJL.js")).default(client, telemetry2);
|
|
14709
14710
|
}
|
|
14710
14711
|
case "reply": {
|
|
14711
14712
|
if (handleHelp(replySubcommand))
|
|
14712
14713
|
return 0;
|
|
14713
14714
|
telemetry2.trackCliSubcommandReply(subcommandOriginal);
|
|
14714
|
-
return (await import("./chunks/reply-
|
|
14715
|
+
return (await import("./chunks/reply-36KQN23N.js")).default(client, telemetry2);
|
|
14715
14716
|
}
|
|
14716
14717
|
case "resolve": {
|
|
14717
14718
|
if (handleHelp(resolveSubcommand))
|
|
14718
14719
|
return 0;
|
|
14719
14720
|
telemetry2.trackCliSubcommandResolve(subcommandOriginal);
|
|
14720
|
-
return (await import("./chunks/resolve-
|
|
14721
|
+
return (await import("./chunks/resolve-ESN7P6O3.js")).default(client, telemetry2, true);
|
|
14721
14722
|
}
|
|
14722
14723
|
case "reopen": {
|
|
14723
14724
|
if (handleHelp(reopenSubcommand))
|
|
14724
14725
|
return 0;
|
|
14725
14726
|
telemetry2.trackCliSubcommandReopen(subcommandOriginal);
|
|
14726
|
-
return (await import("./chunks/resolve-
|
|
14727
|
+
return (await import("./chunks/resolve-ESN7P6O3.js")).default(client, telemetry2, false);
|
|
14727
14728
|
}
|
|
14728
14729
|
case "edit": {
|
|
14729
14730
|
if (handleHelp(editSubcommand))
|
|
14730
14731
|
return 0;
|
|
14731
14732
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
14732
|
-
return (await import("./chunks/edit-
|
|
14733
|
+
return (await import("./chunks/edit-VJ43TKOX.js")).default(client, telemetry2);
|
|
14733
14734
|
}
|
|
14734
14735
|
case "delete": {
|
|
14735
14736
|
if (handleHelp(deleteSubcommand))
|
|
14736
14737
|
return 0;
|
|
14737
14738
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
14738
|
-
return (await import("./chunks/delete-
|
|
14739
|
+
return (await import("./chunks/delete-CJG3FHU7.js")).default(client, telemetry2);
|
|
14739
14740
|
}
|
|
14740
14741
|
default: {
|
|
14741
14742
|
if (needHelp) {
|
|
@@ -14751,7 +14752,7 @@ async function comments(client) {
|
|
|
14751
14752
|
}
|
|
14752
14753
|
telemetry2.trackCliSubcommandList(subcommandOriginal);
|
|
14753
14754
|
const defaultInvocation = subcommandOriginal === "default";
|
|
14754
|
-
return (await import("./chunks/list-
|
|
14755
|
+
return (await import("./chunks/list-RQB5Q7IJ.js")).default(
|
|
14755
14756
|
client,
|
|
14756
14757
|
telemetry2,
|
|
14757
14758
|
defaultInvocation
|
|
@@ -18363,6 +18364,7 @@ async function contract(client) {
|
|
|
18363
18364
|
}
|
|
18364
18365
|
const asJson = formatResult.jsonOutput;
|
|
18365
18366
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
18367
|
+
telemetry2.trackCliFlagJson(parsedArgs.flags["--json"]);
|
|
18366
18368
|
let contextName;
|
|
18367
18369
|
let teamId;
|
|
18368
18370
|
try {
|
|
@@ -20507,7 +20509,7 @@ async function getDeploymentUrlAndToken(client, commandName, path3, options) {
|
|
|
20507
20509
|
}
|
|
20508
20510
|
let baseUrl;
|
|
20509
20511
|
if (deploymentFlag) {
|
|
20510
|
-
const accountId = scope.team?.id || scope.user
|
|
20512
|
+
const accountId = scope.team?.id || scope.user?.id;
|
|
20511
20513
|
const isDirectUrl = deploymentFlag.startsWith("http://") || deploymentFlag.startsWith("https://") || deploymentFlag.includes("vercel.app");
|
|
20512
20514
|
const requestedBaseUrl = isDirectUrl ? await getDeploymentUrlById(client, deploymentFlag, accountId) : null;
|
|
20513
20515
|
const deploymentSelector = deploymentFlag.includes(".") || deploymentFlag.startsWith("dpl_") ? deploymentFlag : `dpl_${deploymentFlag}`;
|
|
@@ -22509,7 +22511,7 @@ async function ls5(client, argv) {
|
|
|
22509
22511
|
const data = await getDomainDNSRecords(
|
|
22510
22512
|
client,
|
|
22511
22513
|
domainName,
|
|
22512
|
-
|
|
22514
|
+
5,
|
|
22513
22515
|
...paginationOptions
|
|
22514
22516
|
);
|
|
22515
22517
|
if (data instanceof DomainNotFound) {
|
|
@@ -22907,7 +22909,7 @@ function isRootDomain(domainName) {
|
|
|
22907
22909
|
async function getDomainConfig(client, domainName) {
|
|
22908
22910
|
try {
|
|
22909
22911
|
const config = await client.fetch(
|
|
22910
|
-
`/
|
|
22912
|
+
`/v6/domains/${domainName}/config`
|
|
22911
22913
|
);
|
|
22912
22914
|
return config;
|
|
22913
22915
|
} catch (err) {
|
|
@@ -24590,7 +24592,7 @@ async function move(client, argv) {
|
|
|
24590
24592
|
}
|
|
24591
24593
|
const teams2 = await getTeams(client);
|
|
24592
24594
|
const matchId = await findDestinationMatch(destination, user, teams2);
|
|
24593
|
-
if (matchId && matchId === user.id && user.version === "northstar") {
|
|
24595
|
+
if (matchId && user && matchId === user.id && user.version === "northstar") {
|
|
24594
24596
|
output_manager_default.error(`You may not move your domain to your user account.`);
|
|
24595
24597
|
return 1;
|
|
24596
24598
|
}
|
|
@@ -24704,7 +24706,7 @@ async function getArgs(client, args) {
|
|
|
24704
24706
|
return { domainName, destination };
|
|
24705
24707
|
}
|
|
24706
24708
|
async function findDestinationMatch(destination, user, teams2) {
|
|
24707
|
-
if (user.id === destination || user.username === destination) {
|
|
24709
|
+
if (user && (user.id === destination || user.username === destination)) {
|
|
24708
24710
|
return user.id;
|
|
24709
24711
|
}
|
|
24710
24712
|
for (const team of teams2) {
|
|
@@ -54162,7 +54164,7 @@ async function metrics(client) {
|
|
|
54162
54164
|
return 0;
|
|
54163
54165
|
}
|
|
54164
54166
|
telemetry2.trackCliSubcommandSchema(subcommandOriginal);
|
|
54165
|
-
const schemaFn = (await import("./chunks/schema-
|
|
54167
|
+
const schemaFn = (await import("./chunks/schema-QDU3FPNC.js")).default;
|
|
54166
54168
|
return schemaFn(client, telemetry2);
|
|
54167
54169
|
}
|
|
54168
54170
|
default: {
|
|
@@ -54175,7 +54177,7 @@ async function metrics(client) {
|
|
|
54175
54177
|
output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
|
|
54176
54178
|
return 2;
|
|
54177
54179
|
}
|
|
54178
|
-
const queryFn = (await import("./chunks/query-
|
|
54180
|
+
const queryFn = (await import("./chunks/query-7MQN4S3S.js")).default;
|
|
54179
54181
|
return queryFn(client, telemetry2);
|
|
54180
54182
|
}
|
|
54181
54183
|
}
|
|
@@ -57427,6 +57429,7 @@ async function update4(client, argv) {
|
|
|
57427
57429
|
flags["--auto-detect"]
|
|
57428
57430
|
);
|
|
57429
57431
|
telemetry2.trackCliOptionFormat(flags["--format"]);
|
|
57432
|
+
telemetry2.trackCliFlagJson(flags["--json"]);
|
|
57430
57433
|
if (args.length > 1) {
|
|
57431
57434
|
return printUsageError(
|
|
57432
57435
|
client,
|
|
@@ -64876,7 +64879,7 @@ async function main26(client) {
|
|
|
64876
64879
|
return 2;
|
|
64877
64880
|
}
|
|
64878
64881
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
64879
|
-
return (await import("./chunks/edit-
|
|
64882
|
+
return (await import("./chunks/edit-VNVPLLF7.js")).default(client, args);
|
|
64880
64883
|
case "delete":
|
|
64881
64884
|
if (needHelp) {
|
|
64882
64885
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64884,7 +64887,7 @@ async function main26(client) {
|
|
|
64884
64887
|
return 2;
|
|
64885
64888
|
}
|
|
64886
64889
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
64887
|
-
return (await import("./chunks/delete-
|
|
64890
|
+
return (await import("./chunks/delete-ZWUWQT5H.js")).default(client, args);
|
|
64888
64891
|
case "enable":
|
|
64889
64892
|
if (needHelp) {
|
|
64890
64893
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64892,7 +64895,7 @@ async function main26(client) {
|
|
|
64892
64895
|
return 2;
|
|
64893
64896
|
}
|
|
64894
64897
|
telemetry2.trackCliSubcommandEnable(subcommandOriginal);
|
|
64895
|
-
return (await import("./chunks/enable-
|
|
64898
|
+
return (await import("./chunks/enable-L7ERJOO5.js")).default(client, args);
|
|
64896
64899
|
case "disable":
|
|
64897
64900
|
if (needHelp) {
|
|
64898
64901
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64900,7 +64903,7 @@ async function main26(client) {
|
|
|
64900
64903
|
return 2;
|
|
64901
64904
|
}
|
|
64902
64905
|
telemetry2.trackCliSubcommandDisable(subcommandOriginal);
|
|
64903
|
-
return (await import("./chunks/disable-
|
|
64906
|
+
return (await import("./chunks/disable-CJKTITTQ.js")).default(client, args);
|
|
64904
64907
|
case "reorder":
|
|
64905
64908
|
if (needHelp) {
|
|
64906
64909
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64908,7 +64911,7 @@ async function main26(client) {
|
|
|
64908
64911
|
return 2;
|
|
64909
64912
|
}
|
|
64910
64913
|
telemetry2.trackCliSubcommandReorder(subcommandOriginal);
|
|
64911
|
-
return (await import("./chunks/reorder-
|
|
64914
|
+
return (await import("./chunks/reorder-42YNZL7R.js")).default(client, args);
|
|
64912
64915
|
case "export":
|
|
64913
64916
|
if (needHelp) {
|
|
64914
64917
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64916,7 +64919,7 @@ async function main26(client) {
|
|
|
64916
64919
|
return 2;
|
|
64917
64920
|
}
|
|
64918
64921
|
telemetry2.trackCliSubcommandExport(subcommandOriginal);
|
|
64919
|
-
return (await import("./chunks/export-
|
|
64922
|
+
return (await import("./chunks/export-BDAKZGOD.js")).default(client, args);
|
|
64920
64923
|
case "publish":
|
|
64921
64924
|
if (needHelp) {
|
|
64922
64925
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64924,7 +64927,7 @@ async function main26(client) {
|
|
|
64924
64927
|
return 2;
|
|
64925
64928
|
}
|
|
64926
64929
|
telemetry2.trackCliSubcommandPublish(subcommandOriginal);
|
|
64927
|
-
return (await import("./chunks/publish-
|
|
64930
|
+
return (await import("./chunks/publish-7FXAFWWN.js")).default(client, args);
|
|
64928
64931
|
case "restore":
|
|
64929
64932
|
if (needHelp) {
|
|
64930
64933
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64932,7 +64935,7 @@ async function main26(client) {
|
|
|
64932
64935
|
return 2;
|
|
64933
64936
|
}
|
|
64934
64937
|
telemetry2.trackCliSubcommandRestore(subcommandOriginal);
|
|
64935
|
-
return (await import("./chunks/restore-
|
|
64938
|
+
return (await import("./chunks/restore-RCNRC3YJ.js")).default(client, args);
|
|
64936
64939
|
case "discard-staging":
|
|
64937
64940
|
if (needHelp) {
|
|
64938
64941
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64940,7 +64943,7 @@ async function main26(client) {
|
|
|
64940
64943
|
return 2;
|
|
64941
64944
|
}
|
|
64942
64945
|
telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
|
|
64943
|
-
return (await import("./chunks/discard-
|
|
64946
|
+
return (await import("./chunks/discard-ABXIPZHK.js")).default(client, args);
|
|
64944
64947
|
default:
|
|
64945
64948
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG45));
|
|
64946
64949
|
output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
|
|
@@ -69168,6 +69171,7 @@ async function usage(client) {
|
|
|
69168
69171
|
telemetry2.trackCliOptionFrom(fromFlag);
|
|
69169
69172
|
telemetry2.trackCliOptionTo(toFlag);
|
|
69170
69173
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
69174
|
+
telemetry2.trackCliFlagJson(parsedArgs.flags["--json"]);
|
|
69171
69175
|
telemetry2.trackCliOptionBreakdown(breakdownFlag);
|
|
69172
69176
|
telemetry2.trackCliOptionGroupBy(groupByFlag);
|
|
69173
69177
|
if (fromFlag) {
|
|
@@ -69681,37 +69685,37 @@ async function vcr(client) {
|
|
|
69681
69685
|
switch (subcommand) {
|
|
69682
69686
|
case "ls":
|
|
69683
69687
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
69684
|
-
return (await import("./chunks/ls-
|
|
69688
|
+
return (await import("./chunks/ls-ZG43UJTR.js")).default(client, args, telemetry2);
|
|
69685
69689
|
case "inspect":
|
|
69686
69690
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
69687
|
-
return (await import("./chunks/inspect-
|
|
69691
|
+
return (await import("./chunks/inspect-E6IHZHQI.js")).default(client, args, telemetry2);
|
|
69688
69692
|
case "add":
|
|
69689
69693
|
telemetry2.trackCliSubcommandAdd(subcommandOriginal);
|
|
69690
|
-
return (await import("./chunks/add-
|
|
69694
|
+
return (await import("./chunks/add-5NFS6DS7.js")).default(client, args, telemetry2);
|
|
69691
69695
|
case "config":
|
|
69692
69696
|
telemetry2.trackCliSubcommandConfig(subcommandOriginal);
|
|
69693
|
-
return (await import("./chunks/config-
|
|
69697
|
+
return (await import("./chunks/config-5D4R6677.js")).default(client, args, telemetry2);
|
|
69694
69698
|
case "rm":
|
|
69695
69699
|
telemetry2.trackCliSubcommandRm(subcommandOriginal);
|
|
69696
|
-
return (await import("./chunks/rm-
|
|
69700
|
+
return (await import("./chunks/rm-ODFQSS2C.js")).default(client, args, telemetry2);
|
|
69697
69701
|
case "login":
|
|
69698
69702
|
telemetry2.trackCliSubcommandLogin(subcommandOriginal);
|
|
69699
|
-
return (await import("./chunks/login-
|
|
69703
|
+
return (await import("./chunks/login-AVIFCN4G.js")).default(client, args, telemetry2);
|
|
69700
69704
|
case "build":
|
|
69701
69705
|
telemetry2.trackCliSubcommandBuild(subcommandOriginal);
|
|
69702
|
-
return (await import("./chunks/build-
|
|
69706
|
+
return (await import("./chunks/build-MF4TD2RD.js")).default(client, telemetry2);
|
|
69703
69707
|
case "push":
|
|
69704
69708
|
telemetry2.trackCliSubcommandPush(subcommandOriginal);
|
|
69705
|
-
return (await import("./chunks/push-
|
|
69709
|
+
return (await import("./chunks/push-3P3NKZEG.js")).default(client, telemetry2);
|
|
69706
69710
|
case "tag":
|
|
69707
69711
|
telemetry2.trackCliSubcommandTag(subcommandOriginal);
|
|
69708
|
-
return (await import("./chunks/tags-
|
|
69712
|
+
return (await import("./chunks/tags-WZBKHB6D.js")).default(client, args, telemetry2);
|
|
69709
69713
|
case "image":
|
|
69710
69714
|
telemetry2.trackCliSubcommandImage(subcommandOriginal);
|
|
69711
|
-
return (await import("./chunks/image-
|
|
69715
|
+
return (await import("./chunks/image-MGZR4VEH.js")).default(client, args, telemetry2);
|
|
69712
69716
|
case "permissions":
|
|
69713
69717
|
telemetry2.trackCliSubcommandPermissions(subcommandOriginal);
|
|
69714
|
-
return (await import("./chunks/permissions-
|
|
69718
|
+
return (await import("./chunks/permissions-BDINZ7RC.js")).default(client, args, telemetry2);
|
|
69715
69719
|
default:
|
|
69716
69720
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG51));
|
|
69717
69721
|
output_manager_default.print(help(vcrCommand, { columns: client.stderr.columns }));
|
|
@@ -70683,17 +70687,22 @@ async function whoami(client) {
|
|
|
70683
70687
|
const asJson = formatResult.jsonOutput;
|
|
70684
70688
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
70685
70689
|
const scope = await getScope(client, { resolveLocalScope: true });
|
|
70686
|
-
const { user, team, globalTeam } = scope;
|
|
70690
|
+
const { user, team, app, globalTeam } = scope;
|
|
70687
70691
|
const hasLocalOverride = !scope.explicitScopeProvided && ((team?.id ?? null) !== (globalTeam?.id ?? null) || // `team` being null while a local project linked to personal scope
|
|
70688
70692
|
// exists while a global team is selected is also a mismatch.
|
|
70689
70693
|
scope.scopeMismatch);
|
|
70690
70694
|
if (asJson) {
|
|
70691
70695
|
const jsonOutput = {
|
|
70692
|
-
username: user.username,
|
|
70693
|
-
email: user.email,
|
|
70694
|
-
name: user.name,
|
|
70695
70696
|
team: team ? { id: team.id, slug: team.slug, name: team.name } : null
|
|
70696
70697
|
};
|
|
70698
|
+
if (user) {
|
|
70699
|
+
jsonOutput.username = user.username;
|
|
70700
|
+
jsonOutput.email = user.email;
|
|
70701
|
+
jsonOutput.name = user.name;
|
|
70702
|
+
}
|
|
70703
|
+
if (app) {
|
|
70704
|
+
jsonOutput.app = app;
|
|
70705
|
+
}
|
|
70697
70706
|
if (hasLocalOverride) {
|
|
70698
70707
|
jsonOutput.localOverride = true;
|
|
70699
70708
|
jsonOutput.globalTeam = globalTeam ? { id: globalTeam.id, slug: globalTeam.slug, name: globalTeam.name } : null;
|
|
@@ -70701,7 +70710,7 @@ async function whoami(client) {
|
|
|
70701
70710
|
client.stdout.write(`${JSON.stringify(jsonOutput, null, 2)}
|
|
70702
70711
|
`);
|
|
70703
70712
|
} else if (client.stdout.isTTY) {
|
|
70704
|
-
output_manager_default.log(`Logged in as ${import_chalk248.default.bold(
|
|
70713
|
+
output_manager_default.log(`Logged in as ${import_chalk248.default.bold(formatUsername(scope))}`);
|
|
70705
70714
|
if (team) {
|
|
70706
70715
|
output_manager_default.log(
|
|
70707
70716
|
`Active team: ${import_chalk248.default.bold(team.slug)}${team.name && team.name !== team.slug ? ` (${team.name})` : ""}`
|
|
@@ -70721,11 +70730,20 @@ async function whoami(client) {
|
|
|
70721
70730
|
);
|
|
70722
70731
|
}
|
|
70723
70732
|
} else {
|
|
70724
|
-
client.stdout.write(`${
|
|
70733
|
+
client.stdout.write(`${formatUsername(scope)}
|
|
70725
70734
|
`);
|
|
70726
70735
|
}
|
|
70727
70736
|
return 0;
|
|
70728
70737
|
}
|
|
70738
|
+
function formatUsername(scope) {
|
|
70739
|
+
if (scope.user) {
|
|
70740
|
+
return scope.user.username;
|
|
70741
|
+
}
|
|
70742
|
+
if (scope.app) {
|
|
70743
|
+
return scope.app.id;
|
|
70744
|
+
}
|
|
70745
|
+
throw new Error(`Could not format principal identity`);
|
|
70746
|
+
}
|
|
70729
70747
|
export {
|
|
70730
70748
|
activity,
|
|
70731
70749
|
agent,
|