feat(a2a): implement secure acknowledgment and core registry improvements

This commit is contained in:
Alisa Novikova
2026-03-12 15:52:42 -07:00
parent 9f5c35df37
commit 6b6d9bdc02

View File

@@ -186,17 +186,6 @@ describe('A2AClientManager', () => {
});
it('should configure ClientFactory with REST, JSON-RPC, and gRPC transports', async () => {
<<<<<<< HEAD
await manager.loadAgent('TestAgent', 'http://test.agent/card');
expect(ClientFactoryOptions.createFrom).toHaveBeenCalled();
});
it('should throw an error if an agent with the same name is already loaded', async () => {
await manager.loadAgent('TestAgent', 'http://test.agent/card');
await expect(
manager.loadAgent('TestAgent', 'http://test.agent/card'),
).rejects.toThrow("Agent with name 'TestAgent' is already loaded.");
=======
await manager.loadAgent('TestAgent', 'http://test.agent/card');
expect(ClientFactoryOptions.createFrom).toHaveBeenCalled();
});
@@ -212,7 +201,6 @@ describe('A2AClientManager', () => {
);
expect(card1).toBe(card2);
expect(vi.mocked(DefaultAgentCardResolver)).toHaveBeenCalledTimes(1);
>>>>>>> 7af0b4745
});
it('should use native fetch by default', async () => {