style: format room mode helpers

This commit is contained in:
Eyejoker
2026-03-31 08:07:55 +09:00
parent 99fe4243bf
commit 33dd8ea54a

View File

@@ -1936,13 +1936,13 @@ export function inferRoomModeFromRegisteredAgentTypes(
agentTypes: readonly AgentType[],
): RoomMode {
const types = new Set(agentTypes);
return types.has('claude-code') && types.has('codex')
? 'tribunal'
: 'single';
return types.has('claude-code') && types.has('codex') ? 'tribunal' : 'single';
}
export function inferRoomModeForJid(jid: string): RoomMode {
return inferRoomModeFromRegisteredAgentTypes(getRegisteredAgentTypesForJid(jid));
return inferRoomModeFromRegisteredAgentTypes(
getRegisteredAgentTypesForJid(jid),
);
}
export function getExplicitRoomMode(chatJid: string): RoomMode | undefined {