orchestrator.test.ts 599 B

1234567891011121314
  1. import { describe, expect, test } from 'bun:test';
  2. import { buildOrchestratorPrompt } from './orchestrator';
  3. describe('orchestrator prompt', () => {
  4. test('requires the question tool for blocking user input', () => {
  5. const prompt = buildOrchestratorPrompt();
  6. expect(prompt).toContain('use the `question` tool');
  7. expect(prompt).toContain('Enable custom input');
  8. expect(prompt).toContain('concise pasted response or command output');
  9. expect(prompt).toContain('small bounded set of options');
  10. expect(prompt).toContain('ordinary dialogue that does not block work');
  11. });
  12. });