Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
import { describe, expect, it } from 'vitest';
import { roomAgentPresence } from './room-agent-presence';
describe('roomAgentPresence', () => {
it('names each presence the server reports', () => {
expect(roomAgentPresence('live')).toEqual({ label: 'Here now', tone: 'live' });
expect(roomAgentPresence('awaiting_manual_poll')).toEqual({ label: 'Idle', tone: 'idle' });
expect(roomAgentPresence('disconnected')).toEqual({ label: 'Disconnected', tone: 'off' });
expect(roomAgentPresence('no_session')).toEqual({ label: 'No session', tone: 'off' });
});
it('does not guess at a presence it does not know', () => {
expect(roomAgentPresence(undefined)).toEqual({ label: 'Status unknown', tone: 'off' });
expect(roomAgentPresence('something_new')).toEqual({ label: 'Status unknown', tone: 'off' });
});
});