Files
TREK/shared/src/assistant/cards/book.contract.ts
T
Maurice 499458f8b2 feat(assistant): book page changes show as cards with the page before and after
A held book write is described with its findings, drawn as a thumbnail pair,
bounced once when a severe finding is left, and undone in one step.
2026-10-22 21:34:15 +00:00

24 lines
910 B
TypeScript

import { bookPageCardSchema } from './book-page.card';
export * from './book-page.card';
/**
* What the Studio's photo book brings to the assistant chat: the kind of card
* a held book write draws, the verbs of its change cards and what an applied
* one touches. cards/index.ts and assistant.schema.ts spread these into the
* card union and the shared enums, so a new kind, verb or entity is added
* here and nowhere else.
*/
export const BOOK_CARD_SCHEMAS = [bookPageCardSchema] as const;
/** A book laid down, pages added, changed, moved or deleted, the cover set. */
export const BOOK_VERB_KEYS = [
'createBook',
'addBookPages',
'editBookPage',
'moveBookPage',
'removeBookPages',
'setBookCover',
] as const;
/** A page of a journey's book; the receipt opens the Studio on it. Pages have string ids, so the card names them. */
export const BOOK_APPLIED_ENTITIES = ['book_page'] as const;