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

@@ -63,10 +63,10 @@ export function getMcpInstructionsDelta(
for (const msg of messages) {
if (msg.type !== 'attachment') continue
attachmentCount++
if (msg.attachment.type !== 'mcp_instructions_delta') continue
if (msg.attachment!.type !== 'mcp_instructions_delta') continue
midCount++
for (const n of (msg.attachment as any).addedNames) announced.add(n)
for (const n of (msg.attachment as any).removedNames) announced.delete(n)
for (const n of (msg.attachment! as any).addedNames) announced.add(n)
for (const n of (msg.attachment! as any).removedNames) announced.delete(n)
}
const connected = mcpClients.filter(