Auth: print copyable Google auth URL (#1787)
Co-authored-by: Robby <robbyczgw-cla@users.noreply.github.com>
This commit is contained in:
@@ -17,6 +17,7 @@ Status: unreleased.
|
|||||||
- Update: ignore dist/control-ui for dirty checks and restore after ui builds. (#1976) Thanks @Glucksberg.
|
- Update: ignore dist/control-ui for dirty checks and restore after ui builds. (#1976) Thanks @Glucksberg.
|
||||||
- Telegram: allow caption param for media sends. (#1888) Thanks @mguellsegarra.
|
- Telegram: allow caption param for media sends. (#1888) Thanks @mguellsegarra.
|
||||||
- Telegram: avoid block replies when streaming is disabled. (#1885) Thanks @ivancasco.
|
- Telegram: avoid block replies when streaming is disabled. (#1885) Thanks @ivancasco.
|
||||||
|
- Auth: show copyable Google auth URL after ASCII prompt. (#1787) Thanks @robbyczgw-cla.
|
||||||
|
|
||||||
## 2026.1.24-3
|
## 2026.1.24-3
|
||||||
|
|
||||||
|
|||||||
@@ -281,6 +281,7 @@ async function loginAntigravity(params: {
|
|||||||
openUrl: (url: string) => Promise<void>;
|
openUrl: (url: string) => Promise<void>;
|
||||||
prompt: (message: string) => Promise<string>;
|
prompt: (message: string) => Promise<string>;
|
||||||
note: (message: string, title?: string) => Promise<void>;
|
note: (message: string, title?: string) => Promise<void>;
|
||||||
|
log: (message: string) => void;
|
||||||
progress: { update: (msg: string) => void; stop: (msg?: string) => void };
|
progress: { update: (msg: string) => void; stop: (msg?: string) => void };
|
||||||
}): Promise<{
|
}): Promise<{
|
||||||
access: string;
|
access: string;
|
||||||
@@ -314,6 +315,11 @@ async function loginAntigravity(params: {
|
|||||||
].join("\n"),
|
].join("\n"),
|
||||||
"Google Antigravity OAuth",
|
"Google Antigravity OAuth",
|
||||||
);
|
);
|
||||||
|
// Output raw URL below the box for easy copying (fixes #1772)
|
||||||
|
params.log("");
|
||||||
|
params.log("Copy this URL:");
|
||||||
|
params.log(authUrl);
|
||||||
|
params.log("");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!needsManual) {
|
if (!needsManual) {
|
||||||
@@ -382,6 +388,7 @@ const antigravityPlugin = {
|
|||||||
openUrl: ctx.openUrl,
|
openUrl: ctx.openUrl,
|
||||||
prompt: async (message) => String(await ctx.prompter.text({ message })),
|
prompt: async (message) => String(await ctx.prompter.text({ message })),
|
||||||
note: ctx.prompter.note,
|
note: ctx.prompter.note,
|
||||||
|
log: (message) => ctx.runtime.log(message),
|
||||||
progress: spin,
|
progress: spin,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user