feat(channels): add microsoft teams bot framework adapter

This commit is contained in:
William Valentin
2026-02-16 02:00:14 -08:00
parent c2bd8fa313
commit 8e35d2d674
15 changed files with 455 additions and 3 deletions
+25
View File
@@ -350,6 +350,31 @@ describe('configSchema — signal', () => {
});
});
describe('configSchema — teams', () => {
const minimalConfig = {
telegram: { bot_token: 'test', allowed_chat_ids: [1] },
models: { default: { provider: 'anthropic', model: 'claude-3' } },
};
it('accepts teams config and defaults allowlist/mention fields', () => {
const result = configSchema.parse({
...minimalConfig,
teams: {
app_id: 'app-id',
app_password: 'app-password',
},
});
expect(result.teams).toBeDefined();
if (!result.teams) {
throw new Error('Expected teams config');
}
expect(result.teams.app_id).toBe('app-id');
expect(result.teams.allowed_conversation_ids).toEqual([]);
expect(result.teams.require_mention).toBe(true);
});
});
describe('configSchema — whatsapp', () => {
const minimalConfig = {
telegram: { bot_token: 'test', allowed_chat_ids: [1] },