Files
手瓜一十雪 3870052fb4 Simplify Hub channel management
Refactor Hub to treat each UIN as a single active Channel: channelsByUin_ now maps UIN -> Channel (no Set of IDs), primary selection logic and primaryByUin_/pickPrimary were removed, and addChannel replaces any existing channel for a UIN (disposing the previous one). Updated add/remove flows to update channelsById_ and channelsByUin_ accordingly and to bring cores online/offline in the simplified model.

Also: removed extensive JSDoc/comment blocks from channel/adapter/channel-ctx/core/hub files to slim the public API surface, reordered/cleaned exports in packages/channel/src/index.ts, added a new hub-events.ts placeholder, and cleaned up a test helper comment. Disposal of replaced channels is wrapped with a try/catch and logged at debug level.
2026-05-27 18:07:03 +08:00
..
2026-05-27 18:07:03 +08:00
2026-05-24 18:01:50 +08:00
2026-05-27 18:07:03 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00