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