mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -36,7 +36,7 @@ export function extractConversationText(messages: Message[]): string {
|
||||
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
|
||||
const content = msg.message.content
|
||||
const content = msg.message!.content
|
||||
if (typeof content === 'string') {
|
||||
parts.push(content)
|
||||
} else if (Array.isArray(content)) {
|
||||
|
||||
Reference in New Issue
Block a user