mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24:05 +00:00
feat(journey): complete sharing, photo drafts and Studio maps
Connect the Journey backend to the web and mobile UI, including public access and subscriptions, day recordings, photo drafts and per-map framing. Preserve legacy recording responses and cover the new behavior in every locale.
This commit is contained in:
@@ -116,13 +116,11 @@ describe('MCP tool input schemas', () => {
|
||||
it('MCP-SCHEMA-004: the page edit and the design revision, which take every page operation, stay under their ceiling', () => {
|
||||
// Every element kind's add and style operation widen the op union; the design's
|
||||
// revision takes the same ops. A layout's undo takes its layout as JSON text, so it stays small.
|
||||
// Measured at about 45 400 since a map's scope (country, day, stop), its own view and its coast
|
||||
// (book schema revision 12), up from 44 600, with the scope and the view each checked whole to stay small.
|
||||
const sizeOf = (tool: string) =>
|
||||
JSON.stringify([...schemas].find(([key]) => key.endsWith(`#${tool}`))?.[1] ?? null).length;
|
||||
for (const tool of ['edit_book_page', 'revise_book_design']) {
|
||||
expect(sizeOf(tool)).toBeGreaterThan(10_000);
|
||||
expect(sizeOf(tool)).toBeLessThan(46_000);
|
||||
expect(sizeOf(tool)).toBeLessThan(45_000);
|
||||
}
|
||||
expect(sizeOf('restore_book_layout')).toBeLessThan(2_000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user