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,5 +1,15 @@
/**
* @file Centralise les métadonnées et les chargeurs lazy des outils toolbox.
* @file Inventaire des outils de toolbox : pour chaque type, libellé, catégorie de la Librairie, icône et
* chargeur différé du composant.
*
* Contexte : source de vérité de la liste des outils, lue par l'interface, la Librairie, l'import et le stockage.
* Points d'entrée : `TOOLBOX_MODULE_DEFINITIONS`, `TOOLBOX_MODULES`, `TOOLBOX_MODULE_LOADERS`,
* `LIBRARY_CATEGORY_DEFINITIONS`, `getToolboxModuleDefinition`.
* Utilisé par : modules/toolboxModuleComponents.jsx, AddToolControls.jsx, toolboxStorage.js,
* toolboxImportValidation.js, la Librairie, l'accueil ; la validation des données et les tests.
* Attention : ajouter un outil ici ne suffit pas (compacteur, textes, Librairie, validation) : suivre la recette
* de CONTRIBUTING.md.
* @see website/src/features/toolboxes/README.md
*/
export const TOOLBOX_MODULE_DEFINITIONS = {