style: 格式化 packages/@ant/ 下所有文件以通过 biome ci

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-05-01 21:55:51 +08:00
parent c32f26cf21
commit 9ea9859dce
92 changed files with 5903 additions and 5188 deletions

View File

@@ -10,9 +10,8 @@ export async function* adaptGeminiStreamToAnthropic(
let started = false
let stopped = false
let nextContentIndex = 0
let openTextLikeBlock:
| { index: number; type: 'text' | 'thinking' }
| null = null
let openTextLikeBlock: { index: number; type: 'text' | 'thinking' } | null =
null
let sawToolUse = false
let finishReason: string | undefined
let inputTokens = 0
@@ -85,7 +84,10 @@ export async function* adaptGeminiStreamToAnthropic(
} as BetaRawMessageStreamEvent
}
if (part.functionCall.args && Object.keys(part.functionCall.args).length > 0) {
if (
part.functionCall.args &&
Object.keys(part.functionCall.args).length > 0
) {
yield {
type: 'content_block_delta',
index: toolIndex,
@@ -213,9 +215,7 @@ export async function* adaptGeminiStreamToAnthropic(
}
}
function getTextLikeBlockType(
part: GeminiPart,
): 'text' | 'thinking' | null {
function getTextLikeBlockType(part: GeminiPart): 'text' | 'thinking' | null {
if (typeof part.text !== 'string') {
return null
}