@memberjunction/ng-mj-livekit-room 6.2.0-edge.7 → 6.2.0
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.
|
@@ -470,6 +470,8 @@ export declare class MJLiveKitRoomComponent extends BaseAngularComponent impleme
|
|
|
470
470
|
* billable agent sessions in an empty room.
|
|
471
471
|
*/
|
|
472
472
|
EndMeeting(): Promise<void>;
|
|
473
|
+
/** Enables or disables the local user's microphone (e.g., when placing a contact-center call on hold). */
|
|
474
|
+
SetMicrophoneEnabled(enabled: boolean): Promise<void>;
|
|
473
475
|
/**
|
|
474
476
|
* Builds the shareable invite URL for THIS room: the current page URL with a `room=<roomName>` query
|
|
475
477
|
* param. Opening it lands the invitee on the Live Room in join mode for the same room.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mj-livekit-room.component.d.ts","sourceRoot":"","sources":["../../src/lib/mj-livekit-room.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqE,YAAY,EAAS,MAAM,EAA6B,MAAM,eAAe,CAAC;AAC1J,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAA6C,oBAAoB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACjK,OAAO,EAAoG,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAC3K,OAAO,EAAqE,KAAK,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAIlJ,OAAO,EAAoB,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACxH,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,mCAAmC,CAAC;AAC3C,O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AW;IAMnB,wDAAwD;YAC1C,QAAQ;IAgBtB,8CAA8C;IACvC,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAI9C,+CAA+C;IACxC,yBAAyB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIpD,6FAA6F;IACtF,eAAe,IAAI,IAAI;IAM9B,yGAAyG;IACzG,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,iBAAiB;IAWzB,gGAAgG;IACnF,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA2B/C,iDAAiD;IACpC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/C;;;;;;OAMG;YACW,qBAAqB;IAyBnC,kDAAkD;IAClD,OAAO,CAAC,IAAI;yCAp+BD,sBAAsB;2CAAtB,sBAAsB;CAw+BlC"}
|
|
@@ -1179,6 +1179,10 @@ export class MJLiveKitRoomComponent extends BaseAngularComponent {
|
|
|
1179
1179
|
this.cdr.markForCheck();
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
+
/** Enables or disables the local user's microphone (e.g., when placing a contact-center call on hold). */
|
|
1183
|
+
async SetMicrophoneEnabled(enabled) {
|
|
1184
|
+
await this.roomComponent?.Controller?.SetMicrophoneEnabled(enabled);
|
|
1185
|
+
}
|
|
1182
1186
|
/**
|
|
1183
1187
|
* Builds the shareable invite URL for THIS room: the current page URL with a `room=<roomName>` query
|
|
1184
1188
|
* param. Opening it lands the invitee on the Live Room in join mode for the same room.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mj-livekit-room.component.js","sourceRoot":"","sources":["../../src/lib/mj-livekit-room.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAA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CAAC;IAC1D,MAAM,KAAK,GAAG,MAAM,CAAC,+BAA+B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,OAAO,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,4BAA4B,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;AAClH,CAAC","sourcesContent":["import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, EventEmitter, Input, OnInit, Output, ViewChild, inject } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { RunView } from '@memberjunction/core';\nimport { GraphQLDataProvider, GraphQLLiveKitClient, LiveKitRoomTurnState, RealtimeModelVoices, RealtimeVoiceOption } from '@memberjunction/graphql-dataprovider';\nimport { LIVEKIT_ROOM_CONTROLLER_FACTORY, LiveKitRoomComponent, LiveKitTurnStateComponent, SummarizeFloor, type LiveKitRoomLayout } from '@memberjunction/ng-livekit-room';\nimport { AgentVisionText, AvatarNoticeText, LOCAL_MEDIA_CONTROLLER_FACTORY, type AvatarNoticeOverrides } from '@memberjunction/ng-realtime-media';\nimport { MJStorageMediaPlayerComponent } from '@memberjunction/ng-media-player';\nimport { MJAlertComponent } from '@memberjunction/ng-ui-components';\nimport { UserInfoEngine } from '@memberjunction/core-entities';\nimport { MediaLayoutPrefs, type MediaPipRect, type MediaPlacementMove } from '@memberjunction/ai-realtime-client/media';\nimport {\n LiveKitPreviewRoomController,\n type ILiveKitRoomController,\n type LiveKitDataMessage,\n type LiveKitDisconnectedEvent,\n type LiveKitParticipantJoinedEvent,\n type LiveKitParticipantLeftEvent,\n type LiveKitRoomError,\n type LiveKitRoomState,\n} from '@memberjunction/livekit-room-core';\nimport { AgentAvatarNotices, type AgentAvatarNotice } from './agent-avatar-notices';\nimport { DeviceErrorNoticeText } from './device-error-notice';\nimport { TURN_POLL_DEFAULT_INTERVAL_MS, TurnStatePoller } from './turn-state-poller';\nimport {\n BuildRosterTurnBadge,\n ParseTurnAddressing,\n ParseTurnMode,\n ShouldPollTurnState,\n TURN_ADDRESSING_OPTIONS,\n TURN_MODE_OPTIONS,\n type RosterTurnBadge,\n type TurnAddressingChoice,\n type TurnModeChoice,\n} from './turn-taking-options';\nimport type { RoomOptions } from 'livekit-client';\n\n/**\n * The `MJ: User Settings` keys under which the meeting room's layout is saved, per user and for every room: where the\n * user moved participants' tiles, where they put picture-in-picture boxes, and whether they hid their self-view. The\n * realtime call saves its own layout under `mj.realtime.*`.\n */\nexport const LIVEKIT_PLACEMENT_PREF_KEY = 'mj.livekit.placement.v1';\nexport const LIVEKIT_PIP_PREF_KEY = 'mj.livekit.pip.v1';\nexport const LIVEKIT_SELF_VIEW_HIDDEN_PREF_KEY = 'mj.livekit.selfView.hidden.v1';\n\n/**\n * The keys the preview room saves its layout under: it remembers its layout as a meeting does, but apart, so moving the\n * simulated people, hiding the self-view (or resetting the layout) there never changes what is saved for meetings.\n */\nexport const LIVEKIT_PREVIEW_PLACEMENT_PREF_KEY = 'mj.livekit.preview.placement.v1';\nexport const LIVEKIT_PREVIEW_PIP_PREF_KEY = 'mj.livekit.preview.pip.v1';\nexport const LIVEKIT_PREVIEW_SELF_VIEW_HIDDEN_PREF_KEY = 'mj.livekit.preview.selfView.hidden.v1';\n\n/**\n * How the MJ binding obtains its room: start an agent in a room (`'agent'`), join an existing room (`'join'`), or open\n * the preview room (`'preview'`): your camera and microphone with simulated people, and no server.\n */\nexport type MJLiveKitConnectionMode = 'agent' | 'join' | 'preview';\n\n/**\n * What the room is given in preview mode, where nothing is minted: the room connects once both are set, and the preview\n * controller ignores them.\n */\nconst PREVIEW_SERVER_URL = 'preview://local';\nconst PREVIEW_TOKEN = 'preview';\n\n/** Emitted when an agent room session has been started server-side. */\nexport interface MJLiveKitSessionStartedEvent {\n /** The durable bridge-session row id. */\n SessionBridgeID: string;\n /** The room name. */\n RoomName: string;\n}\n\n/** One agent bot bridged into the room — tracked for the in-room add/remove roster. */\nexport interface AgentInRoom {\n /** The `MJ: AI Agent Session Bridges` row id (used to stop/remove this agent). */\n SessionBridgeID: string;\n /** The target agent this bot voices, when known. */\n TargetAgentID: string | null;\n /** Display name (the target agent's name). */\n Name: string;\n /** True while a remove request is in flight. */\n Removing?: boolean;\n}\n\n/**\n * `mj-livekit-agent-room` — the MemberJunction binding for the LiveKit room UI. It resolves a scoped\n * access token (and, in `'agent'` mode, starts the agent's presence in the room) via the RealtimeBridge\n * GraphQL surface, then renders {@link LiveKitRoomComponent} with the resolved connection. All the rich\n * feature gates of the generic component are forwarded; MJ user/provider context is threaded in.\n *\n * Public members are PascalCase (MJ convention); private members are camelCase.\n */\n@Component({\n selector: 'mj-livekit-agent-room',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [LiveKitRoomComponent, LiveKitTurnStateComponent, MJStorageMediaPlayerComponent, MJAlertComponent],\n providers: [{ provide: LIVEKIT_ROOM_CONTROLLER_FACTORY, useFactory: roomControllerFactory }],\n template: `\n @if (recordingFileId && showRecordingPanel) {\n <div class=\"mj-lk-recording\">\n <div class=\"mj-lk-recording__head\">\n <span class=\"mj-lk-recording__title\"><i class=\"fa-solid fa-circle-play\"></i> Meeting recording</span>\n <button type=\"button\" class=\"mj-lk-recording__close\" title=\"Dismiss\" (click)=\"showRecordingPanel = false\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <mj-storage-media-player [FileID]=\"recordingFileId\" [Provider]=\"Provider\"></mj-storage-media-player>\n </div>\n }\n @if (loading) {\n <div class=\"mj-lk-status\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>{{ Mode === 'agent' ? 'Starting agent session…' : 'Joining room…' }}</span>\n </div>\n } @else if (errorMessage) {\n <div class=\"mj-lk-status mj-lk-status--error\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ errorMessage }}</span>\n <button type=\"button\" class=\"mj-lk-retry\" (click)=\"Start()\">Try again</button>\n </div>\n } @else if (serverUrl && token) {\n <div class=\"mj-lk-room-wrap\">\n <mj-livekit-room\n [ServerUrl]=\"serverUrl\"\n [Token]=\"token\"\n [DisplayName]=\"resolvedDisplayName\"\n [AutoConnect]=\"true\"\n [StartWithMicrophone]=\"StartWithMicrophone\"\n [StartWithCamera]=\"StartWithCamera\"\n [Layout]=\"Layout\"\n [Title]=\"Title\"\n [ShowHeader]=\"ShowHeader\"\n [ShowControlBar]=\"ShowControlBar\"\n [ShowChat]=\"ShowChat\"\n [ShowParticipantsPanel]=\"ShowParticipantsPanel\"\n [EnableMicrophoneControl]=\"EnableMicrophoneControl\"\n [EnableCameraControl]=\"EnableCameraControl\"\n [EnableScreenShareControl]=\"EnableScreenShareControl\"\n [EnableDeviceSettings]=\"EnableDeviceSettings\"\n [EnableLeaveControl]=\"EnableLeaveControl\"\n [EnablePinning]=\"EnablePinning\"\n [EnableLayoutSwitcher]=\"EnableLayoutSwitcher\"\n [EnableNoiseFilter]=\"EnableNoiseFilter\"\n [EnableBackgroundEffects]=\"EnableBackgroundEffects\"\n [ShowAgentState]=\"ShowAgentState\"\n [ShowWhiteboard]=\"ShowWhiteboard\"\n [ShowPreJoin]=\"ShowPreJoin\"\n [EnableAgentVisionControl]=\"EnableAgentVisionControl\"\n [ShowRecordingControl]=\"EnableRecording && Mode !== 'preview'\"\n [IsRecording]=\"isRecording\"\n [E2EEPassphrase]=\"E2EEPassphrase\"\n [E2EEWorker]=\"E2EEWorker\"\n [RoomOptions]=\"RoomOptions\"\n [AgentAvatarUrl]=\"AgentAvatarUrl\"\n [CanEndForAll]=\"EnableEndForAll && !!resolvedRoomName\"\n [TileMoves]=\"TileMoves\"\n [PipRects]=\"PipRects\"\n [SelfViewHidden]=\"SelfViewHidden\"\n (TileMovesChange)=\"OnTileMovesChange($event)\"\n (PipRectsChange)=\"OnPipRectsChange($event)\"\n (SelfViewHiddenChange)=\"OnSelfViewHiddenChange($event)\"\n (AgentVisionChange)=\"OnAgentVisionChange($event)\"\n (Connected)=\"Connected.emit($event)\"\n (Disconnected)=\"OnRoomDisconnected($event)\"\n (StateChanged)=\"OnRoomStateChanged($event)\"\n (EndForAll)=\"EndMeeting()\"\n (ParticipantJoined)=\"ParticipantJoined.emit($event)\"\n (ParticipantLeft)=\"ParticipantLeft.emit($event)\"\n (DataReceived)=\"DataReceived.emit($event)\"\n (ToggleRecording)=\"onToggleRecording()\"\n (BeforeMediaToggle)=\"OnDeviceChangeRequested()\"\n (BeforeDeviceSwitch)=\"OnDeviceChangeRequested()\"\n (ErrorOccurred)=\"OnRoomError($event)\"\n ></mj-livekit-room>\n\n @if (AgentVisionNotice || DeviceNotice || AvatarNotices.length > 0) {\n <div class=\"mj-lk-notices\">\n @if (AgentVisionNotice) {\n <mj-alert class=\"mj-lk-notice\" Variant=\"error\" Size=\"sm\" [Message]=\"AgentVisionNotice\" [Dismissible]=\"true\" (Dismissed)=\"AgentVisionNotice = null\"></mj-alert>\n }\n @if (DeviceNotice) {\n <mj-alert class=\"mj-lk-notice mj-lk-notice--device\" Variant=\"error\" Size=\"sm\" [Message]=\"DeviceNotice\" [Dismissible]=\"true\" (Dismissed)=\"DeviceNotice = null\"></mj-alert>\n }\n @for (notice of AvatarNotices; track notice.Identity) {\n <mj-alert class=\"mj-lk-notice mj-lk-notice--avatar\" Variant=\"info\" Size=\"sm\" Icon=\"fa-solid fa-video-slash\"\n [Message]=\"AvatarNoticeLine(notice)\" [Dismissible]=\"true\" (Dismissed)=\"OnAvatarNoticeDismissed(notice.Identity)\"></mj-alert>\n }\n </div>\n }\n\n @if (Mode === 'agent' && EnableAgentManagement && resolvedRoomName) {\n <div class=\"mj-lk-agents\">\n @if (showAgentsPanel) {\n <div class=\"mj-lk-agents__panel\">\n <div class=\"mj-lk-agents__head\">In this room</div>\n @for (a of agentsInRoom; track a.SessionBridgeID) {\n <div class=\"mj-lk-agents__row\">\n <span class=\"mj-lk-agents__name\"><i class=\"fa-solid fa-robot\"></i> {{ a.Name }}</span>\n @if (RosterBadges.get(a.SessionBridgeID.toLowerCase()); as badge) {\n <span class=\"mj-lk-agents__turn\" [class.mj-lk-agents__turn--floor]=\"badge.HasFloor\" [title]=\"badge.Label + (badge.HasFloor ? ' - has the floor' : '')\">\n <i class=\"fa-solid\" [class.fa-microphone-lines]=\"badge.HasFloor\" [class.fa-microphone-lines-slash]=\"!badge.HasFloor\" aria-hidden=\"true\"></i>\n </span>\n }\n <button type=\"button\" class=\"mj-lk-agents__remove\" title=\"Remove agent\"\n [disabled]=\"a.Removing\" (click)=\"RemoveAgent(a)\">\n <i class=\"fa-solid\" [class.fa-xmark]=\"!a.Removing\" [class.fa-spinner]=\"a.Removing\" [class.fa-spin]=\"a.Removing\"></i>\n </button>\n </div>\n }\n @if (availableToAdd.length) {\n <div class=\"mj-lk-agents__add\">\n <select class=\"mj-input mj-lk-agents__select\" (change)=\"onAddTargetChange($event)\">\n <option value=\"\">Add an agent…</option>\n @for (a of availableToAdd; track a.ID) {\n <option [value]=\"a.ID\" [selected]=\"UUIDsEqual(a.ID, addTargetId)\">{{ a.Name }}</option>\n }\n </select>\n <button type=\"button\" class=\"mj-lk-agents__addbtn\" [disabled]=\"!addTargetId || addingAgent\" (click)=\"AddAgent()\">\n <i class=\"fa-solid\" [class.fa-plus]=\"!addingAgent\" [class.fa-spinner]=\"addingAgent\" [class.fa-spin]=\"addingAgent\"></i>\n </button>\n </div>\n @if (CanPickModelVoice && AvailableModels.length) {\n <div class=\"mj-lk-agents__overrides\">\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"onAddModelChange($event)\" title=\"Model (dev override)\">\n <option value=\"\">Default model</option>\n @for (m of AvailableModels; track m.ModelID) {\n <option [value]=\"m.ModelID\" [selected]=\"UUIDsEqual(m.ModelID, addModelId)\">{{ m.ModelName }}</option>\n }\n </select>\n @if (addVoices.length) {\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"onAddVoiceChange($event)\" title=\"Voice (dev override)\">\n <option value=\"\">Default voice</option>\n <!-- One option per persona: two personas can share a voice id (a voice, and the same voice with a face). -->\n @for (v of addVoices; track v.PersonaID ?? v.ID) {\n <option [value]=\"v.ID\" [selected]=\"v === AddVoiceOption\">{{ v.Name }}</option>\n }\n </select>\n }\n </div>\n }\n @if (EnableTurnTaking) {\n <div class=\"mj-lk-agents__overrides\">\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"OnAddTurnModeChange($event)\" title=\"Turn-taking mode\">\n <option value=\"\">Default turn mode</option>\n @for (o of TurnModeOptions; track o.Value) {\n <option [value]=\"o.Value\" [title]=\"o.Hint\" [selected]=\"o.Value === AddTurnMode\">{{ o.Label }}</option>\n }\n </select>\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"OnAddTurnAddressingChange($event)\" title=\"How the agent decides it was addressed\">\n <option value=\"\">Default addressing</option>\n @for (o of TurnAddressingOptions; track o.Value) {\n <option [value]=\"o.Value\" [title]=\"o.Hint\" [selected]=\"o.Value === AddTurnAddressing\">{{ o.Label }}</option>\n }\n </select>\n </div>\n }\n }\n @if (addError) {\n <div class=\"mj-lk-agents__error\">{{ addError }}</div>\n }\n </div>\n }\n <div class=\"mj-lk-agents__pills\">\n <button type=\"button\" class=\"mj-lk-agents__toggle\" (click)=\"showAgentsPanel = !showAgentsPanel\">\n <i class=\"fa-solid fa-robot\"></i> Agents ({{ agentsInRoom.length }})\n </button>\n @if (EnableInvite) {\n <button type=\"button\" class=\"mj-lk-agents__toggle\" title=\"Copy a link to invite someone to this room\"\n (click)=\"CopyInvite()\">\n <i class=\"fa-solid\" [class.fa-link]=\"!inviteCopied\" [class.fa-check]=\"inviteCopied\"></i>\n {{ inviteCopied ? 'Link copied' : 'Copy link' }}\n </button>\n <button type=\"button\" class=\"mj-lk-agents__toggle\" title=\"Invite people from this workspace\"\n (click)=\"InvitePeopleRequested.emit(resolvedRoomName)\">\n <i class=\"fa-solid fa-user-plus\"></i> Invite people\n </button>\n }\n </div>\n </div>\n }\n\n @if (EnableTurnTaking && resolvedRoomName) {\n <div class=\"mj-lk-turn\">\n @if (ShowTurnPanel) {\n <div class=\"mj-lk-turn__panel\">\n <div class=\"mj-lk-agents__head mj-lk-turn__head\">\n <span>Turn-taking</span>\n <button type=\"button\" class=\"mj-lk-recording__close\" title=\"Close\" (click)=\"ToggleTurnPanel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <mj-livekit-turn-state [State]=\"TurnState\"></mj-livekit-turn-state>\n @if (TurnError) {\n <div class=\"mj-lk-agents__error\">{{ TurnError }}</div>\n }\n </div>\n }\n <button type=\"button\" class=\"mj-lk-agents__toggle\" [class.mj-lk-turn__pill--active]=\"ShowTurnPanel\"\n title=\"Who has the floor, hand-offs, backchannels and the agent turn cap\" (click)=\"ToggleTurnPanel()\">\n <i class=\"fa-solid fa-people-arrows\"></i> {{ TurnPillLabel }}\n </button>\n </div>\n }\n </div>\n }\n `,\n styles: [\n `\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n .mj-lk-status {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n height: 100%;\n min-height: 220px;\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-card, #f1f5f9);\n border-radius: 12px;\n }\n .mj-lk-status i {\n font-size: 1.6rem;\n color: var(--mj-brand-primary, #0076b6);\n }\n .mj-lk-status--error i {\n color: var(--mj-status-error, #ef4444);\n }\n .mj-lk-retry {\n padding: 7px 16px;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n color: var(--mj-text-inverse, #fff);\n background: var(--mj-brand-primary, #0076b6);\n }\n .mj-lk-room-wrap {\n position: relative;\n width: 100%;\n height: 100%;\n }\n /* Over the room, under its header, clear of the agents panel at the bottom left: what the agent sees, what went\n wrong with the user's devices, then one notice per agent whose avatar can't be shown. */\n .mj-lk-notices {\n position: absolute;\n top: 64px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 41;\n width: min(480px, calc(100% - 32px));\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n }\n .mj-lk-notice {\n margin: 0;\n }\n .mj-lk-agents {\n position: absolute;\n left: 16px;\n bottom: 84px;\n z-index: 40;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n .mj-lk-agents__pills {\n display: flex;\n gap: 8px;\n }\n .mj-lk-agents__toggle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 999px;\n cursor: pointer;\n font-size: 0.8125rem;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.18));\n }\n .mj-lk-agents__panel {\n width: 260px;\n padding: 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-md, 0 6px 20px rgba(0, 0, 0, 0.25));\n }\n .mj-lk-agents__head {\n font-size: 0.6875rem;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted);\n margin-bottom: 6px;\n }\n .mj-lk-agents__row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 5px 0;\n }\n .mj-lk-agents__name {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n font-size: 0.8125rem;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .mj-lk-agents__name i {\n color: var(--mj-brand-primary);\n }\n .mj-lk-agents__remove {\n flex: none;\n width: 26px;\n height: 26px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-muted);\n background: transparent;\n }\n .mj-lk-agents__remove:hover:not(:disabled) {\n color: var(--mj-status-error);\n background: var(--mj-bg-surface-hover);\n }\n .mj-lk-agents__add {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid var(--mj-border-subtle, var(--mj-border-default));\n }\n .mj-lk-agents__select {\n flex: 1;\n min-width: 0;\n font-size: 0.8125rem;\n }\n .mj-lk-agents__overrides {\n display: flex;\n gap: 6px;\n margin-top: 6px;\n }\n .mj-lk-agents__select--sm {\n font-size: 0.75rem;\n }\n .mj-lk-agents__addbtn {\n flex: none;\n width: 32px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-inverse);\n background: var(--mj-brand-primary);\n }\n .mj-lk-agents__addbtn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n .mj-lk-agents__error {\n margin-top: 6px;\n font-size: 0.75rem;\n color: var(--mj-status-error-text, var(--mj-status-error));\n }\n .mj-lk-agents__turn {\n flex: none;\n color: var(--mj-text-muted);\n }\n .mj-lk-agents__turn--floor {\n color: var(--mj-brand-primary);\n }\n .mj-lk-turn {\n position: absolute;\n right: 16px;\n bottom: 84px;\n z-index: 40;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 8px;\n }\n .mj-lk-turn__panel {\n width: 300px;\n max-height: 60vh;\n overflow-y: auto;\n padding: 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-md, 0 6px 20px rgba(0, 0, 0, 0.25));\n }\n .mj-lk-turn__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .mj-lk-turn__pill--active {\n border-color: var(--mj-brand-primary);\n }\n .mj-lk-recording {\n margin-bottom: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-card, var(--mj-bg-surface));\n }\n .mj-lk-recording__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n }\n .mj-lk-recording__title {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n .mj-lk-recording__title i {\n color: var(--mj-brand-primary);\n }\n .mj-lk-recording__close {\n width: 28px;\n height: 28px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-muted);\n background: transparent;\n }\n .mj-lk-recording__close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n }\n `,\n ],\n})\nexport class MJLiveKitRoomComponent extends BaseAngularComponent implements OnInit {\n private readonly cdr = inject(ChangeDetectorRef);\n\n // ── MJ connection inputs ───────────────────────────────────────────────────────\n /**\n * Whether to start an agent in the room (`'agent'`), just join an existing room (`'join'`), or open the preview room\n * (`'preview'`: no token, no agent session, no recording). Read when the room is created.\n */\n @Input() public Mode: MJLiveKitConnectionMode = 'agent';\n /** The agent to voice (agent mode) — the Realtime Co-Agent / voice front-end. */\n @Input() public AgentID: string | null = null;\n /** The agent's display name (bot name + addressing). */\n @Input() public AgentName: string | null = null;\n /**\n * The TARGET agent the co-agent voices — the one being \"called\". The Realtime Co-Agent delegates to\n * it via `invoke-target-agent`; without it the agent has nobody to speak for and stays idle.\n */\n @Input() public TargetAgentID: string | null = null;\n /** The room name. Required for `'join'` mode; optional for `'agent'` (server generates one). */\n @Input() public RoomName: string | null = null;\n /** The display name the local user joins as. Defaults to the authenticated user server-side. */\n @Input() public DisplayName: string | null = null;\n /** Turn-taking mode for the agent. */\n @Input() public TurnMode: TurnModeChoice | null = null;\n /**\n * How the agent decides it was addressed: `Auto` (the default: the model's own judgement when it can give it,\n * name matching otherwise), `ModelSide`, or `Regex`. Applies to the INITIAL agent; agents added in-room pick their own.\n */\n @Input() public TurnAddressing: TurnAddressingChoice | null = null;\n /** Show the turn-taking panel (floor holder, hand-offs, backchannels, loop cap) and per-agent mode pickers. */\n @Input() public EnableTurnTaking = true;\n /** How often the turn-taking panel refreshes, in ms (clamped to a sensible minimum). */\n @Input() public TurnPollIntervalMs = TURN_POLL_DEFAULT_INTERVAL_MS;\n /** Resolve the connection automatically on init. */\n @Input() public AutoStart = true;\n\n // ── In-room agent management (agent mode) ─────────────────────────────────────────\n /** Show the in-room \"Agents\" panel to add/remove agents (agent mode only). */\n @Input() public EnableAgentManagement = true;\n /** Show the \"Invite\" pill that copies a join link to this room. */\n @Input() public EnableInvite = true;\n /**\n * Offer \"End meeting for everyone\" in the control bar's Zoom-style leave menu. When on (default) and a\n * room is resolved, ending tears down every agent in the room server-side (by name — so it works even\n * when this client only *joined*). Set `false` for contexts where only the local user should ever leave.\n */\n @Input() public EnableEndForAll = true;\n /** Target agents the user can ADD in-room (id + name). The host (e.g. the Explorer resource) supplies these. */\n @Input() public AvailableAgents: { ID: string; Name: string }[] = [];\n\n /** Per-session Realtime MODEL override for the INITIAL agent (from the host's pre-join picker). */\n @Input() public RealtimeModelID: string | null = null;\n /** Per-session VOICE override for the INITIAL agent (from the host's pre-join picker). */\n @Input() public RealtimeVoice: string | null = null;\n /**\n * Start the initial agent able to bring a person, a phone number or another agent into this same room (a \"transfer to a human\"\n * that the visitor never leaves the room for). Honoured only when the server has handoff configured; otherwise ignored.\n */\n @Input() public EnableHandoff = false;\n /**\n * Whether the dev model/voice pickers are shown in the in-room \"Add an agent\" control. The HOST\n * computes this (the `Realtime: Advanced Session Controls` authorization) and passes it down — this\n * generic component never evaluates authorizations itself.\n */\n @Input() public CanPickModelVoice = false;\n /** Active Realtime models + their voices, supplied by the host (for the add-agent dropdowns). */\n @Input() public AvailableModels: RealtimeModelVoices[] = [];\n\n /** True briefly after the invite link is copied (drives the \"Link copied\" pill state). */\n public InviteCopied = false;\n\n /** @deprecated Use {@link InviteCopied}. */\n public get inviteCopied() {\n return this.InviteCopied;\n }\n /** @deprecated Use {@link InviteCopied}. */\n public set inviteCopied(value) {\n this.InviteCopied = value;\n }\n\n /** Whether the floating agents panel is open. */\n public ShowAgentsPanel = false;\n\n /** @deprecated Use {@link ShowAgentsPanel}. */\n public get showAgentsPanel() {\n return this.ShowAgentsPanel;\n }\n /** @deprecated Use {@link ShowAgentsPanel}. */\n public set showAgentsPanel(value) {\n this.ShowAgentsPanel = value;\n }\n /** The agent bots currently bridged into the room (the first is the one started on join). */\n public AgentsInRoom: AgentInRoom[] = [];\n\n /** @deprecated Use {@link AgentsInRoom}. */\n public get agentsInRoom(): AgentInRoom[] {\n return this.AgentsInRoom;\n }\n /** @deprecated Use {@link AgentsInRoom}. */\n public set agentsInRoom(value: AgentInRoom[]) {\n this.AgentsInRoom = value;\n }\n /** The target id chosen in the \"Add an agent\" picker. */\n public AddTargetId: string | null = null;\n\n /** @deprecated Use {@link AddTargetId}. */\n public get addTargetId(): string | null {\n return this.AddTargetId;\n }\n /** @deprecated Use {@link AddTargetId}. */\n public set addTargetId(value: string | null) {\n this.AddTargetId = value;\n }\n /** The MODEL override chosen in the \"Add an agent\" picker (dev-only; null = co-agent/target default). */\n public AddModelId: string | null = null;\n\n /** @deprecated Use {@link AddModelId}. */\n public get addModelId(): string | null {\n return this.AddModelId;\n }\n /** @deprecated Use {@link AddModelId}. */\n public set addModelId(value: string | null) {\n this.AddModelId = value;\n }\n /** The VOICE override chosen in the \"Add an agent\" picker (dev-only; null = co-agent/target default). */\n public AddVoice: string | null = null;\n\n /** @deprecated Use {@link AddVoice}. */\n public get addVoice(): string | null {\n return this.AddVoice;\n }\n /** @deprecated Use {@link AddVoice}. */\n public set addVoice(value: string | null) {\n this.AddVoice = value;\n }\n /**\n * The voice option picked in the \"Add an agent\" picker (one of {@link AddVoices}), or null. Kept beside\n * {@link AddVoice} because two personas can share a voice id: the option, not the id, says which one shows picked.\n */\n public AddVoiceOption: RealtimeVoiceOption | null = null;\n /** Exposed for template use — platform-safe UUID equality (SQL upper vs PG lower). */\n public UUIDsEqual = UUIDsEqual;\n /** True while an Add request is in flight. */\n public AddingAgent = false;\n\n /** @deprecated Use {@link AddingAgent}. */\n public get addingAgent() {\n return this.AddingAgent;\n }\n /** @deprecated Use {@link AddingAgent}. */\n public set addingAgent(value) {\n this.AddingAgent = value;\n }\n /** Last add error, shown under the picker. */\n public AddError: string | null = null;\n\n /** @deprecated Use {@link AddError}. */\n public get addError(): string | null {\n return this.AddError;\n }\n /** @deprecated Use {@link AddError}. */\n public set addError(value: string | null) {\n this.AddError = value;\n }\n /** True while an \"End meeting\" (stop all agents + leave) is in flight. */\n public EndingMeeting = false;\n\n /** @deprecated Use {@link EndingMeeting}. */\n public get endingMeeting() {\n return this.EndingMeeting;\n }\n /** @deprecated Use {@link EndingMeeting}. */\n public set endingMeeting(value) {\n this.EndingMeeting = value;\n }\n\n // ── Turn-taking ────────────────────────────────────────────────────────────────────\n /** The turn-mode choices for the add-agent picker. */\n public readonly TurnModeOptions = TURN_MODE_OPTIONS;\n /** The addressing choices for the add-agent picker. */\n public readonly TurnAddressingOptions = TURN_ADDRESSING_OPTIONS;\n /** The turn mode chosen in the \"Add an agent\" picker (null = the room's default). */\n public AddTurnMode: TurnModeChoice | null = null;\n /** The addressing mode chosen in the \"Add an agent\" picker (null = Auto). */\n public AddTurnAddressing: TurnAddressingChoice | null = null;\n /** Whether the turn-taking panel is open. */\n public ShowTurnPanel = false;\n /** The room's latest turn-taking state (`null` until the first poll of a room with agents answers). */\n public TurnState: LiveKitRoomTurnState | null = null;\n /** The latest turn-taking poll error, shown in the panel. */\n public TurnError: string | null = null;\n /** The label on the turn-taking pill; names the floor holder when there is one. */\n public TurnPillLabel = 'Turns';\n /** Each seated agent's turn-taking badge, keyed by lowercase bridge-session id. */\n public RosterBadges = new Map<string, RosterTurnBadge>();\n\n private readonly destroyRef = inject(DestroyRef);\n private turnPoller: TurnStatePoller | null = null;\n\n /** The inner Generic room — used to trigger the local disconnect when ending/leaving the meeting. */\n @ViewChild(LiveKitRoomComponent) private roomComponent?: LiveKitRoomComponent;\n\n /** Available agents not already in the room (by target id) — the \"Add\" picker options. */\n public get AvailableToAdd(): { ID: string; Name: string }[] {\n const present = new Set(this.AgentsInRoom.map((a) => (a.TargetAgentID ?? '').toLowerCase()));\n return this.AvailableAgents.filter((a) => !present.has(a.ID.toLowerCase()));\n }\n\n /** @deprecated Use {@link AvailableToAdd}. */\n public get availableToAdd(): { ID: string; Name: string }[] {\n return this.AvailableToAdd;\n }\n\n /** Voices for the model chosen in the add-agent picker (empty when no model picked or it has none). */\n public get AddVoices(): RealtimeVoiceOption[] {\n const model = this.AvailableModels.find((m) => UUIDsEqual(m.ModelID, this.AddModelId));\n return model?.Voices ?? [];\n }\n\n /** @deprecated Use {@link AddVoices}. */\n public get addVoices(): RealtimeVoiceOption[] {\n return this.AddVoices;\n }\n\n /** Records the add-agent MODEL choice; clears the voice so it can't outlive a model switch. */\n public OnAddModelChange(event: Event): void {\n this.AddModelId = (event.target as HTMLSelectElement).value || null;\n this.AddVoice = null;\n this.AddVoiceOption = null;\n }\n\n /** @deprecated Use {@link OnAddModelChange}. */\n public onAddModelChange(event: Event): void {\n return this.OnAddModelChange(event);\n }\n\n /**\n * Records the add-agent VOICE choice: the picked option, found by its position (two personas can share a voice id,\n * so the value can't tell them apart; option 0 is \"Default voice\"), and its voice id.\n */\n public OnAddVoiceChange(event: Event): void {\n this.AddVoiceOption = this.AddVoices[(event.target as HTMLSelectElement).selectedIndex - 1] ?? null;\n this.AddVoice = this.AddVoiceOption?.ID ?? null;\n }\n\n /** @deprecated Use {@link OnAddVoiceChange}. */\n public onAddVoiceChange(event: Event): void {\n return this.OnAddVoiceChange(event);\n }\n\n // ── Forwarded UI gates (see LiveKitRoomComponent) ────────────────────────────────\n /** @see LiveKitRoomComponent.Layout */\n @Input() public Layout: LiveKitRoomLayout = 'grid';\n /** @see LiveKitRoomComponent.Title */\n @Input() public Title: string | null = null;\n /** @see LiveKitRoomComponent.ShowHeader */\n @Input() public ShowHeader = true;\n /** @see LiveKitRoomComponent.ShowControlBar */\n @Input() public ShowControlBar = true;\n /** @see LiveKitRoomComponent.ShowChat */\n @Input() public ShowChat = true;\n /** @see LiveKitRoomComponent.ShowParticipantsPanel */\n @Input() public ShowParticipantsPanel = true;\n /** @see LiveKitRoomComponent.EnableMicrophoneControl */\n @Input() public EnableMicrophoneControl = true;\n /** @see LiveKitRoomComponent.EnableCameraControl */\n @Input() public EnableCameraControl = true;\n /** @see LiveKitRoomComponent.EnableScreenShareControl */\n @Input() public EnableScreenShareControl = true;\n /** @see LiveKitRoomComponent.EnableDeviceSettings */\n @Input() public EnableDeviceSettings = true;\n /** @see LiveKitRoomComponent.EnableLeaveControl */\n @Input() public EnableLeaveControl = true;\n /** @see LiveKitRoomComponent.StartWithMicrophone */\n @Input() public StartWithMicrophone = true;\n /** @see LiveKitRoomComponent.StartWithCamera */\n @Input() public StartWithCamera = false;\n /** @see LiveKitRoomComponent.AgentAvatarUrl */\n @Input() public AgentAvatarUrl: string | null = null;\n /** @see LiveKitRoomComponent.EnablePinning */\n @Input() public EnablePinning = true;\n /** @see LiveKitRoomComponent.EnableLayoutSwitcher */\n @Input() public EnableLayoutSwitcher = true;\n /** @see LiveKitRoomComponent.EnableNoiseFilter */\n @Input() public EnableNoiseFilter = false;\n /** @see LiveKitRoomComponent.EnableBackgroundEffects */\n @Input() public EnableBackgroundEffects = false;\n /** @see LiveKitRoomComponent.ShowAgentState */\n @Input() public ShowAgentState = false;\n /** @see LiveKitRoomComponent.ShowWhiteboard */\n @Input() public ShowWhiteboard = false;\n /** @see LiveKitRoomComponent.ShowPreJoin */\n @Input() public ShowPreJoin = false;\n /** @see LiveKitRoomComponent.EnableAgentVisionControl */\n @Input() public EnableAgentVisionControl = true;\n /**\n * The host's own words for why the room shows an agent without its avatar, per reason (for example its product's name\n * for \"this app\"), shown as written; `{Agent}` stands for the agent's name. `unknown` words a reason the room doesn't\n * know, such as a newer bot's. A reason it leaves out keeps the stock line, which names the agent.\n */\n @Input() public AvatarNoticeLabels: AvatarNoticeOverrides | null = null;\n /** Enable the server-authorized recording control (composite egress). */\n @Input() public EnableRecording = false;\n /** @see LiveKitRoomComponent.E2EEPassphrase */\n @Input() public E2EEPassphrase: string | null = null;\n /** @see LiveKitRoomComponent.E2EEWorker */\n @Input() public E2EEWorker: Worker | null = null;\n /** Advanced livekit-client room options merged into the constructed Room (overrides speech defaults). */\n @Input() public RoomOptions?: RoomOptions;\n\n // ── Outputs ────────────────────────────────────────────────────────────────────\n /** Emitted once the agent room session is started (agent mode). */\n @Output() public SessionStarted = new EventEmitter<MJLiveKitSessionStartedEvent>();\n /**\n * Emitted (with the room name) when the user clicks \"Invite people\". The host (e.g. the Explorer\n * resource) opens an MJ user-picker and calls the invite mutation — kept out of this generic\n * component, which knows nothing about MJ users.\n */\n @Output() public InvitePeopleRequested = new EventEmitter<string>();\n /** Emitted when the room connects. */\n @Output() public Connected = new EventEmitter<LiveKitRoomState>();\n /** Emitted when the room disconnects. */\n @Output() public Disconnected = new EventEmitter<LiveKitDisconnectedEvent>();\n /** Emitted when a participant joins. */\n @Output() public ParticipantJoined = new EventEmitter<LiveKitParticipantJoinedEvent>();\n /** Emitted when a participant leaves. */\n @Output() public ParticipantLeft = new EventEmitter<LiveKitParticipantLeftEvent>();\n /** Emitted for inbound data-channel messages. */\n @Output() public DataReceived = new EventEmitter<LiveKitDataMessage>();\n /** Emitted on room errors (and on token/session-resolution failures). */\n @Output() public ErrorOccurred = new EventEmitter<LiveKitRoomError>();\n\n // ── View state ─────────────────────────────────────────────────────────────────\n /** Whether the binding is resolving the token/session. */\n public Loading = false;\n\n /** @deprecated Use {@link Loading}. */\n public get loading() {\n return this.Loading;\n }\n /** @deprecated Use {@link Loading}. */\n public set loading(value) {\n this.Loading = value;\n }\n /** The token/session-resolution error, if any. */\n public errorMessage: string | null = null;\n /** The resolved LiveKit server URL. */\n public ServerUrl: string | null = null;\n\n /** @deprecated Use {@link ServerUrl}. */\n public get serverUrl(): string | null {\n return this.ServerUrl;\n }\n /** @deprecated Use {@link ServerUrl}. */\n public set serverUrl(value: string | null) {\n this.ServerUrl = value;\n }\n /** The resolved access token. */\n public Token: string | null = null;\n\n /** @deprecated Use {@link Token}. */\n public get token(): string | null {\n return this.Token;\n }\n /** @deprecated Use {@link Token}. */\n public set token(value: string | null) {\n this.Token = value;\n }\n /** The display name passed to the room. */\n public ResolvedDisplayName: string | null = null;\n\n /** @deprecated Use {@link ResolvedDisplayName}. */\n public get resolvedDisplayName(): string | null {\n return this.ResolvedDisplayName;\n }\n /** @deprecated Use {@link ResolvedDisplayName}. */\n public set resolvedDisplayName(value: string | null) {\n this.ResolvedDisplayName = value;\n }\n /** The resolved room name (for recording and agent-vision calls). */\n public ResolvedRoomName: string | null = null;\n\n /**\n * Why the server could not record the user's last choice of what the agent sees, shown over the room until they\n * dismiss it or choose again; `null` when there is nothing to say.\n */\n public AgentVisionNotice: string | null = null;\n\n /**\n * What went wrong with the user's microphone, camera, speaker or share while the room was connected, such as a share\n * the browser refused, shown over the room until they dismiss it, ask for another change to their devices, or leave;\n * `null` when there is nothing to say. A share picker the user closed is no error, so it says nothing.\n */\n public DeviceNotice: string | null = null;\n\n /** Which agents' notices show that the meeting can't show their avatar: once per agent per join. */\n private readonly avatarNotices = new AgentAvatarNotices(() => this.cdr.markForCheck());\n\n /**\n * The notices over the room that an agent's avatar can't be shown, oldest first: one per agent per join, for everyone\n * in the room, from the agent's bot. Each hides itself after a while or when dismissed.\n */\n public get AvatarNotices(): readonly AgentAvatarNotice[] {\n return this.avatarNotices.Visible;\n }\n\n /** A notice's line, naming the agent, in the host's words when it gave some ({@link AvatarNoticeLabels}). */\n public AvatarNoticeLine(notice: AgentAvatarNotice): string {\n return AvatarNoticeText(notice.Reason ?? null, this.AvatarNoticeLabels, notice.AgentName, { NameAgent: true });\n }\n\n /** @deprecated Use {@link ResolvedRoomName}. */\n public get resolvedRoomName(): string | null {\n return this.ResolvedRoomName;\n }\n /** @deprecated Use {@link ResolvedRoomName}. */\n public set resolvedRoomName(value: string | null) {\n this.ResolvedRoomName = value;\n }\n /** Whether a recording is currently in progress. */\n public IsRecording = false;\n\n /** @deprecated Use {@link IsRecording}. */\n public get isRecording() {\n return this.IsRecording;\n }\n /** @deprecated Use {@link IsRecording}. */\n public set isRecording(value) {\n this.IsRecording = value;\n }\n /** The active egress id, when recording. */\n private currentEgressId: string | null = null;\n\n /**\n * The `MJ: Files` id of this room's meeting recording, when one exists — set when a recording is STOPPED\n * (the server registers the egress MP4 and returns its file id) or resolved for an already-recorded room\n * on join. Drives the {@link MJStorageMediaPlayerComponent} playback panel.\n */\n public RecordingFileId: string | null = null;\n\n /** @deprecated Use {@link RecordingFileId}. */\n public get recordingFileId(): string | null {\n return this.RecordingFileId;\n }\n /** @deprecated Use {@link RecordingFileId}. */\n public set recordingFileId(value: string | null) {\n this.RecordingFileId = value;\n }\n /** Whether the recording playback panel is shown (dismissable). */\n public ShowRecordingPanel = true;\n\n /** @deprecated Use {@link ShowRecordingPanel}. */\n public get showRecordingPanel() {\n return this.ShowRecordingPanel;\n }\n /** @deprecated Use {@link ShowRecordingPanel}. */\n public set showRecordingPanel(value) {\n this.ShowRecordingPanel = value;\n }\n\n /** Where the user moved participants' tiles, as saved for them; given to the room, and saved again as they change. */\n public TileMoves: readonly MediaPlacementMove[] = [];\n /** Where the user put picture-in-picture boxes, by participant identity, as saved for them. */\n public PipRects: ReadonlyMap<string, MediaPipRect> = new Map();\n /** Whether the user hid their self-view, as saved for them; given to the room, and saved again as they change it. */\n public SelfViewHidden = false;\n\n /** The user's meeting layout, saved per user under the room's keys in the provider's settings. */\n private readonly meetingLayoutPrefs = new MediaLayoutPrefs(() => this.userInfoEngine(), {\n Moves: LIVEKIT_PLACEMENT_PREF_KEY,\n PipRects: LIVEKIT_PIP_PREF_KEY,\n SelfViewHidden: LIVEKIT_SELF_VIEW_HIDDEN_PREF_KEY,\n });\n /** The preview room's layout, saved the same way under its own keys. */\n private readonly previewLayoutPrefs = new MediaLayoutPrefs(() => this.userInfoEngine(), {\n Moves: LIVEKIT_PREVIEW_PLACEMENT_PREF_KEY,\n PipRects: LIVEKIT_PREVIEW_PIP_PREF_KEY,\n SelfViewHidden: LIVEKIT_PREVIEW_SELF_VIEW_HIDDEN_PREF_KEY,\n });\n\n /** Where this room's layout is saved: the preview room's own keys in preview mode, the meeting room's otherwise. */\n private get layoutPrefs(): MediaLayoutPrefs {\n return this.Mode === 'preview' ? this.previewLayoutPrefs : this.meetingLayoutPrefs;\n }\n\n /** The user moved a tile or reset the layout: keep the room's moves and save them. */\n public OnTileMovesChange(moves: readonly MediaPlacementMove[]): void {\n this.TileMoves = moves;\n this.layoutPrefs.SaveMoves(moves);\n }\n\n /** The user moved or resized a box, or reset the layout: keep the boxes and save them. */\n public OnPipRectsChange(rects: ReadonlyMap<string, MediaPipRect>): void {\n this.PipRects = rects;\n this.layoutPrefs.SavePipRects(rects);\n }\n\n /**\n * The user hid their self-view, showed it again, or reset the layout: keep it and save it. When saving fails, it still\n * holds for this session.\n */\n public OnSelfViewHiddenChange(hidden: boolean): void {\n this.SelfViewHidden = hidden;\n this.layoutPrefs.SaveSelfViewHidden(hidden);\n }\n\n /**\n * The user chose whether agents may see their camera and screen. The preview room records it at once. In a meeting,\n * MJAPI records it, since a participant's token can't change its own attributes, and the room shows the change when\n * LiveKit reports it; when MJAPI can't, a notice says why.\n */\n public OnAgentVisionChange(on: boolean): void {\n const controller = this.roomComponent?.Controller;\n if (controller instanceof LiveKitPreviewRoomController) {\n controller.SetAgentVision(on);\n return;\n }\n void this.recordAgentVision(on);\n }\n\n /** Asks MJAPI to record the user's choice for this room; when it can't, shows why and emits the error. */\n private async recordAgentVision(on: boolean): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n this.AgentVisionNotice = null;\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const result = await client.SetAgentVision(this.ResolvedRoomName, on);\n if (!result.Success) {\n const words = AgentVisionText(this.roomComponent?.AgentCount ?? 1);\n this.AgentVisionNotice = `${words.ChangeFailed}: ${result.ErrorMessage ?? 'unknown error'}`;\n this.ErrorOccurred.emit({ Kind: 'agent-vision', Message: this.AgentVisionNotice });\n }\n this.cdr.markForCheck();\n }\n\n /** The room's state changed: a notice shows for each agent whose bot newly says the meeting can't show its avatar. */\n public OnRoomStateChanged(state: LiveKitRoomState): void {\n this.avatarNotices.Update(state);\n }\n\n /** The room disconnected: its notices go, and joining again shows each agent's once more. */\n public OnRoomDisconnected(event: LiveKitDisconnectedEvent): void {\n this.avatarNotices.Reset();\n this.DeviceNotice = null;\n this.Disconnected.emit(event);\n }\n\n /**\n * The room reported an error: the host hears it ({@link ErrorOccurred}), and a device error while the room is\n * connected shows over the room ({@link DeviceNotice}), the latest in place of any earlier one. Until the room\n * connects, it shows its own connection overlay, which says why a join failed.\n */\n public OnRoomError(error: LiveKitRoomError): void {\n const line = this.roomComponent?.IsConnected ? DeviceErrorNoticeText(error) : null;\n if (line) {\n this.DeviceNotice = line;\n this.cdr.markForCheck();\n }\n this.ErrorOccurred.emit(error);\n }\n\n /**\n * The user asked for a change to their devices (turned the microphone, camera or share on or off, or switched a\n * device): the device notice goes, since it was about an earlier request. Should this one fail too, its own shows.\n */\n public OnDeviceChangeRequested(): void {\n if (this.DeviceNotice) {\n this.DeviceNotice = null;\n this.cdr.markForCheck();\n }\n }\n\n /** The user dismissed an agent's avatar notice: it does not show again in this join. */\n public OnAvatarNoticeDismissed(identity: string): void {\n this.avatarNotices.Dismiss(identity);\n }\n\n /**\n * The settings engine for this component's provider. A host that never ran startup (lazy startup) can hand back an\n * engine that has not loaded the user's settings; the loaded global one is used then.\n */\n private userInfoEngine(): UserInfoEngine {\n const provider = this.ProviderToUse;\n const engine = provider ? (UserInfoEngine.GetProviderInstance<UserInfoEngine>(provider, UserInfoEngine) as UserInfoEngine) : UserInfoEngine.Instance;\n return engine.Loaded ? engine : UserInfoEngine.Instance;\n }\n\n public ngOnInit(): void {\n this.TileMoves = this.layoutPrefs.LoadMoves();\n this.PipRects = this.layoutPrefs.LoadPipRects();\n this.SelfViewHidden = this.layoutPrefs.LoadSelfViewHidden();\n this.destroyRef.onDestroy(() => this.turnPoller?.Dispose());\n this.destroyRef.onDestroy(() => this.avatarNotices.Dispose());\n if (this.AutoStart) {\n void this.Start();\n }\n // If this room already has a registered recording (e.g. joining/reviewing a past room), surface it.\n if (this.RoomName) {\n void this.loadExistingRecording(this.RoomName);\n }\n }\n\n /**\n * Max time to wait for the connection to start before surfacing a retryable error, so a hung or very\n * slow server (e.g. an agent bot that can't reach the LiveKit media path) doesn't spin forever. Set\n * `0` to disable the client-side timeout.\n */\n @Input() public ConnectTimeoutMs = 25000;\n\n /** Resolves the connection (mints a token and, in agent mode, starts the agent session). A new join, too. */\n public async Start(): Promise<void> {\n this.Loading = true;\n this.errorMessage = null;\n this.avatarNotices.Reset();\n this.DeviceNotice = null;\n this.cdr.markForCheck();\n try {\n if (this.Mode === 'preview') {\n this.openPreview();\n return;\n }\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n this.ResolvedDisplayName = this.DisplayName;\n const connect = this.Mode === 'agent' ? this.startAgentSession(client) : this.joinRoom(client);\n await this.withTimeout(connect, this.ConnectTimeoutMs);\n } catch (err) {\n this.fail(err instanceof Error ? err.message : String(err));\n } finally {\n this.Loading = false;\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Races `op` against a timeout: if it hasn't settled within `ms`, rejects with a clear, retryable\n * message (the template's \"Try again\" button re-runs {@link Start}). A non-positive `ms` disables it.\n */\n private withTimeout<T>(op: Promise<T>, ms: number): Promise<T> {\n if (!ms || ms <= 0) {\n return op;\n }\n return new Promise<T>((resolve, reject) => {\n const timer = setTimeout(\n () =>\n reject(\n new Error(\n 'The connection is taking too long — the agent could not join the room. ' +\n 'Check that the LiveKit server is running and reachable, then try again.',\n ),\n ),\n ms,\n );\n op.then(\n (value) => {\n clearTimeout(timer);\n resolve(value);\n },\n (error) => {\n clearTimeout(timer);\n reject(error);\n },\n );\n });\n }\n\n /** Starts the agent room session and applies the returned client token. */\n private async startAgentSession(client: GraphQLLiveKitClient): Promise<void> {\n const result = await client.StartAgentRoomSession({\n AgentID: this.AgentID ?? undefined,\n AgentName: this.AgentName ?? undefined,\n TargetAgentID: this.TargetAgentID ?? undefined,\n RealtimeModelID: this.RealtimeModelID ?? undefined,\n RealtimeVoice: this.RealtimeVoice ?? undefined,\n RoomName: this.RoomName ?? undefined,\n TurnMode: this.TurnMode ?? undefined,\n EnableHandoff: this.EnableHandoff || undefined,\n TurnAddressing: this.TurnAddressing ?? undefined,\n });\n if (!result.Success) {\n this.fail(result.ErrorMessage ?? 'Failed to start the agent session.');\n return;\n }\n this.ServerUrl = result.ServerUrl;\n this.Token = result.ClientToken;\n this.ResolvedRoomName = result.RoomName;\n // Surface a prior recording for this resolved room (the server may have generated the room name).\n void this.loadExistingRecording(result.RoomName);\n // Track the agent we just brought in as the first entry in the in-room roster.\n this.AgentsInRoom = [\n { SessionBridgeID: result.SessionBridgeID, TargetAgentID: this.TargetAgentID, Name: this.AgentName ?? 'Agent' },\n ];\n this.SessionStarted.emit({ SessionBridgeID: result.SessionBridgeID, RoomName: result.RoomName });\n this.syncTurnPolling();\n }\n\n /** Picker selection handler for the in-room \"Add an agent\" control (native select; no FormsModule dep). */\n public OnAddTargetChange(event: Event): void {\n this.AddTargetId = (event.target as HTMLSelectElement).value || null;\n this.AddError = null;\n }\n\n /** @deprecated Use {@link OnAddTargetChange}. */\n public onAddTargetChange(event: Event): void {\n return this.OnAddTargetChange(event);\n }\n\n /**\n * Adds another agent to the SAME room — starts a new bridge (the co-agent voicing the chosen target)\n * and appends it to the roster. The new bot joins the live room alongside the existing participants.\n */\n public async AddAgent(): Promise<void> {\n if (!this.AddTargetId || !this.ResolvedRoomName || this.AddingAgent) {\n return;\n }\n const target = this.AvailableAgents.find((a) => UUIDsEqual(a.ID, this.AddTargetId));\n this.AddingAgent = true;\n this.AddError = null;\n this.cdr.markForCheck();\n try {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const result = await client.StartAgentRoomSession({\n AgentID: this.AgentID ?? undefined,\n AgentName: target?.Name ?? undefined,\n TargetAgentID: this.AddTargetId,\n RealtimeModelID: this.AddModelId ?? undefined,\n RealtimeVoice: this.AddVoice ?? undefined,\n RoomName: this.ResolvedRoomName,\n TurnMode: this.AddTurnMode ?? this.TurnMode ?? undefined,\n TurnAddressing: this.AddTurnAddressing ?? this.TurnAddressing ?? undefined,\n });\n if (!result.Success) {\n this.AddError = result.ErrorMessage ?? 'Failed to add the agent.';\n return;\n }\n this.AgentsInRoom = [\n ...this.AgentsInRoom,\n { SessionBridgeID: result.SessionBridgeID, TargetAgentID: this.AddTargetId, Name: target?.Name ?? 'Agent' },\n ];\n this.AddTargetId = null;\n this.AddModelId = null;\n this.AddVoice = null;\n this.AddVoiceOption = null;\n this.AddTurnMode = null;\n this.AddTurnAddressing = null;\n this.syncTurnPolling();\n } catch (err) {\n this.AddError = err instanceof Error ? err.message : String(err);\n } finally {\n this.AddingAgent = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Removes an agent from the room — stops its bridge and drops it from the roster. */\n public async RemoveAgent(agent: AgentInRoom): Promise<void> {\n if (agent.Removing) {\n return;\n }\n agent.Removing = true;\n this.cdr.markForCheck();\n try {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const ok = await client.StopAgentRoomSession(agent.SessionBridgeID);\n if (ok) {\n this.AgentsInRoom = this.AgentsInRoom.filter((a) => a.SessionBridgeID !== agent.SessionBridgeID);\n this.syncTurnPolling();\n } else {\n agent.Removing = false;\n }\n } catch {\n agent.Removing = false;\n } finally {\n this.cdr.markForCheck();\n }\n }\n\n /**\n * **End meeting** (the Zoom/Teams \"End for all\", reached from the control-bar leave menu): tears down EVERY\n * agent in the room server-side — *by room name*, so it works even when this client only **joined** the room\n * and never tracked the bridge ids locally — then disconnects the local user. Contrast with **Leave** (the\n * other menu item → {@link LiveKitRoomComponent.Leave}), which only disconnects YOU and lets the meeting\n * continue; the server then auto-leaves the agents once the last human is gone, so neither path strands\n * billable agent sessions in an empty room.\n */\n public async EndMeeting(): Promise<void> {\n if (this.EndingMeeting) {\n return;\n }\n this.EndingMeeting = true;\n this.cdr.markForCheck();\n try {\n if (this.ResolvedRoomName) {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n await client.EndRoom(this.ResolvedRoomName);\n }\n this.AgentsInRoom = [];\n this.syncTurnPolling();\n } catch {\n /* best-effort — fall through and still disconnect the local user */\n } finally {\n await this.roomComponent?.Leave();\n this.EndingMeeting = false;\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Builds the shareable invite URL for THIS room: the current page URL with a `room=<roomName>` query\n * param. Opening it lands the invitee on the Live Room in join mode for the same room.\n */\n public get InviteUrl(): string {\n const url = new URL(window.location.href);\n url.searchParams.set('room', this.ResolvedRoomName ?? '');\n return url.toString();\n }\n\n /** @deprecated Use {@link InviteUrl}. */\n public get inviteUrl(): string {\n return this.InviteUrl;\n }\n\n /** Copies {@link inviteUrl} to the clipboard and flips the pill to \"Link copied\" briefly. */\n public async CopyInvite(): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n try {\n await navigator.clipboard.writeText(this.InviteUrl);\n this.InviteCopied = true;\n this.cdr.markForCheck();\n setTimeout(() => {\n this.InviteCopied = false;\n this.cdr.markForCheck();\n }, 2000);\n } catch {\n // Clipboard blocked (insecure context / permissions) — leave the pill unchanged.\n }\n }\n\n /**\n * Opens the preview room: nothing is minted and no agent session starts. You join as the signed-in user unless\n * {@link DisplayName} names someone else.\n */\n private openPreview(): void {\n this.ResolvedDisplayName = this.DisplayName ?? this.ProviderToUse?.CurrentUser?.Name ?? null;\n this.ServerUrl = PREVIEW_SERVER_URL;\n this.Token = PREVIEW_TOKEN;\n }\n\n /** Joins an existing room by minting a client token. */\n private async joinRoom(client: GraphQLLiveKitClient): Promise<void> {\n if (!this.RoomName) {\n this.fail('RoomName is required when Mode is \"join\".');\n return;\n }\n const result = await client.MintClientToken({ RoomName: this.RoomName, DisplayName: this.DisplayName ?? undefined });\n if (!result.Success) {\n this.fail(result.ErrorMessage ?? 'Failed to obtain a room token.');\n return;\n }\n this.ServerUrl = result.ServerUrl;\n this.Token = result.Token;\n this.ResolvedRoomName = this.RoomName;\n this.syncTurnPolling();\n }\n\n /** Records the add-agent turn-mode choice. */\n public OnAddTurnModeChange(event: Event): void {\n this.AddTurnMode = ParseTurnMode((event.target as HTMLSelectElement).value);\n }\n\n /** Records the add-agent addressing choice. */\n public OnAddTurnAddressingChange(event: Event): void {\n this.AddTurnAddressing = ParseTurnAddressing((event.target as HTMLSelectElement).value);\n }\n\n /** Opens or closes the turn-taking panel, starting or stopping the live refresh to match. */\n public ToggleTurnPanel(): void {\n this.ShowTurnPanel = !this.ShowTurnPanel;\n this.syncTurnPolling();\n this.cdr.markForCheck();\n }\n\n /** Starts or stops polling the room's turn-taking state to match what is on screen and who is seated. */\n private syncTurnPolling(): void {\n const room = this.ResolvedRoomName;\n if (!room || !ShouldPollTurnState(this.EnableTurnTaking, room, this.AgentsInRoom.length, this.ShowTurnPanel)) {\n this.turnPoller?.Stop();\n return;\n }\n this.ensureTurnPoller().Start(room);\n }\n\n private ensureTurnPoller(): TurnStatePoller {\n if (!this.turnPoller) {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n this.turnPoller = new TurnStatePoller((room) => client.GetRoomTurnState(room), this.TurnPollIntervalMs);\n this.turnPoller.State$.subscribe((state) => this.onTurnState(state));\n this.turnPoller.Error$.subscribe((error) => {\n this.TurnError = error;\n this.cdr.markForCheck();\n });\n }\n return this.turnPoller;\n }\n\n private onTurnState(state: LiveKitRoomTurnState | null): void {\n this.TurnState = state;\n this.TurnPillLabel = state && state.Agents.length > 0 ? SummarizeFloor(state).Label : 'Turns';\n this.RosterBadges = this.buildRosterBadges(state);\n this.cdr.markForCheck();\n }\n\n private buildRosterBadges(state: LiveKitRoomTurnState | null): Map<string, RosterTurnBadge> {\n const badges = new Map<string, RosterTurnBadge>();\n for (const agent of this.AgentsInRoom) {\n const badge = BuildRosterTurnBadge(state, agent.SessionBridgeID);\n if (badge) {\n badges.set(agent.SessionBridgeID.toLowerCase(), badge);\n }\n }\n return badges;\n }\n\n /** Toggles room recording via the RealtimeBridge GraphQL surface (server-authorized egress). */\n public async OnToggleRecording(): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n if (!this.IsRecording) {\n const result = await client.StartRecording(this.ResolvedRoomName);\n if (result.Success) {\n this.IsRecording = true;\n this.currentEgressId = result.EgressID;\n } else {\n this.fail(result.ErrorMessage ?? 'Failed to start recording.');\n }\n } else if (this.currentEgressId) {\n const stopped = await client.StopRecording(this.currentEgressId);\n this.IsRecording = false;\n this.currentEgressId = null;\n // The server registers the egress MP4 as an MJ: Files row on stop and returns its id — surface it\n // in the playback panel. Absent when meeting-recording storage isn't configured server-side.\n if (stopped.Success && stopped.RecordingFileID) {\n this.RecordingFileId = stopped.RecordingFileID;\n this.ShowRecordingPanel = true;\n }\n }\n this.cdr.markForCheck();\n }\n\n /** @deprecated Use {@link OnToggleRecording}. */\n public async onToggleRecording(): Promise<void> {\n return this.OnToggleRecording();\n }\n\n /**\n * Resolves this room's already-registered meeting recording (if any) — the `MJ: Conversations` of\n * `Type='Meeting Room'` keyed by the room name carries the `RecordingFileID`. Best-effort: any failure\n * just leaves the playback panel hidden.\n *\n * @param roomName The LiveKit room name (= the Meeting-Room Conversation's `ExternalID`).\n */\n private async loadExistingRecording(roomName: string): Promise<void> {\n try {\n const escaped = roomName.replace(/'/g, \"''\");\n const result = await RunView.FromMetadataProvider(this.ProviderToUse).RunView<{ RecordingFileID: string | null }>(\n {\n EntityName: 'MJ: Conversations',\n ExtraFilter: `ExternalID='${escaped}' AND Type='Meeting Room' AND RecordingFileID IS NOT NULL`,\n Fields: ['RecordingFileID'],\n OrderBy: '__mj_CreatedAt DESC',\n MaxRows: 1,\n SkipTotalRowCount: true,\n ResultType: 'simple',\n },\n this.ProviderToUse.CurrentUser,\n );\n const fileId = result.Success ? result.Results[0]?.RecordingFileID ?? null : null;\n if (fileId) {\n this.RecordingFileId = fileId;\n this.cdr.markForCheck();\n }\n } catch {\n // best-effort — no recording panel\n }\n }\n\n /** Records a failure and emits an error event. */\n private fail(message: string): void {\n this.errorMessage = message;\n this.ErrorOccurred.emit({ Kind: 'connect', Message: message });\n }\n}\n\n/**\n * The room's controller, by the host's mode: in `'preview'` mode the preview room's, on the camera and microphone that\n * `LOCAL_MEDIA_CONTROLLER_FACTORY` provides; otherwise whatever is provided above the host (LiveKit's by default). The\n * room calls it once, when it is created, after the host's inputs are set.\n */\nfunction roomControllerFactory(): () => ILiveKitRoomController {\n const host = inject(MJLiveKitRoomComponent);\n const localMedia = inject(LOCAL_MEDIA_CONTROLLER_FACTORY);\n const outer = inject(LIVEKIT_ROOM_CONTROLLER_FACTORY, { skipSelf: true });\n return () => (host.Mode === 'preview' ? new LiveKitPreviewRoomController({ LocalMedia: localMedia }) : outer());\n}\n"]}
|
|
1
|
+
{"version":3,"file":"mj-livekit-room.component.js","sourceRoot":"","sources":["../../src/lib/mj-livekit-room.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAU,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC1J,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAuB,oBAAoB,EAAkE,MAAM,sCAAsC,CAAC;AACjK,OAAO,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,cAAc,EAA0B,MAAM,iCAAiC,CAAC;AAC3K,OAAO,EA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,4BAA4B,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;AAClH,CAAC","sourcesContent":["import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, EventEmitter, Input, OnInit, Output, ViewChild, inject } from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { RunView } from '@memberjunction/core';\nimport { GraphQLDataProvider, GraphQLLiveKitClient, LiveKitRoomTurnState, RealtimeModelVoices, RealtimeVoiceOption } from '@memberjunction/graphql-dataprovider';\nimport { LIVEKIT_ROOM_CONTROLLER_FACTORY, LiveKitRoomComponent, LiveKitTurnStateComponent, SummarizeFloor, type LiveKitRoomLayout } from '@memberjunction/ng-livekit-room';\nimport { AgentVisionText, AvatarNoticeText, LOCAL_MEDIA_CONTROLLER_FACTORY, type AvatarNoticeOverrides } from '@memberjunction/ng-realtime-media';\nimport { MJStorageMediaPlayerComponent } from '@memberjunction/ng-media-player';\nimport { MJAlertComponent } from '@memberjunction/ng-ui-components';\nimport { UserInfoEngine } from '@memberjunction/core-entities';\nimport { MediaLayoutPrefs, type MediaPipRect, type MediaPlacementMove } from '@memberjunction/ai-realtime-client/media';\nimport {\n LiveKitPreviewRoomController,\n type ILiveKitRoomController,\n type LiveKitDataMessage,\n type LiveKitDisconnectedEvent,\n type LiveKitParticipantJoinedEvent,\n type LiveKitParticipantLeftEvent,\n type LiveKitRoomError,\n type LiveKitRoomState,\n} from '@memberjunction/livekit-room-core';\nimport { AgentAvatarNotices, type AgentAvatarNotice } from './agent-avatar-notices';\nimport { DeviceErrorNoticeText } from './device-error-notice';\nimport { TURN_POLL_DEFAULT_INTERVAL_MS, TurnStatePoller } from './turn-state-poller';\nimport {\n BuildRosterTurnBadge,\n ParseTurnAddressing,\n ParseTurnMode,\n ShouldPollTurnState,\n TURN_ADDRESSING_OPTIONS,\n TURN_MODE_OPTIONS,\n type RosterTurnBadge,\n type TurnAddressingChoice,\n type TurnModeChoice,\n} from './turn-taking-options';\nimport type { RoomOptions } from 'livekit-client';\n\n/**\n * The `MJ: User Settings` keys under which the meeting room's layout is saved, per user and for every room: where the\n * user moved participants' tiles, where they put picture-in-picture boxes, and whether they hid their self-view. The\n * realtime call saves its own layout under `mj.realtime.*`.\n */\nexport const LIVEKIT_PLACEMENT_PREF_KEY = 'mj.livekit.placement.v1';\nexport const LIVEKIT_PIP_PREF_KEY = 'mj.livekit.pip.v1';\nexport const LIVEKIT_SELF_VIEW_HIDDEN_PREF_KEY = 'mj.livekit.selfView.hidden.v1';\n\n/**\n * The keys the preview room saves its layout under: it remembers its layout as a meeting does, but apart, so moving the\n * simulated people, hiding the self-view (or resetting the layout) there never changes what is saved for meetings.\n */\nexport const LIVEKIT_PREVIEW_PLACEMENT_PREF_KEY = 'mj.livekit.preview.placement.v1';\nexport const LIVEKIT_PREVIEW_PIP_PREF_KEY = 'mj.livekit.preview.pip.v1';\nexport const LIVEKIT_PREVIEW_SELF_VIEW_HIDDEN_PREF_KEY = 'mj.livekit.preview.selfView.hidden.v1';\n\n/**\n * How the MJ binding obtains its room: start an agent in a room (`'agent'`), join an existing room (`'join'`), or open\n * the preview room (`'preview'`): your camera and microphone with simulated people, and no server.\n */\nexport type MJLiveKitConnectionMode = 'agent' | 'join' | 'preview';\n\n/**\n * What the room is given in preview mode, where nothing is minted: the room connects once both are set, and the preview\n * controller ignores them.\n */\nconst PREVIEW_SERVER_URL = 'preview://local';\nconst PREVIEW_TOKEN = 'preview';\n\n/** Emitted when an agent room session has been started server-side. */\nexport interface MJLiveKitSessionStartedEvent {\n /** The durable bridge-session row id. */\n SessionBridgeID: string;\n /** The room name. */\n RoomName: string;\n}\n\n/** One agent bot bridged into the room — tracked for the in-room add/remove roster. */\nexport interface AgentInRoom {\n /** The `MJ: AI Agent Session Bridges` row id (used to stop/remove this agent). */\n SessionBridgeID: string;\n /** The target agent this bot voices, when known. */\n TargetAgentID: string | null;\n /** Display name (the target agent's name). */\n Name: string;\n /** True while a remove request is in flight. */\n Removing?: boolean;\n}\n\n/**\n * `mj-livekit-agent-room` — the MemberJunction binding for the LiveKit room UI. It resolves a scoped\n * access token (and, in `'agent'` mode, starts the agent's presence in the room) via the RealtimeBridge\n * GraphQL surface, then renders {@link LiveKitRoomComponent} with the resolved connection. All the rich\n * feature gates of the generic component are forwarded; MJ user/provider context is threaded in.\n *\n * Public members are PascalCase (MJ convention); private members are camelCase.\n */\n@Component({\n selector: 'mj-livekit-agent-room',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [LiveKitRoomComponent, LiveKitTurnStateComponent, MJStorageMediaPlayerComponent, MJAlertComponent],\n providers: [{ provide: LIVEKIT_ROOM_CONTROLLER_FACTORY, useFactory: roomControllerFactory }],\n template: `\n @if (recordingFileId && showRecordingPanel) {\n <div class=\"mj-lk-recording\">\n <div class=\"mj-lk-recording__head\">\n <span class=\"mj-lk-recording__title\"><i class=\"fa-solid fa-circle-play\"></i> Meeting recording</span>\n <button type=\"button\" class=\"mj-lk-recording__close\" title=\"Dismiss\" (click)=\"showRecordingPanel = false\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <mj-storage-media-player [FileID]=\"recordingFileId\" [Provider]=\"Provider\"></mj-storage-media-player>\n </div>\n }\n @if (loading) {\n <div class=\"mj-lk-status\">\n <i class=\"fa-solid fa-spinner fa-spin\"></i>\n <span>{{ Mode === 'agent' ? 'Starting agent session…' : 'Joining room…' }}</span>\n </div>\n } @else if (errorMessage) {\n <div class=\"mj-lk-status mj-lk-status--error\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>{{ errorMessage }}</span>\n <button type=\"button\" class=\"mj-lk-retry\" (click)=\"Start()\">Try again</button>\n </div>\n } @else if (serverUrl && token) {\n <div class=\"mj-lk-room-wrap\">\n <mj-livekit-room\n [ServerUrl]=\"serverUrl\"\n [Token]=\"token\"\n [DisplayName]=\"resolvedDisplayName\"\n [AutoConnect]=\"true\"\n [StartWithMicrophone]=\"StartWithMicrophone\"\n [StartWithCamera]=\"StartWithCamera\"\n [Layout]=\"Layout\"\n [Title]=\"Title\"\n [ShowHeader]=\"ShowHeader\"\n [ShowControlBar]=\"ShowControlBar\"\n [ShowChat]=\"ShowChat\"\n [ShowParticipantsPanel]=\"ShowParticipantsPanel\"\n [EnableMicrophoneControl]=\"EnableMicrophoneControl\"\n [EnableCameraControl]=\"EnableCameraControl\"\n [EnableScreenShareControl]=\"EnableScreenShareControl\"\n [EnableDeviceSettings]=\"EnableDeviceSettings\"\n [EnableLeaveControl]=\"EnableLeaveControl\"\n [EnablePinning]=\"EnablePinning\"\n [EnableLayoutSwitcher]=\"EnableLayoutSwitcher\"\n [EnableNoiseFilter]=\"EnableNoiseFilter\"\n [EnableBackgroundEffects]=\"EnableBackgroundEffects\"\n [ShowAgentState]=\"ShowAgentState\"\n [ShowWhiteboard]=\"ShowWhiteboard\"\n [ShowPreJoin]=\"ShowPreJoin\"\n [EnableAgentVisionControl]=\"EnableAgentVisionControl\"\n [ShowRecordingControl]=\"EnableRecording && Mode !== 'preview'\"\n [IsRecording]=\"isRecording\"\n [E2EEPassphrase]=\"E2EEPassphrase\"\n [E2EEWorker]=\"E2EEWorker\"\n [RoomOptions]=\"RoomOptions\"\n [AgentAvatarUrl]=\"AgentAvatarUrl\"\n [CanEndForAll]=\"EnableEndForAll && !!resolvedRoomName\"\n [TileMoves]=\"TileMoves\"\n [PipRects]=\"PipRects\"\n [SelfViewHidden]=\"SelfViewHidden\"\n (TileMovesChange)=\"OnTileMovesChange($event)\"\n (PipRectsChange)=\"OnPipRectsChange($event)\"\n (SelfViewHiddenChange)=\"OnSelfViewHiddenChange($event)\"\n (AgentVisionChange)=\"OnAgentVisionChange($event)\"\n (Connected)=\"Connected.emit($event)\"\n (Disconnected)=\"OnRoomDisconnected($event)\"\n (StateChanged)=\"OnRoomStateChanged($event)\"\n (EndForAll)=\"EndMeeting()\"\n (ParticipantJoined)=\"ParticipantJoined.emit($event)\"\n (ParticipantLeft)=\"ParticipantLeft.emit($event)\"\n (DataReceived)=\"DataReceived.emit($event)\"\n (ToggleRecording)=\"onToggleRecording()\"\n (BeforeMediaToggle)=\"OnDeviceChangeRequested()\"\n (BeforeDeviceSwitch)=\"OnDeviceChangeRequested()\"\n (ErrorOccurred)=\"OnRoomError($event)\"\n ></mj-livekit-room>\n\n @if (AgentVisionNotice || DeviceNotice || AvatarNotices.length > 0) {\n <div class=\"mj-lk-notices\">\n @if (AgentVisionNotice) {\n <mj-alert class=\"mj-lk-notice\" Variant=\"error\" Size=\"sm\" [Message]=\"AgentVisionNotice\" [Dismissible]=\"true\" (Dismissed)=\"AgentVisionNotice = null\"></mj-alert>\n }\n @if (DeviceNotice) {\n <mj-alert class=\"mj-lk-notice mj-lk-notice--device\" Variant=\"error\" Size=\"sm\" [Message]=\"DeviceNotice\" [Dismissible]=\"true\" (Dismissed)=\"DeviceNotice = null\"></mj-alert>\n }\n @for (notice of AvatarNotices; track notice.Identity) {\n <mj-alert class=\"mj-lk-notice mj-lk-notice--avatar\" Variant=\"info\" Size=\"sm\" Icon=\"fa-solid fa-video-slash\"\n [Message]=\"AvatarNoticeLine(notice)\" [Dismissible]=\"true\" (Dismissed)=\"OnAvatarNoticeDismissed(notice.Identity)\"></mj-alert>\n }\n </div>\n }\n\n @if (Mode === 'agent' && EnableAgentManagement && resolvedRoomName) {\n <div class=\"mj-lk-agents\">\n @if (showAgentsPanel) {\n <div class=\"mj-lk-agents__panel\">\n <div class=\"mj-lk-agents__head\">In this room</div>\n @for (a of agentsInRoom; track a.SessionBridgeID) {\n <div class=\"mj-lk-agents__row\">\n <span class=\"mj-lk-agents__name\"><i class=\"fa-solid fa-robot\"></i> {{ a.Name }}</span>\n @if (RosterBadges.get(a.SessionBridgeID.toLowerCase()); as badge) {\n <span class=\"mj-lk-agents__turn\" [class.mj-lk-agents__turn--floor]=\"badge.HasFloor\" [title]=\"badge.Label + (badge.HasFloor ? ' - has the floor' : '')\">\n <i class=\"fa-solid\" [class.fa-microphone-lines]=\"badge.HasFloor\" [class.fa-microphone-lines-slash]=\"!badge.HasFloor\" aria-hidden=\"true\"></i>\n </span>\n }\n <button type=\"button\" class=\"mj-lk-agents__remove\" title=\"Remove agent\"\n [disabled]=\"a.Removing\" (click)=\"RemoveAgent(a)\">\n <i class=\"fa-solid\" [class.fa-xmark]=\"!a.Removing\" [class.fa-spinner]=\"a.Removing\" [class.fa-spin]=\"a.Removing\"></i>\n </button>\n </div>\n }\n @if (availableToAdd.length) {\n <div class=\"mj-lk-agents__add\">\n <select class=\"mj-input mj-lk-agents__select\" (change)=\"onAddTargetChange($event)\">\n <option value=\"\">Add an agent…</option>\n @for (a of availableToAdd; track a.ID) {\n <option [value]=\"a.ID\" [selected]=\"UUIDsEqual(a.ID, addTargetId)\">{{ a.Name }}</option>\n }\n </select>\n <button type=\"button\" class=\"mj-lk-agents__addbtn\" [disabled]=\"!addTargetId || addingAgent\" (click)=\"AddAgent()\">\n <i class=\"fa-solid\" [class.fa-plus]=\"!addingAgent\" [class.fa-spinner]=\"addingAgent\" [class.fa-spin]=\"addingAgent\"></i>\n </button>\n </div>\n @if (CanPickModelVoice && AvailableModels.length) {\n <div class=\"mj-lk-agents__overrides\">\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"onAddModelChange($event)\" title=\"Model (dev override)\">\n <option value=\"\">Default model</option>\n @for (m of AvailableModels; track m.ModelID) {\n <option [value]=\"m.ModelID\" [selected]=\"UUIDsEqual(m.ModelID, addModelId)\">{{ m.ModelName }}</option>\n }\n </select>\n @if (addVoices.length) {\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"onAddVoiceChange($event)\" title=\"Voice (dev override)\">\n <option value=\"\">Default voice</option>\n <!-- One option per persona: two personas can share a voice id (a voice, and the same voice with a face). -->\n @for (v of addVoices; track v.PersonaID ?? v.ID) {\n <option [value]=\"v.ID\" [selected]=\"v === AddVoiceOption\">{{ v.Name }}</option>\n }\n </select>\n }\n </div>\n }\n @if (EnableTurnTaking) {\n <div class=\"mj-lk-agents__overrides\">\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"OnAddTurnModeChange($event)\" title=\"Turn-taking mode\">\n <option value=\"\">Default turn mode</option>\n @for (o of TurnModeOptions; track o.Value) {\n <option [value]=\"o.Value\" [title]=\"o.Hint\" [selected]=\"o.Value === AddTurnMode\">{{ o.Label }}</option>\n }\n </select>\n <select class=\"mj-input mj-lk-agents__select mj-lk-agents__select--sm\" (change)=\"OnAddTurnAddressingChange($event)\" title=\"How the agent decides it was addressed\">\n <option value=\"\">Default addressing</option>\n @for (o of TurnAddressingOptions; track o.Value) {\n <option [value]=\"o.Value\" [title]=\"o.Hint\" [selected]=\"o.Value === AddTurnAddressing\">{{ o.Label }}</option>\n }\n </select>\n </div>\n }\n }\n @if (addError) {\n <div class=\"mj-lk-agents__error\">{{ addError }}</div>\n }\n </div>\n }\n <div class=\"mj-lk-agents__pills\">\n <button type=\"button\" class=\"mj-lk-agents__toggle\" (click)=\"showAgentsPanel = !showAgentsPanel\">\n <i class=\"fa-solid fa-robot\"></i> Agents ({{ agentsInRoom.length }})\n </button>\n @if (EnableInvite) {\n <button type=\"button\" class=\"mj-lk-agents__toggle\" title=\"Copy a link to invite someone to this room\"\n (click)=\"CopyInvite()\">\n <i class=\"fa-solid\" [class.fa-link]=\"!inviteCopied\" [class.fa-check]=\"inviteCopied\"></i>\n {{ inviteCopied ? 'Link copied' : 'Copy link' }}\n </button>\n <button type=\"button\" class=\"mj-lk-agents__toggle\" title=\"Invite people from this workspace\"\n (click)=\"InvitePeopleRequested.emit(resolvedRoomName)\">\n <i class=\"fa-solid fa-user-plus\"></i> Invite people\n </button>\n }\n </div>\n </div>\n }\n\n @if (EnableTurnTaking && resolvedRoomName) {\n <div class=\"mj-lk-turn\">\n @if (ShowTurnPanel) {\n <div class=\"mj-lk-turn__panel\">\n <div class=\"mj-lk-agents__head mj-lk-turn__head\">\n <span>Turn-taking</span>\n <button type=\"button\" class=\"mj-lk-recording__close\" title=\"Close\" (click)=\"ToggleTurnPanel()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <mj-livekit-turn-state [State]=\"TurnState\"></mj-livekit-turn-state>\n @if (TurnError) {\n <div class=\"mj-lk-agents__error\">{{ TurnError }}</div>\n }\n </div>\n }\n <button type=\"button\" class=\"mj-lk-agents__toggle\" [class.mj-lk-turn__pill--active]=\"ShowTurnPanel\"\n title=\"Who has the floor, hand-offs, backchannels and the agent turn cap\" (click)=\"ToggleTurnPanel()\">\n <i class=\"fa-solid fa-people-arrows\"></i> {{ TurnPillLabel }}\n </button>\n </div>\n }\n </div>\n }\n `,\n styles: [\n `\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n .mj-lk-status {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n height: 100%;\n min-height: 220px;\n color: var(--mj-text-secondary, #475569);\n background: var(--mj-bg-surface-card, #f1f5f9);\n border-radius: 12px;\n }\n .mj-lk-status i {\n font-size: 1.6rem;\n color: var(--mj-brand-primary, #0076b6);\n }\n .mj-lk-status--error i {\n color: var(--mj-status-error, #ef4444);\n }\n .mj-lk-retry {\n padding: 7px 16px;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n color: var(--mj-text-inverse, #fff);\n background: var(--mj-brand-primary, #0076b6);\n }\n .mj-lk-room-wrap {\n position: relative;\n width: 100%;\n height: 100%;\n }\n /* Over the room, under its header, clear of the agents panel at the bottom left: what the agent sees, what went\n wrong with the user's devices, then one notice per agent whose avatar can't be shown. */\n .mj-lk-notices {\n position: absolute;\n top: 64px;\n left: 50%;\n transform: translateX(-50%);\n z-index: 41;\n width: min(480px, calc(100% - 32px));\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n }\n .mj-lk-notice {\n margin: 0;\n }\n .mj-lk-agents {\n position: absolute;\n left: 16px;\n bottom: 84px;\n z-index: 40;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n .mj-lk-agents__pills {\n display: flex;\n gap: 8px;\n }\n .mj-lk-agents__toggle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 7px 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 999px;\n cursor: pointer;\n font-size: 0.8125rem;\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.18));\n }\n .mj-lk-agents__panel {\n width: 260px;\n padding: 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-md, 0 6px 20px rgba(0, 0, 0, 0.25));\n }\n .mj-lk-agents__head {\n font-size: 0.6875rem;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted);\n margin-bottom: 6px;\n }\n .mj-lk-agents__row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 5px 0;\n }\n .mj-lk-agents__name {\n display: inline-flex;\n align-items: center;\n gap: 7px;\n font-size: 0.8125rem;\n color: var(--mj-text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .mj-lk-agents__name i {\n color: var(--mj-brand-primary);\n }\n .mj-lk-agents__remove {\n flex: none;\n width: 26px;\n height: 26px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-muted);\n background: transparent;\n }\n .mj-lk-agents__remove:hover:not(:disabled) {\n color: var(--mj-status-error);\n background: var(--mj-bg-surface-hover);\n }\n .mj-lk-agents__add {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid var(--mj-border-subtle, var(--mj-border-default));\n }\n .mj-lk-agents__select {\n flex: 1;\n min-width: 0;\n font-size: 0.8125rem;\n }\n .mj-lk-agents__overrides {\n display: flex;\n gap: 6px;\n margin-top: 6px;\n }\n .mj-lk-agents__select--sm {\n font-size: 0.75rem;\n }\n .mj-lk-agents__addbtn {\n flex: none;\n width: 32px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-inverse);\n background: var(--mj-brand-primary);\n }\n .mj-lk-agents__addbtn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n .mj-lk-agents__error {\n margin-top: 6px;\n font-size: 0.75rem;\n color: var(--mj-status-error-text, var(--mj-status-error));\n }\n .mj-lk-agents__turn {\n flex: none;\n color: var(--mj-text-muted);\n }\n .mj-lk-agents__turn--floor {\n color: var(--mj-brand-primary);\n }\n .mj-lk-turn {\n position: absolute;\n right: 16px;\n bottom: 84px;\n z-index: 40;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 8px;\n }\n .mj-lk-turn__panel {\n width: 300px;\n max-height: 60vh;\n overflow-y: auto;\n padding: 10px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-elevated, var(--mj-bg-surface));\n box-shadow: var(--mj-shadow-md, 0 6px 20px rgba(0, 0, 0, 0.25));\n }\n .mj-lk-turn__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .mj-lk-turn__pill--active {\n border-color: var(--mj-brand-primary);\n }\n .mj-lk-recording {\n margin-bottom: 12px;\n padding: 12px;\n border: 1px solid var(--mj-border-default);\n border-radius: 10px;\n background: var(--mj-bg-surface-card, var(--mj-bg-surface));\n }\n .mj-lk-recording__head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n }\n .mj-lk-recording__title {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--mj-text-primary);\n }\n .mj-lk-recording__title i {\n color: var(--mj-brand-primary);\n }\n .mj-lk-recording__close {\n width: 28px;\n height: 28px;\n border: none;\n border-radius: 6px;\n cursor: pointer;\n color: var(--mj-text-muted);\n background: transparent;\n }\n .mj-lk-recording__close:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n }\n `,\n ],\n})\nexport class MJLiveKitRoomComponent extends BaseAngularComponent implements OnInit {\n private readonly cdr = inject(ChangeDetectorRef);\n\n // ── MJ connection inputs ───────────────────────────────────────────────────────\n /**\n * Whether to start an agent in the room (`'agent'`), just join an existing room (`'join'`), or open the preview room\n * (`'preview'`: no token, no agent session, no recording). Read when the room is created.\n */\n @Input() public Mode: MJLiveKitConnectionMode = 'agent';\n /** The agent to voice (agent mode) — the Realtime Co-Agent / voice front-end. */\n @Input() public AgentID: string | null = null;\n /** The agent's display name (bot name + addressing). */\n @Input() public AgentName: string | null = null;\n /**\n * The TARGET agent the co-agent voices — the one being \"called\". The Realtime Co-Agent delegates to\n * it via `invoke-target-agent`; without it the agent has nobody to speak for and stays idle.\n */\n @Input() public TargetAgentID: string | null = null;\n /** The room name. Required for `'join'` mode; optional for `'agent'` (server generates one). */\n @Input() public RoomName: string | null = null;\n /** The display name the local user joins as. Defaults to the authenticated user server-side. */\n @Input() public DisplayName: string | null = null;\n /** Turn-taking mode for the agent. */\n @Input() public TurnMode: TurnModeChoice | null = null;\n /**\n * How the agent decides it was addressed: `Auto` (the default: the model's own judgement when it can give it,\n * name matching otherwise), `ModelSide`, or `Regex`. Applies to the INITIAL agent; agents added in-room pick their own.\n */\n @Input() public TurnAddressing: TurnAddressingChoice | null = null;\n /** Show the turn-taking panel (floor holder, hand-offs, backchannels, loop cap) and per-agent mode pickers. */\n @Input() public EnableTurnTaking = true;\n /** How often the turn-taking panel refreshes, in ms (clamped to a sensible minimum). */\n @Input() public TurnPollIntervalMs = TURN_POLL_DEFAULT_INTERVAL_MS;\n /** Resolve the connection automatically on init. */\n @Input() public AutoStart = true;\n\n // ── In-room agent management (agent mode) ─────────────────────────────────────────\n /** Show the in-room \"Agents\" panel to add/remove agents (agent mode only). */\n @Input() public EnableAgentManagement = true;\n /** Show the \"Invite\" pill that copies a join link to this room. */\n @Input() public EnableInvite = true;\n /**\n * Offer \"End meeting for everyone\" in the control bar's Zoom-style leave menu. When on (default) and a\n * room is resolved, ending tears down every agent in the room server-side (by name — so it works even\n * when this client only *joined*). Set `false` for contexts where only the local user should ever leave.\n */\n @Input() public EnableEndForAll = true;\n /** Target agents the user can ADD in-room (id + name). The host (e.g. the Explorer resource) supplies these. */\n @Input() public AvailableAgents: { ID: string; Name: string }[] = [];\n\n /** Per-session Realtime MODEL override for the INITIAL agent (from the host's pre-join picker). */\n @Input() public RealtimeModelID: string | null = null;\n /** Per-session VOICE override for the INITIAL agent (from the host's pre-join picker). */\n @Input() public RealtimeVoice: string | null = null;\n /**\n * Start the initial agent able to bring a person, a phone number or another agent into this same room (a \"transfer to a human\"\n * that the visitor never leaves the room for). Honoured only when the server has handoff configured; otherwise ignored.\n */\n @Input() public EnableHandoff = false;\n /**\n * Whether the dev model/voice pickers are shown in the in-room \"Add an agent\" control. The HOST\n * computes this (the `Realtime: Advanced Session Controls` authorization) and passes it down — this\n * generic component never evaluates authorizations itself.\n */\n @Input() public CanPickModelVoice = false;\n /** Active Realtime models + their voices, supplied by the host (for the add-agent dropdowns). */\n @Input() public AvailableModels: RealtimeModelVoices[] = [];\n\n /** True briefly after the invite link is copied (drives the \"Link copied\" pill state). */\n public InviteCopied = false;\n\n /** @deprecated Use {@link InviteCopied}. */\n public get inviteCopied() {\n return this.InviteCopied;\n }\n /** @deprecated Use {@link InviteCopied}. */\n public set inviteCopied(value) {\n this.InviteCopied = value;\n }\n\n /** Whether the floating agents panel is open. */\n public ShowAgentsPanel = false;\n\n /** @deprecated Use {@link ShowAgentsPanel}. */\n public get showAgentsPanel() {\n return this.ShowAgentsPanel;\n }\n /** @deprecated Use {@link ShowAgentsPanel}. */\n public set showAgentsPanel(value) {\n this.ShowAgentsPanel = value;\n }\n /** The agent bots currently bridged into the room (the first is the one started on join). */\n public AgentsInRoom: AgentInRoom[] = [];\n\n /** @deprecated Use {@link AgentsInRoom}. */\n public get agentsInRoom(): AgentInRoom[] {\n return this.AgentsInRoom;\n }\n /** @deprecated Use {@link AgentsInRoom}. */\n public set agentsInRoom(value: AgentInRoom[]) {\n this.AgentsInRoom = value;\n }\n /** The target id chosen in the \"Add an agent\" picker. */\n public AddTargetId: string | null = null;\n\n /** @deprecated Use {@link AddTargetId}. */\n public get addTargetId(): string | null {\n return this.AddTargetId;\n }\n /** @deprecated Use {@link AddTargetId}. */\n public set addTargetId(value: string | null) {\n this.AddTargetId = value;\n }\n /** The MODEL override chosen in the \"Add an agent\" picker (dev-only; null = co-agent/target default). */\n public AddModelId: string | null = null;\n\n /** @deprecated Use {@link AddModelId}. */\n public get addModelId(): string | null {\n return this.AddModelId;\n }\n /** @deprecated Use {@link AddModelId}. */\n public set addModelId(value: string | null) {\n this.AddModelId = value;\n }\n /** The VOICE override chosen in the \"Add an agent\" picker (dev-only; null = co-agent/target default). */\n public AddVoice: string | null = null;\n\n /** @deprecated Use {@link AddVoice}. */\n public get addVoice(): string | null {\n return this.AddVoice;\n }\n /** @deprecated Use {@link AddVoice}. */\n public set addVoice(value: string | null) {\n this.AddVoice = value;\n }\n /**\n * The voice option picked in the \"Add an agent\" picker (one of {@link AddVoices}), or null. Kept beside\n * {@link AddVoice} because two personas can share a voice id: the option, not the id, says which one shows picked.\n */\n public AddVoiceOption: RealtimeVoiceOption | null = null;\n /** Exposed for template use — platform-safe UUID equality (SQL upper vs PG lower). */\n public UUIDsEqual = UUIDsEqual;\n /** True while an Add request is in flight. */\n public AddingAgent = false;\n\n /** @deprecated Use {@link AddingAgent}. */\n public get addingAgent() {\n return this.AddingAgent;\n }\n /** @deprecated Use {@link AddingAgent}. */\n public set addingAgent(value) {\n this.AddingAgent = value;\n }\n /** Last add error, shown under the picker. */\n public AddError: string | null = null;\n\n /** @deprecated Use {@link AddError}. */\n public get addError(): string | null {\n return this.AddError;\n }\n /** @deprecated Use {@link AddError}. */\n public set addError(value: string | null) {\n this.AddError = value;\n }\n /** True while an \"End meeting\" (stop all agents + leave) is in flight. */\n public EndingMeeting = false;\n\n /** @deprecated Use {@link EndingMeeting}. */\n public get endingMeeting() {\n return this.EndingMeeting;\n }\n /** @deprecated Use {@link EndingMeeting}. */\n public set endingMeeting(value) {\n this.EndingMeeting = value;\n }\n\n // ── Turn-taking ────────────────────────────────────────────────────────────────────\n /** The turn-mode choices for the add-agent picker. */\n public readonly TurnModeOptions = TURN_MODE_OPTIONS;\n /** The addressing choices for the add-agent picker. */\n public readonly TurnAddressingOptions = TURN_ADDRESSING_OPTIONS;\n /** The turn mode chosen in the \"Add an agent\" picker (null = the room's default). */\n public AddTurnMode: TurnModeChoice | null = null;\n /** The addressing mode chosen in the \"Add an agent\" picker (null = Auto). */\n public AddTurnAddressing: TurnAddressingChoice | null = null;\n /** Whether the turn-taking panel is open. */\n public ShowTurnPanel = false;\n /** The room's latest turn-taking state (`null` until the first poll of a room with agents answers). */\n public TurnState: LiveKitRoomTurnState | null = null;\n /** The latest turn-taking poll error, shown in the panel. */\n public TurnError: string | null = null;\n /** The label on the turn-taking pill; names the floor holder when there is one. */\n public TurnPillLabel = 'Turns';\n /** Each seated agent's turn-taking badge, keyed by lowercase bridge-session id. */\n public RosterBadges = new Map<string, RosterTurnBadge>();\n\n private readonly destroyRef = inject(DestroyRef);\n private turnPoller: TurnStatePoller | null = null;\n\n /** The inner Generic room — used to trigger the local disconnect when ending/leaving the meeting. */\n @ViewChild(LiveKitRoomComponent) private roomComponent?: LiveKitRoomComponent;\n\n /** Available agents not already in the room (by target id) — the \"Add\" picker options. */\n public get AvailableToAdd(): { ID: string; Name: string }[] {\n const present = new Set(this.AgentsInRoom.map((a) => (a.TargetAgentID ?? '').toLowerCase()));\n return this.AvailableAgents.filter((a) => !present.has(a.ID.toLowerCase()));\n }\n\n /** @deprecated Use {@link AvailableToAdd}. */\n public get availableToAdd(): { ID: string; Name: string }[] {\n return this.AvailableToAdd;\n }\n\n /** Voices for the model chosen in the add-agent picker (empty when no model picked or it has none). */\n public get AddVoices(): RealtimeVoiceOption[] {\n const model = this.AvailableModels.find((m) => UUIDsEqual(m.ModelID, this.AddModelId));\n return model?.Voices ?? [];\n }\n\n /** @deprecated Use {@link AddVoices}. */\n public get addVoices(): RealtimeVoiceOption[] {\n return this.AddVoices;\n }\n\n /** Records the add-agent MODEL choice; clears the voice so it can't outlive a model switch. */\n public OnAddModelChange(event: Event): void {\n this.AddModelId = (event.target as HTMLSelectElement).value || null;\n this.AddVoice = null;\n this.AddVoiceOption = null;\n }\n\n /** @deprecated Use {@link OnAddModelChange}. */\n public onAddModelChange(event: Event): void {\n return this.OnAddModelChange(event);\n }\n\n /**\n * Records the add-agent VOICE choice: the picked option, found by its position (two personas can share a voice id,\n * so the value can't tell them apart; option 0 is \"Default voice\"), and its voice id.\n */\n public OnAddVoiceChange(event: Event): void {\n this.AddVoiceOption = this.AddVoices[(event.target as HTMLSelectElement).selectedIndex - 1] ?? null;\n this.AddVoice = this.AddVoiceOption?.ID ?? null;\n }\n\n /** @deprecated Use {@link OnAddVoiceChange}. */\n public onAddVoiceChange(event: Event): void {\n return this.OnAddVoiceChange(event);\n }\n\n // ── Forwarded UI gates (see LiveKitRoomComponent) ────────────────────────────────\n /** @see LiveKitRoomComponent.Layout */\n @Input() public Layout: LiveKitRoomLayout = 'grid';\n /** @see LiveKitRoomComponent.Title */\n @Input() public Title: string | null = null;\n /** @see LiveKitRoomComponent.ShowHeader */\n @Input() public ShowHeader = true;\n /** @see LiveKitRoomComponent.ShowControlBar */\n @Input() public ShowControlBar = true;\n /** @see LiveKitRoomComponent.ShowChat */\n @Input() public ShowChat = true;\n /** @see LiveKitRoomComponent.ShowParticipantsPanel */\n @Input() public ShowParticipantsPanel = true;\n /** @see LiveKitRoomComponent.EnableMicrophoneControl */\n @Input() public EnableMicrophoneControl = true;\n /** @see LiveKitRoomComponent.EnableCameraControl */\n @Input() public EnableCameraControl = true;\n /** @see LiveKitRoomComponent.EnableScreenShareControl */\n @Input() public EnableScreenShareControl = true;\n /** @see LiveKitRoomComponent.EnableDeviceSettings */\n @Input() public EnableDeviceSettings = true;\n /** @see LiveKitRoomComponent.EnableLeaveControl */\n @Input() public EnableLeaveControl = true;\n /** @see LiveKitRoomComponent.StartWithMicrophone */\n @Input() public StartWithMicrophone = true;\n /** @see LiveKitRoomComponent.StartWithCamera */\n @Input() public StartWithCamera = false;\n /** @see LiveKitRoomComponent.AgentAvatarUrl */\n @Input() public AgentAvatarUrl: string | null = null;\n /** @see LiveKitRoomComponent.EnablePinning */\n @Input() public EnablePinning = true;\n /** @see LiveKitRoomComponent.EnableLayoutSwitcher */\n @Input() public EnableLayoutSwitcher = true;\n /** @see LiveKitRoomComponent.EnableNoiseFilter */\n @Input() public EnableNoiseFilter = false;\n /** @see LiveKitRoomComponent.EnableBackgroundEffects */\n @Input() public EnableBackgroundEffects = false;\n /** @see LiveKitRoomComponent.ShowAgentState */\n @Input() public ShowAgentState = false;\n /** @see LiveKitRoomComponent.ShowWhiteboard */\n @Input() public ShowWhiteboard = false;\n /** @see LiveKitRoomComponent.ShowPreJoin */\n @Input() public ShowPreJoin = false;\n /** @see LiveKitRoomComponent.EnableAgentVisionControl */\n @Input() public EnableAgentVisionControl = true;\n /**\n * The host's own words for why the room shows an agent without its avatar, per reason (for example its product's name\n * for \"this app\"), shown as written; `{Agent}` stands for the agent's name. `unknown` words a reason the room doesn't\n * know, such as a newer bot's. A reason it leaves out keeps the stock line, which names the agent.\n */\n @Input() public AvatarNoticeLabels: AvatarNoticeOverrides | null = null;\n /** Enable the server-authorized recording control (composite egress). */\n @Input() public EnableRecording = false;\n /** @see LiveKitRoomComponent.E2EEPassphrase */\n @Input() public E2EEPassphrase: string | null = null;\n /** @see LiveKitRoomComponent.E2EEWorker */\n @Input() public E2EEWorker: Worker | null = null;\n /** Advanced livekit-client room options merged into the constructed Room (overrides speech defaults). */\n @Input() public RoomOptions?: RoomOptions;\n\n // ── Outputs ────────────────────────────────────────────────────────────────────\n /** Emitted once the agent room session is started (agent mode). */\n @Output() public SessionStarted = new EventEmitter<MJLiveKitSessionStartedEvent>();\n /**\n * Emitted (with the room name) when the user clicks \"Invite people\". The host (e.g. the Explorer\n * resource) opens an MJ user-picker and calls the invite mutation — kept out of this generic\n * component, which knows nothing about MJ users.\n */\n @Output() public InvitePeopleRequested = new EventEmitter<string>();\n /** Emitted when the room connects. */\n @Output() public Connected = new EventEmitter<LiveKitRoomState>();\n /** Emitted when the room disconnects. */\n @Output() public Disconnected = new EventEmitter<LiveKitDisconnectedEvent>();\n /** Emitted when a participant joins. */\n @Output() public ParticipantJoined = new EventEmitter<LiveKitParticipantJoinedEvent>();\n /** Emitted when a participant leaves. */\n @Output() public ParticipantLeft = new EventEmitter<LiveKitParticipantLeftEvent>();\n /** Emitted for inbound data-channel messages. */\n @Output() public DataReceived = new EventEmitter<LiveKitDataMessage>();\n /** Emitted on room errors (and on token/session-resolution failures). */\n @Output() public ErrorOccurred = new EventEmitter<LiveKitRoomError>();\n\n // ── View state ─────────────────────────────────────────────────────────────────\n /** Whether the binding is resolving the token/session. */\n public Loading = false;\n\n /** @deprecated Use {@link Loading}. */\n public get loading() {\n return this.Loading;\n }\n /** @deprecated Use {@link Loading}. */\n public set loading(value) {\n this.Loading = value;\n }\n /** The token/session-resolution error, if any. */\n public errorMessage: string | null = null;\n /** The resolved LiveKit server URL. */\n public ServerUrl: string | null = null;\n\n /** @deprecated Use {@link ServerUrl}. */\n public get serverUrl(): string | null {\n return this.ServerUrl;\n }\n /** @deprecated Use {@link ServerUrl}. */\n public set serverUrl(value: string | null) {\n this.ServerUrl = value;\n }\n /** The resolved access token. */\n public Token: string | null = null;\n\n /** @deprecated Use {@link Token}. */\n public get token(): string | null {\n return this.Token;\n }\n /** @deprecated Use {@link Token}. */\n public set token(value: string | null) {\n this.Token = value;\n }\n /** The display name passed to the room. */\n public ResolvedDisplayName: string | null = null;\n\n /** @deprecated Use {@link ResolvedDisplayName}. */\n public get resolvedDisplayName(): string | null {\n return this.ResolvedDisplayName;\n }\n /** @deprecated Use {@link ResolvedDisplayName}. */\n public set resolvedDisplayName(value: string | null) {\n this.ResolvedDisplayName = value;\n }\n /** The resolved room name (for recording and agent-vision calls). */\n public ResolvedRoomName: string | null = null;\n\n /**\n * Why the server could not record the user's last choice of what the agent sees, shown over the room until they\n * dismiss it or choose again; `null` when there is nothing to say.\n */\n public AgentVisionNotice: string | null = null;\n\n /**\n * What went wrong with the user's microphone, camera, speaker or share while the room was connected, such as a share\n * the browser refused, shown over the room until they dismiss it, ask for another change to their devices, or leave;\n * `null` when there is nothing to say. A share picker the user closed is no error, so it says nothing.\n */\n public DeviceNotice: string | null = null;\n\n /** Which agents' notices show that the meeting can't show their avatar: once per agent per join. */\n private readonly avatarNotices = new AgentAvatarNotices(() => this.cdr.markForCheck());\n\n /**\n * The notices over the room that an agent's avatar can't be shown, oldest first: one per agent per join, for everyone\n * in the room, from the agent's bot. Each hides itself after a while or when dismissed.\n */\n public get AvatarNotices(): readonly AgentAvatarNotice[] {\n return this.avatarNotices.Visible;\n }\n\n /** A notice's line, naming the agent, in the host's words when it gave some ({@link AvatarNoticeLabels}). */\n public AvatarNoticeLine(notice: AgentAvatarNotice): string {\n return AvatarNoticeText(notice.Reason ?? null, this.AvatarNoticeLabels, notice.AgentName, { NameAgent: true });\n }\n\n /** @deprecated Use {@link ResolvedRoomName}. */\n public get resolvedRoomName(): string | null {\n return this.ResolvedRoomName;\n }\n /** @deprecated Use {@link ResolvedRoomName}. */\n public set resolvedRoomName(value: string | null) {\n this.ResolvedRoomName = value;\n }\n /** Whether a recording is currently in progress. */\n public IsRecording = false;\n\n /** @deprecated Use {@link IsRecording}. */\n public get isRecording() {\n return this.IsRecording;\n }\n /** @deprecated Use {@link IsRecording}. */\n public set isRecording(value) {\n this.IsRecording = value;\n }\n /** The active egress id, when recording. */\n private currentEgressId: string | null = null;\n\n /**\n * The `MJ: Files` id of this room's meeting recording, when one exists — set when a recording is STOPPED\n * (the server registers the egress MP4 and returns its file id) or resolved for an already-recorded room\n * on join. Drives the {@link MJStorageMediaPlayerComponent} playback panel.\n */\n public RecordingFileId: string | null = null;\n\n /** @deprecated Use {@link RecordingFileId}. */\n public get recordingFileId(): string | null {\n return this.RecordingFileId;\n }\n /** @deprecated Use {@link RecordingFileId}. */\n public set recordingFileId(value: string | null) {\n this.RecordingFileId = value;\n }\n /** Whether the recording playback panel is shown (dismissable). */\n public ShowRecordingPanel = true;\n\n /** @deprecated Use {@link ShowRecordingPanel}. */\n public get showRecordingPanel() {\n return this.ShowRecordingPanel;\n }\n /** @deprecated Use {@link ShowRecordingPanel}. */\n public set showRecordingPanel(value) {\n this.ShowRecordingPanel = value;\n }\n\n /** Where the user moved participants' tiles, as saved for them; given to the room, and saved again as they change. */\n public TileMoves: readonly MediaPlacementMove[] = [];\n /** Where the user put picture-in-picture boxes, by participant identity, as saved for them. */\n public PipRects: ReadonlyMap<string, MediaPipRect> = new Map();\n /** Whether the user hid their self-view, as saved for them; given to the room, and saved again as they change it. */\n public SelfViewHidden = false;\n\n /** The user's meeting layout, saved per user under the room's keys in the provider's settings. */\n private readonly meetingLayoutPrefs = new MediaLayoutPrefs(() => this.userInfoEngine(), {\n Moves: LIVEKIT_PLACEMENT_PREF_KEY,\n PipRects: LIVEKIT_PIP_PREF_KEY,\n SelfViewHidden: LIVEKIT_SELF_VIEW_HIDDEN_PREF_KEY,\n });\n /** The preview room's layout, saved the same way under its own keys. */\n private readonly previewLayoutPrefs = new MediaLayoutPrefs(() => this.userInfoEngine(), {\n Moves: LIVEKIT_PREVIEW_PLACEMENT_PREF_KEY,\n PipRects: LIVEKIT_PREVIEW_PIP_PREF_KEY,\n SelfViewHidden: LIVEKIT_PREVIEW_SELF_VIEW_HIDDEN_PREF_KEY,\n });\n\n /** Where this room's layout is saved: the preview room's own keys in preview mode, the meeting room's otherwise. */\n private get layoutPrefs(): MediaLayoutPrefs {\n return this.Mode === 'preview' ? this.previewLayoutPrefs : this.meetingLayoutPrefs;\n }\n\n /** The user moved a tile or reset the layout: keep the room's moves and save them. */\n public OnTileMovesChange(moves: readonly MediaPlacementMove[]): void {\n this.TileMoves = moves;\n this.layoutPrefs.SaveMoves(moves);\n }\n\n /** The user moved or resized a box, or reset the layout: keep the boxes and save them. */\n public OnPipRectsChange(rects: ReadonlyMap<string, MediaPipRect>): void {\n this.PipRects = rects;\n this.layoutPrefs.SavePipRects(rects);\n }\n\n /**\n * The user hid their self-view, showed it again, or reset the layout: keep it and save it. When saving fails, it still\n * holds for this session.\n */\n public OnSelfViewHiddenChange(hidden: boolean): void {\n this.SelfViewHidden = hidden;\n this.layoutPrefs.SaveSelfViewHidden(hidden);\n }\n\n /**\n * The user chose whether agents may see their camera and screen. The preview room records it at once. In a meeting,\n * MJAPI records it, since a participant's token can't change its own attributes, and the room shows the change when\n * LiveKit reports it; when MJAPI can't, a notice says why.\n */\n public OnAgentVisionChange(on: boolean): void {\n const controller = this.roomComponent?.Controller;\n if (controller instanceof LiveKitPreviewRoomController) {\n controller.SetAgentVision(on);\n return;\n }\n void this.recordAgentVision(on);\n }\n\n /** Asks MJAPI to record the user's choice for this room; when it can't, shows why and emits the error. */\n private async recordAgentVision(on: boolean): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n this.AgentVisionNotice = null;\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const result = await client.SetAgentVision(this.ResolvedRoomName, on);\n if (!result.Success) {\n const words = AgentVisionText(this.roomComponent?.AgentCount ?? 1);\n this.AgentVisionNotice = `${words.ChangeFailed}: ${result.ErrorMessage ?? 'unknown error'}`;\n this.ErrorOccurred.emit({ Kind: 'agent-vision', Message: this.AgentVisionNotice });\n }\n this.cdr.markForCheck();\n }\n\n /** The room's state changed: a notice shows for each agent whose bot newly says the meeting can't show its avatar. */\n public OnRoomStateChanged(state: LiveKitRoomState): void {\n this.avatarNotices.Update(state);\n }\n\n /** The room disconnected: its notices go, and joining again shows each agent's once more. */\n public OnRoomDisconnected(event: LiveKitDisconnectedEvent): void {\n this.avatarNotices.Reset();\n this.DeviceNotice = null;\n this.Disconnected.emit(event);\n }\n\n /**\n * The room reported an error: the host hears it ({@link ErrorOccurred}), and a device error while the room is\n * connected shows over the room ({@link DeviceNotice}), the latest in place of any earlier one. Until the room\n * connects, it shows its own connection overlay, which says why a join failed.\n */\n public OnRoomError(error: LiveKitRoomError): void {\n const line = this.roomComponent?.IsConnected ? DeviceErrorNoticeText(error) : null;\n if (line) {\n this.DeviceNotice = line;\n this.cdr.markForCheck();\n }\n this.ErrorOccurred.emit(error);\n }\n\n /**\n * The user asked for a change to their devices (turned the microphone, camera or share on or off, or switched a\n * device): the device notice goes, since it was about an earlier request. Should this one fail too, its own shows.\n */\n public OnDeviceChangeRequested(): void {\n if (this.DeviceNotice) {\n this.DeviceNotice = null;\n this.cdr.markForCheck();\n }\n }\n\n /** The user dismissed an agent's avatar notice: it does not show again in this join. */\n public OnAvatarNoticeDismissed(identity: string): void {\n this.avatarNotices.Dismiss(identity);\n }\n\n /**\n * The settings engine for this component's provider. A host that never ran startup (lazy startup) can hand back an\n * engine that has not loaded the user's settings; the loaded global one is used then.\n */\n private userInfoEngine(): UserInfoEngine {\n const provider = this.ProviderToUse;\n const engine = provider ? (UserInfoEngine.GetProviderInstance<UserInfoEngine>(provider, UserInfoEngine) as UserInfoEngine) : UserInfoEngine.Instance;\n return engine.Loaded ? engine : UserInfoEngine.Instance;\n }\n\n public ngOnInit(): void {\n this.TileMoves = this.layoutPrefs.LoadMoves();\n this.PipRects = this.layoutPrefs.LoadPipRects();\n this.SelfViewHidden = this.layoutPrefs.LoadSelfViewHidden();\n this.destroyRef.onDestroy(() => this.turnPoller?.Dispose());\n this.destroyRef.onDestroy(() => this.avatarNotices.Dispose());\n if (this.AutoStart) {\n void this.Start();\n }\n // If this room already has a registered recording (e.g. joining/reviewing a past room), surface it.\n if (this.RoomName) {\n void this.loadExistingRecording(this.RoomName);\n }\n }\n\n /**\n * Max time to wait for the connection to start before surfacing a retryable error, so a hung or very\n * slow server (e.g. an agent bot that can't reach the LiveKit media path) doesn't spin forever. Set\n * `0` to disable the client-side timeout.\n */\n @Input() public ConnectTimeoutMs = 25000;\n\n /** Resolves the connection (mints a token and, in agent mode, starts the agent session). A new join, too. */\n public async Start(): Promise<void> {\n this.Loading = true;\n this.errorMessage = null;\n this.avatarNotices.Reset();\n this.DeviceNotice = null;\n this.cdr.markForCheck();\n try {\n if (this.Mode === 'preview') {\n this.openPreview();\n return;\n }\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n this.ResolvedDisplayName = this.DisplayName;\n const connect = this.Mode === 'agent' ? this.startAgentSession(client) : this.joinRoom(client);\n await this.withTimeout(connect, this.ConnectTimeoutMs);\n } catch (err) {\n this.fail(err instanceof Error ? err.message : String(err));\n } finally {\n this.Loading = false;\n this.cdr.markForCheck();\n }\n }\n\n /**\n * Races `op` against a timeout: if it hasn't settled within `ms`, rejects with a clear, retryable\n * message (the template's \"Try again\" button re-runs {@link Start}). A non-positive `ms` disables it.\n */\n private withTimeout<T>(op: Promise<T>, ms: number): Promise<T> {\n if (!ms || ms <= 0) {\n return op;\n }\n return new Promise<T>((resolve, reject) => {\n const timer = setTimeout(\n () =>\n reject(\n new Error(\n 'The connection is taking too long — the agent could not join the room. ' +\n 'Check that the LiveKit server is running and reachable, then try again.',\n ),\n ),\n ms,\n );\n op.then(\n (value) => {\n clearTimeout(timer);\n resolve(value);\n },\n (error) => {\n clearTimeout(timer);\n reject(error);\n },\n );\n });\n }\n\n /** Starts the agent room session and applies the returned client token. */\n private async startAgentSession(client: GraphQLLiveKitClient): Promise<void> {\n const result = await client.StartAgentRoomSession({\n AgentID: this.AgentID ?? undefined,\n AgentName: this.AgentName ?? undefined,\n TargetAgentID: this.TargetAgentID ?? undefined,\n RealtimeModelID: this.RealtimeModelID ?? undefined,\n RealtimeVoice: this.RealtimeVoice ?? undefined,\n RoomName: this.RoomName ?? undefined,\n TurnMode: this.TurnMode ?? undefined,\n EnableHandoff: this.EnableHandoff || undefined,\n TurnAddressing: this.TurnAddressing ?? undefined,\n });\n if (!result.Success) {\n this.fail(result.ErrorMessage ?? 'Failed to start the agent session.');\n return;\n }\n this.ServerUrl = result.ServerUrl;\n this.Token = result.ClientToken;\n this.ResolvedRoomName = result.RoomName;\n // Surface a prior recording for this resolved room (the server may have generated the room name).\n void this.loadExistingRecording(result.RoomName);\n // Track the agent we just brought in as the first entry in the in-room roster.\n this.AgentsInRoom = [\n { SessionBridgeID: result.SessionBridgeID, TargetAgentID: this.TargetAgentID, Name: this.AgentName ?? 'Agent' },\n ];\n this.SessionStarted.emit({ SessionBridgeID: result.SessionBridgeID, RoomName: result.RoomName });\n this.syncTurnPolling();\n }\n\n /** Picker selection handler for the in-room \"Add an agent\" control (native select; no FormsModule dep). */\n public OnAddTargetChange(event: Event): void {\n this.AddTargetId = (event.target as HTMLSelectElement).value || null;\n this.AddError = null;\n }\n\n /** @deprecated Use {@link OnAddTargetChange}. */\n public onAddTargetChange(event: Event): void {\n return this.OnAddTargetChange(event);\n }\n\n /**\n * Adds another agent to the SAME room — starts a new bridge (the co-agent voicing the chosen target)\n * and appends it to the roster. The new bot joins the live room alongside the existing participants.\n */\n public async AddAgent(): Promise<void> {\n if (!this.AddTargetId || !this.ResolvedRoomName || this.AddingAgent) {\n return;\n }\n const target = this.AvailableAgents.find((a) => UUIDsEqual(a.ID, this.AddTargetId));\n this.AddingAgent = true;\n this.AddError = null;\n this.cdr.markForCheck();\n try {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const result = await client.StartAgentRoomSession({\n AgentID: this.AgentID ?? undefined,\n AgentName: target?.Name ?? undefined,\n TargetAgentID: this.AddTargetId,\n RealtimeModelID: this.AddModelId ?? undefined,\n RealtimeVoice: this.AddVoice ?? undefined,\n RoomName: this.ResolvedRoomName,\n TurnMode: this.AddTurnMode ?? this.TurnMode ?? undefined,\n TurnAddressing: this.AddTurnAddressing ?? this.TurnAddressing ?? undefined,\n });\n if (!result.Success) {\n this.AddError = result.ErrorMessage ?? 'Failed to add the agent.';\n return;\n }\n this.AgentsInRoom = [\n ...this.AgentsInRoom,\n { SessionBridgeID: result.SessionBridgeID, TargetAgentID: this.AddTargetId, Name: target?.Name ?? 'Agent' },\n ];\n this.AddTargetId = null;\n this.AddModelId = null;\n this.AddVoice = null;\n this.AddVoiceOption = null;\n this.AddTurnMode = null;\n this.AddTurnAddressing = null;\n this.syncTurnPolling();\n } catch (err) {\n this.AddError = err instanceof Error ? err.message : String(err);\n } finally {\n this.AddingAgent = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Removes an agent from the room — stops its bridge and drops it from the roster. */\n public async RemoveAgent(agent: AgentInRoom): Promise<void> {\n if (agent.Removing) {\n return;\n }\n agent.Removing = true;\n this.cdr.markForCheck();\n try {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n const ok = await client.StopAgentRoomSession(agent.SessionBridgeID);\n if (ok) {\n this.AgentsInRoom = this.AgentsInRoom.filter((a) => a.SessionBridgeID !== agent.SessionBridgeID);\n this.syncTurnPolling();\n } else {\n agent.Removing = false;\n }\n } catch {\n agent.Removing = false;\n } finally {\n this.cdr.markForCheck();\n }\n }\n\n /**\n * **End meeting** (the Zoom/Teams \"End for all\", reached from the control-bar leave menu): tears down EVERY\n * agent in the room server-side — *by room name*, so it works even when this client only **joined** the room\n * and never tracked the bridge ids locally — then disconnects the local user. Contrast with **Leave** (the\n * other menu item → {@link LiveKitRoomComponent.Leave}), which only disconnects YOU and lets the meeting\n * continue; the server then auto-leaves the agents once the last human is gone, so neither path strands\n * billable agent sessions in an empty room.\n */\n public async EndMeeting(): Promise<void> {\n if (this.EndingMeeting) {\n return;\n }\n this.EndingMeeting = true;\n this.cdr.markForCheck();\n try {\n if (this.ResolvedRoomName) {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n await client.EndRoom(this.ResolvedRoomName);\n }\n this.AgentsInRoom = [];\n this.syncTurnPolling();\n } catch {\n /* best-effort — fall through and still disconnect the local user */\n } finally {\n await this.roomComponent?.Leave();\n this.EndingMeeting = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Enables or disables the local user's microphone (e.g., when placing a contact-center call on hold). */\n public async SetMicrophoneEnabled(enabled: boolean): Promise<void> {\n await this.roomComponent?.Controller?.SetMicrophoneEnabled(enabled);\n }\n\n /**\n * Builds the shareable invite URL for THIS room: the current page URL with a `room=<roomName>` query\n * param. Opening it lands the invitee on the Live Room in join mode for the same room.\n */\n public get InviteUrl(): string {\n const url = new URL(window.location.href);\n url.searchParams.set('room', this.ResolvedRoomName ?? '');\n return url.toString();\n }\n\n /** @deprecated Use {@link InviteUrl}. */\n public get inviteUrl(): string {\n return this.InviteUrl;\n }\n\n /** Copies {@link inviteUrl} to the clipboard and flips the pill to \"Link copied\" briefly. */\n public async CopyInvite(): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n try {\n await navigator.clipboard.writeText(this.InviteUrl);\n this.InviteCopied = true;\n this.cdr.markForCheck();\n setTimeout(() => {\n this.InviteCopied = false;\n this.cdr.markForCheck();\n }, 2000);\n } catch {\n // Clipboard blocked (insecure context / permissions) — leave the pill unchanged.\n }\n }\n\n /**\n * Opens the preview room: nothing is minted and no agent session starts. You join as the signed-in user unless\n * {@link DisplayName} names someone else.\n */\n private openPreview(): void {\n this.ResolvedDisplayName = this.DisplayName ?? this.ProviderToUse?.CurrentUser?.Name ?? null;\n this.ServerUrl = PREVIEW_SERVER_URL;\n this.Token = PREVIEW_TOKEN;\n }\n\n /** Joins an existing room by minting a client token. */\n private async joinRoom(client: GraphQLLiveKitClient): Promise<void> {\n if (!this.RoomName) {\n this.fail('RoomName is required when Mode is \"join\".');\n return;\n }\n const result = await client.MintClientToken({ RoomName: this.RoomName, DisplayName: this.DisplayName ?? undefined });\n if (!result.Success) {\n this.fail(result.ErrorMessage ?? 'Failed to obtain a room token.');\n return;\n }\n this.ServerUrl = result.ServerUrl;\n this.Token = result.Token;\n this.ResolvedRoomName = this.RoomName;\n this.syncTurnPolling();\n }\n\n /** Records the add-agent turn-mode choice. */\n public OnAddTurnModeChange(event: Event): void {\n this.AddTurnMode = ParseTurnMode((event.target as HTMLSelectElement).value);\n }\n\n /** Records the add-agent addressing choice. */\n public OnAddTurnAddressingChange(event: Event): void {\n this.AddTurnAddressing = ParseTurnAddressing((event.target as HTMLSelectElement).value);\n }\n\n /** Opens or closes the turn-taking panel, starting or stopping the live refresh to match. */\n public ToggleTurnPanel(): void {\n this.ShowTurnPanel = !this.ShowTurnPanel;\n this.syncTurnPolling();\n this.cdr.markForCheck();\n }\n\n /** Starts or stops polling the room's turn-taking state to match what is on screen and who is seated. */\n private syncTurnPolling(): void {\n const room = this.ResolvedRoomName;\n if (!room || !ShouldPollTurnState(this.EnableTurnTaking, room, this.AgentsInRoom.length, this.ShowTurnPanel)) {\n this.turnPoller?.Stop();\n return;\n }\n this.ensureTurnPoller().Start(room);\n }\n\n private ensureTurnPoller(): TurnStatePoller {\n if (!this.turnPoller) {\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n this.turnPoller = new TurnStatePoller((room) => client.GetRoomTurnState(room), this.TurnPollIntervalMs);\n this.turnPoller.State$.subscribe((state) => this.onTurnState(state));\n this.turnPoller.Error$.subscribe((error) => {\n this.TurnError = error;\n this.cdr.markForCheck();\n });\n }\n return this.turnPoller;\n }\n\n private onTurnState(state: LiveKitRoomTurnState | null): void {\n this.TurnState = state;\n this.TurnPillLabel = state && state.Agents.length > 0 ? SummarizeFloor(state).Label : 'Turns';\n this.RosterBadges = this.buildRosterBadges(state);\n this.cdr.markForCheck();\n }\n\n private buildRosterBadges(state: LiveKitRoomTurnState | null): Map<string, RosterTurnBadge> {\n const badges = new Map<string, RosterTurnBadge>();\n for (const agent of this.AgentsInRoom) {\n const badge = BuildRosterTurnBadge(state, agent.SessionBridgeID);\n if (badge) {\n badges.set(agent.SessionBridgeID.toLowerCase(), badge);\n }\n }\n return badges;\n }\n\n /** Toggles room recording via the RealtimeBridge GraphQL surface (server-authorized egress). */\n public async OnToggleRecording(): Promise<void> {\n if (!this.ResolvedRoomName) {\n return;\n }\n const client = new GraphQLLiveKitClient(this.ProviderToUse as unknown as GraphQLDataProvider);\n if (!this.IsRecording) {\n const result = await client.StartRecording(this.ResolvedRoomName);\n if (result.Success) {\n this.IsRecording = true;\n this.currentEgressId = result.EgressID;\n } else {\n this.fail(result.ErrorMessage ?? 'Failed to start recording.');\n }\n } else if (this.currentEgressId) {\n const stopped = await client.StopRecording(this.currentEgressId);\n this.IsRecording = false;\n this.currentEgressId = null;\n // The server registers the egress MP4 as an MJ: Files row on stop and returns its id — surface it\n // in the playback panel. Absent when meeting-recording storage isn't configured server-side.\n if (stopped.Success && stopped.RecordingFileID) {\n this.RecordingFileId = stopped.RecordingFileID;\n this.ShowRecordingPanel = true;\n }\n }\n this.cdr.markForCheck();\n }\n\n /** @deprecated Use {@link OnToggleRecording}. */\n public async onToggleRecording(): Promise<void> {\n return this.OnToggleRecording();\n }\n\n /**\n * Resolves this room's already-registered meeting recording (if any) — the `MJ: Conversations` of\n * `Type='Meeting Room'` keyed by the room name carries the `RecordingFileID`. Best-effort: any failure\n * just leaves the playback panel hidden.\n *\n * @param roomName The LiveKit room name (= the Meeting-Room Conversation's `ExternalID`).\n */\n private async loadExistingRecording(roomName: string): Promise<void> {\n try {\n const escaped = roomName.replace(/'/g, \"''\");\n const result = await RunView.FromMetadataProvider(this.ProviderToUse).RunView<{ RecordingFileID: string | null }>(\n {\n EntityName: 'MJ: Conversations',\n ExtraFilter: `ExternalID='${escaped}' AND Type='Meeting Room' AND RecordingFileID IS NOT NULL`,\n Fields: ['RecordingFileID'],\n OrderBy: '__mj_CreatedAt DESC',\n MaxRows: 1,\n SkipTotalRowCount: true,\n ResultType: 'simple',\n },\n this.ProviderToUse.CurrentUser,\n );\n const fileId = result.Success ? result.Results[0]?.RecordingFileID ?? null : null;\n if (fileId) {\n this.RecordingFileId = fileId;\n this.cdr.markForCheck();\n }\n } catch {\n // best-effort — no recording panel\n }\n }\n\n /** Records a failure and emits an error event. */\n private fail(message: string): void {\n this.errorMessage = message;\n this.ErrorOccurred.emit({ Kind: 'connect', Message: message });\n }\n}\n\n/**\n * The room's controller, by the host's mode: in `'preview'` mode the preview room's, on the camera and microphone that\n * `LOCAL_MEDIA_CONTROLLER_FACTORY` provides; otherwise whatever is provided above the host (LiveKit's by default). The\n * room calls it once, when it is created, after the host's inputs are set.\n */\nfunction roomControllerFactory(): () => ILiveKitRoomController {\n const host = inject(MJLiveKitRoomComponent);\n const localMedia = inject(LOCAL_MEDIA_CONTROLLER_FACTORY);\n const outer = inject(LIVEKIT_ROOM_CONTROLLER_FACTORY, { skipSelf: true });\n return () => (host.Mode === 'preview' ? new LiveKitPreviewRoomController({ LocalMedia: localMedia }) : outer());\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-mj-livekit-room",
|
|
3
|
-
"version": "6.2.0
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "MemberJunction: MJ binding layer for the LiveKit room UI. Wraps @memberjunction/ng-livekit-room and connects it to the MJ realtime-bridge infrastructure — mints scoped tokens and starts agent room sessions via the RealtimeBridge GraphQL surface, threading MJ user/provider/agent context.",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@angular/compiler": "21.2.22",
|
|
21
21
|
"@angular/compiler-cli": "21.2.22",
|
|
22
|
-
"@memberjunction/ng-test-utils": "6.2.0
|
|
22
|
+
"@memberjunction/ng-test-utils": "6.2.0",
|
|
23
23
|
"vitest": "^4.0.18"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"rxjs": "^7.8.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@memberjunction/ai-realtime-client": "6.2.0
|
|
33
|
-
"@memberjunction/core": "6.2.0
|
|
34
|
-
"@memberjunction/core-entities": "6.2.0
|
|
35
|
-
"@memberjunction/global": "6.2.0
|
|
36
|
-
"@memberjunction/graphql-dataprovider": "6.2.0
|
|
37
|
-
"@memberjunction/livekit-room-core": "6.2.0
|
|
38
|
-
"@memberjunction/ng-base-types": "6.2.0
|
|
39
|
-
"@memberjunction/ng-livekit-room": "6.2.0
|
|
40
|
-
"@memberjunction/ng-media-player": "6.2.0
|
|
41
|
-
"@memberjunction/ng-realtime-media": "6.2.0
|
|
42
|
-
"@memberjunction/ng-ui-components": "6.2.0
|
|
32
|
+
"@memberjunction/ai-realtime-client": "6.2.0",
|
|
33
|
+
"@memberjunction/core": "6.2.0",
|
|
34
|
+
"@memberjunction/core-entities": "6.2.0",
|
|
35
|
+
"@memberjunction/global": "6.2.0",
|
|
36
|
+
"@memberjunction/graphql-dataprovider": "6.2.0",
|
|
37
|
+
"@memberjunction/livekit-room-core": "6.2.0",
|
|
38
|
+
"@memberjunction/ng-base-types": "6.2.0",
|
|
39
|
+
"@memberjunction/ng-livekit-room": "6.2.0",
|
|
40
|
+
"@memberjunction/ng-media-player": "6.2.0",
|
|
41
|
+
"@memberjunction/ng-realtime-media": "6.2.0",
|
|
42
|
+
"@memberjunction/ng-ui-components": "6.2.0",
|
|
43
43
|
"livekit-client": "^2.7.4",
|
|
44
44
|
"tslib": "^2.8.1"
|
|
45
45
|
},
|