[refactor] web/src/events-stream.ts:141 connect() が biome cognitive complexity 40(max 30)。abort 制御 / reconnect / state 分岐の複合化。retryable state machine(connecting/open/retrying/stopped)に分解して各遷移を小関数化。インパクト:複雑度 30 以下で警告解消、SSE 周りの読解容易化。
[refactor] web/src/events-stream.ts:141 connect() が biome cognitive complexity 40(max 30)。abort 制御 / reconnect / state 分岐の複合化。retryable state machine(connecting/open/retrying/stopped)に分解して各遷移を小関数化。インパクト:複雑度 30 以下で警告解消、SSE 周りの読解容易化。