fix(plugins): drop stale provider hook dead code

This commit is contained in:
Vincent Koc
2026-04-14 16:16:34 +01:00
parent 3f8c6dd341
commit 5237a149ff
2 changed files with 0 additions and 20 deletions

View File

@@ -52,13 +52,6 @@ const ANTHROPIC_MODERN_MODEL_PREFIXES = [
"claude-sonnet-4-5",
"claude-haiku-4-5",
] as const;
const _ANTHROPIC_OAUTH_ALLOWLIST = [
"anthropic/claude-sonnet-4-6",
"anthropic/claude-opus-4-6",
"anthropic/claude-opus-4-5",
"anthropic/claude-sonnet-4-5",
"anthropic/claude-haiku-4-5",
] as const;
const ANTHROPIC_SETUP_TOKEN_NOTE_LINES = [
"Anthropic setup-token auth is supported in OpenClaw.",
"OpenClaw prefers Claude CLI reuse when it is available on the host.",
@@ -380,13 +373,6 @@ async function runAnthropicCliMigrationNonInteractive(ctx: {
export function registerAnthropicPlugin(api: OpenClawPluginApi): void {
const providerId = "anthropic";
const defaultAnthropicModel = "anthropic/claude-sonnet-4-6";
const _anthropicOauthAllowlist = [
"anthropic/claude-sonnet-4-6",
"anthropic/claude-opus-4-6",
"anthropic/claude-opus-4-5",
"anthropic/claude-sonnet-4-5",
"anthropic/claude-haiku-4-5",
] as const;
api.registerCliBackend(buildAnthropicCliBackend());
api.registerProvider({
id: providerId,

View File

@@ -24,12 +24,6 @@ function findExplicitProviderConfig(
);
return isRecord(match?.[1]) ? match[1] : undefined;
}
function _buildKimiReplayPolicy() {
return {
preserveSignatures: false,
};
}
export default definePluginEntry({
id: PLUGIN_ID,
name: "Kimi Provider",