feat: 全部类型问题解决

This commit is contained in:
claude-code-best
2026-04-11 10:24:00 +08:00
parent 7088fe3c8b
commit 6a70056910
135 changed files with 671 additions and 503 deletions

View File

@@ -48,10 +48,9 @@ export function toInternalMessages(
uuid: message.uuid ?? randomUUID(),
timestamp: message.timestamp ?? new Date().toISOString(),
isMeta: message.isSynthetic,
} as Message,
} as unknown as Message,
]
case 'system':
// Handle compact boundary messages
// Handle compact boundary messages
if (message.subtype === 'compact_boundary') {
const compactMsg = message
return [
@@ -272,7 +271,7 @@ function normalizeAssistantMessageForSDK(
const normalizedContent = content.map((block): BetaContentBlock => {
if (block.type !== 'tool_use') {
return block
return block as unknown as BetaContentBlock
}
if (block.name === EXIT_PLAN_MODE_V2_TOOL_NAME) {