chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:39:12 +08:00
commit d8dcd5f6d1
8604 changed files with 2479390 additions and 0 deletions
@@ -0,0 +1,23 @@
const CLAUDE_CODE_COMPATIBLE_BASE_BETAS = [
"claude-code-20250219",
"interleaved-thinking-2025-05-14",
"effort-2025-11-24",
];
export const CLAUDE_CODE_COMPATIBLE_REDACT_THINKING_BETA = "redact-thinking-2026-02-12";
export type ClaudeCodeCompatibleBetaOptions = {
redactThinking?: boolean;
};
export function resolveClaudeCodeCompatibleAnthropicBeta(
options: ClaudeCodeCompatibleBetaOptions = {}
): string {
const betas = [...CLAUDE_CODE_COMPATIBLE_BASE_BETAS];
if (options.redactThinking === true) {
betas.push(CLAUDE_CODE_COMPATIBLE_REDACT_THINKING_BETA);
}
return betas.join(",");
}
export const CLAUDE_CODE_COMPATIBLE_ANTHROPIC_BETA = resolveClaudeCodeCompatibleAnthropicBeta();