The Core wrote several limits as bare literals, some of them twice: the voice bitrate default and send range, the relay capacity default, member, room and title name lengths, short keys, IDs, attachment names, message and reply text, watch URLs and rate, signal SDP and candidates, and room passwords. Each is now one named const in the Core module that validates it, and the production Rust copies, Native's screen source title among them, refer to it. Boundary tests keep their own literals. TypeScript held its copies in protocol.ts, shared/protocol.ts, relay-capacity.ts, room-interactions.ts and remote-control/protocol.ts. They move to src/shared/core-limits.ts and the callers import from there. channel_wire_limits now emits every limit under its TypeScript name, so the parity test compares the whole module with the compiled Core. protocol.ts and relay-capacity.ts re-export only the names that session.ts and ChannelShareControl.tsx still import, because those files are held elsewhere. No value changes.
3ee68057d8
·
2026-11-29 13:13:36 +08:00
History