mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-18 22:54:33 +01:00
Moves the tutor app's generic relay client (RTDB REST/SSE, e2e sealing per an app layout, request hub, rev watcher, passphrase gate, Google->Firebase session, desktop credential adoption) into rtdb_relay/dart. The tutor vectors and a differential test against the tutor's frozen pre-extraction sealer pin the wire format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYeKVg9WihaikbfDSe
38 lines
998 B
Dart
38 lines
998 B
Dart
// The tutor app's layout (tutor DOCS-contract §12): the first consumer and
|
|
// the one its e2e vectors pin, so the tests run against the real tree.
|
|
import 'package:rtdb_relay/src/layout.dart';
|
|
|
|
/// The tutor's sealed tree, `tutor/v1-e2e`.
|
|
final RelayLayout tutorLayout = RelayLayout(
|
|
'tutor/v1',
|
|
clear: const [
|
|
'meta',
|
|
'rev',
|
|
'migration',
|
|
'requests/*/claim',
|
|
'sessions/*/progress/rid',
|
|
],
|
|
units: const {
|
|
'live': {},
|
|
'prefs/*': {},
|
|
'stats/*': {},
|
|
'presence/workers/*': {'beat'},
|
|
'presence/clients/*': {'seen'},
|
|
'uploads/*/*': {},
|
|
'requests/*/req': {'created'},
|
|
'requests/*/result': {'at'},
|
|
'sessions/*/meta/*': {},
|
|
'sessions/*/msgs/*': {},
|
|
'sessions/*/receipts/*': {},
|
|
'sessions/*/user/*': {},
|
|
'sessions/*/progress/steps/*': {},
|
|
'session_index/*': {},
|
|
'subjects/*/meta': {},
|
|
'subjects/*/plan': {},
|
|
'subjects/*/cards': {},
|
|
'subjects/*/concepts': {},
|
|
'log/*/*': {},
|
|
'feedback/*': {},
|
|
},
|
|
);
|