useFourtySession() | Session state, sendMessage, suggestions, errors |
useThreadRows() | The conversation history; each row carries its prose, and the question it closed on (ask) when your package exports turnAsk: 'shell' |
useTurnAsk() | The question the turn on the canvas closed on: { kind, parts }, where kind is 'choice' or 'open' and each { answer } part is a tappable reply in place in the sentence. Only when your package exports turnAsk: 'shell'; otherwise the question is already the last line of the prose |
turnAskSegments(ask) | The question as text runs and answers, in reading order, to draw the answers as buttons (or use <TurnAsk> from @40rty/ams-ui/shell) |
useTurnAskReply() | Sends one answer as the visitor’s reply |
useConversationPage() | The conversation as a PAGE, for a shell where each turn heads its own page (conversational UI): place (welcome / turn / away), phase (idle / thinking / composing), the shown turn (question, headline / body from splitAnswer, ask, answerable), crumbs back through every page (kind home / turn / here — you word them), canvasHidden, presence (activity as data, facts, forgetFact), and reply / goHome / startOver. No markup: you draw every pixel |
useComposerDraft() | The composer’s draft value |
useComposerChipSelect() | Sends a suggested follow-up |
useAgentPresence(), usePresenceNotch() | Agent activity and inferred visitor facts |
useConsumeStandingSignal(type) | A pending question from the agent |
useCanvasActions() | navigate(page), ask(text), dispatchAction from UI interactions |
useCommerceActions(), useContentActions() | Vertical verbs: navigateToProduct, showCollection, navigateToProductSet; navigateToArticle, subscribeNewsletter |
useHydrationState() | Whether a block’s entities are still resolving |
useProductCard(product) | Product card state: media, price, selection, add to cart |
useCart() | Cart state and line operations (managed packages) |
useGoHome() | Returns the canvas to the space’s home composition |