refactor: modularize portal server and harden session recovery
This commit is contained in:
@@ -63,8 +63,22 @@ assertIncludes(voiceInputButton, 'useVoiceSession({', 'VoiceInputButton.tsx');
|
||||
assertIncludes(voiceInputButton, 'onTranscript?.(transcript)', 'VoiceInputButton.tsx');
|
||||
|
||||
const server = read('server.mjs');
|
||||
assertIncludes(server, 'canUseSnapshotCache', 'server.mjs');
|
||||
assertIncludes(server, 'hintMc != null && hintUa != null', 'server.mjs');
|
||||
assertIncludes(
|
||||
server,
|
||||
'attachPortalSessionRoutes(api, {',
|
||||
'server.mjs session route composition',
|
||||
);
|
||||
const portalSessionRoutes = read('server/portal-session-routes.mjs');
|
||||
assertIncludes(
|
||||
portalSessionRoutes,
|
||||
'canUseSnapshotCache',
|
||||
'portal-session-routes.mjs',
|
||||
);
|
||||
assertIncludes(
|
||||
portalSessionRoutes,
|
||||
'hintMc != null && hintUa != null',
|
||||
'portal-session-routes.mjs',
|
||||
);
|
||||
|
||||
const publicFinishSync = read('mindspace-public-finish-sync.mjs');
|
||||
assertIncludes(publicFinishSync, 'applyPublicHtmlEdit', 'mindspace-public-finish-sync.mjs');
|
||||
|
||||
Reference in New Issue
Block a user