vercel 58.9.0 → 58.9.2
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-ZVQJE6BF.js → add-DDUZR2RD.js} +7 -7
- package/dist/chunks/{add-HFK7NUGY.js → add-LVQP3SR2.js} +2 -2
- package/dist/chunks/{add-EN4KBTT6.js → add-XZ2HRB22.js} +2 -2
- package/dist/chunks/{build-IDCBAC3R.js → build-L3WNBFT6.js} +2 -2
- package/dist/chunks/{chunk-FBG4AMAX.js → chunk-2Z66EK7E.js} +1 -1
- package/dist/chunks/{chunk-N22RS64U.js → chunk-3T3AIIEO.js} +2 -2
- package/dist/chunks/{chunk-Q6OJHDZK.js → chunk-446IAD7O.js} +1 -1
- package/dist/chunks/{chunk-CKIZU3CI.js → chunk-5LPWBMQG.js} +1 -1
- package/dist/chunks/{chunk-DQXBNALU.js → chunk-6YFPNNA5.js} +1 -1
- package/dist/chunks/{chunk-YTIUSEWE.js → chunk-74ZES62J.js} +1 -1
- package/dist/chunks/{chunk-WWPV6Z24.js → chunk-77FZZ73F.js} +4 -4
- package/dist/chunks/{chunk-7N26744Z.js → chunk-BW7BH66H.js} +1 -1
- package/dist/chunks/{chunk-TIBP3CPZ.js → chunk-CMS7PTFB.js} +1 -1
- package/dist/chunks/{chunk-2PPATWD6.js → chunk-DBMBKXZO.js} +1 -1
- package/dist/chunks/{chunk-YUISINFV.js → chunk-DGVJNQI3.js} +49 -62
- package/dist/chunks/{chunk-F45WFNLZ.js → chunk-DSJHGENE.js} +1 -1
- package/dist/chunks/{chunk-U6CTW37A.js → chunk-DZAP2FIC.js} +1 -1
- package/dist/chunks/{chunk-G2S2QKKF.js → chunk-EPAVMBXG.js} +2 -2
- package/dist/chunks/{chunk-BX4IGDGM.js → chunk-J23MTK5H.js} +212 -95
- package/dist/chunks/{chunk-V5P25P7F.js → chunk-JKQWQA2T.js} +17 -0
- package/dist/chunks/{chunk-E3DRV4WI.js → chunk-KIGRD7TV.js} +1 -1
- package/dist/chunks/{chunk-DDUZ2VME.js → chunk-QCDSQERI.js} +8 -6
- package/dist/chunks/{chunk-NFZHW6HH.js → chunk-QXXH6L46.js} +2 -2
- package/dist/chunks/{chunk-PNSWZSLC.js → chunk-R7FRJJSO.js} +2 -2
- package/dist/chunks/{chunk-766B6IIX.js → chunk-S6CMPUF4.js} +1 -1
- package/dist/chunks/{chunk-KES53W3V.js → chunk-YXFLKPDC.js} +7 -5
- package/dist/chunks/{chunk-QRRCK6VX.js → chunk-Z7LH63PK.js} +1 -1
- package/dist/chunks/{chunk-7AB6QOKM.js → chunk-Z7RSIWNT.js} +1 -1
- package/dist/chunks/{clear-W4AEVUND.js → clear-QD7QNE2X.js} +2 -2
- package/dist/chunks/{compile-vercel-config-Q45PSZDQ.js → compile-vercel-config-G46NO752.js} +1 -1
- package/dist/chunks/{config-MZ3KLGOK.js → config-MRWCWMFM.js} +2 -2
- package/dist/chunks/{delete-NAZTL2IK.js → delete-IJDA6IJT.js} +2 -2
- package/dist/chunks/{delete-7NADCRED.js → delete-THAK6PDA.js} +2 -2
- package/dist/chunks/{disable-SB224IIS.js → disable-XJLSQWDP.js} +2 -2
- package/dist/chunks/{discard-MME6PI7B.js → discard-MDTDXLPM.js} +2 -2
- package/dist/chunks/{edit-HKQEFIOY.js → edit-TBUQIBCG.js} +2 -2
- package/dist/chunks/{edit-NW4YBUR6.js → edit-XWMGSV5O.js} +3 -3
- package/dist/chunks/{enable-QEL5CXVD.js → enable-D4ZEFA7B.js} +2 -2
- package/dist/chunks/{export-XDOZTLG3.js → export-35THNYMQ.js} +2 -2
- package/dist/chunks/{image-AJMRAAOW.js → image-ONVF2WQF.js} +3 -3
- package/dist/chunks/{import-builders-7UG32FQA.js → import-builders-4PL2UTKQ.js} +2 -2
- package/dist/chunks/{inspect-JPZFHGAF.js → inspect-22HFUKUL.js} +2 -2
- package/dist/chunks/{inspect-T6HYEMLA.js → inspect-JPKI7TUF.js} +2 -2
- package/dist/chunks/{inspect-TW5DENBM.js → inspect-K5URFDTI.js} +2 -2
- package/dist/chunks/{inspect-DGBKWCS4.js → inspect-P2MVWGGX.js} +2 -2
- package/dist/chunks/{inspect-4YTOMOOP.js → inspect-UKWD7EKB.js} +3 -3
- package/dist/chunks/{list-ESW6P765.js → list-2GKTKNSP.js} +2 -2
- package/dist/chunks/{list-T7LXP6VX.js → list-QOKS7OXY.js} +16 -5
- package/dist/chunks/{list-YQ4LADLW.js → list-RTALDLVZ.js} +1 -1
- package/dist/chunks/{login-VJESL6WK.js → login-VTT2OSLJ.js} +2 -2
- package/dist/chunks/{ls-2DYO6E4E.js → ls-3XZ54CAA.js} +3 -3
- package/dist/chunks/{ls-4A6CGBPD.js → ls-4VTPS4H3.js} +2 -2
- package/dist/chunks/{ls-Y46O3BCS.js → ls-5FYZ5VEP.js} +2 -2
- package/dist/chunks/{ls-5I2W7LZQ.js → ls-6M25LDJ3.js} +2 -2
- package/dist/chunks/{ls-5AQBMBOG.js → ls-DPQN66HC.js} +2 -2
- package/dist/chunks/{open-SZDSII6L.js → open-LSQVBKRQ.js} +2 -2
- package/dist/chunks/{permissions-HRR47E2L.js → permissions-KHCRKKCJ.js} +4 -4
- package/dist/chunks/{publish-D2QWFUP4.js → publish-OQZQOC3A.js} +2 -2
- package/dist/chunks/{push-75R5ZZIW.js → push-O22DZTSK.js} +2 -2
- package/dist/chunks/{query-LL2GMJWQ.js → query-X2SX26DL.js} +1 -1
- package/dist/chunks/{reorder-GNCRV6CV.js → reorder-E53PSWXQ.js} +2 -2
- package/dist/chunks/{reply-S3UUI6C6.js → reply-NQD2F6SH.js} +2 -2
- package/dist/chunks/{resolve-PCBDK47N.js → resolve-6ZPARPEF.js} +2 -2
- package/dist/chunks/{restore-SXI5SHGJ.js → restore-UJYDYOZO.js} +2 -2
- package/dist/chunks/{rm-ZFWVI6JE.js → rm-5T3LQY2T.js} +3 -3
- package/dist/chunks/{rm-BEIAUTSF.js → rm-A6S57TZX.js} +2 -2
- package/dist/chunks/{rm-574XTDSM.js → rm-BYF6J53M.js} +2 -2
- package/dist/chunks/{rm-YK2EGEPB.js → rm-TCPTNK5O.js} +2 -2
- package/dist/chunks/{rule-inspect-QDQUU3EO.js → rule-inspect-Q7G2H534.js} +3 -3
- package/dist/chunks/{rules-FNA3NXZZ.js → rules-5EI4AZ2N.js} +6 -6
- package/dist/chunks/{schema-5CASPRP6.js → schema-CFEL4DGE.js} +1 -1
- package/dist/chunks/{tags-SRHDQUF6.js → tags-GWQZQY3Q.js} +2 -2
- package/dist/chunks/{update-FSTNM3OX.js → update-SHTZVWMD.js} +7 -7
- package/dist/commands/build/index.js +9 -9
- package/dist/commands/deploy/index.js +10 -10
- package/dist/commands/dev/index.js +57 -34
- 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 +88 -69
- package/dist/index.js +66 -59
- package/dist/version.mjs +1 -1
- package/package.json +47 -47
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-DSJHGENE.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-74ZES62J.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-YXFLKPDC.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-DZAP2FIC.js";
|
|
99
99
|
import {
|
|
100
100
|
Now,
|
|
101
101
|
addDomain,
|
|
@@ -116,19 +116,20 @@ import {
|
|
|
116
116
|
require_cjs,
|
|
117
117
|
require_jsonlines,
|
|
118
118
|
setupDomain
|
|
119
|
-
} from "./chunks/chunk-
|
|
119
|
+
} from "./chunks/chunk-QCDSQERI.js";
|
|
120
120
|
import {
|
|
121
121
|
require_format
|
|
122
122
|
} from "./chunks/chunk-PRWJUY5U.js";
|
|
123
123
|
import "./chunks/chunk-I2XE3GMB.js";
|
|
124
124
|
import {
|
|
125
|
-
getGlobalPathConfig,
|
|
126
125
|
persistAuthConfig,
|
|
127
126
|
readLocalConfig,
|
|
128
127
|
sleep,
|
|
129
128
|
writeToConfigFile
|
|
130
|
-
} from "./chunks/chunk-
|
|
131
|
-
import
|
|
129
|
+
} from "./chunks/chunk-DGVJNQI3.js";
|
|
130
|
+
import {
|
|
131
|
+
getGlobalPathConfig
|
|
132
|
+
} from "./chunks/chunk-JKQWQA2T.js";
|
|
132
133
|
import {
|
|
133
134
|
CHECKBOX_INSTRUCTIONS,
|
|
134
135
|
ellipsis,
|
|
@@ -155,7 +156,7 @@ import {
|
|
|
155
156
|
import {
|
|
156
157
|
formatEnvironment,
|
|
157
158
|
validateLsArgs
|
|
158
|
-
} from "./chunks/chunk-
|
|
159
|
+
} from "./chunks/chunk-5LPWBMQG.js";
|
|
159
160
|
import {
|
|
160
161
|
validateJsonOutput
|
|
161
162
|
} from "./chunks/chunk-KXDWXXJH.js";
|
|
@@ -465,7 +466,7 @@ import {
|
|
|
465
466
|
webAnalyticsSubcommand,
|
|
466
467
|
webhooksCommand,
|
|
467
468
|
whoamiCommand
|
|
468
|
-
} from "./chunks/chunk-
|
|
469
|
+
} from "./chunks/chunk-QXXH6L46.js";
|
|
469
470
|
import {
|
|
470
471
|
addSubcommand as addSubcommand12,
|
|
471
472
|
buildSubcommand,
|
|
@@ -551,9 +552,9 @@ import {
|
|
|
551
552
|
dump,
|
|
552
553
|
load,
|
|
553
554
|
main
|
|
554
|
-
} from "./chunks/chunk-
|
|
555
|
+
} from "./chunks/chunk-77FZZ73F.js";
|
|
555
556
|
import "./chunks/chunk-IB5L4LKZ.js";
|
|
556
|
-
import "./chunks/chunk-
|
|
557
|
+
import "./chunks/chunk-S6CMPUF4.js";
|
|
557
558
|
import {
|
|
558
559
|
require_execa
|
|
559
560
|
} from "./chunks/chunk-R6IGDGX3.js";
|
|
@@ -568,10 +569,10 @@ import {
|
|
|
568
569
|
} from "./chunks/chunk-VXYGCOKL.js";
|
|
569
570
|
import {
|
|
570
571
|
ensureLink
|
|
571
|
-
} from "./chunks/chunk-
|
|
572
|
-
import "./chunks/chunk-
|
|
573
|
-
import "./chunks/chunk-
|
|
574
|
-
import "./chunks/chunk-
|
|
572
|
+
} from "./chunks/chunk-3T3AIIEO.js";
|
|
573
|
+
import "./chunks/chunk-R7FRJJSO.js";
|
|
574
|
+
import "./chunks/chunk-Z7RSIWNT.js";
|
|
575
|
+
import "./chunks/chunk-2Z66EK7E.js";
|
|
575
576
|
import {
|
|
576
577
|
help
|
|
577
578
|
} from "./chunks/chunk-ZX2FSPWV.js";
|
|
@@ -634,7 +635,7 @@ import {
|
|
|
634
635
|
selectOrg,
|
|
635
636
|
toHost,
|
|
636
637
|
ua_default
|
|
637
|
-
} from "./chunks/chunk-
|
|
638
|
+
} from "./chunks/chunk-J23MTK5H.js";
|
|
638
639
|
import {
|
|
639
640
|
TelemetryClient
|
|
640
641
|
} from "./chunks/chunk-ECCWJHC6.js";
|
|
@@ -2478,7 +2479,7 @@ async function activity(client) {
|
|
|
2478
2479
|
return 0;
|
|
2479
2480
|
}
|
|
2480
2481
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
2481
|
-
const listFn = (await import("./chunks/list-
|
|
2482
|
+
const listFn = (await import("./chunks/list-RTALDLVZ.js")).default;
|
|
2482
2483
|
return listFn(client, telemetry2);
|
|
2483
2484
|
}
|
|
2484
2485
|
}
|
|
@@ -5166,7 +5167,7 @@ async function writeConfigFile(path3, content, mode) {
|
|
|
5166
5167
|
}
|
|
5167
5168
|
|
|
5168
5169
|
// src/util/ai-gateway/coding-agents/gateway.ts
|
|
5169
|
-
var
|
|
5170
|
+
var GATEWAY_CODING_AGENT_BASE_URL = "https://ai-gateway.vercel.sh/coding-agent/v1";
|
|
5170
5171
|
var GATEWAY_CODEX_BASE_URL = "https://ai-gateway.vercel.sh/codex/v1";
|
|
5171
5172
|
var GATEWAY_CLAUDE_CODE_BASE_URL = "https://ai-gateway.vercel.sh/claude-code";
|
|
5172
5173
|
var GATEWAY_API_KEY_ENV = "AI_GATEWAY_API_KEY";
|
|
@@ -5730,7 +5731,6 @@ var codex = {
|
|
|
5730
5731
|
|
|
5731
5732
|
// src/util/ai-gateway/coding-agents/agents/cursor.ts
|
|
5732
5733
|
import { join as join7 } from "path";
|
|
5733
|
-
var CURSOR_BASE_URL = "https://ai-gateway.vercel.sh/v1/cursor";
|
|
5734
5734
|
var cursor = {
|
|
5735
5735
|
id: "cursor",
|
|
5736
5736
|
displayName: "Cursor",
|
|
@@ -5748,7 +5748,7 @@ var cursor = {
|
|
|
5748
5748
|
notes: [
|
|
5749
5749
|
"Cursor keeps its API-key settings in the app itself, so finish the setup there:",
|
|
5750
5750
|
"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 ??
|
|
5751
|
+
`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
5752
|
'3. Copy the key from a new terminal without echoing it: printf %s "$AI_GATEWAY_API_KEY" | pbcopy',
|
|
5753
5753
|
'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
5754
|
"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 +5777,7 @@ var hermes = {
|
|
|
5777
5777
|
},
|
|
5778
5778
|
buildPlan(ctx) {
|
|
5779
5779
|
const path3 = this.configPath(ctx);
|
|
5780
|
-
const api2 = ctx.baseUrlOverride ??
|
|
5780
|
+
const api2 = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5781
5781
|
return {
|
|
5782
5782
|
fileChanges: [
|
|
5783
5783
|
{
|
|
@@ -5832,7 +5832,7 @@ var kilo = {
|
|
|
5832
5832
|
},
|
|
5833
5833
|
buildPlan(ctx) {
|
|
5834
5834
|
const path3 = this.configPath(ctx);
|
|
5835
|
-
const baseURL = ctx.baseUrlOverride ??
|
|
5835
|
+
const baseURL = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5836
5836
|
return {
|
|
5837
5837
|
fileChanges: [
|
|
5838
5838
|
{
|
|
@@ -5882,7 +5882,7 @@ var openclaw = {
|
|
|
5882
5882
|
},
|
|
5883
5883
|
buildPlan(ctx) {
|
|
5884
5884
|
const path3 = this.configPath(ctx);
|
|
5885
|
-
const baseUrl = ctx.baseUrlOverride ??
|
|
5885
|
+
const baseUrl = ctx.baseUrlOverride ?? GATEWAY_CODING_AGENT_BASE_URL;
|
|
5886
5886
|
return {
|
|
5887
5887
|
fileChanges: [
|
|
5888
5888
|
{
|
|
@@ -9325,17 +9325,17 @@ ${extra}` : helpOutput);
|
|
|
9325
9325
|
switch (subcommand) {
|
|
9326
9326
|
case "inspect": {
|
|
9327
9327
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
9328
|
-
const inspectFn = (await import("./chunks/inspect-
|
|
9328
|
+
const inspectFn = (await import("./chunks/inspect-22HFUKUL.js")).default;
|
|
9329
9329
|
return inspectFn(client, rawSubcommandArgs);
|
|
9330
9330
|
}
|
|
9331
9331
|
case "rules": {
|
|
9332
9332
|
telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
|
|
9333
|
-
const rulesFn = (await import("./chunks/rules-
|
|
9333
|
+
const rulesFn = (await import("./chunks/rules-5EI4AZ2N.js")).default;
|
|
9334
9334
|
return rulesFn(client, rawSubcommandArgs);
|
|
9335
9335
|
}
|
|
9336
9336
|
default: {
|
|
9337
9337
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
9338
|
-
const listFn = (await import("./chunks/list-
|
|
9338
|
+
const listFn = (await import("./chunks/list-2GKTKNSP.js")).default;
|
|
9339
9339
|
return listFn(client, telemetry2);
|
|
9340
9340
|
}
|
|
9341
9341
|
}
|
|
@@ -9768,7 +9768,9 @@ async function fetchDeploymentsByAppName(client, appName) {
|
|
|
9768
9768
|
async function getAppLastDeployment(client, appName, user, contextName) {
|
|
9769
9769
|
output_manager_default.debug(`Looking for deployments matching app ${appName}`);
|
|
9770
9770
|
const deployments = await fetchDeploymentsByAppName(client, appName);
|
|
9771
|
-
const deploymentItem = deployments.sort((a, b) => b.created - a.created).filter(
|
|
9771
|
+
const deploymentItem = deployments.sort((a, b) => b.created - a.created).filter(
|
|
9772
|
+
(dep) => dep.state === "READY" && (!user || dep.creator.uid === user.id)
|
|
9773
|
+
)[0];
|
|
9772
9774
|
if (deploymentItem) {
|
|
9773
9775
|
return await getDeployment(client, contextName, deploymentItem.uid);
|
|
9774
9776
|
}
|
|
@@ -14699,43 +14701,43 @@ async function comments(client) {
|
|
|
14699
14701
|
if (handleHelp(inspectSubcommand4))
|
|
14700
14702
|
return 0;
|
|
14701
14703
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
14702
|
-
return (await import("./chunks/inspect-
|
|
14704
|
+
return (await import("./chunks/inspect-UKWD7EKB.js")).default(client, telemetry2);
|
|
14703
14705
|
}
|
|
14704
14706
|
case "open": {
|
|
14705
14707
|
if (handleHelp(openSubcommand))
|
|
14706
14708
|
return 0;
|
|
14707
14709
|
telemetry2.trackCliSubcommandOpen(subcommandOriginal);
|
|
14708
|
-
return (await import("./chunks/open-
|
|
14710
|
+
return (await import("./chunks/open-LSQVBKRQ.js")).default(client, telemetry2);
|
|
14709
14711
|
}
|
|
14710
14712
|
case "reply": {
|
|
14711
14713
|
if (handleHelp(replySubcommand))
|
|
14712
14714
|
return 0;
|
|
14713
14715
|
telemetry2.trackCliSubcommandReply(subcommandOriginal);
|
|
14714
|
-
return (await import("./chunks/reply-
|
|
14716
|
+
return (await import("./chunks/reply-NQD2F6SH.js")).default(client, telemetry2);
|
|
14715
14717
|
}
|
|
14716
14718
|
case "resolve": {
|
|
14717
14719
|
if (handleHelp(resolveSubcommand))
|
|
14718
14720
|
return 0;
|
|
14719
14721
|
telemetry2.trackCliSubcommandResolve(subcommandOriginal);
|
|
14720
|
-
return (await import("./chunks/resolve-
|
|
14722
|
+
return (await import("./chunks/resolve-6ZPARPEF.js")).default(client, telemetry2, true);
|
|
14721
14723
|
}
|
|
14722
14724
|
case "reopen": {
|
|
14723
14725
|
if (handleHelp(reopenSubcommand))
|
|
14724
14726
|
return 0;
|
|
14725
14727
|
telemetry2.trackCliSubcommandReopen(subcommandOriginal);
|
|
14726
|
-
return (await import("./chunks/resolve-
|
|
14728
|
+
return (await import("./chunks/resolve-6ZPARPEF.js")).default(client, telemetry2, false);
|
|
14727
14729
|
}
|
|
14728
14730
|
case "edit": {
|
|
14729
14731
|
if (handleHelp(editSubcommand))
|
|
14730
14732
|
return 0;
|
|
14731
14733
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
14732
|
-
return (await import("./chunks/edit-
|
|
14734
|
+
return (await import("./chunks/edit-TBUQIBCG.js")).default(client, telemetry2);
|
|
14733
14735
|
}
|
|
14734
14736
|
case "delete": {
|
|
14735
14737
|
if (handleHelp(deleteSubcommand))
|
|
14736
14738
|
return 0;
|
|
14737
14739
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
14738
|
-
return (await import("./chunks/delete-
|
|
14740
|
+
return (await import("./chunks/delete-IJDA6IJT.js")).default(client, telemetry2);
|
|
14739
14741
|
}
|
|
14740
14742
|
default: {
|
|
14741
14743
|
if (needHelp) {
|
|
@@ -14751,7 +14753,7 @@ async function comments(client) {
|
|
|
14751
14753
|
}
|
|
14752
14754
|
telemetry2.trackCliSubcommandList(subcommandOriginal);
|
|
14753
14755
|
const defaultInvocation = subcommandOriginal === "default";
|
|
14754
|
-
return (await import("./chunks/list-
|
|
14756
|
+
return (await import("./chunks/list-QOKS7OXY.js")).default(
|
|
14755
14757
|
client,
|
|
14756
14758
|
telemetry2,
|
|
14757
14759
|
defaultInvocation
|
|
@@ -18363,6 +18365,7 @@ async function contract(client) {
|
|
|
18363
18365
|
}
|
|
18364
18366
|
const asJson = formatResult.jsonOutput;
|
|
18365
18367
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
18368
|
+
telemetry2.trackCliFlagJson(parsedArgs.flags["--json"]);
|
|
18366
18369
|
let contextName;
|
|
18367
18370
|
let teamId;
|
|
18368
18371
|
try {
|
|
@@ -20507,7 +20510,7 @@ async function getDeploymentUrlAndToken(client, commandName, path3, options) {
|
|
|
20507
20510
|
}
|
|
20508
20511
|
let baseUrl;
|
|
20509
20512
|
if (deploymentFlag) {
|
|
20510
|
-
const accountId = scope.team?.id || scope.user
|
|
20513
|
+
const accountId = scope.team?.id || scope.user?.id;
|
|
20511
20514
|
const isDirectUrl = deploymentFlag.startsWith("http://") || deploymentFlag.startsWith("https://") || deploymentFlag.includes("vercel.app");
|
|
20512
20515
|
const requestedBaseUrl = isDirectUrl ? await getDeploymentUrlById(client, deploymentFlag, accountId) : null;
|
|
20513
20516
|
const deploymentSelector = deploymentFlag.includes(".") || deploymentFlag.startsWith("dpl_") ? deploymentFlag : `dpl_${deploymentFlag}`;
|
|
@@ -22509,7 +22512,7 @@ async function ls5(client, argv) {
|
|
|
22509
22512
|
const data = await getDomainDNSRecords(
|
|
22510
22513
|
client,
|
|
22511
22514
|
domainName,
|
|
22512
|
-
|
|
22515
|
+
5,
|
|
22513
22516
|
...paginationOptions
|
|
22514
22517
|
);
|
|
22515
22518
|
if (data instanceof DomainNotFound) {
|
|
@@ -22907,7 +22910,7 @@ function isRootDomain(domainName) {
|
|
|
22907
22910
|
async function getDomainConfig(client, domainName) {
|
|
22908
22911
|
try {
|
|
22909
22912
|
const config = await client.fetch(
|
|
22910
|
-
`/
|
|
22913
|
+
`/v6/domains/${domainName}/config`
|
|
22911
22914
|
);
|
|
22912
22915
|
return config;
|
|
22913
22916
|
} catch (err) {
|
|
@@ -24590,7 +24593,7 @@ async function move(client, argv) {
|
|
|
24590
24593
|
}
|
|
24591
24594
|
const teams2 = await getTeams(client);
|
|
24592
24595
|
const matchId = await findDestinationMatch(destination, user, teams2);
|
|
24593
|
-
if (matchId && matchId === user.id && user.version === "northstar") {
|
|
24596
|
+
if (matchId && user && matchId === user.id && user.version === "northstar") {
|
|
24594
24597
|
output_manager_default.error(`You may not move your domain to your user account.`);
|
|
24595
24598
|
return 1;
|
|
24596
24599
|
}
|
|
@@ -24704,7 +24707,7 @@ async function getArgs(client, args) {
|
|
|
24704
24707
|
return { domainName, destination };
|
|
24705
24708
|
}
|
|
24706
24709
|
async function findDestinationMatch(destination, user, teams2) {
|
|
24707
|
-
if (user.id === destination || user.username === destination) {
|
|
24710
|
+
if (user && (user.id === destination || user.username === destination)) {
|
|
24708
24711
|
return user.id;
|
|
24709
24712
|
}
|
|
24710
24713
|
for (const team of teams2) {
|
|
@@ -54162,7 +54165,7 @@ async function metrics(client) {
|
|
|
54162
54165
|
return 0;
|
|
54163
54166
|
}
|
|
54164
54167
|
telemetry2.trackCliSubcommandSchema(subcommandOriginal);
|
|
54165
|
-
const schemaFn = (await import("./chunks/schema-
|
|
54168
|
+
const schemaFn = (await import("./chunks/schema-CFEL4DGE.js")).default;
|
|
54166
54169
|
return schemaFn(client, telemetry2);
|
|
54167
54170
|
}
|
|
54168
54171
|
default: {
|
|
@@ -54175,7 +54178,7 @@ async function metrics(client) {
|
|
|
54175
54178
|
output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
|
|
54176
54179
|
return 2;
|
|
54177
54180
|
}
|
|
54178
|
-
const queryFn = (await import("./chunks/query-
|
|
54181
|
+
const queryFn = (await import("./chunks/query-X2SX26DL.js")).default;
|
|
54179
54182
|
return queryFn(client, telemetry2);
|
|
54180
54183
|
}
|
|
54181
54184
|
}
|
|
@@ -57427,6 +57430,7 @@ async function update4(client, argv) {
|
|
|
57427
57430
|
flags["--auto-detect"]
|
|
57428
57431
|
);
|
|
57429
57432
|
telemetry2.trackCliOptionFormat(flags["--format"]);
|
|
57433
|
+
telemetry2.trackCliFlagJson(flags["--json"]);
|
|
57430
57434
|
if (args.length > 1) {
|
|
57431
57435
|
return printUsageError(
|
|
57432
57436
|
client,
|
|
@@ -64876,7 +64880,7 @@ async function main26(client) {
|
|
|
64876
64880
|
return 2;
|
|
64877
64881
|
}
|
|
64878
64882
|
telemetry2.trackCliSubcommandEdit(subcommandOriginal);
|
|
64879
|
-
return (await import("./chunks/edit-
|
|
64883
|
+
return (await import("./chunks/edit-XWMGSV5O.js")).default(client, args);
|
|
64880
64884
|
case "delete":
|
|
64881
64885
|
if (needHelp) {
|
|
64882
64886
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64884,7 +64888,7 @@ async function main26(client) {
|
|
|
64884
64888
|
return 2;
|
|
64885
64889
|
}
|
|
64886
64890
|
telemetry2.trackCliSubcommandDelete(subcommandOriginal);
|
|
64887
|
-
return (await import("./chunks/delete-
|
|
64891
|
+
return (await import("./chunks/delete-THAK6PDA.js")).default(client, args);
|
|
64888
64892
|
case "enable":
|
|
64889
64893
|
if (needHelp) {
|
|
64890
64894
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64892,7 +64896,7 @@ async function main26(client) {
|
|
|
64892
64896
|
return 2;
|
|
64893
64897
|
}
|
|
64894
64898
|
telemetry2.trackCliSubcommandEnable(subcommandOriginal);
|
|
64895
|
-
return (await import("./chunks/enable-
|
|
64899
|
+
return (await import("./chunks/enable-D4ZEFA7B.js")).default(client, args);
|
|
64896
64900
|
case "disable":
|
|
64897
64901
|
if (needHelp) {
|
|
64898
64902
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64900,7 +64904,7 @@ async function main26(client) {
|
|
|
64900
64904
|
return 2;
|
|
64901
64905
|
}
|
|
64902
64906
|
telemetry2.trackCliSubcommandDisable(subcommandOriginal);
|
|
64903
|
-
return (await import("./chunks/disable-
|
|
64907
|
+
return (await import("./chunks/disable-XJLSQWDP.js")).default(client, args);
|
|
64904
64908
|
case "reorder":
|
|
64905
64909
|
if (needHelp) {
|
|
64906
64910
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64908,7 +64912,7 @@ async function main26(client) {
|
|
|
64908
64912
|
return 2;
|
|
64909
64913
|
}
|
|
64910
64914
|
telemetry2.trackCliSubcommandReorder(subcommandOriginal);
|
|
64911
|
-
return (await import("./chunks/reorder-
|
|
64915
|
+
return (await import("./chunks/reorder-E53PSWXQ.js")).default(client, args);
|
|
64912
64916
|
case "export":
|
|
64913
64917
|
if (needHelp) {
|
|
64914
64918
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64916,7 +64920,7 @@ async function main26(client) {
|
|
|
64916
64920
|
return 2;
|
|
64917
64921
|
}
|
|
64918
64922
|
telemetry2.trackCliSubcommandExport(subcommandOriginal);
|
|
64919
|
-
return (await import("./chunks/export-
|
|
64923
|
+
return (await import("./chunks/export-35THNYMQ.js")).default(client, args);
|
|
64920
64924
|
case "publish":
|
|
64921
64925
|
if (needHelp) {
|
|
64922
64926
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64924,7 +64928,7 @@ async function main26(client) {
|
|
|
64924
64928
|
return 2;
|
|
64925
64929
|
}
|
|
64926
64930
|
telemetry2.trackCliSubcommandPublish(subcommandOriginal);
|
|
64927
|
-
return (await import("./chunks/publish-
|
|
64931
|
+
return (await import("./chunks/publish-OQZQOC3A.js")).default(client, args);
|
|
64928
64932
|
case "restore":
|
|
64929
64933
|
if (needHelp) {
|
|
64930
64934
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64932,7 +64936,7 @@ async function main26(client) {
|
|
|
64932
64936
|
return 2;
|
|
64933
64937
|
}
|
|
64934
64938
|
telemetry2.trackCliSubcommandRestore(subcommandOriginal);
|
|
64935
|
-
return (await import("./chunks/restore-
|
|
64939
|
+
return (await import("./chunks/restore-UJYDYOZO.js")).default(client, args);
|
|
64936
64940
|
case "discard-staging":
|
|
64937
64941
|
if (needHelp) {
|
|
64938
64942
|
telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
|
|
@@ -64940,7 +64944,7 @@ async function main26(client) {
|
|
|
64940
64944
|
return 2;
|
|
64941
64945
|
}
|
|
64942
64946
|
telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
|
|
64943
|
-
return (await import("./chunks/discard-
|
|
64947
|
+
return (await import("./chunks/discard-MDTDXLPM.js")).default(client, args);
|
|
64944
64948
|
default:
|
|
64945
64949
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG45));
|
|
64946
64950
|
output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
|
|
@@ -69168,6 +69172,7 @@ async function usage(client) {
|
|
|
69168
69172
|
telemetry2.trackCliOptionFrom(fromFlag);
|
|
69169
69173
|
telemetry2.trackCliOptionTo(toFlag);
|
|
69170
69174
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
69175
|
+
telemetry2.trackCliFlagJson(parsedArgs.flags["--json"]);
|
|
69171
69176
|
telemetry2.trackCliOptionBreakdown(breakdownFlag);
|
|
69172
69177
|
telemetry2.trackCliOptionGroupBy(groupByFlag);
|
|
69173
69178
|
if (fromFlag) {
|
|
@@ -69681,37 +69686,37 @@ async function vcr(client) {
|
|
|
69681
69686
|
switch (subcommand) {
|
|
69682
69687
|
case "ls":
|
|
69683
69688
|
telemetry2.trackCliSubcommandLs(subcommandOriginal);
|
|
69684
|
-
return (await import("./chunks/ls-
|
|
69689
|
+
return (await import("./chunks/ls-6M25LDJ3.js")).default(client, args, telemetry2);
|
|
69685
69690
|
case "inspect":
|
|
69686
69691
|
telemetry2.trackCliSubcommandInspect(subcommandOriginal);
|
|
69687
|
-
return (await import("./chunks/inspect-
|
|
69692
|
+
return (await import("./chunks/inspect-K5URFDTI.js")).default(client, args, telemetry2);
|
|
69688
69693
|
case "add":
|
|
69689
69694
|
telemetry2.trackCliSubcommandAdd(subcommandOriginal);
|
|
69690
|
-
return (await import("./chunks/add-
|
|
69695
|
+
return (await import("./chunks/add-XZ2HRB22.js")).default(client, args, telemetry2);
|
|
69691
69696
|
case "config":
|
|
69692
69697
|
telemetry2.trackCliSubcommandConfig(subcommandOriginal);
|
|
69693
|
-
return (await import("./chunks/config-
|
|
69698
|
+
return (await import("./chunks/config-MRWCWMFM.js")).default(client, args, telemetry2);
|
|
69694
69699
|
case "rm":
|
|
69695
69700
|
telemetry2.trackCliSubcommandRm(subcommandOriginal);
|
|
69696
|
-
return (await import("./chunks/rm-
|
|
69701
|
+
return (await import("./chunks/rm-A6S57TZX.js")).default(client, args, telemetry2);
|
|
69697
69702
|
case "login":
|
|
69698
69703
|
telemetry2.trackCliSubcommandLogin(subcommandOriginal);
|
|
69699
|
-
return (await import("./chunks/login-
|
|
69704
|
+
return (await import("./chunks/login-VTT2OSLJ.js")).default(client, args, telemetry2);
|
|
69700
69705
|
case "build":
|
|
69701
69706
|
telemetry2.trackCliSubcommandBuild(subcommandOriginal);
|
|
69702
|
-
return (await import("./chunks/build-
|
|
69707
|
+
return (await import("./chunks/build-L3WNBFT6.js")).default(client, telemetry2);
|
|
69703
69708
|
case "push":
|
|
69704
69709
|
telemetry2.trackCliSubcommandPush(subcommandOriginal);
|
|
69705
|
-
return (await import("./chunks/push-
|
|
69710
|
+
return (await import("./chunks/push-O22DZTSK.js")).default(client, telemetry2);
|
|
69706
69711
|
case "tag":
|
|
69707
69712
|
telemetry2.trackCliSubcommandTag(subcommandOriginal);
|
|
69708
|
-
return (await import("./chunks/tags-
|
|
69713
|
+
return (await import("./chunks/tags-GWQZQY3Q.js")).default(client, args, telemetry2);
|
|
69709
69714
|
case "image":
|
|
69710
69715
|
telemetry2.trackCliSubcommandImage(subcommandOriginal);
|
|
69711
|
-
return (await import("./chunks/image-
|
|
69716
|
+
return (await import("./chunks/image-ONVF2WQF.js")).default(client, args, telemetry2);
|
|
69712
69717
|
case "permissions":
|
|
69713
69718
|
telemetry2.trackCliSubcommandPermissions(subcommandOriginal);
|
|
69714
|
-
return (await import("./chunks/permissions-
|
|
69719
|
+
return (await import("./chunks/permissions-KHCRKKCJ.js")).default(client, args, telemetry2);
|
|
69715
69720
|
default:
|
|
69716
69721
|
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG51));
|
|
69717
69722
|
output_manager_default.print(help(vcrCommand, { columns: client.stderr.columns }));
|
|
@@ -70683,17 +70688,22 @@ async function whoami(client) {
|
|
|
70683
70688
|
const asJson = formatResult.jsonOutput;
|
|
70684
70689
|
telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
|
|
70685
70690
|
const scope = await getScope(client, { resolveLocalScope: true });
|
|
70686
|
-
const { user, team, globalTeam } = scope;
|
|
70691
|
+
const { user, team, app, globalTeam } = scope;
|
|
70687
70692
|
const hasLocalOverride = !scope.explicitScopeProvided && ((team?.id ?? null) !== (globalTeam?.id ?? null) || // `team` being null while a local project linked to personal scope
|
|
70688
70693
|
// exists while a global team is selected is also a mismatch.
|
|
70689
70694
|
scope.scopeMismatch);
|
|
70690
70695
|
if (asJson) {
|
|
70691
70696
|
const jsonOutput = {
|
|
70692
|
-
username: user.username,
|
|
70693
|
-
email: user.email,
|
|
70694
|
-
name: user.name,
|
|
70695
70697
|
team: team ? { id: team.id, slug: team.slug, name: team.name } : null
|
|
70696
70698
|
};
|
|
70699
|
+
if (user) {
|
|
70700
|
+
jsonOutput.username = user.username;
|
|
70701
|
+
jsonOutput.email = user.email;
|
|
70702
|
+
jsonOutput.name = user.name;
|
|
70703
|
+
}
|
|
70704
|
+
if (app) {
|
|
70705
|
+
jsonOutput.app = app;
|
|
70706
|
+
}
|
|
70697
70707
|
if (hasLocalOverride) {
|
|
70698
70708
|
jsonOutput.localOverride = true;
|
|
70699
70709
|
jsonOutput.globalTeam = globalTeam ? { id: globalTeam.id, slug: globalTeam.slug, name: globalTeam.name } : null;
|
|
@@ -70701,7 +70711,7 @@ async function whoami(client) {
|
|
|
70701
70711
|
client.stdout.write(`${JSON.stringify(jsonOutput, null, 2)}
|
|
70702
70712
|
`);
|
|
70703
70713
|
} else if (client.stdout.isTTY) {
|
|
70704
|
-
output_manager_default.log(`Logged in as ${import_chalk248.default.bold(
|
|
70714
|
+
output_manager_default.log(`Logged in as ${import_chalk248.default.bold(formatUsername(scope))}`);
|
|
70705
70715
|
if (team) {
|
|
70706
70716
|
output_manager_default.log(
|
|
70707
70717
|
`Active team: ${import_chalk248.default.bold(team.slug)}${team.name && team.name !== team.slug ? ` (${team.name})` : ""}`
|
|
@@ -70721,11 +70731,20 @@ async function whoami(client) {
|
|
|
70721
70731
|
);
|
|
70722
70732
|
}
|
|
70723
70733
|
} else {
|
|
70724
|
-
client.stdout.write(`${
|
|
70734
|
+
client.stdout.write(`${formatUsername(scope)}
|
|
70725
70735
|
`);
|
|
70726
70736
|
}
|
|
70727
70737
|
return 0;
|
|
70728
70738
|
}
|
|
70739
|
+
function formatUsername(scope) {
|
|
70740
|
+
if (scope.user) {
|
|
70741
|
+
return scope.user.username;
|
|
70742
|
+
}
|
|
70743
|
+
if (scope.app) {
|
|
70744
|
+
return scope.app.id;
|
|
70745
|
+
}
|
|
70746
|
+
throw new Error(`Could not format principal identity`);
|
|
70747
|
+
}
|
|
70729
70748
|
export {
|
|
70730
70749
|
activity,
|
|
70731
70750
|
agent,
|