@webex/plugin-meetings 3.12.0-webex-services-ready.4 → 3.13.0-next.1

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.
Files changed (165) hide show
  1. package/.sdd/manifest.json +1312 -0
  2. package/.sdd/templates/.source.json +30 -0
  3. package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
  4. package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
  5. package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
  6. package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
  7. package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
  8. package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
  9. package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
  10. package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
  11. package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
  12. package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
  13. package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
  14. package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
  15. package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
  16. package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
  17. package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
  18. package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
  19. package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
  20. package/.sdd/templates/component-repo/template-map.json +112 -0
  21. package/AGENTS.md +130 -4
  22. package/ai-docs/ARCHITECTURE.md +208 -0
  23. package/ai-docs/CONTRACTS.md +267 -0
  24. package/ai-docs/DATA_MODEL.md +64 -0
  25. package/ai-docs/GETTING_STARTED.md +73 -0
  26. package/ai-docs/GLOSSARY.md +56 -0
  27. package/ai-docs/REVIEW_CHECKLIST.md +45 -0
  28. package/ai-docs/RULES.md +79 -0
  29. package/ai-docs/SECURITY.md +74 -0
  30. package/ai-docs/SERVICE_STATE.md +59 -0
  31. package/ai-docs/SPEC_INDEX.md +85 -0
  32. package/ai-docs/TEST_INDEX.md +45 -0
  33. package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
  34. package/ai-docs/patterns/defensive-error-propagation.md +55 -0
  35. package/ai-docs/patterns/event-scope-emission.md +46 -0
  36. package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
  37. package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
  38. package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
  39. package/assets/README.md +28 -0
  40. package/assets/e2ee-0.0.1.js +2 -0
  41. package/assets/e2ee-0.0.1.wasm +0 -0
  42. package/dist/aiEnableRequest/index.js +1 -1
  43. package/dist/annotation/index.js +55 -19
  44. package/dist/annotation/index.js.map +1 -1
  45. package/dist/assets/e2ee-0.0.1.js +2 -0
  46. package/dist/assets/e2ee-0.0.1.wasm +0 -0
  47. package/dist/breakouts/breakout.js +1 -1
  48. package/dist/breakouts/index.js +39 -5
  49. package/dist/breakouts/index.js.map +1 -1
  50. package/dist/common/errors/webex-errors.js +7 -2
  51. package/dist/common/errors/webex-errors.js.map +1 -1
  52. package/dist/config.js +1 -0
  53. package/dist/config.js.map +1 -1
  54. package/dist/constants.js +6 -5
  55. package/dist/constants.js.map +1 -1
  56. package/dist/hashTree/hashTreeParser.js +101 -48
  57. package/dist/hashTree/hashTreeParser.js.map +1 -1
  58. package/dist/index.js +1 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/interceptors/dataChannelAuthToken.js +41 -59
  61. package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
  62. package/dist/interceptors/locusRetry.js +1 -1
  63. package/dist/interceptors/locusRetry.js.map +1 -1
  64. package/dist/interpretation/index.js +46 -12
  65. package/dist/interpretation/index.js.map +1 -1
  66. package/dist/interpretation/siLanguage.js +1 -1
  67. package/dist/locus-info/index.js +236 -80
  68. package/dist/locus-info/index.js.map +1 -1
  69. package/dist/locus-info/types.js +2 -1
  70. package/dist/locus-info/types.js.map +1 -1
  71. package/dist/media/MediaConnectionAwaiter.js +225 -175
  72. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  73. package/dist/meeting/index.js +355 -299
  74. package/dist/meeting/index.js.map +1 -1
  75. package/dist/meeting/util.js +8 -2
  76. package/dist/meeting/util.js.map +1 -1
  77. package/dist/meeting/voicea-meeting.js +2 -1
  78. package/dist/meeting/voicea-meeting.js.map +1 -1
  79. package/dist/meeting-info/meeting-info-v2.js +10 -3
  80. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  81. package/dist/meetings/index.js +72 -31
  82. package/dist/meetings/index.js.map +1 -1
  83. package/dist/multistream/remoteMediaManager.js +32 -4
  84. package/dist/multistream/remoteMediaManager.js.map +1 -1
  85. package/dist/multistream/sendSlotManager.js +11 -1
  86. package/dist/multistream/sendSlotManager.js.map +1 -1
  87. package/dist/types/annotation/index.d.ts +19 -0
  88. package/dist/types/common/errors/webex-errors.d.ts +6 -2
  89. package/dist/types/config.d.ts +1 -0
  90. package/dist/types/constants.d.ts +2 -1
  91. package/dist/types/hashTree/hashTreeParser.d.ts +12 -0
  92. package/dist/types/index.d.ts +1 -0
  93. package/dist/types/locus-info/index.d.ts +45 -1
  94. package/dist/types/locus-info/types.d.ts +1 -0
  95. package/dist/types/media/MediaConnectionAwaiter.d.ts +61 -53
  96. package/dist/types/meeting/index.d.ts +49 -12
  97. package/dist/types/meeting/util.d.ts +3 -1
  98. package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
  99. package/dist/types/meetings/index.d.ts +2 -1
  100. package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
  101. package/dist/types/multistream/sendSlotManager.d.ts +5 -1
  102. package/dist/webinar/index.js +298 -255
  103. package/dist/webinar/index.js.map +1 -1
  104. package/package.json +25 -23
  105. package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
  106. package/src/annotation/ai-docs/annotation-spec.md +236 -0
  107. package/src/annotation/index.ts +61 -29
  108. package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
  109. package/src/breakouts/index.ts +35 -2
  110. package/src/common/errors/webex-errors.ts +8 -2
  111. package/src/config.ts +5 -1
  112. package/src/constants.ts +2 -1
  113. package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
  114. package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
  115. package/src/hashTree/hashTreeParser.ts +67 -3
  116. package/src/index.ts +1 -0
  117. package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
  118. package/src/interceptors/dataChannelAuthToken.ts +48 -77
  119. package/src/interceptors/locusRetry.ts +1 -1
  120. package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
  121. package/src/interpretation/index.ts +38 -1
  122. package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
  123. package/src/locus-info/index.ts +156 -35
  124. package/src/locus-info/types.ts +1 -0
  125. package/src/media/MediaConnectionAwaiter.ts +223 -207
  126. package/src/media/ai-docs/media-spec.md +267 -0
  127. package/src/meeting/ai-docs/meeting-spec.md +404 -0
  128. package/src/meeting/index.ts +332 -296
  129. package/src/meeting/util.ts +7 -4
  130. package/src/meeting/voicea-meeting.ts +1 -1
  131. package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
  132. package/src/meeting-info/meeting-info-v2.ts +7 -2
  133. package/src/meetings/ai-docs/meetings-spec.md +296 -0
  134. package/src/meetings/index.ts +59 -23
  135. package/src/member/ai-docs/member-spec.md +196 -0
  136. package/src/members/ai-docs/members-spec.md +256 -0
  137. package/src/metrics/ai-docs/metrics-spec.md +185 -0
  138. package/src/multistream/ai-docs/multistream-spec.md +295 -0
  139. package/src/multistream/remoteMediaManager.ts +23 -1
  140. package/src/multistream/sendSlotManager.ts +15 -1
  141. package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
  142. package/src/reachability/ai-docs/reachability-spec.md +261 -0
  143. package/src/reactions/ai-docs/reactions-spec.md +198 -0
  144. package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
  145. package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
  146. package/src/roap/ai-docs/roap-spec.md +241 -0
  147. package/src/webinar/ai-docs/webinar-spec.md +243 -0
  148. package/src/webinar/index.ts +168 -188
  149. package/test/unit/spec/annotation/index.ts +214 -182
  150. package/test/unit/spec/breakouts/index.ts +145 -13
  151. package/test/unit/spec/hashTree/hashTreeParser.ts +212 -1
  152. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +81 -99
  153. package/test/unit/spec/interceptors/locusRetry.ts +29 -1
  154. package/test/unit/spec/interpretation/index.ts +93 -0
  155. package/test/unit/spec/locus-info/index.js +397 -0
  156. package/test/unit/spec/media/MediaConnectionAwaiter.ts +426 -19
  157. package/test/unit/spec/media/properties.ts +3 -3
  158. package/test/unit/spec/meeting/index.js +1219 -723
  159. package/test/unit/spec/meeting/utils.js +52 -18
  160. package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
  161. package/test/unit/spec/meeting-info/meetinginfov2.js +69 -1
  162. package/test/unit/spec/meetings/index.js +145 -43
  163. package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
  164. package/test/unit/spec/multistream/sendSlotManager.ts +30 -2
  165. package/test/unit/spec/webinar/index.ts +886 -718
