Skip to content

main => prod#222

Merged
dor-eitan merged 8 commits into
prodfrom
main
Nov 12, 2025
Merged

main => prod#222
dor-eitan merged 8 commits into
prodfrom
main

Conversation

@dor-eitan
Copy link
Copy Markdown
Contributor

@dor-eitan dor-eitan commented Nov 12, 2025

Note

Introduce Streams V2 via LiveKit with versioned stream options, route by agent type, pass chat_id, add end_user analytics data, and update tests/types/exports.

  • Streaming Platform:
    • Versioned API: Add StreamApiVersion and ExtendedStreamOptions; factory routes v1 to WebRTC and v2 to LiveKit.
    • LiveKit Manager (V2): Implement createLiveKitStreamingManager using streamsApiV2, handling room lifecycle, data channel speak, activity/video events, and transport_provider: livekit with optional chat_id.
    • Connect Flow: connect-to-manager selects V1/V2 via isStreamsV2Agent; for V2 creates chat first and passes chatId; for V1 preserves parallel init. Maps analytics end_user_data (distinct_id, plan) into V1 stream options.
  • Types/Utils/Exports:
    • Add TransportProvider, CreateStreamV2Options (with chat_id), and StreamEndUserData in V1 options; widen StreamingManager generics.
    • New isStreamsV2Agent in utils/agent and export StreamApiVersion, ExtendedStreamOptions, LiveKitStreamingManager.
  • Tests:
    • Update factory and connect tests for versioned options, V2 (expressive) path with chat_id, analytics metadata mapping, and sequential init; adjust expectations accordingly.
  • Agent Manager:
    • In speak, set assistant message created_at to new Date().toISOString().
  • Build/Config:
    • Bump package to 1.1.14, add dependency livekit-client, and exclude tests in tsconfig.json.

Written by Cursor Bugbot for commit 6a856fd. This will update automatically on new commits. Configure here.

dariusz-did and others added 6 commits October 16, 2025 09:55
* feature: pass stream analytics to api

* feature: stream analytics

* cr fixes
* Bugfix stransport provider

* send chat id on create stream for streamsV2

* factory to create streaming manager based on type and transport provider

* prettier

* Transport -> TransportProvider

* Transport -> TransportProvider

* Revert "Transport -> TransportProvider"

This reverts commit 12706a9.

* StreamVersion -> StreamApiVersion

* getAgentStreamOptions CR

* prettier
* Bugfix/stream connection latency

* fix tests

* fix lint
@dor-eitan dor-eitan merged commit 600b428 into prod Nov 12, 2025
17 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants