fix(server): support Antigravity auth in standalone binary #11936
ClosedMohtashamMurshid(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/11936/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -0,0 +1,19 @@1+import * as Console from "effect/Console";2+import { Argument, Command } from "effect/unstable/cli";3+4+import {5+ ANTIGRAVITY_AUTH_BROWSER_MARKER,6+ ANTIGRAVITY_BROWSER_HELPER_COMMAND,7+} from "../provider/antigravityAuthSupport.ts";8+9+/**10+ * Hosts the no-browser helper inside the single executable. Script installs11+ * run the equivalent inline source under Node, while a SEA has no Node12+ * interpreter for `-e` and invokes this hidden subcommand instead.13+ */14+export const antigravityBrowserCommand = Command.make(ANTIGRAVITY_BROWSER_HELPER_COMMAND, {15+ url: Argument.string("url"),16+}).pipe(17+ Command.unlisted,18+ Command.withHandler(({ url }) =>19+ Console.error(`${ANTIGRAVITY_AUTH_BROWSER_MARKER}${JSON.stringify(url)}`),
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed