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

@@ -895,7 +895,9 @@ async function summarizeTranscriptChunk(chunk: string): Promise<string> {
},
})
const text = extractTextContent(result.message.content as readonly { readonly type: string }[])
const text = extractTextContent(
result.message.content as readonly { readonly type: string }[],
)
return text || chunk.slice(0, 2000)
} catch {
// On error, just return truncated chunk
@@ -1038,7 +1040,9 @@ RESPOND WITH ONLY A VALID JSON OBJECT matching this schema:
},
})
const text = extractTextContent(result.message.content as readonly { readonly type: string }[])
const text = extractTextContent(
result.message.content as readonly { readonly type: string }[],
)
// Parse JSON from response
const jsonMatch = text.match(/\{[\s\S]*\}/)
@@ -1589,7 +1593,9 @@ async function generateSectionInsight(
},
})
const text = extractTextContent(result.message.content as readonly { readonly type: string }[])
const text = extractTextContent(
result.message.content as readonly { readonly type: string }[],
)
if (text) {
// Parse JSON from response