babystar_protocol

Pure protocol helpers shared by the Babystar Dollhouse web boundary.

babystar_protocol.channel_for(user_id, room, tab, mode='solo')
Return type:

str

Parameters:
babystar_protocol.party_history_key(room)
Return type:

str

Parameters:

room (str)

babystar_protocol.format_party_context(messages, *, exclude_message_id='')

Build a bounded, visibly attributed transcript for prompt injection.

Return type:

str

Parameters:
babystar_protocol.avatar_url(user)
Return type:

str

Parameters:

user (dict[str, Any])

babystar_protocol.normalize_reply(raw)
Return type:

dict[str, str] | None

Parameters:

raw (Any)

babystar_protocol.normalize_game_state(raw)
Return type:

dict[str, Any]

Parameters:

raw (Any)