external-protocol-pins.test.mjs
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0
feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes…
Human
minor
⚠ breaking
12 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 | |
| 5 | describe('Unit: External Protocol Constants & Helpers', () => { |
| 6 | it('should have default lease TTL defined', () => { |
| 7 | expect(protocol.DEFAULT_LEASE_TTL_SECONDS).to.be.a('number'); |
| 8 | expect(protocol.DEFAULT_LEASE_TTL_SECONDS).to.equal(900); |
| 9 | }); |
| 10 | |
| 11 | it('should format task view for external protocol correctly', () => { |
| 12 | const mockTask = { task_id: 'task-123', status: 'open' }; |
| 13 | const view = protocol.taskViewForExternalProtocol(mockTask, 'strict'); |
| 14 | expect(view).to.be.an('object'); |
| 15 | expect(view.task_id).to.equal('task-123'); |
| 16 | }); |
| 17 | |
| 18 | it('should define protocolError', () => { |
| 19 | expect(protocol.protocolError).to.be.a('function'); |
| 20 | }); |
| 21 | }); |
File History
1 commit
sha256:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882
fix(test): align Band B landing assertion with desktop MCP …
Human
12 days ago