style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -180,7 +180,10 @@ export function accumulateStreamEvents(
chunks.push(delta.text as string)
const existing = touched.get(chunks)
if (existing) {
;(existing.event as Record<string, unknown>).delta = { type: 'text_delta', text: chunks.join('') }
;(existing.event as Record<string, unknown>).delta = {
type: 'text_delta',
text: chunks.join(''),
}
break
}
const snapshot: CoalescedStreamEvent = {
@@ -430,7 +433,10 @@ export class CCRClient {
'delivery batch',
)
if (!result.ok) {
throw new RetryableError('delivery POST failed', (result as any).retryAfterMs)
throw new RetryableError(
'delivery POST failed',
(result as any).retryAfterMs,
)
}
},
baseDelayMs: 500,
@@ -749,7 +755,14 @@ export class CCRClient {
}
await this.flushStreamEventBuffer()
if (message.type === 'assistant') {
clearStreamAccumulatorForMessage(this.streamTextAccumulator, message as { session_id: string; parent_tool_use_id: string | null; message: { id: string } })
clearStreamAccumulatorForMessage(
this.streamTextAccumulator,
message as {
session_id: string
parent_tool_use_id: string | null
message: { id: string }
},
)
}
await this.eventUploader.enqueue(this.toClientEvent(message))
}