From b7bf11c077bdd165400cf8d80c5cd1ad4248d854 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 25 Sep 2026 11:28:31 +0200 Subject: refactor(client): split transport.js into classic scripts transport.js keeps the core (connection, reconnect, leases, dispatch). Chat, media, admin, upload and device methods move, cut as text, into transport-*.js scripts that hand a class of their own to extendTransport, which copies each method onto MeshBayTransport.prototype; the codec, roster checks, node pins and the rewrap fan-out move as they were. Both shells load them after transport.js. Every prototype member, class property and top-level function has the same source text as before. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CLAUDE.md') diff --git a/CLAUDE.md b/CLAUDE.md index 9d9c8e8..c6a27af 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -923,7 +923,7 @@ here are kept only where they are a rule about *editing* the code. | Application registry | `apps.js` | §9.4 — one entry per application, its component loaded on first use through `lazy.js` | | Applications | `chat-app.js`, `files-app.js`, `video-app.js`, `music-app.js`, `photos-app.js` (+ `*-app-settings.js`) | §9.5–§9.9 | | Shared settings widgets | `settings-ui.js`, `folder-tree.js` | **A pane must not import `group-settings.js`** — that is an import cycle, and it fails as a component that silently does not render | -| Transport, handshake, device hello, roster verify | `transport.js` | §5.2, §3.3 | +| Transport, handshake, device hello, roster verify | `transport.js` (core: connection, reconnect, leases, dispatch) + `transport-*.js` (chat, media, admin, upload, devices, codec, roster, pins, rewrap — classic scripts loaded after it, methods added by `extendTransport`) | §5.2, §3.3 | | Crypto | `crypto.js`, `keyderive.js` | §4 | | Hub session, token renewal, IndexedDB (keys, playlists) | `hub-client.js` | §3.1. **No group index is stored**: the `group_indexes` store had no reader for weeks and is emptied on start-up (`purgeGroupIndexCache`) | | Where the hub is | `platform.js` — `hubBase()` | **the only file allowed to decide this** (§8.3) | -- cgit v1.2.3