Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(provider-share): 用合法请求范围验证越界拒绝
fmfsaisai9a1043afe34a
diff --git a/apps/desktop/src/main/device-link/__tests__/providerShareInsights.test.ts b/apps/desktop/src/main/device-link/__tests__/providerShareInsights.test.tsindex f6ed28c1dc..d24e17c381 100644--- a/apps/desktop/src/main/device-link/__tests__/providerShareInsights.test.ts+++ b/apps/desktop/src/main/device-link/__tests__/providerShareInsights.test.ts@@ -376,7 +376,7 @@ describe('provider share insights', () => {});it('rejects unauthorized members and a guest-supplied provider id', async () => {const { read, state } = fixture();- await expect(read('peer', { version: 1, providerId: 'other' })).rejects.toThrow(+ await expect(read('peer', { ...request, providerId: 'other' })).rejects.toThrow('INVALID_PARAMS',);state.active = false;