| 31 | const TEST_CHANNEL = process.env.E2E_CHANNEL ?? "C0B49MEJ1HQ"; // #ag-ui-bot-test |
| 32 | |
| 33 | interface CaseResult { |
| 34 | name: string; |
| 35 | prompt: string; |
| 36 | status: "pass" | "fail"; |
| 37 | errors: string[]; |
| 38 | durationMs: number; |
| 39 | finalText: string | undefined; |
| 40 | unbalancedSamples: number; |
| 41 | samples: { |
| 42 | elapsedMs: number; |
| 43 | balanced: boolean; |
| 44 | len: number; |
| 45 | preview: string; |
| 46 | /** Full text (only stored for UNBALANCED samples to keep the report small). */ |
| 47 | full?: string; |
| 48 | }[]; |
| 49 | followUp?: CaseResult; |
| 50 | /** Set when the case has an `interrupt` spec — details on the second reply. */ |
| 51 | interrupt?: { |
| 52 | firstReplyText: string | undefined; |
| 53 | secondReplyText: string | undefined; |
| 54 | errors: string[]; |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | function runExpectations( |
| 59 | exp: NonNullable<E2ECase["expectations"]>, |
nothing calls this directly
no outgoing calls
no test coverage detected