Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
- run: npm run typecheck
- run: npm test
2 changes: 1 addition & 1 deletion tests/integration-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ describe('End-to-End: Speaker & Security', () => {

// Stream audio → Eagle identifies alice (owner)
await client.streamAudio(15, 640, 2);
await new Promise((r) => setTimeout(r, 300));
await new Promise((r) => setTimeout(r, 500));

// xAI should have received a session.update with owner-level tools
const sessionUpdates = mockXai.receivedMessages.filter((m) => m.type === 'session.update');
Expand Down
3 changes: 1 addition & 2 deletions tests/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ describe('Integration: Realistic Audio Streams', () => {
await client.waitForMessageType('audio-start');
await client.waitForMessageType('audio-stop');

const audioChunks = client.getMessagesByType('audio-chunk');
expect(audioChunks.length).toBe(5); // mock sends 5 chunks
// Audio pacing delivers chunks asynchronously; total bytes must match
expect(client.getTotalAudioBytes()).toBe(5 * 640); // 5 × 640 bytes

// Verify transcript arrived
Expand Down
Loading