@webex/plugin-meetings 3.12.0-next.15 → 3.12.0-next.151
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.
- package/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +207 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +2 -2
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +99 -4
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +37 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +46 -10
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/hashTree/constants.js +4 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1096 -391
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +20 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +75 -15
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +615 -176
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +15 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +7 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1684 -835
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +37 -3
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +9 -3
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +300 -128
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +7 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +62 -15
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/constants.d.ts +13 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
- package/dist/types/hashTree/utils.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +106 -8
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +22 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +6 -0
- package/dist/types/meeting/index.d.ts +176 -11
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +9 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +40 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +6 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +3 -0
- package/dist/webinar/index.js +307 -161
- package/dist/webinar/index.js.map +1 -1
- package/package.json +23 -23
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +6 -4
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +122 -2
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +2 -2
- package/src/constants.ts +21 -3
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/index.ts +62 -10
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +861 -193
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +6 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +566 -164
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +26 -1
- package/src/media/MediaConnectionAwaiter.ts +21 -4
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +12 -0
- package/src/meeting/index.ts +937 -119
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +51 -7
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +10 -4
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +200 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +6 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +216 -38
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +3 -3
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +223 -3
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +139 -32
- package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1014 -58
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +23 -23
- package/test/unit/spec/meeting/in-meeting-actions.ts +6 -0
- package/test/unit/spec/meeting/index.js +2811 -117
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meeting/utils.js +179 -16
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
- package/test/unit/spec/meetings/index.js +544 -49
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +7 -0
- package/test/unit/spec/member/util.js +89 -0
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +332 -31
package/src/breakouts/events.ts
CHANGED
|
@@ -36,20 +36,42 @@ const breakoutEvent: {
|
|
|
36
36
|
if (!eventInfo?.breakoutMoveId || !eventInfo?.meeting) {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
|
|
40
|
+
const {breakoutMoveId, currentSession, error, llmLatency, llmWebsocketUrl, meeting} = eventInfo;
|
|
41
|
+
|
|
42
|
+
if (!meeting.meetingInfo?.enableConvergedArchitecture) {
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
|
|
46
|
+
if (
|
|
47
|
+
event === 'client.breakout-session.join.response' &&
|
|
48
|
+
typeof meeting.shouldEmitBreakoutJoinResponseMetric === 'function' &&
|
|
49
|
+
!meeting.shouldEmitBreakoutJoinResponseMetric(breakoutMoveId, Boolean(llmLatency))
|
|
50
|
+
) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const payload: any = {
|
|
55
|
+
llmLatency,
|
|
56
|
+
identifiers: {
|
|
57
|
+
breakoutMoveId,
|
|
58
|
+
breakoutSessionId: currentSession?.sessionId,
|
|
59
|
+
breakoutGroupId: currentSession?.groupId,
|
|
60
|
+
llmWebsocketUrl,
|
|
50
61
|
},
|
|
51
|
-
|
|
52
|
-
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const options: any = {
|
|
65
|
+
meetingId: meeting.id,
|
|
66
|
+
rawError: error,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const metricEvent = {
|
|
70
|
+
name: event,
|
|
71
|
+
payload,
|
|
72
|
+
options,
|
|
73
|
+
};
|
|
74
|
+
submitClientEvent(metricEvent);
|
|
53
75
|
},
|
|
54
76
|
};
|
|
55
77
|
|
package/src/breakouts/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ const Breakouts = WebexPlugin.extend({
|
|
|
32
32
|
name: 'string', // only present when in a breakout session
|
|
33
33
|
sessionId: 'string', // appears from the moment you enable breakouts
|
|
34
34
|
sessionType: 'string', // appears from the moment you enable breakouts
|
|
35
|
+
breakoutMoveId: 'string', // used to correlate breakout move/join diagnostics
|
|
35
36
|
startTime: 'string', // appears once breakouts start
|
|
36
37
|
status: 'string', // only present when in a breakout session
|
|
37
38
|
url: 'string', // appears from the moment you enable breakouts
|
|
@@ -149,9 +150,16 @@ const Breakouts = WebexPlugin.extend({
|
|
|
149
150
|
this.listenTo(this.breakouts, 'change:requestedLastModifiedTime', (breakout) => {
|
|
150
151
|
this.triggerReturnToMainEvent(breakout);
|
|
151
152
|
});
|
|
153
|
+
this.listenTo(
|
|
154
|
+
this,
|
|
155
|
+
BREAKOUTS.EVENTS.LLM_CONNECT_RESPONSE,
|
|
156
|
+
this.handleLLMBreakoutJoinResponseMetric
|
|
157
|
+
);
|
|
152
158
|
this.listenToCurrentSessionTypeChange();
|
|
153
159
|
this.listenToBreakoutRosters();
|
|
154
160
|
this.listenToBreakoutHelp();
|
|
161
|
+
// LLM may connect after locusUrlUpdate has already run, so re-check the broadcast subscription on connect
|
|
162
|
+
this.listenTo(this.webex.internal.llm, 'online', () => this.listenToBroadcastMessages());
|
|
155
163
|
// @ts-ignore
|
|
156
164
|
this.breakoutRequest = new BreakoutRequest({webex: this.webex});
|
|
157
165
|
},
|
|
@@ -258,7 +266,16 @@ const Breakouts = WebexPlugin.extend({
|
|
|
258
266
|
* @returns {void}
|
|
259
267
|
*/
|
|
260
268
|
listenToBroadcastMessages() {
|
|
261
|
-
|
|
269
|
+
// Only subscribe when the connected LLM session belongs to this meeting's locus. locusUrl is
|
|
270
|
+
// populated before the socket emits 'online', so it is reliable even on the first connection
|
|
271
|
+
// where the owner meeting id has not been tagged yet.
|
|
272
|
+
const isLLMForThisMeeting = this.webex.internal.llm.getLocusUrl() === this.locusUrl;
|
|
273
|
+
|
|
274
|
+
if (
|
|
275
|
+
!this.webex.internal.llm.isConnected() ||
|
|
276
|
+
!isLLMForThisMeeting ||
|
|
277
|
+
this.hasSubscribedToMessage
|
|
278
|
+
) {
|
|
262
279
|
return;
|
|
263
280
|
}
|
|
264
281
|
|
|
@@ -327,7 +344,10 @@ const Breakouts = WebexPlugin.extend({
|
|
|
327
344
|
* @returns {void}
|
|
328
345
|
*/
|
|
329
346
|
updateBreakout(params) {
|
|
347
|
+
const breakoutMoveId = params.breakoutMoveId || this.breakoutMoveId;
|
|
348
|
+
|
|
330
349
|
this.set(params);
|
|
350
|
+
this.set('breakoutMoveId', breakoutMoveId);
|
|
331
351
|
// These values are set manually so they are unset when they are not included in params
|
|
332
352
|
this.set('groups', params.groups);
|
|
333
353
|
this.set('startTime', params.startTime);
|
|
@@ -340,6 +360,7 @@ const Breakouts = WebexPlugin.extend({
|
|
|
340
360
|
current: true,
|
|
341
361
|
sessionType: params.sessionType,
|
|
342
362
|
url: params.url,
|
|
363
|
+
resourceLink: params.resourceLink,
|
|
343
364
|
[BREAKOUTS.SESSION_STATES.ACTIVE]: false,
|
|
344
365
|
[BREAKOUTS.SESSION_STATES.ALLOWED]: false,
|
|
345
366
|
[BREAKOUTS.SESSION_STATES.ASSIGNED]: false,
|
|
@@ -361,12 +382,81 @@ const Breakouts = WebexPlugin.extend({
|
|
|
361
382
|
{
|
|
362
383
|
currentSession: this.currentBreakoutSession,
|
|
363
384
|
meeting,
|
|
364
|
-
breakoutMoveId
|
|
385
|
+
breakoutMoveId,
|
|
365
386
|
},
|
|
366
387
|
// @ts-ignore
|
|
367
388
|
this.webex.internal.newMetrics.submitClientEvent.bind(this.webex.internal.newMetrics)
|
|
368
389
|
);
|
|
369
390
|
}
|
|
391
|
+
|
|
392
|
+
this.submitLLMBreakoutJoinResponseMetric();
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Stores the latest LLM connect response and tries to send the LLM-enhanced breakout join response.
|
|
397
|
+
* The breakout update and the LLM response are delivered independently, so either side can arrive first.
|
|
398
|
+
* @param {Object} eventInfo LLM connect response info
|
|
399
|
+
* @param {Object} eventInfo.meeting meeting instance
|
|
400
|
+
* @param {Object} eventInfo.llmLatency LLM latency values
|
|
401
|
+
* @param {Object} [eventInfo.error] LLM connection error
|
|
402
|
+
* @returns {void}
|
|
403
|
+
*/
|
|
404
|
+
handleLLMBreakoutJoinResponseMetric(eventInfo: any) {
|
|
405
|
+
this.llmBreakoutJoinResponseInfo = {
|
|
406
|
+
...eventInfo,
|
|
407
|
+
breakoutMoveId: this.breakoutMoveId,
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
this.submitLLMBreakoutJoinResponseMetric();
|
|
411
|
+
},
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Sends the LLM-enhanced breakout join response metric when both breakout state and LLM latency
|
|
415
|
+
* are available. LLM reconnects can also happen while leaving a breakout, before stale breakout
|
|
416
|
+
* fields are fully cleared, so the joined-session check lives with the breakout state.
|
|
417
|
+
*
|
|
418
|
+
* The joined session changes both when joining a breakout and when returning to the main
|
|
419
|
+
* session, and the client reconnects LLM in both directions. Mirroring the desktop client, we
|
|
420
|
+
* emit the join response for either transition, so the active-breakout check also accepts the
|
|
421
|
+
* main session. Non-breakout meetings never carry a breakoutMoveId, and a given move id is
|
|
422
|
+
* reported at most once, so accepting the main session here cannot leak spurious events.
|
|
423
|
+
* @returns {void}
|
|
424
|
+
*/
|
|
425
|
+
submitLLMBreakoutJoinResponseMetric() {
|
|
426
|
+
const eventInfo = this.llmBreakoutJoinResponseInfo;
|
|
427
|
+
|
|
428
|
+
// The breakout update and the LLM response arrive independently, so only emit once both the
|
|
429
|
+
// breakout move and its matching LLM latency are available for a session we have actually joined.
|
|
430
|
+
const hasMatchingMoveId =
|
|
431
|
+
!!this.breakoutMoveId && eventInfo?.breakoutMoveId === this.breakoutMoveId;
|
|
432
|
+
const hasSessionIdentifiers =
|
|
433
|
+
!!this.currentBreakoutSession?.sessionId && !!this.currentBreakoutSession?.groupId;
|
|
434
|
+
// isActiveBreakout already covers an open/closing breakout; isInMainSession covers return-to-main.
|
|
435
|
+
const isJoinedSession = this.isActiveBreakout || this.isInMainSession;
|
|
436
|
+
|
|
437
|
+
if (!eventInfo || !hasMatchingMoveId || !hasSessionIdentifiers || !isJoinedSession) {
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
const {llmLatency, error} = eventInfo;
|
|
442
|
+
const meeting = eventInfo.meeting || this.webex.meetings.getMeetingByType(_ID_, this.meetingId);
|
|
443
|
+
// @ts-ignore
|
|
444
|
+
const llmWebsocketUrl = this.webex.internal.llm.getWebSocketUrl?.() || undefined;
|
|
445
|
+
|
|
446
|
+
breakoutEvent.onBreakoutJoinResponse(
|
|
447
|
+
{
|
|
448
|
+
currentSession: this.currentBreakoutSession,
|
|
449
|
+
meeting,
|
|
450
|
+
breakoutMoveId: this.breakoutMoveId,
|
|
451
|
+
llmLatency,
|
|
452
|
+
llmWebsocketUrl,
|
|
453
|
+
error,
|
|
454
|
+
},
|
|
455
|
+
// @ts-ignore
|
|
456
|
+
this.webex.internal.newMetrics.submitClientEvent.bind(this.webex.internal.newMetrics)
|
|
457
|
+
);
|
|
458
|
+
|
|
459
|
+
this.llmBreakoutJoinResponseInfo = undefined;
|
|
370
460
|
},
|
|
371
461
|
|
|
372
462
|
/**
|
|
@@ -985,6 +1075,36 @@ const Breakouts = WebexPlugin.extend({
|
|
|
985
1075
|
body,
|
|
986
1076
|
});
|
|
987
1077
|
},
|
|
1078
|
+
/**
|
|
1079
|
+
* Remove participants from their current breakout session back to the main session
|
|
1080
|
+
* @param {string[]} participants - participant IDs to remove from breakout
|
|
1081
|
+
* @returns {Promise}
|
|
1082
|
+
*/
|
|
1083
|
+
removeFromBreakout(participants: string[]) {
|
|
1084
|
+
if (!this.mainGroupId || !this.mainSessionId) {
|
|
1085
|
+
throw new Error(
|
|
1086
|
+
'Main group ID and session ID must be available to remove participants from breakout'
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
return this.request({
|
|
1091
|
+
method: HTTP_VERBS.POST,
|
|
1092
|
+
uri: `${this.url}/move`,
|
|
1093
|
+
body: {
|
|
1094
|
+
groups: [
|
|
1095
|
+
{
|
|
1096
|
+
id: this.mainGroupId,
|
|
1097
|
+
sessions: [
|
|
1098
|
+
{
|
|
1099
|
+
id: this.mainSessionId,
|
|
1100
|
+
participants,
|
|
1101
|
+
},
|
|
1102
|
+
],
|
|
1103
|
+
},
|
|
1104
|
+
],
|
|
1105
|
+
},
|
|
1106
|
+
});
|
|
1107
|
+
},
|
|
988
1108
|
/**
|
|
989
1109
|
* trigger ASK_RETURN_TO_MAIN event when main session requested
|
|
990
1110
|
* @param {Object} breakout
|
|
@@ -157,19 +157,66 @@ WebExMeetingsErrors[IceGatheringFailed.CODE] = IceGatheringFailed;
|
|
|
157
157
|
class AddMediaFailed extends WebexMeetingsError {
|
|
158
158
|
static CODE = 30203;
|
|
159
159
|
cause?: Error;
|
|
160
|
+
connectionType?: string;
|
|
161
|
+
selectedCandidatePairChanges?: number;
|
|
162
|
+
numTransports?: number;
|
|
163
|
+
iceConnected?: boolean;
|
|
160
164
|
|
|
161
165
|
/**
|
|
162
166
|
* Creates a new AddMediaFailed error
|
|
163
|
-
* @param {
|
|
167
|
+
* @param {Object} options
|
|
168
|
+
* @param {Error} [options.cause] - The underlying error that caused the media addition to fail
|
|
169
|
+
* @param {string} [options.connectionType] - The ICE connection type at the time of failure (e.g. 'UDP', 'TURN-TLS')
|
|
170
|
+
* @param {number} [options.selectedCandidatePairChanges] - Number of times the selected candidate pair changed
|
|
171
|
+
* @param {number} [options.numTransports] - Number of ICE transports
|
|
172
|
+
* @param {boolean} [options.iceConnected] - Whether ICE connection was established before the failure
|
|
164
173
|
*/
|
|
165
|
-
constructor(
|
|
174
|
+
constructor(
|
|
175
|
+
options: {
|
|
176
|
+
cause?: Error;
|
|
177
|
+
connectionType?: string;
|
|
178
|
+
selectedCandidatePairChanges?: number;
|
|
179
|
+
numTransports?: number;
|
|
180
|
+
iceConnected?: boolean;
|
|
181
|
+
} = {}
|
|
182
|
+
) {
|
|
166
183
|
super(AddMediaFailed.CODE, 'Failed to add media');
|
|
167
|
-
this.cause = cause;
|
|
184
|
+
this.cause = options.cause;
|
|
185
|
+
this.connectionType = options.connectionType;
|
|
186
|
+
this.selectedCandidatePairChanges = options.selectedCandidatePairChanges;
|
|
187
|
+
this.numTransports = options.numTransports;
|
|
188
|
+
this.iceConnected = options.iceConnected;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns true if the failure was due to a DTLS handshake failure
|
|
193
|
+
* (ICE connected successfully but the overall media connection failed).
|
|
194
|
+
*/
|
|
195
|
+
get isDtlsHandshakeFailure(): boolean {
|
|
196
|
+
return this.iceConnected === true;
|
|
168
197
|
}
|
|
169
198
|
}
|
|
170
199
|
export {AddMediaFailed};
|
|
171
200
|
WebExMeetingsErrors[AddMediaFailed.CODE] = AddMediaFailed;
|
|
172
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @class MediaConnectionTimedOutError
|
|
204
|
+
* @classdesc Internal error thrown when the media connection times out waiting to connect.
|
|
205
|
+
*/
|
|
206
|
+
class MediaConnectionTimedOutError extends Error {
|
|
207
|
+
iceConnected: boolean;
|
|
208
|
+
|
|
209
|
+
cause?: any;
|
|
210
|
+
|
|
211
|
+
constructor(message: string, iceConnected: boolean, cause?: any) {
|
|
212
|
+
super(message);
|
|
213
|
+
this.name = 'MediaConnectionTimedOutError';
|
|
214
|
+
this.iceConnected = iceConnected;
|
|
215
|
+
this.cause = cause;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
export {MediaConnectionTimedOutError};
|
|
219
|
+
|
|
173
220
|
/**
|
|
174
221
|
* @class SdpResponseTimeoutError
|
|
175
222
|
* @classdesc Raised whenever we timeout waiting for remote SDP answer
|
package/src/config.ts
CHANGED
|
@@ -82,17 +82,17 @@ export default {
|
|
|
82
82
|
enableExtmap: false,
|
|
83
83
|
enableAutomaticLLM: false,
|
|
84
84
|
installedOrgID: undefined,
|
|
85
|
+
multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],
|
|
85
86
|
experimental: {
|
|
86
87
|
enableMediaNegotiatedEvent: false,
|
|
87
88
|
enableUnifiedMeetings: true,
|
|
88
89
|
enableAdhocMeetings: true,
|
|
89
|
-
enableTcpReachability: false,
|
|
90
|
-
enableTlsReachability: false,
|
|
91
90
|
storeLocusHashTreeEventsForDebugging: false,
|
|
92
91
|
},
|
|
93
92
|
degradationPreferences: {
|
|
94
93
|
maxMacroblocksLimit: 8192,
|
|
95
94
|
},
|
|
95
|
+
enableAv1SlidesSupport: false,
|
|
96
96
|
// This only applies to non-multistream meetings
|
|
97
97
|
iceCandidatesGatheringTimeout: undefined,
|
|
98
98
|
backendIpv6NativeSupport: false,
|
package/src/constants.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import {hydraTypes} from '@webex/common';
|
|
3
3
|
|
|
4
|
+
export {LLM_DEFAULT_SESSION, LLM_PRACTICE_SESSION} from '@webex/internal-plugin-llm';
|
|
5
|
+
|
|
4
6
|
export type Enum<T extends Record<string, unknown>> = T[keyof T];
|
|
5
7
|
|
|
6
8
|
// *********** LOWERCASE / CAMELCASE STRINGS ************
|
|
@@ -44,7 +46,6 @@ export const LOCAL = 'local';
|
|
|
44
46
|
export const LOCI = 'loci';
|
|
45
47
|
export const LOCUS_URL = 'locusUrl';
|
|
46
48
|
export const END = 'end';
|
|
47
|
-
export const LLM_PRACTICE_SESSION = 'llm-practice-session';
|
|
48
49
|
|
|
49
50
|
export const MAX_RANDOM_DELAY_FOR_MEETING_INFO = 3 * 60 * 1000;
|
|
50
51
|
export const MEETINGINFO = 'meetingInfo';
|
|
@@ -391,6 +392,7 @@ export const EVENT_TRIGGERS = {
|
|
|
391
392
|
MEETING_CAPTION_RECEIVED: 'meeting:caption-received',
|
|
392
393
|
MEETING_PARTICIPANT_REASON_CHANGED: 'meeting:participant-reason-changed',
|
|
393
394
|
MEETING_AI_ENABLE_REQUEST: 'meeting:aiEnableRequest',
|
|
395
|
+
MEETING_SRTP_CIPHER_UPDATED: 'meeting:srtpCipher:updated',
|
|
394
396
|
};
|
|
395
397
|
|
|
396
398
|
export const EVENT_TYPES = {
|
|
@@ -417,7 +419,7 @@ export const HEADERS = {
|
|
|
417
419
|
// Meeting actually ended
|
|
418
420
|
export const MEETING_REMOVED_REASON = {
|
|
419
421
|
SELF_REMOVED: 'SELF_REMOVED', // server or host removed you from the meeting
|
|
420
|
-
MEETING_INACTIVE_TERMINATING: 'MEETING_INACTIVE_TERMINATING', // Meeting got ended or everyone left the meeting
|
|
422
|
+
MEETING_INACTIVE_TERMINATING: 'MEETING_INACTIVE_TERMINATING', // Meeting got ended or everyone left the meeting (historically was sent on Locus TERMINATING or INACTIVE, but now only on INACTIVE as that's the final state)
|
|
421
423
|
CLIENT_LEAVE_REQUEST: 'CLIENT_LEAVE_REQUEST', // You triggered leave meeting
|
|
422
424
|
CLIENT_LEAVE_REQUEST_TAB_CLOSED: 'CLIENT_LEAVE_REQUEST_TAB_CLOSED', // You triggered leave meeting, such as closing the browser tab directly
|
|
423
425
|
USER_ENDED_SHARE_STREAMS: 'USER_ENDED_SHARE_STREAMS', // user triggered stop share
|
|
@@ -658,6 +660,7 @@ export const BREAKOUTS = {
|
|
|
658
660
|
LEAVE_BREAKOUT: 'LEAVE_BREAKOUT',
|
|
659
661
|
ASK_FOR_HELP: 'ASK_FOR_HELP',
|
|
660
662
|
PRE_ASSIGNMENTS_UPDATE: 'PRE_ASSIGNMENTS_UPDATE',
|
|
663
|
+
LLM_CONNECT_RESPONSE: 'LLM_CONNECT_RESPONSE',
|
|
661
664
|
},
|
|
662
665
|
SESSION_TYPES: {
|
|
663
666
|
MAIN: 'MAIN',
|
|
@@ -700,6 +703,12 @@ export const INTERPRETATION = {
|
|
|
700
703
|
DECLINED: 'DECLINED',
|
|
701
704
|
},
|
|
702
705
|
RESOURCE_TYPE: 'SiHandover',
|
|
706
|
+
CAPABILITIES: {
|
|
707
|
+
HOST_CONTROL_SI_SUPPORTED: 'HOST_CONTROL_SI_SUPPORTED',
|
|
708
|
+
INTERPRETER_CONTROL_SI_SUPPORTED: 'INTERPRETER_CONTROL_SI_SUPPORTED',
|
|
709
|
+
SI_HANDOVER_SUPPORTED: 'SI_HANDOVER_SUPPORTED',
|
|
710
|
+
SIGN_INTERPRETER_SUPPORTED: 'SIGN_INTERPRETER_SUPPORTED',
|
|
711
|
+
},
|
|
703
712
|
};
|
|
704
713
|
|
|
705
714
|
export const LOCUSINFO = {
|
|
@@ -1031,6 +1040,8 @@ export const DISPLAY_HINTS = {
|
|
|
1031
1040
|
// participants list
|
|
1032
1041
|
DISABLE_VIEW_THE_PARTICIPANT_LIST: 'DISABLE_VIEW_THE_PARTICIPANT_LIST',
|
|
1033
1042
|
ENABLE_VIEW_THE_PARTICIPANT_LIST: 'ENABLE_VIEW_THE_PARTICIPANT_LIST',
|
|
1043
|
+
VIEW_THE_PARTICIPANT_LIST: 'VIEW_THE_PARTICIPANT_LIST',
|
|
1044
|
+
CAN_VIEW_THE_PARTICIPANT_LIST: 'CAN_VIEW_THE_PARTICIPANT_LIST',
|
|
1034
1045
|
// for webinar participants list
|
|
1035
1046
|
DISABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST: 'DISABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST',
|
|
1036
1047
|
ENABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST: 'ENABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST',
|
|
@@ -1093,15 +1104,22 @@ export const DISPLAY_HINTS = {
|
|
|
1093
1104
|
// AI
|
|
1094
1105
|
ATTENDEE_REQUEST_AI_ASSISTANT_ENABLED: 'ATTENDEE_REQUEST_AI_ASSISTANT_ENABLED',
|
|
1095
1106
|
ATTENDEE_REQUEST_AI_ASSISTANT_DECLINED_ALL: 'ATTENDEE_REQUEST_AI_ASSISTANT_DECLINED_ALL',
|
|
1107
|
+
|
|
1108
|
+
// Anonymous Display Names
|
|
1109
|
+
ANONYMOUS_DISPLAY_NAMES_ENABLED: 'ANONYMOUS_DISPLAY_NAMES_ENABLED',
|
|
1096
1110
|
};
|
|
1097
1111
|
|
|
1098
|
-
export const INTERSTITIAL_DISPLAY_HINTS = [
|
|
1112
|
+
export const INTERSTITIAL_DISPLAY_HINTS = [
|
|
1113
|
+
DISPLAY_HINTS.VOIP_IS_ENABLED,
|
|
1114
|
+
DISPLAY_HINTS.ANONYMOUS_DISPLAY_NAMES_ENABLED,
|
|
1115
|
+
];
|
|
1099
1116
|
|
|
1100
1117
|
export const SELF_ROLES = {
|
|
1101
1118
|
COHOST: 'COHOST',
|
|
1102
1119
|
MODERATOR: 'MODERATOR',
|
|
1103
1120
|
ATTENDEE: 'ATTENDEE',
|
|
1104
1121
|
PANELIST: 'PANELIST',
|
|
1122
|
+
PRESENTER: 'PRESENTER',
|
|
1105
1123
|
};
|
|
1106
1124
|
|
|
1107
1125
|
export const MEETING_STATE = {
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
<!-- sdd-generated-metadata
|
|
2
|
+
doc_kind: module-spec
|
|
3
|
+
generated_from: module-spec@0.2.2
|
|
4
|
+
generator_plugin: repo-annotation@1.0.5+codex.20260818094939
|
|
5
|
+
generated_by: codex
|
|
6
|
+
approved_by: repository user
|
|
7
|
+
updated_at: 2026-08-22T15:21:29Z
|
|
8
|
+
validation_status: pass-with-warnings
|
|
9
|
+
-->
|
|
10
|
+
# CONTROLS OPTIONS MANAGER — SPEC
|
|
11
|
+
|
|
12
|
+
> Start here → root [`AGENTS.md`](../../../AGENTS.md) · router [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md) · system [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md). This is the canonical source-local spec for `src/controls-options-manager/`.
|
|
13
|
+
|
|
14
|
+
## Metadata
|
|
15
|
+
|
|
16
|
+
| Field | Value |
|
|
17
|
+
|---|---|
|
|
18
|
+
| Module id | `controls-options-manager` |
|
|
19
|
+
| Source path(s) | `src/controls-options-manager/` |
|
|
20
|
+
| Parent spec | — |
|
|
21
|
+
| Doc kind | Module spec |
|
|
22
|
+
| Coverage score | 93% assessed 2026-08-22; 13/14 mandatory fields present; all critical and Important fields present; one noncritical polish gap remains; pending independent validation of the participant-role repair |
|
|
23
|
+
| Generated from | `module-spec` @ SDLC template library `0.2.2` |
|
|
24
|
+
| generated_by / approved_by / updated_at | codex / repository user / 2026-08-22T15:21:29Z |
|
|
25
|
+
| Validation status | pass-with-warnings |
|
|
26
|
+
|
|
27
|
+
## Evidence Rules
|
|
28
|
+
|
|
29
|
+
Requirements cite current source and mirrored tests. Current code wins over retained prose when they conflict; commit and PR history are excluded. Missing evidence stays a gap.
|
|
30
|
+
|
|
31
|
+
## Source Material Register
|
|
32
|
+
|
|
33
|
+
| Source material | Scope | Decision | Detail location or disposition |
|
|
34
|
+
|---|---|---|---|
|
|
35
|
+
| No routed legacy module spec | overview / API / behavior / tests | none; generated from current manager/types/enums/constants/utilities and tests |
|
|
36
|
+
| Current source and mirrored tests | implementation / tests | verified | requirements, flows, failures, and test strategy below |
|
|
37
|
+
|
|
38
|
+
## Overview
|
|
39
|
+
|
|
40
|
+
`src/controls-options-manager/` contains 5 direct source/reference file(s) and has 2 mirrored unit-test file(s). This spec separates its public operations, runtime data movement, component ownership, state applicability, and verification boundary.
|
|
41
|
+
|
|
42
|
+
## Purpose / Responsibility
|
|
43
|
+
|
|
44
|
+
Validates requested meeting-control mutations against display hints, builds the declared control bodies, and sends them through the owning Meeting request object.
|
|
45
|
+
|
|
46
|
+
## Stack
|
|
47
|
+
|
|
48
|
+
TypeScript/JavaScript in the Node 22.14 Yarn workspace; Webex core/plugin abstractions and Mocha/Sinon/`@webex/test-helper-chai` tests.
|
|
49
|
+
|
|
50
|
+
## Folder / Package Structure
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
src/controls-options-manager/
|
|
54
|
+
├── constants.ts — module constants and wire values
|
|
55
|
+
├── enums.ts — declared action/control enum values
|
|
56
|
+
├── index.ts — module facade/controller or primary exports
|
|
57
|
+
├── types.ts — module type declarations
|
|
58
|
+
├── util.ts — normalization/helper functions
|
|
59
|
+
└── ai-docs/controls-options-manager-spec.md — canonical module specification
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Key Files (source of truth)
|
|
63
|
+
|
|
64
|
+
| File | Holds |
|
|
65
|
+
|---|---|
|
|
66
|
+
| `src/controls-options-manager/constants.ts` | module constants and wire values |
|
|
67
|
+
| `src/controls-options-manager/enums.ts` | declared action/control enum values |
|
|
68
|
+
| `src/controls-options-manager/index.ts` | module facade/controller or primary exports |
|
|
69
|
+
| `src/controls-options-manager/types.ts` | module type declarations |
|
|
70
|
+
| `src/controls-options-manager/util.ts` | normalization/helper functions |
|
|
71
|
+
| `test/unit/spec/controls-options-manager/index.js` and 1 sibling test file(s) | mirrored characterization/unit coverage |
|
|
72
|
+
|
|
73
|
+
## Public Surface
|
|
74
|
+
|
|
75
|
+
| Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
|
|
76
|
+
|---|---|---|---|---|---|---|
|
|
77
|
+
| `controls-options-manager.1` | SDK / configuration | `set()`, `setLocusUrl()`, `setDisplayHints()`, `getLocusUrl()`, and `getDisplayHints()` | Hold current/main Locus URLs and display hints used to authorize later control mutations. | Preserve current setter/getter semantics; no normalized query projection is exposed. | `src/controls-options-manager/index.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
78
|
+
| `controls-options-manager.2` | SDK / remote | `update(ControlConfig[])` | Validate each scoped mutation with `Utils.canUpdate()` and send the generated requests sequentially. | Unknown scopes and denied capabilities both throw synchronously while the batch is mapped; preserve request ordering and the returned request promise. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
79
|
+
| `controls-options-manager.3` | SDK / remote | `setMuteOnEntry()`, `setDisallowUnmute()`, and `setMuteAll()` | Build the audio-control bodies permitted by current display hints and route them to main/breakout Locus context. | Preserve body keys, capability checks, and breakout authorization selection. | `src/controls-options-manager/index.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
80
|
+
| `controls-options-manager.4` | exported predicates | `Utils.canSetMuteOnEntry()`, `canUnsetMuteOnEntry()`, `canSetDisallowUnmute()`, `canUnsetDisallowUnmute()`, `canSetMuted()`, `canUnsetMuted()`, `hasHints()`, `hasPolicies()`, `canUpdateAudio()`, `canUpdateRaiseHand()`, `canUpdateReactions()`, `canUpdateShareControl()`, `canUpdateViewTheParticipantsList()`, `canUpdateVideo()`, `canUpdateAnnotation()`, `canUpdateRemoteDesktopControl()`, and `canUpdatePollingQA()` | Centralize capability interpretation for every supported control family. | These are static utilities, not manager instance query APIs. | `src/controls-options-manager/util.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
81
|
+
| `controls-options-manager.5` | exported routing utilities | `Utils.canUpdate()`, `isAudioControl()`, `isBreakoutLocusUrl()`, and `getControlsRequestParams()` | Select the permitted control family, request URL, and request body for each mutation. | Preserve scope matching and main-versus-breakout routing rules. | `src/controls-options-manager/util.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
82
|
+
| `controls-options-manager.6` | exported class/constants/types | `ControlsOptionsManager`, `ENABLED`, `CAN_SET`, `CAN_UNSET`, `AUDIO_CONTROL_BODY_KEYS`, `Control`, `Setting`, `ControlProperties`, `AudioProperties`, `RaiseHandProperties`, `ReactionsProperties`, `ShareControlProperties`, `VideoProperties`, `ViewTheParticipantListProperties`, `AnnotationProperties`, `RemoteDesktopControlProperties`, `PollingQAProperties`, `Properties`, and `ControlConfig` | Share the exact configuration vocabulary accepted by `update()`. | Raw control/setting/body-key values and discriminated property shapes are compatibility-sensitive. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/constants.ts`, `src/controls-options-manager/enums.ts`, `src/controls-options-manager/types.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
|
|
83
|
+
|
|
84
|
+
### Emitted events
|
|
85
|
+
|
|
86
|
+
Current source emits or forwards these observable literals for this operation boundary. Preserve literal values, scope, payload shape, and emission timing; a constant name alone is not a substitute for the consumer-visible value.
|
|
87
|
+
|
|
88
|
+
| Event literal | Constant / expression | Emission evidence |
|
|
89
|
+
|---|---|---|
|
|
90
|
+
| `meeting:actionsUpdate` | `EVENT_TRIGGERS.MEETING_ACTIONS_UPDATE` | `src/meeting/index.ts` |
|
|
91
|
+
| `meeting:controls:ai-summary-notification:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AI_SUMMARY_NOTIFICATION_UPDATED` | `src/meeting/index.ts` |
|
|
92
|
+
| `meeting:controls:annotation:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_ANNOTATION_UPDATED` | `src/meeting/index.ts` |
|
|
93
|
+
| `meeting:controls:auto-end-meeting-warning:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_AUTO_END_MEETING_WARNING_UPDATED` | `src/meeting/index.ts` |
|
|
94
|
+
| `meeting:controls:disallow-unmute:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_DISALLOW_UNMUTE_UPDATED` | `src/meeting/index.ts` |
|
|
95
|
+
| `meeting:controls:meeting-full:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MEETING_FULL_UPDATED` | `src/meeting/index.ts` |
|
|
96
|
+
| `meeting:controls:mute-on-entry:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_MUTE_ON_ENTRY_UPDATED` | `src/meeting/index.ts` |
|
|
97
|
+
| `meeting:controls:polling-qa:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_POLLING_QA_UPDATED` | `src/meeting/index.ts` |
|
|
98
|
+
| `meeting:controls:practice-session-status:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_PRACTICE_SESSION_STATUS_UPDATED` | `src/meeting/index.ts` |
|
|
99
|
+
| `meeting:controls:raise-hand:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_RAISE_HAND_UPDATED` | `src/meeting/index.ts` |
|
|
100
|
+
| `meeting:controls:reactions:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REACTIONS_UPDATED` | `src/meeting/index.ts` |
|
|
101
|
+
| `meeting:controls:remote-desktop-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_REMOTE_DESKTOP_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
102
|
+
| `meeting:controls:share-control:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_SHARE_CONTROL_UPDATED` | `src/meeting/index.ts` |
|
|
103
|
+
| `meeting:controls:stage-view:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_STAGE_VIEW_UPDATED` | `src/meeting/index.ts` |
|
|
104
|
+
| `meeting:controls:video:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIDEO_UPDATED` | `src/meeting/index.ts` |
|
|
105
|
+
| `meeting:controls:view-the-participants-list:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_VIEW_THE_PARTICIPANTS_LIST_UPDATED` | `src/meeting/index.ts` |
|
|
106
|
+
| `meeting:controls:webcast:updated` | `EVENT_TRIGGERS.MEETING_CONTROLS_WEBCAST_UPDATED` | `src/meeting/index.ts` |
|
|
107
|
+
| `meeting:layout:update` | `EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE` | `src/meeting/index.ts` |
|
|
108
|
+
|
|
109
|
+
Compatibility notes:
|
|
110
|
+
- Prefer additive fields/options and preserve current return and rejection semantics. Internal helpers are not public merely because they are exported within the source directory.
|
|
111
|
+
|
|
112
|
+
## Requires (dependencies)
|
|
113
|
+
|
|
114
|
+
Locus controls, control/setting enums, constants, utility normalization, parent meeting request access, and role/capability state.
|
|
115
|
+
|
|
116
|
+
## Requirements
|
|
117
|
+
|
|
118
|
+
| ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
|
|
119
|
+
|---|---|---|---|---|---|---|
|
|
120
|
+
| `CONTROLS-OPTIONS-MANAGER-R-001` | `update` validates each `ControlConfig` scope and display-hint capability, builds one request body per control, and sends them sequentially. | Invalid or unauthorized shared-control mutations must fail before they reach Locus, and accepted mutations must preserve caller order. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js` | none | PRESENT |
|
|
121
|
+
| `CONTROLS-OPTIONS-MANAGER-R-002` | `ControlsOptionsManager` exposes URL/hint accessors and mutation methods; `canSet*`, `canUnset*`, and `canUpdate*` predicates are static methods on `util.ts`, not instance query APIs or normalized properties. | Consumers must not depend on an availability/current-value surface the manager does not implement. | `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts` | `test/unit/spec/controls-options-manager/index.js`, `test/unit/spec/controls-options-manager/util.js` | none | PRESENT |
|
|
122
|
+
| `CONTROLS-OPTIONS-MANAGER-R-003` | Missing `locusUrl` returns a rejected promise, an unknown scope or failed `canUpdate` check throws synchronously in `update`, and legacy audio setters reject unauthorized values; the module allocates no listener or timer. | Callers must distinguish validation throws from returned request rejections and must not expect cleanup behavior the module does not own. | `src/controls-options-manager/` | `test/unit/spec/controls-options-manager/index.js` | none | PRESENT |
|
|
123
|
+
|
|
124
|
+
## Design Overview
|
|
125
|
+
|
|
126
|
+
`index.ts` stores request context, validates mutations using static predicates from `util.ts`, builds control request bodies, and sends them through `request` or `locusDeltaRequest`. It exposes no normalized-control property or enabled-state query surface and owns no listeners or timers.
|
|
127
|
+
|
|
128
|
+
## Data Flow
|
|
129
|
+
|
|
130
|
+
```mermaid
|
|
131
|
+
flowchart LR
|
|
132
|
+
Caller[Meeting / consumer] --> Manager[index.ts mutation methods]
|
|
133
|
+
Hints[display hints + current controls callback] --> Manager
|
|
134
|
+
Types[constants.ts / enums.ts / types.ts] --> Util[util.ts capability and request helpers]
|
|
135
|
+
Manager --> Util
|
|
136
|
+
Util --> Body[control-setting request params]
|
|
137
|
+
Body --> Parent[Meeting request owner]
|
|
138
|
+
Parent --> Locus[Locus controls endpoint]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Sequence Diagram(s)
|
|
142
|
+
|
|
143
|
+
Sequence coverage:
|
|
144
|
+
|
|
145
|
+
| Operation group | Diagram | Failure coverage |
|
|
146
|
+
|---|---|---|
|
|
147
|
+
| UC-1…UC-4 — control mutation operation groups | Control mutation primary sequence | unknown scope, denied display hint, missing Locus URL, and request rejection |
|
|
148
|
+
| UC-1…UC-4 — control mutation alternate/failure paths | Control mutation alternate/failure sequence | unknown control/setting, absent capability, or malformed Locus control data |
|
|
149
|
+
|
|
150
|
+
### Control mutation primary sequence
|
|
151
|
+
|
|
152
|
+
```mermaid
|
|
153
|
+
sequenceDiagram
|
|
154
|
+
participant P as Meeting parent
|
|
155
|
+
participant M as ControlsOptionsManager
|
|
156
|
+
participant U as util.ts
|
|
157
|
+
P->>M: update(...ControlConfig)
|
|
158
|
+
M->>U: canUpdate(control, displayHints)
|
|
159
|
+
U-->>M: allowed or denied
|
|
160
|
+
M->>U: getControlsRequestParams(body, locus URLs)
|
|
161
|
+
U-->>M: PATCH request params
|
|
162
|
+
M->>P: request/locusDeltaRequest(params)
|
|
163
|
+
P-->>M: request outcome
|
|
164
|
+
M-->>P: sequential update promise outcome
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Control mutation alternate/failure sequence
|
|
168
|
+
|
|
169
|
+
```mermaid
|
|
170
|
+
sequenceDiagram
|
|
171
|
+
participant C as Caller / current input owner
|
|
172
|
+
participant M as ControlsOptionsManager
|
|
173
|
+
C->>M: request control mutation
|
|
174
|
+
alt locusUrl missing
|
|
175
|
+
M--xC: rejected promise
|
|
176
|
+
else scope unknown or capability denied by update
|
|
177
|
+
M--xC: synchronous Error / PermissionError
|
|
178
|
+
else accepted
|
|
179
|
+
M-->>C: owning request promise outcome
|
|
180
|
+
end
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Class / Component Relationships
|
|
184
|
+
|
|
185
|
+
```mermaid
|
|
186
|
+
classDiagram
|
|
187
|
+
class Locus
|
|
188
|
+
class Util
|
|
189
|
+
class Manager
|
|
190
|
+
class Types
|
|
191
|
+
class Body
|
|
192
|
+
class Parent
|
|
193
|
+
Manager --> Util
|
|
194
|
+
Types --> Util
|
|
195
|
+
Manager --> Body
|
|
196
|
+
Body --> Parent
|
|
197
|
+
Parent --> Locus
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
The arrows identify ownership and delegation inside `src/controls-options-manager/`; files that only declare types or constants are not presented as transports.
|
|
201
|
+
|
|
202
|
+
## Use Cases
|
|
203
|
+
|
|
204
|
+
- **UC-1:** Refresh current/main Locus URLs and display hints, then read those raw values without expecting a normalized control projection. Evidence: `src/controls-options-manager/index.ts`.
|
|
205
|
+
- **UC-2:** Validate and sequentially send a batch of scoped `ControlConfig` mutations using `Utils.canUpdate()` and `getControlsRequestParams()`. Evidence: `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`.
|
|
206
|
+
- **UC-3:** Build mute-on-entry and disallow-unmute bodies only when the matching set/unset display hints permit the requested value. Evidence: `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`.
|
|
207
|
+
- **UC-4:** Route mute-all to the appropriate main or breakout Locus authorization context and preserve permission/request failures. Evidence: `src/controls-options-manager/index.ts`, `src/controls-options-manager/util.ts`.
|
|
208
|
+
|
|
209
|
+
## State Model
|
|
210
|
+
|
|
211
|
+
The manager stores current/main Locus URLs, display hints, and callbacks for current controls/webinar status. It does not maintain a normalized control projection.
|
|
212
|
+
|
|
213
|
+
## Business Rules & Invariants
|
|
214
|
+
|
|
215
|
+
- A setting can be changed only when its control advertises the matching capability; request body keys use the declared control/setting map. Enforced under `src/controls-options-manager/`.
|
|
216
|
+
|
|
217
|
+
## Error Handling & Failure Modes
|
|
218
|
+
|
|
219
|
+
| Condition | Signal | Caller recovery |
|
|
220
|
+
|---|---|---|
|
|
221
|
+
| `locusUrl` is absent | Rejected `ParameterError` promise. | Set the current Locus URL before retrying. |
|
|
222
|
+
| Scope is unknown or `Util.canUpdate` denies it | Synchronous `Error` or `PermissionError` from `update`. | Correct the scope/properties or wait for matching display hints. |
|
|
223
|
+
| Request dependency rejects | Returned update/audio-control promise rejects. | Preserve the dependency error; retry only under caller policy. |
|
|
224
|
+
|
|
225
|
+
## Pitfalls
|
|
226
|
+
|
|
227
|
+
- The static `Util.canSet*`/`canUnset*`/`canUpdate*` predicates are implementation helpers, not instance query methods on `ControlsOptionsManager`.
|
|
228
|
+
- Verify both typed constants/enums and raw wire values before changing a logical condition in this legacy package.
|
|
229
|
+
|
|
230
|
+
## Test-Case Strategy (module)
|
|
231
|
+
|
|
232
|
+
Use the current mirrored suites: `test/unit/spec/controls-options-manager/index.js`, `test/unit/spec/controls-options-manager/util.js`. Characterize the controls-options-manager-specific use cases above and each listed failure condition; add cleanup or transition cases only for resources and state this module actually owns.
|
|
233
|
+
|
|
234
|
+
| Behavior / Requirement | Existing test evidence | Gap |
|
|
235
|
+
|---|---|---|
|
|
236
|
+
| `CONTROLS-OPTIONS-MANAGER-R-001` | `test/unit/spec/controls-options-manager/index.js` | cover every `Control`/`Setting` capability predicate and route |
|
|
237
|
+
| `CONTROLS-OPTIONS-MANAGER-R-002` | `test/unit/spec/controls-options-manager/index.js` | cover mixed-control batches and prove request order plus main/breakout URL selection |
|
|
238
|
+
| `CONTROLS-OPTIONS-MANAGER-R-003` | `test/unit/spec/controls-options-manager/index.js` | distinguish synchronous unknown-scope and permission errors from missing-URL and dependency promise rejections |
|
|
239
|
+
|
|
240
|
+
## Traceability
|
|
241
|
+
|
|
242
|
+
- Repo architecture: [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md) · Registry: [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md)
|
|
243
|
+
- Coverage state and contracts baseline: `../../../.sdd/manifest.json`
|