fix: allow openai-codex in onboarding types
This commit is contained in:
@@ -99,9 +99,17 @@ export async function runNonInteractiveOnboarding(
|
|||||||
await setAnthropicApiKey(key);
|
await setAnthropicApiKey(key);
|
||||||
} else if (authChoice === "minimax") {
|
} else if (authChoice === "minimax") {
|
||||||
nextConfig = applyMinimaxConfig(nextConfig);
|
nextConfig = applyMinimaxConfig(nextConfig);
|
||||||
} else if (authChoice === "oauth" || authChoice === "antigravity") {
|
} else if (
|
||||||
|
authChoice === "oauth" ||
|
||||||
|
authChoice === "openai-codex" ||
|
||||||
|
authChoice === "antigravity"
|
||||||
|
) {
|
||||||
runtime.error(
|
runtime.error(
|
||||||
`${authChoice === "oauth" ? "OAuth" : "Antigravity"} requires interactive mode.`,
|
`${
|
||||||
|
authChoice === "oauth" || authChoice === "openai-codex"
|
||||||
|
? "OAuth"
|
||||||
|
: "Antigravity"
|
||||||
|
} requires interactive mode.`,
|
||||||
);
|
);
|
||||||
runtime.exit(1);
|
runtime.exit(1);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export type OnboardMode = "local" | "remote";
|
export type OnboardMode = "local" | "remote";
|
||||||
export type AuthChoice =
|
export type AuthChoice =
|
||||||
| "oauth"
|
| "oauth"
|
||||||
|
| "openai-codex"
|
||||||
| "antigravity"
|
| "antigravity"
|
||||||
| "apiKey"
|
| "apiKey"
|
||||||
| "minimax"
|
| "minimax"
|
||||||
|
|||||||
Reference in New Issue
Block a user