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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user