feat(channels): add bluebubbles imessage adapter
This commit is contained in:
@@ -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] },
|
||||
|
||||
Reference in New Issue
Block a user