| 1 | import fs from 'fs' |
| 2 | import path from 'path' |
| 3 | import { describe, expect, it } from 'vitest' |
| 4 | |
| 5 | describe('agent-runtime public entry', () => { |
| 6 | it('exposes only lightweight coordination primitives from the root entry', () => { |
| 7 | const source = fs.readFileSync(path.resolve('src/main/agent-runtime/index.ts'), 'utf8') |
| 8 | const exports = Array.from(source.matchAll(/export \* from '([^']+)'/g)).map((match) => match[1]) |
| 9 | |
| 10 | expect(exports).toEqual([ |
| 11 | './types', |
| 12 | './lock/keys', |
| 13 | './job/coordinator', |
| 14 | './job/types', |
| 15 | './events/bus', |
| 16 | './events/envelope' |
| 17 | ]) |
| 18 | }) |
| 19 | }) |
| 20 |