external-protocol-happy-path.test.mjs
15 lines 649 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 11 days ago
1 import { describe, it } from 'node:test';
2 import { expect } from 'chai';
3 import * as protocol from '../../lib/agent/external-agent-protocol.mjs';
4 import { createMockInput } from '../fixtures/agent/external-protocol-helpers.mjs';
5
6 describe('E2E: External Protocol Happy Path', () => {
7 it('should execute the claim -> heartbeat -> complete flow', async () => {
8 expect(protocol.handleClaimTask).to.be.a('function');
9 expect(protocol.handleHeartbeatTask).to.be.a('function');
10 expect(protocol.handleCompleteTask).to.be.a('function');
11
12 const input = createMockInput();
13 expect(input.providerAgentId).to.equal('agent-1');
14 });
15 });
File History 1 commit
sha256:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 11 days ago