mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user