You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(acp): make bridge SDK message handling type-safe
- Hide IteratorResult inside nextSdkMessageOrAbort(), return SDKMmessage | undefined
- Add local BridgeSDKMessage discriminated union covering all consumed types
- Replace 18 scattered 'as string'/'as boolean' casts with single entry-point cast
- Preserve Promise.race abort pattern (no bare for-await)
- Fix second forwardSessionUpdates variant too
- All 70 existing tests pass; add tests for abort-during-wait and unknown types
No global SDKMessage change — scope is bridge.ts only.
0 commit comments