Skip to content

refactor(protocol): reader FSM, processors, channel helpers and session cleanup#65

Merged
Otoru merged 1 commit intomainfrom
refactor/protocol-fsm-channel-consumer-session
Feb 7, 2026
Merged

refactor(protocol): reader FSM, processors, channel helpers and session cleanup#65
Otoru merged 1 commit intomainfrom
refactor/protocol-fsm-channel-consumer-session

Conversation

@Otoru
Copy link
Owner

@Otoru Otoru commented Feb 7, 2026

Summary

Refactors the protocol layer and channel/session code for clearer structure and maintainability.

Changes

  • Protocol
    • Add reader FSM (reader_fsm.py) for ESL message parsing state machine.
    • Add event processors (processors.py) used by the protocol.
  • Channel
    • Extract _execute_operation and refactor operations around it.
    • Split wait() into _wait_for_event and _wait_for_state.
    • Add _get_peer_uuid and context normalization helpers.
  • Consumer / Session / Inbound / Outbound
    • Move logger import to top in consumer; small adjustments in session and inbound/outbound wiring.

…on cleanup

- Add reader FSM (reader_fsm.py) and event processors (processors.py) for protocol
- Extract _execute_operation and refactor Channel operations
- Split wait() into _wait_for_event and _wait_for_state
- Add _get_peer_uuid and context normalization helpers
- Move logger import to top in consumer; session and inbound/outbound adjustments

Co-authored-by: Cursor <cursoragent@cursor.com>
@Otoru Otoru merged commit ec867a7 into main Feb 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments