style: format room mode helpers
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user