mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
b8d6e14138
Core test (core-subscribe-to-agent.test.ts): - Replace `as any` on RunErrorEvent with proper EventType.RUN_ERROR type - Consolidate 4 identical lifecycle tests into one `it.each` block - Extract silenceConsoleError() helper used across 10 error-path tests - Document the remaining intentional `as any` in guardAll JS-consumer test Angular test (agent.spec.ts): - Make MockAgent extend AbstractAgent, removing all 4 `as unknown as AbstractAgent` double casts - Replace all `any` types with proper AG-UI types (Message, State, AgentSubscriber, etc.) - Emit helpers now pass correct AgentSubscriberParams instead of empty objects - Use userMsg() factory for properly typed test data - Simplify ProxiedCopilotRuntimeAgent assertion with single narrowing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>