Give the toolbox files headers that explain their role, callers and pitfalls

Document the storage chain (optimistic state, write queue, compare-and-write
transactions, cross-tab sync), the tool registry, actions and pages, the
contract a tool receives through its context, and the encrypted sharing
whose key never reaches the server. The compactor registry header no longer
calls itself strict: a missing compactor writes data as-is, now tracked in
sokko-g-afbw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 10:14:46 +01:00
parent 34b412d968
commit fe21c2d899
25 changed files with 210 additions and 24 deletions

View file

@ -1,6 +1,12 @@
/**
* @file Enchaîne l'export, le chiffrement, les quotas et l'envoi d'une toolbox, puis la révocation de ses
* liens.
* @file Envoi d'une toolbox par lien : export, chiffrement, contrôle des quotas de ce navigateur, envoi au serveur,
* puis révocation des liens.
*
* Utilisé par : sharing/ShareToolboxModal.jsx.
* Dépend de : shareCrypto.js, shareQuota.js, sharesApi.js.
* Attention : la clé de déchiffrement est placée après un second `#` du lien (`#/receive/<id>#<clé>`) : le
* navigateur ne l'envoie jamais au serveur, qui ne garde qu'une copie illisible.
* @see docs/STORAGE_SCHEMA.md
*/
import { encryptSharePayload } from "./shareCrypto.js";