mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 20:40:45 +00:00
fix(plugins): resolve rebase fallout in auth hooks
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -174,7 +174,7 @@ export function buildOpenAICodexProviderPlugin(): ProviderPlugin {
|
||||
},
|
||||
],
|
||||
wizard: {
|
||||
onboarding: {
|
||||
setup: {
|
||||
choiceId: "openai-codex",
|
||||
choiceLabel: "OpenAI Codex (ChatGPT OAuth)",
|
||||
choiceHint: "Browser sign-in",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user