@@ -0,0 +1,324 @@
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
+ # BREAKOUTS — 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/breakouts/`.
13
+
14
+ ## Metadata
15
+
16
+ | Field | Value |
17
+ |---|---|
18
+ | Module id | `breakouts` |
19
+ | Source path(s) | `src/breakouts/` |
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
+ | Retained breakout feature guide | overview / API / behavior / tests | used and corrected; attendee/events structure was preserved, while stale host-API claims were replaced with current implemented operations and evidence |
36
+ | Current source and mirrored tests | implementation / tests | verified | requirements, flows, failures, and test strategy below |
37
+
38
+ ## Overview
39
+
40
+ `src/breakouts/` contains 8 direct source/reference file(s) and has 7 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
+ Owns breakout-session projections, participant and host workflows, roster/broadcast/help events, edit-lock lifecycle, and server mutations.
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/breakouts/
54
+ ├── README.md — retained legacy reference input
55
+ ├── breakout.ts — breakout implementation responsibility
56
+ ├── collection.ts — module-owned collection
57
+ ├── edit-lock-error.ts — module-specific error type
58
+ ├── events.ts — breakout Call Analyzer metric helper
59
+ ├── index.ts — module facade/controller or primary exports
60
+ ├── request.ts — broadcast-specific request helper
61
+ ├── utils.ts — normalization/helper functions
62
+ └── ai-docs/breakouts-spec.md — canonical module specification
63
+ ```
64
+
65
+ ## Key Files (source of truth)
66
+
67
+ | File | Holds |
68
+ |---|---|
69
+ | `src/breakouts/README.md` | retained legacy reference input |
70
+ | `src/breakouts/breakout.ts` | breakout implementation responsibility |
71
+ | `src/breakouts/collection.ts` | module-owned collection |
72
+ | `src/breakouts/edit-lock-error.ts` | module-specific error type |
73
+ | `src/breakouts/events.ts` | `breakoutEvent` Call Analyzer metric construction/submission helper; feature events are emitted by `index.ts` |
74
+ | `src/breakouts/index.ts` | module facade/controller or primary exports |
75
+ | `src/breakouts/request.ts` | broadcast-specific request helper |
76
+ | `src/breakouts/utils.ts` | normalization/helper functions |
77
+ | `test/unit/spec/breakouts/breakout.ts` and 6 sibling test file(s) | mirrored characterization/unit coverage |
78
+
79
+ ## Public Surface
80
+
81
+ | Contract ID | Type | Surface | Purpose | Compatibility / deprecation | Schema / detail link | Root index |
82
+ |---|---|---|---|---|---|---|
83
+ | `breakouts.1` | SDK / lifecycle | `initialize()`, `cleanUp()`, `locusUrlUpdate()`, `updateCanManageBreakouts()`, `breakoutServiceUrlUpdate()`, `handleRosterUpdate()`, `listenToCurrentSessionTypeChange()`, `listenToBroadcastMessages()`, `listenToBreakoutRosters()`, `listenToBreakoutHelp()`, `handleLLMBreakoutJoinResponseMetric()`, `submitLLMBreakoutJoinResponseMetric()`, `updateBreakoutSessions()`, and `clearBreakouts()` | Reconcile meeting-scoped breakout state and owned event subscriptions/metrics from Locus/service updates. | Preserve session/member ids, listener topics, metric fields, and scoped emitted events. | `src/breakouts/index.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
84
+ | `breakouts.2` | SDK / query | `queryRosters()`, `isBreakoutInProgress()`, `isBreakoutIClosing()`, `getMainSession()`, `getBreakout()`, and collection/session update helpers | Query and project current breakout sessions, main-session identity, roster, and close state. | Preserve collection identity and current enum/value semantics. | `src/breakouts/index.ts`, `src/breakouts/collection.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
85
+ | `breakouts.3` | attendee session object | `Breakout.initialize()`, `join()`, `leave()`, `askForHelp()`, `initMembers()`, `isNeedHandleRoster()`, `parseRoster()`, and `broadcast()` | Let an attendee act on one breakout and maintain its session-local roster. | These methods are owned by `breakout.ts`, not delegated through the controller index. | `src/breakouts/breakout.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
86
+ | `breakouts.4` | SDK / remote | controller `askAllToReturn()`, `broadcast()`, and `triggerReturnToMainEvent()` | Send host return/broadcast actions and expose the corresponding scoped meeting event. | Preserve broadcast roles/content and return-to-main event payload. | `src/breakouts/index.ts`, `src/breakouts/request.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
87
+ | `breakouts.5` | SDK / host remote | `enableBreakouts()`, `toggleBreakout()`, `doToggleBreakout()`, `create()`, `clearSessions()`, `start()`, `end()`, and `update()` | Create and transition the remote breakout configuration and sessions. | Preserve request sequencing, state values, and service rejection mapping. | `src/breakouts/index.ts`, `src/breakouts/request.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
88
+ | `breakouts.6` | SDK / assignment remote | `assign()`, `queryPreAssignments()`, `dynamicAssign()`, `moveToLobby()`, and `removeFromBreakout()` | Manage pre/dynamic participant assignment and movement between lobby/session contexts. | Preserve participant/session ids and per-operation request bodies. | `src/breakouts/index.ts`, `src/breakouts/request.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
89
+ | `breakouts.7` | SDK / edit lock | `enableAndLockBreakout()`, `hasBreakoutLocked()`, `lockBreakout()`, `keepEditLockAlive()`, and `unLockEditBreakout()` | Acquire, refresh, inspect, and release the edit token used by protected host mutations. | Service lock conflicts map to `BreakoutEditLockedError`, while a locally held lock rejects with a plain `Error`; keepalive ownership is explicit. | `src/breakouts/index.ts`, `src/breakouts/edit-lock-error.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
90
+ | `breakouts.8` | exported adapter/helpers | `BreakoutRequest.broadcast()`, `BreakoutEditLockedError`, `getBroadcastRoles()`, `boServiceErrorHandler()`, and `isSessionTypeChangedFromSessionToMain()` | Provide the direct broadcast adapter, lock error, role selection, service-error mapping, and session-transition predicate. | Preserve error identity, role ordering, and transition logic. | `src/breakouts/request.ts`, `src/breakouts/edit-lock-error.ts`, `src/breakouts/utils.ts` | [CONTRACTS](../../../ai-docs/CONTRACTS.md) |
91
+
92
+ ### Emitted events
93
+
94
+ 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.
95
+
96
+ | Event literal | Constant / expression | Emission evidence |
97
+ |---|---|---|
98
+ | `ASK_FOR_HELP` | `BREAKOUTS.EVENTS.ASK_FOR_HELP` | `src/breakouts/index.ts` |
99
+ | `ASK_RETURN_TO_MAIN` | `BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN` | `src/breakouts/index.ts` |
100
+ | `BREAKOUTS_CLOSING` | `BREAKOUTS.EVENTS.BREAKOUTS_CLOSING` | `src/breakouts/index.ts` |
101
+ | `LEAVE_BREAKOUT` | `BREAKOUTS.EVENTS.LEAVE_BREAKOUT` | `src/breakouts/index.ts` |
102
+ | `meeting:breakouts:askForHelp` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_ASK_FOR_HELP` | `src/meeting/index.ts` |
103
+ | `meeting:breakouts:askReturnToMain` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_ASK_RETURN_TO_MAIN` | `src/meeting/index.ts` |
104
+ | `meeting:breakouts:closing` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_CLOSING` | `src/meeting/index.ts` |
105
+ | `meeting:breakouts:leave` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_LEAVE` | `src/meeting/index.ts` |
106
+ | `meeting:breakouts:message` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_MESSAGE` | `src/meeting/index.ts` |
107
+ | `meeting:breakouts:preAssignmentsUpdate` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_PRE_ASSIGNMENTS_UPDATE` | `src/meeting/index.ts` |
108
+ | `meeting:breakouts:update` | `EVENT_TRIGGERS.MEETING_BREAKOUTS_UPDATE` | `src/meeting/index.ts` |
109
+ | `MEMBERS_UPDATE` | `BREAKOUTS.EVENTS.MEMBERS_UPDATE` | `src/breakouts/index.ts` |
110
+ | `MESSAGE` | `BREAKOUTS.EVENTS.MESSAGE` | `src/breakouts/index.ts` |
111
+ | `PRE_ASSIGNMENTS_UPDATE` | `BREAKOUTS.EVENTS.PRE_ASSIGNMENTS_UPDATE` | `src/breakouts/index.ts` |
112
+
113
+ Compatibility notes:
114
+ - Prefer additive fields/options and preserve current rejection/event/cleanup semantics. Internal helpers are not public merely because they are exported within the source directory.
115
+
116
+ ## Requires (dependencies)
117
+
118
+ Parent Meeting/Locus state, breakout service URL, request helper, breakout/member collections, event utilities, timers, role/capability fields, and metrics.
119
+
120
+ ## Requirements
121
+
122
+ | ID | WHAT | WHY | Source Evidence | Test / Example Evidence | Assumptions / Gaps | Confidence |
123
+ |---|---|---|---|---|---|---|
124
+ | `BREAKOUTS-R-001` | initialize/query breakout session and roster state. | Owns breakout-session projections, participant and host workflows, roster/broadcast/help events, edit-lock lifecycle, and server mutations. | `src/breakouts/index.ts` | `test/unit/spec/breakouts/index.ts` | none | PRESENT |
125
+ | `BREAKOUTS-R-002` | Attendee `join()`, `leave()`, and `askForHelp()` execute on the per-session object in `breakout.ts`; controller broadcasts delegate to `BreakoutRequest.broadcast()`. | The session object and controller have distinct request ownership, so attributing every attendee operation to `index.ts` hides the actual call boundary. | `src/breakouts/breakout.ts`, `src/breakouts/index.ts`, `src/breakouts/request.ts` | `test/unit/spec/breakouts/breakout.ts`, `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/request.ts` | none | PRESENT |
126
+ | `BREAKOUTS-R-003` | Request failures remain caller-visible and edit-lock conflicts are mapped explicitly. `unLockEditBreakout()` clears the keepalive, but `cleanUp()` only stops listeners/resets message subscription and does not clear the edit-lock timer. | The timer ownership gap must remain visible so cleanup is not relied on to release an editor that current code leaves active. | `src/breakouts/index.ts`, `src/breakouts/edit-lock-error.ts` | `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/edit-lock-error.ts` | cleanup does not clear the edit-lock keepalive timer | PRESENT |
127
+ | `BREAKOUTS-R-004` | Roster, session type, broadcasts, help requests, and return-to-main updates reconcile into meeting-scoped breakout/session/member projections and events. | Attendees need current session membership and host messages without consuming raw Locus/service payloads. | `src/breakouts/index.ts`, `src/breakouts/breakout.ts`, `src/breakouts/collection.ts` | `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/breakout.ts`, `test/unit/spec/breakouts/collection.ts` | none | PRESENT |
128
+ | `BREAKOUTS-R-005` | Host create/start/end/update/assign/move/remove operations use current session ids/URLs and direct request calls owned by `index.ts`; `canManageBreakouts` is stored but does not gate these methods. | These operations mutate shared server state, and the current absence of a local capability guard must not be replaced with an invented authorization guarantee. | `src/breakouts/index.ts` | `test/unit/spec/breakouts/index.ts` | stored management capability is not enforced by host mutation methods | PRESENT |
129
+ | `BREAKOUTS-R-006` | Edit-lock acquire/keepalive/unlock is coordinated around host configuration and maps lock conflicts to `BreakoutEditLockedError`; explicit unlock clears the timer. | Multiple hosts can edit breakout configuration, so conflict identity and explicit unlock behavior must remain stable even though general cleanup has a timer gap. | `src/breakouts/index.ts`, `src/breakouts/edit-lock-error.ts`, `src/breakouts/utils.ts` | `test/unit/spec/breakouts/edit-lock-error.ts`, `test/unit/spec/breakouts/utils.js` | general cleanup does not clear the timer | PRESENT |
130
+
131
+ ## Design Overview
132
+
133
+ Breakouts projects Locus breakout state into `Breakout` objects and a collection, performs most server mutations directly from `index.ts`, delegates only broadcast delivery to `BreakoutRequest`, emits feature events from `index.ts`, uses `events.ts` for breakout Call Analyzer metrics, and owns the edit-lock keepalive timer.
134
+
135
+ ## Data Flow
136
+
137
+ ```mermaid
138
+ flowchart LR
139
+ Locus[Locus breakout projection] --> Controller[index.ts]
140
+ Controller --> Collection[collection.ts]
141
+ Collection --> Session[breakout.ts]
142
+ Caller[Meeting / host / attendee] --> Controller
143
+ Caller --> Session
144
+ Controller --> Direct[index.ts request / webex.request]
145
+ Direct --> Service[Breakout service URLs]
146
+ Controller --> Request[request.ts broadcast helper]
147
+ Request --> Service
148
+ Controller --> FeatureEvents[index.ts scoped feature events]
149
+ Controller --> Metrics[events.ts Call Analyzer metrics]
150
+ Controller --> Lock[edit lock token + keepalive]
151
+ ```
152
+
153
+ ## Sequence Diagram(s)
154
+
155
+ Sequence coverage:
156
+
157
+ | Operation group | Diagram | Failure coverage |
158
+ |---|---|---|
159
+ | UC-1…UC-5 — breakout session and edit-lock operation groups | Breakout session and edit-lock primary sequence | invalid session context, edit-lock conflict, request rejection, and listener/session cleanup |
160
+ | UC-1…UC-5 — breakout session and edit-lock alternate/failure paths | Breakout session and edit-lock alternate/failure sequence | invalid session/lock context, edit-lock conflict, breakout service rejection, or absent local capability enforcement |
161
+
162
+ ### Breakout session and edit-lock primary sequence
163
+
164
+ ```mermaid
165
+ sequenceDiagram
166
+ participant C as Host or attendee
167
+ participant B as Breakouts index.ts
168
+ participant O as Breakout breakout.ts
169
+ participant R as index.ts request boundary
170
+ participant BR as BreakoutRequest
171
+ participant S as Breakout service
172
+ C->>B: host mutation or controller broadcast
173
+ C->>O: attendee join / leave / help
174
+ B->>B: resolve session/URL and edit lock where required; no canManageBreakouts guard
175
+ alt attendee session operation
176
+ O->>S: direct session request
177
+ S-->>O: response or error
178
+ O-->>C: response, rejection, or synchronous leave guard throw
179
+ else broadcast
180
+ B->>BR: broadcast(current URL, group, roles)
181
+ BR->>S: POST message
182
+ S-->>BR: accepted response or error
183
+ BR-->>B: response
184
+ else host operation
185
+ B->>R: direct request with current URL and ids
186
+ R->>S: HTTP request
187
+ S-->>R: accepted state or error
188
+ R-->>B: response
189
+ end
190
+ B->>B: reconcile collection and lock timer when applicable
191
+ B-->>C: result and scoped breakout event
192
+ ```
193
+
194
+ ### Breakout session and edit-lock alternate/failure sequence
195
+
196
+ ```mermaid
197
+ sequenceDiagram
198
+ participant H as Host / attendee
199
+ participant B as Breakouts
200
+ participant O as Breakout breakout.ts
201
+ participant S as Breakout service
202
+ alt attendee join, leave, or help operation
203
+ H->>O: perform attendee session operation
204
+ opt leave operation
205
+ O->>O: reject main-session leave or a missing main session
206
+ end
207
+ O->>S: direct session request
208
+ S-->>O: response or rejection
209
+ O-->>H: response or returned rejection; leave guard may throw synchronously
210
+ else valid host operation
211
+ H->>B: acquire lock or perform host operation
212
+ B->>B: validate session URL, ids, and edit-lock state where required; do not check canManageBreakouts
213
+ B->>S: direct request or broadcast helper request
214
+ S-->>B: response
215
+ B-->>H: request result and reconciled breakout projection
216
+ else local edit lock is already held
217
+ B--xH: lockBreakout() returned rejection carrying a plain Error, not BreakoutEditLockedError
218
+ else breakout service conflict or request rejection
219
+ S--xB: BreakoutEditLockedError or service rejection through the returned promise
220
+ B--xH: returned rejection
221
+ end
222
+ ```
223
+
224
+ ## Class / Component Relationships
225
+
226
+ ```mermaid
227
+ classDiagram
228
+ class Locus
229
+ class Controller
230
+ class Collection
231
+ class Session
232
+ class Caller
233
+ class Direct
234
+ class Request
235
+ class Service
236
+ class Events
237
+ class Lock
238
+ Locus --> Controller
239
+ Controller --> Collection
240
+ Collection --> Session
241
+ Caller --> Controller
242
+ Controller --> Direct
243
+ Direct --> Service
244
+ Controller --> Request
245
+ Request --> Service
246
+ Controller --> Events
247
+ Controller --> Lock
248
+ ```
249
+
250
+ The arrows identify ownership and delegation inside `src/breakouts/`; files that only declare types or constants are not presented as transports.
251
+
252
+ ## Use Cases
253
+
254
+ - **UC-1:** Reconcile session, roster, help, broadcast, and return-to-main changes into the meeting-scoped controller collection. Evidence: `src/breakouts/index.ts`, `src/breakouts/collection.ts`.
255
+ - **UC-2:** Join, leave, request help, or receive broadcast on an individual `Breakout` object and maintain that session's member roster. Evidence: `src/breakouts/breakout.ts`.
256
+ - **UC-3:** Create, clear, start, end, or update breakout sessions through the host controller request path. Evidence: `src/breakouts/index.ts`, `src/breakouts/request.ts`.
257
+ - **UC-4:** Query preassignments, dynamically assign participants, move them to lobby, or remove them from a breakout. Evidence: `src/breakouts/index.ts`, `src/breakouts/request.ts`.
258
+ - **UC-5:** Acquire and refresh an edit lock before protected host mutations, mapping service conflicts to `BreakoutEditLockedError`. Evidence: `src/breakouts/index.ts`, `src/breakouts/edit-lock-error.ts`.
259
+
260
+ ## State Model
261
+
262
+ Breakout collection, current/main session ids, management capability, edit-lock token/timer, roster state, subscriptions, and pending metric context are meeting scoped.
263
+
264
+ ## Business Rules & Invariants
265
+
266
+ - Host mutations use current session/service context and a valid edit lock where applicable; current code stores `canManageBreakouts` but does not enforce it. Collection/session ids remain consistent; `cleanUp()` releases subscriptions but not the edit-lock keepalive. Enforced under `src/breakouts/`.
267
+
268
+ ## Concurrency & Reactive Flow
269
+
270
+ - The active edit-lock token and its keepalive timer belong to one host edit session. `unLockEditBreakout()` clears that timer, while `cleanUp()` does not; roster and session updates reconcile by their current session/member ids before scoped breakout events are emitted.
271
+
272
+ ## State Machine
273
+
274
+ ```mermaid
275
+ stateDiagram-v2
276
+ [*] --> CLOSED
277
+ CLOSED --> PENDING: host prepares sessions
278
+ PENDING --> OPEN: start
279
+ OPEN --> CLOSING: close requested
280
+ CLOSING --> CLOSED: sessions close
281
+ OPEN --> OPEN: roster / help / broadcast update
282
+ ```
283
+
284
+ The diagram uses the breakout `CLOSED`, `PENDING`, `OPEN`, and `CLOSING` values declared in `src/constants.ts`.
285
+
286
+ ## Error Handling & Failure Modes
287
+
288
+ | Condition | Signal | Caller recovery |
289
+ |---|---|---|
290
+ | Required session/main-session context is absent | Guards such as `Breakout.leave()`, controller `getMainSession()`, and controller broadcast throw synchronously; other async methods return rejected promises for their own missing URL/id checks. Stored management capability is not a local guard. | Distinguish a direct throw from an async rejection and refresh current breakout state before retrying. |
291
+ | Another editor owns the breakout lock | A service lock conflict is mapped to `BreakoutEditLockedError` by `boServiceErrorHandler()`; a lock already held locally instead rejects with a plain `Error('Breakout already locked')` from the `async` `lockBreakout()`. | Wait for the lock owner to release it before retrying, and do not assume every lock failure is a `BreakoutEditLockedError`. |
292
+ | A breakout request rejects or the controller is cleaned up | The returned request promise remains rejected; cleanup removes owned listeners but does not cancel the edit-lock keepalive timer. | Handle the asynchronous rejection and explicitly unlock before discarding an edit session. |
293
+
294
+ ## Pitfalls
295
+
296
+ - The retained README says host operations were not implemented, but current code implements create/start/end/update/assignment and edit locking. Do not preserve that stale limitation.
297
+ - Verify both typed constants/enums and raw wire values before changing a logical condition in this legacy package.
298
+
299
+ ## Module Do's / Don'ts
300
+
301
+ - DO preserve this boundary: Reconcile session, roster, help, broadcast, and return-to-main changes into the meeting-scoped collection.
302
+ - DON'T move remote I/O or lifecycle ownership into a passive type, constant, catalog, or normalization file.
303
+
304
+ ## Key Design Trade-off
305
+
306
+ - Edit locking prevents concurrent host configuration conflicts, but requires keepalive, unlock, and failure cleanup around mutations.
307
+
308
+ ## Test-Case Strategy (module)
309
+
310
+ Use the current mirrored suites: `test/unit/spec/breakouts/breakout.ts`, `test/unit/spec/breakouts/collection.ts`, `test/unit/spec/breakouts/edit-lock-error.ts`, `test/unit/spec/breakouts/events.ts`, `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/request.ts`, `test/unit/spec/breakouts/utils.js`. Characterize the breakouts-specific use cases above and each listed failure condition; add cleanup or transition cases only for resources and state this module actually owns.
311
+
312
+ | Behavior / Requirement | Existing test evidence | Gap |
313
+ |---|---|---|
314
+ | `BREAKOUTS-R-001` | `test/unit/spec/breakouts/index.ts` | cover controller reconciliation separately from per-session `Breakout` operations |
315
+ | `BREAKOUTS-R-002` | `test/unit/spec/breakouts/index.ts` | cover each create/start/end/update/assignment body and its required URL/session context |
316
+ | `BREAKOUTS-R-003` | `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/breakout.ts` | characterize lock conflict, session-object join/leave/help failures, and listener cleanup as separate outcomes |
317
+ | `BREAKOUTS-R-004` | `test/unit/spec/breakouts/index.ts`, `test/unit/spec/breakouts/breakout.ts` | verify duplicate/out-of-order roster updates |
318
+ | `BREAKOUTS-R-005` | `test/unit/spec/breakouts/index.ts` | characterize that host mutations proceed without a local `canManageBreakouts` rejection and leave authorization to the service |
319
+ | `BREAKOUTS-R-006` | `test/unit/spec/breakouts/edit-lock-error.ts`, `test/unit/spec/breakouts/utils.js` | verify keepalive/unlock cleanup on failure |
320
+
321
+ ## Traceability
322
+
323
+ - Repo architecture: [`ARCHITECTURE.md`](../../../ai-docs/ARCHITECTURE.md) · Registry: [`SPEC_INDEX.md`](../../../ai-docs/SPEC_INDEX.md)
324
+ - Coverage state and contracts baseline: `../../../.sdd/manifest.json`
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import {WebexPlugin} from '@webex/webex-core';
5
5
  import {debounce, forEach} from 'lodash';
6
+ import type LLMChannel from '@webex/internal-plugin-llm';
6
7
  import LoggerProxy from '../common/logs/logger-proxy';
7
8
 
8
9
  import {BREAKOUTS, MEETINGS, HTTP_VERBS, _ID_} from '../constants';
@@ -48,6 +49,8 @@ const Breakouts = WebexPlugin.extend({
48
49
  canManageBreakouts: 'boolean', // appear the ability to manage breakouts
49
50
  mainGroupId: 'string', // appears from the moment you enable breakouts
50
51
  mainSessionId: 'string', // appears from the moment you enable breakouts
52
+ hasSubscribedToMessage: 'boolean', // tracks if listening to LLM broadcast messages
53
+ _llmChannel: 'object', // registered LLM channel for broadcast messages
51
54
  },
52
55
  children: {
53
56
  currentBreakoutSession: Breakout,
@@ -158,6 +161,8 @@ const Breakouts = WebexPlugin.extend({
158
161
  this.listenToCurrentSessionTypeChange();
159
162
  this.listenToBreakoutRosters();
160
163
  this.listenToBreakoutHelp();
164
+ // LLM may connect after locusUrlUpdate has already run, so re-check the broadcast subscription on connect
165
+ this.listenTo(this.webex.internal.llm, 'online', () => this.listenToBroadcastMessages());
161
166
  // @ts-ignore
162
167
  this.breakoutRequest = new BreakoutRequest({webex: this.webex});
163
168
  },
@@ -259,16 +264,44 @@ const Breakouts = WebexPlugin.extend({
259
264
  );
260
265
  },
261
266
 
267
+ /**
268
+ * Registers the LLM channel for broadcast messages
269
+ * @param {LLMChannel} channel - The LLM channel to use for breakout messages
270
+ * @returns {void}
271
+ */
272
+ registerLLMChannel(channel: LLMChannel) {
273
+ // If already subscribed to a previous channel, clean it up
274
+ if (this.hasSubscribedToMessage && this._llmChannel) {
275
+ this.stopListening(this._llmChannel);
276
+ this.hasSubscribedToMessage = false;
277
+ }
278
+
279
+ this._llmChannel = channel;
280
+ this.listenToBroadcastMessages();
281
+ },
282
+
283
+ /**
284
+ * Unregisters the LLM channel
285
+ * @returns {void}
286
+ */
287
+ unregisterLLMChannel() {
288
+ if (this._llmChannel) {
289
+ this.stopListening(this._llmChannel);
290
+ this._llmChannel = undefined;
291
+ this.hasSubscribedToMessage = false;
292
+ }
293
+ },
294
+
262
295
  /**
263
296
  * Sets up listener for broadcast messages sent to the breakout session
264
297
  * @returns {void}
265
298
  */
266
299
  listenToBroadcastMessages() {
267
- if (!this.webex.internal.llm.isConnected() || this.hasSubscribedToMessage) {
300
+ if (!this._llmChannel?.isConnected() || this.hasSubscribedToMessage) {
268
301
  return;
269
302
  }
270
303
 
271
- this.listenTo(this.webex.internal.llm, 'event:breakout.message', (event) => {
304
+ this.listenTo(this._llmChannel, 'event:breakout.message', (event) => {
272
305
  const {
273
306
  data: {senderUserId, sentTime, message},
274
307
  } = event;
@@ -161,6 +161,7 @@ class AddMediaFailed extends WebexMeetingsError {
161
161
  selectedCandidatePairChanges?: number;
162
162
  numTransports?: number;
163
163
  iceConnected?: boolean;
164
+ iceConnectedAtLeastOnce?: boolean;
164
165
 
165
166
  /**
166
167
  * Creates a new AddMediaFailed error
@@ -169,7 +170,8 @@ class AddMediaFailed extends WebexMeetingsError {
169
170
  * @param {string} [options.connectionType] - The ICE connection type at the time of failure (e.g. 'UDP', 'TURN-TLS')
170
171
  * @param {number} [options.selectedCandidatePairChanges] - Number of times the selected candidate pair changed
171
172
  * @param {number} [options.numTransports] - Number of ICE transports
172
- * @param {boolean} [options.iceConnected] - Whether ICE connection was established before the failure
173
+ * @param {boolean} [options.iceConnected] - Whether ICE is connected at the time of failure
174
+ * @param {boolean} [options.iceConnectedAtLeastOnce] - Whether ICE connected at least once before failure
173
175
  */
174
176
  constructor(
175
177
  options: {
@@ -178,6 +180,7 @@ class AddMediaFailed extends WebexMeetingsError {
178
180
  selectedCandidatePairChanges?: number;
179
181
  numTransports?: number;
180
182
  iceConnected?: boolean;
183
+ iceConnectedAtLeastOnce?: boolean;
181
184
  } = {}
182
185
  ) {
183
186
  super(AddMediaFailed.CODE, 'Failed to add media');
@@ -186,11 +189,12 @@ class AddMediaFailed extends WebexMeetingsError {
186
189
  this.selectedCandidatePairChanges = options.selectedCandidatePairChanges;
187
190
  this.numTransports = options.numTransports;
188
191
  this.iceConnected = options.iceConnected;
192
+ this.iceConnectedAtLeastOnce = options.iceConnectedAtLeastOnce;
189
193
  }
190
194
 
191
195
  /**
192
196
  * Returns true if the failure was due to a DTLS handshake failure
193
- * (ICE connected successfully but the overall media connection failed).
197
+ * (ICE is still connected but the overall media connection failed).
194
198
  */
195
199
  get isDtlsHandshakeFailure(): boolean {
196
200
  return this.iceConnected === true;
@@ -205,6 +209,7 @@ WebExMeetingsErrors[AddMediaFailed.CODE] = AddMediaFailed;
205
209
  */
206
210
  class MediaConnectionTimedOutError extends Error {
207
211
  iceConnected: boolean;
212
+ iceConnectedAtLeastOnce?: boolean;
208
213
 
209
214
  cause?: any;
210
215
 
@@ -212,6 +217,7 @@ class MediaConnectionTimedOutError extends Error {
212
217
  super(message);
213
218
  this.name = 'MediaConnectionTimedOutError';
214
219
  this.iceConnected = iceConnected;
220
+ this.iceConnectedAtLeastOnce = cause?.iceConnectedAtLeastOnce;
215
221
  this.cause = cause;
216
222
  }
217
223
  }
package/src/config.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  // @ts-ignore
2
- import {deviceType} from '@webex/common';
2
+ import {deviceType, getUmdAssetsBaseUrl} from '@webex/common';
3
+
4
+ declare const SDK_VERSION: string;
5
+ declare const PACKAGE_VERSION: string;
3
6
 
4
7
  export default {
5
8
  // TODO: this needs to be defaulted
@@ -81,6 +84,7 @@ export default {
81
84
  receiveTranscription: false,
82
85
  enableExtmap: false,
83
86
  enableAutomaticLLM: false,
87
+ assetsBaseUrl: getUmdAssetsBaseUrl('plugin-meetings', SDK_VERSION, PACKAGE_VERSION),
84
88
  installedOrgID: undefined,
85
89
  multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],
86
90
  experimental: {
package/src/constants.ts CHANGED
@@ -201,7 +201,8 @@ export const ICE_FAIL_TIMEOUT = 3000;
201
201
 
202
202
  export const RETRY_TIMEOUT = 3000;
203
203
 
204
- export const ICE_AND_DTLS_CONNECTION_TIMEOUT = 20000;
204
+ export const ICE_CONNECTION_TIMEOUT = 20000;
205
+ export const DTLS_CONNECTION_TIMEOUT = 7000;
205
206
  export const ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT = 35000;
206
207
  export const WEBINAR_ERROR_WEBCAST = [403026];
207
208
  export const WEBINAR_ERROR_REGISTRATION_ID = [403037, 403137];