mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-19 06:45:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -35,7 +35,12 @@ export function extractConversationText(messages: Message[]): string {
|
||||
for (const msg of messages) {
|
||||
if (msg.type !== 'user' && msg.type !== 'assistant') continue
|
||||
if ('isMeta' in msg && msg.isMeta) continue
|
||||
if ('origin' in msg && (msg as any).origin && (msg as any).origin.kind !== 'human') continue
|
||||
if (
|
||||
'origin' in msg &&
|
||||
(msg as any).origin &&
|
||||
(msg as any).origin.kind !== 'human'
|
||||
)
|
||||
continue
|
||||
const content = msg.message!.content
|
||||
if (typeof content === 'string') {
|
||||
parts.push(content)
|
||||
|
||||
Reference in New Issue
Block a user