Under the hood
The code that builds permission-mode change events was pulled out into its own helper function
What
The internal logic that constructs the set_permission_mode event (sent when the permission mode changes) has been moved out of an inline object literal into a dedicated helper function. The resulting event has the identical shape as before.
Why
This is an internal code-organization change with no effect on what Claude Code does when the permission mode changes.