fix(plugins): resolve rebase fallout in auth hooks

This commit is contained in:
Peter Steinberger 2026-03-15 21:52:10 -07:00
parent 0c2ae71366
commit 99a4594bde
No known key found for this signature in database
4 changed files with 3 additions and 7 deletions

View File

@ -286,7 +286,7 @@ const anthropicPlugin = {
},
],
wizard: {
onboarding: {
setup: {
choiceId: "token",
choiceLabel: "Anthropic token (paste setup-token)",
choiceHint: "Run `claude setup-token` elsewhere, then paste the token here",

View File

@ -174,7 +174,7 @@ export function buildOpenAICodexProviderPlugin(): ProviderPlugin {
},
],
wizard: {
onboarding: {
setup: {
choiceId: "openai-codex",
choiceLabel: "OpenAI Codex (ChatGPT OAuth)",
choiceHint: "Browser sign-in",

View File

@ -5,8 +5,8 @@ import {
normalizeSecretInputModeInput,
} from "./auth-choice.apply-helpers.js";
import type { ApplyAuthChoiceParams, ApplyAuthChoiceResult } from "./auth-choice.apply.js";
import { applyDefaultModelChoice } from "./auth-choice.default-model.js";
import { applyAuthChoicePluginProvider } from "./auth-choice.apply.plugin-provider.js";
import { applyDefaultModelChoice } from "./auth-choice.default-model.js";
import { applyAuthProfileConfig, setOpenaiApiKey } from "./onboard-auth.js";
import {
applyOpenAIConfig,

View File

@ -62,10 +62,6 @@ function loadStatusScanRuntimeModule() {
return statusScanRuntimeModulePromise;
}
type StatusScanRuntimeModule = Awaited<ReturnType<typeof loadStatusScanRuntimeModule>>;
type ChannelStatusIssues = ReturnType<StatusScanRuntimeModule["collectChannelStatusIssues"]>;
type ChannelsTable = Awaited<ReturnType<StatusScanRuntimeModule["buildChannelsTable"]>>;
function deferResult<T>(promise: Promise<T>): Promise<DeferredResult<T>> {
return promise.then(
(value) => ({ ok: true, value }),