export function formatChatBotsForCli(chatBots, currentLarkAppId) {
    return chatBots.map((cb) => ({
        name: cb.displayName,
        openId: cb.openId,
        isSelf: cb.larkAppId === currentLarkAppId,
        source: cb.source,
        larkAppId: cb.larkAppId,
        workflowBot: cb.larkAppId || null,
        capability: cb.capability ?? null,
        hasTeamRole: cb.hasTeamRole,
        mentionable: cb.mentionable,
        mentionSource: cb.mentionSource,
    }));
}
export function formatBotInfoEntriesForCli(botEntries, currentLarkAppId) {
    return botEntries
        .filter((b) => b.botOpenId)
        .map((b) => ({
        name: b.botName ?? b.cliId,
        openId: b.botOpenId,
        isSelf: b.larkAppId === currentLarkAppId,
        source: 'configured',
        larkAppId: b.larkAppId,
        workflowBot: b.larkAppId,
        // Local fallback path (no live chat query): we only know self reliably.
        capability: null,
        hasTeamRole: false,
        mentionable: b.larkAppId === currentLarkAppId,
        mentionSource: (b.larkAppId === currentLarkAppId ? 'self' : 'fallback'),
    }));
}
//# sourceMappingURL=bots-list-output.js.map