v0.6.0
·
154 commits
to main
since this release
host-api-test-sdk 0.6.0
Navigation, notifications, account alias
- Navigation handler —
handleNavigateTorecordshostApi.navigateTo(url)calls in a log without actually navigating. Inspect viagetNavigationLog()/clearNavigationLog(). - Push notification handler —
handlePushNotificationrecordshostApi.pushNotification({ text, deeplink })calls. Inspect viagetNotificationLog()/clearNotificationLog(). - Account alias handler —
handleAccountGetAliasreturns a deterministic(context, alias)pair derived from the account public key via BLAKE2b-256. Stable across runs for a given account.
Chat
- Chat handlers —
handleChatCreateRoom,handleChatBotRegistration,handleChatListSubscribe,handleChatPostMessage,handleChatActionSubscribe. In-memory rooms/bots/messages. Inspect viagetChatRooms(),getChatBots(),getChatMessageLog(). injectChatAction({ roomId, peer, payload })— simulate an incoming message from a peer.clearChatState()— wipe all chat state.
Preimage store
- Preimage handlers —
handlePreimageSubmitstores the value and returns its BLAKE2b-256 key.handlePreimageLookupSubscribedelivers the value (ornull) when queried, and notifies subscribers when a new preimage matching their key is submitted. seedPreimage(value)— pre-populate the store from tests; returns the computed key.getPreimages()/clearPreimages()— inspect or reset the store.
Statement store
- Statement store handlers —
handleStatementStoreSubscribe,handleStatementStoreCreateProof,handleStatementStoreSubmit. In-memory statement storage with topic-based subscription filtering. Product accounts sign via sr25519 forcreateProof. getSubmittedStatements()— log of what the product has submitted.injectStatement(statement)— deliver a statement to matching subscribers without going through submit.clearStatements()— reset all statement state.
Per-session state reset
Permission grants, navigation log, notification log, chat state, preimages, and statement store are now cleared on container recreation (e.g. setAccounts), matching real host session behavior.
New exported types
NavigationLogEntry, NotificationLogEntry, ChatRoom, ChatBot, ChatMessageLogEntry, PreimageEntry, StatementSubmissionLogEntry