feat: 完成一大波类型修复, 虽然 any 很多
This commit is contained in:
1 parent
dd9cd782a7
commit
91f77ea571
55 files changed
+156
-81
No files matched your search
@@ -78,7 +78,7 @@ function extractTodosFromTranscript(messages: Message[]): TodoList {
|
||||
for (let i = messages.length - 1; i >= 0; i--) {
|
||||
const msg = messages[i]
|
||||
if (msg?.type !== 'assistant') continue
|
||||
const toolUse = msg.message.content.find(
|
||||
const toolUse = (msg.message.content as any[]).find(
|
||||
block => block.type === 'tool_use' && block.name === TODO_WRITE_TOOL_NAME,
|
||||
)
|
||||
if (!toolUse || toolUse.type !== 'tool_use') continue
|
||||
|
||||
Reference in new issue
Block a user