feat(channels): add bluebubbles imessage adapter

This commit is contained in:
William Valentin
2026-02-16 09:41:26 -08:00
parent 2cadff901d
commit 8e9f9aa4de
13 changed files with 409 additions and 2 deletions
+25
View File
@@ -399,6 +399,31 @@ describe('configSchema — google_chat', () => {
});
});
describe('configSchema — bluebubbles', () => {
const minimalConfig = {
telegram: { bot_token: 'test', allowed_chat_ids: [1] },
models: { default: { provider: 'anthropic', model: 'claude-3' } },
};
it('accepts bluebubbles config and defaults optional fields', () => {
const result = configSchema.parse({
...minimalConfig,
bluebubbles: {
endpoint: 'http://localhost:1234',
api_key: 'bb-key',
},
});
expect(result.bluebubbles).toBeDefined();
if (!result.bluebubbles) {
throw new Error('Expected bluebubbles config');
}
expect(result.bluebubbles.allowed_chat_guids).toEqual([]);
expect(result.bluebubbles.require_mention).toBe(true);
expect(result.bluebubbles.mention_name).toBe('flynn');
});
});
describe('configSchema — whatsapp', () => {
const minimalConfig = {
telegram: { bot_token: 'test', allowed_chat_ids: [1] },