mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user