Add Telegram and Discord IM channels

This commit is contained in:
xmanrui 2026-08-16 14:47:16 +08:00
parent 7123fce47a
commit cb74e1c4c7
66 changed files with 8579 additions and 1910 deletions

View file

@ -57,6 +57,21 @@ test('Host plugin registers the Weixin RPC channel as loopback-only', async () =
assert.deepEqual(registration.options, { authority: 'loopback' });
});
test('Host plugin opts the Weixin RPC channel into trusted Host authorities', async () => {
let registration;
const ctx = {
connection: { rpc: { handle: (channel, handler, options) => {
registration = { channel, handler, options };
return async () => {};
} } },
};
await apply(ctx, {
controller: controllerFixture(),
rpcAuthority: 'trusted-host',
});
assert.deepEqual(registration.options, { authority: 'trusted-host' });
});
test('RPC returns QR data and verification states without exposing secret-shaped fields', async () => {
const controller = controllerFixture();
const handler = createWeixinRpcHandler(controller, {