mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0aca4e88bc
1. consumeAttachments: read from a ref mirror instead of side-effecting out of a setState updater, avoiding reliance on synchronous updater execution under React concurrent mode. 2. Codemod: skip declaration positions (variable, function, class, type, interface) and non-reference positions (object keys, member accesses). When a local declaration shadows the import name, only rename unambiguous type-position references to avoid corrupting unrelated code.