1+ import { formatCliCommand } from "openclaw/plugin-sdk/cli-runtime" ;
2+ import { parseDurationMs } from "openclaw/plugin-sdk/cli-runtime" ;
13import {
24 emptyPluginConfigSchema ,
35 type OpenClawPluginApi ,
@@ -7,26 +9,25 @@ import {
79} from "openclaw/plugin-sdk/core" ;
810import {
911 CLAUDE_CLI_PROFILE_ID ,
12+ applyAuthProfileConfig ,
13+ buildTokenProfileId ,
14+ createProviderApiKeyAuthMethod ,
15+ ensureApiKeyFromOptionEnvOrPrompt ,
1016 listProfilesForProvider ,
11- upsertAuthProfile ,
12- } from "../../src/agents/auth-profiles.js" ;
13- import { suggestOAuthProfileIdForLegacyDefault } from "../../src/agents/auth-profiles/repair.js" ;
14- import type { AuthProfileStore } from "../../src/agents/auth-profiles/types.js" ;
15- import { normalizeModelCompat } from "../../src/agents/model-compat.js" ;
16- import { formatCliCommand } from "../../src/cli/command-format.js" ;
17- import { parseDurationMs } from "../../src/cli/parse-duration.js" ;
18- import {
17+ normalizeApiKeyInput ,
18+ suggestOAuthProfileIdForLegacyDefault ,
19+ type AuthProfileStore ,
20+ type ProviderAuthResult ,
21+ normalizeSecretInput ,
1922 normalizeSecretInputModeInput ,
2023 promptSecretRefForSetup ,
2124 resolveSecretInputModeForEnvSelection ,
22- } from "../../src/commands/auth-choice.apply-helpers.js" ;
23- import { buildTokenProfileId , validateAnthropicSetupToken } from "../../src/commands/auth-token.js" ;
24- import { applyAuthProfileConfig } from "../../src/commands/onboard-auth.js" ;
25- import { fetchClaudeUsage } from "../../src/infra/provider-usage.fetch.js" ;
26- import { createProviderApiKeyAuthMethod } from "../../src/plugins/provider-api-key-auth.js" ;
27- import type { ProviderAuthResult } from "../../src/plugins/types.js" ;
28- import { normalizeSecretInput } from "../../src/utils/normalize-secret-input.js" ;
29- import { anthropicMediaUnderstandingProvider } from "./media-understanding-provider.js" ;
25+ upsertAuthProfile ,
26+ validateAnthropicSetupToken ,
27+ validateApiKeyInput ,
28+ } from "openclaw/plugin-sdk/provider-auth" ;
29+ import { normalizeModelCompat } from "openclaw/plugin-sdk/provider-models" ;
30+ import { fetchClaudeUsage } from "openclaw/plugin-sdk/provider-usage" ;
3031
3132const PROVIDER_ID = "anthropic" ;
3233const DEFAULT_ANTHROPIC_MODEL = "anthropic/claude-sonnet-4-6" ;
@@ -395,7 +396,6 @@ const anthropicPlugin = {
395396 profileId : ctx . profileId ,
396397 } ) ,
397398 } ) ;
398- api . registerMediaUnderstandingProvider ( anthropicMediaUnderstandingProvider ) ;
399399 } ,
400400} ;
401401
0 commit comments