@hivegpt/hiveai-angular 0.0.490 → 0.0.492

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,11 +12,11 @@ export interface TranscriptData {
12
12
  * Voice agent orchestrator. Coordinates WebSocket (signaling) and Daily.js (WebRTC audio).
13
13
  *
14
14
  * CRITICAL: This service must NEVER use Socket.IO or ngx-socket-io. Voice flow uses only:
15
- * - Native WebSocket (WebSocketVoiceClientService) for signaling (transcripts)
16
- * - Daily.js (DailyVoiceClientService) for WebRTC audio via STATIC_DAILY_ROOM_URL.
15
+ * - Native WebSocket (WebSocketVoiceClientService) for signaling (room_created, transcripts)
16
+ * - Daily.js (DailyVoiceClientService) for WebRTC audio. Audio does NOT flow over WebSocket.
17
17
  *
18
18
  * - Maintains callState, statusText, duration, isMicMuted, isUserSpeaking, audioLevels
19
- * - Uses WebSocket for transcripts only (no audio)
19
+ * - Uses WebSocket for room_created and transcripts only (no audio)
20
20
  * - Uses Daily.js for all audio, mic, and real-time speaking detection
21
21
  */
22
22
  export declare class VoiceAgentService implements OnDestroy {
@@ -48,10 +48,7 @@ export declare class VoiceAgentService implements OnDestroy {
48
48
  /** Reset to idle state (e.g. when modal opens so user can click Start Call). */
49
49
  resetToIdle(): void;
50
50
  connect(apiUrl: string, token: string, botId: string, conversationId: string, apiKey: string, eventToken: string, eventUrl: string, domainAuthority: string): Promise<void>;
51
- /** POST for ws_url, wire transcript streams, connect WebSocket. Returns true if ws_url was found. */
52
- private connectWebSocketSignaling;
53
- /** Wire Daily client to UI state (waveform, speaking, mic muted). Call after Daily is connected. */
54
- private setupDailySubscriptions;
51
+ private onRoomCreated;
55
52
  disconnect(): Promise<void>;
56
53
  toggleMic(): void;
57
54
  private startDurationTimer;
@@ -1 +1 @@
1
- {"version":3,"file":"voice-agent.service.d.ts","sourceRoot":"/Users/rohitthakur/hive-gpt/HiveAI-Packages/Angular/projects/hivegpt/eventsgpt-angular/src/","sources":["lib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,EAAE,UAAU,CAAC,OAAO,CAAC,CAA6C;IACjF,YAAY,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAA0C;IAC5E,eAAe,EAAE,UAAU,CAAC,cAAc,CAAC,CACC;IAC5C,cAAc,EAAE,UAAU,CAAC,MAAM,CAAC,CAA4C;gBAGpE,aAAa,EAAE,oBAAoB,EACnC,QAAQ,EAAE,2BAA2B,EACrC,WAAW,EAAE,uBAAuB;IAU9C,WAAW,IAAI,IAAI;IAMnB,gFAAgF;IAChF,WAAW,IAAI,IAAI;IAYb,OAAO,CACX,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAsChB,qGAAqG;YACvF,yBAAyB;IAmDvC,oGAAoG;IACpG,OAAO,CAAC,uBAAuB;IA8CzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAYjC,SAAS,IAAI,IAAI;IAKjB,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,iBAAiB;CAM1B"}
1
+ {"version":3,"file":"voice-agent.service.d.ts","sourceRoot":"/Users/rohitthakur/hive-gpt/HiveAI-Packages/Angular/projects/hivegpt/eventsgpt-angular/src/","sources":["lib/components/voice-agent/services/voice-agent.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAkC,UAAU,EAAyB,MAAM,MAAM,CAAC;AAEzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,oBAAY,SAAS,GACjB,MAAM,GACN,Y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IAYb,OAAO,CACX,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;YAmFF,aAAa;IAkDrB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAYjC,SAAS,IAAI,IAAI;IAKjB,OAAO,CAAC,kBAAkB;IAe1B,OAAO,CAAC,iBAAiB;CAM1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hivegpt/hiveai-angular",
3
- "version": "0.0.490",
3
+ "version": "0.0.492",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^10.2.5",
6
6
  "@angular/core": "^10.2.5",